query_id
stringlengths
32
32
query
stringlengths
7
129k
positive_passages
listlengths
1
1
negative_passages
listlengths
88
101
25197b4cf814864ecd440f23b9149cb3
TODO Autogenerated method stub
[ { "docid": "9c8423ca40071d9cedff3af8e20bc145", "score": "0.0", "text": "@Override\n\t\t\tpublic void onCheckedChanged(RadioGroup group, int checkedId) {\n\t\t\t\tif(checkedId == R.id.radio0){\n\t\t\t\t\ttipAfterTax=false;\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\ttipAfterTax=true;\n\t\t\t\t}\n\t\t\t\tupdateStandard();\n\t\t\t\tupdateCustom();\n\t\t\t}", "title": "" } ]
[ { "docid": "3d9823aba51891281b4bbd4b1818b970", "score": "0.6671074", "text": "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "title": "" }, { "docid": "0b5b11f4251ace8b3d0f5ead186f7beb", "score": "0.6567672", "text": "@Override\n\tpublic void comer() {\n\t\t\n\t}", "title": "" }, { "docid": "ea8460c7314de45803a19bf7c984d4bf", "score": "0.6523024", "text": "@Override\n public void perish() {\n \n }", "title": "" }, { "docid": "5f8d37aee09bc1e9959f768d6eb0183c", "score": "0.6481211", "text": "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "title": "" }, { "docid": "97d296a7afb7dc4215dea52c44825799", "score": "0.6477082", "text": "@Override\n\tpublic void anular() {\n\n\t}", "title": "" }, { "docid": "2dcda7054abb2ac593302e39a2284f12", "score": "0.64591026", "text": "@Override\n\tprotected void getExras() {\n\n\t}", "title": "" }, { "docid": "c2f383f280f298416bf45e72c374ecfa", "score": "0.64127725", "text": "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "title": "" }, { "docid": "b62a7c8e0bb1090171742c543bf4b253", "score": "0.63762105", "text": "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "title": "" }, { "docid": "177192b7240b496ba5aefdfed60037c9", "score": "0.6276059", "text": "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "title": "" }, { "docid": "5a2cf6475b24af1408d07534790462c3", "score": "0.6254286", "text": "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "title": "" }, { "docid": "1f7c82e188acf30d59f88faf08cf24ac", "score": "0.623686", "text": "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "title": "" }, { "docid": "6c2fa45ab362625ae567ee8a229630a4", "score": "0.6223679", "text": "@Override\n\tprotected void interr() {\n\t}", "title": "" }, { "docid": "73463480918eeb854ee253f0b90b8f6a", "score": "0.6201336", "text": "@Override\n\tpublic void emprestimo() {\n\n\t}", "title": "" }, { "docid": "abcadad5e0834117553d2b9f67dbe5da", "score": "0.61950207", "text": "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "title": "" }, { "docid": "abcadad5e0834117553d2b9f67dbe5da", "score": "0.61950207", "text": "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "title": "" }, { "docid": "7c4f2f94b290de5507eb56a649c4fab9", "score": "0.61922914", "text": "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "title": "" }, { "docid": "61358eff9372995c8157b02d47a44a6a", "score": "0.6186996", "text": "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "title": "" }, { "docid": "24836dd83ff94f056e1fcc3c7d1bd342", "score": "0.6173591", "text": "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "title": "" }, { "docid": "a89a6a1e5b118a43de52e5ffd006970b", "score": "0.61327106", "text": "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "title": "" }, { "docid": "50eb8922149b6987def0b49575615f5e", "score": "0.61285484", "text": "@Override\n protected void getExras() {\n }", "title": "" }, { "docid": "1c8a7915e39d52e26f69fe54c7cab366", "score": "0.6080161", "text": "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "title": "" }, { "docid": "b910b894fe7ad3828da2a23b46f46c91", "score": "0.6077022", "text": "@Override\n\tpublic void nefesAl() {\n\n\t}", "title": "" }, { "docid": "c95af00aee2fa41e8a03e3640ca30750", "score": "0.6041561", "text": "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "title": "" }, { "docid": "680ac9d1bc1773741a758290a71e990c", "score": "0.6024072", "text": "@Override\n public void func_104112_b() {\n \n }", "title": "" }, { "docid": "5fda61f75e47491fe0badbfe139070a9", "score": "0.6020252", "text": "@Override\n\tprotected void initdata() {\n\n\t}", "title": "" }, { "docid": "c682095c2b4f1946676c35a1deda3c6f", "score": "0.59984857", "text": "@Override\n\tpublic void nghe() {\n\n\t}", "title": "" }, { "docid": "d96634e617617b62a9a214992c3282f5", "score": "0.59672105", "text": "@Override\n public void function()\n {\n }", "title": "" }, { "docid": "d96634e617617b62a9a214992c3282f5", "score": "0.59672105", "text": "@Override\n public void function()\n {\n }", "title": "" }, { "docid": "2f8bc325cbd58e19eae4acec86ffe12c", "score": "0.5965777", "text": "public final void mo51373a() {\n }", "title": "" }, { "docid": "49a9123d9e9db8177a76f606f354e668", "score": "0.59485507", "text": "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "title": "" }, { "docid": "100a24d43d831707c172dbf3ee5fc24c", "score": "0.5940904", "text": "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "title": "" }, { "docid": "8b18fd12dbb5303a665e92c25393fb78", "score": "0.59239364", "text": "@Override\n\tprotected void initData() {\n\t\t\n\t}", "title": "" }, { "docid": "d61bad95071bf9780632fa87c434bab9", "score": "0.5910017", "text": "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "title": "" }, { "docid": "28237d6ae20e1aa35aaca12e05c950c9", "score": "0.5902906", "text": "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "title": "" }, { "docid": "96b7c88f13f659e23bf631d2d5053b40", "score": "0.58946234", "text": "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "title": "" }, { "docid": "53a77fe02ff8601b7f3a53009ccfd05c", "score": "0.5886006", "text": "public void designBasement() {\n\t\t\r\n\t}", "title": "" }, { "docid": "a515456a9e11b20998e2bfdd6c3dce67", "score": "0.58839184", "text": "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "title": "" }, { "docid": "4da8e9683b65c2cb7a22ee151d8c65e1", "score": "0.58691067", "text": "public void gored() {\n\t\t\n\t}", "title": "" }, { "docid": "4967494f628119c8d3a4740e09278944", "score": "0.5857751", "text": "@Override\r\n\tprotected void initData() {\n\r\n\t}", "title": "" }, { "docid": "b77eac7bccbd213b5d32d3e935c81ffe", "score": "0.58503544", "text": "@Override\n\tpublic void einkaufen() {\n\t}", "title": "" }, { "docid": "d06828119af4f719fc9db2eac57f2601", "score": "0.5847024", "text": "@Override\n protected void initialize() {\n\n \n }", "title": "" }, { "docid": "8c4be9114abb8cb7b57dc3c5d34882a8", "score": "0.58239377", "text": "public void mo38117a() {\n }", "title": "" }, { "docid": "e57f005733f2eb8590150b3f4542b844", "score": "0.5810564", "text": "@Override\n\tprotected void getData() {\n\t\t\n\t}", "title": "" }, { "docid": "2fda59f727914730e1ccc0c0b05e57bd", "score": "0.5810089", "text": "Constructor() {\r\n\t\t \r\n\t }", "title": "" }, { "docid": "9d2f44c3ebe1fb8de1ac4ae677e2d851", "score": "0.5806823", "text": "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "title": "" }, { "docid": "9d2f44c3ebe1fb8de1ac4ae677e2d851", "score": "0.5806823", "text": "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "title": "" }, { "docid": "cc32bfffe770f8a5c5cf88e6af231ff8", "score": "0.5800025", "text": "@Override\n\tpublic void one() {\n\t\t\n\t}", "title": "" }, { "docid": "beee84210d56979d0068a8094fb2a5bd", "score": "0.5792378", "text": "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "title": "" }, { "docid": "beee84210d56979d0068a8094fb2a5bd", "score": "0.5792378", "text": "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "title": "" }, { "docid": "beee84210d56979d0068a8094fb2a5bd", "score": "0.5792378", "text": "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "title": "" }, { "docid": "beee84210d56979d0068a8094fb2a5bd", "score": "0.5792378", "text": "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "title": "" }, { "docid": "beee84210d56979d0068a8094fb2a5bd", "score": "0.5792378", "text": "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "title": "" }, { "docid": "beee84210d56979d0068a8094fb2a5bd", "score": "0.5792378", "text": "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "title": "" }, { "docid": "1260bf70decb91faff8466bae6765ba2", "score": "0.5790187", "text": "private stendhal() {\n\t}", "title": "" }, { "docid": "bcd5f0b16beb225527894894dcaf774f", "score": "0.5789414", "text": "@Override\n\tprotected void update() {\n\t\t\n\t}", "title": "" }, { "docid": "f397b517b3f3532ba47ff3ee806bc420", "score": "0.5787092", "text": "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "54b1134554bc066c34ed30a72adb660c", "score": "0.57844025", "text": "@Override\n\tprotected void initData() {\n\n\t}", "title": "" }, { "docid": "54b1134554bc066c34ed30a72adb660c", "score": "0.57844025", "text": "@Override\n\tprotected void initData() {\n\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "5e6804b1ba880a8cc8a98006ca4ba35b", "score": "0.5761362", "text": "@Override\n public void init() {\n\n }", "title": "" }, { "docid": "518a761521ca9f5cb8a8055b32b72cda", "score": "0.57596046", "text": "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "title": "" }, { "docid": "518a761521ca9f5cb8a8055b32b72cda", "score": "0.57596046", "text": "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.575025", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.575025", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.575025", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "4a5b709a6553621aa4226737a20ba120", "score": "0.5747959", "text": "@Override\n\tpublic void debite() {\n\t\t\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.57337177", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.57337177", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.57337177", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "7f454c1ee07328138017395e69b0420e", "score": "0.5721452", "text": "public contrustor(){\r\n\t}", "title": "" }, { "docid": "a937c607590931387a357d03c3b0eef4", "score": "0.5715831", "text": "@Override\n\tprotected void initialize() {\n\n\t}", "title": "" }, { "docid": "2911d3f6b10d531f37ba6cbbb1e4e44a", "score": "0.57142824", "text": "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "title": "" }, { "docid": "0fc890bce2cd6e7184e33036b92f8217", "score": "0.57140535", "text": "public void mo55254a() {\n }", "title": "" }, { "docid": "0fc890bce2cd6e7184e33036b92f8217", "score": "0.57140535", "text": "public void mo55254a() {\n }", "title": "" }, { "docid": "0fc890bce2cd6e7184e33036b92f8217", "score": "0.57140535", "text": "public void mo55254a() {\n }", "title": "" }, { "docid": "0fc890bce2cd6e7184e33036b92f8217", "score": "0.57140535", "text": "public void mo55254a() {\n }", "title": "" }, { "docid": "0fc890bce2cd6e7184e33036b92f8217", "score": "0.57140535", "text": "public void mo55254a() {\n }", "title": "" }, { "docid": "0fc890bce2cd6e7184e33036b92f8217", "score": "0.57140535", "text": "public void mo55254a() {\n }", "title": "" }, { "docid": "0fc890bce2cd6e7184e33036b92f8217", "score": "0.57140535", "text": "public void mo55254a() {\n }", "title": "" }, { "docid": "8862e414d1049ff417c2327b444db61e", "score": "0.5711723", "text": "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "title": "" }, { "docid": "29251cbd61f58d1440af2e558c6a19bc", "score": "0.57041645", "text": "@Override\n\tprotected void logic() {\n\n\t}", "title": "" }, { "docid": "39132efb6b42f8ec625d96ff6226d80b", "score": "0.56991017", "text": "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "title": "" }, { "docid": "86232e6a9aaa22e4403270ce10de01d3", "score": "0.5696783", "text": "public void mo4359a() {\n }", "title": "" }, { "docid": "9f7ae565c79188ee275e5778abe03250", "score": "0.56881124", "text": "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "title": "" }, { "docid": "b1e3eb9a5b9dff21ed219e48a8676b34", "score": "0.56774884", "text": "@Override\n public void memoria() {\n \n }", "title": "" }, { "docid": "c0ca0277e879a2b84cd3748b428dc4fa", "score": "0.56734604", "text": "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "title": "" }, { "docid": "dca752ff24c887a367479fb49a14a486", "score": "0.56728", "text": "private RepositorioAtendimentoPublicoHBM() {\r\t}", "title": "" }, { "docid": "137850fe8be37a8fdff9b5f1d19f9338", "score": "0.56696945", "text": "@Override\n protected void initialize() \n {\n \n }", "title": "" }, { "docid": "51fb4cf832bd3bdab07f36fa0655aed2", "score": "0.5661323", "text": "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "title": "" }, { "docid": "fb842ef1f250aaba4286c185df305a9b", "score": "0.5657007", "text": "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.5655942", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.5655942", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.5655942", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "cc19c0c7ab1bdc568508b0381e170621", "score": "0.56549734", "text": "@Override\n protected void prot() {\n }", "title": "" }, { "docid": "92ff2215e2946927efe966014fa1b664", "score": "0.5654792", "text": "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "title": "" }, { "docid": "289e1db116de136c64eef3293ece7f16", "score": "0.5652974", "text": "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "title": "" }, { "docid": "502b1954008fce4ba895ad7a32b37b97", "score": "0.5650185", "text": "public void mo55254a() {\n }", "title": "" } ]
2adac21c1be4811e7dcada22a63a9fd5
read the index of the element to select
[ { "docid": "5adb289dd551c2e27731501b1991aa1b", "score": "0.0", "text": "@Override\n\tprotected void readParameters(Iterator params) {\n\t\tint index = params.getInt();\n\t\tsetSelectedIndex(index);\n\t\t//have the child Element at that index read its params\n\t\tchildren.get(index).readParameters(params);\n\t}", "title": "" } ]
[ { "docid": "38cdae050d296ff1a03fc63d1860e639", "score": "0.7499624", "text": "int getIndexSelect();", "title": "" }, { "docid": "07c2644f3b37d09c6f1761abf5eb005d", "score": "0.7254388", "text": "int index(Element element);", "title": "" }, { "docid": "6405451748631501569e376452fd228c", "score": "0.72181123", "text": "int index();", "title": "" }, { "docid": "28e41615eb10fca12884a3024014df11", "score": "0.7168842", "text": "void select(int index);", "title": "" }, { "docid": "3be4966f5261f0db1d76f2cb117328b3", "score": "0.7125599", "text": "public int getIndex(){\r\n return index;\r\n }", "title": "" }, { "docid": "3be4966f5261f0db1d76f2cb117328b3", "score": "0.7125599", "text": "public int getIndex(){\r\n return index;\r\n }", "title": "" }, { "docid": "5026f1d76b72c48d453766edefacb91b", "score": "0.7121855", "text": "public int getIndex();", "title": "" }, { "docid": "203eb9238a7b321dd0c700cb20c89f58", "score": "0.7090515", "text": "int getIndex();", "title": "" }, { "docid": "203eb9238a7b321dd0c700cb20c89f58", "score": "0.7090515", "text": "int getIndex();", "title": "" }, { "docid": "203eb9238a7b321dd0c700cb20c89f58", "score": "0.7090515", "text": "int getIndex();", "title": "" }, { "docid": "203eb9238a7b321dd0c700cb20c89f58", "score": "0.7090515", "text": "int getIndex();", "title": "" }, { "docid": "203eb9238a7b321dd0c700cb20c89f58", "score": "0.7090515", "text": "int getIndex();", "title": "" }, { "docid": "203eb9238a7b321dd0c700cb20c89f58", "score": "0.7090515", "text": "int getIndex();", "title": "" }, { "docid": "203eb9238a7b321dd0c700cb20c89f58", "score": "0.7090515", "text": "int getIndex();", "title": "" }, { "docid": "203eb9238a7b321dd0c700cb20c89f58", "score": "0.7090515", "text": "int getIndex();", "title": "" }, { "docid": "203eb9238a7b321dd0c700cb20c89f58", "score": "0.7090515", "text": "int getIndex();", "title": "" }, { "docid": "abf4f28876af2f0bbc1c05ae4470242f", "score": "0.7027644", "text": "int indexForElement(HTMLElement el);", "title": "" }, { "docid": "d719062ff2f9d892602ab937a928b927", "score": "0.7025325", "text": "public int getIndex()\n {\n return index;\n }", "title": "" }, { "docid": "de0160334eac68333a033b828ab631ad", "score": "0.70106953", "text": "public int index() {return _index;}", "title": "" }, { "docid": "576b53867ba03af11824a483affcb244", "score": "0.70072305", "text": "public int getIndex() {\n return index;\n }", "title": "" }, { "docid": "b1bcceee2f4c85cfd70dd1919632f7c4", "score": "0.6943286", "text": "public String getElement(int index);", "title": "" }, { "docid": "6ab7779cad79db71a58ba8c6dc42020e", "score": "0.69332117", "text": "public Element getByIndex(int index) throws Exception;", "title": "" }, { "docid": "acf5f4c7380c98c61f1281731353ebd5", "score": "0.69000155", "text": "public int getIndex() {\r\n return currentIndex;\r\n }", "title": "" }, { "docid": "4e35ee00f1ce9ba9df927807dbfb99dc", "score": "0.6886465", "text": "public int getIndex() {\r\n return index;\r\n }", "title": "" }, { "docid": "47abb1a958e113dbad927ddb6ecd3d33", "score": "0.6877371", "text": "@Override\r\n public int getIndex() {\r\n return index;\r\n }", "title": "" }, { "docid": "5d1efbdade00feb1ea544a50421d9aaa", "score": "0.68658584", "text": "public int getIndex(){\n\t\treturn this.index;\n\t}", "title": "" }, { "docid": "91de35aeef1363bb83508f90a0c335c5", "score": "0.6865435", "text": "public int getIndex()\n {\n return index;\n }", "title": "" }, { "docid": "91de35aeef1363bb83508f90a0c335c5", "score": "0.6865435", "text": "public int getIndex()\n {\n return index;\n }", "title": "" }, { "docid": "83ba31326299c62d909b547551c71883", "score": "0.6828345", "text": "public int getIndex() {\r\n\t\treturn index;\r\n\t}", "title": "" }, { "docid": "83ba31326299c62d909b547551c71883", "score": "0.6828345", "text": "public int getIndex() {\r\n\t\treturn index;\r\n\t}", "title": "" }, { "docid": "83ba31326299c62d909b547551c71883", "score": "0.6828345", "text": "public int getIndex() {\r\n\t\treturn index;\r\n\t}", "title": "" }, { "docid": "dfdd0994f4eb09466e00489880f809a8", "score": "0.6821271", "text": "int getCurrentIndex();", "title": "" }, { "docid": "b40beef7066715502db3c9c74fa4d5b6", "score": "0.6812442", "text": "public int getIndex() {\r\n\t\t\treturn index;\r\n\t\t}", "title": "" }, { "docid": "d70ea1955ee83a3135b3eda658e6c527", "score": "0.6793038", "text": "public int getPosition() {\n\t\treturn 2 * index;\n\t}", "title": "" }, { "docid": "470350ce96b8fd4ab04d66ff487efe77", "score": "0.67859876", "text": "int getIndex() {\n return index;\n }", "title": "" }, { "docid": "34133f389aae988efc74219131e852a2", "score": "0.6785712", "text": "@Override\n\tpublic int getIndex() {\n\t\treturn index;\n\t}", "title": "" }, { "docid": "bb6aa8c8f0187c529670dcb6646d25bc", "score": "0.6774967", "text": "public int getIndex() {\n return index;\n }", "title": "" }, { "docid": "bb6aa8c8f0187c529670dcb6646d25bc", "score": "0.6774967", "text": "public int getIndex() {\n return index;\n }", "title": "" }, { "docid": "bb6aa8c8f0187c529670dcb6646d25bc", "score": "0.6774967", "text": "public int getIndex() {\n return index;\n }", "title": "" }, { "docid": "bb6aa8c8f0187c529670dcb6646d25bc", "score": "0.6774967", "text": "public int getIndex() {\n return index;\n }", "title": "" }, { "docid": "bb6aa8c8f0187c529670dcb6646d25bc", "score": "0.6774967", "text": "public int getIndex() {\n return index;\n }", "title": "" }, { "docid": "bb6aa8c8f0187c529670dcb6646d25bc", "score": "0.6774967", "text": "public int getIndex() {\n return index;\n }", "title": "" }, { "docid": "bb6aa8c8f0187c529670dcb6646d25bc", "score": "0.6774967", "text": "public int getIndex() {\n return index;\n }", "title": "" }, { "docid": "bb6aa8c8f0187c529670dcb6646d25bc", "score": "0.6774967", "text": "public int getIndex() {\n return index;\n }", "title": "" }, { "docid": "bb6aa8c8f0187c529670dcb6646d25bc", "score": "0.6774967", "text": "public int getIndex() {\n return index;\n }", "title": "" }, { "docid": "306cb2e82431426371c6a0c805a3fba9", "score": "0.6754676", "text": "public int get (int index);", "title": "" }, { "docid": "4effecddb80258bd20db3c11da611412", "score": "0.6746414", "text": "public int getIndex() {\r\n return this.index;\r\n }", "title": "" }, { "docid": "07c39ae8626c6bf5f019c74f587ba0e4", "score": "0.6736308", "text": "public int getIndex() {\n\t\treturn index;\n\t}", "title": "" }, { "docid": "07c39ae8626c6bf5f019c74f587ba0e4", "score": "0.6736308", "text": "public int getIndex() {\n\t\treturn index;\n\t}", "title": "" }, { "docid": "07c39ae8626c6bf5f019c74f587ba0e4", "score": "0.6736308", "text": "public int getIndex() {\n\t\treturn index;\n\t}", "title": "" }, { "docid": "07c39ae8626c6bf5f019c74f587ba0e4", "score": "0.6736308", "text": "public int getIndex() {\n\t\treturn index;\n\t}", "title": "" }, { "docid": "4ebc99b05cd439b08c442ef3f9cd6cbf", "score": "0.6718442", "text": "int index(){\n\t\tif (cursor == null){\n\t\t\treturn -1;\n\t\t}\n\t\treturn index;\n\t}", "title": "" }, { "docid": "f93c910877fcbec687cb206f138290f6", "score": "0.6712409", "text": "@Override\n\tpublic int getIndex() {\n\t\treturn this.index;\n\t}", "title": "" }, { "docid": "3e9e7108909095c7d6f5674434021961", "score": "0.66631395", "text": "@java.lang.Override\n public int getIndex() {\n return index_;\n }", "title": "" }, { "docid": "3e9e7108909095c7d6f5674434021961", "score": "0.66631395", "text": "@java.lang.Override\n public int getIndex() {\n return index_;\n }", "title": "" }, { "docid": "447baa754ee748b37960b2763906d95c", "score": "0.6662412", "text": "int getStartIndex();", "title": "" }, { "docid": "447baa754ee748b37960b2763906d95c", "score": "0.6662412", "text": "int getStartIndex();", "title": "" }, { "docid": "447baa754ee748b37960b2763906d95c", "score": "0.6662412", "text": "int getStartIndex();", "title": "" }, { "docid": "350fe9b0652b3b6d6420a1220d25d42d", "score": "0.6647167", "text": "public int getIndex() {\n return index_;\n }", "title": "" }, { "docid": "350fe9b0652b3b6d6420a1220d25d42d", "score": "0.6646519", "text": "public int getIndex() {\n return index_;\n }", "title": "" }, { "docid": "350fe9b0652b3b6d6420a1220d25d42d", "score": "0.6646519", "text": "public int getIndex() {\n return index_;\n }", "title": "" }, { "docid": "350fe9b0652b3b6d6420a1220d25d42d", "score": "0.6646519", "text": "public int getIndex() {\n return index_;\n }", "title": "" }, { "docid": "350fe9b0652b3b6d6420a1220d25d42d", "score": "0.6645935", "text": "public int getIndex() {\n return index_;\n }", "title": "" }, { "docid": "215264e56855b9d125c85afa2844c8a0", "score": "0.6640821", "text": "@java.lang.Override\n public int getIndex() {\n return index_;\n }", "title": "" }, { "docid": "215264e56855b9d125c85afa2844c8a0", "score": "0.6640821", "text": "@java.lang.Override\n public int getIndex() {\n return index_;\n }", "title": "" }, { "docid": "df9db688b2acbd195f73e43c62163097", "score": "0.6626898", "text": "public int getIndex() {\n\t\t\treturn index;\n\t\t}", "title": "" }, { "docid": "4d8c592db4ab30800f3b370e565c5928", "score": "0.662545", "text": "public Integer getIndex() {\n return index;\n }", "title": "" }, { "docid": "14cfdbf7172c18a6553a6a2a8754d9bd", "score": "0.6615715", "text": "public int getIndex() {\n return this.index;\n }", "title": "" }, { "docid": "14cfdbf7172c18a6553a6a2a8754d9bd", "score": "0.6615715", "text": "public int getIndex() {\n return this.index;\n }", "title": "" }, { "docid": "c5216345cd4812977579d600d578d8de", "score": "0.661343", "text": "@Override\n\tpublic int getIndex()\n\t{\n\t\treturn -1;\n\t}", "title": "" }, { "docid": "b37a68952e33a95e2efb784fc35d1fbc", "score": "0.6579793", "text": "public abstract int getIndex();", "title": "" }, { "docid": "b37a68952e33a95e2efb784fc35d1fbc", "score": "0.6579793", "text": "public abstract int getIndex();", "title": "" }, { "docid": "a92a9fb6e4a1e8b80e3b8be2dbae2454", "score": "0.6571705", "text": "abstract int getIndex();", "title": "" }, { "docid": "5b3d0b02fcae01967f88af3d3ddc1c8d", "score": "0.6564714", "text": "public Integer getIndex() {\r\n return index;\r\n }", "title": "" }, { "docid": "38eb8951ea9a212ad4b6facfa6aa303b", "score": "0.6554555", "text": "public int getIndex()\n {\n return mIndex;\n }", "title": "" }, { "docid": "e24c0ade82c3bb8a1bd299140574ac41", "score": "0.6549878", "text": "public int getSelectedIndex()\n\t{\n\t\treturn values.indexOf(getSelection());\n\t}", "title": "" }, { "docid": "508d250bd6ee913e2e49aaf479255aaf", "score": "0.653292", "text": "public int getIndex(){\n\t\t\t//return the index parameter for this instance\n\t\t\treturn this.index;\n\t\t}", "title": "" }, { "docid": "dced6a982f3a37b1e1f6c7eae670a213", "score": "0.65255946", "text": "private static void findIndex()\n\t{\n\t\t\n\t\t\n\t}", "title": "" }, { "docid": "c17e9292eccef8c710ce0f66bc32d8ad", "score": "0.6515424", "text": "public int getIndex() {\n return index_;\n }", "title": "" }, { "docid": "c17e9292eccef8c710ce0f66bc32d8ad", "score": "0.65152663", "text": "public int getIndex() {\n return index_;\n }", "title": "" }, { "docid": "c17e9292eccef8c710ce0f66bc32d8ad", "score": "0.65129805", "text": "public int getIndex() {\n return index_;\n }", "title": "" }, { "docid": "c17e9292eccef8c710ce0f66bc32d8ad", "score": "0.65129805", "text": "public int getIndex() {\n return index_;\n }", "title": "" }, { "docid": "c17e9292eccef8c710ce0f66bc32d8ad", "score": "0.65129805", "text": "public int getIndex() {\n return index_;\n }", "title": "" }, { "docid": "6e53e1abc286b9b8468baa609aa2a330", "score": "0.6508237", "text": "public int getSelectionIndex()\n {\n checkWidget();\n if (noSelection)\n return -1;\n return (int) /* 64 */OS.SendMessage(handle, OS.CB_GETCURSEL, 0, 0);\n }", "title": "" }, { "docid": "65f3da90d0b7400c634e8ad855f7de67", "score": "0.6499469", "text": "public int GetAtIndex(int index)\n {\n Node currNode = this.head;\n for(int i = 0; i < index; i++)\n {\n currNode = currNode.GetNextNode();\n }\n return currNode.GetPayload();\n }", "title": "" }, { "docid": "28588c5e22dba148153c9f5897da93be", "score": "0.6499293", "text": "public int getIndex()\n\t{\n\t\treturn 0;\n\t}", "title": "" }, { "docid": "2acfafc19c3d8894e2fa66d47fde9db9", "score": "0.6491659", "text": "public int getX(int sIndex);", "title": "" }, { "docid": "6b8f47206c6d8b8f3cdba2baa09da3ea", "score": "0.6474314", "text": "public int getIndex() {\n return this._index;\n }", "title": "" }, { "docid": "684271fd49a2dc302292176546615cb1", "score": "0.6471408", "text": "public NodeExpr index()\n\t{\n\t\treturn _index;\n\t}", "title": "" }, { "docid": "7e8a81ee50bac946b6f38825acd41b59", "score": "0.644055", "text": "public Instruction index() { return index; }", "title": "" }, { "docid": "4105eb3be3c51c17d700bd43b11b9249", "score": "0.64366764", "text": "public int\n\t\tgetIndex()\n\t\t{\n\t\t\treturn( 0 );\n\t\t\t\n\t\t}", "title": "" }, { "docid": "89676d36dfd02eeb37d454fae27a461d", "score": "0.64361805", "text": "public Integer getIndex() {\n return index;\n }", "title": "" }, { "docid": "6783e35d8f744504006d5b3f4a73d070", "score": "0.6435443", "text": "public GeoElement getElement() {\n\t\treturn index;\n\t}", "title": "" }, { "docid": "11f2378f49ef1ad2e6f15df099610b46", "score": "0.6429779", "text": "public int getIndex() {\n\t\treturn mIndex;\n\t}", "title": "" }, { "docid": "e6706d8ba6bca0b43e8203f1fc9cafdf", "score": "0.6418454", "text": "int getResultIndex();", "title": "" }, { "docid": "2bcff05c2d8acc7432bc3c7fbec03754", "score": "0.6414646", "text": "public Integer getIndex() {\n return index;\n }", "title": "" }, { "docid": "b6b7559e719ee4dcaabe3558d595d42f", "score": "0.6405322", "text": "public int get(int index) {\n return entry(index).element;\n }", "title": "" }, { "docid": "1535b0629484770c6f44fa0b85af064a", "score": "0.63930297", "text": "public int getOffset(int index) {\n\t}", "title": "" }, { "docid": "3e7bcf0aa7d441785700811f329e8639", "score": "0.635643", "text": "@DISPID(91) //= 0x5b. The runtime will prefer the VTID if present\n @VTID(14)\n int index();", "title": "" }, { "docid": "038aab3e78263db04e459a1e6203e526", "score": "0.63465357", "text": "public int getSelectedCardIndex() {\n return getRootNode().getSelectionModel().getSelectedIndex();\n }", "title": "" }, { "docid": "038aab3e78263db04e459a1e6203e526", "score": "0.63465357", "text": "public int getSelectedCardIndex() {\n return getRootNode().getSelectionModel().getSelectedIndex();\n }", "title": "" } ]
9c0554a40bbc338ba94ac3e08b95726f
Equal To the result of a subquery.
[ { "docid": "6b599d41a6c51bd4be4546f06253bd11", "score": "0.5115545", "text": "ExpressionList<T> eq(String propertyName, Query<?> subQuery);", "title": "" } ]
[ { "docid": "f0a90d2e503ffb35338213d2a6d8fdc6", "score": "0.5435438", "text": "@Test public void testScalarSubQueryInSelect() throws TeiidComponentException, TeiidProcessingException {\n String sql = \"select intkey, case when (select stringkey from bqt1.smallb) is not null then 'nuge' end as a from vqt.smalla\"; //$NON-NLS-1$\n\n ProcessorPlan plan = helpPlan(sql, RealMetadataFactory.exampleBQTCached(),\n new String[] {\n \"SELECT g_0.IntKey, CASE WHEN (SELECT g_0.StringKey FROM BQT1.SmallB AS g_0) IS NOT NULL THEN 'nuge' END FROM BQT1.SmallA AS g_0\" }, ComparisonMode.EXACT_COMMAND_STRING); //$NON-NLS-1$\n\n checkNodeTypes(plan, new int[] {\n 1, // Access\n 0, // DependentAccess\n 0, // DependentSelect\n 0, // DependentProject\n 0, // DupRemove\n 0, // Grouping\n 0, // Join\n 0, // MergeJoin\n 0, // Null\n 0, // PlanExecution\n 0, // Project\n 0, // Select\n 0, // Sort\n 0 // UnionAll\n });\n\n HardcodedDataManager hdm = new HardcodedDataManager();\n hdm.addData(\"SELECT g_0.StringKey FROM BQT1.SmallB AS g_0\", Arrays.asList(\"a\"));\n hdm.addData(\"SELECT g_0.IntKey FROM BQT1.SmallA AS g_0\", Arrays.asList(1));\n TestProcessor.helpProcess(plan, hdm, new List[] {Arrays.asList(1, \"nuge\")});\n\n }", "title": "" }, { "docid": "33a0bec00e0b2a4bd500b538fa827f94", "score": "0.5352522", "text": "public boolean supportsSubqueryOnMutatingTable() {\n \t\treturn true;\n \t}", "title": "" }, { "docid": "d4bd05bd6349ed76e6c054b710454bbd", "score": "0.52794796", "text": "public boolean eq(Value val);", "title": "" }, { "docid": "534c94f0b06c21de2ab03448a35651dd", "score": "0.52066344", "text": "@Override\n public RAny execute(Frame frame, RAny lhs, RAny rhs) {\n try {\n throw new UnexpectedResultException(null);\n } catch (UnexpectedResultException e) {\n if (!subset) {\n if (DEBUG_UP) Utils.debug(\"IdenticalTypes -> Subscript\");\n return replace(Subscript.create(this, lhs, rhs)).execute(frame, lhs, rhs);\n }\n if (column) {\n if (DEBUG_UP) Utils.debug(\"IdenticalTypes -> Column\");\n return replace(Column.create(this, lhs, rhs)).execute(frame, lhs, rhs);\n }\n if (rhs instanceof RArray && ((RArray) rhs).size() == 1) {\n if (DEBUG_UP) Utils.debug(\"IdenticalTypes -> Scalar\");\n return replace(new Scalar(this)).execute(frame, lhs, rhs);\n }\n if (DEBUG_UP) Utils.debug(\"IdenticalTypes -> NonScalar\");\n return replace(new NonScalar(this)).execute(frame, lhs, rhs);\n }\n }", "title": "" }, { "docid": "7a962f261d92cff19b3da744b192a601", "score": "0.5128756", "text": "public SqlNode asQuery() {\n if (node instanceof SqlCall\n && ((SqlCall) node).getOperator() instanceof SqlSetOperator) {\n return node;\n }\n return asSelect();\n }", "title": "" }, { "docid": "8340718e16f085d6af8ce37007d842c5", "score": "0.507621", "text": "public QueryResults equalitySelect(String table, List<String> projection,\n List<DbDataContainer> predicatesAndValues)\n throws GroundDBException, EmptyResultException {\n String items = String.join(\", \", projection);\n String select = \"select \" + items + \" from \" + table;\n\n if (predicatesAndValues.size() > 0) {\n String predicatesString = predicatesAndValues.stream()\n .map(predicate -> predicate.getField() + \" = ?\")\n .collect(Collectors.joining(\" and \"));\n select += \" where \" + predicatesString;\n }\n\n try {\n PreparedStatement preparedStatement = this.connection.prepareStatement(select + \";\");\n\n int index = 1;\n for (DbDataContainer container : predicatesAndValues) {\n PostgresClient.setValue(preparedStatement, container.getValue(), container.getGroundType(), index);\n\n index++;\n }\n\n LOGGER.info(\"Executing query: \" + preparedStatement.toString() + \".\");\n\n ResultSet resultSet = preparedStatement.executeQuery();\n if (!resultSet.isBeforeFirst()) {\n throw new EmptyResultException(\"No results found for query: \" + preparedStatement.toString());\n }\n\n // Moves the cursor to the first element so that data can be accessed directly.\n resultSet.next();\n return new PostgresResults(resultSet);\n } catch (SQLException e) {\n LOGGER.error(\"Unexpected error in database query: \" + e.getMessage());\n\n throw new GroundDBException(e.getMessage());\n }\n }", "title": "" }, { "docid": "3f97a11b036d8c58fd4e6f41905a3a81", "score": "0.5025251", "text": "@Override\n public HqlQueryValue toHqlQueryValue(HqlQueryBuilderParams params) {\n if (getProjections().getProjections().isEmpty()) {\n throw new IllegalStateException(\"Attempting to use a subquery without projections. This is most likely a mistake. \"\n + \"If you are using exists/not exists, then use it by calling the selectExists or selectNotExists on \"\n + \"this subquery instead of another custom way, or select a value.\");\n }\n HqlQuery query = toHqlQuery(params);\n return new HqlQueryValueImpl(\"(\" +query.getHql() + \")\", query.getParams());\n }", "title": "" }, { "docid": "20aed4068826eb0381f78532fb065c56", "score": "0.50015956", "text": "public CqlResult(CqlResult other) {\n __isset_bitfield = other.__isset_bitfield;\n if (other.isSetType()) {\n this.type = other.type;\n }\n if (other.isSetRows()) {\n List<CqlRow> __this__rows = new ArrayList<CqlRow>(other.rows.size());\n for (CqlRow other_element : other.rows) {\n __this__rows.add(new CqlRow(other_element));\n }\n this.rows = __this__rows;\n }\n this.num = other.num;\n if (other.isSetSchema()) {\n this.schema = new CqlMetadata(other.schema);\n }\n }", "title": "" }, { "docid": "ae2af9bd2f5d465af5f63492e091e8f4", "score": "0.49723765", "text": "@Test\n public void testEqualsExitoso(){\n Item item2 = item;\n boolean expResult = true;\n boolean result = item.equals(item2);\n assertEquals(expResult, result);\n }", "title": "" }, { "docid": "7c867c1c1bfc2bba2b30321fe86c6ad3", "score": "0.49652135", "text": "public boolean isEqual();", "title": "" }, { "docid": "d414455fa00b9b7eaf84d0aba6f349f9", "score": "0.49508274", "text": "@Test\n\tpublic void testDoubleSelect(){\n\t\tch.epfl.dias.ops.block.Scan scan = new ch.epfl.dias.ops.block.Scan(columnstoreLineItem);\n\t\tch.epfl.dias.ops.block.Select sel = new ch.epfl.dias.ops.block.Select(scan, BinaryOp.EQ, 1, 1284483);\n\n\t\tch.epfl.dias.ops.block.Project proj = new ch.epfl.dias.ops.block.Project(sel, new int[]{5});\n\n\t\tDBColumn[] result = proj.execute();\n\n\t\t// This query should return only one result\n\t\tdouble output = result[0].getAsDouble()[0];\n\t\tassertTrue(output == 39620.34);\n\t}", "title": "" }, { "docid": "e5e31f0efca1e1e85e78e3ff23f99983", "score": "0.49061948", "text": "public boolean equals(QueryObjectCache theOther) {\r\n return mqo.equals(theOther.getQueryObject());\r\n }", "title": "" }, { "docid": "d33e74634e12ab1bfbd0b377c2be24cf", "score": "0.4849192", "text": "@Override\r\n\tpublic void visit(EqualsTo eqlExp) {\n\t\tExpression leftExp = eqlExp.getLeftExpression();\r\n\t\tleftExp.accept(this);\r\n\t\tString leftValue = this.getCmpValue();\r\n\t\tExpression rightExp = eqlExp.getRightExpression();\r\n\t\trightExp.accept(this);\r\n\t\tString rightValue = this.getCmpValue();\r\n\t\tif (rightValue.contains(\"'\")) {\r\n\t\t\trightValue = rightValue.replaceAll(\"'\", \"\");\r\n\t\t}\r\n\r\n\t\tint cmpResult = 0;\r\n\t\tif (colType == Type.DATE || colType == Type.STRING) {\r\n\t\t\tcmpResult = leftValue.compareTo(rightValue);\r\n\t\t} else {\r\n\t\t\tcmpResult = Double.valueOf(leftValue).compareTo(\r\n\t\t\t\t\tDouble.valueOf((rightValue)));\r\n\t\t}\r\n\r\n\t\tif (cmpResult == 0) {\r\n\t\t\tBoolValue = true;\r\n\t\t} else {\r\n\t\t\tBoolValue = false;\r\n\t\t}\r\n\r\n\t}", "title": "" }, { "docid": "d81b3dafaeff2800f42f748d8b30cf2e", "score": "0.48336694", "text": "@Override\n public TransferResult<SymbolicValue, SymbolicStore> visitEqualTo(\n EqualToNode n, TransferInput<SymbolicValue, SymbolicStore> p) {\n SymbolicStore thenStore = p.getRegularStore();\n SymbolicStore elseStore = p.getRegularStore();\n SymbolicValue left = thenStore.getOrCreateSymbolicValue(n.getLeftOperand());\n SymbolicValue right = thenStore.getOrCreateSymbolicValue(n.getRightOperand());\n constraintManager.addConstraint(left, Constraint.TYPE.EQUALTO, right);\n return new ConditionalTransferResult<>(null, thenStore, elseStore);\n }", "title": "" }, { "docid": "c162fab4f4463c2de95a2298ad1ed323", "score": "0.48321965", "text": "public IQueryResult addQueryEquality(EqualityLiteral equality, Clause clause);", "title": "" }, { "docid": "dcdce1661a2353311ce321aa5c7ae067", "score": "0.48040622", "text": "public boolean eq(Money aThat) {\n checkCurrenciesMatch(aThat);\n return compareAmount(aThat) == 0;\n }", "title": "" }, { "docid": "e52b29ef8884d12c270ac9c65cc19414", "score": "0.48038948", "text": "public <E> Concatenator EQUALS(E value) {\n\t\tgetBooleanOp().setOperator(Operator.EQUALS);\n\t\treturn this.operateOn(value);\n\t}", "title": "" }, { "docid": "6889365da5bc623077cffda063ece7f8", "score": "0.47838274", "text": "public boolean supportsCorrelatedSubQuery();", "title": "" }, { "docid": "16176cecb5cd9d13fd3f618c9c430b8c", "score": "0.47784266", "text": "public Expression evaluate() {\n\t\tNumber lhn=lhs.getNumber();\n\t\tif(lhn!=null) {\n\t\t\tNumber rhn=rhs.getNumber();\n\t\t\tif(rhn!=null) return(Constant.evaluate(lhn,opr,rhn));\n\t\t}\n\t\treturn(this);\n\t}", "title": "" }, { "docid": "e3f43eef5164cb7689df088ac2c59617", "score": "0.47734484", "text": "public void testQueryOneResult() {\n\t\tRandom rand = new Random();\t\t\n\t\tcreateTable(\"gnibbel\");\n\t\tString[] strings = new String[1000];\n\t\tfor (int i = 0; i < 1000; i++) {\n\t\t\tstrings[i] = rand.nextInt()+\"\";\n\t\t\tdbinterface.dbUpdate(\"INSERT INTO gnibbel(pkey, s) VALUES (\"+i+\",\"+strings[i]+\")\");\t\t\t\n\t\t}\n\t\tfor (int i = 0; i < 1000; i++) {\n\t\t\tassertEquals(strings[i],dbinterface.queryOneResult(\"SELECT s from gnibbel where pkey=\"+i));\n\t\t\tassertEquals(i+\"\",dbinterface.queryOneResult(\"SELECT pkey from gnibbel where pkey=\"+i));\n\t\t}\t\t\n\t\tassertNull(dbinterface.queryOneResult(\"SELECT s from gnibbel where pkey=2000\"));\n\t}", "title": "" }, { "docid": "01eeb0180a326a0d2ecb368afd897101", "score": "0.47722548", "text": "protected void assertPlanEquals(String expected, String query) throws ParseException {\n // first do the quick check\n if (expected.equals(query)) {\n return;\n }\n\n ASTJexlScript expectedTree = JexlASTHelper.parseJexlQuery(expected);\n expectedTree = TreeFlatteningRebuildingVisitor.flattenAll(expectedTree);\n ASTJexlScript queryTree = JexlASTHelper.parseJexlQuery(query);\n queryTree = TreeFlatteningRebuildingVisitor.flattenAll(queryTree);\n TreeEqualityVisitor.Comparison comparison = TreeEqualityVisitor.checkEquality(expectedTree, queryTree);\n if (!comparison.isEqual()) {\n throw new ComparisonFailure(comparison.getReason(), expected, query);\n }\n }", "title": "" }, { "docid": "0fc48937da72fb58bfb95f2a12edc40e", "score": "0.47668415", "text": "public Expr getOperand() {\n return (Expr)getChild(0);\n }", "title": "" }, { "docid": "dfadcbb592b71e18ab88f68d015edd1f", "score": "0.47596553", "text": "protected String sqlForSubquery(String subquery, String alias) {\n\t\treturn \"(\" + subquery + \") as \" + alias;\n\t}", "title": "" }, { "docid": "bd59b1b891bead65bfac56a0b8e68e83", "score": "0.4759627", "text": "@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof Resultstemp)) {\r\n return false;\r\n }\r\n Resultstemp other = (Resultstemp) object;\r\n if ((this.idresult == null && other.idresult != null) || (this.idresult != null && !this.idresult.equals(other.idresult))) {\r\n return false;\r\n }\r\n return true;\r\n }", "title": "" }, { "docid": "140cda84070ff51054d655b95037e1f5", "score": "0.47479165", "text": "public LnwGeSubquery(String column, LnwQuery subquery) {\n\t\tsuper(column, subquery);\n\t}", "title": "" }, { "docid": "885a635cfbdea1e69e27912a66a79f11", "score": "0.4729555", "text": "R visit(ASTEqualExpr node) throws FFaplException;", "title": "" }, { "docid": "34d3353791140c5c264ea91c5ecfd1db", "score": "0.4716146", "text": "@Override\n public RAny execute(Frame frame, RAny lhs, RAny rhs) {\n try {\n throw new UnexpectedResultException(null);\n } catch (UnexpectedResultException e) {\n ValueCopy.Impl copy = determineCopyImplementation(lhs, rhs);\n if (copy instanceof ValueCopy.Duplicate) {\n return replace(new SpecializedDuplicate(this, (ValueCopy.Duplicate) copy)).execute(frame, lhs, rhs);\n } else {\n return replace(new Specialized(this, copy)).execute(frame, lhs, rhs);\n }\n }\n }", "title": "" }, { "docid": "2928555ff2bb1036c5de65fc1bef4c46", "score": "0.4712632", "text": "@Override\n public boolean equals(Object other) {\n if (this == other) {\n return true;\n }\n if (! (other instanceof IntervalTree)) {\n return false;\n }\n return this.evaluate().equals(((IntervalTree) other).evaluate());\n }", "title": "" }, { "docid": "ddc285fa5e705fa1ae52e9092944efee", "score": "0.47124037", "text": "public Object evaluate(tsRow row) throws tinySQLException\n {\n if (!valueSet)\n throw new tinySQLException(\"Parameter not set\");\n\n return value;\n }", "title": "" }, { "docid": "45e16b920de060d942f89c73c1005957", "score": "0.47006446", "text": "public final milesqlParser.eq_subexpr_return eq_subexpr() throws RecognitionException {\n milesqlParser.eq_subexpr_return retval = new milesqlParser.eq_subexpr_return();\n retval.start = input.LT(1);\n\n\n Object root_0 = null;\n\n Token column_name=null;\n Token leq=null;\n Token column_name2=null;\n Token ll=null;\n Token rr=null;\n Token column_name3=null;\n Token column_name5=null;\n Token column_name4=null;\n Token BETWEEN93=null;\n Token COMMA94=null;\n Token IN95=null;\n Token LPAREN96=null;\n Token COMMA97=null;\n Token RPAREN98=null;\n Token MATCH99=null;\n Token LPAREN100=null;\n Token COMMA101=null;\n Token RPAREN102=null;\n Token IN103=null;\n Token LPAREN104=null;\n Token RPAREN105=null;\n milesqlParser.literal_value_return lv =null;\n\n milesqlParser.literal_value_return lv1 =null;\n\n milesqlParser.literal_value_return lv2 =null;\n\n milesqlParser.literal_value_return lv3 =null;\n\n milesqlParser.literal_value_return lv4 =null;\n\n milesqlParser.literal_value_return lv5 =null;\n\n milesqlParser.literal_value_return lv6 =null;\n\n milesqlParser.select_stmt_return ss =null;\n\n\n Object column_name_tree=null;\n Object leq_tree=null;\n Object column_name2_tree=null;\n Object ll_tree=null;\n Object rr_tree=null;\n Object column_name3_tree=null;\n Object column_name5_tree=null;\n Object column_name4_tree=null;\n Object BETWEEN93_tree=null;\n Object COMMA94_tree=null;\n Object IN95_tree=null;\n Object LPAREN96_tree=null;\n Object COMMA97_tree=null;\n Object RPAREN98_tree=null;\n Object MATCH99_tree=null;\n Object LPAREN100_tree=null;\n Object COMMA101_tree=null;\n Object RPAREN102_tree=null;\n Object IN103_tree=null;\n Object LPAREN104_tree=null;\n Object RPAREN105_tree=null;\n\n try {\n // E:\\\\workcode\\\\mile\\\\ctumile\\\\ctumile_v6\\\\mergeserver\\\\server\\\\src\\\\main\\\\java\\\\com\\\\alipay\\\\mile\\\\server\\\\T2\\\\milesql.g:499:2: (column_name= ( ID | INTEGER ) leq= ( LESS | LESS_OR_EQ | GREATER | GREATER_OR_EQ | EQUALS | NOT_EQUALS1 | NOT_EQUALS2 ) lv= literal_value |column_name2= ( ID | INTEGER ) BETWEEN ll= ( LPAREN | LPAREN_SQUARE ) lv1= literal_value COMMA lv2= literal_value rr= ( RPAREN | RPAREN_SQUARE ) |column_name3= ( ID | INTEGER ) IN LPAREN lv3= literal_value ( COMMA lv4= literal_value )* RPAREN |column_name5= ( ID | INTEGER ) MATCH LPAREN lv5= literal_value ( COMMA lv6= literal_value )* RPAREN |column_name4= ( ID | INTEGER ) IN LPAREN ss= select_stmt RPAREN )\n int alt50=5;\n int LA50_0 = input.LA(1);\n\n if ( (LA50_0==ID||LA50_0==INTEGER) ) {\n switch ( input.LA(2) ) {\n case EQUALS:\n case GREATER:\n case GREATER_OR_EQ:\n case LESS:\n case LESS_OR_EQ:\n case NOT_EQUALS1:\n case NOT_EQUALS2:\n {\n alt50=1;\n }\n break;\n case BETWEEN:\n {\n alt50=2;\n }\n break;\n case IN:\n {\n int LA50_4 = input.LA(3);\n\n if ( (LA50_4==LPAREN) ) {\n int LA50_6 = input.LA(4);\n\n if ( (LA50_6==FLOAT||LA50_6==INTEGER||LA50_6==QUESTION||LA50_6==STRING) ) {\n alt50=3;\n }\n else if ( (LA50_6==SELECT) ) {\n alt50=5;\n }\n else {\n NoViableAltException nvae =\n new NoViableAltException(\"\", 50, 6, input);\n\n throw nvae;\n\n }\n }\n else {\n NoViableAltException nvae =\n new NoViableAltException(\"\", 50, 4, input);\n\n throw nvae;\n\n }\n }\n break;\n case MATCH:\n {\n alt50=4;\n }\n break;\n default:\n NoViableAltException nvae =\n new NoViableAltException(\"\", 50, 1, input);\n\n throw nvae;\n\n }\n\n }\n else {\n NoViableAltException nvae =\n new NoViableAltException(\"\", 50, 0, input);\n\n throw nvae;\n\n }\n switch (alt50) {\n case 1 :\n // E:\\\\workcode\\\\mile\\\\ctumile\\\\ctumile_v6\\\\mergeserver\\\\server\\\\src\\\\main\\\\java\\\\com\\\\alipay\\\\mile\\\\server\\\\T2\\\\milesql.g:499:4: column_name= ( ID | INTEGER ) leq= ( LESS | LESS_OR_EQ | GREATER | GREATER_OR_EQ | EQUALS | NOT_EQUALS1 | NOT_EQUALS2 ) lv= literal_value\n {\n root_0 = (Object)adaptor.nil();\n\n\n column_name=(Token)input.LT(1);\n\n if ( input.LA(1)==ID||input.LA(1)==INTEGER ) {\n input.consume();\n adaptor.addChild(root_0, \n (Object)adaptor.create(column_name)\n );\n state.errorRecovery=false;\n }\n else {\n MismatchedSetException mse = new MismatchedSetException(null,input);\n throw mse;\n }\n\n\n leq=(Token)input.LT(1);\n\n if ( input.LA(1)==EQUALS||(input.LA(1) >= GREATER && input.LA(1) <= GREATER_OR_EQ)||(input.LA(1) >= LESS && input.LA(1) <= LESS_OR_EQ)||(input.LA(1) >= NOT_EQUALS1 && input.LA(1) <= NOT_EQUALS2) ) {\n input.consume();\n adaptor.addChild(root_0, \n (Object)adaptor.create(leq)\n );\n state.errorRecovery=false;\n }\n else {\n MismatchedSetException mse = new MismatchedSetException(null,input);\n throw mse;\n }\n\n\n pushFollow(FOLLOW_literal_value_in_eq_subexpr1678);\n lv=literal_value();\n\n state._fsp--;\n\n adaptor.addChild(root_0, lv.getTree());\n\n\n \tColumnExp columnExp = new ColumnExp();\n \tretval.expression = columnExp;\n \tFieldDesc fd =new FieldDesc();\n \tfd.fieldName = column_name.getText().trim();\n \tcolumnExp.values = new ArrayList();\n columnExp.values.add(lv.valueDesc);\n \tcolumnExp.column = fd;\n \tString tag= leq.getText().trim();\n if(tag.equals(\"=\")){\n \t\tcolumnExp.comparetor = Constants.EXP_COMPARE_EQUALS;\n \t}else if(tag.equals(\"<\")){\n \t\tcolumnExp.comparetor = Constants.EXP_COMPARE_LT;\n \t}else if(tag.equals(\"<=\")){\n \t\tcolumnExp.comparetor = Constants.EXP_COMPARE_LET;\n \t}else if(tag.equals(\">\")){\n \t\tcolumnExp.comparetor = Constants.EXP_COMPARE_GT;\n \t}else if(tag.equals(\">=\")){\n \t\tcolumnExp.comparetor = Constants.EXP_COMPARE_GET;\n \t}else if(tag.equals(\"<>\")){\n \t\tcolumnExp.comparetor = Constants.EXP_COMPARE_NOT_EQUALS;\n \t}else if(tag.equals(\"!=\")){\n \t\tcolumnExp.comparetor = Constants.EXP_COMPARE_NOT_EQUALS;\n \t}\n \t\n\n }\n break;\n case 2 :\n // E:\\\\workcode\\\\mile\\\\ctumile\\\\ctumile_v6\\\\mergeserver\\\\server\\\\src\\\\main\\\\java\\\\com\\\\alipay\\\\mile\\\\server\\\\T2\\\\milesql.g:525:4: column_name2= ( ID | INTEGER ) BETWEEN ll= ( LPAREN | LPAREN_SQUARE ) lv1= literal_value COMMA lv2= literal_value rr= ( RPAREN | RPAREN_SQUARE )\n {\n root_0 = (Object)adaptor.nil();\n\n\n column_name2=(Token)input.LT(1);\n\n if ( input.LA(1)==ID||input.LA(1)==INTEGER ) {\n input.consume();\n adaptor.addChild(root_0, \n (Object)adaptor.create(column_name2)\n );\n state.errorRecovery=false;\n }\n else {\n MismatchedSetException mse = new MismatchedSetException(null,input);\n throw mse;\n }\n\n\n BETWEEN93=(Token)match(input,BETWEEN,FOLLOW_BETWEEN_in_eq_subexpr1695); \n BETWEEN93_tree = \n (Object)adaptor.create(BETWEEN93)\n ;\n adaptor.addChild(root_0, BETWEEN93_tree);\n\n\n ll=(Token)input.LT(1);\n\n if ( (input.LA(1) >= LPAREN && input.LA(1) <= LPAREN_SQUARE) ) {\n input.consume();\n adaptor.addChild(root_0, \n (Object)adaptor.create(ll)\n );\n state.errorRecovery=false;\n }\n else {\n MismatchedSetException mse = new MismatchedSetException(null,input);\n throw mse;\n }\n\n\n pushFollow(FOLLOW_literal_value_in_eq_subexpr1707);\n lv1=literal_value();\n\n state._fsp--;\n\n adaptor.addChild(root_0, lv1.getTree());\n\n COMMA94=(Token)match(input,COMMA,FOLLOW_COMMA_in_eq_subexpr1709); \n COMMA94_tree = \n (Object)adaptor.create(COMMA94)\n ;\n adaptor.addChild(root_0, COMMA94_tree);\n\n\n pushFollow(FOLLOW_literal_value_in_eq_subexpr1713);\n lv2=literal_value();\n\n state._fsp--;\n\n adaptor.addChild(root_0, lv2.getTree());\n\n rr=(Token)input.LT(1);\n\n if ( (input.LA(1) >= RPAREN && input.LA(1) <= RPAREN_SQUARE) ) {\n input.consume();\n adaptor.addChild(root_0, \n (Object)adaptor.create(rr)\n );\n state.errorRecovery=false;\n }\n else {\n MismatchedSetException mse = new MismatchedSetException(null,input);\n throw mse;\n }\n\n\n\n \tColumnExp columnExp = new ColumnExp();\n \tretval.expression = columnExp;\n \tFieldDesc fd =new FieldDesc();\n \tfd.fieldName = column_name2.getText().trim();\n \tcolumnExp.values = new ArrayList();\n columnExp.values.add(lv1.valueDesc);\n columnExp.values.add(lv2.valueDesc);\n \tcolumnExp.column = fd;\n \tString tagl= ll.getText().trim();\n \tString tagr= rr.getText().trim();\n if(tagl.equals(\"(\")&&tagr.equals(\")\")){\n \t\tcolumnExp.comparetor = Constants.EXP_COMPARE_BETWEEN_LG;\n \t}else if(tagl.equals(\"(\")&&tagr.equals(\"]\")){\n \t\tcolumnExp.comparetor = Constants.EXP_COMPARE_BETWEEN_LGE;\n \t}else if(tagl.equals(\"[\")&&tagr.equals(\"]\")){\n \t\tcolumnExp.comparetor = Constants.EXP_COMPARE_BETWEEN_LEGE;\n \t}else if(tagl.equals(\"[\")&&tagr.equals(\")\")){\n \t\tcolumnExp.comparetor = Constants.EXP_COMPARE_BETWEEN_LEG;\n \t}\n \t\n\n }\n break;\n case 3 :\n // E:\\\\workcode\\\\mile\\\\ctumile\\\\ctumile_v6\\\\mergeserver\\\\server\\\\src\\\\main\\\\java\\\\com\\\\alipay\\\\mile\\\\server\\\\T2\\\\milesql.g:547:4: column_name3= ( ID | INTEGER ) IN LPAREN lv3= literal_value ( COMMA lv4= literal_value )* RPAREN\n {\n root_0 = (Object)adaptor.nil();\n\n\n column_name3=(Token)input.LT(1);\n\n if ( input.LA(1)==ID||input.LA(1)==INTEGER ) {\n input.consume();\n adaptor.addChild(root_0, \n (Object)adaptor.create(column_name3)\n );\n state.errorRecovery=false;\n }\n else {\n MismatchedSetException mse = new MismatchedSetException(null,input);\n throw mse;\n }\n\n\n IN95=(Token)match(input,IN,FOLLOW_IN_in_eq_subexpr1738); \n IN95_tree = \n (Object)adaptor.create(IN95)\n ;\n adaptor.addChild(root_0, IN95_tree);\n\n\n LPAREN96=(Token)match(input,LPAREN,FOLLOW_LPAREN_in_eq_subexpr1740); \n LPAREN96_tree = \n (Object)adaptor.create(LPAREN96)\n ;\n adaptor.addChild(root_0, LPAREN96_tree);\n\n\n pushFollow(FOLLOW_literal_value_in_eq_subexpr1744);\n lv3=literal_value();\n\n state._fsp--;\n\n adaptor.addChild(root_0, lv3.getTree());\n\n\n \tColumnExp columnExp = new ColumnExp();\n \tretval.expression = columnExp;\n \tFieldDesc fd =new FieldDesc();\n \tfd.fieldName = column_name3.getText().trim();\n \tcolumnExp.values = new ArrayList();\n columnExp.values.add(lv3.valueDesc);\n \tcolumnExp.column = fd;\n \tcolumnExp.comparetor = Constants.EXP_COMPARE_IN;\n \t\n\n // E:\\\\workcode\\\\mile\\\\ctumile\\\\ctumile_v6\\\\mergeserver\\\\server\\\\src\\\\main\\\\java\\\\com\\\\alipay\\\\mile\\\\server\\\\T2\\\\milesql.g:558:2: ( COMMA lv4= literal_value )*\n loop48:\n do {\n int alt48=2;\n int LA48_0 = input.LA(1);\n\n if ( (LA48_0==COMMA) ) {\n alt48=1;\n }\n\n\n switch (alt48) {\n \tcase 1 :\n \t // E:\\\\workcode\\\\mile\\\\ctumile\\\\ctumile_v6\\\\mergeserver\\\\server\\\\src\\\\main\\\\java\\\\com\\\\alipay\\\\mile\\\\server\\\\T2\\\\milesql.g:558:3: COMMA lv4= literal_value\n \t {\n \t COMMA97=(Token)match(input,COMMA,FOLLOW_COMMA_in_eq_subexpr1752); \n \t COMMA97_tree = \n \t (Object)adaptor.create(COMMA97)\n \t ;\n \t adaptor.addChild(root_0, COMMA97_tree);\n\n\n \t pushFollow(FOLLOW_literal_value_in_eq_subexpr1756);\n \t lv4=literal_value();\n\n \t state._fsp--;\n\n \t adaptor.addChild(root_0, lv4.getTree());\n\n\n \t \tcolumnExp.values.add(lv4.valueDesc);\n \t \t\n\n \t }\n \t break;\n\n \tdefault :\n \t break loop48;\n }\n } while (true);\n\n\n RPAREN98=(Token)match(input,RPAREN,FOLLOW_RPAREN_in_eq_subexpr1764); \n RPAREN98_tree = \n (Object)adaptor.create(RPAREN98)\n ;\n adaptor.addChild(root_0, RPAREN98_tree);\n\n\n }\n break;\n case 4 :\n // E:\\\\workcode\\\\mile\\\\ctumile\\\\ctumile_v6\\\\mergeserver\\\\server\\\\src\\\\main\\\\java\\\\com\\\\alipay\\\\mile\\\\server\\\\T2\\\\milesql.g:562:4: column_name5= ( ID | INTEGER ) MATCH LPAREN lv5= literal_value ( COMMA lv6= literal_value )* RPAREN\n {\n root_0 = (Object)adaptor.nil();\n\n\n column_name5=(Token)input.LT(1);\n\n if ( input.LA(1)==ID||input.LA(1)==INTEGER ) {\n input.consume();\n adaptor.addChild(root_0, \n (Object)adaptor.create(column_name5)\n );\n state.errorRecovery=false;\n }\n else {\n MismatchedSetException mse = new MismatchedSetException(null,input);\n throw mse;\n }\n\n\n MATCH99=(Token)match(input,MATCH,FOLLOW_MATCH_in_eq_subexpr1777); \n MATCH99_tree = \n (Object)adaptor.create(MATCH99)\n ;\n adaptor.addChild(root_0, MATCH99_tree);\n\n\n LPAREN100=(Token)match(input,LPAREN,FOLLOW_LPAREN_in_eq_subexpr1779); \n LPAREN100_tree = \n (Object)adaptor.create(LPAREN100)\n ;\n adaptor.addChild(root_0, LPAREN100_tree);\n\n\n pushFollow(FOLLOW_literal_value_in_eq_subexpr1783);\n lv5=literal_value();\n\n state._fsp--;\n\n adaptor.addChild(root_0, lv5.getTree());\n\n\n \tColumnExp columnExp = new ColumnExp();\n \tretval.expression = columnExp;\n \tFieldDesc fd =new FieldDesc();\n \tfd.fieldName = \"$\" + column_name5.getText().trim();\n columnExp.values = new ArrayList();\n columnExp.values.add(lv5.valueDesc);\n \tcolumnExp.column = fd;\n \tcolumnExp.comparetor = Constants.EXP_COMPARE_MATCH;\n \t\n\n // E:\\\\workcode\\\\mile\\\\ctumile\\\\ctumile_v6\\\\mergeserver\\\\server\\\\src\\\\main\\\\java\\\\com\\\\alipay\\\\mile\\\\server\\\\T2\\\\milesql.g:573:2: ( COMMA lv6= literal_value )*\n loop49:\n do {\n int alt49=2;\n int LA49_0 = input.LA(1);\n\n if ( (LA49_0==COMMA) ) {\n alt49=1;\n }\n\n\n switch (alt49) {\n \tcase 1 :\n \t // E:\\\\workcode\\\\mile\\\\ctumile\\\\ctumile_v6\\\\mergeserver\\\\server\\\\src\\\\main\\\\java\\\\com\\\\alipay\\\\mile\\\\server\\\\T2\\\\milesql.g:573:3: COMMA lv6= literal_value\n \t {\n \t COMMA101=(Token)match(input,COMMA,FOLLOW_COMMA_in_eq_subexpr1791); \n \t COMMA101_tree = \n \t (Object)adaptor.create(COMMA101)\n \t ;\n \t adaptor.addChild(root_0, COMMA101_tree);\n\n\n \t pushFollow(FOLLOW_literal_value_in_eq_subexpr1795);\n \t lv6=literal_value();\n\n \t state._fsp--;\n\n \t adaptor.addChild(root_0, lv6.getTree());\n\n\n \t \tcolumnExp.values.add(lv6.valueDesc);\n \t \t\n\n \t }\n \t break;\n\n \tdefault :\n \t break loop49;\n }\n } while (true);\n\n\n RPAREN102=(Token)match(input,RPAREN,FOLLOW_RPAREN_in_eq_subexpr1804); \n RPAREN102_tree = \n (Object)adaptor.create(RPAREN102)\n ;\n adaptor.addChild(root_0, RPAREN102_tree);\n\n\n }\n break;\n case 5 :\n // E:\\\\workcode\\\\mile\\\\ctumile\\\\ctumile_v6\\\\mergeserver\\\\server\\\\src\\\\main\\\\java\\\\com\\\\alipay\\\\mile\\\\server\\\\T2\\\\milesql.g:578:4: column_name4= ( ID | INTEGER ) IN LPAREN ss= select_stmt RPAREN\n {\n root_0 = (Object)adaptor.nil();\n\n\n column_name4=(Token)input.LT(1);\n\n if ( input.LA(1)==ID||input.LA(1)==INTEGER ) {\n input.consume();\n adaptor.addChild(root_0, \n (Object)adaptor.create(column_name4)\n );\n state.errorRecovery=false;\n }\n else {\n MismatchedSetException mse = new MismatchedSetException(null,input);\n throw mse;\n }\n\n\n IN103=(Token)match(input,IN,FOLLOW_IN_in_eq_subexpr1818); \n IN103_tree = \n (Object)adaptor.create(IN103)\n ;\n adaptor.addChild(root_0, IN103_tree);\n\n\n LPAREN104=(Token)match(input,LPAREN,FOLLOW_LPAREN_in_eq_subexpr1820); \n LPAREN104_tree = \n (Object)adaptor.create(LPAREN104)\n ;\n adaptor.addChild(root_0, LPAREN104_tree);\n\n\n pushFollow(FOLLOW_select_stmt_in_eq_subexpr1824);\n ss=select_stmt();\n\n state._fsp--;\n\n adaptor.addChild(root_0, ss.getTree());\n\n RPAREN105=(Token)match(input,RPAREN,FOLLOW_RPAREN_in_eq_subexpr1826); \n RPAREN105_tree = \n (Object)adaptor.create(RPAREN105)\n ;\n adaptor.addChild(root_0, RPAREN105_tree);\n\n\n\n \tColumnSubSelectExp columnSubSelectExp = new ColumnSubSelectExp();\n \tretval.expression = columnSubSelectExp;\n \tFieldDesc fd =new FieldDesc();\n \tfd.fieldName = column_name4.getText().trim();\n \tcolumnSubSelectExp.subQueryStatement = ss.queryStatement;\n \tcolumnSubSelectExp.column = fd;\n \tcolumnSubSelectExp.comparetor = Constants.EXP_COMPARE_IN;\n \t\n\n }\n break;\n\n }\n retval.stop = input.LT(-1);\n\n\n retval.tree = (Object)adaptor.rulePostProcessing(root_0);\n adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);\n\n }\n\n catch (RecognitionException el) {\n throw el;\n }\n\n finally {\n \t// do for sure before leaving\n }\n return retval;\n }", "title": "" }, { "docid": "8b849d381ebd143a9d638835ea6b4817", "score": "0.46909714", "text": "T getOperand();", "title": "" }, { "docid": "9c3c582282276081f75718fef8098227", "score": "0.4679897", "text": "@Test\n public void testSelectQueryWithWhereClauseOfEqual() throws QuarkException, SQLException {\n String query = \"select product_id, shelf_width from product where product_id = 10\";\n QuarkTestUtil.checkParsedSql(\n query,\n info,\n \"SELECT PRODUCT_ID, SHELF_WIDTH \"\n + \"FROM FOODMART.PRODUCT WHERE PRODUCT_ID = 10\");\n }", "title": "" }, { "docid": "344d4f29c577b42598c1987102fed398", "score": "0.46791378", "text": "public boolean evaluate() {\n return operator.calculate(left, right);\n }", "title": "" }, { "docid": "c67c60a4c5f06735eb91184c936894e2", "score": "0.46788412", "text": "boolean equalSubtrees(Object other) {\n if (!(other instanceof ConditionalExpression)) {\n return false; }\n ConditionalExpression o = (ConditionalExpression) other;\n return \n (ASTNode.equalNodes(getExpression(), o.getExpression())\n && ASTNode.equalNodes(getThenExpression(), o.getThenExpression())\n && ASTNode.equalNodes(getElseExpression(), o.getElseExpression())); }", "title": "" }, { "docid": "1684e42ca7f8669521fc88bc85ced239", "score": "0.46631977", "text": "public Object getEqualsTo() {\r\n return equalsTo;\r\n }", "title": "" }, { "docid": "b74d6661fa937d2cbcf346821a748066", "score": "0.46598417", "text": "@Test\n void CondTrue() {\n expectEvalTrue(\"(true ? 'a' : 'b') == 'a'\");\n }", "title": "" }, { "docid": "85455d5d99070c14f4587ccc94948342", "score": "0.46590364", "text": "@Override\n public boolean equals (final Object rs) {\n return rs instanceof ERXMoney && ((ERXMoney)rs).value == value;\n }", "title": "" }, { "docid": "de6c0f1e7d44f1b886bd89e839506810", "score": "0.46389726", "text": "private SqlNode rewriteSingleValueExpr(SqlNode aggCall,\n SqlDialect sqlDialect) {\n final SqlNode operand = ((SqlBasicCall) aggCall).operand(0);\n final SqlNode caseOperand;\n final SqlNode elseExpr;\n final SqlNode countCall =\n SqlStdOperatorTable.COUNT.createCall(POS, operand);\n\n final SqlLiteral nullLiteral = SqlLiteral.createNull(POS);\n final SqlNode wrappedOperand;\n switch (sqlDialect.getDatabaseProduct()) {\n case MYSQL:\n case HSQLDB:\n caseOperand = countCall;\n final SqlNodeList selectList = new SqlNodeList(POS);\n selectList.add(nullLiteral);\n final SqlNode unionOperand;\n switch (sqlDialect.getDatabaseProduct()) {\n case MYSQL:\n wrappedOperand = operand;\n unionOperand = new SqlSelect(POS, SqlNodeList.EMPTY, selectList,\n null, null, null, null, SqlNodeList.EMPTY, null, null, null);\n break;\n default:\n wrappedOperand = SqlStdOperatorTable.MIN.createCall(POS, operand);\n unionOperand = SqlStdOperatorTable.VALUES.createCall(POS,\n SqlLiteral.createApproxNumeric(\"0\", POS));\n }\n\n SqlCall unionAll = SqlStdOperatorTable.UNION_ALL\n .createCall(POS, unionOperand, unionOperand);\n\n final SqlNodeList subQuery = new SqlNodeList(POS);\n subQuery.add(unionAll);\n\n final SqlNodeList selectList2 = new SqlNodeList(POS);\n selectList2.add(nullLiteral);\n elseExpr = SqlStdOperatorTable.SCALAR_QUERY.createCall(POS, subQuery);\n break;\n\n default:\n LOGGER.info(\"SINGLE_VALUE rewrite not supported for \"\n + sqlDialect.getDatabaseProduct());\n return aggCall;\n }\n\n final SqlNodeList whenList = new SqlNodeList(POS);\n whenList.add(SqlLiteral.createExactNumeric(\"0\", POS));\n whenList.add(SqlLiteral.createExactNumeric(\"1\", POS));\n\n final SqlNodeList thenList = new SqlNodeList(POS);\n thenList.add(nullLiteral);\n thenList.add(wrappedOperand);\n\n SqlNode caseExpr =\n new SqlCase(POS, caseOperand, whenList, thenList, elseExpr);\n\n LOGGER.info(\"SINGLE_VALUE rewritten into [\" + caseExpr + \"]\");\n\n return caseExpr;\n }", "title": "" }, { "docid": "8b45114887816ed114b283f71cb23384", "score": "0.46358618", "text": "@Test public void testVirtualSubqueryINClause_8096() {\n helpPlan(\"SELECT * FROM vm1.sub1\", example1(), //$NON-NLS-1$\n new String[] {\"SELECT pm1.g1.e1, pm1.g1.e2, pm1.g1.e3, pm1.g1.e4 FROM pm1.g1\"} ); //$NON-NLS-1$\n }", "title": "" }, { "docid": "d626ae762da77894cbce16a0419d1175", "score": "0.46349967", "text": "public Object clone() {\n if (isEvaluated()) {\n return fValue;\n } else {\n ArithExpr t = new ArithExpr();\n if (lhs != null) {\n t.lhs = (NumberTerm) lhs.clone();\n }\n \n t.op = this.op;\n \n if (rhs != null) {\n t.rhs = (NumberTerm) rhs.clone();\n }\n return t;\n }\n }", "title": "" }, { "docid": "2542802343a09624b8a1d79bce5d5416", "score": "0.46233907", "text": "public final void mEQUALTO() throws RecognitionException {\n try {\n int _type = EQUALTO;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // C:\\\\Users\\\\Alex\\\\Dropbox\\\\EclipseWorkspace\\\\esper-compiler\\\\src\\\\compiler\\\\Esper.g:88:9: ( 'eq' | 'equal' )\n int alt4=2;\n int LA4_0 = input.LA(1);\n\n if ( (LA4_0=='e') ) {\n int LA4_1 = input.LA(2);\n\n if ( (LA4_1=='q') ) {\n int LA4_2 = input.LA(3);\n\n if ( (LA4_2=='u') ) {\n alt4=2;\n }\n else {\n alt4=1;\n }\n }\n else {\n NoViableAltException nvae =\n new NoViableAltException(\"\", 4, 1, input);\n\n throw nvae;\n\n }\n }\n else {\n NoViableAltException nvae =\n new NoViableAltException(\"\", 4, 0, input);\n\n throw nvae;\n\n }\n switch (alt4) {\n case 1 :\n // C:\\\\Users\\\\Alex\\\\Dropbox\\\\EclipseWorkspace\\\\esper-compiler\\\\src\\\\compiler\\\\Esper.g:88:11: 'eq'\n {\n match(\"eq\"); \n\n\n\n }\n break;\n case 2 :\n // C:\\\\Users\\\\Alex\\\\Dropbox\\\\EclipseWorkspace\\\\esper-compiler\\\\src\\\\compiler\\\\Esper.g:88:18: 'equal'\n {\n match(\"equal\"); \n\n\n\n }\n break;\n\n }\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n \t// do for sure before leaving\n }\n }", "title": "" }, { "docid": "dc6191f418780bd95424dec5eda15d16", "score": "0.46071017", "text": "public boolean isSame(OrmQueryDetail newQueryDetail) {\n\t\tif (tunedDetail == null) {\n\t\t\treturn false;\n\t\t}\n\t\treturn tunedDetail.isAutoFetchEqual(newQueryDetail);\n\t}", "title": "" }, { "docid": "932e00c22bbe1fa929e83adfacbda911", "score": "0.46049273", "text": "public Expression generateExpression(GenerationContext context) {\r\n SubqueryNode subqueryNode = (SubqueryNode)getLeft();\r\n ReportQuery reportQuery = subqueryNode.getReportQuery(context);\r\n // Replace the SELECT clause of the exists subquery by SELECT 1 to\r\n // avoid problems with databases not supporting multiple columns in the\r\n // subquery SELECT clause in SQL.\r\n // The original select clause expressions might include relationship\r\n // navigations which should result in FK joins in the generated SQL,\r\n // e.g. ... EXISTS (SELECT o.customer FROM Order o ...). Add the\r\n // select clause expressions as non fetch join attributes to the\r\n // ReportQuery representing the subquery. This make sure the FK joins\r\n // get generated. \r\n List items = reportQuery.getItems();\r\n for (Iterator i = items.iterator(); i.hasNext();) {\r\n ReportItem item = (ReportItem)i.next();\r\n Expression expr = item.getAttributeExpression();\r\n reportQuery.addNonFetchJoinedAttribute(expr);\r\n }\r\n reportQuery.clearItems();\r\n Expression one = new ConstantExpression(Integer.valueOf(1), new ExpressionBuilder());\r\n reportQuery.addItem(\"one\", one);\r\n reportQuery.dontUseDistinct();\r\n Expression expr = context.getBaseExpression();\r\n return notIndicated() ? expr.notExists(reportQuery) : \r\n expr.exists(reportQuery);\r\n }", "title": "" }, { "docid": "f8cdc6df44e2882f3a5e77d07fe22e27", "score": "0.4599244", "text": "public boolean supportsSubqueriesInQuantifieds() throws SQLException {\n return false;\n }", "title": "" }, { "docid": "645d660051da26a5152bd2d4e885854d", "score": "0.4595762", "text": "public static void testEquals_Success() {\r\n\t\tSystem.out.println(\"-->testEquals_Success()\");\r\n\t\tRedMartian r = new RedMartian(1,5,5);\r\n\t\tRedMartian v = new RedMartian(1,7,3);\r\n\t\tboolean e = r.equals(v);\r\n\t\tSystem.out.println(e);\r\n\t\tSystem.out.println(\"-----------------------\");\r\n\t\t}", "title": "" }, { "docid": "ef470d4e174b403c6fb63d11fb6745e5", "score": "0.45910954", "text": "@Test\n\tpublic void testEqualityExpr_fixture2_1()\n\t\tthrows Exception {\n\t\tXPathReader fixture = getFixture2();\n\n\t\tfixture.equalityExpr();\n\n\t\t// add additional test code here\n\t\t// An unexpected exception was thrown in user code while executing this test:\n\t\t// java.lang.NullPointerException\n\t\t// at com.werken.saxpath.XPathReader.LT(XPathReader.java:1051)\n\t\t// at com.werken.saxpath.XPathReader.LA(XPathReader.java:1046)\n\t\t// at com.werken.saxpath.XPathReader.unaryExpr(XPathReader.java:986)\n\t\t// at com.werken.saxpath.XPathReader.multiplicativeExpr(XPathReader.java:948)\n\t\t// at com.werken.saxpath.XPathReader.additiveExpr(XPathReader.java:919)\n\t\t// at com.werken.saxpath.XPathReader.relationalExpr(XPathReader.java:876)\n\t\t// at com.werken.saxpath.XPathReader.equalityExpr(XPathReader.java:847)\n\t}", "title": "" }, { "docid": "b204c785f9439bc95f03f59f42784fcd", "score": "0.4587494", "text": "public static Var expr() {\n return evaluateExpr(convertExpr(readExpr()));\n }", "title": "" }, { "docid": "f26239f899980e6ccbf452e1304f7295", "score": "0.45840582", "text": "@Test\r\n public void testEqualToSelf() {\r\n\r\n assertTrue(\"Class equal to itself.\", my_one.equals(my_one));\r\n }", "title": "" }, { "docid": "dac3d317c094787e58d849a96e97c817", "score": "0.45725593", "text": "@Test\n\tpublic void testEqualityExpr_fixture1_1()\n\t\tthrows Exception {\n\t\tXPathReader fixture = getFixture1();\n\n\t\tfixture.equalityExpr();\n\n\t\t// add additional test code here\n\t\t// An unexpected exception was thrown in user code while executing this test:\n\t\t// java.lang.NullPointerException\n\t\t// at com.werken.saxpath.XPathReader.LT(XPathReader.java:1051)\n\t\t// at com.werken.saxpath.XPathReader.LA(XPathReader.java:1046)\n\t\t// at com.werken.saxpath.XPathReader.unaryExpr(XPathReader.java:986)\n\t\t// at com.werken.saxpath.XPathReader.multiplicativeExpr(XPathReader.java:948)\n\t\t// at com.werken.saxpath.XPathReader.additiveExpr(XPathReader.java:919)\n\t\t// at com.werken.saxpath.XPathReader.relationalExpr(XPathReader.java:876)\n\t\t// at com.werken.saxpath.XPathReader.equalityExpr(XPathReader.java:847)\n\t}", "title": "" }, { "docid": "b50c01a92ca699cc32632ba207538098", "score": "0.4569488", "text": "public boolean deepEquals(Expression expr) {\n/* 337 */ if (!super.deepEquals(expr)) {\n/* 338 */ return false;\n/* */ }\n/* 340 */ FilterExprWalker walker = (FilterExprWalker)expr;\n/* 341 */ if (!this.m_expr.deepEquals(walker.m_expr)) {\n/* 342 */ return false;\n/* */ }\n/* 344 */ return true;\n/* */ }", "title": "" }, { "docid": "a49ea3da88477d0a466e25e196f7a646", "score": "0.45503712", "text": "@Override\n default int compareTo(QueryPlan other)\n {\n int results = Long.compare(getEstimatedResultRows(), other.getEstimatedResultRows());\n if (results != 0)\n return results;\n\n // In case of having the same number of estimated results, we favour the plan that involves more indexes.\n // This way, we honour the possible absence of ALLOW FILTERING in the CQL query. Also, this criteria should\n // not break the transitivity of this method because the estimated number of results for a plan is the\n // minimum of the estimates of its members.\n return Integer.compare(getIndexes().size(), other.getIndexes().size());\n }", "title": "" }, { "docid": "f1e66186cfb69249e30bbd5c9fca97cc", "score": "0.4546925", "text": "@Test\n void testGreaterThanEqualsInteger() {\n verify(\"SELECT * FROM Movies WHERE year >= 37\",\n\n null, \"SELECT * FROM Movies WHERE year = 36\",\n \"SELECT * FROM Movies WHERE year = 37\",\n \"SELECT * FROM Movies WHERE year = 38\"\n );\n }", "title": "" }, { "docid": "6e5e5f67f9b51015506391750d57d06c", "score": "0.45447907", "text": "@Override\n protected boolean dataEqualsImpl(AbstractOperation obj) {\n // The argument obj is always JoinQueryOperation or its descendant, because it has only abstract ancestors\n JoinQueryOperation castObj = (JoinQueryOperation)obj;\n\n return k == castObj.k && mu == castObj.mu;\n }", "title": "" }, { "docid": "de74eaa7f16ec77f43ec2e9d47173e8f", "score": "0.45440894", "text": "@SuppressWarnings({ \"unchecked\", \"rawtypes\" })\r\n\tprotected E uniqueResult(Query query) {\r\n\t\treturn (E) query.uniqueResult();\r\n\t}", "title": "" }, { "docid": "55af79f0f58b1541658abaae415ef3a7", "score": "0.45398855", "text": "@Test \n public void testCondEquality01() {\n test( 0, \"SELECT * FROM Employee WHERE fullName = 'Vaclav'\" );\n test( 1, \"SELECT * FROM Employee WHERE fullName = 'Vaclav Bartacek'\" );\n test( 0, \"SELECT * FROM Employee WHERE fullName = :1\", \"Vaclav\" );\n test( 1, \"SELECT * FROM Employee WHERE fullName = :1\", \"Vaclav Bartacek\" );\n }", "title": "" }, { "docid": "ba3a1f7863d77e3afab75fefd9f7e33d", "score": "0.4539656", "text": "@Override\n\tpublic boolean equal(Value e) {\n\t\treturn false;\n\t}", "title": "" }, { "docid": "56c3aa768dd2656eb97f79279aa3f87c", "score": "0.4536031", "text": "@Test\n public void testdoUpdate() {\n Query originalQuery = new Query(Criteria.where(\"_id\").is(\"parent_idchild\").and(\"someProperty\").is(\"someValue\"));\n Update update = new Update();\n update.set(\"someProperty\", \"someNewValue\");\n boolean result = underTest.subDoc(\"studentSectionAssociation\").doUpdate(originalQuery, update);\n assertTrue(result);\n\n originalQuery = new Query(Criteria.where(\"_id\").is(\"parent_idchild\").and(\"nonExistProperty\").is(\"someValue\"));\n update = new Update();\n update.set(\"nonExistProperty\", \"someNewValue\");\n result = underTest.subDoc(\"studentSectionAssociation\").doUpdate(originalQuery, update);\n assertFalse(result);\n\n }", "title": "" }, { "docid": "c0475c9911f10ebb679cd517632846a7", "score": "0.45336607", "text": "@Override\n public RAny execute(Frame frame, RAny lhs, RAny rhs) {\n try {\n throw new UnexpectedResultException(null);\n } catch (UnexpectedResultException e) {\n ValueCopy.Impl impl = determineCopyImplementation(lhs, rhs);\n if (impl == null) {\n if (DEBUG_UP) Utils.debug(\"CopyLhs -> Generalized (not know how to copy lhs)\");\n return UpdateArray.GenericSubset.replaceArrayUpdateTree(this).execute(frame, lhs, rhs);\n }\n return replace(new Specialized(this, impl)).execute(frame, lhs, rhs);\n }\n }", "title": "" }, { "docid": "1211ac7e3caac36f8ba6596ef2496ecb", "score": "0.45297953", "text": "private static int baseRawEqual(LuaState ls) {\n ls.checkAny(1);\n ls.checkAny(2);\n ls.pushBoolean(ls.rawEqual(1, 2));\n return 1;\n }", "title": "" }, { "docid": "d0b4c44c1ccc70feab72a5681ed5e271", "score": "0.45226306", "text": "public boolean equals(Object e) {\n return (e instanceof DelayedAggregateResults &&\n ((DelayedAggregateResults)e).pe == pe);\n }", "title": "" }, { "docid": "9adf709a007386ab492f60a83e74c711", "score": "0.45175776", "text": "@Test\n public void equalsTest() {\n assertNotEquals(this.substitution, null);\n assertNotEquals(this.substitution, new Object());\n\n assertNotEquals(new Substitution(new Variable(\"Y\"), Functor.atom(\"homer\")), this.substitution);\n assertNotEquals(new Substitution(new Variable(\"X\"), Functor.atom(\"bart\")), this.substitution);\n assertEquals(new Substitution(new Variable(\"X\"), Functor.atom(\"homer\")), this.substitution);\n }", "title": "" }, { "docid": "19cec6453b860b271efadc00aec88dc2", "score": "0.4511558", "text": "@Test\n public final void testLeftOuterJoinWithConstantExpr1() throws Exception {\n ResultSet res = executeQuery();\n assertResultSet(res);\n cleanupQuery(res);\n }", "title": "" }, { "docid": "a548a180450f22e473759cd458a8979a", "score": "0.4508949", "text": "public boolean equals(Object other) {\n return (other instanceof RootExpression);\n }", "title": "" }, { "docid": "a0096a8ad689ba902028cf4ee0f5214b", "score": "0.45015523", "text": "public final milesqlParser.and_subexpr_return and_subexpr() throws RecognitionException {\n milesqlParser.and_subexpr_return retval = new milesqlParser.and_subexpr_return();\n retval.start = input.LT(1);\n\n\n Object root_0 = null;\n\n Token LPAREN67=null;\n Token RPAREN68=null;\n milesqlParser.eq_subexpr_return eq_sub =null;\n\n milesqlParser.expr_return expr_sub =null;\n\n\n Object LPAREN67_tree=null;\n Object RPAREN68_tree=null;\n\n try {\n // E:\\\\workcode\\\\mile\\\\ctumile\\\\ctumile_v6\\\\mergeserver\\\\server\\\\src\\\\main\\\\java\\\\com\\\\alipay\\\\mile\\\\server\\\\T2\\\\milesql.g:374:2: (eq_sub= eq_subexpr | LPAREN expr_sub= expr RPAREN )\n int alt41=2;\n int LA41_0 = input.LA(1);\n\n if ( (LA41_0==ID||LA41_0==INTEGER) ) {\n alt41=1;\n }\n else if ( (LA41_0==LPAREN) ) {\n alt41=2;\n }\n else {\n NoViableAltException nvae =\n new NoViableAltException(\"\", 41, 0, input);\n\n throw nvae;\n\n }\n switch (alt41) {\n case 1 :\n // E:\\\\workcode\\\\mile\\\\ctumile\\\\ctumile_v6\\\\mergeserver\\\\server\\\\src\\\\main\\\\java\\\\com\\\\alipay\\\\mile\\\\server\\\\T2\\\\milesql.g:374:4: eq_sub= eq_subexpr\n {\n root_0 = (Object)adaptor.nil();\n\n\n pushFollow(FOLLOW_eq_subexpr_in_and_subexpr1212);\n eq_sub=eq_subexpr();\n\n state._fsp--;\n\n adaptor.addChild(root_0, eq_sub.getTree());\n\n\n \tretval.expression = eq_sub.expression;\n \t\n\n }\n break;\n case 2 :\n // E:\\\\workcode\\\\mile\\\\ctumile\\\\ctumile_v6\\\\mergeserver\\\\server\\\\src\\\\main\\\\java\\\\com\\\\alipay\\\\mile\\\\server\\\\T2\\\\milesql.g:378:4: LPAREN expr_sub= expr RPAREN\n {\n root_0 = (Object)adaptor.nil();\n\n\n LPAREN67=(Token)match(input,LPAREN,FOLLOW_LPAREN_in_and_subexpr1220); \n LPAREN67_tree = \n (Object)adaptor.create(LPAREN67)\n ;\n adaptor.addChild(root_0, LPAREN67_tree);\n\n\n pushFollow(FOLLOW_expr_in_and_subexpr1224);\n expr_sub=expr();\n\n state._fsp--;\n\n adaptor.addChild(root_0, expr_sub.getTree());\n\n RPAREN68=(Token)match(input,RPAREN,FOLLOW_RPAREN_in_and_subexpr1226); \n RPAREN68_tree = \n (Object)adaptor.create(RPAREN68)\n ;\n adaptor.addChild(root_0, RPAREN68_tree);\n\n\n\n \tretval.expression = expr_sub.expression;\n \t\n\n }\n break;\n\n }\n retval.stop = input.LT(-1);\n\n\n retval.tree = (Object)adaptor.rulePostProcessing(root_0);\n adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);\n\n }\n\n catch (RecognitionException el) {\n throw el;\n }\n\n finally {\n \t// do for sure before leaving\n }\n return retval;\n }", "title": "" }, { "docid": "07e38d50d6ecae3064a55cbbbd94d288", "score": "0.45014513", "text": "@Test\n void testEqualToString() {\n verify(\"SELECT * FROM table WHERE a = 'qwerty'\",\n\n null, \"SELECT * FROM table WHERE a = 'qwerty'\",\n \"SELECT * FROM table WHERE NOT (a = 'qwerty')\"\n );\n }", "title": "" }, { "docid": "838f6ad9e8a73badd11c31581ed36976", "score": "0.44996524", "text": "@Test\n public final void testLeftOuterJoinWithConstantExpr2() throws Exception {\n ResultSet res = executeQuery();\n assertResultSet(res);\n cleanupQuery(res);\n }", "title": "" }, { "docid": "5fb6a14f8be0fd9d395bd1f9dfc51c30", "score": "0.44983912", "text": "public Expression copy() {\n return new AndExpression(operand0.copy(), operand1.copy());\n }", "title": "" }, { "docid": "8c271b0446f345dfc0af9d7f558e7d28", "score": "0.44957182", "text": "public boolean equalto(int operand1, int operand2) {\n\t\treturn operand1==operand2;\n\t}", "title": "" }, { "docid": "7dd2a939ae82928189eafd3510ebed4b", "score": "0.4492154", "text": "private void equalButton() {\n\t\t\t\n\t\t\tif(resultDisplay) { //if the equal button is hit again while the result is still showing assign result to operand 1\n\t\t\t\t\n\t\t\t\tmodel.setOperand1(display2Content);\n\t\t\t\toperatorIsSet = true;\n\t\t\t\t\n\t\t\t}else {\n\t\t\t\t\n\t\t\t\tmodel.setOperand2(display2Content);\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tif(operatorIsSet) {\n\t\t\t\t\n\t\t\t\t//display result\n\t\t\t\tdisplay2Content = model.getResult();\n\t\t\t\t\n\t\t\t\t//Error checking\n\t\t\t\tif(display2Content.equals(\"DivideZero\")) {\n\t\t\t\t\t\n\t\t\t\t\tdisplay2.setText(\"Cannot divide by zero\");\n\t\t\t\t\terrorMode();\n\t\t\t\t\t\n\t\t\t\t}else if(display2Content.equals(\"NaN\")){\n\t\t\t\t\t\n\t\t\t\t\tdisplay2.setText(\"Result is undefined\");\n\t\t\t\t\terrorMode();\n\t\t\t\t\t\n\t\t\t\t}else if(display2Content.length() > 35){\n\t\t\t\t\t\n\t\t\t\t\tdisplay2.setText(\"Result is too long\");\n\t\t\t\t\terrorMode();\n\t\t\t\t\t\n\t\t\t\t}else if(display2Content.equals(\"Infinity\")){\n\t\t\t\t\t\n\t\t\t\t\tdisplay2.setText(display2Content);\n\t\t\t\t\terrorMode();\n\t\t\t\t\t\n\t\t\t\t}else {\n\t\t\t\t\n\t\t\t\t\tdisplay2.setText(display2Content);\n\t\t\t\t\tdisplay1.setText(\"\");\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//reset operand/operator indicators\n\t\t\t\toperand1IsSet = false;\n\t\t\t\toperand2IsSet = false;\n\t\t\t\toperatorIsSet = false;\n\t\t\t\t\n\t\t\t\tresultDisplay = true; // while result is displayed\n\t\t\t\n\t\t\t}\n\t\t\t\n\t\t}", "title": "" }, { "docid": "c3f824a49aefaeee94bc444338d0a2ee", "score": "0.449149", "text": "public abstract boolean isEqual(Object obj);", "title": "" }, { "docid": "56afbb7ae4287cacd433cfecbd31e7ce", "score": "0.4491345", "text": "public void setOperand(Expr node) {\n setChild(node, 0);\n }", "title": "" }, { "docid": "c74ce2f1741e630e039e7792033003e4", "score": "0.44878092", "text": "@Override\n public boolean equals(Object object) {\n if (!(object instanceof Query)) {\n return false;\n }\n Query other = (Query) object;\n if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {\n return false;\n }\n return true;\n }", "title": "" }, { "docid": "03aa787a2f8d86cb14727e494b242f43", "score": "0.44812894", "text": "@Test\n public void testEquals() {\n System.out.println(\"equals\");\n CounterVotesCount instance = new CounterVotesCount();\n CounterVotesCount instance2 = new CounterVotesCount();\n instance.setId(1);\n instance2.setId(2);\n boolean expResult = false;\n boolean result = instance.equals(instance2);\n assertEquals(expResult, result);\n }", "title": "" }, { "docid": "123ff4e292134b9c615ca8c75ad9e9de", "score": "0.4478222", "text": "@Test\n @Parameters(method = \"parametersForEquals\")\n public void testEquals(int value, Object compareTo,\n boolean expectedResult) {\n DtInteger instance = DtInteger.of(value);\n boolean result = instance.equals(compareTo);\n assertEquals(\"Equals method returned incorrect result\", expectedResult,\n result);\n }", "title": "" }, { "docid": "f48d99a98c51508d92a9fea1c7b389df", "score": "0.44766194", "text": "void evaluate(Assignment assignment, QueryContext context) {\n\n // Get the variable resolver and evaluate over this data.\n VariableResolver vresolver = getVariableResolver();\n TObject ob = assignment.getExpression().evaluate(null, vresolver, context);\n\n // Check the variable name is within this row.\n Variable variable = assignment.getVariable();\n int column = findFieldName(variable.getName());\n\n // Set the column to the resolved value.\n setColumnData(column, ob);\n }", "title": "" }, { "docid": "d747f015797aa960191107d80f94c72b", "score": "0.4470795", "text": "@Test\n public void queryInsideTest() throws StoreIndexException, IOException {\n if (tree.getRoot() == null) insert();\n final List<double[]> lDataTemp = new ArrayList<double[]>();\n for (int i = 0; i < lSize; i++) {\n lDataTemp.add(lData.get(i));\n }\n\n final GeneralEnvelope rG = new GeneralEnvelope(crs);\n rG.setEnvelope(getExtent(lData));\n\n int[] tabSearch = tree.searchID(rG);\n final TreeIdentifierIterator triter = tree.search(rG);\n final int[] tabIterSearch = new int[tabSearch.length];\n int tabID = 0;\n while (triter.hasNext()) {\n tabIterSearch[tabID++] = triter.nextInt();\n }\n assertTrue(\"comparison between tabSearch from iterator not equals with tabSearch\", compareID(tabSearch, tabIterSearch));\n assertTrue(compareLists(lDataTemp, Arrays.asList(getResult(tabSearch))));\n }", "title": "" }, { "docid": "a2fb61c306a2a1d1cf1ebd59f5d78f1b", "score": "0.44677967", "text": "@Test\n\tpublic void testIntSelect(){\n\t\tch.epfl.dias.ops.block.Scan scan = new ch.epfl.dias.ops.block.Scan(columnstoreData);\n\t\tch.epfl.dias.ops.block.Select sel = new ch.epfl.dias.ops.block.Select(scan, BinaryOp.EQ, 0, 3);\n\n\t\tch.epfl.dias.ops.block.Project proj = new ch.epfl.dias.ops.block.Project(sel, new int[]{3});\n\n\t\tDBColumn[] result = proj.execute();\n\n\t\t// This query should return only one result\n\t\tint output = result[0].getAsInteger()[0];\n\t\tassertTrue(output == 4);\n\t}", "title": "" }, { "docid": "2d1eab6ffe8877fa4fdbfc9e5b5aff06", "score": "0.44577855", "text": "public T caseEqual(Equal object) {\r\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "d5b8882a4d269d9af3ec939aa640dcac", "score": "0.44540408", "text": "@Override\n public final Condition equal(Row11<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11> row) {\n return compare(Comparator.EQUALS, row);\n }", "title": "" }, { "docid": "fd0033d821dd53911af6b4100daa0ccf", "score": "0.44530642", "text": "@Test\n void testAliasing() {\n verify(\"SELECT * FROM Movies AS M WHERE M.id = 8\",\n\n null, \"SELECT * FROM Movies AS M WHERE M.id = 9\",\n \"SELECT * FROM Movies AS M WHERE M.id = 8\",\n \"SELECT * FROM Movies AS M WHERE M.id = 7\"\n );\n }", "title": "" }, { "docid": "a93906170826cc993703d340aa66f7b9", "score": "0.44503805", "text": "@Test public void testCorrelatedSubqueryOverJoin() throws Exception {\n FakeCapabilitiesFinder capFinder = new FakeCapabilitiesFinder();\n BasicSourceCapabilities caps = TestOptimizer.getTypicalCapabilities();\n caps.setCapabilitySupport(Capability.QUERY_FROM_JOIN_INNER, true);\n caps.setCapabilitySupport(Capability.QUERY_FROM_GROUP_ALIAS, true);\n caps.setCapabilitySupport(Capability.QUERY_SUBQUERIES_CORRELATED, true);\n caps.setCapabilitySupport(Capability.CRITERIA_EXISTS, true);\n capFinder.addCapabilities(\"pm1\", caps); //$NON-NLS-1$\n\n QueryMetadataInterface metadata = RealMetadataFactory.example1Cached();\n\n String sql = \"select pm1.g1.e1 from pm1.g1, (select * from pm1.g2) y where (pm1.g1.e1 = y.e1) and exists (select e2 from pm1.g2 where e1 = y.e1) and exists (select e3 from pm1.g2 where e1 = y.e1)\"; //$NON-NLS-1$\n\n ProcessorPlan plan = helpPlan(sql, metadata, null, capFinder,\n new String[] {\"SELECT g_0.e1 FROM pm1.g1 AS g_0, pm1.g2 AS g_1 WHERE (g_0.e1 = g_1.e1) AND (EXISTS (SELECT g_2.e2 FROM pm1.g2 AS g_2 WHERE g_2.e1 = g_1.e1)) AND (EXISTS (SELECT g_3.e3 FROM pm1.g2 AS g_3 WHERE g_3.e1 = g_1.e1))\"}, ComparisonMode.EXACT_COMMAND_STRING); //$NON-NLS-1$\n\n checkNodeTypes(plan, FULL_PUSHDOWN);\n }", "title": "" }, { "docid": "a5b562301c2f33bf137b365c34a68523", "score": "0.44383568", "text": "public boolean isEqualNode(Node arg);", "title": "" }, { "docid": "407067a6154044715c5e450b8e83aef0", "score": "0.4436494", "text": "public void expressionChanged(Object evaluation) {\n\n\n\t String queryCondition = expression.toSQLString();\n\t // System.out.println(\"query condition \" + queryCondition);\n\n //headless conversion support\n setQueryCondition(queryCondition);\n //headless conversion support\n\n pushOutput(queryCondition,0);\n viewDone(\"Done\");\n }", "title": "" }, { "docid": "fe2a052bbfd8c32b317a0228eb8acbca", "score": "0.443269", "text": "public Criteria andParentEqualTo(Long value) {\n addCriterion(\"parent =\", value, \"parent\");\n return (Criteria) this;\n }", "title": "" }, { "docid": "4c10a0e600c2f06d3e4088aa69fa274b", "score": "0.44304147", "text": "@Test\n public void testEquals2() {\n System.out.println(\"equals\");\n Object obj = test;\n Path instance = test;\n boolean expResult = true;\n boolean result = instance.equals(obj);\n assertEquals(expResult, result);\n }", "title": "" }, { "docid": "f903f62d315a6cc9f3e62e8265517e08", "score": "0.44282266", "text": "public boolean selectionEquals(final RepositorySelection s) {\n \t\treturn selection.equals(s);\n \t}", "title": "" }, { "docid": "17bc346a17c5324df10058bc5f1c133d", "score": "0.44189304", "text": "protected abstract void set(ResultNode rhs);", "title": "" }, { "docid": "045cc80b7e0a1c5d1cdc9c04fe90568b", "score": "0.44172895", "text": "void eqExp()throws SyntaxException{\r\n\t\trelExp();\r\n\t\twhile(t.isKind(OP_EQ)||t.isKind(OP_NEQ)){\r\n\t\t\tconsume();\r\n\t\t\trelExp();\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "68f7214d97afbfd160a18d704e186289", "score": "0.4416692", "text": "@Override\n public Value eval(AnswerTable answerTable) {\n Value result = answerTable.get(this);\n return result == null ? new UnknownValue() : result;\n }", "title": "" }, { "docid": "c3ec17fe5651d2d0a5a789df2f287797", "score": "0.44060695", "text": "public boolean eq(final SeqType t) {\r\n return type == t.type && occ == t.occ;\r\n }", "title": "" }, { "docid": "3b59984eaf8d4d48d6497e22756c8609", "score": "0.4399996", "text": "@Override\n\tpublic boolean equivalent(final Examinable obj) {\n\t\tif (!(obj instanceof AssignmentStatement)) return false;\n\t\tfinal FProgram fp1 = new FProgram(ImmutableList.of(this));\n\t\tfinal FProgram fp2 = new FProgram(ImmutableList.of((AssignmentStatement)obj));\n\t\treturn fp1.equivalent(fp2);\n\t}", "title": "" }, { "docid": "77892b7fecf4baf9b6e021515712484a", "score": "0.43993872", "text": "EqualityExpression createEqualityExpression();", "title": "" }, { "docid": "77892b7fecf4baf9b6e021515712484a", "score": "0.43993872", "text": "EqualityExpression createEqualityExpression();", "title": "" }, { "docid": "ff6ebc7f967d8a1d19ee286ced91278e", "score": "0.43992615", "text": "public void testEq() {\n \n // 4 == ((7*0)+4)\n fProp.put(\"pred\", Boolean.TRUE);\n expTerm1 = Logic.equals(fourTermInt, Num.add(Num.mul(sevenTermInt, zeroTermInt), \n fourTermInt));\n binExpr1 = javafe.ast.BinaryExpr.make(TagConstants.STAR, sevenExprInt, zeroExprInt, 0);\n binExpr1 = javafe.ast.BinaryExpr.make(TagConstants.ADD, binExpr1, fourExprInt, 0);\n binExpr1 = javafe.ast.BinaryExpr.make(TagConstants.EQ, fourExprInt, binExpr1, 0);\n assertEquals(expTerm1.toString(), fVisitor.visitBinaryExpr(binExpr1, fProp).toString());\n \n // 4 == ((7*0)+4)\n fProp.put(\"pred\", Boolean.FALSE);\n expTerm1 = Bool.equals(fourTermInt, Num.add(Num.mul(sevenTermInt, zeroTermInt), \n fourTermInt)); \n assertEquals(expTerm1.toString(), fVisitor.visitBinaryExpr(binExpr1, fProp).toString());\n \n // x == 4\n fProp.put(\"pred\", Boolean.FALSE);\n binExpr2 = javafe.ast.BinaryExpr.make(TagConstants.EQ, xFieldAccessExprInt, \n fourExprInt, 0); \n expTerm2 = Bool.equals(xFieldAccessTermInt, fourTermInt); \n assertEquals(expTerm2.toString(), fVisitor.visitBinaryExpr(binExpr2, fProp).toString());\n \n // (x > 7 ) == (4 == y)\n fProp.put(\"pred\", Boolean.FALSE);\n binExpr1 = javafe.ast.BinaryExpr.make(TagConstants.GT, xFieldAccessExprInt, \n sevenExprInt, loc1);\n binExpr2 = javafe.ast.BinaryExpr.make(TagConstants.EQ, fourExprInt, \n yFieldAccessExprInt, loc2);\n binExpr = javafe.ast.BinaryExpr.make(TagConstants.EQ, binExpr1, binExpr2, loc2);\n expTerm2 = Bool.equals(Bool.gt(xFieldAccessTermInt, sevenTermInt), \n Bool.equals(fourTermInt, yFieldAccessTermInt)); \n String ow = fVisitor.visitBinaryExpr(binExpr2, fProp).toString();\n String tw = expTerm2.toString();\n assertEquals(expTerm2.toString(), fVisitor.visitBinaryExpr(binExpr, fProp).toString());\n // the same with pred = true\n fProp.put(\"pred\", Boolean.TRUE);\n expTerm2 = Logic.equals(Bool.gt(xFieldAccessTermInt, sevenTermInt), \n Bool.equals(fourTermInt, yFieldAccessTermInt)); \n assertEquals(expTerm2.toString(), fVisitor.visitBinaryExpr(binExpr, fProp).toString()); \n \n // -4 != -7\n fProp.put(\"pred\", Boolean.FALSE);\n binExpr2 = javafe.ast.BinaryExpr.make(TagConstants.NE, fourExprIntNeg, \n sevenExprIntNeg, 0); \n expTerm2 = Bool.not(Bool.equals(fourTermIntNeg, sevenTermIntNeg)); \n assertEquals(expTerm2.toString(), fVisitor.visitBinaryExpr(binExpr2, fProp).toString());\n }", "title": "" }, { "docid": "d629fe1ab30399dfebda219d2b2e64f7", "score": "0.4397088", "text": "String evaluateEquality(Stack<String>operandQueue) {\n // initialise a result\n String result = \"\";\n // fetch binary operands\n String operand1 = \"\";\n String operand2 = \"\";\n if (!operandQueue.empty()) operand2 = operandQueue.pop(); else setError(1,\"insufficient operands to evaluate equality\");\n if (!operandQueue.empty()) operand1 = operandQueue.pop(); else setError(1,\"insufficient operands to evaluate equality\");\n // convert to numbers - if possible\n boolean bothNumbers = false;\n if (evaluateOperandIsNumber(operand1) && evaluateOperandIsNumber(operand2)) {\n // both are numbers - so compare as such\n bothNumbers = true;\n double number1 = evaluateOperandNumber(operand1);\n double number2 = evaluateOperandNumber(operand2);\n if (number1 == number2) result = \"true\"; else result = \"false\";\n } else {\n // otherwise compare as strings\n if (tokenIsQuoteEnclosed(operand1)) operand1 = tokenRemoveQuotes(operand1);\n if (tokenIsQuoteEnclosed(operand2)) operand2 = tokenRemoveQuotes(operand2);\n if (operand1.matches(operand2)) result = \"true\"; else result = \"false\";\n }\n // return result\n return result;\n }", "title": "" }, { "docid": "d9cde8bb7eb9f1c8d21afcd192eab8c7", "score": "0.43945917", "text": "public void testEquals() throws Exception {\n BehaviorCell other = new BehaviorCell(layerManager, 1, 1.0, 0.5);\n MockBehaviorDispatcher d2 = new MockBehaviorDispatcher();\n other.setDispatcher(d2);\n d2.setOverrideEquals(true);\n\n // ...unequal dispatcher.\n d2.setReportEquals(false);\n assertNotEquals(query, other);\n\n // ...equal dispatcher.\n d2.setReportEquals(true);\n assertEquals(query, other);\n\n // Test a cell that differs in division threshold.\n other = new BehaviorCell(layerManager, 1, 1.0, 1.0);\n other.setDispatcher(d2);\n assertNotEquals(query, other);\n\n // Test a cell that differs in state.\n other = new BehaviorCell(layerManager, 2, 1.0, 0.5);\n other.setDispatcher(d2);\n assertNotEquals(query, other);\n }", "title": "" }, { "docid": "a58507a62dbbdacb559f5977f518d579", "score": "0.4390264", "text": "@Test public void testExistsCriteriaInSelect() {\n String sql = \"select intkey, case when exists (select stringkey from bqt1.smallb where intkey = vqt.smalla.intkey) then 'nuge' end as a from vqt.smalla\"; //$NON-NLS-1$\n\n ProcessorPlan plan = helpPlan(sql, RealMetadataFactory.exampleBQTCached(),\n new String[] {\n \"SELECT BQT1.SmallA.IntKey FROM BQT1.SmallA\" }); //$NON-NLS-1$\n\n checkNodeTypes(plan, new int[] {\n 1, // Access\n 0, // DependentAccess\n 0, // DependentSelect\n 1, // DependentProject\n 0, // DupRemove\n 0, // Grouping\n 0, // Join\n 0, // MergeJoin\n 0, // Null\n 0, // PlanExecution\n 0, // Project\n 0, // Select\n 0, // Sort\n 0 // UnionAll\n });\n\n }", "title": "" }, { "docid": "99cc7425ea8e32521f859ff52668f502", "score": "0.43828514", "text": "R visit(ASTEqualOp node) throws FFaplException;", "title": "" }, { "docid": "9c2acfb4483905a1f458ab73f09ee194", "score": "0.4379269", "text": "@Override\n public RAny execute(Frame frame, RAny lhs, RAny rhs) {\n try {\n throw new UnexpectedResultException(null);\n } catch (UnexpectedResultException e) {\n if (Configuration.ARRAY_UPDATE_DIRECT_SPECIALIZATIONS && subset && !column) {\n if (!lhs.isShared()) {\n if ((lhs instanceof IntImpl) && (rhs instanceof IntImpl)) {\n return replace(new IntToIntDirect(this)).execute(frame, lhs, rhs);\n } else if (lhs instanceof DoubleImpl) {\n if (rhs instanceof IntImpl) {\n return replace(new IntToDoubleDirect(this)).execute(frame, lhs, rhs);\n } else if (rhs instanceof DoubleImpl) {\n return replace(new DoubleToDoubleDirect(this)).execute(frame, lhs, rhs);\n }\n } else if (lhs instanceof ComplexImpl) {\n if (rhs instanceof IntImpl) {\n return replace(new IntToComplexDirect(this)).execute(frame, lhs, rhs);\n } else if (rhs instanceof DoubleImpl) {\n return replace(new DoubleToComplexDirect(this)).execute(frame, lhs, rhs);\n } else if (rhs instanceof ComplexImpl) {\n return replace(new ComplexToComplexDirect(this)).execute(frame, lhs, rhs);\n }\n }\n }\n }\n if (!lhs.isShared()\n && isConvertible(rhs, lhs)\n && rhs instanceof RArray\n && ((RArray) rhs).size() == 1) {\n if (DEBUG_UP) Utils.debug(\"UpdateArray -> RHSCompatible (no need of LHS copy)\");\n return replace(new RHSCompatible(this)).execute(frame, lhs, rhs);\n }\n if (DEBUG_UP) Utils.debug(\"UpdateArray -> CopyLHS\");\n return replace(new CopyLhs(new RHSCompatible(this))).execute(frame, lhs, rhs);\n }\n }", "title": "" }, { "docid": "643dc7a8aaa88bc9d7334699a733eb26", "score": "0.43618283", "text": "public boolean isEqual(myLong b)\n {\n for (int j=9; j>=0; j--)\n {\n for (int i=9; i>0; i--)\n {\n if (this.wholeArray[j][i] != b.wholeArray[j][i])\n return false;\n }\n }\n return true;\n }", "title": "" } ]
cac5ecb53e9d7d944eb3aa96a7b21882
Type your code here
[ { "docid": "ed9b06bddd556f47972aa09ca617d3d6", "score": "0.0", "text": "include<stdio.h>\nint main()\n{\n int a,b,i,h,n=1;\n scanf(\"%d%d\",&a,&b);\n h=(a>b)?a:b;\n for(i=1;i<=h;i++)\n {\n if((a%i==0)&&(b%i==0))\n {\n a=a/i;\n b=b/i;\n n=n*i;\n } \n else if((a%i==0)&&(b%i!=0))\n {\n a=a/i;\n n=n*i;\n }\n else if((a%i!=0)&&(b%i==0))\n {\n b=b/i;\n n=n*i;\n } \n }\n printf(\"%d\",n);\n return 0;\n}", "title": "" } ]
[ { "docid": "4847654cac8511b3bfb56192faa1d939", "score": "0.6504831", "text": "public abstract String code();", "title": "" }, { "docid": "3705bee2b00b711ef2693852ab309a4f", "score": "0.6452282", "text": "Code createCode();", "title": "" }, { "docid": "d05877a056cc9e218382efc4f8e92d63", "score": "0.6223191", "text": "public static void main(String[] args) {\n // ENTER CODE HERE\n\n }", "title": "" }, { "docid": "a383711f81d92396589273e906e63c18", "score": "0.606349", "text": "String getCode();", "title": "" }, { "docid": "a383711f81d92396589273e906e63c18", "score": "0.606349", "text": "String getCode();", "title": "" }, { "docid": "a383711f81d92396589273e906e63c18", "score": "0.606349", "text": "String getCode();", "title": "" }, { "docid": "91e44da858e8241b560399e33d126752", "score": "0.6031133", "text": "@CodeCompletion\n public abstract String source();", "title": "" }, { "docid": "8e0e736c02be67274e9ffcb49124d251", "score": "0.597846", "text": "@Override public void visit(CodeNode node) {\n }", "title": "" }, { "docid": "f22e6fed5c9099d6ac804efd1c008406", "score": "0.5964082", "text": "void doit(String code) {\n\t\tContext cx = Context.enter();\n\n\t\t// Turn compilation off.\n\t\tcx.setOptimizationLevel(-1);\n\n\t\ttry {\n\t\t\t// Initialize a variable scope with bindnings for\n\t\t\t// standard objects (Object, Function, etc.)\n\t\t\tScriptable scope = cx.initStandardObjects();\n\n\t\t\t// Set a global variable that holds the activity instance.\n\t\t\tScriptableObject.putProperty(scope, \"ac\",\n\t\t\t\t\tContext.javaToJS(this, scope));\n\n\t\t\t// Evaluate the script.\n\t\t\tObject result = cx.evaluateString(scope, code, \"doit:\", 1, null);\n\n\t\t\t// Function result2 = cx.compileFunction(scope, code, \"doit:\", 1,\n\t\t\t// null);\n\t\t\t// result2.call(cx, scope, scope, null);\n\n\t\t\t// cx.evaluateString(scope, \"Toast.makeText('hola')\", \"qq\", 1,\n\t\t\t// null);\n\t\t} catch (Exception evException) {\n\t\t\tLog.d(\"qq\",\n\t\t\t\t\t\"no se puede cargar el script \" + evException.toString());\n\t\t} finally {\n\t\t\t// Context.exit();\n\t\t}\n\n\t}", "title": "" }, { "docid": "4c6350e4b10bc35368ceb10ceacaf526", "score": "0.5937124", "text": "CE withCode();", "title": "" }, { "docid": "0d92723a686a1244d926c27d0132d126", "score": "0.58675694", "text": "@Override\n\t\t\tpublic void dispathCode(String code) {\n\t\t\t\thandleCode(code);\n\t\t\t}", "title": "" }, { "docid": "609ec2ff060d9d4cb0276468f482734d", "score": "0.5794401", "text": "public void mo89673a() {\n }", "title": "" }, { "docid": "c1d6d8a83b677496090c76a472b8e5fb", "score": "0.57902515", "text": "CodeSystem createCodeSystem();", "title": "" }, { "docid": "404082723d8061b65960b61baba150fa", "score": "0.576582", "text": "public static void main(String[] args) {\n\n // WRITE YOUR CODE HERE\n }", "title": "" }, { "docid": "347d318d7035c38f0676d6437099bbd1", "score": "0.57553643", "text": "void visitStartCode();", "title": "" }, { "docid": "e37eebf7c3866ba0669abbbb45cbf2ee", "score": "0.5744335", "text": "@Override\n\tpublic void operate(int code) {\n\t\t\n\t}", "title": "" }, { "docid": "254c2606c71ce008227891b6be42bb4a", "score": "0.5685267", "text": "protected StringBuilder code(StringBuilder code) {\n\t\tStringBuilder output = new StringBuilder();\n\t\toutput.append(\"<tt>\").append(code).append(\"</tt>\");\n\t\treturn output;\n\t}", "title": "" }, { "docid": "903e177d9c17003e0c911c03653e5a81", "score": "0.5684853", "text": "java.lang.String getCode();", "title": "" }, { "docid": "903e177d9c17003e0c911c03653e5a81", "score": "0.5684853", "text": "java.lang.String getCode();", "title": "" }, { "docid": "903e177d9c17003e0c911c03653e5a81", "score": "0.5684853", "text": "java.lang.String getCode();", "title": "" }, { "docid": "2d85b54f8c1c62e84f6f6e0fd2a0ec14", "score": "0.56733847", "text": "public String getCode();", "title": "" }, { "docid": "2d85b54f8c1c62e84f6f6e0fd2a0ec14", "score": "0.56733847", "text": "public String getCode();", "title": "" }, { "docid": "2d85b54f8c1c62e84f6f6e0fd2a0ec14", "score": "0.56733847", "text": "public String getCode();", "title": "" }, { "docid": "f777356e2cd2fecd871f35f7e556fda8", "score": "0.5661916", "text": "public void mo3640e() {\n }", "title": "" }, { "docid": "0c6301102e0ac54097c39d8ed27a86bb", "score": "0.5654653", "text": "public void generateCode(PrintWriter out) {\n // Nothing to do for non-function definitions!\n }", "title": "" }, { "docid": "1c01e3c7d4ca220c66993bfdc8837900", "score": "0.56497097", "text": "public interface ICodeBuilder {\n}", "title": "" }, { "docid": "80ddc0679fe6edcc708ca1b0e1939523", "score": "0.564119", "text": "String getSourceCode();", "title": "" }, { "docid": "310c6f528e6f3e522c3a4254c604bde2", "score": "0.5638541", "text": "private void InterpreteCode()\n {\n \tLog.i(\"BitBot Interpreter\", \"----------------------------------------------------------\");\n \tLog.i(\"BitBot Interpreter\", \"--------------------- Begin Interpreter ------------------\");\n \tLog.i(\"BitBot Interpreter\", Thread.currentThread().toString());\n \tLog.i(\"BitBot Interpreter\", \"\" + Thread.currentThread().getPriority());\n \tLog.i(\"BitBot Interpreter\", \"----------------------------------------------------------\");\n \tBotInterpreter bi = null;\n \t\n // \tThread.currentThread().setPriority(Thread.MAX_PRIORITY);\n \t\n \ttry\n \t\t{\n \t \tilvm = new InstructionLimitedVirtualMachine();\n \t \t\n \t \tbi = new BotInterpreter(null, editor.getText().toString()+\"\\n\");\n \t \tbi.setOutputTextView(botOutput);\n \t \tbotOutput.setText(bi.getBotLog());\n \t \t\n \t \tilvm.addInterpreter(bi);\n \t \tilvm.resume(2000);\n \t\t}\n \tcatch (Exception e)\n \t\t{\n \t\t\t// TODO Auto-generated catch block\n \t\t\tLog.e(\"BitBot Interpreter\", e.getStackTrace().toString());\n //\t\t\tbotOutput.setText(e.toString());\n \t\t}\n \tcatch (Error e)\n \t{\n \t\tLog.e(\"BitBot Interpreter\", \"ERROR: \" + e.getStackTrace().toString());\n // \t\tbotOutput.setText(e.toString());\n \t}\n \tfinally\n \t{\n \t\tif (botOutput != null && bi != null)\n \t\t\tbotOutput.setText(bi.getBotLog());\n \t}\n \t\n \tLog.i(\"BitBot Interpreter\", \"----------------------------------------------------------\");\n \tLog.i(\"BitBot Interpreter\", \"---------------------- End Interpreter -------------------\");\n \tLog.i(\"BitBot Interpreter\", Thread.currentThread().toString());\n \tLog.i(\"BitBot Interpreter\", \"----------------------------------------------------------\");\n }", "title": "" }, { "docid": "46ae77cd11967058ab7cdbed6fb7eae0", "score": "0.5638152", "text": "public static void main(String[] args) {\n\t// write your code here\n }", "title": "" }, { "docid": "46ae77cd11967058ab7cdbed6fb7eae0", "score": "0.5638152", "text": "public static void main(String[] args) {\n\t// write your code here\n }", "title": "" }, { "docid": "46ae77cd11967058ab7cdbed6fb7eae0", "score": "0.5638152", "text": "public static void main(String[] args) {\n\t// write your code here\n }", "title": "" }, { "docid": "7cfcaa9e6b3b72c2a96e7020b1b1bf18", "score": "0.562857", "text": "public static void main(String[] args) {\n\t\tScanner in = new Scanner(System.in);\n\t\tint type = in.nextInt();\n\t\tswitch (type) {\n\t\tcase 1:\n//\t\t\tSystem.out.println(\"Hello!\");\n//\t\t\tbreak;\n\t\tcase 2:\n\t\t\tSystem.out.println(\"Good morning!\");\n\t\t\tbreak;\n\t\tcase 3:\n\t\t\tSystem.out.println(\"Good evening!\");\n//\t\t\tbreak;\n\t\tcase 4:\n\t\t\tSystem.out.println(\"Bye Bye!\");\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tSystem.out.println(\"What?\");\n\t\t}\n\t}", "title": "" }, { "docid": "ae34f99e800108b63dbca28dc4e4b35a", "score": "0.5627436", "text": "public void funactionalProgramming() {\n\n\n }", "title": "" }, { "docid": "74b797976322149a5f34e10d5ac721aa", "score": "0.56157017", "text": "public static void main(String[] args) {\n\t\tSystem.out.println(\"Code\");\r\n\r\n\t}", "title": "" }, { "docid": "f002e03e2dd54b8b4762d442267cb5ae", "score": "0.56146115", "text": "public void gen(CodeSeq code, ICodeEnv env) {\n\r\n\t}", "title": "" }, { "docid": "f002e03e2dd54b8b4762d442267cb5ae", "score": "0.56146115", "text": "public void gen(CodeSeq code, ICodeEnv env) {\n\r\n\t}", "title": "" }, { "docid": "dfbb399604117b1763bbffa5739d0b15", "score": "0.5613472", "text": "private void generateCode(){\n\t\tcode = getPrefix()+getSuffix();\n\t}", "title": "" }, { "docid": "915002571322604dcb3da3d31e5b4c14", "score": "0.5611921", "text": "long getCode();", "title": "" }, { "docid": "cdaaa6af27ec15a11b312197a5484f30", "score": "0.56110317", "text": "public void mo8543a() {\n }", "title": "" }, { "docid": "3e578afbd0638cb521b78a0bae0194e0", "score": "0.55931276", "text": "public void execute(String code) throws MakerbotException {\n Scanner scanner = new Scanner(code);\n Vector<String> list = parse(scanner);\n execute(list);\n }", "title": "" }, { "docid": "fe965b78e7b3941dd30c1ede0525e112", "score": "0.5586585", "text": "public void mo85487i() {\n }", "title": "" }, { "docid": "58ef7b9c347e3d7709c65806af3a418a", "score": "0.557892", "text": "int getCode();", "title": "" }, { "docid": "58ef7b9c347e3d7709c65806af3a418a", "score": "0.557892", "text": "int getCode();", "title": "" }, { "docid": "58ef7b9c347e3d7709c65806af3a418a", "score": "0.557892", "text": "int getCode();", "title": "" }, { "docid": "58ef7b9c347e3d7709c65806af3a418a", "score": "0.557892", "text": "int getCode();", "title": "" }, { "docid": "58ef7b9c347e3d7709c65806af3a418a", "score": "0.557892", "text": "int getCode();", "title": "" }, { "docid": "58ef7b9c347e3d7709c65806af3a418a", "score": "0.557892", "text": "int getCode();", "title": "" }, { "docid": "58ef7b9c347e3d7709c65806af3a418a", "score": "0.557892", "text": "int getCode();", "title": "" }, { "docid": "4df642732f23eb68d19003c5de241145", "score": "0.5578433", "text": "public void mo8543a() {\n }", "title": "" }, { "docid": "7e5ae0ccdfa612568c57d47a43c72989", "score": "0.55595165", "text": "public void pintame() {\n }", "title": "" }, { "docid": "8128d11905f0ac76ecff8c3a0fbe283f", "score": "0.5544149", "text": "public interface UserCode extends Block {\n }", "title": "" }, { "docid": "8bf8511f65e0c2b04c8bd3242cfd3d0d", "score": "0.5536482", "text": "public void mo25201a() {\n }", "title": "" }, { "docid": "79818b8770cf7cd4cd45d8cbbfae393f", "score": "0.5505488", "text": "@CodeCompletion\n public abstract String mode();", "title": "" }, { "docid": "de5eccc63e223cfae0d20c17b504b91a", "score": "0.55054533", "text": "public void mo29223i() {\n }", "title": "" }, { "docid": "33d41636b65afa8267c9085dae3d1a2d", "score": "0.54968435", "text": "private void apparence() {\r\n\r\n\t}", "title": "" }, { "docid": "f394c9063fa87b43fc08723b5bf2b088", "score": "0.54912984", "text": "CodeElement createCodeElement();", "title": "" }, { "docid": "f87c2949c40c0f977d8680f73f2a39f3", "score": "0.54901797", "text": "public static void main(String[] args) {\n\n createDeveloperBySpeciality(\"php\").createDeveloper().writeCode();\n }", "title": "" }, { "docid": "9556d60e5d379dc497dba3d46507378b", "score": "0.5486418", "text": "public static void main(String[] args) {\n Scanner in = new Scanner(System.in);\n String text = in.nextLine();\n String encoded = encode(text);\n System.out.println(charToCode.size() + \" \" + encoded.length());\n charToCode.forEach((e, s) -> {\n System.out.println(e + \": \" + s);\n });\n System.out.println(encoded);\n // put your code here\n }", "title": "" }, { "docid": "7e80c01d09fdc271819f5235748a7023", "score": "0.5483396", "text": "public void setCode(String code);", "title": "" }, { "docid": "7e80c01d09fdc271819f5235748a7023", "score": "0.5483396", "text": "public void setCode(String code);", "title": "" }, { "docid": "90e9be10c2c69543036119c8db74189e", "score": "0.5468204", "text": "public void mo6944a() {\n }", "title": "" }, { "docid": "a49ec508208afac60e6927c1b17b5592", "score": "0.54626924", "text": "@Override\n\tpublic void input() {\n\t\tScanner sc = new Scanner(System.in);\n\t\tSystem.out.println(\"kor: \");\n\t\trecode.setKor(sc.nextInt());\n\t\tSystem.out.println(\"eng: \");\n\t\trecode.setEng(sc.nextInt());\n\t\tSystem.out.println(\"math: \");\n\t\trecode.setMath(sc.nextInt());\n\t\t\n\t}", "title": "" }, { "docid": "f21bdaa510a3c4aaf729670a764e1420", "score": "0.54573953", "text": "public void mo12455a() {\n }", "title": "" }, { "docid": "d6f13580141489c548a74ebc4675735e", "score": "0.5448613", "text": "void mo84835a();", "title": "" }, { "docid": "2bcac1bab4eaa6c9cc4cb7e33c684cef", "score": "0.54340374", "text": "public void mo1691a() {\n }", "title": "" }, { "docid": "118f69eaf4a755909b919cf7ccca5bae", "score": "0.5430532", "text": "private static void generateCode() throws InterruptedException {\n log(\"Generating Code...\");\n Thread.sleep(1000);\n UUID uuid = UUID.randomUUID();\n setUserKey(uuid);\n log(\"Your unique code is \" + uuid);\n log(\"Paste your unique code in the description\");\n log(\"of your youtube channel.\");\n log(\"\");\n log(\"Please input your youtube ID once you are done\");\n }", "title": "" }, { "docid": "0fc890bce2cd6e7184e33036b92f8217", "score": "0.5422528", "text": "public void mo55254a() {\n }", "title": "" }, { "docid": "35a5a23c0bf3320b8936bd55d2b0801b", "score": "0.54209083", "text": "void mo100382b();", "title": "" }, { "docid": "d59359229a1f66f6183076b2032b12fc", "score": "0.54099554", "text": "boolean hasCode();", "title": "" }, { "docid": "d59359229a1f66f6183076b2032b12fc", "score": "0.54099554", "text": "boolean hasCode();", "title": "" }, { "docid": "d59359229a1f66f6183076b2032b12fc", "score": "0.54099554", "text": "boolean hasCode();", "title": "" }, { "docid": "a5299024f845d96933f773c60bdfc30f", "score": "0.5408497", "text": "public static void main(String[] args) {\n\n\n\n\n\n\n}", "title": "" }, { "docid": "6f88078ebc1c04ea0e3f6d61ef9a54eb", "score": "0.54055154", "text": "void setSourceCode(String text);", "title": "" }, { "docid": "8a1a373d124a8952192126ed5aaff0c1", "score": "0.54034483", "text": "public void taglia() {\n txtCode.cut();\n }", "title": "" }, { "docid": "75181cd6ec03263913af9fba4dfb072f", "score": "0.5396589", "text": "public Code addCode(String input) {\n\t\tCode code= (Code) Factory.getInstance(Type.CODE);\n\t\tcode.add(input);\n\t\treturn code;\n\t}", "title": "" }, { "docid": "997052ae05c0f7d9d47cbf6b599dce2e", "score": "0.5393571", "text": "void mo15373c();", "title": "" }, { "docid": "dd2264dd99d1c2d9eaf2de506eb4dff2", "score": "0.5367286", "text": "java.lang.String getCodeType();", "title": "" }, { "docid": "4773e448a155afc6fb37ce29c13b4c1b", "score": "0.53646606", "text": "void mo2559a();", "title": "" }, { "docid": "bf9647530fed882553f0103726e4eaaf", "score": "0.5364208", "text": "CodeableConcept getCode();", "title": "" }, { "docid": "f7bc5001fd800bdd795f9ebc85412255", "score": "0.53618497", "text": "public void setCode(byte code) {\n typeCode = code;\n }", "title": "" }, { "docid": "4bcc8fa2b3c6534d7305a87ee6c35447", "score": "0.53592825", "text": "private void func() {\n \n }", "title": "" }, { "docid": "4093e097f421f37f6fcbb8df267cd60d", "score": "0.53577787", "text": "public void incolla() {\n txtCode.paste();\n }", "title": "" }, { "docid": "ee34b65ca528d3c4001b7840ceae42b2", "score": "0.53482854", "text": "public void mo1957a() {\n }", "title": "" }, { "docid": "af705460d58a2640631eeddc302a5d7c", "score": "0.5344682", "text": "public void mo43824u() {\n }", "title": "" }, { "docid": "b8cd427648ea50c94f93c47d407d10a0", "score": "0.53424525", "text": "public void mo3639d() {\n }", "title": "" }, { "docid": "651f661f5e48a6447569cdd2067a934c", "score": "0.5341399", "text": "void mo86467j();", "title": "" }, { "docid": "1f789b55a027ef99464088566d989b2f", "score": "0.53406596", "text": "public abstract void generateCode(final Program program);", "title": "" }, { "docid": "954c28768bc9c747706a4055c73e9bd6", "score": "0.5327714", "text": "public void program()\n {\n }", "title": "" }, { "docid": "ea5416e3e3d53e3a8e3215b0361731b2", "score": "0.53247577", "text": "private static String nextCode() {\n // Prompt for the next code.\n System.out.println(\"\\nEnter Code\");\n String code;\n\n while (true) {\n // Get the code and check for validation. If not valid, then continue loop.\n // Process the input by removing spaces, commas and periods, and turning the string into upper case.]\n code = in.nextLine().replaceAll(\"\\\\s+\",\"\").replaceAll(\",\", \"\").replaceAll(\"\\\\.\", \"\").toUpperCase();\n if (isCodeInvalid(code))\n System.err.printf(\"ERROR! You entered the following code: '%s'.\\nThis code is invalid. Try again below.\\n> \", code);\n else\n break;\n }\n\n // Print divider and return the validated user input.\n printDivider();\n return code;\n }", "title": "" }, { "docid": "847a203a08278fe2fff2f2df157799d1", "score": "0.5324736", "text": "public void mo49167f() {\n }", "title": "" }, { "docid": "70fda2601aa55c8823d903daa558d31b", "score": "0.5324158", "text": "public void SayYourDumb() {\n\t\t\n\t}", "title": "" }, { "docid": "fe41da8f7cd41a3b965d10f5c3fd9bbd", "score": "0.5323484", "text": "public static String codeHere(String inputData) {\n return inputData;\r\n }", "title": "" }, { "docid": "50e0f742945e8227c70adc1903a55314", "score": "0.5314445", "text": "void mo20037a();", "title": "" }, { "docid": "3fb6bb912e1051686cc0dd7b367b4b17", "score": "0.530921", "text": "public void mo1489i() {\n }", "title": "" }, { "docid": "3590e23ff90443e529f84fae5aa62472", "score": "0.5308952", "text": "public static void main(String[] args) {\n\t\tScanner sc=new Scanner(System.in);\r\n\t\tchar code=sc.next().charAt(0);\r\n\t\tif(code=='R')\r\n\t\t\tSystem.out.println(\"Red\");\r\n\t\telse if(code=='B')\r\n\t\t\tSystem.out.println(\"Blue\");\r\n\t\telse if(code=='G')\r\n\t\t\t\tSystem.out.println(\"Green\");\r\n\t\telse if(code=='O')\r\n\t\t\t\tSystem.out.println(\"Orange\");\r\n\t\telse if(code=='Y')\r\n\t\t\t\tSystem.out.println(\"Yellow\");\r\n\t\telse if(code=='W')\r\n\t\t\t\tSystem.out.println(\"White\");\r\n\t\telse\r\n\t\t\tSystem.out.println(\"Invalid Code\");\r\n\r\n\t\t}", "title": "" }, { "docid": "5109f384df056bd264d07d568ec66abd", "score": "0.53088325", "text": "void mo3349b();", "title": "" }, { "docid": "7721677c9c247497df61f02707d2c6d5", "score": "0.53030694", "text": "void mo15172af();", "title": "" }, { "docid": "08840e75b23f888adbcd9fcdd07d8b7e", "score": "0.5302092", "text": "public abstract CodeItem genCode(SymbolTable tab) throws CodeGenerationException;", "title": "" }, { "docid": "a52ac3b1c9570f82d1287463523b4bd5", "score": "0.52965236", "text": "void mo24743g();", "title": "" }, { "docid": "bd56bdbd1455d8c81f726aeceb47b574", "score": "0.5288664", "text": "private static void generateCode() {\n for (int i = 0; i < MAX_LENGTH; i++)\n generatedCode[i] = nextPeg();\n }", "title": "" }, { "docid": "759317bfc152c5bd6f4202d6fb20267c", "score": "0.5287841", "text": "public void leggi(){\n \n }", "title": "" } ]
deb78aca06fdda09bd1c73247e9faf11
$ANTLR end "rule__Specification__NameAssignment_2_2" $ANTLR start "rule__Specification__FunctionAssignment_2_4" ../edu.cmu.sei.annex.dmpl.ui/srcgen/edu/cmu/sei/annex/dmpl/ui/contentassist/antlr/internal/InternalDmpl.g:14467:1: rule__Specification__FunctionAssignment_2_4 : ( RULE_TIDENTIFIER ) ;
[ { "docid": "95a2787dd17a93f5443f2ce23e323adf", "score": "0.81277657", "text": "public final void rule__Specification__FunctionAssignment_2_4() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../edu.cmu.sei.annex.dmpl.ui/src-gen/edu/cmu/sei/annex/dmpl/ui/contentassist/antlr/internal/InternalDmpl.g:14471:1: ( ( RULE_TIDENTIFIER ) )\n // ../edu.cmu.sei.annex.dmpl.ui/src-gen/edu/cmu/sei/annex/dmpl/ui/contentassist/antlr/internal/InternalDmpl.g:14472:1: ( RULE_TIDENTIFIER )\n {\n // ../edu.cmu.sei.annex.dmpl.ui/src-gen/edu/cmu/sei/annex/dmpl/ui/contentassist/antlr/internal/InternalDmpl.g:14472:1: ( RULE_TIDENTIFIER )\n // ../edu.cmu.sei.annex.dmpl.ui/src-gen/edu/cmu/sei/annex/dmpl/ui/contentassist/antlr/internal/InternalDmpl.g:14473:1: RULE_TIDENTIFIER\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getSpecificationAccess().getFunctionTIDENTIFIERTerminalRuleCall_2_4_0()); \n }\n match(input,RULE_TIDENTIFIER,FOLLOW_RULE_TIDENTIFIER_in_rule__Specification__FunctionAssignment_2_429098); if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getSpecificationAccess().getFunctionTIDENTIFIERTerminalRuleCall_2_4_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" } ]
[ { "docid": "13c812c8516e2a68f3fa2f59e7cfa2d1", "score": "0.7275401", "text": "public final void rule__Specification__FunctionAssignment_0_6() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../edu.cmu.sei.annex.dmpl.ui/src-gen/edu/cmu/sei/annex/dmpl/ui/contentassist/antlr/internal/InternalDmpl.g:14396:1: ( ( RULE_TIDENTIFIER ) )\n // ../edu.cmu.sei.annex.dmpl.ui/src-gen/edu/cmu/sei/annex/dmpl/ui/contentassist/antlr/internal/InternalDmpl.g:14397:1: ( RULE_TIDENTIFIER )\n {\n // ../edu.cmu.sei.annex.dmpl.ui/src-gen/edu/cmu/sei/annex/dmpl/ui/contentassist/antlr/internal/InternalDmpl.g:14397:1: ( RULE_TIDENTIFIER )\n // ../edu.cmu.sei.annex.dmpl.ui/src-gen/edu/cmu/sei/annex/dmpl/ui/contentassist/antlr/internal/InternalDmpl.g:14398:1: RULE_TIDENTIFIER\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getSpecificationAccess().getFunctionTIDENTIFIERTerminalRuleCall_0_6_0()); \n }\n match(input,RULE_TIDENTIFIER,FOLLOW_RULE_TIDENTIFIER_in_rule__Specification__FunctionAssignment_0_628943); if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getSpecificationAccess().getFunctionTIDENTIFIERTerminalRuleCall_0_6_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "35581a027aa2de75d907baeb30e78e4c", "score": "0.7227332", "text": "public final void rule__Specification__NameAssignment_0_2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../edu.cmu.sei.annex.dmpl.ui/src-gen/edu/cmu/sei/annex/dmpl/ui/contentassist/antlr/internal/InternalDmpl.g:14381:1: ( ( RULE_TIDENTIFIER ) )\n // ../edu.cmu.sei.annex.dmpl.ui/src-gen/edu/cmu/sei/annex/dmpl/ui/contentassist/antlr/internal/InternalDmpl.g:14382:1: ( RULE_TIDENTIFIER )\n {\n // ../edu.cmu.sei.annex.dmpl.ui/src-gen/edu/cmu/sei/annex/dmpl/ui/contentassist/antlr/internal/InternalDmpl.g:14382:1: ( RULE_TIDENTIFIER )\n // ../edu.cmu.sei.annex.dmpl.ui/src-gen/edu/cmu/sei/annex/dmpl/ui/contentassist/antlr/internal/InternalDmpl.g:14383:1: RULE_TIDENTIFIER\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getSpecificationAccess().getNameTIDENTIFIERTerminalRuleCall_0_2_0()); \n }\n match(input,RULE_TIDENTIFIER,FOLLOW_RULE_TIDENTIFIER_in_rule__Specification__NameAssignment_0_228912); if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getSpecificationAccess().getNameTIDENTIFIERTerminalRuleCall_0_2_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "57f7ce3c1847b3103ea8c9e47de6e932", "score": "0.7191078", "text": "public final void rule__Specification__FunctionAssignment_1_7() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../edu.cmu.sei.annex.dmpl.ui/src-gen/edu/cmu/sei/annex/dmpl/ui/contentassist/antlr/internal/InternalDmpl.g:14441:1: ( ( RULE_TIDENTIFIER ) )\n // ../edu.cmu.sei.annex.dmpl.ui/src-gen/edu/cmu/sei/annex/dmpl/ui/contentassist/antlr/internal/InternalDmpl.g:14442:1: ( RULE_TIDENTIFIER )\n {\n // ../edu.cmu.sei.annex.dmpl.ui/src-gen/edu/cmu/sei/annex/dmpl/ui/contentassist/antlr/internal/InternalDmpl.g:14442:1: ( RULE_TIDENTIFIER )\n // ../edu.cmu.sei.annex.dmpl.ui/src-gen/edu/cmu/sei/annex/dmpl/ui/contentassist/antlr/internal/InternalDmpl.g:14443:1: RULE_TIDENTIFIER\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getSpecificationAccess().getFunctionTIDENTIFIERTerminalRuleCall_1_7_0()); \n }\n match(input,RULE_TIDENTIFIER,FOLLOW_RULE_TIDENTIFIER_in_rule__Specification__FunctionAssignment_1_729036); if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getSpecificationAccess().getFunctionTIDENTIFIERTerminalRuleCall_1_7_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "2206966eec5f17f616e1feea5bde8ab8", "score": "0.71776503", "text": "public final void rule__Specification__NameAssignment_2_2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../edu.cmu.sei.annex.dmpl.ui/src-gen/edu/cmu/sei/annex/dmpl/ui/contentassist/antlr/internal/InternalDmpl.g:14456:1: ( ( RULE_TIDENTIFIER ) )\n // ../edu.cmu.sei.annex.dmpl.ui/src-gen/edu/cmu/sei/annex/dmpl/ui/contentassist/antlr/internal/InternalDmpl.g:14457:1: ( RULE_TIDENTIFIER )\n {\n // ../edu.cmu.sei.annex.dmpl.ui/src-gen/edu/cmu/sei/annex/dmpl/ui/contentassist/antlr/internal/InternalDmpl.g:14457:1: ( RULE_TIDENTIFIER )\n // ../edu.cmu.sei.annex.dmpl.ui/src-gen/edu/cmu/sei/annex/dmpl/ui/contentassist/antlr/internal/InternalDmpl.g:14458:1: RULE_TIDENTIFIER\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getSpecificationAccess().getNameTIDENTIFIERTerminalRuleCall_2_2_0()); \n }\n match(input,RULE_TIDENTIFIER,FOLLOW_RULE_TIDENTIFIER_in_rule__Specification__NameAssignment_2_229067); if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getSpecificationAccess().getNameTIDENTIFIERTerminalRuleCall_2_2_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "822139b7491d79e52eeac58f4da488f7", "score": "0.7073391", "text": "public final void rule__Specification__NameAssignment_1_2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../edu.cmu.sei.annex.dmpl.ui/src-gen/edu/cmu/sei/annex/dmpl/ui/contentassist/antlr/internal/InternalDmpl.g:14411:1: ( ( RULE_TIDENTIFIER ) )\n // ../edu.cmu.sei.annex.dmpl.ui/src-gen/edu/cmu/sei/annex/dmpl/ui/contentassist/antlr/internal/InternalDmpl.g:14412:1: ( RULE_TIDENTIFIER )\n {\n // ../edu.cmu.sei.annex.dmpl.ui/src-gen/edu/cmu/sei/annex/dmpl/ui/contentassist/antlr/internal/InternalDmpl.g:14412:1: ( RULE_TIDENTIFIER )\n // ../edu.cmu.sei.annex.dmpl.ui/src-gen/edu/cmu/sei/annex/dmpl/ui/contentassist/antlr/internal/InternalDmpl.g:14413:1: RULE_TIDENTIFIER\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getSpecificationAccess().getNameTIDENTIFIERTerminalRuleCall_1_2_0()); \n }\n match(input,RULE_TIDENTIFIER,FOLLOW_RULE_TIDENTIFIER_in_rule__Specification__NameAssignment_1_228974); if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getSpecificationAccess().getNameTIDENTIFIERTerminalRuleCall_1_2_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "7c4420e2c7ceaa44a18052363419392c", "score": "0.6963694", "text": "public final void rule__Specification__Group_2__4__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../edu.cmu.sei.annex.dmpl.ui/src-gen/edu/cmu/sei/annex/dmpl/ui/contentassist/antlr/internal/InternalDmpl.g:4596:1: ( ( ( rule__Specification__FunctionAssignment_2_4 ) ) )\n // ../edu.cmu.sei.annex.dmpl.ui/src-gen/edu/cmu/sei/annex/dmpl/ui/contentassist/antlr/internal/InternalDmpl.g:4597:1: ( ( rule__Specification__FunctionAssignment_2_4 ) )\n {\n // ../edu.cmu.sei.annex.dmpl.ui/src-gen/edu/cmu/sei/annex/dmpl/ui/contentassist/antlr/internal/InternalDmpl.g:4597:1: ( ( rule__Specification__FunctionAssignment_2_4 ) )\n // ../edu.cmu.sei.annex.dmpl.ui/src-gen/edu/cmu/sei/annex/dmpl/ui/contentassist/antlr/internal/InternalDmpl.g:4598:1: ( rule__Specification__FunctionAssignment_2_4 )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getSpecificationAccess().getFunctionAssignment_2_4()); \n }\n // ../edu.cmu.sei.annex.dmpl.ui/src-gen/edu/cmu/sei/annex/dmpl/ui/contentassist/antlr/internal/InternalDmpl.g:4599:1: ( rule__Specification__FunctionAssignment_2_4 )\n // ../edu.cmu.sei.annex.dmpl.ui/src-gen/edu/cmu/sei/annex/dmpl/ui/contentassist/antlr/internal/InternalDmpl.g:4599:2: rule__Specification__FunctionAssignment_2_4\n {\n pushFollow(FOLLOW_rule__Specification__FunctionAssignment_2_4_in_rule__Specification__Group_2__4__Impl9687);\n rule__Specification__FunctionAssignment_2_4();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getSpecificationAccess().getFunctionAssignment_2_4()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "32e1e4465d775ca5568db402dffc406b", "score": "0.6716347", "text": "public final void rule__Procedure__NameAssignment_0_5() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../edu.cmu.sei.annex.dmpl.ui/src-gen/edu/cmu/sei/annex/dmpl/ui/contentassist/antlr/internal/InternalDmpl.g:15136:1: ( ( RULE_TIDENTIFIER ) )\n // ../edu.cmu.sei.annex.dmpl.ui/src-gen/edu/cmu/sei/annex/dmpl/ui/contentassist/antlr/internal/InternalDmpl.g:15137:1: ( RULE_TIDENTIFIER )\n {\n // ../edu.cmu.sei.annex.dmpl.ui/src-gen/edu/cmu/sei/annex/dmpl/ui/contentassist/antlr/internal/InternalDmpl.g:15137:1: ( RULE_TIDENTIFIER )\n // ../edu.cmu.sei.annex.dmpl.ui/src-gen/edu/cmu/sei/annex/dmpl/ui/contentassist/antlr/internal/InternalDmpl.g:15138:1: RULE_TIDENTIFIER\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getProcedureAccess().getNameTIDENTIFIERTerminalRuleCall_0_5_0()); \n }\n match(input,RULE_TIDENTIFIER,FOLLOW_RULE_TIDENTIFIER_in_rule__Procedure__NameAssignment_0_530451); if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getProcedureAccess().getNameTIDENTIFIERTerminalRuleCall_0_5_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "a879552213ec049dc1d5dcd79ff44460", "score": "0.66861975", "text": "public final void rule__Procedure__NameAssignment_1_5() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../edu.cmu.sei.annex.dmpl.ui/src-gen/edu/cmu/sei/annex/dmpl/ui/contentassist/antlr/internal/InternalDmpl.g:15236:1: ( ( RULE_TIDENTIFIER ) )\n // ../edu.cmu.sei.annex.dmpl.ui/src-gen/edu/cmu/sei/annex/dmpl/ui/contentassist/antlr/internal/InternalDmpl.g:15237:1: ( RULE_TIDENTIFIER )\n {\n // ../edu.cmu.sei.annex.dmpl.ui/src-gen/edu/cmu/sei/annex/dmpl/ui/contentassist/antlr/internal/InternalDmpl.g:15237:1: ( RULE_TIDENTIFIER )\n // ../edu.cmu.sei.annex.dmpl.ui/src-gen/edu/cmu/sei/annex/dmpl/ui/contentassist/antlr/internal/InternalDmpl.g:15238:1: RULE_TIDENTIFIER\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getProcedureAccess().getNameTIDENTIFIERTerminalRuleCall_1_5_0()); \n }\n match(input,RULE_TIDENTIFIER,FOLLOW_RULE_TIDENTIFIER_in_rule__Procedure__NameAssignment_1_530654); if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getProcedureAccess().getNameTIDENTIFIERTerminalRuleCall_1_5_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "c9c2ee2243549e291b82c12c5358b088", "score": "0.6649262", "text": "public final void rule__ProgramElement__NamesAssignment_0_2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../edu.cmu.sei.annex.dmpl.ui/src-gen/edu/cmu/sei/annex/dmpl/ui/contentassist/antlr/internal/InternalDmpl.g:14186:1: ( ( RULE_TIDENTIFIER ) )\n // ../edu.cmu.sei.annex.dmpl.ui/src-gen/edu/cmu/sei/annex/dmpl/ui/contentassist/antlr/internal/InternalDmpl.g:14187:1: ( RULE_TIDENTIFIER )\n {\n // ../edu.cmu.sei.annex.dmpl.ui/src-gen/edu/cmu/sei/annex/dmpl/ui/contentassist/antlr/internal/InternalDmpl.g:14187:1: ( RULE_TIDENTIFIER )\n // ../edu.cmu.sei.annex.dmpl.ui/src-gen/edu/cmu/sei/annex/dmpl/ui/contentassist/antlr/internal/InternalDmpl.g:14188:1: RULE_TIDENTIFIER\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getProgramElementAccess().getNamesTIDENTIFIERTerminalRuleCall_0_2_0()); \n }\n match(input,RULE_TIDENTIFIER,FOLLOW_RULE_TIDENTIFIER_in_rule__ProgramElement__NamesAssignment_0_228509); if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getProgramElementAccess().getNamesTIDENTIFIERTerminalRuleCall_0_2_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "80b897355f25ce23541a0eee171bf178", "score": "0.65747094", "text": "public final void rule__AttributableNodeOrProcedure__NameAssignment_0_2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../edu.cmu.sei.annex.dmpl.ui/src-gen/edu/cmu/sei/annex/dmpl/ui/contentassist/antlr/internal/InternalDmpl.g:14291:1: ( ( RULE_TIDENTIFIER ) )\n // ../edu.cmu.sei.annex.dmpl.ui/src-gen/edu/cmu/sei/annex/dmpl/ui/contentassist/antlr/internal/InternalDmpl.g:14292:1: ( RULE_TIDENTIFIER )\n {\n // ../edu.cmu.sei.annex.dmpl.ui/src-gen/edu/cmu/sei/annex/dmpl/ui/contentassist/antlr/internal/InternalDmpl.g:14292:1: ( RULE_TIDENTIFIER )\n // ../edu.cmu.sei.annex.dmpl.ui/src-gen/edu/cmu/sei/annex/dmpl/ui/contentassist/antlr/internal/InternalDmpl.g:14293:1: RULE_TIDENTIFIER\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getAttributableNodeOrProcedureAccess().getNameTIDENTIFIERTerminalRuleCall_0_2_0()); \n }\n match(input,RULE_TIDENTIFIER,FOLLOW_RULE_TIDENTIFIER_in_rule__AttributableNodeOrProcedure__NameAssignment_0_228726); if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getAttributableNodeOrProcedureAccess().getNameTIDENTIFIERTerminalRuleCall_0_2_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "d2aae11dfa1cdad042a831e2bc271263", "score": "0.6527523", "text": "public final void rule__ProgramElementNoTarget__NameAssignment_0_2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../edu.cmu.sei.annex.dmpl.ui/src-gen/edu/cmu/sei/annex/dmpl/ui/contentassist/antlr/internal/InternalDmpl.g:14231:1: ( ( RULE_TIDENTIFIER ) )\n // ../edu.cmu.sei.annex.dmpl.ui/src-gen/edu/cmu/sei/annex/dmpl/ui/contentassist/antlr/internal/InternalDmpl.g:14232:1: ( RULE_TIDENTIFIER )\n {\n // ../edu.cmu.sei.annex.dmpl.ui/src-gen/edu/cmu/sei/annex/dmpl/ui/contentassist/antlr/internal/InternalDmpl.g:14232:1: ( RULE_TIDENTIFIER )\n // ../edu.cmu.sei.annex.dmpl.ui/src-gen/edu/cmu/sei/annex/dmpl/ui/contentassist/antlr/internal/InternalDmpl.g:14233:1: RULE_TIDENTIFIER\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getProgramElementNoTargetAccess().getNameTIDENTIFIERTerminalRuleCall_0_2_0()); \n }\n match(input,RULE_TIDENTIFIER,FOLLOW_RULE_TIDENTIFIER_in_rule__ProgramElementNoTarget__NameAssignment_0_228602); if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getProgramElementNoTargetAccess().getNameTIDENTIFIERTerminalRuleCall_0_2_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "6352bbaef121ed8f84c0b0dc4131d488", "score": "0.6503499", "text": "public final void rule__AttributableElement__NameAssignment_2_2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../edu.cmu.sei.annex.dmpl.ui/src-gen/edu/cmu/sei/annex/dmpl/ui/contentassist/antlr/internal/InternalDmpl.g:14546:1: ( ( RULE_TIDENTIFIER ) )\n // ../edu.cmu.sei.annex.dmpl.ui/src-gen/edu/cmu/sei/annex/dmpl/ui/contentassist/antlr/internal/InternalDmpl.g:14547:1: ( RULE_TIDENTIFIER )\n {\n // ../edu.cmu.sei.annex.dmpl.ui/src-gen/edu/cmu/sei/annex/dmpl/ui/contentassist/antlr/internal/InternalDmpl.g:14547:1: ( RULE_TIDENTIFIER )\n // ../edu.cmu.sei.annex.dmpl.ui/src-gen/edu/cmu/sei/annex/dmpl/ui/contentassist/antlr/internal/InternalDmpl.g:14548:1: RULE_TIDENTIFIER\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getAttributableElementAccess().getNameTIDENTIFIERTerminalRuleCall_2_2_0()); \n }\n match(input,RULE_TIDENTIFIER,FOLLOW_RULE_TIDENTIFIER_in_rule__AttributableElement__NameAssignment_2_229253); if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getAttributableElementAccess().getNameTIDENTIFIERTerminalRuleCall_2_2_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "7d04bb7881f2f484284da1f4e1f7ac8c", "score": "0.64411354", "text": "public final void rule__ObsrvDecl__NameAssignment_4() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalReactiveXD.g:17270:1: ( ( RULE_ID ) )\n // InternalReactiveXD.g:17271:2: ( RULE_ID )\n {\n // InternalReactiveXD.g:17271:2: ( RULE_ID )\n // InternalReactiveXD.g:17272:3: RULE_ID\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getObsrvDeclAccess().getNameIDTerminalRuleCall_4_0()); \n }\n match(input,RULE_ID,FOLLOW_2); if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getObsrvDeclAccess().getNameIDTerminalRuleCall_4_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "86024436a438f01bd49c7f2934cf3182", "score": "0.6414164", "text": "public final void rule__Attr__NameAssignment_1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../edu.cmu.sei.annex.dmpl.ui/src-gen/edu/cmu/sei/annex/dmpl/ui/contentassist/antlr/internal/InternalDmpl.g:15326:1: ( ( RULE_TIDENTIFIER ) )\n // ../edu.cmu.sei.annex.dmpl.ui/src-gen/edu/cmu/sei/annex/dmpl/ui/contentassist/antlr/internal/InternalDmpl.g:15327:1: ( RULE_TIDENTIFIER )\n {\n // ../edu.cmu.sei.annex.dmpl.ui/src-gen/edu/cmu/sei/annex/dmpl/ui/contentassist/antlr/internal/InternalDmpl.g:15327:1: ( RULE_TIDENTIFIER )\n // ../edu.cmu.sei.annex.dmpl.ui/src-gen/edu/cmu/sei/annex/dmpl/ui/contentassist/antlr/internal/InternalDmpl.g:15328:1: RULE_TIDENTIFIER\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getAttrAccess().getNameTIDENTIFIERTerminalRuleCall_1_0()); \n }\n match(input,RULE_TIDENTIFIER,FOLLOW_RULE_TIDENTIFIER_in_rule__Attr__NameAssignment_130840); if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getAttrAccess().getNameTIDENTIFIERTerminalRuleCall_1_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "6484757afd2375fe59dcae217206b423", "score": "0.64132917", "text": "public final void rule__AttributableElement__NameAssignment_1_2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../edu.cmu.sei.annex.dmpl.ui/src-gen/edu/cmu/sei/annex/dmpl/ui/contentassist/antlr/internal/InternalDmpl.g:14516:1: ( ( RULE_TIDENTIFIER ) )\n // ../edu.cmu.sei.annex.dmpl.ui/src-gen/edu/cmu/sei/annex/dmpl/ui/contentassist/antlr/internal/InternalDmpl.g:14517:1: ( RULE_TIDENTIFIER )\n {\n // ../edu.cmu.sei.annex.dmpl.ui/src-gen/edu/cmu/sei/annex/dmpl/ui/contentassist/antlr/internal/InternalDmpl.g:14517:1: ( RULE_TIDENTIFIER )\n // ../edu.cmu.sei.annex.dmpl.ui/src-gen/edu/cmu/sei/annex/dmpl/ui/contentassist/antlr/internal/InternalDmpl.g:14518:1: RULE_TIDENTIFIER\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getAttributableElementAccess().getNameTIDENTIFIERTerminalRuleCall_1_2_0()); \n }\n match(input,RULE_TIDENTIFIER,FOLLOW_RULE_TIDENTIFIER_in_rule__AttributableElement__NameAssignment_1_229191); if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getAttributableElementAccess().getNameTIDENTIFIERTerminalRuleCall_1_2_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "6655c02f99823e2ed2a27d54a9ede916", "score": "0.6308786", "text": "public final void rule__LVal__NameAssignment_0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../edu.cmu.sei.annex.dmpl.ui/src-gen/edu/cmu/sei/annex/dmpl/ui/contentassist/antlr/internal/InternalDmpl.g:15731:1: ( ( RULE_TIDENTIFIER ) )\n // ../edu.cmu.sei.annex.dmpl.ui/src-gen/edu/cmu/sei/annex/dmpl/ui/contentassist/antlr/internal/InternalDmpl.g:15732:1: ( RULE_TIDENTIFIER )\n {\n // ../edu.cmu.sei.annex.dmpl.ui/src-gen/edu/cmu/sei/annex/dmpl/ui/contentassist/antlr/internal/InternalDmpl.g:15732:1: ( RULE_TIDENTIFIER )\n // ../edu.cmu.sei.annex.dmpl.ui/src-gen/edu/cmu/sei/annex/dmpl/ui/contentassist/antlr/internal/InternalDmpl.g:15733:1: RULE_TIDENTIFIER\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getLValAccess().getNameTIDENTIFIERTerminalRuleCall_0_0()); \n }\n match(input,RULE_TIDENTIFIER,FOLLOW_RULE_TIDENTIFIER_in_rule__LVal__NameAssignment_031677); if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getLValAccess().getNameTIDENTIFIERTerminalRuleCall_0_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "1ec3eb66d8781695d8ac650cfeec1082", "score": "0.630038", "text": "public final void rule__FunctionDeclaration__NameAssignment_1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../jp.ac.titech.cs.se.fwit.dsl.ui/src-gen/jp/ac/titech/cs/se/fwit/dsl/ui/contentassist/antlr/internal/InternalFwitRequirementsModel.g:4511:1: ( ( RULE_ID ) )\n // ../jp.ac.titech.cs.se.fwit.dsl.ui/src-gen/jp/ac/titech/cs/se/fwit/dsl/ui/contentassist/antlr/internal/InternalFwitRequirementsModel.g:4512:1: ( RULE_ID )\n {\n // ../jp.ac.titech.cs.se.fwit.dsl.ui/src-gen/jp/ac/titech/cs/se/fwit/dsl/ui/contentassist/antlr/internal/InternalFwitRequirementsModel.g:4512:1: ( RULE_ID )\n // ../jp.ac.titech.cs.se.fwit.dsl.ui/src-gen/jp/ac/titech/cs/se/fwit/dsl/ui/contentassist/antlr/internal/InternalFwitRequirementsModel.g:4513:1: RULE_ID\n {\n before(grammarAccess.getFunctionDeclarationAccess().getNameIDTerminalRuleCall_1_0()); \n match(input,RULE_ID,FOLLOW_RULE_ID_in_rule__FunctionDeclaration__NameAssignment_19160); \n after(grammarAccess.getFunctionDeclarationAccess().getNameIDTerminalRuleCall_1_0()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "49d83231b2b438c0511a8b485ecb33d8", "score": "0.61861527", "text": "public final void rule__ProgramElement__NamesAssignment_0_3_1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../edu.cmu.sei.annex.dmpl.ui/src-gen/edu/cmu/sei/annex/dmpl/ui/contentassist/antlr/internal/InternalDmpl.g:14201:1: ( ( RULE_TIDENTIFIER ) )\n // ../edu.cmu.sei.annex.dmpl.ui/src-gen/edu/cmu/sei/annex/dmpl/ui/contentassist/antlr/internal/InternalDmpl.g:14202:1: ( RULE_TIDENTIFIER )\n {\n // ../edu.cmu.sei.annex.dmpl.ui/src-gen/edu/cmu/sei/annex/dmpl/ui/contentassist/antlr/internal/InternalDmpl.g:14202:1: ( RULE_TIDENTIFIER )\n // ../edu.cmu.sei.annex.dmpl.ui/src-gen/edu/cmu/sei/annex/dmpl/ui/contentassist/antlr/internal/InternalDmpl.g:14203:1: RULE_TIDENTIFIER\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getProgramElementAccess().getNamesTIDENTIFIERTerminalRuleCall_0_3_1_0()); \n }\n match(input,RULE_TIDENTIFIER,FOLLOW_RULE_TIDENTIFIER_in_rule__ProgramElement__NamesAssignment_0_3_128540); if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getProgramElementAccess().getNamesTIDENTIFIERTerminalRuleCall_0_3_1_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "576ef333e44c3e78605377c70536b9a4", "score": "0.61548084", "text": "public final void rule__EFunctionInput__Parameter_nameAssignment_0_0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalAnsibleDslParser.g:29040:1: ( ( RULE_ID ) )\n // InternalAnsibleDslParser.g:29041:2: ( RULE_ID )\n {\n // InternalAnsibleDslParser.g:29041:2: ( RULE_ID )\n // InternalAnsibleDslParser.g:29042:3: RULE_ID\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getEFunctionInputAccess().getParameter_nameIDTerminalRuleCall_0_0_0()); \n }\n match(input,RULE_ID,FOLLOW_2); if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getEFunctionInputAccess().getParameter_nameIDTerminalRuleCall_0_0_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "bc82317f2ee7156e09a6efbf152112cd", "score": "0.6115433", "text": "public final void rule__Func__NameAssignment_1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalFuncDsl.g:1107:1: ( ( RULE_ID ) )\n // InternalFuncDsl.g:1108:2: ( RULE_ID )\n {\n // InternalFuncDsl.g:1108:2: ( RULE_ID )\n // InternalFuncDsl.g:1109:3: RULE_ID\n {\n before(grammarAccess.getFuncAccess().getNameIDTerminalRuleCall_1_0()); \n match(input,RULE_ID,FOLLOW_2); \n after(grammarAccess.getFuncAccess().getNameIDTerminalRuleCall_1_0()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "8f275c8b0fd164046d4926e49855b249", "score": "0.6086344", "text": "public final void rule__Id__NameAssignment() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../csep.ui/src-gen/csep/ui/contentassist/antlr/internal/InternalCoffeeScript.g:15794:1: ( ( RULE_IDENTIFIER ) )\n // ../csep.ui/src-gen/csep/ui/contentassist/antlr/internal/InternalCoffeeScript.g:15795:1: ( RULE_IDENTIFIER )\n {\n // ../csep.ui/src-gen/csep/ui/contentassist/antlr/internal/InternalCoffeeScript.g:15795:1: ( RULE_IDENTIFIER )\n // ../csep.ui/src-gen/csep/ui/contentassist/antlr/internal/InternalCoffeeScript.g:15796:1: RULE_IDENTIFIER\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getIdAccess().getNameIDENTIFIERTerminalRuleCall_0()); \n }\n match(input,RULE_IDENTIFIER,FOLLOW_RULE_IDENTIFIER_in_rule__Id__NameAssignment32078); if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getIdAccess().getNameIDENTIFIERTerminalRuleCall_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "0a5572be4b23425c0844ffa868d41cc8", "score": "0.6039709", "text": "public final void rule__Var__NameAssignment_0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../edu.cmu.sei.annex.dmpl.ui/src-gen/edu/cmu/sei/annex/dmpl/ui/contentassist/antlr/internal/InternalDmpl.g:14991:1: ( ( RULE_TIDENTIFIER ) )\n // ../edu.cmu.sei.annex.dmpl.ui/src-gen/edu/cmu/sei/annex/dmpl/ui/contentassist/antlr/internal/InternalDmpl.g:14992:1: ( RULE_TIDENTIFIER )\n {\n // ../edu.cmu.sei.annex.dmpl.ui/src-gen/edu/cmu/sei/annex/dmpl/ui/contentassist/antlr/internal/InternalDmpl.g:14992:1: ( RULE_TIDENTIFIER )\n // ../edu.cmu.sei.annex.dmpl.ui/src-gen/edu/cmu/sei/annex/dmpl/ui/contentassist/antlr/internal/InternalDmpl.g:14993:1: RULE_TIDENTIFIER\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getVarAccess().getNameTIDENTIFIERTerminalRuleCall_0_0()); \n }\n match(input,RULE_TIDENTIFIER,FOLLOW_RULE_TIDENTIFIER_in_rule__Var__NameAssignment_030155); if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getVarAccess().getNameTIDENTIFIERTerminalRuleCall_0_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "b7176fe2b921e06c7a221b4ab331b638", "score": "0.59825796", "text": "public final void rule__CallExpr__NameAssignment_1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../edu.cmu.sei.annex.dmpl.ui/src-gen/edu/cmu/sei/annex/dmpl/ui/contentassist/antlr/internal/InternalDmpl.g:16151:1: ( ( RULE_TIDENTIFIER ) )\n // ../edu.cmu.sei.annex.dmpl.ui/src-gen/edu/cmu/sei/annex/dmpl/ui/contentassist/antlr/internal/InternalDmpl.g:16152:1: ( RULE_TIDENTIFIER )\n {\n // ../edu.cmu.sei.annex.dmpl.ui/src-gen/edu/cmu/sei/annex/dmpl/ui/contentassist/antlr/internal/InternalDmpl.g:16152:1: ( RULE_TIDENTIFIER )\n // ../edu.cmu.sei.annex.dmpl.ui/src-gen/edu/cmu/sei/annex/dmpl/ui/contentassist/antlr/internal/InternalDmpl.g:16153:1: RULE_TIDENTIFIER\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getCallExprAccess().getNameTIDENTIFIERTerminalRuleCall_1_0()); \n }\n match(input,RULE_TIDENTIFIER,FOLLOW_RULE_TIDENTIFIER_in_rule__CallExpr__NameAssignment_132545); if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getCallExprAccess().getNameTIDENTIFIERTerminalRuleCall_1_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "fa584dc79f8d36d82da7f1e33607d80c", "score": "0.59820133", "text": "public final void rule__RecordBlock__NameAssignment_2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../edu.cmu.sei.annex.dmpl.ui/src-gen/edu/cmu/sei/annex/dmpl/ui/contentassist/antlr/internal/InternalDmpl.g:14682:1: ( ( RULE_TIDENTIFIER ) )\n // ../edu.cmu.sei.annex.dmpl.ui/src-gen/edu/cmu/sei/annex/dmpl/ui/contentassist/antlr/internal/InternalDmpl.g:14683:1: ( RULE_TIDENTIFIER )\n {\n // ../edu.cmu.sei.annex.dmpl.ui/src-gen/edu/cmu/sei/annex/dmpl/ui/contentassist/antlr/internal/InternalDmpl.g:14683:1: ( RULE_TIDENTIFIER )\n // ../edu.cmu.sei.annex.dmpl.ui/src-gen/edu/cmu/sei/annex/dmpl/ui/contentassist/antlr/internal/InternalDmpl.g:14684:1: RULE_TIDENTIFIER\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getRecordBlockAccess().getNameTIDENTIFIERTerminalRuleCall_2_0()); \n }\n match(input,RULE_TIDENTIFIER,FOLLOW_RULE_TIDENTIFIER_in_rule__RecordBlock__NameAssignment_229527); if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getRecordBlockAccess().getNameTIDENTIFIERTerminalRuleCall_2_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "f401c379c7ad0588bc9dd9c7710dc243", "score": "0.5972411", "text": "public final void rule__EParameter__NameAssignment_0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalAnsibleDslParser.g:27577:1: ( ( RULE_ID ) )\n // InternalAnsibleDslParser.g:27578:2: ( RULE_ID )\n {\n // InternalAnsibleDslParser.g:27578:2: ( RULE_ID )\n // InternalAnsibleDslParser.g:27579:3: RULE_ID\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getEParameterAccess().getNameIDTerminalRuleCall_0_0()); \n }\n match(input,RULE_ID,FOLLOW_2); if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getEParameterAccess().getNameIDTerminalRuleCall_0_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "0d72de1cec500f9e089ad10977d36ff2", "score": "0.59582675", "text": "public final void rule__Function__NameAssignment_0() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.eclipse.e4.tools.css.editor.ui/src-gen/org/eclipse/e4/ui/contentassist/antlr/internal/InternalCSS.g:4010:1: ( ( RULE_IDENT ) )\r\n // ../org.eclipse.e4.tools.css.editor.ui/src-gen/org/eclipse/e4/ui/contentassist/antlr/internal/InternalCSS.g:4011:1: ( RULE_IDENT )\r\n {\r\n // ../org.eclipse.e4.tools.css.editor.ui/src-gen/org/eclipse/e4/ui/contentassist/antlr/internal/InternalCSS.g:4011:1: ( RULE_IDENT )\r\n // ../org.eclipse.e4.tools.css.editor.ui/src-gen/org/eclipse/e4/ui/contentassist/antlr/internal/InternalCSS.g:4012:1: RULE_IDENT\r\n {\r\n before(grammarAccess.getFunctionAccess().getNameIdentTerminalRuleCall_0_0()); \r\n match(input,RULE_IDENT,FOLLOW_RULE_IDENT_in_rule__Function__NameAssignment_08168); \r\n after(grammarAccess.getFunctionAccess().getNameIdentTerminalRuleCall_0_0()); \r\n\r\n }\r\n\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 finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "8f09c182a5f6a32f48dcff30efbb2ced", "score": "0.58554745", "text": "public final void rule__EDictionaryPair__NameAssignment_0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalAnsibleDslParser.g:30209:1: ( ( RULE_ID ) )\n // InternalAnsibleDslParser.g:30210:2: ( RULE_ID )\n {\n // InternalAnsibleDslParser.g:30210:2: ( RULE_ID )\n // InternalAnsibleDslParser.g:30211:3: RULE_ID\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getEDictionaryPairAccess().getNameIDTerminalRuleCall_0_0()); \n }\n match(input,RULE_ID,FOLLOW_2); if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getEDictionaryPairAccess().getNameIDTerminalRuleCall_0_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "fa978dfbcf55dce042d13b3d1f7d6ffd", "score": "0.5818991", "text": "public final void rule__Entity__NameAssignment_2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalBlackDog.g:795:1: ( ( RULE_ID ) )\n // InternalBlackDog.g:796:2: ( RULE_ID )\n {\n // InternalBlackDog.g:796:2: ( RULE_ID )\n // InternalBlackDog.g:797:3: RULE_ID\n {\n before(grammarAccess.getEntityAccess().getNameIDTerminalRuleCall_2_0()); \n match(input,RULE_ID,FOLLOW_2); \n after(grammarAccess.getEntityAccess().getNameIDTerminalRuleCall_2_0()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "bbcb0b87160edd5d663cd337d8c0c1a9", "score": "0.5818073", "text": "public final void rule__EVariableDeclaration__NameAssignment_0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalAnsibleDslParser.g:29761:1: ( ( RULE_ID ) )\n // InternalAnsibleDslParser.g:29762:2: ( RULE_ID )\n {\n // InternalAnsibleDslParser.g:29762:2: ( RULE_ID )\n // InternalAnsibleDslParser.g:29763:3: RULE_ID\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getEVariableDeclarationAccess().getNameIDTerminalRuleCall_0_0()); \n }\n match(input,RULE_ID,FOLLOW_2); if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getEVariableDeclarationAccess().getNameIDTerminalRuleCall_0_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "fc0b87ce0232b435165115c48e73c1a0", "score": "0.58077556", "text": "public final void rule__VariableDeclaration__NameAssignment() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../jp.ac.titech.cs.se.fwit.dsl.ui/src-gen/jp/ac/titech/cs/se/fwit/dsl/ui/contentassist/antlr/internal/InternalFwitRequirementsModel.g:5162:1: ( ( RULE_ID ) )\n // ../jp.ac.titech.cs.se.fwit.dsl.ui/src-gen/jp/ac/titech/cs/se/fwit/dsl/ui/contentassist/antlr/internal/InternalFwitRequirementsModel.g:5163:1: ( RULE_ID )\n {\n // ../jp.ac.titech.cs.se.fwit.dsl.ui/src-gen/jp/ac/titech/cs/se/fwit/dsl/ui/contentassist/antlr/internal/InternalFwitRequirementsModel.g:5163:1: ( RULE_ID )\n // ../jp.ac.titech.cs.se.fwit.dsl.ui/src-gen/jp/ac/titech/cs/se/fwit/dsl/ui/contentassist/antlr/internal/InternalFwitRequirementsModel.g:5164:1: RULE_ID\n {\n before(grammarAccess.getVariableDeclarationAccess().getNameIDTerminalRuleCall_0()); \n match(input,RULE_ID,FOLLOW_RULE_ID_in_rule__VariableDeclaration__NameAssignment10494); \n after(grammarAccess.getVariableDeclarationAccess().getNameIDTerminalRuleCall_0()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "0482ddf03457d260dd79cce2c828f418", "score": "0.5799257", "text": "public final void rule__Feature__NameAssignment_1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalBlackDog.g:863:1: ( ( RULE_ID ) )\n // InternalBlackDog.g:864:2: ( RULE_ID )\n {\n // InternalBlackDog.g:864:2: ( RULE_ID )\n // InternalBlackDog.g:865:3: RULE_ID\n {\n before(grammarAccess.getFeatureAccess().getNameIDTerminalRuleCall_1_0()); \n match(input,RULE_ID,FOLLOW_2); \n after(grammarAccess.getFeatureAccess().getNameIDTerminalRuleCall_1_0()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "5ec117bbca9ca5668c84964ad8f17b47", "score": "0.57852906", "text": "public final void rule__Specification__Group_0__6__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../edu.cmu.sei.annex.dmpl.ui/src-gen/edu/cmu/sei/annex/dmpl/ui/contentassist/antlr/internal/InternalDmpl.g:4109:1: ( ( ( rule__Specification__FunctionAssignment_0_6 ) ) )\n // ../edu.cmu.sei.annex.dmpl.ui/src-gen/edu/cmu/sei/annex/dmpl/ui/contentassist/antlr/internal/InternalDmpl.g:4110:1: ( ( rule__Specification__FunctionAssignment_0_6 ) )\n {\n // ../edu.cmu.sei.annex.dmpl.ui/src-gen/edu/cmu/sei/annex/dmpl/ui/contentassist/antlr/internal/InternalDmpl.g:4110:1: ( ( rule__Specification__FunctionAssignment_0_6 ) )\n // ../edu.cmu.sei.annex.dmpl.ui/src-gen/edu/cmu/sei/annex/dmpl/ui/contentassist/antlr/internal/InternalDmpl.g:4111:1: ( rule__Specification__FunctionAssignment_0_6 )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getSpecificationAccess().getFunctionAssignment_0_6()); \n }\n // ../edu.cmu.sei.annex.dmpl.ui/src-gen/edu/cmu/sei/annex/dmpl/ui/contentassist/antlr/internal/InternalDmpl.g:4112:1: ( rule__Specification__FunctionAssignment_0_6 )\n // ../edu.cmu.sei.annex.dmpl.ui/src-gen/edu/cmu/sei/annex/dmpl/ui/contentassist/antlr/internal/InternalDmpl.g:4112:2: rule__Specification__FunctionAssignment_0_6\n {\n pushFollow(FOLLOW_rule__Specification__FunctionAssignment_0_6_in_rule__Specification__Group_0__6__Impl8741);\n rule__Specification__FunctionAssignment_0_6();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getSpecificationAccess().getFunctionAssignment_0_6()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "31dae8aa86beeeb60f543e0f1c7b7127", "score": "0.5767143", "text": "public final void rule__EFunctionCallOrVariable__NameAssignment_0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalAnsibleDslParser.g:28976:1: ( ( RULE_ID ) )\n // InternalAnsibleDslParser.g:28977:2: ( RULE_ID )\n {\n // InternalAnsibleDslParser.g:28977:2: ( RULE_ID )\n // InternalAnsibleDslParser.g:28978:3: RULE_ID\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getEFunctionCallOrVariableAccess().getNameIDTerminalRuleCall_0_0()); \n }\n match(input,RULE_ID,FOLLOW_2); if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getEFunctionCallOrVariableAccess().getNameIDTerminalRuleCall_0_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "f16f57292ce74d6a3de3cf3e47762758", "score": "0.5762251", "text": "public final void rule__DecFunc__NameAssignment_1() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalGo.g:8126:1: ( ( RULE_ID ) )\r\n // InternalGo.g:8127:2: ( RULE_ID )\r\n {\r\n // InternalGo.g:8127:2: ( RULE_ID )\r\n // InternalGo.g:8128:3: RULE_ID\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getDecFuncAccess().getNameIDTerminalRuleCall_1_0()); \r\n }\r\n match(input,RULE_ID,FOLLOW_2); if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getDecFuncAccess().getNameIDTerminalRuleCall_1_0()); \r\n }\r\n\r\n }\r\n\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 finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "992a4dd375927c9f3fbf58e4815764c2", "score": "0.5761533", "text": "public final void rule__Specification__Group_0__2__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../edu.cmu.sei.annex.dmpl.ui/src-gen/edu/cmu/sei/annex/dmpl/ui/contentassist/antlr/internal/InternalDmpl.g:3987:1: ( ( ( rule__Specification__NameAssignment_0_2 ) ) )\n // ../edu.cmu.sei.annex.dmpl.ui/src-gen/edu/cmu/sei/annex/dmpl/ui/contentassist/antlr/internal/InternalDmpl.g:3988:1: ( ( rule__Specification__NameAssignment_0_2 ) )\n {\n // ../edu.cmu.sei.annex.dmpl.ui/src-gen/edu/cmu/sei/annex/dmpl/ui/contentassist/antlr/internal/InternalDmpl.g:3988:1: ( ( rule__Specification__NameAssignment_0_2 ) )\n // ../edu.cmu.sei.annex.dmpl.ui/src-gen/edu/cmu/sei/annex/dmpl/ui/contentassist/antlr/internal/InternalDmpl.g:3989:1: ( rule__Specification__NameAssignment_0_2 )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getSpecificationAccess().getNameAssignment_0_2()); \n }\n // ../edu.cmu.sei.annex.dmpl.ui/src-gen/edu/cmu/sei/annex/dmpl/ui/contentassist/antlr/internal/InternalDmpl.g:3990:1: ( rule__Specification__NameAssignment_0_2 )\n // ../edu.cmu.sei.annex.dmpl.ui/src-gen/edu/cmu/sei/annex/dmpl/ui/contentassist/antlr/internal/InternalDmpl.g:3990:2: rule__Specification__NameAssignment_0_2\n {\n pushFollow(FOLLOW_rule__Specification__NameAssignment_0_2_in_rule__Specification__Group_0__2__Impl8495);\n rule__Specification__NameAssignment_0_2();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getSpecificationAccess().getNameAssignment_0_2()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "887e49aef5f1d56d899a6f9ef0123ba7", "score": "0.57382417", "text": "public final void rule__ESpecialVariable__NameAssignment_2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalAnsibleDslParser.g:29957:1: ( ( RULE_ID ) )\n // InternalAnsibleDslParser.g:29958:2: ( RULE_ID )\n {\n // InternalAnsibleDslParser.g:29958:2: ( RULE_ID )\n // InternalAnsibleDslParser.g:29959:3: RULE_ID\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getESpecialVariableAccess().getNameIDTerminalRuleCall_2_0()); \n }\n match(input,RULE_ID,FOLLOW_2); if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getESpecialVariableAccess().getNameIDTerminalRuleCall_2_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "86791946df7d2a45fb4ab436fd0ada61", "score": "0.5732239", "text": "public final void rule__Model__NameAssignment_1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.example.qdsl.ui/src-gen/org/xtext/example/qdsl/ui/contentassist/antlr/internal/InternalQDsl.g:848:1: ( ( RULE_ID ) )\n // ../org.xtext.example.qdsl.ui/src-gen/org/xtext/example/qdsl/ui/contentassist/antlr/internal/InternalQDsl.g:849:1: ( RULE_ID )\n {\n // ../org.xtext.example.qdsl.ui/src-gen/org/xtext/example/qdsl/ui/contentassist/antlr/internal/InternalQDsl.g:849:1: ( RULE_ID )\n // ../org.xtext.example.qdsl.ui/src-gen/org/xtext/example/qdsl/ui/contentassist/antlr/internal/InternalQDsl.g:850:1: RULE_ID\n {\n before(grammarAccess.getModelAccess().getNameIDTerminalRuleCall_1_0()); \n match(input,RULE_ID,FOLLOW_RULE_ID_in_rule__Model__NameAssignment_11636); \n after(grammarAccess.getModelAccess().getNameIDTerminalRuleCall_1_0()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "c529e390da24a34de6d3d4d20473caa9", "score": "0.5723478", "text": "public final void rule__Specification__Group_1__2__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../edu.cmu.sei.annex.dmpl.ui/src-gen/edu/cmu/sei/annex/dmpl/ui/contentassist/antlr/internal/InternalDmpl.g:4246:1: ( ( ( rule__Specification__NameAssignment_1_2 ) ) )\n // ../edu.cmu.sei.annex.dmpl.ui/src-gen/edu/cmu/sei/annex/dmpl/ui/contentassist/antlr/internal/InternalDmpl.g:4247:1: ( ( rule__Specification__NameAssignment_1_2 ) )\n {\n // ../edu.cmu.sei.annex.dmpl.ui/src-gen/edu/cmu/sei/annex/dmpl/ui/contentassist/antlr/internal/InternalDmpl.g:4247:1: ( ( rule__Specification__NameAssignment_1_2 ) )\n // ../edu.cmu.sei.annex.dmpl.ui/src-gen/edu/cmu/sei/annex/dmpl/ui/contentassist/antlr/internal/InternalDmpl.g:4248:1: ( rule__Specification__NameAssignment_1_2 )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getSpecificationAccess().getNameAssignment_1_2()); \n }\n // ../edu.cmu.sei.annex.dmpl.ui/src-gen/edu/cmu/sei/annex/dmpl/ui/contentassist/antlr/internal/InternalDmpl.g:4249:1: ( rule__Specification__NameAssignment_1_2 )\n // ../edu.cmu.sei.annex.dmpl.ui/src-gen/edu/cmu/sei/annex/dmpl/ui/contentassist/antlr/internal/InternalDmpl.g:4249:2: rule__Specification__NameAssignment_1_2\n {\n pushFollow(FOLLOW_rule__Specification__NameAssignment_1_2_in_rule__Specification__Group_1__2__Impl8999);\n rule__Specification__NameAssignment_1_2();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getSpecificationAccess().getNameAssignment_1_2()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "bce0ef3d15750fec85089249ecf843b7", "score": "0.5698033", "text": "public final void rule__Specification__Group_2__2__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../edu.cmu.sei.annex.dmpl.ui/src-gen/edu/cmu/sei/annex/dmpl/ui/contentassist/antlr/internal/InternalDmpl.g:4536:1: ( ( ( rule__Specification__NameAssignment_2_2 ) ) )\n // ../edu.cmu.sei.annex.dmpl.ui/src-gen/edu/cmu/sei/annex/dmpl/ui/contentassist/antlr/internal/InternalDmpl.g:4537:1: ( ( rule__Specification__NameAssignment_2_2 ) )\n {\n // ../edu.cmu.sei.annex.dmpl.ui/src-gen/edu/cmu/sei/annex/dmpl/ui/contentassist/antlr/internal/InternalDmpl.g:4537:1: ( ( rule__Specification__NameAssignment_2_2 ) )\n // ../edu.cmu.sei.annex.dmpl.ui/src-gen/edu/cmu/sei/annex/dmpl/ui/contentassist/antlr/internal/InternalDmpl.g:4538:1: ( rule__Specification__NameAssignment_2_2 )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getSpecificationAccess().getNameAssignment_2_2()); \n }\n // ../edu.cmu.sei.annex.dmpl.ui/src-gen/edu/cmu/sei/annex/dmpl/ui/contentassist/antlr/internal/InternalDmpl.g:4539:1: ( rule__Specification__NameAssignment_2_2 )\n // ../edu.cmu.sei.annex.dmpl.ui/src-gen/edu/cmu/sei/annex/dmpl/ui/contentassist/antlr/internal/InternalDmpl.g:4539:2: rule__Specification__NameAssignment_2_2\n {\n pushFollow(FOLLOW_rule__Specification__NameAssignment_2_2_in_rule__Specification__Group_2__2__Impl9565);\n rule__Specification__NameAssignment_2_2();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getSpecificationAccess().getNameAssignment_2_2()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "d324f9b4bf9abe474f477e5abf14865c", "score": "0.5693398", "text": "public final void rule__Specification__Group_1__7__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../edu.cmu.sei.annex.dmpl.ui/src-gen/edu/cmu/sei/annex/dmpl/ui/contentassist/antlr/internal/InternalDmpl.g:4397:1: ( ( ( rule__Specification__FunctionAssignment_1_7 ) ) )\n // ../edu.cmu.sei.annex.dmpl.ui/src-gen/edu/cmu/sei/annex/dmpl/ui/contentassist/antlr/internal/InternalDmpl.g:4398:1: ( ( rule__Specification__FunctionAssignment_1_7 ) )\n {\n // ../edu.cmu.sei.annex.dmpl.ui/src-gen/edu/cmu/sei/annex/dmpl/ui/contentassist/antlr/internal/InternalDmpl.g:4398:1: ( ( rule__Specification__FunctionAssignment_1_7 ) )\n // ../edu.cmu.sei.annex.dmpl.ui/src-gen/edu/cmu/sei/annex/dmpl/ui/contentassist/antlr/internal/InternalDmpl.g:4399:1: ( rule__Specification__FunctionAssignment_1_7 )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getSpecificationAccess().getFunctionAssignment_1_7()); \n }\n // ../edu.cmu.sei.annex.dmpl.ui/src-gen/edu/cmu/sei/annex/dmpl/ui/contentassist/antlr/internal/InternalDmpl.g:4400:1: ( rule__Specification__FunctionAssignment_1_7 )\n // ../edu.cmu.sei.annex.dmpl.ui/src-gen/edu/cmu/sei/annex/dmpl/ui/contentassist/antlr/internal/InternalDmpl.g:4400:2: rule__Specification__FunctionAssignment_1_7\n {\n pushFollow(FOLLOW_rule__Specification__FunctionAssignment_1_7_in_rule__Specification__Group_1__7__Impl9305);\n rule__Specification__FunctionAssignment_1_7();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getSpecificationAccess().getFunctionAssignment_1_7()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "47a68c52ebbcfcb6a8591059027888b3", "score": "0.56515884", "text": "public final void rule__Decl__NameAssignment_1() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalGo.g:7181:1: ( ( RULE_ID ) )\r\n // InternalGo.g:7182:2: ( RULE_ID )\r\n {\r\n // InternalGo.g:7182:2: ( RULE_ID )\r\n // InternalGo.g:7183:3: RULE_ID\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getDeclAccess().getNameIDTerminalRuleCall_1_0()); \r\n }\r\n match(input,RULE_ID,FOLLOW_2); if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getDeclAccess().getNameIDTerminalRuleCall_1_0()); \r\n }\r\n\r\n }\r\n\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 finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "0b27a973a6050faf857ebf8a1cfb3583", "score": "0.564804", "text": "public final void rule__Language__NameAssignment_0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalFsm.g:3536:1: ( ( RULE_ID ) )\n // InternalFsm.g:3537:2: ( RULE_ID )\n {\n // InternalFsm.g:3537:2: ( RULE_ID )\n // InternalFsm.g:3538:3: RULE_ID\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getLanguageAccess().getNameIDTerminalRuleCall_0_0()); \n }\n match(input,RULE_ID,FOLLOW_2); if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getLanguageAccess().getNameIDTerminalRuleCall_0_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "70b9d9ea34ee330be54627d906b320b9", "score": "0.56307936", "text": "public final void rule__XVariableDeclaration__NameAssignment_2_0_0_1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalReactiveXD.g:18881:1: ( ( ruleValidID ) )\n // InternalReactiveXD.g:18882:2: ( ruleValidID )\n {\n // InternalReactiveXD.g:18882:2: ( ruleValidID )\n // InternalReactiveXD.g:18883:3: ruleValidID\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXVariableDeclarationAccess().getNameValidIDParserRuleCall_2_0_0_1_0()); \n }\n pushFollow(FOLLOW_2);\n ruleValidID();\n\n state._fsp--;\n if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXVariableDeclarationAccess().getNameValidIDParserRuleCall_2_0_0_1_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "f420cede381375413952875d27e98a9f", "score": "0.5629052", "text": "public final void rule__Module__Group__4__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../jp.ac.titech.cs.se.fwit.dsl.ui/src-gen/jp/ac/titech/cs/se/fwit/dsl/ui/contentassist/antlr/internal/InternalFwitRequirementsModel.g:2110:1: ( ( ( rule__Module__FunctionsAssignment_4 )* ) )\n // ../jp.ac.titech.cs.se.fwit.dsl.ui/src-gen/jp/ac/titech/cs/se/fwit/dsl/ui/contentassist/antlr/internal/InternalFwitRequirementsModel.g:2111:1: ( ( rule__Module__FunctionsAssignment_4 )* )\n {\n // ../jp.ac.titech.cs.se.fwit.dsl.ui/src-gen/jp/ac/titech/cs/se/fwit/dsl/ui/contentassist/antlr/internal/InternalFwitRequirementsModel.g:2111:1: ( ( rule__Module__FunctionsAssignment_4 )* )\n // ../jp.ac.titech.cs.se.fwit.dsl.ui/src-gen/jp/ac/titech/cs/se/fwit/dsl/ui/contentassist/antlr/internal/InternalFwitRequirementsModel.g:2112:1: ( rule__Module__FunctionsAssignment_4 )*\n {\n before(grammarAccess.getModuleAccess().getFunctionsAssignment_4()); \n // ../jp.ac.titech.cs.se.fwit.dsl.ui/src-gen/jp/ac/titech/cs/se/fwit/dsl/ui/contentassist/antlr/internal/InternalFwitRequirementsModel.g:2113:1: ( rule__Module__FunctionsAssignment_4 )*\n loop14:\n do {\n int alt14=2;\n int LA14_0 = input.LA(1);\n\n if ( (LA14_0==35) ) {\n alt14=1;\n }\n\n\n switch (alt14) {\n \tcase 1 :\n \t // ../jp.ac.titech.cs.se.fwit.dsl.ui/src-gen/jp/ac/titech/cs/se/fwit/dsl/ui/contentassist/antlr/internal/InternalFwitRequirementsModel.g:2113:2: rule__Module__FunctionsAssignment_4\n \t {\n \t pushFollow(FOLLOW_rule__Module__FunctionsAssignment_4_in_rule__Module__Group__4__Impl4408);\n \t rule__Module__FunctionsAssignment_4();\n\n \t state._fsp--;\n\n\n \t }\n \t break;\n\n \tdefault :\n \t break loop14;\n }\n } while (true);\n\n after(grammarAccess.getModuleAccess().getFunctionsAssignment_4()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "192c7bed14bf793014f7d81463a0d4f6", "score": "0.56283087", "text": "public final void rule__Type__NameAssignment_1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../jp.ac.titech.cs.se.fwit.dsl.ui/src-gen/jp/ac/titech/cs/se/fwit/dsl/ui/contentassist/antlr/internal/InternalFwitRequirementsModel.g:4357:1: ( ( RULE_ID ) )\n // ../jp.ac.titech.cs.se.fwit.dsl.ui/src-gen/jp/ac/titech/cs/se/fwit/dsl/ui/contentassist/antlr/internal/InternalFwitRequirementsModel.g:4358:1: ( RULE_ID )\n {\n // ../jp.ac.titech.cs.se.fwit.dsl.ui/src-gen/jp/ac/titech/cs/se/fwit/dsl/ui/contentassist/antlr/internal/InternalFwitRequirementsModel.g:4358:1: ( RULE_ID )\n // ../jp.ac.titech.cs.se.fwit.dsl.ui/src-gen/jp/ac/titech/cs/se/fwit/dsl/ui/contentassist/antlr/internal/InternalFwitRequirementsModel.g:4359:1: RULE_ID\n {\n before(grammarAccess.getTypeAccess().getNameIDTerminalRuleCall_1_0()); \n match(input,RULE_ID,FOLLOW_RULE_ID_in_rule__Type__NameAssignment_18842); \n after(grammarAccess.getTypeAccess().getNameIDTerminalRuleCall_1_0()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "a4c7b975fe0ce800779e8ad17f53dfe3", "score": "0.5616708", "text": "public final void rule__CallExpr__NamespaceAssignment_0_0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../edu.cmu.sei.annex.dmpl.ui/src-gen/edu/cmu/sei/annex/dmpl/ui/contentassist/antlr/internal/InternalDmpl.g:16136:1: ( ( RULE_TIDENTIFIER ) )\n // ../edu.cmu.sei.annex.dmpl.ui/src-gen/edu/cmu/sei/annex/dmpl/ui/contentassist/antlr/internal/InternalDmpl.g:16137:1: ( RULE_TIDENTIFIER )\n {\n // ../edu.cmu.sei.annex.dmpl.ui/src-gen/edu/cmu/sei/annex/dmpl/ui/contentassist/antlr/internal/InternalDmpl.g:16137:1: ( RULE_TIDENTIFIER )\n // ../edu.cmu.sei.annex.dmpl.ui/src-gen/edu/cmu/sei/annex/dmpl/ui/contentassist/antlr/internal/InternalDmpl.g:16138:1: RULE_TIDENTIFIER\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getCallExprAccess().getNamespaceTIDENTIFIERTerminalRuleCall_0_0_0()); \n }\n match(input,RULE_TIDENTIFIER,FOLLOW_RULE_TIDENTIFIER_in_rule__CallExpr__NamespaceAssignment_0_032514); if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getCallExprAccess().getNamespaceTIDENTIFIERTerminalRuleCall_0_0_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "94b78785663f7a638eac7ec75f1e7f35", "score": "0.56065404", "text": "public final void rule__Variable__NameAssignment_2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalSATL.g:1393:1: ( ( RULE_STRING ) )\n // InternalSATL.g:1394:2: ( RULE_STRING )\n {\n // InternalSATL.g:1394:2: ( RULE_STRING )\n // InternalSATL.g:1395:3: RULE_STRING\n {\n before(grammarAccess.getVariableAccess().getNameSTRINGTerminalRuleCall_2_0()); \n match(input,RULE_STRING,FOLLOW_2); \n after(grammarAccess.getVariableAccess().getNameSTRINGTerminalRuleCall_2_0()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "36383de1aed75b85f020531de0477721", "score": "0.5594057", "text": "public final void rule__Transition__NameAssignment_4() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // InternalPetrinet2.g:2897:1: ( ( RULE_STRING ) )\n // InternalPetrinet2.g:2898:1: ( RULE_STRING )\n {\n // InternalPetrinet2.g:2898:1: ( RULE_STRING )\n // InternalPetrinet2.g:2899:1: RULE_STRING\n {\n before(grammarAccess.getTransitionAccess().getNameSTRINGTerminalRuleCall_4_0()); \n match(input,RULE_STRING,FollowSets000.FOLLOW_2); \n after(grammarAccess.getTransitionAccess().getNameSTRINGTerminalRuleCall_4_0()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "6563d1722637679c8f115a191bd17326", "score": "0.5587305", "text": "public final void rule__FreeText__NameAssignment_0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalExpressions.g:1085:1: ( ( RULE_ID ) )\n // InternalExpressions.g:1086:2: ( RULE_ID )\n {\n // InternalExpressions.g:1086:2: ( RULE_ID )\n // InternalExpressions.g:1087:3: RULE_ID\n {\n before(grammarAccess.getFreeTextAccess().getNameIDTerminalRuleCall_0_0()); \n match(input,RULE_ID,FOLLOW_2); \n after(grammarAccess.getFreeTextAccess().getNameIDTerminalRuleCall_0_0()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "ad71151f43d15eb1af7c2c0743caa48c", "score": "0.55792594", "text": "public final void rule__Module__FunctionsAssignment_4() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../jp.ac.titech.cs.se.fwit.dsl.ui/src-gen/jp/ac/titech/cs/se/fwit/dsl/ui/contentassist/antlr/internal/InternalFwitRequirementsModel.g:4447:1: ( ( ruleFunctionDeclaration ) )\n // ../jp.ac.titech.cs.se.fwit.dsl.ui/src-gen/jp/ac/titech/cs/se/fwit/dsl/ui/contentassist/antlr/internal/InternalFwitRequirementsModel.g:4448:1: ( ruleFunctionDeclaration )\n {\n // ../jp.ac.titech.cs.se.fwit.dsl.ui/src-gen/jp/ac/titech/cs/se/fwit/dsl/ui/contentassist/antlr/internal/InternalFwitRequirementsModel.g:4448:1: ( ruleFunctionDeclaration )\n // ../jp.ac.titech.cs.se.fwit.dsl.ui/src-gen/jp/ac/titech/cs/se/fwit/dsl/ui/contentassist/antlr/internal/InternalFwitRequirementsModel.g:4449:1: ruleFunctionDeclaration\n {\n before(grammarAccess.getModuleAccess().getFunctionsFunctionDeclarationParserRuleCall_4_0()); \n pushFollow(FOLLOW_ruleFunctionDeclaration_in_rule__Module__FunctionsAssignment_49028);\n ruleFunctionDeclaration();\n\n state._fsp--;\n\n after(grammarAccess.getModuleAccess().getFunctionsFunctionDeclarationParserRuleCall_4_0()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "a487c2cd4a84a5aa95a38dbde67720d4", "score": "0.55599463", "text": "public final void rule__Module__NameAssignment_1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../jp.ac.titech.cs.se.fwit.dsl.ui/src-gen/jp/ac/titech/cs/se/fwit/dsl/ui/contentassist/antlr/internal/InternalFwitRequirementsModel.g:4417:1: ( ( RULE_ID ) )\n // ../jp.ac.titech.cs.se.fwit.dsl.ui/src-gen/jp/ac/titech/cs/se/fwit/dsl/ui/contentassist/antlr/internal/InternalFwitRequirementsModel.g:4418:1: ( RULE_ID )\n {\n // ../jp.ac.titech.cs.se.fwit.dsl.ui/src-gen/jp/ac/titech/cs/se/fwit/dsl/ui/contentassist/antlr/internal/InternalFwitRequirementsModel.g:4418:1: ( RULE_ID )\n // ../jp.ac.titech.cs.se.fwit.dsl.ui/src-gen/jp/ac/titech/cs/se/fwit/dsl/ui/contentassist/antlr/internal/InternalFwitRequirementsModel.g:4419:1: RULE_ID\n {\n before(grammarAccess.getModuleAccess().getNameIDTerminalRuleCall_1_0()); \n match(input,RULE_ID,FOLLOW_RULE_ID_in_rule__Module__NameAssignment_18966); \n after(grammarAccess.getModuleAccess().getNameIDTerminalRuleCall_1_0()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "695c31d21a36a49121dcd5b0735d4ff3", "score": "0.5541855", "text": "public final void rule__Question__NameAssignment_1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.example.qdsl.ui/src-gen/org/xtext/example/qdsl/ui/contentassist/antlr/internal/InternalQDsl.g:878:1: ( ( RULE_ID ) )\n // ../org.xtext.example.qdsl.ui/src-gen/org/xtext/example/qdsl/ui/contentassist/antlr/internal/InternalQDsl.g:879:1: ( RULE_ID )\n {\n // ../org.xtext.example.qdsl.ui/src-gen/org/xtext/example/qdsl/ui/contentassist/antlr/internal/InternalQDsl.g:879:1: ( RULE_ID )\n // ../org.xtext.example.qdsl.ui/src-gen/org/xtext/example/qdsl/ui/contentassist/antlr/internal/InternalQDsl.g:880:1: RULE_ID\n {\n before(grammarAccess.getQuestionAccess().getNameIDTerminalRuleCall_1_0()); \n match(input,RULE_ID,FOLLOW_RULE_ID_in_rule__Question__NameAssignment_11698); \n after(grammarAccess.getQuestionAccess().getNameIDTerminalRuleCall_1_0()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "5be38a239144e0a0a2d36c07874bde7a", "score": "0.5533875", "text": "public final void rule__XVariableDeclaration__NameAssignment_2_1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalReactiveXD.g:18896:1: ( ( ruleValidID ) )\n // InternalReactiveXD.g:18897:2: ( ruleValidID )\n {\n // InternalReactiveXD.g:18897:2: ( ruleValidID )\n // InternalReactiveXD.g:18898:3: ruleValidID\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXVariableDeclarationAccess().getNameValidIDParserRuleCall_2_1_0()); \n }\n pushFollow(FOLLOW_2);\n ruleValidID();\n\n state._fsp--;\n if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXVariableDeclarationAccess().getNameValidIDParserRuleCall_2_1_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "3cde316ccdd564310fcb86c571861aa9", "score": "0.5529985", "text": "public final void rule__EHandler__NameAssignment_3_0_1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalAnsibleDslParser.g:27119:1: ( ( RULE_STRING ) )\n // InternalAnsibleDslParser.g:27120:2: ( RULE_STRING )\n {\n // InternalAnsibleDslParser.g:27120:2: ( RULE_STRING )\n // InternalAnsibleDslParser.g:27121:3: RULE_STRING\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getEHandlerAccess().getNameSTRINGTerminalRuleCall_3_0_1_0()); \n }\n match(input,RULE_STRING,FOLLOW_2); if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getEHandlerAccess().getNameSTRINGTerminalRuleCall_3_0_1_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "5bc0c59ff103168214d040daa3f81607", "score": "0.55275065", "text": "public final void rule__Param__NameAssignment_1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalFuncDsl.g:1167:1: ( ( RULE_ID ) )\n // InternalFuncDsl.g:1168:2: ( RULE_ID )\n {\n // InternalFuncDsl.g:1168:2: ( RULE_ID )\n // InternalFuncDsl.g:1169:3: RULE_ID\n {\n before(grammarAccess.getParamAccess().getNameIDTerminalRuleCall_1_0()); \n match(input,RULE_ID,FOLLOW_2); \n after(grammarAccess.getParamAccess().getNameIDTerminalRuleCall_1_0()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "8a31033499c7e3d3a6547d0167a2a95e", "score": "0.55245465", "text": "public final void rule__MultDecVars__NameAssignment_2_0() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalGo.g:7451:1: ( ( RULE_ID ) )\r\n // InternalGo.g:7452:2: ( RULE_ID )\r\n {\r\n // InternalGo.g:7452:2: ( RULE_ID )\r\n // InternalGo.g:7453:3: RULE_ID\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getMultDecVarsAccess().getNameIDTerminalRuleCall_2_0_0()); \r\n }\r\n match(input,RULE_ID,FOLLOW_2); if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getMultDecVarsAccess().getNameIDTerminalRuleCall_2_0_0()); \r\n }\r\n\r\n }\r\n\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 finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "0eab429dfeea489175f13867ee2031a0", "score": "0.55231297", "text": "public final EObject rulefunction_designator() throws RecognitionException {\n EObject current = null;\n\n Token lv_name_function_0_0=null;\n Token otherlv_1=null;\n Token otherlv_3=null;\n EObject lv_parameters_2_0 = null;\n\n\n\n \tenterRule();\n\n try {\n // InternalPascalParser.g:3490:2: ( ( ( (lv_name_function_0_0= RULE_ID ) ) otherlv_1= LeftParenthesis ( (lv_parameters_2_0= ruleparameter_list ) ) otherlv_3= RightParenthesis ) )\n // InternalPascalParser.g:3491:2: ( ( (lv_name_function_0_0= RULE_ID ) ) otherlv_1= LeftParenthesis ( (lv_parameters_2_0= ruleparameter_list ) ) otherlv_3= RightParenthesis )\n {\n // InternalPascalParser.g:3491:2: ( ( (lv_name_function_0_0= RULE_ID ) ) otherlv_1= LeftParenthesis ( (lv_parameters_2_0= ruleparameter_list ) ) otherlv_3= RightParenthesis )\n // InternalPascalParser.g:3492:3: ( (lv_name_function_0_0= RULE_ID ) ) otherlv_1= LeftParenthesis ( (lv_parameters_2_0= ruleparameter_list ) ) otherlv_3= RightParenthesis\n {\n // InternalPascalParser.g:3492:3: ( (lv_name_function_0_0= RULE_ID ) )\n // InternalPascalParser.g:3493:4: (lv_name_function_0_0= RULE_ID )\n {\n // InternalPascalParser.g:3493:4: (lv_name_function_0_0= RULE_ID )\n // InternalPascalParser.g:3494:5: lv_name_function_0_0= RULE_ID\n {\n lv_name_function_0_0=(Token)match(input,RULE_ID,FOLLOW_37); \n\n \t\t\t\t\tnewLeafNode(lv_name_function_0_0, grammarAccess.getFunction_designatorAccess().getName_functionIDTerminalRuleCall_0_0());\n \t\t\t\t\n\n \t\t\t\t\tif (current==null) {\n \t\t\t\t\t\tcurrent = createModelElement(grammarAccess.getFunction_designatorRule());\n \t\t\t\t\t}\n \t\t\t\t\tsetWithLastConsumed(\n \t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\"name_function\",\n \t\t\t\t\t\tlv_name_function_0_0,\n \t\t\t\t\t\t\"org.xtext.compiler.pascal.Pascal.ID\");\n \t\t\t\t\n\n }\n\n\n }\n\n otherlv_1=(Token)match(input,LeftParenthesis,FOLLOW_18); \n\n \t\t\tnewLeafNode(otherlv_1, grammarAccess.getFunction_designatorAccess().getLeftParenthesisKeyword_1());\n \t\t\n // InternalPascalParser.g:3514:3: ( (lv_parameters_2_0= ruleparameter_list ) )\n // InternalPascalParser.g:3515:4: (lv_parameters_2_0= ruleparameter_list )\n {\n // InternalPascalParser.g:3515:4: (lv_parameters_2_0= ruleparameter_list )\n // InternalPascalParser.g:3516:5: lv_parameters_2_0= ruleparameter_list\n {\n\n \t\t\t\t\tnewCompositeNode(grammarAccess.getFunction_designatorAccess().getParametersParameter_listParserRuleCall_2_0());\n \t\t\t\t\n pushFollow(FOLLOW_24);\n lv_parameters_2_0=ruleparameter_list();\n\n state._fsp--;\n\n\n \t\t\t\t\tif (current==null) {\n \t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getFunction_designatorRule());\n \t\t\t\t\t}\n \t\t\t\t\tset(\n \t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\"parameters\",\n \t\t\t\t\t\tlv_parameters_2_0,\n \t\t\t\t\t\t\"org.xtext.compiler.pascal.Pascal.parameter_list\");\n \t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\n\n }\n\n\n }\n\n otherlv_3=(Token)match(input,RightParenthesis,FOLLOW_2); \n\n \t\t\tnewLeafNode(otherlv_3, grammarAccess.getFunction_designatorAccess().getRightParenthesisKeyword_3());\n \t\t\n\n }\n\n\n }\n\n\n \tleaveRule();\n\n }\n\n catch (RecognitionException re) {\n recover(input,re);\n appendSkippedTokens();\n }\n finally {\n }\n return current;\n }", "title": "" }, { "docid": "ec73f24d1bbbd5ab64eb48a7e890f51b", "score": "0.552024", "text": "public final void rule__XVariableDeclaration__NameAssignment_2_0_0_1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.tortoiseshell.ui/src-gen/org/xtext/tortoiseshell/ui/contentassist/antlr/internal/InternalTortoiseShell.g:18876:1: ( ( ruleValidID ) )\n // ../org.xtext.tortoiseshell.ui/src-gen/org/xtext/tortoiseshell/ui/contentassist/antlr/internal/InternalTortoiseShell.g:18877:1: ( ruleValidID )\n {\n // ../org.xtext.tortoiseshell.ui/src-gen/org/xtext/tortoiseshell/ui/contentassist/antlr/internal/InternalTortoiseShell.g:18877:1: ( ruleValidID )\n // ../org.xtext.tortoiseshell.ui/src-gen/org/xtext/tortoiseshell/ui/contentassist/antlr/internal/InternalTortoiseShell.g:18878:1: ruleValidID\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXVariableDeclarationAccess().getNameValidIDParserRuleCall_2_0_0_1_0()); \n }\n pushFollow(FOLLOW_ruleValidID_in_rule__XVariableDeclaration__NameAssignment_2_0_0_137974);\n ruleValidID();\n\n state._fsp--;\n if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXVariableDeclarationAccess().getNameValidIDParserRuleCall_2_0_0_1_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "5f4d7bdfbdc975891fc7b12fbf20ca3a", "score": "0.5491304", "text": "public final void rule__Stmt__NodeAssignment_8_3() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../edu.cmu.sei.annex.dmpl.ui/src-gen/edu/cmu/sei/annex/dmpl/ui/contentassist/antlr/internal/InternalDmpl.g:15626:1: ( ( RULE_TIDENTIFIER ) )\n // ../edu.cmu.sei.annex.dmpl.ui/src-gen/edu/cmu/sei/annex/dmpl/ui/contentassist/antlr/internal/InternalDmpl.g:15627:1: ( RULE_TIDENTIFIER )\n {\n // ../edu.cmu.sei.annex.dmpl.ui/src-gen/edu/cmu/sei/annex/dmpl/ui/contentassist/antlr/internal/InternalDmpl.g:15627:1: ( RULE_TIDENTIFIER )\n // ../edu.cmu.sei.annex.dmpl.ui/src-gen/edu/cmu/sei/annex/dmpl/ui/contentassist/antlr/internal/InternalDmpl.g:15628:1: RULE_TIDENTIFIER\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getStmtAccess().getNodeTIDENTIFIERTerminalRuleCall_8_3_0()); \n }\n match(input,RULE_TIDENTIFIER,FOLLOW_RULE_TIDENTIFIER_in_rule__Stmt__NodeAssignment_8_331460); if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getStmtAccess().getNodeTIDENTIFIERTerminalRuleCall_8_3_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "6e46092a46d354d3bff936c0492e4e6f", "score": "0.54817075", "text": "public final void rule__Stmt__Node1Assignment_9_3() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../edu.cmu.sei.annex.dmpl.ui/src-gen/edu/cmu/sei/annex/dmpl/ui/contentassist/antlr/internal/InternalDmpl.g:15656:1: ( ( RULE_TIDENTIFIER ) )\n // ../edu.cmu.sei.annex.dmpl.ui/src-gen/edu/cmu/sei/annex/dmpl/ui/contentassist/antlr/internal/InternalDmpl.g:15657:1: ( RULE_TIDENTIFIER )\n {\n // ../edu.cmu.sei.annex.dmpl.ui/src-gen/edu/cmu/sei/annex/dmpl/ui/contentassist/antlr/internal/InternalDmpl.g:15657:1: ( RULE_TIDENTIFIER )\n // ../edu.cmu.sei.annex.dmpl.ui/src-gen/edu/cmu/sei/annex/dmpl/ui/contentassist/antlr/internal/InternalDmpl.g:15658:1: RULE_TIDENTIFIER\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getStmtAccess().getNode1TIDENTIFIERTerminalRuleCall_9_3_0()); \n }\n match(input,RULE_TIDENTIFIER,FOLLOW_RULE_TIDENTIFIER_in_rule__Stmt__Node1Assignment_9_331522); if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getStmtAccess().getNode1TIDENTIFIERTerminalRuleCall_9_3_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "3a41a7cabb58d35ebe63fd66dba4890c", "score": "0.54685223", "text": "public final void rule__EForStatement__IdentifiersAssignment_4_1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalAnsibleDslParser.g:29603:1: ( ( RULE_ID ) )\n // InternalAnsibleDslParser.g:29604:2: ( RULE_ID )\n {\n // InternalAnsibleDslParser.g:29604:2: ( RULE_ID )\n // InternalAnsibleDslParser.g:29605:3: RULE_ID\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getEForStatementAccess().getIdentifiersIDTerminalRuleCall_4_1_0()); \n }\n match(input,RULE_ID,FOLLOW_2); if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getEForStatementAccess().getIdentifiersIDTerminalRuleCall_4_1_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "2e66ef283270fe79ebbf5c62f98a7598", "score": "0.5468494", "text": "public final void rule__XVariableDeclaration__NameAssignment_2_1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.tortoiseshell.ui/src-gen/org/xtext/tortoiseshell/ui/contentassist/antlr/internal/InternalTortoiseShell.g:18891:1: ( ( ruleValidID ) )\n // ../org.xtext.tortoiseshell.ui/src-gen/org/xtext/tortoiseshell/ui/contentassist/antlr/internal/InternalTortoiseShell.g:18892:1: ( ruleValidID )\n {\n // ../org.xtext.tortoiseshell.ui/src-gen/org/xtext/tortoiseshell/ui/contentassist/antlr/internal/InternalTortoiseShell.g:18892:1: ( ruleValidID )\n // ../org.xtext.tortoiseshell.ui/src-gen/org/xtext/tortoiseshell/ui/contentassist/antlr/internal/InternalTortoiseShell.g:18893:1: ruleValidID\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXVariableDeclarationAccess().getNameValidIDParserRuleCall_2_1_0()); \n }\n pushFollow(FOLLOW_ruleValidID_in_rule__XVariableDeclaration__NameAssignment_2_138005);\n ruleValidID();\n\n state._fsp--;\n if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXVariableDeclarationAccess().getNameValidIDParserRuleCall_2_1_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "75358470d46b424c5921a8da675bebeb", "score": "0.54581225", "text": "public final void rule__Stmt__Group_4__1__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../edu.cmu.sei.annex.dmpl.ui/src-gen/edu/cmu/sei/annex/dmpl/ui/contentassist/antlr/internal/InternalDmpl.g:9157:1: ( ( ( rule__Stmt__AttrsAssignment_4_1 )* ) )\n // ../edu.cmu.sei.annex.dmpl.ui/src-gen/edu/cmu/sei/annex/dmpl/ui/contentassist/antlr/internal/InternalDmpl.g:9158:1: ( ( rule__Stmt__AttrsAssignment_4_1 )* )\n {\n // ../edu.cmu.sei.annex.dmpl.ui/src-gen/edu/cmu/sei/annex/dmpl/ui/contentassist/antlr/internal/InternalDmpl.g:9158:1: ( ( rule__Stmt__AttrsAssignment_4_1 )* )\n // ../edu.cmu.sei.annex.dmpl.ui/src-gen/edu/cmu/sei/annex/dmpl/ui/contentassist/antlr/internal/InternalDmpl.g:9159:1: ( rule__Stmt__AttrsAssignment_4_1 )*\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getStmtAccess().getAttrsAssignment_4_1()); \n }\n // ../edu.cmu.sei.annex.dmpl.ui/src-gen/edu/cmu/sei/annex/dmpl/ui/contentassist/antlr/internal/InternalDmpl.g:9160:1: ( rule__Stmt__AttrsAssignment_4_1 )*\n loop79:\n do {\n int alt79=2;\n int LA79_0 = input.LA(1);\n\n if ( (LA79_0==92) ) {\n alt79=1;\n }\n\n\n switch (alt79) {\n \tcase 1 :\n \t // ../edu.cmu.sei.annex.dmpl.ui/src-gen/edu/cmu/sei/annex/dmpl/ui/contentassist/antlr/internal/InternalDmpl.g:9160:2: rule__Stmt__AttrsAssignment_4_1\n \t {\n \t pushFollow(FOLLOW_rule__Stmt__AttrsAssignment_4_1_in_rule__Stmt__Group_4__1__Impl18650);\n \t rule__Stmt__AttrsAssignment_4_1();\n\n \t state._fsp--;\n \t if (state.failed) return ;\n\n \t }\n \t break;\n\n \tdefault :\n \t break loop79;\n }\n } while (true);\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getStmtAccess().getAttrsAssignment_4_1()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "68cefe428c7e5eae60a1295dada885f9", "score": "0.5454371", "text": "public final void rule__DataType__NameAssignment_1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalBlackDog.g:765:1: ( ( RULE_ID ) )\n // InternalBlackDog.g:766:2: ( RULE_ID )\n {\n // InternalBlackDog.g:766:2: ( RULE_ID )\n // InternalBlackDog.g:767:3: RULE_ID\n {\n before(grammarAccess.getDataTypeAccess().getNameIDTerminalRuleCall_1_0()); \n match(input,RULE_ID,FOLLOW_2); \n after(grammarAccess.getDataTypeAccess().getNameIDTerminalRuleCall_1_0()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "7de67d8915b02624adad5079afd7f8ef", "score": "0.5451278", "text": "public final void rule__FunctionDeclaration__Group__1__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../jp.ac.titech.cs.se.fwit.dsl.ui/src-gen/jp/ac/titech/cs/se/fwit/dsl/ui/contentassist/antlr/internal/InternalFwitRequirementsModel.g:2400:1: ( ( ( rule__FunctionDeclaration__NameAssignment_1 ) ) )\n // ../jp.ac.titech.cs.se.fwit.dsl.ui/src-gen/jp/ac/titech/cs/se/fwit/dsl/ui/contentassist/antlr/internal/InternalFwitRequirementsModel.g:2401:1: ( ( rule__FunctionDeclaration__NameAssignment_1 ) )\n {\n // ../jp.ac.titech.cs.se.fwit.dsl.ui/src-gen/jp/ac/titech/cs/se/fwit/dsl/ui/contentassist/antlr/internal/InternalFwitRequirementsModel.g:2401:1: ( ( rule__FunctionDeclaration__NameAssignment_1 ) )\n // ../jp.ac.titech.cs.se.fwit.dsl.ui/src-gen/jp/ac/titech/cs/se/fwit/dsl/ui/contentassist/antlr/internal/InternalFwitRequirementsModel.g:2402:1: ( rule__FunctionDeclaration__NameAssignment_1 )\n {\n before(grammarAccess.getFunctionDeclarationAccess().getNameAssignment_1()); \n // ../jp.ac.titech.cs.se.fwit.dsl.ui/src-gen/jp/ac/titech/cs/se/fwit/dsl/ui/contentassist/antlr/internal/InternalFwitRequirementsModel.g:2403:1: ( rule__FunctionDeclaration__NameAssignment_1 )\n // ../jp.ac.titech.cs.se.fwit.dsl.ui/src-gen/jp/ac/titech/cs/se/fwit/dsl/ui/contentassist/antlr/internal/InternalFwitRequirementsModel.g:2403:2: rule__FunctionDeclaration__NameAssignment_1\n {\n pushFollow(FOLLOW_rule__FunctionDeclaration__NameAssignment_1_in_rule__FunctionDeclaration__Group__1__Impl4973);\n rule__FunctionDeclaration__NameAssignment_1();\n\n state._fsp--;\n\n\n }\n\n after(grammarAccess.getFunctionDeclarationAccess().getNameAssignment_1()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "c887986483827b8d00d2cd9225b5c056", "score": "0.54505503", "text": "public final void rule__State__NameAssignment_3() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalFsm.g:3634:1: ( ( RULE_ID ) )\n // InternalFsm.g:3635:2: ( RULE_ID )\n {\n // InternalFsm.g:3635:2: ( RULE_ID )\n // InternalFsm.g:3636:3: RULE_ID\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getStateAccess().getNameIDTerminalRuleCall_3_0()); \n }\n match(input,RULE_ID,FOLLOW_2); if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getStateAccess().getNameIDTerminalRuleCall_3_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "a333b502e5b9d2f763d38af0fa5dfcc7", "score": "0.54382324", "text": "public final void rule__Stmt__Node2Assignment_9_5() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../edu.cmu.sei.annex.dmpl.ui/src-gen/edu/cmu/sei/annex/dmpl/ui/contentassist/antlr/internal/InternalDmpl.g:15671:1: ( ( RULE_TIDENTIFIER ) )\n // ../edu.cmu.sei.annex.dmpl.ui/src-gen/edu/cmu/sei/annex/dmpl/ui/contentassist/antlr/internal/InternalDmpl.g:15672:1: ( RULE_TIDENTIFIER )\n {\n // ../edu.cmu.sei.annex.dmpl.ui/src-gen/edu/cmu/sei/annex/dmpl/ui/contentassist/antlr/internal/InternalDmpl.g:15672:1: ( RULE_TIDENTIFIER )\n // ../edu.cmu.sei.annex.dmpl.ui/src-gen/edu/cmu/sei/annex/dmpl/ui/contentassist/antlr/internal/InternalDmpl.g:15673:1: RULE_TIDENTIFIER\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getStmtAccess().getNode2TIDENTIFIERTerminalRuleCall_9_5_0()); \n }\n match(input,RULE_TIDENTIFIER,FOLLOW_RULE_TIDENTIFIER_in_rule__Stmt__Node2Assignment_9_531553); if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getStmtAccess().getNode2TIDENTIFIERTerminalRuleCall_9_5_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "f27f691c2b10c93f411c138dd2de6977", "score": "0.5437532", "text": "public final void rule__Model__NameAssignment_1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalFsm.g:3442:1: ( ( RULE_ID ) )\n // InternalFsm.g:3443:2: ( RULE_ID )\n {\n // InternalFsm.g:3443:2: ( RULE_ID )\n // InternalFsm.g:3444:3: RULE_ID\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getModelAccess().getNameIDTerminalRuleCall_1_0()); \n }\n match(input,RULE_ID,FOLLOW_2); if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getModelAccess().getNameIDTerminalRuleCall_1_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "35aa214f0943cc30be51a1455145be21", "score": "0.5435674", "text": "public final void rule__XVariableDeclaration__NameAssignment_2_0_0_1() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.yakindu.sct.generator.genmodel.ui/src-gen/org/yakindu/sct/generator/genmodel/ui/contentassist/antlr/internal/InternalSGen.g:13816:1: ( ( ruleValidID ) )\r\n // ../org.yakindu.sct.generator.genmodel.ui/src-gen/org/yakindu/sct/generator/genmodel/ui/contentassist/antlr/internal/InternalSGen.g:13817:1: ( ruleValidID )\r\n {\r\n // ../org.yakindu.sct.generator.genmodel.ui/src-gen/org/yakindu/sct/generator/genmodel/ui/contentassist/antlr/internal/InternalSGen.g:13817:1: ( ruleValidID )\r\n // ../org.yakindu.sct.generator.genmodel.ui/src-gen/org/yakindu/sct/generator/genmodel/ui/contentassist/antlr/internal/InternalSGen.g:13818:1: ruleValidID\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getXVariableDeclarationAccess().getNameValidIDParserRuleCall_2_0_0_1_0()); \r\n }\r\n pushFollow(FOLLOW_ruleValidID_in_rule__XVariableDeclaration__NameAssignment_2_0_0_127759);\r\n ruleValidID();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getXVariableDeclarationAccess().getNameValidIDParserRuleCall_2_0_0_1_0()); \r\n }\r\n\r\n }\r\n\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 finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "b86854694b68486e9dfcbd4484989750", "score": "0.54257935", "text": "public final void rule__Dimension__IndexAssignment_2_1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../edu.cmu.sei.annex.dmpl.ui/src-gen/edu/cmu/sei/annex/dmpl/ui/contentassist/antlr/internal/InternalDmpl.g:15036:1: ( ( RULE_TIDENTIFIER ) )\n // ../edu.cmu.sei.annex.dmpl.ui/src-gen/edu/cmu/sei/annex/dmpl/ui/contentassist/antlr/internal/InternalDmpl.g:15037:1: ( RULE_TIDENTIFIER )\n {\n // ../edu.cmu.sei.annex.dmpl.ui/src-gen/edu/cmu/sei/annex/dmpl/ui/contentassist/antlr/internal/InternalDmpl.g:15037:1: ( RULE_TIDENTIFIER )\n // ../edu.cmu.sei.annex.dmpl.ui/src-gen/edu/cmu/sei/annex/dmpl/ui/contentassist/antlr/internal/InternalDmpl.g:15038:1: RULE_TIDENTIFIER\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getDimensionAccess().getIndexTIDENTIFIERTerminalRuleCall_2_1_0()); \n }\n match(input,RULE_TIDENTIFIER,FOLLOW_RULE_TIDENTIFIER_in_rule__Dimension__IndexAssignment_2_130248); if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getDimensionAccess().getIndexTIDENTIFIERTerminalRuleCall_2_1_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "88adef071f70b103104adc2af7072f6a", "score": "0.5415037", "text": "public final void rule__Term__FunctionAssignment_5() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.eclipse.e4.tools.css.editor.ui/src-gen/org/eclipse/e4/ui/contentassist/antlr/internal/InternalCSS.g:3995:1: ( ( rulefunction ) )\r\n // ../org.eclipse.e4.tools.css.editor.ui/src-gen/org/eclipse/e4/ui/contentassist/antlr/internal/InternalCSS.g:3996:1: ( rulefunction )\r\n {\r\n // ../org.eclipse.e4.tools.css.editor.ui/src-gen/org/eclipse/e4/ui/contentassist/antlr/internal/InternalCSS.g:3996:1: ( rulefunction )\r\n // ../org.eclipse.e4.tools.css.editor.ui/src-gen/org/eclipse/e4/ui/contentassist/antlr/internal/InternalCSS.g:3997:1: rulefunction\r\n {\r\n before(grammarAccess.getTermAccess().getFunctionFunctionParserRuleCall_5_0()); \r\n pushFollow(FOLLOW_rulefunction_in_rule__Term__FunctionAssignment_58137);\r\n rulefunction();\r\n\r\n state._fsp--;\r\n\r\n after(grammarAccess.getTermAccess().getFunctionFunctionParserRuleCall_5_0()); \r\n\r\n }\r\n\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 finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "beb329200ad66e138d06bd43826f7307", "score": "0.5414904", "text": "public final void rule__EDictionaryPairJinja__NameAssignment_0_0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalAnsibleDslParser.g:30269:1: ( ( RULE_ID ) )\n // InternalAnsibleDslParser.g:30270:2: ( RULE_ID )\n {\n // InternalAnsibleDslParser.g:30270:2: ( RULE_ID )\n // InternalAnsibleDslParser.g:30271:3: RULE_ID\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getEDictionaryPairJinjaAccess().getNameIDTerminalRuleCall_0_0_0()); \n }\n match(input,RULE_ID,FOLLOW_2); if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getEDictionaryPairJinjaAccess().getNameIDTerminalRuleCall_0_0_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "bb40b1e5da44ce30e7436de8f0014735", "score": "0.54147273", "text": "public final void rule__Variable__NameAssignment_1() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalPila.g:2687:1: ( ( RULE_ID ) )\r\n // InternalPila.g:2688:2: ( RULE_ID )\r\n {\r\n // InternalPila.g:2688:2: ( RULE_ID )\r\n // InternalPila.g:2689:3: RULE_ID\r\n {\r\n before(grammarAccess.getVariableAccess().getNameIDTerminalRuleCall_1_0()); \r\n match(input,RULE_ID,FOLLOW_2); \r\n after(grammarAccess.getVariableAccess().getNameIDTerminalRuleCall_1_0()); \r\n\r\n }\r\n\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 finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "e47408acd563507fa3415df908a1c2fb", "score": "0.5405385", "text": "public final void rule__DataType__NameAssignment_1() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalGo.g:8299:1: ( ( RULE_ID ) )\r\n // InternalGo.g:8300:2: ( RULE_ID )\r\n {\r\n // InternalGo.g:8300:2: ( RULE_ID )\r\n // InternalGo.g:8301:3: RULE_ID\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getDataTypeAccess().getNameIDTerminalRuleCall_1_0()); \r\n }\r\n match(input,RULE_ID,FOLLOW_2); if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getDataTypeAccess().getNameIDTerminalRuleCall_1_0()); \r\n }\r\n\r\n }\r\n\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 finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "6d4d6c780fecfec8521ea14675472330", "score": "0.54041237", "text": "public final void rule__ObsrvDecl__Group__4__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalReactiveXD.g:3877:1: ( ( ( rule__ObsrvDecl__NameAssignment_4 ) ) )\n // InternalReactiveXD.g:3878:1: ( ( rule__ObsrvDecl__NameAssignment_4 ) )\n {\n // InternalReactiveXD.g:3878:1: ( ( rule__ObsrvDecl__NameAssignment_4 ) )\n // InternalReactiveXD.g:3879:2: ( rule__ObsrvDecl__NameAssignment_4 )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getObsrvDeclAccess().getNameAssignment_4()); \n }\n // InternalReactiveXD.g:3880:2: ( rule__ObsrvDecl__NameAssignment_4 )\n // InternalReactiveXD.g:3880:3: rule__ObsrvDecl__NameAssignment_4\n {\n pushFollow(FOLLOW_2);\n rule__ObsrvDecl__NameAssignment_4();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getObsrvDeclAccess().getNameAssignment_4()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "103cebd7783f5578996094e9922e5a46", "score": "0.5391874", "text": "public final void rule__TerminalExpr__FirstArgAssignment_6_3() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../edu.cmu.sei.annex.dmpl.ui/src-gen/edu/cmu/sei/annex/dmpl/ui/contentassist/antlr/internal/InternalDmpl.g:16106:1: ( ( RULE_TIDENTIFIER ) )\n // ../edu.cmu.sei.annex.dmpl.ui/src-gen/edu/cmu/sei/annex/dmpl/ui/contentassist/antlr/internal/InternalDmpl.g:16107:1: ( RULE_TIDENTIFIER )\n {\n // ../edu.cmu.sei.annex.dmpl.ui/src-gen/edu/cmu/sei/annex/dmpl/ui/contentassist/antlr/internal/InternalDmpl.g:16107:1: ( RULE_TIDENTIFIER )\n // ../edu.cmu.sei.annex.dmpl.ui/src-gen/edu/cmu/sei/annex/dmpl/ui/contentassist/antlr/internal/InternalDmpl.g:16108:1: RULE_TIDENTIFIER\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getTerminalExprAccess().getFirstArgTIDENTIFIERTerminalRuleCall_6_3_0()); \n }\n match(input,RULE_TIDENTIFIER,FOLLOW_RULE_TIDENTIFIER_in_rule__TerminalExpr__FirstArgAssignment_6_332452); if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getTerminalExprAccess().getFirstArgTIDENTIFIERTerminalRuleCall_6_3_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "8d9e18fbff4d4d0f4b5371ed33423c7c", "score": "0.5389169", "text": "public final void rule__FullJvmFormalParameter__NameAssignment_1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalReactiveXD.g:18971:1: ( ( ruleValidID ) )\n // InternalReactiveXD.g:18972:2: ( ruleValidID )\n {\n // InternalReactiveXD.g:18972:2: ( ruleValidID )\n // InternalReactiveXD.g:18973:3: ruleValidID\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getFullJvmFormalParameterAccess().getNameValidIDParserRuleCall_1_0()); \n }\n pushFollow(FOLLOW_2);\n ruleValidID();\n\n state._fsp--;\n if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getFullJvmFormalParameterAccess().getNameValidIDParserRuleCall_1_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "85e15c4c7c7cb1540f00d966f1ad3a5d", "score": "0.5386763", "text": "public final void rule__XVariableDeclaration__NameAssignment_2_1() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.yakindu.sct.generator.genmodel.ui/src-gen/org/yakindu/sct/generator/genmodel/ui/contentassist/antlr/internal/InternalSGen.g:13831:1: ( ( ruleValidID ) )\r\n // ../org.yakindu.sct.generator.genmodel.ui/src-gen/org/yakindu/sct/generator/genmodel/ui/contentassist/antlr/internal/InternalSGen.g:13832:1: ( ruleValidID )\r\n {\r\n // ../org.yakindu.sct.generator.genmodel.ui/src-gen/org/yakindu/sct/generator/genmodel/ui/contentassist/antlr/internal/InternalSGen.g:13832:1: ( ruleValidID )\r\n // ../org.yakindu.sct.generator.genmodel.ui/src-gen/org/yakindu/sct/generator/genmodel/ui/contentassist/antlr/internal/InternalSGen.g:13833:1: ruleValidID\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getXVariableDeclarationAccess().getNameValidIDParserRuleCall_2_1_0()); \r\n }\r\n pushFollow(FOLLOW_ruleValidID_in_rule__XVariableDeclaration__NameAssignment_2_127790);\r\n ruleValidID();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getXVariableDeclarationAccess().getNameValidIDParserRuleCall_2_1_0()); \r\n }\r\n\r\n }\r\n\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 finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "8b4e18929923d7038dcd7f27046195a1", "score": "0.5367775", "text": "public final void rule__ERegisterVariable__NameAssignment_1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalAnsibleDslParser.g:29825:1: ( ( RULE_ID ) )\n // InternalAnsibleDslParser.g:29826:2: ( RULE_ID )\n {\n // InternalAnsibleDslParser.g:29826:2: ( RULE_ID )\n // InternalAnsibleDslParser.g:29827:3: RULE_ID\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getERegisterVariableAccess().getNameIDTerminalRuleCall_1_0()); \n }\n match(input,RULE_ID,FOLLOW_2); if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getERegisterVariableAccess().getNameIDTerminalRuleCall_1_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "194e612913df8e0e29a9f639b997271c", "score": "0.53675365", "text": "public final void rule__Atributo__NameAssignment_1() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalPila.g:2503:1: ( ( RULE_ID ) )\r\n // InternalPila.g:2504:2: ( RULE_ID )\r\n {\r\n // InternalPila.g:2504:2: ( RULE_ID )\r\n // InternalPila.g:2505:3: RULE_ID\r\n {\r\n before(grammarAccess.getAtributoAccess().getNameIDTerminalRuleCall_1_0()); \r\n match(input,RULE_ID,FOLLOW_2); \r\n after(grammarAccess.getAtributoAccess().getNameIDTerminalRuleCall_1_0()); \r\n\r\n }\r\n\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 finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "0407032bd24edcb95d9391a58140dbd3", "score": "0.5366357", "text": "identifier getIdentifier2();", "title": "" }, { "docid": "a61d8e21b186d4e3e0a9478a0cb999f3", "score": "0.5356714", "text": "public final void rule__EmfsFile__TagsAssignment_2_1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../no.hal.emfs.xtext.ui/src-gen/no/hal/emfs/xtext/ui/contentassist/antlr/internal/InternalXemfs.g:5685:1: ( ( RULE_ID ) )\n // ../no.hal.emfs.xtext.ui/src-gen/no/hal/emfs/xtext/ui/contentassist/antlr/internal/InternalXemfs.g:5686:1: ( RULE_ID )\n {\n // ../no.hal.emfs.xtext.ui/src-gen/no/hal/emfs/xtext/ui/contentassist/antlr/internal/InternalXemfs.g:5686:1: ( RULE_ID )\n // ../no.hal.emfs.xtext.ui/src-gen/no/hal/emfs/xtext/ui/contentassist/antlr/internal/InternalXemfs.g:5687:1: RULE_ID\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getEmfsFileAccess().getTagsIDTerminalRuleCall_2_1_0()); \n }\n match(input,RULE_ID,FollowSets000.FOLLOW_RULE_ID_in_rule__EmfsFile__TagsAssignment_2_111547); if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getEmfsFileAccess().getTagsIDTerminalRuleCall_2_1_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "c69c26dc27094062f7252c075bc2ed06", "score": "0.53475195", "text": "public final void rule__Procedure__Group_1__5__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../edu.cmu.sei.annex.dmpl.ui/src-gen/edu/cmu/sei/annex/dmpl/ui/contentassist/antlr/internal/InternalDmpl.g:7403:1: ( ( ( rule__Procedure__NameAssignment_1_5 ) ) )\n // ../edu.cmu.sei.annex.dmpl.ui/src-gen/edu/cmu/sei/annex/dmpl/ui/contentassist/antlr/internal/InternalDmpl.g:7404:1: ( ( rule__Procedure__NameAssignment_1_5 ) )\n {\n // ../edu.cmu.sei.annex.dmpl.ui/src-gen/edu/cmu/sei/annex/dmpl/ui/contentassist/antlr/internal/InternalDmpl.g:7404:1: ( ( rule__Procedure__NameAssignment_1_5 ) )\n // ../edu.cmu.sei.annex.dmpl.ui/src-gen/edu/cmu/sei/annex/dmpl/ui/contentassist/antlr/internal/InternalDmpl.g:7405:1: ( rule__Procedure__NameAssignment_1_5 )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getProcedureAccess().getNameAssignment_1_5()); \n }\n // ../edu.cmu.sei.annex.dmpl.ui/src-gen/edu/cmu/sei/annex/dmpl/ui/contentassist/antlr/internal/InternalDmpl.g:7406:1: ( rule__Procedure__NameAssignment_1_5 )\n // ../edu.cmu.sei.annex.dmpl.ui/src-gen/edu/cmu/sei/annex/dmpl/ui/contentassist/antlr/internal/InternalDmpl.g:7406:2: rule__Procedure__NameAssignment_1_5\n {\n pushFollow(FOLLOW_rule__Procedure__NameAssignment_1_5_in_rule__Procedure__Group_1__5__Impl15216);\n rule__Procedure__NameAssignment_1_5();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getProcedureAccess().getNameAssignment_1_5()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "811b04a9a28640bae0907b3b8e9887c1", "score": "0.5339451", "text": "public final void rule__ENotifiedHandler__NameAssignment() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalAnsibleDslParser.g:28672:1: ( ( ( RULE_STRING ) ) )\n // InternalAnsibleDslParser.g:28673:2: ( ( RULE_STRING ) )\n {\n // InternalAnsibleDslParser.g:28673:2: ( ( RULE_STRING ) )\n // InternalAnsibleDslParser.g:28674:3: ( RULE_STRING )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getENotifiedHandlerAccess().getNameEHandlerCrossReference_0()); \n }\n // InternalAnsibleDslParser.g:28675:3: ( RULE_STRING )\n // InternalAnsibleDslParser.g:28676:4: RULE_STRING\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getENotifiedHandlerAccess().getNameEHandlerSTRINGTerminalRuleCall_0_1()); \n }\n match(input,RULE_STRING,FOLLOW_2); if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getENotifiedHandlerAccess().getNameEHandlerSTRINGTerminalRuleCall_0_1()); \n }\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getENotifiedHandlerAccess().getNameEHandlerCrossReference_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "49949194c6fdfc1613ae0df1e5bb1864", "score": "0.53251356", "text": "public final void rule__URI__IdAssignment_4_1() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.eclipse.e4.tools.css.editor.ui/src-gen/org/eclipse/e4/ui/contentassist/antlr/internal/InternalCSS.g:4070:1: ( ( RULE_IDENT ) )\r\n // ../org.eclipse.e4.tools.css.editor.ui/src-gen/org/eclipse/e4/ui/contentassist/antlr/internal/InternalCSS.g:4071:1: ( RULE_IDENT )\r\n {\r\n // ../org.eclipse.e4.tools.css.editor.ui/src-gen/org/eclipse/e4/ui/contentassist/antlr/internal/InternalCSS.g:4071:1: ( RULE_IDENT )\r\n // ../org.eclipse.e4.tools.css.editor.ui/src-gen/org/eclipse/e4/ui/contentassist/antlr/internal/InternalCSS.g:4072:1: RULE_IDENT\r\n {\r\n before(grammarAccess.getURIAccess().getIdIdentTerminalRuleCall_4_1_0()); \r\n match(input,RULE_IDENT,FOLLOW_RULE_IDENT_in_rule__URI__IdAssignment_4_18292); \r\n after(grammarAccess.getURIAccess().getIdIdentTerminalRuleCall_4_1_0()); \r\n\r\n }\r\n\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 finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "8ad1e38f6ec8a091b9e69c1e313991e3", "score": "0.5322232", "text": "public final void rule__Atrib__NameAssignment_1() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalGo.g:7376:1: ( ( RULE_ID ) )\r\n // InternalGo.g:7377:2: ( RULE_ID )\r\n {\r\n // InternalGo.g:7377:2: ( RULE_ID )\r\n // InternalGo.g:7378:3: RULE_ID\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getAtribAccess().getNameIDTerminalRuleCall_1_0()); \r\n }\r\n match(input,RULE_ID,FOLLOW_2); if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getAtribAccess().getNameIDTerminalRuleCall_1_0()); \r\n }\r\n\r\n }\r\n\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 finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "87d35652cc8ef17305150515426c4c18", "score": "0.53108245", "text": "public final void rule__Variable__NameAssignment() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalGo.g:7346:1: ( ( RULE_ID ) )\r\n // InternalGo.g:7347:2: ( RULE_ID )\r\n {\r\n // InternalGo.g:7347:2: ( RULE_ID )\r\n // InternalGo.g:7348:3: RULE_ID\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getVariableAccess().getNameIDTerminalRuleCall_0()); \r\n }\r\n match(input,RULE_ID,FOLLOW_2); if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getVariableAccess().getNameIDTerminalRuleCall_0()); \r\n }\r\n\r\n }\r\n\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 finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "1c3e40b713bd33a310391c12fba99acc", "score": "0.52979934", "text": "public final void rule__Specification__Group_2__4() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../edu.cmu.sei.annex.dmpl.ui/src-gen/edu/cmu/sei/annex/dmpl/ui/contentassist/antlr/internal/InternalDmpl.g:4584:1: ( rule__Specification__Group_2__4__Impl rule__Specification__Group_2__5 )\n // ../edu.cmu.sei.annex.dmpl.ui/src-gen/edu/cmu/sei/annex/dmpl/ui/contentassist/antlr/internal/InternalDmpl.g:4585:2: rule__Specification__Group_2__4__Impl rule__Specification__Group_2__5\n {\n pushFollow(FOLLOW_rule__Specification__Group_2__4__Impl_in_rule__Specification__Group_2__49657);\n rule__Specification__Group_2__4__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n pushFollow(FOLLOW_rule__Specification__Group_2__5_in_rule__Specification__Group_2__49660);\n rule__Specification__Group_2__5();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "35f21e60f1fb2b97b9ce2a73ae5e028a", "score": "0.5292966", "text": "public final void rule__Procedure__Group_0__5__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../edu.cmu.sei.annex.dmpl.ui/src-gen/edu/cmu/sei/annex/dmpl/ui/contentassist/antlr/internal/InternalDmpl.g:7185:1: ( ( ( rule__Procedure__NameAssignment_0_5 ) ) )\n // ../edu.cmu.sei.annex.dmpl.ui/src-gen/edu/cmu/sei/annex/dmpl/ui/contentassist/antlr/internal/InternalDmpl.g:7186:1: ( ( rule__Procedure__NameAssignment_0_5 ) )\n {\n // ../edu.cmu.sei.annex.dmpl.ui/src-gen/edu/cmu/sei/annex/dmpl/ui/contentassist/antlr/internal/InternalDmpl.g:7186:1: ( ( rule__Procedure__NameAssignment_0_5 ) )\n // ../edu.cmu.sei.annex.dmpl.ui/src-gen/edu/cmu/sei/annex/dmpl/ui/contentassist/antlr/internal/InternalDmpl.g:7187:1: ( rule__Procedure__NameAssignment_0_5 )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getProcedureAccess().getNameAssignment_0_5()); \n }\n // ../edu.cmu.sei.annex.dmpl.ui/src-gen/edu/cmu/sei/annex/dmpl/ui/contentassist/antlr/internal/InternalDmpl.g:7188:1: ( rule__Procedure__NameAssignment_0_5 )\n // ../edu.cmu.sei.annex.dmpl.ui/src-gen/edu/cmu/sei/annex/dmpl/ui/contentassist/antlr/internal/InternalDmpl.g:7188:2: rule__Procedure__NameAssignment_0_5\n {\n pushFollow(FOLLOW_rule__Procedure__NameAssignment_0_5_in_rule__Procedure__Group_0__5__Impl14781);\n rule__Procedure__NameAssignment_0_5();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getProcedureAccess().getNameAssignment_0_5()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "8d619104c439d1bffd046611c34a062b", "score": "0.52927166", "text": "public final void rule__ImageSection__NameAssignment_2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalContainer.g:8821:1: ( ( RULE_ID ) )\n // InternalContainer.g:8822:2: ( RULE_ID )\n {\n // InternalContainer.g:8822:2: ( RULE_ID )\n // InternalContainer.g:8823:3: RULE_ID\n {\n before(grammarAccess.getImageSectionAccess().getNameIDTerminalRuleCall_2_0()); \n match(input,RULE_ID,FOLLOW_2); \n after(grammarAccess.getImageSectionAccess().getNameIDTerminalRuleCall_2_0()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "f232d456ed52f4d485ac3d34f8315380", "score": "0.5280682", "text": "public final void rule__ReAtrib__NameAssignment_0() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalGo.g:7421:1: ( ( RULE_ID ) )\r\n // InternalGo.g:7422:2: ( RULE_ID )\r\n {\r\n // InternalGo.g:7422:2: ( RULE_ID )\r\n // InternalGo.g:7423:3: RULE_ID\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getReAtribAccess().getNameIDTerminalRuleCall_0_0()); \r\n }\r\n match(input,RULE_ID,FOLLOW_2); if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getReAtribAccess().getNameIDTerminalRuleCall_0_0()); \r\n }\r\n\r\n }\r\n\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 finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "03dcbad341cc07b9f753dba68fb273c0", "score": "0.52781445", "text": "public final void rule__AttributableNodeOrProcedure__Group_0__2__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../edu.cmu.sei.annex.dmpl.ui/src-gen/edu/cmu/sei/annex/dmpl/ui/contentassist/antlr/internal/InternalDmpl.g:3609:1: ( ( ( rule__AttributableNodeOrProcedure__NameAssignment_0_2 ) ) )\n // ../edu.cmu.sei.annex.dmpl.ui/src-gen/edu/cmu/sei/annex/dmpl/ui/contentassist/antlr/internal/InternalDmpl.g:3610:1: ( ( rule__AttributableNodeOrProcedure__NameAssignment_0_2 ) )\n {\n // ../edu.cmu.sei.annex.dmpl.ui/src-gen/edu/cmu/sei/annex/dmpl/ui/contentassist/antlr/internal/InternalDmpl.g:3610:1: ( ( rule__AttributableNodeOrProcedure__NameAssignment_0_2 ) )\n // ../edu.cmu.sei.annex.dmpl.ui/src-gen/edu/cmu/sei/annex/dmpl/ui/contentassist/antlr/internal/InternalDmpl.g:3611:1: ( rule__AttributableNodeOrProcedure__NameAssignment_0_2 )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getAttributableNodeOrProcedureAccess().getNameAssignment_0_2()); \n }\n // ../edu.cmu.sei.annex.dmpl.ui/src-gen/edu/cmu/sei/annex/dmpl/ui/contentassist/antlr/internal/InternalDmpl.g:3612:1: ( rule__AttributableNodeOrProcedure__NameAssignment_0_2 )\n // ../edu.cmu.sei.annex.dmpl.ui/src-gen/edu/cmu/sei/annex/dmpl/ui/contentassist/antlr/internal/InternalDmpl.g:3612:2: rule__AttributableNodeOrProcedure__NameAssignment_0_2\n {\n pushFollow(FOLLOW_rule__AttributableNodeOrProcedure__NameAssignment_0_2_in_rule__AttributableNodeOrProcedure__Group_0__2__Impl7752);\n rule__AttributableNodeOrProcedure__NameAssignment_0_2();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getAttributableNodeOrProcedureAccess().getNameAssignment_0_2()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "a455e18c9725265606d8996ae4d472ce", "score": "0.52757645", "text": "public final void rule__Constraint__NameAssignment_0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalFsm.g:3502:1: ( ( RULE_ID ) )\n // InternalFsm.g:3503:2: ( RULE_ID )\n {\n // InternalFsm.g:3503:2: ( RULE_ID )\n // InternalFsm.g:3504:3: RULE_ID\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getConstraintAccess().getNameIDTerminalRuleCall_0_0()); \n }\n match(input,RULE_ID,FOLLOW_2); if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getConstraintAccess().getNameIDTerminalRuleCall_0_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "eaa2ad887fd0ce7c2319a8e9cf1911be", "score": "0.5274571", "text": "public final void rule__Language__TargetAssignment_2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalFsm.g:3551:1: ( ( ruleQualifiedName ) )\n // InternalFsm.g:3552:2: ( ruleQualifiedName )\n {\n // InternalFsm.g:3552:2: ( ruleQualifiedName )\n // InternalFsm.g:3553:3: ruleQualifiedName\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getLanguageAccess().getTargetQualifiedNameParserRuleCall_2_0()); \n }\n pushFollow(FOLLOW_2);\n ruleQualifiedName();\n\n state._fsp--;\n if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getLanguageAccess().getTargetQualifiedNameParserRuleCall_2_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "19b8d30dbd8c6eef63f88c8dfa658cfd", "score": "0.5265123", "text": "public final void rule__EPREFIX_TYPE__ModuleAssignment_0_0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalAnsibleDslParser.g:26114:1: ( ( RULE_ID ) )\n // InternalAnsibleDslParser.g:26115:2: ( RULE_ID )\n {\n // InternalAnsibleDslParser.g:26115:2: ( RULE_ID )\n // InternalAnsibleDslParser.g:26116:3: RULE_ID\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getEPREFIX_TYPEAccess().getModuleIDTerminalRuleCall_0_0_0()); \n }\n match(input,RULE_ID,FOLLOW_2); if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getEPREFIX_TYPEAccess().getModuleIDTerminalRuleCall_0_0_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "2aace14240469bc4edf88dce81b3450a", "score": "0.52616465", "text": "public final void rule__EIndexOrLoopVariable__NameAssignment() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalAnsibleDslParser.g:29791:1: ( ( RULE_ID ) )\n // InternalAnsibleDslParser.g:29792:2: ( RULE_ID )\n {\n // InternalAnsibleDslParser.g:29792:2: ( RULE_ID )\n // InternalAnsibleDslParser.g:29793:3: RULE_ID\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getEIndexOrLoopVariableAccess().getNameIDTerminalRuleCall_0()); \n }\n match(input,RULE_ID,FOLLOW_2); if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getEIndexOrLoopVariableAccess().getNameIDTerminalRuleCall_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "2eb6485e4d7c09c8be0d09dca5428a29", "score": "0.52467763", "text": "public final void rule__Petrinet__NameAssignment_1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalPetriNetz.g:2007:1: ( ( RULE_ID ) )\n // InternalPetriNetz.g:2008:2: ( RULE_ID )\n {\n // InternalPetriNetz.g:2008:2: ( RULE_ID )\n // InternalPetriNetz.g:2009:3: RULE_ID\n {\n before(grammarAccess.getPetrinetAccess().getNameIDTerminalRuleCall_1_0()); \n match(input,RULE_ID,FOLLOW_2); \n after(grammarAccess.getPetrinetAccess().getNameIDTerminalRuleCall_1_0()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "59040a04531a6c3afe0f058f7891b383", "score": "0.5242976", "text": "public final void rule__Function__Group__0__Impl() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.eclipse.e4.tools.css.editor.ui/src-gen/org/eclipse/e4/ui/contentassist/antlr/internal/InternalCSS.g:2541:1: ( ( ( rule__Function__NameAssignment_0 ) ) )\r\n // ../org.eclipse.e4.tools.css.editor.ui/src-gen/org/eclipse/e4/ui/contentassist/antlr/internal/InternalCSS.g:2542:1: ( ( rule__Function__NameAssignment_0 ) )\r\n {\r\n // ../org.eclipse.e4.tools.css.editor.ui/src-gen/org/eclipse/e4/ui/contentassist/antlr/internal/InternalCSS.g:2542:1: ( ( rule__Function__NameAssignment_0 ) )\r\n // ../org.eclipse.e4.tools.css.editor.ui/src-gen/org/eclipse/e4/ui/contentassist/antlr/internal/InternalCSS.g:2543:1: ( rule__Function__NameAssignment_0 )\r\n {\r\n before(grammarAccess.getFunctionAccess().getNameAssignment_0()); \r\n // ../org.eclipse.e4.tools.css.editor.ui/src-gen/org/eclipse/e4/ui/contentassist/antlr/internal/InternalCSS.g:2544:1: ( rule__Function__NameAssignment_0 )\r\n // ../org.eclipse.e4.tools.css.editor.ui/src-gen/org/eclipse/e4/ui/contentassist/antlr/internal/InternalCSS.g:2544:2: rule__Function__NameAssignment_0\r\n {\r\n pushFollow(FOLLOW_rule__Function__NameAssignment_0_in_rule__Function__Group__0__Impl5242);\r\n rule__Function__NameAssignment_0();\r\n\r\n state._fsp--;\r\n\r\n\r\n }\r\n\r\n after(grammarAccess.getFunctionAccess().getNameAssignment_0()); \r\n\r\n }\r\n\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 finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "2f052776f3ec532ffbf1cfa6d183d125", "score": "0.52410704", "text": "public final void rule__FullJvmFormalParameter__NameAssignment_1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.tortoiseshell.ui/src-gen/org/xtext/tortoiseshell/ui/contentassist/antlr/internal/InternalTortoiseShell.g:18966:1: ( ( ruleValidID ) )\n // ../org.xtext.tortoiseshell.ui/src-gen/org/xtext/tortoiseshell/ui/contentassist/antlr/internal/InternalTortoiseShell.g:18967:1: ( ruleValidID )\n {\n // ../org.xtext.tortoiseshell.ui/src-gen/org/xtext/tortoiseshell/ui/contentassist/antlr/internal/InternalTortoiseShell.g:18967:1: ( ruleValidID )\n // ../org.xtext.tortoiseshell.ui/src-gen/org/xtext/tortoiseshell/ui/contentassist/antlr/internal/InternalTortoiseShell.g:18968:1: ruleValidID\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getFullJvmFormalParameterAccess().getNameValidIDParserRuleCall_1_0()); \n }\n pushFollow(FOLLOW_ruleValidID_in_rule__FullJvmFormalParameter__NameAssignment_138160);\n ruleValidID();\n\n state._fsp--;\n if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getFullJvmFormalParameterAccess().getNameValidIDParserRuleCall_1_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "8a63235bced36eb29f0ad0c1d3f44fce", "score": "0.52163476", "text": "public final void rule__ESetFactVariableReference__NameAssignment_1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalAnsibleDslParser.g:29938:1: ( ( ( RULE_ID ) ) )\n // InternalAnsibleDslParser.g:29939:2: ( ( RULE_ID ) )\n {\n // InternalAnsibleDslParser.g:29939:2: ( ( RULE_ID ) )\n // InternalAnsibleDslParser.g:29940:3: ( RULE_ID )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getESetFactVariableReferenceAccess().getNameEParameterCrossReference_1_0()); \n }\n // InternalAnsibleDslParser.g:29941:3: ( RULE_ID )\n // InternalAnsibleDslParser.g:29942:4: RULE_ID\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getESetFactVariableReferenceAccess().getNameEParameterIDTerminalRuleCall_1_0_1()); \n }\n match(input,RULE_ID,FOLLOW_2); if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getESetFactVariableReferenceAccess().getNameEParameterIDTerminalRuleCall_1_0_1()); \n }\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getESetFactVariableReferenceAccess().getNameEParameterCrossReference_1_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" } ]
822dfa850b9550378ea85c9cd64da3d0
Returns all of the dictionary entries for this dictionary.
[ { "docid": "5e7b9c5774109a4e28268f24e054931a", "score": "0.63326836", "text": "public List<DictionaryEntry<C>> entryList();", "title": "" } ]
[ { "docid": "7e2b60d0b5a3239387d4ec8ffef2044a", "score": "0.7424512", "text": "public @NotNull List<Entry<K, V>> entries() {\n List<Map.Entry<K, V>> values = new ArrayList<>();\n Iterator<Map.Entry<K, V>> iterator = entryIterator();\n while (iterator.hasNext()) {\n values.add(iterator.next());\n }\n return values;\n }", "title": "" }, { "docid": "9ac587dfd319af3baa7fc570e276db24", "score": "0.7073506", "text": "public Entry<K,V>[] getEntries() {\n return entries;\n }", "title": "" }, { "docid": "c33d55ff87d6e15991c819a45651b5ae", "score": "0.70676416", "text": "public Map<String, Object> getAll() {\n return this.dkeys;\n }", "title": "" }, { "docid": "bd611e17cc5f7f7e257f646a9b5b2ee8", "score": "0.7005783", "text": "@Override\r\n\tpublic Set entrySet() {\n\t\tHashMap map = new HashMap();\r\n\t\t\r\n\t\tIterator it = keySet().iterator();\r\n\t\tObject key;\r\n\t\twhile(it.hasNext()) {\r\n\t\t\tkey = it.next();\r\n\t\t\tmap.put(key, get(key));\r\n\t\t}\r\n\t\treturn map.entrySet();\r\n\t}", "title": "" }, { "docid": "0a8f375a378a464dc30531667ae4aff0", "score": "0.7002081", "text": "public ArrayList<MappingEntry> entries() { return entries; }", "title": "" }, { "docid": "3b10b7addae7799f40dc4c9f2727196e", "score": "0.6988219", "text": "@Override\n public Iterable<Entry<K, V>> entries() {\n ArrayList<Entry<K,V>> entries = new ArrayList<>();\n ArrayList<K> keys = (ArrayList<K>) keys();\n for(K key : keys){\n entries.add(new Entry<K,V>(key, findNodeByKey(key).value));\n }\n return entries;\n }", "title": "" }, { "docid": "6a076bb15c987aee51be18a0bde02380", "score": "0.6960748", "text": "public Collection getEntries() {\n return new ArrayList(entries);\n }", "title": "" }, { "docid": "43662e17fe1235991b1f724d2c4a833a", "score": "0.6927491", "text": "public Collection<T> getItems() {\n return entries.values();\n }", "title": "" }, { "docid": "ade0f67fe41258c9ee32bf4c75203f38", "score": "0.69226396", "text": "@Override\n public ArrayList<KeyValuePair<K, V>> entrySet() {\n\n // Initializing key-value pair arraylist\n ArrayList<KeyValuePair<K,V>> allPairs = new ArrayList<KeyValuePair<K,V>>();\n\n // Traversing data array\n for (Object data: this.data){\n\n if (data != null){\n\n // Casting data as a linked list \n MapNode linkedList = (MapNode) data;\n\n // Adding values from the linked list\n allPairs.addAll(linkedList.entrySet());\n }\n }\n\n return allPairs;\n }", "title": "" }, { "docid": "0d045907eaf36671601b28088043f11c", "score": "0.6901434", "text": "public abstract List<Map.Entry<String, String>> entries();", "title": "" }, { "docid": "b2655d953f8bff2ff2b839ab4d366b8b", "score": "0.6875985", "text": "public HashMap<String, ConfigurationEntry> getEntries() {\n\t\treturn entries;\n\t}", "title": "" }, { "docid": "ef3a2733026d6421f89bc891e258f1ef", "score": "0.687426", "text": "@SuppressWarnings(\"unchecked\")\r\n\t@Override\r\n\tpublic List<Dictionary> getall() {\n\t\tQuery q = (Query) sessionFactory.getCurrentSession().createQuery(\r\n \"from Dictionary \");\r\n return (List<Dictionary>) q.list();\r\n\t}", "title": "" }, { "docid": "9f4acab6d8410cba63360f07f89e1f98", "score": "0.6857905", "text": "@Override\n\tpublic Map<String, Object> readAll() {\n\t\treturn kpdao.readAll();\n\t}", "title": "" }, { "docid": "4e5e7c3140b2c12c3acb7d470172d767", "score": "0.6813884", "text": "public List<String> getEntries()\n {\n return itsEntries;\n }", "title": "" }, { "docid": "e64fbc6badc1caf1bbc877e208b81f26", "score": "0.68048245", "text": "public Collection<Entry> getEntries(){\n\t\treturn entries;\n\t}", "title": "" }, { "docid": "187b2131b0a2f9703d83df94d5285757", "score": "0.67976916", "text": "public CharSequence[] getEntries() {\n return mEntries;\n }", "title": "" }, { "docid": "9b64af72910ed21776f97897a5a83f66", "score": "0.6758452", "text": "public SortedSet<String> getEntries() {\r\n return entries;\r\n }", "title": "" }, { "docid": "101168bc0fa07f22239076a4e48ba3d6", "score": "0.6731701", "text": "public String getAllDictionaryItems() {\n if(dataStore.size() != 0) {\n StringBuilder appendedMembers = new StringBuilder();\n int index = 1;\n for(Map.Entry<String, Set<String>> entrySet: dataStore.entrySet()) {\n for(String s: entrySet.getValue()) {\n appendedMembers.append(index++ + \") \" + entrySet.getKey() + \":\" + s);\n appendedMembers.append(System.lineSeparator());\n }\n }\n return appendedMembers.toString();\n } else {\n return EMPTY_SET_MESSAGE;\n }\n }", "title": "" }, { "docid": "d5a2cf4a083afbea39649eca334a3da3", "score": "0.6721864", "text": "@Override\n\tpublic Set entrySet() {\n\t\treturn map.entrySet();\n\t}", "title": "" }, { "docid": "a4645201843bd9d6945e80e2c797ecd6", "score": "0.66855663", "text": "public HashMap<String, Node> getEntries() {\n HashMap<String, Node> returnEntries = new HashMap<String, Node>(entries);\n // returnEntries.put(\"..\",parent);\n return returnEntries;\n }", "title": "" }, { "docid": "7cd8945de0b5230d702f9ec28681ec38", "score": "0.66598165", "text": "public Set<Map.Entry<K,MapEntry<K,V>>> entrySetFull() {\n return innerMap.entrySet();\n }", "title": "" }, { "docid": "b226f91be4afcfe849117cf251370ed5", "score": "0.66462255", "text": "public List<String> getEntries() {\n return this.entries;\n }", "title": "" }, { "docid": "8102546696142ad1face72379bd66ccf", "score": "0.6637518", "text": "public List<Map.Entry<String, String>> entries()\r\n/* 44: */ {\r\n/* 45: 68 */ return Collections.emptyList();\r\n/* 46: */ }", "title": "" }, { "docid": "7718dff6cbc445ea6b2febfeae5c27e1", "score": "0.6552475", "text": "@NonNull\n public Stream<NotificationData.Entry> getAllEntries() {\n return mHeadsUpEntries.values().stream().map(headsUpEntry -> headsUpEntry.entry);\n }", "title": "" }, { "docid": "dece1c26ac8fdd993fc8a6e868a45003", "score": "0.64871883", "text": "public Iterable<Entry<K,V>> entrySet() {\n ArrayList<Entry<K,V>> buffer = new ArrayList<>();\n for (int h=0; h < capacity; h++)\n if (!isAvailable(h)) buffer.add(table[h]);\n return buffer;\n }", "title": "" }, { "docid": "95cf78f275937bc64a840176f1eb747e", "score": "0.64486134", "text": "public List<E> getAll()\n {\n return new ArrayList<E>(_cache.values());\n }", "title": "" }, { "docid": "087730f9b9abc545a6afa708dadfc114", "score": "0.64318013", "text": "@NotNull\n @Override\n public OrderedSet<Map.Entry<K, V>> entrySet() {\n inUpdate = true;\n OrderedSet<Map.Entry<K, V>> values = new OrderedSet<>(keySet.size(), new EntryCollectionHost<>());\n Iterator<Map.Entry<K, V>> iterator = entryIterator();\n while (iterator.hasNext()) {\n values.add(iterator.next());\n }\n\n // release it for host update\n inUpdate = false;\n\n return values;\n }", "title": "" }, { "docid": "5b5d93a90fb142112afb0dd401bed932", "score": "0.64093924", "text": "public Collection values() {\n\t\t//return all the mapped map's keys\n\t\tfinal Collection values = new ArrayList();\n\t\tfinal Iterator iter = this.keySet().iterator();\n\t\twhile (iter.hasNext()) {\n\t\t\tfinal Map mm = (Map) map.get(iter.next());\n\t\t\tvalues.addAll(mm.keySet());\n\t\t}\n\t\treturn ( values );\n\t}", "title": "" }, { "docid": "976c685a0a8c4fa36803c48e731d91c7", "score": "0.6404272", "text": "public Set<Map.Entry<K, V>> entrySet() {\n return new EntryView();\n }", "title": "" }, { "docid": "ea0dfe6ac35c87c198d42cac45391cea", "score": "0.6360967", "text": "public abstract Iterator entries ();", "title": "" }, { "docid": "5ab5237958de772e05622e8cee41520a", "score": "0.63355434", "text": "public Set entrySet(){ return super.entrySet(); }", "title": "" }, { "docid": "12d3650dd83e96b6414b9a7aa955e3b1", "score": "0.63070196", "text": "@Override\n\tpublic List<Map<String, Object>> readAll() {\n\t\treturn institucionDao.readAll(); \n\t}", "title": "" }, { "docid": "af9abfa451bd24f6a0b0b8d5df590413", "score": "0.6298761", "text": "public ArrayList<KeyValuePair<K,V>> entrySet(){\n\n // Initializing arraylist of key-value pairs\n ArrayList<KeyValuePair<K,V>> pairs = new ArrayList<KeyValuePair<K,V>>();\n\n // Adding current pair\n pairs.add(this.getPair());\n\n // Checking if the next node is not null\n if (this.next != null){\n pairs.addAll(this.next.entrySet());\n }\n\n return pairs;\n }", "title": "" }, { "docid": "6673f6512344dcb89a300fe49a03a646", "score": "0.6252027", "text": "Iterable<Map.Entry<byte[], byte[]>> getAll();", "title": "" }, { "docid": "3d9861245d9aacdad339bfdf5d66c3a0", "score": "0.62468755", "text": "@Override\n public List<Map<String, Object>> getAll() {\n return null;\n }", "title": "" }, { "docid": "fd2cd1c20e816407396da90a86fb7de4", "score": "0.6240087", "text": "public Map<Object, Object> getAllEntries(String key) {\n return hashOperations.entries(key);\n }", "title": "" }, { "docid": "5b31d952f679c16df6863b2a1891af5b", "score": "0.6233208", "text": "@SuppressWarnings( \"UseBulkOperation\" )\n @Nonnull\n @Override\n public Set<Map.Entry<Object, Object>> entrySet()\n {\n final TreeMap<Object, Object> map = new TreeMap<>();\n for ( final Map.Entry<Object, Object> entry : super.entrySet() )\n {\n map.put( entry.getKey(), entry.getValue() );\n }\n return map.entrySet();\n }", "title": "" }, { "docid": "11b641e8710648ba0ef65c98dfbf5ead", "score": "0.62314385", "text": "public ImmutableMap<String, String> getAll() {\n return ImmutableMap.copyOf(mProperties);\n }", "title": "" }, { "docid": "ede37c3a8df27c3e294489e45aecbf81", "score": "0.6214696", "text": "public IEntry[] getEntries() {\r\n\t\tIEntry[] result = new IEntry[entries.size()];\r\n\t\tfor (int i = entries.size() - 1; i >= 0; i--) {\r\n\t\t\tresult[i] = (IEntry)entries.elementAt(i);\r\n\t\t}\r\n\t\treturn result;\r\n\t}", "title": "" }, { "docid": "bedb62b9829700babe8f6f36b3c33e58", "score": "0.6208791", "text": "public Cursor getAllEntries() {\n return db.query(DATABASE_TABLE, new String[]{KEY_ROWID, KEY_NAME, KEY_TIME, KEY_LONGITUDE, KEY_LATITUDE,\n KEY_REFNUM, KEY_DESC}, null, null, null, null, null);\n }", "title": "" }, { "docid": "93210f793cd6eea3f0599b55698ffe2c", "score": "0.61827254", "text": "public List<Meal> getAll(){\n return Collections.unmodifiableList(new ArrayList<>(data.values()));\n }", "title": "" }, { "docid": "a91f92ecc8f84524aca851689944ee3a", "score": "0.6177464", "text": "@Override\n\tpublic Collection values() {\n\t\treturn map.values();\n\t}", "title": "" }, { "docid": "0358a4f2c33e3b35043794dc7ccf5c9c", "score": "0.61399144", "text": "public Map<String, String> a() {\n return Collections.unmodifiableMap(this.h);\n }", "title": "" }, { "docid": "cd38018dcbccfb60fec60a13cc694558", "score": "0.6138428", "text": "public String[] getAllKeys() {\n\t\treturn db.getAllKeys();\n\t}", "title": "" }, { "docid": "cf07a7325948927a93c15e5c862d52f7", "score": "0.6135051", "text": "public Set<Entry<E, Double>> getEntrySet() {\n\t\treturn entries.entrySet();\n\t}", "title": "" }, { "docid": "3c289f8021001a5ddc4ad5d14bb6692f", "score": "0.6129197", "text": "@Override\r\n\t\tpublic Set<java.util.Map.Entry<String, Object>> entrySet() {\n\t\t\treturn null;\r\n\t\t}", "title": "" }, { "docid": "23d665289a7ce40d529fa2540fbd3cda", "score": "0.6117567", "text": "public Iterator<Object> iterator () {\n\t\treturn entries.iterator();\n\t}", "title": "" }, { "docid": "c3121f28ddcef08ec5606752f654bc98", "score": "0.610897", "text": "@Override\n public Set<Map.Entry<String, StringMetadata>> entrySet() {\n return lruStringCache.entrySet();\n }", "title": "" }, { "docid": "95825aa91a2751e44e01cdc5d4baab6f", "score": "0.61032885", "text": "@Override\r\n\tpublic List<Map<String, Object>> readAll() {\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "0f918cd30bf64538c2556e7aafa61c0a", "score": "0.6094139", "text": "public Iterator<Entry<String, T>> iterator() {\r\n\t\treturn new ODictionaryClientIterator<T>(database, storage.dictionaryKeys());\r\n\t}", "title": "" }, { "docid": "e89cad8ff154b2a1839c68b530eceee6", "score": "0.6093306", "text": "public List getList() {\n \t\treturn keyVals;\n \t}", "title": "" }, { "docid": "e3a712447e96bfd4f1d800b412fbd836", "score": "0.60858023", "text": "Iterable<Entry<K,V>> entrySet();", "title": "" }, { "docid": "46db37428e89b5e0c68ff73098832887", "score": "0.607885", "text": "protected abstract Collection<String> getAllKeys();", "title": "" }, { "docid": "8578fdb582e06050086fbfd23006c003", "score": "0.606564", "text": "public CharSequence[] getEntryValues() {\n return mEntryValues;\n }", "title": "" }, { "docid": "42d4f17c35247dfb57515ad00812de58", "score": "0.60558623", "text": "public java.util.List<com.didiglobal.booster.aapt2.Resources.Entry> getEntryList() {\n if (entryBuilder_ == null) {\n return java.util.Collections.unmodifiableList(entry_);\n } else {\n return entryBuilder_.getMessageList();\n }\n }", "title": "" }, { "docid": "1d9ec77095ac19197d9f99a2b727c031", "score": "0.6046033", "text": "@java.lang.Override\n public java.util.List<com.didiglobal.booster.aapt2.Resources.Entry> getEntryList() {\n return entry_;\n }", "title": "" }, { "docid": "b1e425c10950127199cc13fc0aedcaba", "score": "0.60259545", "text": "public Set<Entry<Character, Integer>> entrySet() {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "087ba73f32be89a06d3d168df27442e3", "score": "0.60197437", "text": "public Collection<E> values() {\n return map.values();\n }", "title": "" }, { "docid": "8ec92ee4a2d4ad0df01086828a6440ab", "score": "0.6011859", "text": "@Override\n public Set<Map.Entry<String, Blob>> entrySet() {\n return this.blobs.entrySet();\n }", "title": "" }, { "docid": "699fdc37be403d2fecc47b2a0ff7ae79", "score": "0.6009821", "text": "public ImmutableSet<Map.Entry<K, V>> entrySet() {\n/* 437 */ return super.entrySet();\n/* */ }", "title": "" }, { "docid": "3a52281f6705d7c9e023584250c4742f", "score": "0.6002255", "text": "public ArrayOfInfologEntry getEntries(){\n return localEntries;\n }", "title": "" }, { "docid": "0a1f13cdad817501b6606702b3dfcfe9", "score": "0.6002224", "text": "public List<Pair<String, Object>> getContextEntries() {\n/* 117 */ return this.contextValues;\n/* */ }", "title": "" }, { "docid": "9c5778906875e059a01942ec4749c29e", "score": "0.6000903", "text": "public Set<E> keySet() {\n\t\treturn entries.keySet();\n\t}", "title": "" }, { "docid": "167578000f83a988f5b4b40c33b0c6bd", "score": "0.59864885", "text": "public IhmEntryCollection getIhmEntryCollection() {\n return delegate.getCategory(\"ihm_entry_collection\", IhmEntryCollection::new);\n }", "title": "" }, { "docid": "c7cb3803159faf486d5900ba811615d7", "score": "0.59803444", "text": "@Override\n public Map<String, String> getAll() {\n Map<String, ?> all = delegate.getAll();\n Set<String> keys = all.keySet();\n HashMap<String, String> unencryptedMap = new HashMap<>(keys.size());\n for (String key : keys) {\n String decryptedKey = decryptKey(key);\n Object value = all.get(key);\n if (value != null) {\n unencryptedMap.put(decryptedKey, decrypt(value.toString()));\n }\n }\n return unencryptedMap;\n }", "title": "" }, { "docid": "a34a9fc69499142c29a32859c72b0944", "score": "0.597685", "text": "public Set entrySet()\n{\n return hashMap.entrySet();\n}", "title": "" }, { "docid": "8628244149d26049aa06c52c8e8ad86d", "score": "0.59729", "text": "@RequestMapping(value = CONFIGURATION_ENTRIES_URI_PREFIX, method = RequestMethod.GET)\n @Secured(SecurityFunctions.FN_CONFIGURATION_ENTRIES_ALL_GET)\n public ConfigurationEntryKeys getConfigurationEntries()\n {\n return configurationEntryService.getConfigurationEntries();\n }", "title": "" }, { "docid": "9f56327367d8c3cc116e5a8a6e087a43", "score": "0.5969855", "text": "@Override\n public Map<Long, RestaurantSearchByVenue> findAll() {\n return hashOperations.entries(RESTAURANT_CACHE);\n }", "title": "" }, { "docid": "e242c6aa9c26a9f8ecc0457e1cee3050", "score": "0.5968397", "text": "@Override\n\tpublic List<HashMap<String, String>> getData() {\n\t\treturn data;\n\t}", "title": "" }, { "docid": "9d812e6eb8db53c6c8e495f66ee38b77", "score": "0.5966603", "text": "public java.util.List<Cstrike15Gcmessages.CMsgGCCStrike15_v2_Party_SearchResults.Entry> getEntriesList() {\n if (entriesBuilder_ == null) {\n return java.util.Collections.unmodifiableList(entries_);\n } else {\n return entriesBuilder_.getMessageList();\n }\n }", "title": "" }, { "docid": "fa5e1f01cae2404d215d5d274edb6a8d", "score": "0.59658957", "text": "@Override\n public List allItems() {\n List<E> allItems = new ArrayList<>(nodeMap.keySet());\n return allItems;\n }", "title": "" }, { "docid": "8a4a844ceb886f535a60959a8efc4330", "score": "0.59658885", "text": "@Override\n public String toString() {\n\tStringBuffer result = new StringBuffer();\n Iterator<String> i = dictionary.keySet().Iterator();\n while(i.hasNext()) {\n result = result.append(i.next());\n }\n\treturn result.toString();\n }", "title": "" }, { "docid": "e1d47e9ef356dcc1a94a495c184cae04", "score": "0.596344", "text": "public LiveData<DiaryEntry> getEntries() {\n return entry;\n }", "title": "" }, { "docid": "97d4696eca7c0b085123653688c79c98", "score": "0.5961633", "text": "public Set<Map.Entry<String, Object>> get() {\n\t\treturn settings.entrySet();\n\t}", "title": "" }, { "docid": "a66674c4ab2aa3f4d5a5ef30dd35d568", "score": "0.5947327", "text": "@Override\n\t\t\tpublic Set<java.util.Map.Entry<Object, Object>> entrySet()\n\t\t\t{\n\t\t\t\treturn Collections.synchronizedSet(\n\t\t\t\t\t\tsuper.entrySet().stream().sorted(Comparator.comparing(e -> e.getKey().toString()))\n\t\t\t\t\t\t\t\t.collect(Collectors.toCollection(LinkedHashSet::new)));\n\t\t\t}", "title": "" }, { "docid": "dad45cd4009ada209d72f1947e7d9e5f", "score": "0.59187555", "text": "@Override\n\tpublic Map<K, V> readAll() {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "ede1b9fb7e12becc622d7200f557ebd7", "score": "0.5901563", "text": "public Collection<EntryPointData> getEntryPoints() {\n return entryPoints.values();\n }", "title": "" }, { "docid": "bbcecbddd93cd59e8688f0f861ff2ac3", "score": "0.59009504", "text": "Map<Date, ? extends Collection<WeblogEntryWrapper>> getEntries();", "title": "" }, { "docid": "46a442430999945773157e076c16170d", "score": "0.58955896", "text": "public List<Object> allObjects() {\n return new ArrayList<>(objectMap.values());\n }", "title": "" }, { "docid": "806a06e22da08dab07c7f448a5acbce0", "score": "0.58943796", "text": "public List<PhtData> getDKeys() {\n LinkedList<PhtData> kdata = new LinkedList<PhtData>();\n\n for (Map.Entry<String, Object> dkey : this.dkeys.entrySet()) {\n kdata.add( new PhtData(dkey.getKey(), dkey.getValue()) );\n }\n\n return kdata;\n }", "title": "" }, { "docid": "5bc412d47a740424ebe09e689b10895f", "score": "0.5893006", "text": "@Override\n public Iterator<String> iterator() {\n return super.value.keySet().iterator();\n }", "title": "" }, { "docid": "127167ef19bec7c520589871ea23fb40", "score": "0.5885483", "text": "@java.lang.Override\n public java.util.List<Cstrike15Gcmessages.CMsgGCCStrike15_v2_Party_SearchResults.Entry> getEntriesList() {\n return entries_;\n }", "title": "" }, { "docid": "1ac2bc47674ee23acaa4f5004343750b", "score": "0.58741486", "text": "public java.util.Enumeration keys() {return dict.keys();}", "title": "" }, { "docid": "5d29e1f75f279d3b48c9c0a6f8bd0e29", "score": "0.5860382", "text": "@Override\n public ArrayList<K> keySet() {\n \n // Initializing arraylist of all keys\n ArrayList<K> allKeys = new ArrayList<K>();\n\n // Traversing data array\n for (Object data: this.data){\n\n if (data != null){\n\n // Casting data as a linked list\n MapNode linkedList = (MapNode) data;\n\n // Adding all keys from linked list\n allKeys.addAll(linkedList.keySet());\n }\n }\n\n return allKeys;\n }", "title": "" }, { "docid": "c8c8e3473919b3bd89bdf9b296aa1167", "score": "0.5853996", "text": "@Override\r\n\tpublic Map<String, Object> readAll() {\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "2424496d4a9cf08e83901bb3f15f70c6", "score": "0.5839091", "text": "public Entry7[] getEntry(){\n return localEntry;\n }", "title": "" }, { "docid": "a08054b432c8eedc92efd068155f5856", "score": "0.58162874", "text": "public Hashtable getMetadataEntries() {\n return metadataEntries;\n\n }", "title": "" }, { "docid": "03e128d4941be7df06134c3c630514fe", "score": "0.5812745", "text": "public Collection<V> values() {\n/* 2924 */ return new Maps.FilteredMapValues<K, V>(this, this.unfiltered, this.entryPredicate);\n/* */ }", "title": "" }, { "docid": "c01d927eb835eb320ca7512c2faf1051", "score": "0.58032787", "text": "@Override\r\n\tpublic Set<java.util.Map.Entry<K, V>> entrySet() {\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "641d4e1b616cc29042ca0803e50cf242", "score": "0.58015233", "text": "public List<FlightPlanningEntry> getEntries() {\n return new ArrayList<>(entries);\n }", "title": "" }, { "docid": "1ea0d9db6953013c4eb5ab34e4d8332e", "score": "0.58011115", "text": "public Collection getGenericMetadataEntrys() {\n return genericMetadataEntry;\n\n }", "title": "" }, { "docid": "1d5d250225c1e4c123b0203442b40bb6", "score": "0.57871234", "text": "public List<KeyPOJO> getAllKeys() {\n\t\treturn keysManager.getAllKeys();\n\t}", "title": "" }, { "docid": "cb5cb08bbc0d5b505be80d1a22151630", "score": "0.5779827", "text": "java.util.List<com.didiglobal.booster.aapt2.Resources.Entry> \n getEntryList();", "title": "" }, { "docid": "d16a03e9aa2bb671780dba9cb05ba223", "score": "0.5772349", "text": "public List<Map<String, Object>> getList() {\r\n return mList;\r\n }", "title": "" }, { "docid": "deeb9d9d85d13d85ef03205fe3920488", "score": "0.5770049", "text": "@java.lang.Override\n public Cstrike15Gcmessages.CMsgGCCStrike15_v2_Party_SearchResults.Entry getEntries(int index) {\n return entries_.get(index);\n }", "title": "" }, { "docid": "86c3a7e52e6caceb5aefc0e624260533", "score": "0.5769776", "text": "@Override\r\n\tpublic Iterator<E> iterator() {\n\t\treturn map.keySet().iterator();\r\n\t}", "title": "" }, { "docid": "20ededbd8f7dbbad95861464eab24ba5", "score": "0.5751359", "text": "public Collection values(){\n \n orderedValues.clear();\n Iterator it = ordKeyList.iterator();\n while (it.hasNext()) {\n orderedValues.add(super.get(it.next()));\n }\n return orderedValues;\n }", "title": "" }, { "docid": "bbfe8c2381ef7e77ca43f2efbe3d3bf0", "score": "0.5748608", "text": "@Override\n public Collection<StdData> values() {\n return new AbstractCollection<StdData>() {\n @Override\n public Iterator<StdData> iterator() {\n return new Iterator<StdData>() {\n Iterator mapValueIterator = _mapObjectInspector.getMap(_object).values().iterator();\n\n @Override\n public boolean hasNext() {\n return mapValueIterator.hasNext();\n }\n\n @Override\n public StdData next() {\n return HiveWrapper.createStdData(mapValueIterator.next(), _valueObjectInspector, _stdFactory);\n }\n };\n }\n\n @Override\n public int size() {\n return HiveMap.this.size();\n }\n };\n }", "title": "" }, { "docid": "412e92e170c95e7816c8e36f956961a9", "score": "0.57457393", "text": "public Iterable<V> values() {\n\t\treturn new Iterable<V>()\n\t\t\t\t{\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic Iterator<V> iterator() {\n\t\t\t\t\t\treturn new Iterator<V>()\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tprivate Iterator<DoublyLinkedList<V>> lists = map.values().iterator();\n\t\t\t\t\t\t\t\t\tprivate Iterator<V> values;\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\t\t\tpublic boolean hasNext() {\n\t\t\t\t\t\t\t\t\t\treturn lists.hasNext() || values.hasNext();\n\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\t\t\tpublic V next() {\n\t\t\t\t\t\t\t\t\t\tif(values == null || !values.hasNext())\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\tvalues = lists.next().iterator();\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\treturn values.next();\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t};\n\t\t\t\t\t}\n\t\t\t\t};\n\t}", "title": "" }, { "docid": "52eccb2b1bc17da3bf6d52659b72144e", "score": "0.5742701", "text": "public Entry4[] getEntry(){\n return localEntry;\n }", "title": "" } ]
6f3bb284766a1e2c43121e895e73134a
Handle the action of clicking on the deleting an event option.
[ { "docid": "4e737d5b5f9d5d4742564343b5fbb025", "score": "0.7011277", "text": "@Override\n public void onDeleteClick(final String id) {\n AlertDialog.Builder builder = new AlertDialog.Builder(getContext(),\n R.style.AppTheme_Dialog_Alert);\n builder.setMessage(R.string.confirm_event_delete);\n\n DialogInterface.OnClickListener listener = new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n switch (which) {\n case DialogInterface.BUTTON_POSITIVE:\n eventManager.removeEvent(EventAction.ACTOR_SELF, id,\n new EventManager.EventActionCallback() {\n @Override\n public void onEventAction(EventAction... data) {\n if (data[0].getStatus() == EventAction.STATUS_OK) {\n mainInterface.showSnackBar(R.string.event_action_delete,\n R.string.undo, 0, new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n\n }\n }\n );\n }\n }\n }\n );\n break;\n case DialogInterface.BUTTON_NEGATIVE:\n break;\n }\n\n dialog.dismiss();\n }\n };\n\n builder.setPositiveButton(R.string.yes, listener);\n builder.setNegativeButton(R.string.no, listener);\n\n AlertDialog dialog = builder.create();\n dialog.show();\n }", "title": "" } ]
[ { "docid": "291f4d6e62dd2a03faffb62aec0f2026", "score": "0.71895695", "text": "private void deleteMouseClicked(java.awt.event.MouseEvent evt) {\n }", "title": "" }, { "docid": "01b4c5b9e48cc33bcc877a7e10654cc6", "score": "0.7177756", "text": "public void delteClicked(ActionEvent actionEvent) {\n }", "title": "" }, { "docid": "dc4f896c603c85d7a255e68ecf096a2f", "score": "0.7163042", "text": "private void deleteBtnClickListener () {\n //click listener for garbage can icon\n postList.setOnMenuItemClickListener(new SwipeMenuListView.OnMenuItemClickListener() {\n @Override\n public boolean onMenuItemClick(int position, SwipeMenu menu, int index) {\n switch (index) {\n case 0:\n deleteMoodEventFromDB(documentReference, position);\n break;\n }\n return false;\n }\n });\n }", "title": "" }, { "docid": "3f3f0a26847d1aac7186ce8045b6d45d", "score": "0.7126821", "text": "@Override\n\tpublic void deleteClick(int id) {\n\t\t\n\t}", "title": "" }, { "docid": "4d3a1ccabb0e82b0559221f731e3406e", "score": "0.7111915", "text": "public void onClick$btnDelete(Event event) throws InterruptedException {\r\n doDelete(event);\r\n }", "title": "" }, { "docid": "1fbdf37ed5b1abbb6f6eef2d9a05b5ad", "score": "0.7111366", "text": "@FXML\n private void handleFrsDeleteOption(ActionEvent event) {\n Fournisseur selectedForDeletion = ListFrsView.getSelectionModel().getSelectedItem();\n if (selectedForDeletion == null) {\n AlertMaker.showErrorMessage(\"Aucune selection\", \"Veuillez selecter une personne pour la supprimer.\");\n return;\n }\n \n Alert alert = new Alert(Alert.AlertType.CONFIRMATION);\n alert.setTitle(\"Supprission de Fournisseur\");\n \n alert.setContentText(\"Êtes-vous sûr de supprimer \" + selectedForDeletion.getNom() + \" ?\");\n Optional<ButtonType> answer = alert.showAndWait();\n if (answer.get() == ButtonType.OK) {\n Boolean result = Dao.deleteFrs(selectedForDeletion);\n if (result) {\n AlertMaker.showSimpleAlert(\"Fournisseur supprimer\", selectedForDeletion.getNom() + \" a été supprimer avec succès.\");\n list.remove(selectedForDeletion);\n } else {\n AlertMaker.showSimpleAlert(\"Error\", selectedForDeletion.getNom() + \" n'est pas supprimer.\");\n }\n } else {\n AlertMaker.showSimpleAlert(\"Suppression annuler\", \"Suppression non effectuer.\");\n }\n }", "title": "" }, { "docid": "3c81a96c128ab09152d05ba3c26beeb0", "score": "0.7062975", "text": "public void onDeleteButtonClicked(MenuItem item){\n if(mEventId == DEFAULT_EVENT_ID){ //if new event\n finish(); //closes activity\n }\n else { //if event is being updated\n //deletes event on a separate thread\n AppExecutors.getInstance().diskIO().execute(new Runnable() {\n @Override\n public void run() {\n mDatabase.eventDao().deleteEvent(mEvent);\n finish();\n }\n });\n }\n }", "title": "" }, { "docid": "5217569fc8a5a6cd5234a6c5b512ebdf", "score": "0.70462763", "text": "@Override\n\tpublic void deleteClick(Object id) {\n\t\t\n\t}", "title": "" }, { "docid": "c2a0f89b8ed7ffd2b55a704e9cd803a9", "score": "0.6979627", "text": "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n\n case R.id.event_event_delete:\n Intent data = new Intent();\n data.putExtra(\"delete\", 1);\n setResult(AppCompatActivity.RESULT_OK, data);\n finish();\n // delete event\n }\n return super.onOptionsItemSelected(item);\n }", "title": "" }, { "docid": "7ee9f4f50f3fdf7afb906575f3b938e7", "score": "0.6962898", "text": "@FXML\n\t private void handleDeleteButton(ActionEvent event) {\n\t\t if (obsList.isEmpty()) {\n\t\t\t showError(\"There is nothing to delete.\");\n\t\t\t return;\n\t\t }\n\t\t \n\t\t Song item = listView.getSelectionModel().getSelectedItem();\n\t\t int index = listView.getSelectionModel().getSelectedIndex();\n\t\t \n\t\t Alert alert = \n\t\t\t\t new Alert(AlertType.INFORMATION);\n\t\t alert.setTitle(\"Delete Item\");\n\t\t alert.setHeaderText(\n\t\t\t\t \"There's no going back!\");\n\n\t\t String content = \"Are you sure you want to delete \" + item.getTitle() + \"?\";\n\n\t\t alert.setContentText(content);\n\n\t\t Optional<ButtonType> result = alert.showAndWait();\n\t\t if (result.isPresent()) {\n\t\t\t obsList.remove(item);\n\t\t\t //songs.remove(index);\n\t\t\t \n\t\t\t if (obsList.isEmpty()) {\n\t\t\t\t songTitle.setText(\"\");\n\t\t\t\t songArtist.setText(\"\");\n\t\t\t\t songAlbum.setText(\"\");\n\t\t\t\t songYear.setText(\"\");\n\t\t\t }\n\t\t\t else if(index == obsList.size()-1)\n\t\t\t {\n\t\t\t\t listView.getSelectionModel().select(index--);\n\t\t\t }\n\t\t\t else\n\t\t\t {\n\t\t\t\t listView.getSelectionModel().select(index++);\n\t\t\t }\n\t\t\t showSong();\n\t\t }\n\t\t \n\t\t \n\t\t\t\n\t }", "title": "" }, { "docid": "59f56080558b3ae828f1b3a469e8248f", "score": "0.6914172", "text": "public void deleteAppointmentButton(MouseEvent mouseEvent) {\n if (appointmentTable.getSelectionModel().getSelectedItem() != null){\n selectedAppointment = appointmentTable.getSelectionModel().getSelectedItem();\n }\n else{\n return;\n }\n //displays an alert to inform the user that the selected appointment will be deleted if they continue.\n Alert alert = new Alert(Alert.AlertType.CONFIRMATION);\n alert.setContentText(\"You are about to delete the selected appointment.\");\n Optional<ButtonType> result = alert.showAndWait();\n if(result.get() == ButtonType.OK){\n AppointmentDatabase.deleteAppointmentRecord(selectedAppointment.getAppointmentID());\n setAppointmentTable();\n }\n\n }", "title": "" }, { "docid": "8f494392bc6f6cd37b12fcefaf290c7d", "score": "0.6914163", "text": "@FXML\n public void itemDelete(ActionEvent actionEvent) {\n deleteItemClicked();\n }", "title": "" }, { "docid": "42afc7cbc702dfff166f4d49e2b1bf54", "score": "0.6891655", "text": "@Override\n public void deleteClick(int position) {\n }", "title": "" }, { "docid": "793a26ce3063914f0f75116082849aed", "score": "0.6885604", "text": "public void removeItemClick(ActionEvent actionEvent) {\n }", "title": "" }, { "docid": "a693db90393e0cf37979fbcc9fef6fa8", "score": "0.68613005", "text": "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tViewHolder vh = getViewHolder(v);\n\t\t\t\t//MainActivity.setOnDelHandle(vh.id.toString());// call mainactivity to perform delete function\n\t\t\t\tint rs=context.getContentResolver().delete(ChargeMe.Content_Event_Uri, ChargeMe.EVENT_IDN+\"=\"+vh.id.toString(), null);\n\t\t\t\t//int rs= getContentResolver().update(ChargeMe.Content_Event_Uri, cValues, ChargeMe.EVENT_IDN+\"=\"+eventidn, null);\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "c857f8802979f54dc11e170c6f633094", "score": "0.6826052", "text": "@FXML\n\tprivate void handleDeletePerson() {\n\t\tint selectedIndex = eventTable.getSelectionModel().getSelectedIndex();\n\t\tif (selectedIndex >= 0) {\n\t\t\teventTable.getItems().remove(selectedIndex);\n\t\t} else {\n\t\t\t// Nothing selected\n\t\t\tDialogs.showWarningDialog(mainApp.getPrimaryStage(),\n\t\t\t\t\t\"Please select a person in the table.\",\n\t\t\t\t\t\"No Person Selected\", \"No Selection\");\n\t\t}\n\t}", "title": "" }, { "docid": "b8f1bad67707450edc760a05c5ea44b9", "score": "0.6804424", "text": "public void removeListClick(ActionEvent actionEvent) {\n }", "title": "" }, { "docid": "c1013a3da044cfd1bc29f65a138621b5", "score": "0.6797548", "text": "public void handleEventDeletion(CalendarEvent event);", "title": "" }, { "docid": "ae5aae5ceae12bf72dd5f7ccf1a1c483", "score": "0.67689705", "text": "@Override\r\n\t\t\t\t\t\t\t\t\tpublic void onClick(DialogInterface arg0,\r\n\t\t\t\t\t\t\t\t\t\t\tint arg1) {\n\t\t\t\t\t\t\t\t\t\tmOnItemClickListener.onDelete(\r\n\t\t\t\t\t\t\t\t\t\t\t\tdataList.get(position),\r\n\t\t\t\t\t\t\t\t\t\t\t\tposition);\r\n\t\t\t\t\t\t\t\t\t}", "title": "" }, { "docid": "f1ed8372db0cc27c6cfb0101e335c5e8", "score": "0.6768196", "text": "@Override\r\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tshowDialog(DIALOG_DELETE_EINKAUF);\r\n\t\t\t}", "title": "" }, { "docid": "265f088ffc80d92ff693abcdec40da7e", "score": "0.6699955", "text": "@Override\n\tprotected void deleteEvent() {\n\t\tDateBook.getEventList().remove(event);\t\t\n\t\t\n\t}", "title": "" }, { "docid": "78f244fc10def1ebd0b3c21bdbb5b254", "score": "0.6670649", "text": "public void deleteEvent(View view) {\n View parent = (View) view.getParent();\n TextView taskTextView = (TextView) parent.findViewById(R.id.event_title);\n String eventTitle = String.valueOf(taskTextView.getText());\n\n final Integer eventId = EventUtility.getEventIdByTitle(this, eventTitle);\n Log.v(TAG, \"\"+eventId);\n\n final Context context = this;\n\n AlertDialog dialog = new AlertDialog.Builder(this)\n .setTitle(\"Delete event\")\n .setMessage(\"Delete the event '\" + eventTitle + \"' with event id: \" + eventId + \"?\")\n .setPositiveButton(\"Accept\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n\n EventUtility.deleteEventById(context, eventId);\n\n updateUI();\n insertEvents();\n }\n })\n .setNegativeButton(\"Decline\", null)\n .create();\n dialog.show();\n\n updateUI();\n }", "title": "" }, { "docid": "8a21c02c03ab542150d90a768fc02a7d", "score": "0.6612247", "text": "@FXML\n void OnDelete(ActionEvent event) {\n }", "title": "" }, { "docid": "b17a033ffa7ee58dc0b891be10c8fd00", "score": "0.6604493", "text": "@Override\n\t\t\tpublic void onClick(com.smartgwt.client.widgets.events.ClickEvent event) {\n\t\t\t\t\n\t\t\t\tfinal List<String> idList = new ArrayList<String>();\n\t\t\t\tfinal List<String> nameList = new ArrayList<String>();\n\t\t\t\t\n\t\t\t\tfor(ListGridRecord record : ontologyListGrid.getSelectedRecords()){\n\t\t\t\t\tidList.add(record.getAttributeAsString(\"id\"));\n\t\t\t\t\tnameList.add(record.getAttributeAsString(\"name\"));\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tSC.confirm(nameList.toString(), new BooleanCallback() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void execute(Boolean value) {\n\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\tif(value){\n\t\t\t\t\t\t\tOntologyController.Util.getInstance().deleteOntology(idList, new AsyncCallback<Void>() {\n\t\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\t\tpublic void onFailure(Throwable caught) {\n\t\t\t\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\t\t\t\tSC.logDebug(caught.getMessage());\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\t\tpublic void onSuccess(Void result) {\n\t\t\t\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\t\t\t\tsetOntologyListGridDataReload();\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t});\t\n\t\t\t}", "title": "" }, { "docid": "b34d9eeb13cd77cd9674408b2c4cba1c", "score": "0.65901357", "text": "public void onClick(DialogInterface dialog, int which) {\n delete(tID);\n\n }", "title": "" }, { "docid": "f23a931ac3fc5778a89a258e2de00859", "score": "0.65788305", "text": "@FXML\n private void handleDeleteMovie(ActionEvent event) {\n try {\n Movie selectedMovie = lstMovies.getSelectionModel().getSelectedItem();\n movieModel.deleteMovie(selectedMovie);\n } catch (MrsBllException e) {\n displayError(e);\n }\n }", "title": "" }, { "docid": "8a9f607ad386182f3f4166a8c4525f32", "score": "0.65738034", "text": "public void deleteAction() {\n\t\t\n\t}", "title": "" }, { "docid": "19dbb5474b0092e2b63c4eab057080c3", "score": "0.6558319", "text": "@Override\n public void onClick(View v) {\n showDeleteConfirmationDialog();\n }", "title": "" }, { "docid": "0e7442e0d64935e88e430d3481571af6", "score": "0.65278375", "text": "private void hdeleteButtonListener() {\n\t\thistoryInterface.getButton2().addActionListener(new ActionListener() {\n\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tif (\"Delete\".equals(e.getActionCommand())) {\n\n\t\t\t\t\tint index = historyInterface.getjList().getSelectedIndex();\n\n\t\t\t\t\ttry {\n\t\t\t\t\t\thistory.removeItem();\n\t\t\t\t\t\thistoryInterface.removeIndexFromList(index);\n\t\t\t\t\t} catch (IOException e1) {\n\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t}\n\n\t\t\t\t} else {\n\t\t\t\t\tthrow new IllegalArgumentException(\"ERROR\");\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\n\t}", "title": "" }, { "docid": "2a8585070fb554b5d0cf202a6a56f5b1", "score": "0.6511224", "text": "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tdeletefromtempbuttonclicked();\n\t\t\t}", "title": "" }, { "docid": "2279db18456e52d0fdd376eb6403bd00", "score": "0.6497768", "text": "private void setupDeleteAction(){\n\n AdapterView.OnItemLongClickListener deleteHandler = new AdapterView.OnItemLongClickListener() {\n @Override\n public boolean onItemLongClick(AdapterView<?> parent, View view, int position, long id) {\n final Training training = (Training) trainingList.getItemAtPosition(position);\n\n // Handlers pour les actions de l'alert dialog\n DialogInterface.OnClickListener onAckHandler = new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n removeTraining(training);\n }\n };\n DialogInterface.OnClickListener onNackHandler = null;\n\n // on créer une boite de dialogue\n AlertDialog.Builder adb = new AlertDialog.Builder(MainActivity.this);\n // on attribut un titre à notre boite de dialogue\n adb.setTitle(getResources().getString(R.string.delete_training_message).replace(\"%name\", training.getName()));\n // on indique que l'on veut le bouton ok à notre boite de dialogue\n adb.setPositiveButton(R.string.delete_training_ack, onAckHandler);\n adb.setNegativeButton(R.string.delete_training_nack, onNackHandler);\n\n adb.show();\n\n // on consomme l'event\n return true;\n }\n };\n\n trainingList.setOnItemLongClickListener(deleteHandler);\n }", "title": "" }, { "docid": "10b2c0314040be93c636e3f535391e41", "score": "0.64891726", "text": "public void deletePatientButton(MouseEvent mouseEvent) {\n if(patientTable.getSelectionModel().getSelectedItem()!= null){\n selectedPatient = patientTable.getSelectionModel().getSelectedItem();\n }\n else{\n return;\n }\n //posts alert to get user input to validate that the user wants to delete the selected customer\n Alert alert = new Alert(Alert.AlertType.CONFIRMATION);\n alert.setContentText(\"You are about to delete \" + selectedPatient.getPatientName() + \" !\");\n Optional <ButtonType> result = alert.showAndWait();\n //if customer selects the Button confirming they wish to delete the patient record, then deletePatientRecord will run.\n if(result.get() == ButtonType.OK){\n PatientDatabase.deletePatientRecord(selectedPatient.getAddressID());\n setPatientTable();\n }\n else{\n return;\n }\n }", "title": "" }, { "docid": "4be3f869c475c96c49489cd21ca2333a", "score": "0.648142", "text": "@Override\n public void onClick(View view) {\n onDeleteButtonClicked();\n }", "title": "" }, { "docid": "a83c8c3e07f4fa54c10381381174db34", "score": "0.64662963", "text": "private void setDeleteButtonListener() {\n deleteButton.addActionListener((ActionEvent e) -> {\n if (eventsTable.getSelectedRow() >= 0) {\n eventsTableModel.getEvents().remove(eventsTable.getSelectedRow());\n eventsTableModel.fireTableDataChanged();\n checkButtonsState();\n }\n });\n }", "title": "" }, { "docid": "b4f04335a3292c854b8598c431a2d474", "score": "0.64409995", "text": "public void delete(ActionEvent e) {\n if (!user.getAlbums().isEmpty()) {\n Alert cancelAlert = new Alert(Alert.AlertType.CONFIRMATION);\n cancelAlert.setTitle(\"WARNING\");\n cancelAlert.setContentText(\"Confirm Action\");\n cancelAlert.setHeaderText(\"Are you sure you want to delete this album? This action cannot be undone.\");\n Optional<ButtonType> result = cancelAlert.showAndWait();\n if (result.get() == ButtonType.OK) {\n Album selectedAlbum = tableView.getSelectionModel().getSelectedItem();\n ;\n user.getAlbums().remove(selectedAlbum);\n tableView.getItems().remove(selectedAlbum);\n }\n }\n }", "title": "" }, { "docid": "46daa786e080f78e3b3ee6e5c94a04b1", "score": "0.6436476", "text": "public void deletePressed();", "title": "" }, { "docid": "ac2d5508e82adbc2145c0ca71347d95f", "score": "0.64334214", "text": "public void deleteTag(ActionEvent e) {\n\t\t\n\t\tAlert a = new Alert(AlertType.CONFIRMATION);\n\t\ta.setHeaderText(\"Are you sure you want to delete this tag?\");\n\t\tOptional<ButtonType> press = a.showAndWait();\n\t\tpress.ifPresent(b->{\n\t\t\tif(b == ButtonType.OK) {\n\t\t\t\tTag t = tagsList.getSelectionModel().getSelectedItem();\n\t\t\t\tphoto.deleteTag(t);\n\t\t\t\ttry {\n\t\t\t\t\tUserList.getUserList().writeApp();\n\t\t\t\t} catch (IOException e1) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t\tstart(me,album,photo);\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\t\n\t}", "title": "" }, { "docid": "808a1c0ec0491d0fb3a09f54285ecb09", "score": "0.6431986", "text": "@Override\r\n public void onClick(View v) {\n \tonDelete(shelfBookMode);\r\n ShelfBookManageDialog.this.dismiss();\r\n }", "title": "" }, { "docid": "866a570873e9084798339e5afc318a8f", "score": "0.64001393", "text": "@Override\n\t\t\t\t\t\t\t\tpublic void onClick(DialogInterface dialog,\n\t\t\t\t\t\t\t\t\t\tint which) {\n\n\t\t\t\t\t\t\t\t\tmyapp.deletereviewrecord();\n\n\t\t\t\t\t\t\t\t}", "title": "" }, { "docid": "530b1af6c1095f3493cd381d02811a57", "score": "0.6383595", "text": "@Override\n\t public void onClick(View view) {\n\t \t\n\t mCallBack.onDeleteItem(position);\n\t \n\t }", "title": "" }, { "docid": "39036f215da9b9c43696ddfd832ee07e", "score": "0.6377548", "text": "void deleteEvent(Id id);", "title": "" }, { "docid": "d6814cff6ab8a78267ea978e1f80a74e", "score": "0.63768315", "text": "public void mouseClicked(MouseEvent e) {\n deleteTeacher();\n }", "title": "" }, { "docid": "58ee460741d38019c7ff76ca48e83292", "score": "0.6370034", "text": "void deleteEvent( EventData event) throws UserException, Exception;", "title": "" }, { "docid": "f2488b81279c1385c13d706aed341793", "score": "0.6367887", "text": "@Override\n\t\t\tpublic void onClick(ClickEvent event) {\n\t\t\t\tUPrompt.confirm(type, \"您确定删除/取消删除该条记录?\", new PromptCallback() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void execute(Boolean value) {\n\t\t\t\t\t\tif (value != null && value) {\n\t\t\t\t\t\t\tif (\"0\".equals(delNo)) {\n\t\t\t\t\t\t\t\tdeleteCmd1.setCommandService(\"com.aif.rpt.biz.aml.processing.server.AMLSecondMakeupservice\", \"deleteAMLList\");\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tdeleteCmd1.setCommandService(\"com.aif.rpt.biz.aml.processing.server.AMLSecondMakeupservice\", \"undeleteAMLList\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tdsResult1.setCommand(queryCmd);\n\t\t\t\t\t\t\tdeleteCmd1.execute(new CommandCallback() {\n\t\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\t\tpublic void onCallback(boolean status, Callback callback, String commandItemName) {\n\t\t\t\t\t\t\t\t\tif (!status) {\n\t\t\t\t\t\t\t\t\t\tif (\"0\".equals(delNo)) {\n\t\t\t\t\t\t\t\t\t\t\tUPrompt.alert(type, \"删除AML第二次补录信息失败,错误信息:\" + callback.getErrorMessage());\n\t\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\t\tUPrompt.alert(type, \"取消删除AML第二次补录信息失败,错误信息:\" + callback.getErrorMessage());\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\tif (\"0\".equals(delNo)) {\n\t\t\t\t\t\t\t\t\t\t\tUPrompt.alert(type, \"删除AML第二次补录信息成功!\");\n\t\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\t\tUPrompt.alert(type, \"取消删除AML第二次补录信息成功!\");\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\tdeleteWindow1.hide();\n\t\t\t\t\t\t\t\t\t\tgetunlock();\n\t\t\t\t\t\t\t\t\t\tshowList();\n\t\t\t\t\t\t\t\t\t\tif (\"0\".equals(delNo)) {\n\t\t\t\t\t\t\t\t\t\t\tdsResult1.logSys(\"del\");\n\t\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\t\tdsResult1.logSys(\"mod\");\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t});\n\n\t\t\t}", "title": "" }, { "docid": "f90b3326430f787e3f5fda5c2c348693", "score": "0.633359", "text": "@FXML private void handleDelOrder(ActionEvent event) {\n \tif(orderTable.getSelectionModel().getSelectedItem() == null){\n \t\tAlert alert = new Alert(AlertType.ERROR);\n \talert.setTitle(\"Notification\");\n \talert.setHeaderText(\"Select Order!\");\n \tStage stage = (Stage) alert.getDialogPane().getScene().getWindow();\n \tstage.getIcons().add(new Image(\"file:src/gui/Cinderella_Icon.png\"));\n \talert.show();\n \treturn;\n \t}\n \tif(orderTable.getSelectionModel().getSelectedItem().stateProperty().get().equals(State.PLANNED.toString())){\n \tif(ConfirmBox.display(\"Confirmation Dialog\", \"Do you really want to delete: order \" +orderTable.getSelectionModel().getSelectedItem().ordernoProperty().get().toString()) == true){\n \t\tmainMenu.deleteOrder(orderTable.getSelectionModel().getSelectedItem());\n \t}\n \t} else {\n \t\tAlert alert = new Alert(AlertType.ERROR);\n \talert.setTitle(\"Notification\");\n \talert.setHeaderText(\"Cannot delete order\");\n \tStage stage = (Stage) alert.getDialogPane().getScene().getWindow();\n \tstage.getIcons().add(new Image(\"file:src/gui/Cinderella_Icon.png\"));\n \talert.show();\n \treturn;\n \t}\n }", "title": "" }, { "docid": "73deb8cb029ac5c4242514ce1e175994", "score": "0.63154966", "text": "@FXML private void OnActionRemoveAssociatedPart(ActionEvent event) {\n Alert alert = new Alert(Alert.AlertType.CONFIRMATION, \"Are you sure you want to delete item?\");\n Alert error = new Alert(Alert.AlertType.ERROR);\n alert.setTitle(\"Confirm\");\n Part selectedItem = associatedPartsTable.getSelectionModel().getSelectedItem();\n if(selectedItem != null){\n\n Optional<ButtonType> result = alert.showAndWait();\n if(((Optional<?>)result).isPresent() && result.get() == ButtonType.OK){\n newItem.deleteAssociatedPart(selectedItem);\n allPartsList.add(selectedItem);\n }\n }\n else{\n error.setContentText(\"Nothing Selected\");\n error.show();\n }\n }", "title": "" }, { "docid": "301340858845ab964f2ae8cb40ed5337", "score": "0.63153684", "text": "@Override\n\t\t\t\t\tpublic void onClick(ClickEvent clickEvent) {\n\t\t\t\t\t\tfor (int i=0; i<itemsToRemove.size(); i++ ) {\n\t\t\t\t\t\t\tDeleteService request;\n\t\t\t\t\t\t\tif(i == itemsToRemove.size()-1){\n\t\t\t\t\t\t\t\trequest = new DeleteService(JsonCallbackEvents.disableButtonEvents(deleteButton, events));\n\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\trequest = new DeleteService(JsonCallbackEvents.disableButtonEvents(deleteButton));\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\trequest.deleteService(itemsToRemove.get(i).getId());\n\t\t\t\t\t\t}\n\t\t\t\t\t}", "title": "" }, { "docid": "70d80c2f9f82bb5125f08df48fd370f1", "score": "0.63118917", "text": "@FXML\n private void deleteBookSelection(ActionEvent event) {\n Book selectedBook = tableView.getSelectionModel().getSelectedItem();\n if (selectedBook == null) {\n FxAlerts.showError(\"No book selected\", \"Please select a book to delete.\");\n return;\n }\n\n if (DatabaseHandler.getHandlerObject().isCheckedOut(selectedBook)) {\n FxAlerts.showError(\"Deletion Failed\", \"This book is checked out at the moment and can't be erased.\");\n return;\n }\n\n Alert confirmation = new Alert(Alert.AlertType.CONFIRMATION);\n confirmation.setTitle(\"Book Deletion\");\n confirmation.setContentText(\"Delete \" + selectedBook.getTitle() + \" ?\");\n Optional<ButtonType> result = confirmation.showAndWait();\n if (result.get() == ButtonType.OK) {\n boolean succes = DatabaseHandler.getHandlerObject().removeBook(selectedBook);\n if (succes) {\n FxAlerts.showInformation(\"Book Deletion\", selectedBook.getTitle() + \"was erased from the library.\");\n bookList.remove(selectedBook);\n } else {\n FxAlerts.showInformation(\"Deletion Failed\", selectedBook.getTitle() + \"was unable to erase from the library.\");\n }\n } else {\n FxAlerts.showInformation(\"Delete Cancellation\", \"Deletion is cancelled.\");\n }\n }", "title": "" }, { "docid": "7cd3c3c4a257fef89c052980529425f8", "score": "0.63101655", "text": "@FXML\n private void handleDeleteHorse() {\n int selectedIndex = horseTable.getSelectionModel().getSelectedIndex();\n if (selectedIndex >= 0) {\n selectedIndex = filteredHorseList.getSourceIndex(selectedIndex);\n Alert alert = new Alert(Alert.AlertType.CONFIRMATION);\n alert.setTitle(\"Sicher?\");\n alert.setHeaderText(null);\n alert.setContentText(\"Willst du das wirklich löschen?\");\n Optional<ButtonType> result = alert.showAndWait();\n if (result.isPresent() && result.get() == ButtonType.OK) {\n horseList.remove(selectedIndex);\n }\n } else {\n showError(\"Du musst erst etwas auswählen, bevor du es löschen kannst!\");\n }\n }", "title": "" }, { "docid": "d1332db995e31830aba0db0c95ef4ab2", "score": "0.6295699", "text": "public void actionPerformed(ActionEvent e) {\n try {\n if (e.getSource() instanceof JMenuItem) {\n JMenuItem item = (JMenuItem) e.getSource();\n String commandName = item.getText();\n\n if (commandName.equals(NbBundle.getMessage(\n EditorMainPanel.class, \"MSG_menu_Delete\"))) {\n }\n }\n } catch (Exception ev) {\n ev.printStackTrace();\n }\n }", "title": "" }, { "docid": "56357702cacf7d4d103373c65046fe2d", "score": "0.6288814", "text": "public void actionPerformed( ActionEvent event )\n {\n DeleteAccountJButtonActionPerformed( event );\n }", "title": "" }, { "docid": "a58fd684d9be32ce5af583cddc967ff6", "score": "0.6284722", "text": "@Override\n public void onClick(DialogInterface dialog, int which) {\n switch (which){\n case DialogInterface.BUTTON_POSITIVE:\n db.uniDao().deleteUni(unet.get(position).getUid());\n updateUI();\n break;\n\n case DialogInterface.BUTTON_NEGATIVE:\n break;\n }\n }", "title": "" }, { "docid": "9b7845a56dd2d141e698b597a936625f", "score": "0.6283969", "text": "@Override\n\tpublic void onRemoveOptionSelected(int postition)\n\t{\n\t\t\n\t}", "title": "" }, { "docid": "1a37eeb009f720b088655097271b223c", "score": "0.6273189", "text": "@FXML\n abstract public void onTileDeletePressed(ActionEvent event);", "title": "" }, { "docid": "e2f52269a30962f77c7f4513d8993b1a", "score": "0.62711257", "text": "@FXML\n void btnDeleteClicked(ActionEvent event) {\n }", "title": "" }, { "docid": "d7a9623c4f51563ea49e73b0a6571801", "score": "0.626923", "text": "public void handleDeleteBtn() throws Exception\n {\n int id = bikeTable.getSelectionModel().getSelectedIndex();\n System.out.println(\"ID\"+ id);\n int actualBikeID = Main.shop.getBike(id).getBikeID();\n if(Main.shop.deleteBike(actualBikeID)){\n txtFeedBack.setText(\"Bike Deleted\");\n }\n else{\n txtFeedBack.setText(\"Error: Bike ID not found\");\n }\n System.out.println(\"ID\"+ id);\n\n bikeTable.getItems().remove(id);\n }", "title": "" }, { "docid": "e0f8f1b04aa141b554bd240f2bbeeaae", "score": "0.62438345", "text": "@Override\n public void onClick(DialogInterface dialog, int which) {\n delete(selectedChecklistGroup);\n }", "title": "" }, { "docid": "c5163905e8f99442a76f4c52575fe768", "score": "0.6240849", "text": "public void onClick(DialogInterface dialog,int id) {\n delete();\n\n }", "title": "" }, { "docid": "8125c08efa353cd51cefca8e4c0347ca", "score": "0.6239284", "text": "@FXML\n\tvoid deleteButtonClicked(ActionEvent event) {\n\t\tupdater.guiChange(deleteButton, Updater.DELETE_ACCOUNT);\n\t}", "title": "" }, { "docid": "801f0c54e26266d2c5cb1f1580213438", "score": "0.62330043", "text": "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\n\t\t\t\tseleteType();\n\t\t\t}", "title": "" }, { "docid": "f0d03330d6a390c4f46617d4e09df2cd", "score": "0.62314177", "text": "public void actionPerformed(ActionEvent evt) {\r\n new DiagramActions.DeleteElementsAction(canvas.getDiagram(),\r\n Arrays.asList(new DiagramElement[] { element })).execute();\r\n }", "title": "" }, { "docid": "9ba4292f769a6c7d294006ad6d2b3e4b", "score": "0.62243164", "text": "@Override\n public void onClick(View v) {\n deleteListItem(ids[position]);\n }", "title": "" }, { "docid": "995c05501a71111b2b4010d37b8b545b", "score": "0.62230843", "text": "@Override\n\t\t\t\tpublic void onClick(View paramView) {\n\t\t\t\t\tConfirmationDialog confDlg= new ConfirmationDialog(\"Delete Confirmation\", \"Are you sure,you want to delete this event?\", \"Yes\", \"No\",eventIdList.get(commonIndex));\n\t\t\t\t\tconfDlg.setCancelable(true);\n\t\t\t\t\tconfDlg.show(getSupportFragmentManager(), \"\");\n\t\t\t\t}", "title": "" }, { "docid": "40a06f4c5eec1c648c46385d9f672ccc", "score": "0.6216532", "text": "@FXML\n private void deleteCat(ActionEvent event\n )\n {\n {\n Alert alert = new Alert(Alert.AlertType.CONFIRMATION);\n alert.setTitle(\"Confirmation Dialog\");\n alert.setHeaderText(\"Look, a Confirmation Dialog\");\n alert.setContentText(\"Are you ok with this?\");\n\n Optional<ButtonType> result = alert.showAndWait();\n if (result.get() == ButtonType.OK)\n {\n ObservableList<Category> selectedCategory = catList.getSelectionModel().getSelectedItems();\n\n movieModel.removeCat(selectedCategory);\n } else\n {\n\n }\n }\n }", "title": "" }, { "docid": "743774e661aeffda7d13fdc0c2280f5b", "score": "0.62095135", "text": "@Override\n\tpublic void onDelClick(AppCell cell) {\n\t\t\n\t}", "title": "" }, { "docid": "241adfc19fe2e85333d9a32534352931", "score": "0.6209323", "text": "@FXML\n\tprivate void handleDeletePerson() {\n\t\tint selectedIndex = personTable.getSelectionModel().getSelectedIndex();\n\t\tpersonTable.getItems().remove(selectedIndex);\n\t}", "title": "" }, { "docid": "b78fa0cb83b5b755ce7ef80f5c1b4015", "score": "0.62061745", "text": "public void actionPerformed(ActionEvent e) {\n\t\tif (selected instanceof PerformanceTreeNode) {\n\t\t\tif (selected instanceof ResultNode) {\n\t\t\t\tString msg = QueryManager.addColouring(\"Deletion of the topmost node in the tree is not permitted.\");\n\t\t\t\tQueryManager.writeToInfoBox(msg);\n\t\t\t}\n\t\t\telse if (selected instanceof MacroNode && MacroManager.getEditor() != null) {\n\t\t\t\tString msg = QueryManager.addColouring(\"Deletion of the topmost macro node in the tree is not permitted.\");\n\t\t\t\tMacroManager.getEditor().writeToInfoBox(msg);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tif(!sequentialNodeCase()) {\n\t\t\t\t\t// just delete the node, not the associated arc\n\t\t\t\t\tselected.delete();\n\t\t\t\t}\n\t\t\t}\n\t\t}\t\n\t\telse {\n\t\t\tselected.delete();\n\t\t}\n\t}", "title": "" }, { "docid": "643b3f006c6c20ad2285c61ed4f51c9a", "score": "0.6196876", "text": "@Override\n public void delete(Evento t) {\n d.delete(t);\n }", "title": "" }, { "docid": "e36d46ff4a3217aaba8546f965cd30bf", "score": "0.619304", "text": "@FXML\r\n\tvoid deleteFavoriteRecipe(Event event) {\r\n\r\n\t\tRecipeFacade recipe_facade = RecipeFacade.getInstance();\r\n\t\t// removes the recipe from the favorites list of the user\r\n\t\tfavorites = facade.removeFavoriteRecipe(User.getSession().getId(), idRecipe);\r\n\t\t// set the list changed to be printed\r\n\t\tfavoritesTab.setItems(getRecipes());\r\n\t\tfavoritesTab.refresh();\r\n\t\tRecipe r = recipe_facade.findRecipe(idRecipe);\r\n\t\t// displays a confirmation\r\n\t\tdisplayDeleteConfirmation(r);\r\n\t}", "title": "" }, { "docid": "dd67ef718b3e7f44e4bb886a9fb1ea12", "score": "0.61919737", "text": "@Override\n\t\t\t\t\t\t\t\t\tpublic void onClick(DialogInterface dialog,\n\t\t\t\t\t\t\t\t\t\t\tint which) {\n\t\t\t\t\t\t\t\t\t\tdeleteId = arg2;\n\t\t\t\t\t\t\t\t\t\t(new MyAsynctask()).execute(deleteUrl+\"?id=\"+list.get(arg2).getId());\n\t\t\t\t\t\t\t\t\t}", "title": "" }, { "docid": "069375f2538df809ea3945baaa6b9d03", "score": "0.6188539", "text": "public T caseDeleteEvent(DeleteEvent object)\n {\n return null;\n }", "title": "" }, { "docid": "b95199de5ca0c1d8e566c81f29328ef6", "score": "0.61847264", "text": "public void handleDeleteOrder() {\n if (checkEmptyStoredOrders()) {\n return;\n }\n orders.remove(orders.findOrder(Integer.parseInt(\n orderNumber.getSelectionModel().getSelectedItem())));\n int selectedIndex = orderNumber.getSelectionModel().getSelectedIndex();\n orderNumber.getItems().remove(selectedIndex);\n if (selectedIndex > 0) {\n orderNumber.getSelectionModel().select(selectedIndex - 1);\n } else {\n orderNumber.getSelectionModel().select(0);\n }\n clearOrderDetails();\n if (checkEmptyStoredOrders()) {\n return;\n }\n handleSelectedOrder();\n }", "title": "" }, { "docid": "d9e2e47d35ba465479657d85bc35ba53", "score": "0.6183477", "text": "@Override\n\t\t\tpublic void onClick(ClickEvent event) {\n\t\t\t\tdeleteWindow.hide();\n\t\t\t\tgetunlock();\n\t\t\t\tshowList();\n\t\t\t}", "title": "" }, { "docid": "f9b66966d012fc3c5377db21c20b4628", "score": "0.6183453", "text": "public void contextMenuDelete()\n {\n DialogWindowHelper.getInstance().showConfirm(getView().getContext(),\"Are you sure?\",null,this);\n }", "title": "" }, { "docid": "d9b167894ff7ce1c844d4b1357fa9e35", "score": "0.61800146", "text": "@Override\n public void onClick(DialogInterface dialog, int which) {\n switch (which){\n case DialogInterface.BUTTON_POSITIVE:\n DatabaseTasks db = new DatabaseTasks(getApplicationContext());\n db.deleteTaskWithId(idToDelete);\n populateTaskList();\n populateListView();\n break;\n\n case DialogInterface.BUTTON_NEGATIVE:\n dialog.cancel();\n break;\n }\n }", "title": "" }, { "docid": "2732c30f21564d36e46d51de53b8a779", "score": "0.6173994", "text": "public void deleteItem(AjaxBehaviorEvent event) throws NamingException {\n Long itemToDelete = (Long) event.getComponent().getAttributes().get(\"itemToDelete\");\n inventoryService.removeInventory(itemToDelete);\n getDetailsProduct();\n }", "title": "" }, { "docid": "893581666dd93e97d8c5e3d453b5d544", "score": "0.6173032", "text": "private void doDelete(Event event) throws InterruptedException {\r\n // logger.debug(event.toString());\r\n\r\n // check first, if the tabs are created, if not than create them\r\n if (getBranchDetailCtrl().getBinder() == null) {\r\n Events.sendEvent(new Event(\"onSelect\", this.tabBranchDetail, null));\r\n }\r\n\r\n // check first, if the tabs are created\r\n if (getBranchDetailCtrl().getBinder() == null) {\r\n return;\r\n }\r\n\r\n final Branche aBranche = getSelectedBranche();\r\n if (aBranche != null) {\r\n\r\n // Show a confirm box\r\n final String msg = Labels.getLabel(\"message.Question.Are_you_sure_to_delete_this_record\") + \"\\n\\n --> \" + aBranche.getBraBezeichnung();\r\n final String title = Labels.getLabel(\"message.Deleting.Record\");\r\n\r\n MultiLineMessageBox.doSetTemplate();\r\n if (MultiLineMessageBox.show(msg, title, Messagebox.YES | Messagebox.NO, Messagebox.QUESTION, true, new EventListener() {\r\n @Override\r\n public void onEvent(Event evt) {\r\n switch (((Integer) evt.getData()).intValue()) {\r\n case MultiLineMessageBox.YES:\r\n try {\r\n deleteBean();\r\n } catch (InterruptedException e) {\r\n // TODO Auto-generated catch block\r\n e.printStackTrace();\r\n }\r\n break; //\r\n case MultiLineMessageBox.NO:\r\n break; //\r\n }\r\n }\r\n\r\n // delete from database\r\n private void deleteBean() throws InterruptedException {\r\n try {\r\n getBrancheService().delete(aBranche);\r\n } catch (DataAccessException e) {\r\n ZksampleMessageUtils.showErrorMessage(e.getMostSpecificCause().toString());\r\n }\r\n\r\n }\r\n\r\n }\r\n\r\n ) == MultiLineMessageBox.YES) {\r\n }\r\n\r\n }\r\n\r\n this.btnCtrlBranch.setInitEdit();\r\n\r\n setSelectedBranche(null);\r\n // refresh the list\r\n getBranchListCtrl().doFillListbox();\r\n\r\n // refresh all dataBinder related controllers\r\n getBranchDetailCtrl().getBinder().loadAll();\r\n }", "title": "" }, { "docid": "847c540928608d5f9269b1862b919988", "score": "0.61715746", "text": "@Override\n\tpublic void onRemoveClickListener(View v, T data) {\n\t\t\n\t}", "title": "" }, { "docid": "c38b6cbba57836af4f14073307680d0b", "score": "0.6168448", "text": "@Override\r\n\tpublic void handle(ActionEvent arg0) {\n\t\taStage.setScene(TaskTracker.getScenes().get(SceneName.DeleteMenu));\r\n\t\taStage.show();\r\n\t}", "title": "" }, { "docid": "a5134ecdf95cecfe750698508da6d4f0", "score": "0.61644995", "text": "DeleteEvent createDeleteEvent();", "title": "" }, { "docid": "97fb745d7ec8de5a77f0ea9dc6135e86", "score": "0.61599994", "text": "@FXML\n abstract public void onMapScriptDeletePressed(ActionEvent event);", "title": "" }, { "docid": "7415ab5807c7b1ee375926748a130e9d", "score": "0.61575896", "text": "@Override\r\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tnew AlertDialog.Builder(mContext)\r\n\t\t\t\t\t\t.setTitle(\"删除商品\")\r\n\t\t\t\t\t\t.setMessage(\"确定要删除吗?\")\r\n\t\t\t\t\t\t.setPositiveButton(\"确定\",\r\n\t\t\t\t\t\t\t\tnew DialogInterface.OnClickListener() {\r\n\r\n\t\t\t\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\t\t\t\tpublic void onClick(DialogInterface arg0,\r\n\t\t\t\t\t\t\t\t\t\t\tint arg1) {\r\n\t\t\t\t\t\t\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\t\t\t\t\t\t\tmOnItemClickListener.onDelete(\r\n\t\t\t\t\t\t\t\t\t\t\t\tdataList.get(position),\r\n\t\t\t\t\t\t\t\t\t\t\t\tposition);\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.setNegativeButton(\"取消\",\r\n\t\t\t\t\t\t\t\tnew DialogInterface.OnClickListener() {\r\n\r\n\t\t\t\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\t\t\t\tpublic void onClick(DialogInterface arg0,\r\n\t\t\t\t\t\t\t\t\t\t\tint arg1) {\r\n\t\t\t\t\t\t\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\t\t\t\t\t\t\targ0.dismiss();\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t}).show();\r\n\t\t\t}", "title": "" }, { "docid": "d8e4b9fdb1f337ddc9f9c4286d795e63", "score": "0.6156815", "text": "public void deleteEvent(Context ctx) throws SQLException {\n eventRelationsRepository.removeEvent(ctx.pathParam(\"identifier\", Integer.class).get());\n }", "title": "" }, { "docid": "c66dfa1dc779c194b0a34c8238ec3ee0", "score": "0.61476016", "text": "@Override\r\n\t\t\t\t\tpublic void onEvent(ClickEvent event) throws Exception {\n\r\n\t\t\t\t\t\tif (Messagebox.Button.OK.equals(event.getButton())) {\r\n\t\t\t\t\t\t\tWfBusinessService wfbs = new EmHouseChangeGjjImpl();\r\n\t\t\t\t\t\t\tWfOperateService wfs = new WfOperateImpl(wfbs);\r\n\t\t\t\t\t\t\tObject[] obj = { \"删除交单数据\", em };\r\n\t\t\t\t\t\t\tString[] str = null;\r\n\t\t\t\t\t\t\tif (em.getEhcg_tapr_id() != null) {\r\n\t\t\t\t\t\t\t\tstr = wfs.StopTask(obj, em.getEhcg_tapr_id(),\r\n\t\t\t\t\t\t\t\t\t\tUserInfo.getUsername(), \"\");\r\n\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\tInteger i = bll.delGjj(em.getEhcg_id());\r\n\t\t\t\t\t\t\t\tstr = new String[5];\r\n\t\t\t\t\t\t\t\tstr[0] = i > 0 ? \"1\" : \"0\";\r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\tif (str[0].equals(\"1\")) {\r\n\t\t\t\t\t\t\t\tMessagebox.show(\"操作成功.\", \"操作提示\", Messagebox.OK,\r\n\t\t\t\t\t\t\t\t\t\tMessagebox.INFORMATION);\r\n\t\t\t\t\t\t\t\twinC.detach();\r\n\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\tMessagebox.show(\"操作失败.\", \"操作提示\", Messagebox.OK,\r\n\t\t\t\t\t\t\t\t\t\tMessagebox.ERROR);\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}", "title": "" }, { "docid": "0b97975b917d63e9a7e036957f6e7c92", "score": "0.61452544", "text": "public void deleteSensor(ActionEvent actionEvent) {\r\n if (selectedItem != null && sensorSelected != null) {\r\n ((CompositeSensor) selectedItem.getParent().getValue()).remove(sensorSelected);\r\n selectedItem.getParent().getChildren().remove(selectedItem);\r\n if (rootItem.getChildren().size() != 0) {\r\n menuTreeView.getSelectionModel().selectFirst();\r\n } else {\r\n sensorSelected = null;\r\n setDisplayVisible(false);\r\n }\r\n }\r\n else{\r\n AlertBox.displayWarningAlertBox(\"Veuillez sélectionner un Capteur à supprimer !\");\r\n }\r\n }", "title": "" }, { "docid": "8c69801eb32dd47e8f7a8a1c53d61919", "score": "0.61430323", "text": "@FXML\n void deleteBook(ActionEvent event) {\n\t\tBook book = listView.getSelectionModel().getSelectedItem();\n\t\tif(book.getId() != 0) {\n\t\tif(SingletonSwitcher.getInstance().getBTGate().deleteMethod(listView.getSelectionModel().getSelectedItem())) {\n\t\tlistView.getItems().remove(book);\n\t\tlogger.info(\"Book ID: \" + book.getId() + \" has been deleted!\");\n\t\t}else {\n\t\t\tAlert alert = new Alert(Alert.AlertType.ERROR, \"Book still has existing authors, please delete its author entries to delete this book!\", ButtonType.CLOSE);\n \t\talert.showAndWait();\n\t\t}\n\t\t}else {\n\t\t\tAlert alert = new Alert(Alert.AlertType.ERROR, \"No book is selected!\", ButtonType.CLOSE);\n \t\talert.showAndWait();\n\t\t}\n\t}", "title": "" }, { "docid": "3c3686e8e54e12e56e1df3cdba9ebbc3", "score": "0.61378515", "text": "@Override\n public void actionPerformed(ActionEvent e) {\n\n JOptionPane.showMessageDialog(null, \"User Deleted!\");\n }", "title": "" }, { "docid": "eda38a17aad5d87581116bb6f33a7668", "score": "0.6130243", "text": "void handleRemoveButtonEvent() {\n IAUTMainPO autMain = null;\n String[] selection = m_autList.getSelection();\n if (!StringConstants.EMPTY.equals(selection[0])) {\n for (IAUTMainPO aut : getProject().getAutMainList()) {\n String autMainName = aut.getName();\n if (selection[0].equals(autMainName)) {\n autMain = aut;\n break;\n }\n }\n if (autMain != null) {\n if (!checkTestSuiteAUT(autMain)) {\n return;\n }\n closeEquivalentOMEditor(autMain);\n getProject().removeAUTMain(autMain);\n m_autList.remove(autMain.getName());\n if (m_autList.getItemCount() > 0) {\n m_autList.setSelection(0);\n }\n handleAutListEvent();\n }\n }\n }", "title": "" }, { "docid": "e51151ff45269b20d628c506e4e77d35", "score": "0.61181456", "text": "private void bdeleteButtonListener() {\n\t\tbookmarkInterface.getButton2().addActionListener(new ActionListener() {\n\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tif (\"Delete\".equals(e.getActionCommand())) {\n\t\t\t\t\tint index = bookmarkInterface.getjList().getSelectedIndex();\n\t\t\t\t\ttry {\n\t\t\t\t\t\tbookmarks.removeItem();\n\t\t\t\t\t\tbookmarkInterface.removeIndexFromList(index);\n\t\t\t\t\t} catch (IOException e1) {\n\n\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t}\n\n\t\t\t\t} else {\n\t\t\t\t\tthrow new IllegalArgumentException(\"ERROR\");\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\n\t}", "title": "" }, { "docid": "bcecdddc1b8af5773c3bfe49588e3a39", "score": "0.6115273", "text": "@FXML\n abstract public void onMapDeletePressed(ActionEvent event);", "title": "" }, { "docid": "5f19deb9073ceb9c3216a04551e7b625", "score": "0.6112973", "text": "@Override\r\n\t\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\tLog.e(\"===\", \"delete====\");\r\n\t\t\t\t\t\tLog.e(\"===\", \"index===\" + index);\r\n\t\t\t\t\t\tarrayList.remove(index);\r\n\t\t\t\t\t\taddDelet(num -= 30);\r\n\t\t\t\t\t\tinitList();\r\n\t\t\t\t\t}", "title": "" }, { "docid": "80106e7017b8e610047b8dfdd766fd3d", "score": "0.61112803", "text": "@FXML\n abstract public void onImageDeletePressed(ActionEvent event);", "title": "" }, { "docid": "ee0c53207887b3701be24fc3735cc605", "score": "0.6103355", "text": "@Override\n\t\t\tpublic void onClick(ClickEvent event) {\n\t\t\t\tUPrompt.confirm(type, \"您确定删除/取消删除该条记录?\", new PromptCallback() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void execute(Boolean value) {\n\t\t\t\t\t\tif (value != null && value) {\n\t\t\t\t\t\t\tif (\"0\".equals(delNo)) {\n\t\t\t\t\t\t\t\tif (\"20\".equals(dsResult.getCurrentValue(\"RPT_STATUS\"))) {\n\t\t\t\t\t\t\t\t\t// 工作日期查询\n\t\t\t\t\t\t\t\t\tqueryWorkDateCmd.setCommandService(\"com.aif.rpt.common.server.BizFuncService\", \"getPreWorkDate\");\n\t\t\t\t\t\t\t\t\tqueryWorkDateCmd.execute(new CommandCallback() {\n\t\t\t\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\t\t\t\tpublic void onCallback(boolean status, Callback callback, String commandItemName) {\n\t\t\t\t\t\t\t\t\t\t\t// 进入界面开始查询\n\t\t\t\t\t\t\t\t\t\t\tString workDate = dsWorkDate.getCurrentValue(\"work_date\");\n\t\t\t\t\t\t\t\t\t\t\tdsResult.setCurrentValue(\"WORK_DATE\", DateUtils.parseDate(workDate));\n\t\t\t\t\t\t\t\t\t\t\tsaveCmd.setCommandService(\"com.aif.rpt.biz.aml.processing.server.AMLSecondMakeupservice\", \"addAMLSecond03\");\n\t\t\t\t\t\t\t\t\t\t\tsaveCmd.execute(new CommandCallback() {\n\t\t\t\t\t\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\t\t\t\t\t\tpublic void onCallback(boolean status, Callback callback, String commandItemName) {\n\n\t\t\t\t\t\t\t\t\t\t\t\t\tif (!status) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tUPrompt.alert(type, callback.getErrorMessage());\n\t\t\t\t\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tUPrompt.alert(type, callback.getSuccessMessage());\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tdeleteWindow.hide();\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tgetunlock();\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tshowList();\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tdeleteCmd.setCommandService(\"com.aif.rpt.biz.aml.processing.server.AMLSecondMakeupservice\", \"deleteAMLList\");\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tdeleteCmd.setCommandService(\"com.aif.rpt.biz.aml.processing.server.AMLSecondMakeupservice\", \"undeleteAMLList\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tdeleteCmd.execute(new CommandCallback() {\n\t\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\t\tpublic void onCallback(boolean status, Callback callback, String commandItemName) {\n\t\t\t\t\t\t\t\t\tif (!status) {\n\t\t\t\t\t\t\t\t\t\tif (\"0\".equals(delNo)) {\n\t\t\t\t\t\t\t\t\t\t\tUPrompt.alert(type, \"删除AML第二次补录信息失败,错误信息:\" + callback.getErrorMessage());\n\t\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\t\tUPrompt.alert(type, \"取消删除AML第二次补录信息失败,错误信息:\" + callback.getErrorMessage());\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\tdsResult.setCommand(queryCmd);\n\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\tif (\"0\".equals(delNo)) {\n\t\t\t\t\t\t\t\t\t\t\tUPrompt.alert(type, \"删除AML第二次补录信息成功!\");\n\t\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\t\tUPrompt.alert(type, \"取消删除AML第二次补录信息成功!\");\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\tdeleteWindow.hide();\n\t\t\t\t\t\t\t\t\t\tgetunlock();\n\t\t\t\t\t\t\t\t\t\tshowList();\n\t\t\t\t\t\t\t\t\t\tif (\"0\".equals(delNo)) {\n\t\t\t\t\t\t\t\t\t\t\tdsResult.logSys(\"del\");\n\t\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\t\tdsResult.logSys(\"mod\");\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t});\n\t\t\t}", "title": "" }, { "docid": "70a13827118eacefa688d6c69cb2e969", "score": "0.60956615", "text": "public void actionPerformed(ActionEvent e) {\n int index = list.getSelectedIndex();\n removeBuddy(\n (String) listModel.get(index), \n true\n );\n\n int size = listModel.getSize();\n\n if (size == 0) { //Nobody's left, disable firing.\n removeButton.setEnabled(false);\n\n } else { //Select an index.\n if (index == listModel.getSize()) {\n //removed item in last position\n index--;\n }\n\n list.setSelectedIndex(index);\n list.ensureIndexIsVisible(index);\n }\n }", "title": "" }, { "docid": "abd03a3f1c0dd30cc2774865c4652c41", "score": "0.60949564", "text": "@Override\n\tpublic void deleteSelectedEntity() {\n\t\t\n\t}", "title": "" }, { "docid": "0544a1a492dd8fd2a7cf6f5596daab46", "score": "0.60903174", "text": "public void remDeleteEvent(){\n rem(MvwDMSAG.__deleteEvent);\n }", "title": "" }, { "docid": "8516219ffb4e2d322309e6ac1e213090", "score": "0.60902506", "text": "private void deleteEvent(final Event event, final ViewHolder holder) {\n mDatabaseManager.getUsersAttendingEvent(event.getUid()).addListenerForSingleValueEvent(new ValueEventListener() {\n @Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n for (DataSnapshot snapshot : dataSnapshot.getChildren()) {\n String attendeeId = snapshot.getKey();\n mDatabaseManager.deleteEventAttending(event.getUid(), attendeeId);\n }\n // Stop hosting the event\n mDatabaseManager.deleteEventHosting(event.getUid()).addOnCompleteListener(new OnCompleteListener<Void>() {\n @Override\n public void onComplete(@NonNull Task<Void> task) {\n if (task.isSuccessful()) {\n // Delete event in event database\n mDatabaseManager.deleteEvent(event.getUid()).addOnCompleteListener(new OnCompleteListener<Void>() {\n @Override\n public void onComplete(@NonNull Task<Void> task) {\n if (task.isSuccessful()) {\n // Remove event from UI\n removeEvent(holder.getAdapterPosition());\n Toast.makeText(mContext, R.string.delete_event_successful, Toast.LENGTH_SHORT).show();\n mDialog.dismiss();\n Log.i(TAG, mContext.getString(R.string.delete_event_successful));\n } else {\n Toast.makeText(mContext, R.string.delete_event_unsuccessful, Toast.LENGTH_SHORT).show();\n Log.e(TAG, mContext.getString(R.string.delete_event_error));\n }\n }\n });\n } else {\n Toast.makeText(mContext, R.string.delete_event_unsuccessful, Toast.LENGTH_SHORT).show();\n Log.e(TAG, mContext.getString(R.string.delete_hosting_event_error));\n }\n }\n });\n }\n\n @Override\n public void onCancelled(DatabaseError databaseError) {\n Log.e(TAG, databaseError.toString());\n }\n });\n }", "title": "" }, { "docid": "710125dab04ada8ad7d3af01c78ce0a7", "score": "0.6085499", "text": "@Override\n\tpublic void onClick(View v) {\n\t\tfinal View fv=v;\n\t\tUND=new UserNoticeDialogs(\"Schedule Deletion\", R.drawable.question, \"Schedule will be deleted. Are you sure ?\");\n\t\tUND.setButtons(true, true, new String[] {\"Yes\",\"No\"},new DialogInterface.OnClickListener() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\tif(DialogInterface.BUTTON_POSITIVE==which)\n\t\t\t\t{\n\t\t\t\t\tlong id=Long.parseLong(fv.getTag().toString());\n\t\t\t\t\tgetActivity().getContentResolver().delete(Uri.parse(CONTENT_URI + \"/\" + id), null, null);\n\t\t\t\t\tLogicsOfApp.cancelSchedule(id,getActivity());\n\t\t\t\t\tupdateCursor();\n\t\t\t\t} \n\t\t\t}\n\t\t});\n\t\tUND.show(getActivity().getSupportFragmentManager(), null);\n\t\t\n\t}", "title": "" }, { "docid": "bf69072968e8dc1561115e2a823f046a", "score": "0.60813266", "text": "@Override\npublic void deleteMenuItem(String s) {\n\t\n}", "title": "" }, { "docid": "f990d44c7fed14769865a57559bb3ee0", "score": "0.60808736", "text": "@FXML\n void onActionDelete(ActionEvent event) {\n Part delPart = addproductdeleteTableView.getSelectionModel().getSelectedItem();\n Alert alert = new Alert(Alert.AlertType.CONFIRMATION, \"Are you sure you want to delete this part?\");\n Optional<ButtonType> result = alert.showAndWait();\n if (result.isPresent() && result.get() == ButtonType.OK) {\n stage = (Stage) ((Button) event.getSource()).getScene().getWindow();\n stage.show();\n associatedParts.remove(delPart);\n addproductdeleteTableView.setItems(associatedParts);\n }\n }", "title": "" } ]
41b7f5d76efb52fef58265679d88b324
string icon = 5;
[ { "docid": "a6d9660d9845baff53fcbdc91f4fc2d9", "score": "0.60819757", "text": "public java.lang.String getIcon() {\n java.lang.Object ref = icon_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n icon_ = s;\n return s;\n }\n }", "title": "" } ]
[ { "docid": "07d831ca0cbc1c106388a968fd02849c", "score": "0.70638156", "text": "java.lang.String getIcon();", "title": "" }, { "docid": "07d831ca0cbc1c106388a968fd02849c", "score": "0.70632684", "text": "java.lang.String getIcon();", "title": "" }, { "docid": "07d831ca0cbc1c106388a968fd02849c", "score": "0.70632684", "text": "java.lang.String getIcon();", "title": "" }, { "docid": "07d831ca0cbc1c106388a968fd02849c", "score": "0.70632684", "text": "java.lang.String getIcon();", "title": "" }, { "docid": "07d831ca0cbc1c106388a968fd02849c", "score": "0.70632684", "text": "java.lang.String getIcon();", "title": "" }, { "docid": "07d831ca0cbc1c106388a968fd02849c", "score": "0.70632684", "text": "java.lang.String getIcon();", "title": "" }, { "docid": "42cd3217e5a8967ea871a78602c836ca", "score": "0.6869794", "text": "public Icon getIcon(String iconName);", "title": "" }, { "docid": "695bf4ea60ddefd9079809019d8556d8", "score": "0.6868003", "text": "String getIconName();", "title": "" }, { "docid": "8f680e544876cb1cea0bbe89f13b76de", "score": "0.6844148", "text": "ImageIcon getNumero(int num) ;", "title": "" }, { "docid": "b975435727ecbe7c0c136ddcf2a03e92", "score": "0.67421675", "text": "IIcon method_375(String var1);", "title": "" }, { "docid": "c5c85e20aa9ed225a70ad59c0ff7d200", "score": "0.6723457", "text": "private int getImageDrawableName(String icon) {\n switch (icon){\n case \"01d\":\n return R.drawable.ic_01d;\n case \"01n\":\n return R.drawable.ic_01n;\n case \"02d\":\n return R.drawable.ic_02d;\n case \"02n\":\n return R.drawable.ic_02n;\n case \"03d\":\n case \"03n\":\n return R.drawable.ic_03d;\n case \"04d\":\n case \"04n\":\n return R.drawable.ic_04d;\n case \"09d\":\n case \"09n\":\n return R.drawable.ic_09d;\n case \"10d\":\n return R.drawable.ic_10d;\n case \"10n\":\n return R.drawable.ic_10n;\n case \"11d\":\n case \"11n\":\n return R.drawable.ic_11d;\n case \"13d\":\n case \"13n\":\n return R.drawable.ic_13d;\n case \"50d\":\n case \"50n\":\n return R.drawable.ic_50d;\n\n }\n return R.drawable.ic_cloud;\n }", "title": "" }, { "docid": "980a6ec822eb89d9261608fb50b8e3e4", "score": "0.67126286", "text": "public String getIcon();", "title": "" }, { "docid": "4c3d5e453baba817185e609cca9b17c9", "score": "0.6607741", "text": "java.lang.String getIconName();", "title": "" }, { "docid": "95c894fefed9edf15a1c9dbd6610ff1a", "score": "0.6557927", "text": "public String getIconName();", "title": "" }, { "docid": "f2626995ea375ab8a6ed74682aa6c357", "score": "0.65416193", "text": "public String icon()\n {\n return icon;\n }", "title": "" }, { "docid": "9583343c253fc0c8c2908dbcc5dcaef6", "score": "0.65398353", "text": "public abstract String getIcon();", "title": "" }, { "docid": "bf0537f8e06511dbfe35228990b7ef9a", "score": "0.64841396", "text": "public String getIcon() {\r\n return icon;\r\n }", "title": "" }, { "docid": "624ab5b9315040af873fb19c19c18544", "score": "0.64091176", "text": "public String getIcon() {\r\n return icon;\r\n }", "title": "" }, { "docid": "d5d1ff6b87913eeffc619cb8f0aa67e4", "score": "0.63740325", "text": "public String getIcon() {\n return icon;\n }", "title": "" }, { "docid": "d5d1ff6b87913eeffc619cb8f0aa67e4", "score": "0.63740325", "text": "public String getIcon() {\n return icon;\n }", "title": "" }, { "docid": "d5d1ff6b87913eeffc619cb8f0aa67e4", "score": "0.63740325", "text": "public String getIcon() {\n return icon;\n }", "title": "" }, { "docid": "d5d1ff6b87913eeffc619cb8f0aa67e4", "score": "0.63740325", "text": "public String getIcon() {\n return icon;\n }", "title": "" }, { "docid": "d5d1ff6b87913eeffc619cb8f0aa67e4", "score": "0.63740325", "text": "public String getIcon() {\n return icon;\n }", "title": "" }, { "docid": "d5d1ff6b87913eeffc619cb8f0aa67e4", "score": "0.63740325", "text": "public String getIcon() {\n return icon;\n }", "title": "" }, { "docid": "abe69a6ddbbdd95d4629972ae8a0b542", "score": "0.6367263", "text": "public String getIcon() {\n\treturn getString(ATTR_ICON, null) ;\n }", "title": "" }, { "docid": "8d3975984813091048dff6adc04454ab", "score": "0.63291585", "text": "public String getIcon() {\r\n\t\treturn icon;\r\n\t}", "title": "" }, { "docid": "6f76b861af077afb8ca31552555c8895", "score": "0.6288411", "text": "public void setIcon(String icon);", "title": "" }, { "docid": "f1aa4d0adfe4cd73192849a8cc331dae", "score": "0.6240483", "text": "String getIcon() {\n return icons.get(this.done);\n }", "title": "" }, { "docid": "ee283a30250c10b364a939b53d130f9f", "score": "0.62090516", "text": "public void setIconName(String icon);", "title": "" }, { "docid": "0702a4aec6f735d1e762f02299d4a2c8", "score": "0.61803854", "text": "public void setIcon(String icon){\n\t\t\n\t\tthis.icon=icon;\n\t}", "title": "" }, { "docid": "3669dbae500a0ed5cf2964ab26f83a58", "score": "0.6176925", "text": "public String getIcon() {\n return this.icon;\n }", "title": "" }, { "docid": "47b158f5aa1001f597926d69baa06e02", "score": "0.6152399", "text": "public static IconCompat m2305a(Resources resources, String str, int i) {\n if (str == null) {\n throw new IllegalArgumentException(\"Package must not be null.\");\n } else if (i != 0) {\n IconCompat iconCompat = new IconCompat(2);\n iconCompat.f2199e = i;\n if (resources != null) {\n try {\n iconCompat.f2196b = resources.getResourceName(i);\n } catch (Resources.NotFoundException unused) {\n throw new IllegalArgumentException(\"Icon resource cannot be found\");\n }\n } else {\n iconCompat.f2196b = str;\n }\n return iconCompat;\n } else {\n throw new IllegalArgumentException(\"Drawable resource ID must not be 0\");\n }\n }", "title": "" }, { "docid": "f0b70a2f784592468e66536b544d861b", "score": "0.614384", "text": "java.lang.String getGiftIcon();", "title": "" }, { "docid": "5765f16dab1e108ea5a62029e0732677", "score": "0.6138872", "text": "public Icon getIcon();", "title": "" }, { "docid": "145dd8a084e55f8b94adf14592eaea88", "score": "0.6086148", "text": "public java.lang.String getIcon() {\n java.lang.Object ref = icon_;\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 icon_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "title": "" }, { "docid": "145dd8a084e55f8b94adf14592eaea88", "score": "0.6086148", "text": "public java.lang.String getIcon() {\n java.lang.Object ref = icon_;\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 icon_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "title": "" }, { "docid": "4ffc735d9896fdf5a28fa118c8bf2e1d", "score": "0.6079984", "text": "public java.lang.String getIcon() {\n java.lang.Object ref = icon_;\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 icon_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "title": "" }, { "docid": "4ffc735d9896fdf5a28fa118c8bf2e1d", "score": "0.6079731", "text": "public java.lang.String getIcon() {\n java.lang.Object ref = icon_;\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 icon_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "title": "" }, { "docid": "4ffc735d9896fdf5a28fa118c8bf2e1d", "score": "0.6079731", "text": "public java.lang.String getIcon() {\n java.lang.Object ref = icon_;\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 icon_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "title": "" }, { "docid": "4ffc735d9896fdf5a28fa118c8bf2e1d", "score": "0.6079731", "text": "public java.lang.String getIcon() {\n java.lang.Object ref = icon_;\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 icon_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "title": "" }, { "docid": "1a23aa0717bf82b2ff39e3eb6b6e7132", "score": "0.6065248", "text": "public String getIcon() {\n\t\tString value = (String)getStateHelper().eval(PropertyKeys.icon);\n\t\treturn value;\n\t}", "title": "" }, { "docid": "3601740c96009a73018c84d6aed803de", "score": "0.606408", "text": "public String getIcon() {\n\t\treturn this.icon;\n\t}", "title": "" }, { "docid": "ae8275f430886ba8b87f6901959573fb", "score": "0.6051407", "text": "private int stringXImg(String palabra){\r\n\t\t\t\t\r\n\t\tStringImagenes img = StringImagenes.valueOf(palabra);\r\n\t\t\r\n\t\tswitch (img) {\r\n\t\tcase perro:\r\n\t\t\treturn R.drawable.perro;\r\n\t\tcase casa:\r\n\t\t\treturn R.drawable.casa;\r\n\t\tcase gato:\r\n\t\t\treturn R.drawable.gato;\r\n\t\tdefault:\r\n\t\t\treturn 0;\r\n\t\t}\t\t\r\n\t}", "title": "" }, { "docid": "28d295245fd93532ec3150a54e29acc1", "score": "0.60425776", "text": "public String getIconAwesome() {\n\t\tString value = (String)getStateHelper().eval(PropertyKeys.iconAwesome);\n\t\treturn value;\n\t}", "title": "" }, { "docid": "e07fea3a777877b8af21a05b268b2eac", "score": "0.60405046", "text": "public String getIconName(int id) {\n if (id <= 0 || id > this.mStrIcoArr.length) {\n return \"Icon \" + id;\n }\n return this.mStrIcoArr[id - 1];\n }", "title": "" }, { "docid": "f52de5154b66921ba40d5b8a6d76f561", "score": "0.6034613", "text": "public void setIcon(String icon) {\r\n this.icon = icon;\r\n }", "title": "" }, { "docid": "ba22e9bb7c4a8323191f209423d1bb1b", "score": "0.6022425", "text": "public java.lang.String getIcon() {\n java.lang.Object ref = icon_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n icon_ = s;\n return s;\n }\n }", "title": "" }, { "docid": "ba22e9bb7c4a8323191f209423d1bb1b", "score": "0.6022425", "text": "public java.lang.String getIcon() {\n java.lang.Object ref = icon_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n icon_ = s;\n return s;\n }\n }", "title": "" }, { "docid": "74271be9efee152e10f18373c6d135ef", "score": "0.6014118", "text": "private ImageIcon icon(int x)\n {\n if(x==1)\n return createImageIcon(\"stones1.jpg\", \"one stone\");\n if(x==2)\n return createImageIcon(\"stones2.jpg\", \"two stones\");\n if(x==3)\n return createImageIcon(\"stones3.jpg\", \"three stones\");\n if(x==4)\n return createImageIcon(\"stones4.jpg\", \"four stones\");\n if(x==5)\n return createImageIcon(\"stones5.jpg\", \"five stones\");\n if(x==6)\n return createImageIcon(\"stones6.jpg\", \"six stones\");\n if(x==7)\n return createImageIcon(\"stones7.jpg\", \"seven stones\");\n if(x==8)\n return createImageIcon(\"stones8.jpg\", \"eight stones\");\n if(x==9)\n return createImageIcon(\"stones9.jpg\", \"nine stones\");\n if(x==10)\n return createImageIcon(\"stones10.jpg\", \"ten stones\");\n if(x==11)\n return createImageIcon(\"stones11.jpg\", \"eleven stones\");\n return null;\n }", "title": "" }, { "docid": "956c44944b8419d569b04c2f696a3f6b", "score": "0.60099405", "text": "String loadingIcon();", "title": "" }, { "docid": "db53b53388df02ba3439f7b693737f55", "score": "0.59854585", "text": "public void setIcon(String icon) {\r\n\t\tthis.icon = icon;\r\n\t}", "title": "" }, { "docid": "db53b53388df02ba3439f7b693737f55", "score": "0.59854585", "text": "public void setIcon(String icon) {\r\n\t\tthis.icon = icon;\r\n\t}", "title": "" }, { "docid": "76672dfbce1696903805423e700b8ff2", "score": "0.5984392", "text": "private static String m2306a(int i) {\n switch (i) {\n case 1:\n return \"BITMAP\";\n case 2:\n return \"RESOURCE\";\n case 3:\n return \"DATA\";\n case 4:\n return \"URI\";\n case 5:\n return \"BITMAP_MASKABLE\";\n default:\n return \"UNKNOWN\";\n }\n }", "title": "" }, { "docid": "21fc7e8d20402cb8deb3e109ed746220", "score": "0.5981519", "text": "public final int mo77994a(String str) {\n return C32569u.m150517a(str, StarCashierViewModel.f53537b) ? R.drawable.brk : R.drawable.brn;\n }", "title": "" }, { "docid": "b255d8445a18ab47680d1a44674e25b3", "score": "0.597794", "text": "public void setIcon(String icon) {\n this.icon = icon;\n }", "title": "" }, { "docid": "b255d8445a18ab47680d1a44674e25b3", "score": "0.597794", "text": "public void setIcon(String icon) {\n this.icon = icon;\n }", "title": "" }, { "docid": "d17e1c5673a48c5591326f4b8a853744", "score": "0.59777623", "text": "private int getSmallIcon()\n {\n return R.mipmap.ic_smart_audio_noti_icon;\n }", "title": "" }, { "docid": "2cfb5b121136c8f2b850e2885f2057b0", "score": "0.5971737", "text": "public String getIconName() {\n return iconName;\n }", "title": "" }, { "docid": "8edf98902d8bdd71b597b98930e4c1e2", "score": "0.59593415", "text": "@Override\n public void setIcon(int paramInt) {\n\n }", "title": "" }, { "docid": "84594e43e13f8eb9891b76d4a91a24da", "score": "0.59452266", "text": "private static int m2308c(Icon icon) {\n if (Build.VERSION.SDK_INT >= 28) {\n return icon.getResId();\n }\n try {\n return ((Integer) icon.getClass().getMethod(\"getResId\", new Class[0]).invoke(icon, new Object[0])).intValue();\n } catch (IllegalAccessException | NoSuchMethodException | InvocationTargetException e) {\n Log.e(\"IconCompat\", \"Unable to get icon resource\", e);\n return 0;\n }\n }", "title": "" }, { "docid": "8361e7c18506888f71d0b162738477ad", "score": "0.59039634", "text": "public abstract int getAppIcon();", "title": "" }, { "docid": "2273716ce2d4656a971ccb180ea1d9c9", "score": "0.5878043", "text": "public int getSmallIcon()\r\n\t{\r\n\t return 0;\r\n\t\t//return R.drawable.icon;\r\n\t}", "title": "" }, { "docid": "07a8b32d6bfd919d443eb5f0f78eb22d", "score": "0.5854485", "text": "public abstract Icon getIcon();", "title": "" }, { "docid": "7d6c7297c2bdbdce9b887b954035967c", "score": "0.5832838", "text": "String uploadIcon();", "title": "" }, { "docid": "dfe9caced9f310db751a662828287aad", "score": "0.58112276", "text": "public Builder setIcon(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n icon_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "dfe9caced9f310db751a662828287aad", "score": "0.58112276", "text": "public Builder setIcon(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n icon_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "fc629cfd99c0905c625bbaf6f262c711", "score": "0.57908195", "text": "public Builder setIcon(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n icon_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "fc629cfd99c0905c625bbaf6f262c711", "score": "0.57908195", "text": "public Builder setIcon(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n icon_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "fc629cfd99c0905c625bbaf6f262c711", "score": "0.57908195", "text": "public Builder setIcon(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n icon_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "fc629cfd99c0905c625bbaf6f262c711", "score": "0.5790735", "text": "public Builder setIcon(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n icon_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "ac8dd57740b64cf8d132857344a565ad", "score": "0.5788477", "text": "private int getIconTagBinaryValue(ImageView icon) {\n String tagFavouredIcon = icon.getTag().toString();\n int binaryValue;\n if (tagOff.equals(tagFavouredIcon)) {\n binaryValue = ZERO;\n } else {\n binaryValue = ONE;\n }\n return binaryValue;\n }", "title": "" }, { "docid": "52d0d1e9c45633430ac664e236461fa1", "score": "0.578561", "text": "com.google.protobuf.ByteString\n getIconNameBytes();", "title": "" }, { "docid": "a67cdef30f0bba1b1ae82573983a789f", "score": "0.5775364", "text": "public String getIconContent() {\n return currentIcon;\n }", "title": "" }, { "docid": "71548e154203d37d092e9a0611ee069f", "score": "0.56961215", "text": "public Uri getIcon()\n\t{\n\t\treturn icon;\n\t}", "title": "" }, { "docid": "732ea1b33e64428ae532d6d9c8359c2c", "score": "0.5692557", "text": "public String getIconURL();", "title": "" }, { "docid": "7f72b512a74abf489e1f7c8b2c40aa63", "score": "0.56861496", "text": "com.sun.java.xml.ns.j2Ee.IconType getIconArray(int i);", "title": "" }, { "docid": "8e2aa9346f72fd964e63621471d6a548", "score": "0.565584", "text": "public String GetIconPath() {\n return \"/elec.png\";\n }", "title": "" }, { "docid": "cb38fc722fca554e7e097de65ab89daf", "score": "0.56550723", "text": "private static Drawable m141491a(String str, int i) {\n Drawable a = EmojiResposity.m141414a(str);\n if (a != null) {\n int i2 = i + 5;\n a.setBounds(0, 0, i2, i2);\n }\n return a;\n }", "title": "" }, { "docid": "d62658db6ce6a69d85bda629094fbf6c", "score": "0.5651808", "text": "com.google.protobuf.ByteString\n getIconBytes();", "title": "" }, { "docid": "d62658db6ce6a69d85bda629094fbf6c", "score": "0.56516445", "text": "com.google.protobuf.ByteString\n getIconBytes();", "title": "" }, { "docid": "d62658db6ce6a69d85bda629094fbf6c", "score": "0.56516445", "text": "com.google.protobuf.ByteString\n getIconBytes();", "title": "" }, { "docid": "d62658db6ce6a69d85bda629094fbf6c", "score": "0.56516445", "text": "com.google.protobuf.ByteString\n getIconBytes();", "title": "" }, { "docid": "60ff3f77517998b1d861dcdb49b1f8fe", "score": "0.56483215", "text": "public Integer getIconId() {\n return iconId;\n }", "title": "" }, { "docid": "ae36fa3ce1a8d39d6a954c6b72875ebd", "score": "0.56299764", "text": "public static Image getWeatherIcon(String icon) {\n String iconSubString = icon.substring(1);\n\n Image image = null;\n try {\n URL url = new URL(\"http://openweathermap.org/img/wn/\"+iconSubString+\"@2x.png\");\n image = ImageIO.read(url);\n }catch (IOException e){\n e.printStackTrace();\n }\n return image;\n }", "title": "" }, { "docid": "30e999be4e8c2bb1d5b4467bb7aa8a29", "score": "0.5620607", "text": "public ImageIcon playerImage(String playerColor){\n return new ImageIcon(\"\" + playerColor + \".png\");\n }", "title": "" }, { "docid": "99fafc70eeb1a9540204f268ba2e712e", "score": "0.5609423", "text": "public ImageIcon getIcon();", "title": "" }, { "docid": "2e5cd7195b89f90ce5c27bcd74146ff3", "score": "0.5608621", "text": "private static int m2303a(Icon icon) {\n String str;\n StringBuilder sb;\n if (Build.VERSION.SDK_INT >= 28) {\n return icon.getType();\n }\n try {\n return ((Integer) icon.getClass().getMethod(\"getType\", new Class[0]).invoke(icon, new Object[0])).intValue();\n } catch (IllegalAccessException e) {\n e = e;\n str = \"IconCompat\";\n sb = new StringBuilder();\n sb.append(\"Unable to get icon type \");\n sb.append(icon);\n Log.e(str, sb.toString(), e);\n return -1;\n } catch (InvocationTargetException e2) {\n e = e2;\n str = \"IconCompat\";\n sb = new StringBuilder();\n sb.append(\"Unable to get icon type \");\n sb.append(icon);\n Log.e(str, sb.toString(), e);\n return -1;\n } catch (NoSuchMethodException e3) {\n e = e3;\n str = \"IconCompat\";\n sb = new StringBuilder();\n sb.append(\"Unable to get icon type \");\n sb.append(icon);\n Log.e(str, sb.toString(), e);\n return -1;\n }\n }", "title": "" }, { "docid": "7020b9a5f939571f12bbc6dcbf67ad63", "score": "0.5594829", "text": "public String iconName() {\n return \"applicationPermission\";\n }", "title": "" }, { "docid": "7e2470b09ca940d8e84a53ce3c6951f8", "score": "0.55769986", "text": "public static Image getIcon() {\n return icon;\n }", "title": "" }, { "docid": "bb94d2ead955fa9b4d2fc39b2de36b45", "score": "0.55727166", "text": "public Uri getIcon() {\n\t\treturn icon;\n\t}", "title": "" }, { "docid": "73f11cff6aa5ac3528c5627eff664ff9", "score": "0.556715", "text": "public boolean Change_icon(String filepath, String name) {\n\tsendData(\"Change_icon\");\r\n\tsendData(name);\r\n\treturn false;\r\n}", "title": "" }, { "docid": "95baa1f2321e7a236b7d41b89c1db282", "score": "0.5564474", "text": "public void setIcon(String icon) {\n this.icon = icon == null ? null : icon.trim();\n }", "title": "" }, { "docid": "95baa1f2321e7a236b7d41b89c1db282", "score": "0.5564474", "text": "public void setIcon(String icon) {\n this.icon = icon == null ? null : icon.trim();\n }", "title": "" }, { "docid": "95baa1f2321e7a236b7d41b89c1db282", "score": "0.5564474", "text": "public void setIcon(String icon) {\n this.icon = icon == null ? null : icon.trim();\n }", "title": "" }, { "docid": "54ee1d6aa1a83bd4a1600a602bfaa002", "score": "0.55556226", "text": "void removeIcon(int i);", "title": "" }, { "docid": "894e53120d61f311fcc1d2b800795f6b", "score": "0.55543333", "text": "private ImageIcon createImage(String string) {\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "22600af864172494b3aa879e989d7338", "score": "0.55492485", "text": "static private Object LoadIcon(int i, int idiIcon) {\n\t\treturn null;\r\n\t}", "title": "" } ]
95c6011a5afea576a520ee9912847a8e
/ NON GENERIC GRAPH
[ { "docid": "2e674320255ea6d9ee2e12faffa0cfa1", "score": "0.52528715", "text": "public void test1() {\n\t\tGraphNonGeneric g1 = new GraphNonGeneric(6);\n\t\t// BFS AND DFS in GraphNonGeneric\n\t\taddNodeUtil.addNodeNonGeneric_DFSTest(g1);\n\t\tg1.dfs(2);\n\t\tg1.bfs(2);\n\t}", "title": "" } ]
[ { "docid": "1c7bf6ee74e18fc16696cce075c77de3", "score": "0.6349776", "text": "public void ConcreteGraph() {\n\t\t\n\t}", "title": "" }, { "docid": "b46b6f58050ffc8120a0d8210836fde7", "score": "0.59544003", "text": "public interface GraphAlgorithm\n{\n\n\n\n/**\n * Apply the algorithm to graph. The return value should be null\n * if successful, and an error message if unsuccessful.\n *@param update an object that allows the display to be updated\n * from within the algorithm\n *@see GraphUpdate\n**/\nabstract public String compute(Graph graph, GraphUpdate update);\n}", "title": "" }, { "docid": "59b3dfb9d68e1f8c0baee4e5d2266b5d", "score": "0.5922322", "text": "public void graph() {\n\n }", "title": "" }, { "docid": "7264e2d60e4548f5cc929145806401d8", "score": "0.58876723", "text": "public interface IGraph {\n \n /** \n * Signal to indicate that a graph component meets the requirements of a \n * query against a graph and that the query should continue.\n */\n public static final int PASS_AND_CONTINUE = 1;\n \n /**\n * Signal to indicate that a graph component meets the requirements of a \n * query against a graph and that the query should end.\n */\n public static final int PASS_AND_STOP = 2;\n \n /** \n * Signal to indicate that a graph component does NOT meet the requirements \n * of a query made against the graph. \n */\n public static final int FAIL_QUERY = 0;\n \n /**\n * Returns the nodes of the graph.\n *\n * @return A collection of Node objects.\n *\n * @see INode\n */\n public Collection getNodes();\n\n /**\n * Returns the edges of the graph.\n *\n * @return A collection of Edge objects.\n *\n * @see IEdge\n */\n public Collection getEdges();\n\n /**\n * Performs a query against the nodes of the graph. Each Node object\n * contained in the graph is passed to a GraphVisitor to determine if it\n * meets the query criteria.\n *\n * @param visitor Determines if node meets query criteria. \n * Returns MEET_AND_CONTINUE to signal that the node meets the query criteria \n * and the query should continue.<BR>\n * Returns MEET_AND_STOP to signal that the node meest the query criteria and\n * the query should stop.<BR>\n * FAIL_QUERY to signal that the node does NOT meet the query criteria.\n *\n * @return A collection of nodes that meet the query criteria.\n *\n * @see INode\n * @see IGraphVisitor\n */\n public List queryNodes(IGraphVisitor visitor);\n\n /**\n * Performs a query against the edges of the graph. Each Edge object\n * contained in the graph is passed to a GraphVisitor to determine if it\n * meets the query criteria.\n *\n * @param visitor Determines if the meets the query criteria. <BR>\n * Returns MEET_AND_CONTINUE to signal that the edge meets the query criteria \n * and the query should continue.<BR>\n * Returns MEET_AND_STOP to signal that the edge meest the query criteria and\n * the query should stop.<BR>\n * FAIL_QUERY to signal that the edge does NOT meet the query criteria.\n *\n * @return A collection of edges that meet the query criteria.\n *\n * @see IEdge\n * @see IGraphVisitor\n */\n public List queryEdges(IGraphVisitor visitor);\n \n\n /** \n * Applies the visitor pattern to the nodes of the graph.\n * \n * @param visitor\n */\n\tpublic void visitNodes(IGraphVisitor visitor);\n \n /**\n * Applies the visitor pattern to the edges of the graph.\n * \n * @param visitor\n */\n public void visitEdges(IGraphVisitor visitor);\n\n /**\n * Returns all the nodes in the graph of a specified degree. The degree of \n * a node is the number of edges that are adjacent to the node.\n *\n * @param n The desired degree of nodes to be returned.\n *\n * @return A collection of nodes of degree n.\n * \n * @see INode#getDegree()\n */\n public List getNodesOfDegree(int n);\n\n /**\n * Returns all the nodes in the graph that have been marked as visited or\n * non-visited.\n *\n * @param visited True if node is visited, false if node is unvisited.\n *\n * @return List of nodes marked as visited / non-visited.\n * \n * @see IGraphable#isVisited()\n */\n public List getVisitedNodes(boolean visited);\n\n /**\n * Returns all the edges in the graph that have been marked as visited or\n * non-visited.\n *\n * @param visited True if edge is visited, false if edge is unvisited.\n *\n * @return List of edges marked as visited / non-visited.\n * \n * @see IGraphable#isVisited()\n */\n public List getVisitedEdges(boolean visited);\n \n}", "title": "" }, { "docid": "b86e79e1ba83f0f9b3c2102af108d4a7", "score": "0.586978", "text": "public interface Graph<V,E> {\r\n\t\r\n\t/**\r\n\t * Devuelve una coleccion iterable de vertices.\r\n\t * @return Una coleccion iterable de vertices.\r\n\t */\r\n\tpublic Iterable<Vertex<V>> vertices();\r\n\t\r\n\t/**\r\n\t * Devuelve una coleccion iterable de arcos.\r\n\t * @return Una coleccion iterable de arcos.\r\n\t */\r\n\tpublic Iterable<Edge<E>> edges();\r\n\t\r\n\t/**\r\n\t * Devuelve una coleccion iterable de arcos incidentes a un vertice v.\r\n\t * @param v Un vertice.\r\n\t * @return Una coleccion iterable de arcos incidentes a un vertice v.\r\n\t * @throws InvalidVertexException si el vertice es invalido.\r\n\t */\r\n\tpublic Iterable<Edge<E>> incidentEdges(Vertex<V> v) throws InvalidVertexException;\r\n\t\r\n\t\r\n\t/**\r\n\t * Devuelve el vertice opuesto a un Arco E y un vertice V.\r\n\t * @param v Un vertice\r\n\t * @param e Un arco\r\n\t * @return El vertice opuesto a un Arco E y un vertice V.\r\n\t * @throws InvalidVertexException si el vertice es invalido.\r\n\t * @throws InvalidEdgeException si el arco es invalido.\r\n\t */\r\n\tpublic Vertex<V> opposite(Vertex<V> v, Edge<E> e) throws InvalidVertexException, InvalidEdgeException;\r\n\t\r\n\t/**\r\n\t * Devuelve un Arreglo de 2 elementos con lo vertices extremos de un Arco e.\r\n\t * @param e Un arco\r\n\t * @return Un Arreglo de 2 elementos con los extremos de un Arco e.\r\n\t * @throws InvalidEdgeException si el arco es invalido.\r\n\t */\r\n\tpublic Vertex<V> [] endvertices(Edge<E> e) throws InvalidEdgeException;\r\n\t\r\n\t/**\r\n\t * Devuelve verdadero si el vertice w es adyacente al vertice v.\r\n\t * @param v Un vertice\r\n\t * @param w Un vertice\r\n\t * @return Verdadero si el vertice w es adyacente al vertice v, falso en caso contrario.\r\n\t * @throws InvalidVertexException si uno de los vertices es invalido.\r\n\t */\r\n\tpublic boolean areAdjacent(Vertex<V> v,Vertex<V> w) throws InvalidVertexException;\r\n\t\r\n\t/**\r\n\t * Reemplaza el rotulo de v por un rotulo x.\r\n\t * @param v Un vertice\r\n\t * @param x Rotulo\r\n\t * @return El rotulo anterior del vertice v al reemplazarlo por un rotulo x.\r\n\t * @throws InvalidVertexException si el vertice es invalido.\r\n\t */\r\n\tpublic V replace(Vertex<V> v, V x) throws InvalidVertexException;\r\n\t\r\n\t/**\r\n\t * Inserta un nuevo vertice con rotulo x.\r\n\t * @param x rotulo del nuevo vertice\r\n\t * @return Un nuevo vertice insertado.\r\n\t */\r\n\tpublic Vertex<V> insertVertex(V x);\r\n\t\r\n\t/**\r\n\t * Inserta un nuevo arco con rotulo e, con vertices extremos v y w.\r\n\t * @param v Un vertice\r\n\t * @param w Un vertice\r\n\t * @param e rotulo del nuevo arco.\r\n\t * @return Un nuevo arco.\r\n\t * @throws InvalidVertexException si uno de los vertices es invalido.\r\n\t */\r\n\tpublic Edge<E> insertEdge(Vertex<V> v, Vertex<V> w, E e) throws InvalidVertexException;\r\n\t\r\n\t/**\r\n\t * Remueve un vertice V y retorna su rotulo.\r\n\t * @param v Un vertice\r\n\t * @return rotulo de V.\r\n\t * @throws InvalidVertexException si el vertice es invalido.\r\n\t */\r\n\tpublic V removeVertex(Vertex<V> v) throws InvalidVertexException;\r\n\t\r\n\t/**\r\n\t * Remueve un arco e y retorna su rotulo.\r\n\t * @param e Un arco\r\n \t * @return rotulo de E.\r\n\t * @throws InvalidEdgeException si el arco es invalido.\r\n\t */\r\n\tpublic E removeEdge(Edge<E> e) throws InvalidEdgeException;\r\n}", "title": "" }, { "docid": "5abe62e8d19c9efc0e669e7751d7046f", "score": "0.5853925", "text": "@Override\n\tpublic void Visit(Text g) {\n\t\t\n\t}", "title": "" }, { "docid": "4218376ad671a7e613b2d401e5484e2d", "score": "0.580433", "text": "@Override\n\t\t\tpublic void accept(Visitor visitor) {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "556f4fb073acd488b21851314ea128bf", "score": "0.5761012", "text": "public interface GraphObject{\n\tpublic void draw(GL10 gl);\n}", "title": "" }, { "docid": "266131e540e7432b41bf79a1ae017ed0", "score": "0.5760617", "text": "protected void graph(StreamTokenizer tk) {\n try {\n tk.nextToken();\n\n if (tk.ttype == StreamTokenizer.TT_WORD) {\n if (tk.sval.equalsIgnoreCase(\"digraph\")) {\n tk.nextToken();\n if (tk.ttype == StreamTokenizer.TT_WORD) {\n m_graphName = tk.sval;\n tk.nextToken();\n }\n\n while (tk.ttype != '{') {\n System.err.println(\"Error at line \" + tk.lineno()\n + \" ignoring token \" + tk.sval);\n tk.nextToken();\n if (tk.ttype == StreamTokenizer.TT_EOF) {\n return;\n }\n }\n stmtList(tk);\n } else if (tk.sval.equalsIgnoreCase(\"graph\")) {\n System.err.println(\"Error. Undirected graphs cannot be used\");\n } else {\n System.err.println(\"Error. Expected graph or digraph at line \"\n + tk.lineno());\n }\n }\n } catch (Exception ex) {\n }\n\n // int tmpMatrix[][] = new int[m_nodes.size()][m_nodes.size()];\n // for(int i=0; i<m_edges.size(); i++)\n // tmpMatrix[((GraphEdge)m_edges.get(i)).src]\n // [((GraphEdge)m_edges.get(i)).dest] =\n // ((GraphEdge)m_edges.get(i)).type;\n // for(int i=0; i<m_nodes.size(); i++) {\n // GraphNode n = (GraphNode)m_nodes.get(i);\n // n.edges = tmpMatrix[i];\n // }\n\n // Adding parents, and those edges to a node which are coming out from it\n /* int noOfEdgesOfNode[] = new int[m_nodes.size()];\n int noOfPrntsOfNode[] = new int[m_nodes.size()];\n for (kante e : m_edges) {\n noOfEdgesOfNode[e.src]++;\n noOfPrntsOfNode[e.dest]++;\n }\n for (kante m_edge : m_edges) {\n kante e = m_edge;\n Knoten n = m_nodes.get(e.src);\n Knoten n2 = m_nodes.get(e.dest);\n if (n.kanten == null) {\n n.kanten = new int[noOfEdgesOfNode[e.src]][2];\n for (int k = 0; k < n.kanten.length; k++) {\n n.kanten[k][1] = 0;\n }\n } if (n2.ElternIDs == null) {\n n2.ElternIDs = new int[noOfPrntsOfNode[e.dest]];\n for (int k = 0; k < n2.ElternIDs.length; k++) {\n n2.ElternIDs[k] = -1;\n }\n } int k = 0;\n while (n.kanten[k][1] != 0) {\n k++;\n } n.kanten[k][0] = e.dest;\n n.kanten[k][1] = e.type;\n k = 0;\n while (n2.ElternIDs[k] != -1) {\n k++;\n } n2.ElternIDs[k] = e.src;\n }*/\n }", "title": "" }, { "docid": "61ab85cd4df2b66690fe28b773cfb9e7", "score": "0.5661004", "text": "public interface Graph<E,A> {\n\tpublic int size();\n\tpublic int getEdgeCount();\n\tpublic int degree(Vertex<E> v);\n\tpublic boolean containsEdge(Vertex<E> v0, Vertex<E> v1);\n\tpublic void clear();\n\tpublic Vertex<E> addVertex(E elem);\n\tpublic Edge<A> addEdge(Vertex<E> v0, Vertex<E> v1);\n\tpublic Edge<A> addEdge(Vertex<E> v0, Vertex<E> v1, A attr);\n\tpublic void removeVertex(Vertex<E> v);\n\tpublic void removeEdge(Edge<A> e);\n\tpublic Iterator<Vertex<E>> vertices();\n\tpublic Iterator<Edge<A>> edges();\n\tpublic Iterator<Vertex<E>> neighbours(Vertex<E> v);\n\tpublic Iterator<Edge<A>> connectingEdges(Vertex<E> v);\n\t\n\t/**\n\t * inner interface which represents contract of a vertex object\n\t * @author Chigozie Ekwonu\n\t *\n\t * @param <E>\trepresents the vertex element type\n\t */\n\tpublic interface Vertex<E>{\n\t\tpublic E getElement();\n\t\tpublic void setElement(E elem);\n\t}\n\t\n\t/**\n\t * inner interface which represents the contract for an edge object\n\t * @author Chigozie Ekwonu\n\t *\n\t * @param <A>\tthe edge attribute type\n\t */\n\tpublic interface Edge<A>{\n\t\tpublic A getAttribute();\n\t\tpublic void setAttribute(A attr);\n\t\tpublic Vertex getSource();\n\t\tpublic Vertex getDestination();\n\t}\n}", "title": "" }, { "docid": "e70d095ba13eb81c4f9c2ac5b623eac0", "score": "0.56529754", "text": "interface GUIMiniGraph {\n Shape[] getGlyph();\n}", "title": "" }, { "docid": "06a64d04e2c9680ca02a63e3c0f62238", "score": "0.5651662", "text": "public interface Graph {\n\n //Regresa la cantidad de v�rtices en G\n public int numVertices();\n\n //Regresa la cantidad de aristas en G\n public int numEdges();\n\n //Regresa una lista de los v�rtices de G\n public LinkedList vertices();\n\n //Regresa una lista de las aristas de G\n public LinkedList edges();\n\n //Regresa el grado de V\n public int degree(Vertex V);\n\n public int degreeInput(Vertex V);\n\n public int degreeOutput(Vertex V);\n\n //Regresa un iterador de los v�rtices adyacentes a V\n public LinkedList adjacentVertices(Vertex V);\n\n //Regresa un iterador de las aristas que inciden en V\n public LinkedList incidentEdges(Vertex V);\n\n //Inserta una nueva arista\n public Edge insertEdge(Vertex v, Vertex w, Object O, boolean d);\n\n //Inserta y regresa un nuevo v�rtice\n public Vertex insertVertex(Object O);\n\n //public Vertice search(int x);\n public String dfs();\n}", "title": "" }, { "docid": "c605537c68a8d8c161121fd0e5496304", "score": "0.5643284", "text": "public interface MSTProblem {\r\n\r\n public List<Edge> execute(Graph g);\r\n\r\n}", "title": "" }, { "docid": "f977378b10b24bc9b5dac694950a3db0", "score": "0.56299794", "text": "public interface Node extends GraphElement {\n public double getX();\n\n public double getY();\n\n public double getWidth();\n\n public double getHeight();\n\n public Rectangle2D getBounds();\n\n public String getTitle();\n\n public void setTitle(String title);\n}", "title": "" }, { "docid": "3af0758273fd1d7b3581cf441302a792", "score": "0.5599241", "text": "protected abstract String returnOperationSymbolGraphviz();", "title": "" }, { "docid": "fa87a8bb7baf08ba30b3c0aafbcb292f", "score": "0.5595603", "text": "@Override\n\tpublic void accept(IntermediateVisitor visitor) {\n\t\t\n\t}", "title": "" }, { "docid": "42189815a271d4c182c34aabe6c8df87", "score": "0.5586868", "text": "public interface GraphView {\n\n /**\n * Getter.\n * \n * @return The number of nodes.\n */\n int nodeCount();\n\n /**\n * Getter.\n * \n * @param index The index of the node.\n * @return The name of the node.\n */\n String getName(int index);\n\n /**\n * Whether two nodes are connected. The order of the nodes is only important\n * when the graph is directed.\n * \n * @param a One node.\n * @param b Another node.\n * @return Whether both nodes are connected via an edge.\n */\n boolean areConnected(int a, int b);\n\n /**\n * Getter.\n * \n * @return Whether the graph is directed.\n */\n boolean isDirected();\n\n}", "title": "" }, { "docid": "666ec5ad9c46699e26d1ed143e5e658e", "score": "0.5577723", "text": "public interface IVertexSubtype {\n}", "title": "" }, { "docid": "9770bb6b8c01470fd085957e6202a6eb", "score": "0.5535047", "text": "public interface ConnectedTo extends TopologicalRelation {\n}", "title": "" }, { "docid": "7a027e08044442731215124b9b5d0823", "score": "0.552724", "text": "@Override\r\n\tpublic void accept(NodeVisitor visitor) {\n\r\n\t}", "title": "" }, { "docid": "fee49bbdd9d9ebfe406c22cce7615c23", "score": "0.5523567", "text": "public abstract Traversal<Vertex, Map<String, String>> get_g_V_asXaX_outXcreatedX_inXcreatedX_asXbX_whereXa_gtXbXX_byXageX_selectXa_bX_byXnameX();", "title": "" }, { "docid": "d6371561b87b455103c7fbb68f7462fd", "score": "0.5522621", "text": "public interface GraphInterface {\n\n//\tNode[] getListOfAllNodes();\n//\tvoid setListOfAllNodes(Node[] listOfAllNodes);\n\tvoid addNode(String value);\n\n\tvoid addEdge(String source, String destination);\n\n\tvoid printGraph();\n\n\tvoid countNumberOfParents();\n\n\tpublic Graph generateGraph(String[][] parentChildPairs) throws InvalidPairException;\n}", "title": "" }, { "docid": "4a87a14dcf50ec1d3dcedcb4bc9c8ccd", "score": "0.55067736", "text": "public interface PlainGraph<T, A> extends JStructure<T> {\r\n List<PlainGraph<T, A>> getNodes();\r\n\r\n List<GraphAssoc<A>> getAssocs();\r\n\r\n public static class Impl<T, A> extends JStructure.Impl<T> implements PlainGraph<T, A> {\r\n List<PlainGraph<T, A>> nodes = new ArrayList<PlainGraph<T, A>>();\r\n List<GraphAssoc<A>> assocs = new ArrayList<GraphAssoc<A>>();\r\n\r\n public Impl(T contents) {\r\n super(contents);\r\n }\r\n\r\n public List<GraphAssoc<A>> getAssocs() {\r\n return assocs;\r\n }\r\n\r\n public List<PlainGraph<T, A>> getNodes() {\r\n return nodes;\r\n }\r\n }\r\n}", "title": "" }, { "docid": "c0510ee7f761fa2874f82155cf22f9e1", "score": "0.5503067", "text": "@SuppressWarnings(\"rawtypes\")\r\npublic interface IGraphVisitor<G extends AbstractGraph,V extends AbstractVertex,E extends AbstractEdge> {\r\n\r\n\t/**\r\n\t * Visit the given edge\r\n\t * \r\n\t * @param sdfEdge\r\n\t */\r\n\tpublic abstract void visit(E sdfEdge);\r\n\r\n\t/**\r\n\t * Visit the given graph\r\n\t * \r\n\t * @param sdf\r\n\t * @throws SDF4JException \r\n\t */\r\n\tpublic abstract void visit(G sdf)throws SDF4JException;\r\n\r\n\t/**\r\n\t * Visit the given vertex\r\n\t * \r\n\t * @param sdfVertex\r\n\t * @throws SDF4JException \r\n\t */\r\n\tpublic abstract void visit(V sdfVertex)throws SDF4JException;\r\n\r\n}", "title": "" }, { "docid": "95dec51c37d4412643215a82f4be43a4", "score": "0.5498001", "text": "public interface Graph<V, E> {\n\n /**\n * adds vertex to a graph if it does not exist already.\n *\n * @param vertex to be added\n * @return true if vertex was added\n */\n boolean addVertex(V vertex);\n\n /**\n * adds edge (v1, v2) to the graph and information info, only if the edge\n * dows not exist.\n *\n * @param v1 First vertex belonging to the edge\n * @param v2 Second vertex belonging to the edge\n * @param info edge extra info. It can be null.\n * @return true if vertex was added, false otherwise\n * @throws IllegalArgumentException if a vertex doest not belong to the\n * graph\n */\n boolean addEdge(V v1, V v2, E info) throws IllegalArgumentException;\n\n /**\n * adds edge (v1, v2) to the graph, assigning weight and information info,\n * only if the edge dows not exist.\n *\n * @param v1 First vertex belonging to the edge\n * @param v2 Second vertex belonging to the edge\n * @param weight Cost of the edge\n * @param info edge extra info. It can be null.\n * @return true if vertex was added, false otherwise\n * @throws IllegalArgumentException if a vertex doest not belong to the\n * graph\n */\n boolean addEdge(V v1, V v2, double weight, E info) throws IllegalArgumentException;\n\n /**\n * adds undirected edge (v1, v2), (v2,v1) to the graph, assigning default\n * weight 1 and information info, only if the edge dows not exist.\n *\n * @param v1 First vertex belonging to the edge\n * @param v2 Second vertex belonging to the edge\n * @param info edge extra info. It can be null.\n * @return true if vertex was added, false otherwise\n * @throws IllegalArgumentException if a vertex doest not belong to the\n * graph\n */\n boolean addUndirectedEdge(V v1, V v2, E info) throws IllegalArgumentException;\n\n /**\n * adds undirected edge (v1, v2) (v2, v1) to the graph, assigning\n * information info, only if the edge dows not exist.\n *\n * @param v1 First vertex belonging to the edge\n * @param v2 Second vertex belonging to the edge\n * @param weight Cost of the edge\n * @param info edge extra info. It can be null.\n * @return true if vertex was added, false otherwise\n * @throws IllegalArgumentException if a vertex doest not belong to the\n * graph\n */\n boolean addUndirectedEdge(V v1, V v2, double weight, E info) throws IllegalArgumentException;\n\n /**\n * Check for vertex existance\n *\n * @param vertex to be found\n * @return true if vertex exists, false otherwise\n */\n boolean hasVertex(V vertex);\n\n /**\n * Check for edge existance\n *\n * @param v1\n * @param v2\n * @return true if edge found, false otherwise\n * @throws IllegalArgumentException if vertices not in graph\n *\n */\n boolean hasEdge(V v1, V v2) throws IllegalArgumentException;\n\n /**\n * Returns weight of a single edge, if the edge is weighted; 1 otherwise\n *\n * @param from origin vertex\n * @param to destination vertes\n * @return edge's weight\n * @throws IllegalArgumentException if vertices or edge not in graph\n */\n double getWeight(V from, V to) throws IllegalArgumentException;\n\n /**\n * @return list of all vertices in the graph\n */\n ArrayList<V> vertices();\n\n /**\n * @param vertex\n * @return adjacency list of vertex; null if vertex does not belong to the\n * graph\n */\n ArrayList<V> neighbours(V vertex);\n\n /**\n * @return all edges of the graph\n */\n List<Edge> edges();\n\n /**\n * @param v\n * @return all edges incident to node v\n */\n List<Edge> edges(V v);\n}", "title": "" }, { "docid": "15637588001cebf3b4b579a95582e0b5", "score": "0.54692304", "text": "public interface GraphApplication {\n\n double apply(Vertex v, Collection<Double> list);\n\n double scatter(Vertex v);\n}", "title": "" }, { "docid": "5b613686f4644d3e4a556ff3e08cfc93", "score": "0.54381424", "text": "protected void visit(Graph<VLabel, ELabel>.Vertex v) {\n }", "title": "" }, { "docid": "8b6149cf1c9e0825bf721ae59b84ccde", "score": "0.54339314", "text": "public interface Node extends Iterable<Edge> {\n\n\n\tclass NodeInfo {\n\t\tprivate double F;\n\n\t\tprivate double G;\n\n\t\tprivate double H;\t\n\n\t\tprivate Node pre;\n\n\t\tprivate boolean canSearch=false;\n\n\t\tpublic void updateFG(double g) {\n\t\t\tG = g;\n\t\t\tF = G + H;\n\t\t}\n\n\n\t\tpublic NodeInfo(double h, double g, Node pre) {\n\t\t\tH = h;\n\t\t\tG = g;\n\t\t\tF = g + h;\n\t\t\tthis.pre = pre;\n\t\t\tcanSearch=true;\n\t\t}\n\n\t\n\t\tpublic NodeInfo(double f, double g, double h, Node pre) {\n\t\t\tF = f;\n\t\t\tG = g;\n\t\t\tH = h;\n\t\t\tthis.pre = pre;\n\t\t\tthis.canSearch = true;\n\t\t}\n\n\t\tpublic boolean isCanSearch() {\n\t\t\treturn canSearch;\n\t\t}\n\n\t\tpublic void setCanSearch(boolean canSearch) {\n\t\t\tthis.canSearch = canSearch;\n\t\t}\n\n\t\tpublic Node getPre() {\n\t\t\treturn pre;\n\t\t}\n\n\t\tpublic void setPre(Node pre) {\n\t\t\tthis.pre = pre;\n\t\t}\n\n\t\tpublic NodeInfo() {\n\t\t}\n\n\t\tpublic double getF() {\n\t\t\treturn F;\n\t\t}\n\n\t\tpublic void setF(double f) {\n\t\t\tF = f;\n\t\t}\n\n\t\tpublic double getG() {\n\t\t\treturn G;\n\t\t}\n\n\t\tpublic void setG(double g) {\n\t\t\tG = g;\n\t\t}\n\n\t\tpublic double getH() {\n\t\t\treturn H;\n\t\t}\n\n\t\tpublic void setH(double h) {\n\t\t\tH = h;\n\t\t}\n\t}\n\n\t/**\n\t * \n\t * @param nodeInfo\n\t */\n\tpublic void setNodeInfo(NodeInfo nodeInfo);\n\n\t/**\n\t * @return The coordinates of this node.\n\t */\n\tpublic Coordinate getCoordinate();\n\n\t/**\n\t * Get an outgoing edge of this node.\n\t * \n\t * @param idx\n\t * The edge index.\n\t * \n\t * @return The \"idx'th\" outgoing edge if it exists.\n\t * \n\t * @throws IndexOutOfBoundsException\n\t * If idx is not a valid edge index.\n\t */\n\tpublic Edge getEdge(int idx);\n\n\t/**\n\t * @return The OSM id of this node.\n\t */\n\tpublic long getId();\n\n\t/**\n\t * @return An iterator over all outgoing edges of this node.\n\t */\n\t@Override\n\tpublic Iterator<Edge> iterator();\n\n\t/**\n\t * @return The number of outgoing edges of this node.\n\t */\n\tpublic int numEdges();\n\n\t/**\n\t * Add an outgoing edge to this node.\n\t * \n\t * @param e\n\t * The edge to add.\n\t */\n\tpublic void addEdge(Edge e);\n\n\t/**\n\t * Remove an outgoing edge from this node.\n\t * \n\t * @param i The index of the edge that should be removed.\n\t */\n\tpublic void removeEdge(int i);\n\n\tpublic List<Edge> getEdges();\n\n public void setEdges(List<Edge> edges);\n\n\tpublic NodeInfo getNodeInfo();\n\n\tpublic double getDistance(Node node);\n}", "title": "" }, { "docid": "664bfeb099c1465193504d5fdbb9768d", "score": "0.5425326", "text": "protected abstract GC executeForVertex(LG graph);", "title": "" }, { "docid": "0ca8527dfaa06f67349de1dc48a3385a", "score": "0.5415935", "text": "public interface StylizedGraph {\n /**\n * @param userID The index of the user whose friends we want to get.\n * @return the list of IDs of the users friends.\n */\n\tpublic List<Integer> getUsersFollowers(int userID);\n /**\n * @param userID The index of the user whose followers we want to get.\n * @return the list of IDs of the users followers.\n */\n\tpublic List<Integer> getUsersFriends(int userID);\n}", "title": "" }, { "docid": "eb5233551b1b57b2d9e08c1f6109e450", "score": "0.54059416", "text": "public void visit(GNode n) {\n //nothing to do. \n }", "title": "" }, { "docid": "8adef31c2f2013e39b367f634caf80d7", "score": "0.53822225", "text": "Graph getGSGraph();", "title": "" }, { "docid": "2ac51b7285c40d4caf90860af6a3272e", "score": "0.5381952", "text": "public interface ShapeVisitor {\r\n public void visit(Triangle triangle);\r\n\r\n public void visit(Square square);\r\n\r\n public void visit(List<Shape> shapeList);\r\n}", "title": "" }, { "docid": "2be45d73e5908a0383b674409c6bcd44", "score": "0.5378733", "text": "protected abstract void languageNode();", "title": "" }, { "docid": "879319a644ef3d23085eadb4a87f1c72", "score": "0.5376065", "text": "public interface Graph<V> {\n\t\n\t/**\n\t * Adds a vertex to the graph\n\t * @param v The vertex to add\n\t * @return True/false if the vertex was succesfully added or not\n\t */\n\tpublic boolean addVertex(V v);\n\t\n\t/**\n\t * Adds an edge between two vertices\n\t * @param v initial vertex\n\t * @param u final vertex\n\t * @return true/false if the edge was succesfully added\n\t */\n\tpublic boolean addEdge(V v, V u);\n\t\n\t/**\n\t * Adds a weigthed edge between two vertices \n\t * @param v initial vertex\n\t * @param u final vertex\n\t * @param w weight of the edge\n\t * @return true/false if the edge was succesfully added\n\t */\n\tpublic boolean addEdge(V v, V u, int w);\n\t\n\t/**\n\t * Removes am edge from the graph\n\t * @param v Edge to be removed\n\t * @return The removed edge\n\t */\n\tpublic void removeVertex(V v);\n\t\n\t/**\n\t * Removes the edge between two vertices\n\t * @param v inital vertex\n\t * @param u final vertex\n\t * @return true/false if the edge was succesfully removed\n\t */\n\tpublic void removeEdge(V v, V u);\n\t\n\t/**\n\t * Tells if two vertices are connected\n\t * @param v initial vertex\n\t * @param u final vertex\n\t * @return true/false if the two vertices are connected or not\n\t */\n\tpublic boolean areConnected(V v, V u);\n\t\n\tpublic boolean isDirected();\n\t\n\tpublic List<V> bfs(V v);\n\t\n\tpublic List<V> dfs(V v);\n\t\n\tpublic int[] dijkstra(V v);\n\t\n\tpublic int[][] floydWarshall();\n\t\n\tpublic int[][] Kruskal(int[][] p);\n\t\n\tpublic int[] Prim(int[][] p);\n\t\n\tpublic int getVertexSize();\n\t\n\tpublic Map<V, Integer> getVertices();\n\n\tpublic int getIndex(V vertex);\n\n\tpublic List<V> vertexAdjacent(V vertex);\n\t\n}", "title": "" }, { "docid": "a5b2367d72161b9e2bb13dc5fed1ff39", "score": "0.5369599", "text": "public interface IGraph {\n int getNbNodes();\n int[][] toAdjacencyMatrix();\n List<Integer> getSuccessors(int x);\n List<Integer> getPredecessors(int x);\n\n default int getWeight(int x, int y){\n return 0;\n }\n}", "title": "" }, { "docid": "fe2ae36cbf5f26bc6e4368bf7ba12bae", "score": "0.5363488", "text": "public abstract void beginVisit();", "title": "" }, { "docid": "75f1393c3e005313444a1674d2fb18d7", "score": "0.53590304", "text": "@Override\n public Operator basicPattern(BasicGraphPattern pattern)\n {\n return null;\n }", "title": "" }, { "docid": "784dc56623575eea280bdf7da1dd51ce", "score": "0.5337521", "text": "public interface GraphEdge {\n void setAccessibleStrategy(NodeAccessibleStrategy strategy);\n\n GraphNode getSuccessor();\n\n Character getDirection();\n\n boolean isAccessible();\n}", "title": "" }, { "docid": "1394c38fd771a11378f37df3a0c30eea", "score": "0.5332965", "text": "abstract boolean isCallGraphNode();", "title": "" }, { "docid": "4d20b49db46637a53591d11f52a564a1", "score": "0.5328306", "text": "public interface GraphStyle {\n\n /**\n * Describes how to render vertexes, according to their selection state\n *\n * @return the related metainfo\n */\n VertexStyleInfo getVertexStyleInfo();\n\n /**\n * Describes how to render links, according to their selection state\n *\n * @return the related metainfo\n */\n LinkStyleInfo getLinkStyleInfo();\n\n}", "title": "" }, { "docid": "48cf9ecbd8497e848b6de6dcff9f98fa", "score": "0.5327156", "text": "public abstract void visit(E sdfEdge);", "title": "" }, { "docid": "1b724bfcfa688593ea86cbd49834dcaa", "score": "0.5312418", "text": "public interface GeometricalObjectVisitor {\n\t/**\n\t * Actions performed when Line is visited.\n\t * @param line reference to line object\n\t */\n\tvoid visit(Line line);\n\t/**\n\t * Actions performed when Circle is visited.\n\t * @param circle reference to circle object\n\t */\n\tvoid visit(Circle circle);\n\t/**\n\t * Actions performed when FilledCircle is visited.\n\t * @param filledCircle reference to filled circle object\n\t */\n\tvoid visit(FilledCircle filledCircle);\n}", "title": "" }, { "docid": "7cac732ea8a0d4e89c04361e9b14d89a", "score": "0.5290438", "text": "void visit(Dirigido<T> g, Vertex<T> v);", "title": "" }, { "docid": "7cac732ea8a0d4e89c04361e9b14d89a", "score": "0.5290438", "text": "void visit(Dirigido<T> g, Vertex<T> v);", "title": "" }, { "docid": "0cfd3b38c003ff0bd5e2b919218b21f0", "score": "0.527521", "text": "protected void in(Vertex<T> v) {}", "title": "" }, { "docid": "345d06ec5e02760d702e43d426056d6a", "score": "0.52743983", "text": "public interface Filter extends AutoCloseable {\n\n /**\n *\n * Returns a sub-graph\n *\n * @param session the current session\n * @param innerVertices a collection of vertices\n * @param grouping the current grouping to set the property\n * @return a subGraph with all the set of vertices\n * @throws ExecutionException if the sub-graph cannot be built.\n * @throws InterruptedException if the sub-graph cannot be built.\n */\n PgxGraph apply(Session session, VertexCollection<Integer> innerVertices, int grouping)\n throws ExecutionException, InterruptedException;\n\n\n /**\n *\n * Returns a sub-graph with the set of inner-vertices blocked.\n *\n * @param session the current session\n * @param graph the graph that we need to traverse\n * @param innerVertices a collection of vertices inside of the super-node\n * @param vertexCollection a collection of vertices inside of this new sub-graph\n * @param grouping the current grouping to set the property\n * @param block if you want add the property BLOCK, to identify the nodes inside of the super-node\n * and outside\n * @return a subGraph with all the set of vertices\n * @throws ExecutionException if the sub-graph cannot be built.\n * @throws InterruptedException if the sub-graph cannot be built.\n */\n PgxGraph apply(Session session, PgxGraph graph, VertexCollection<Integer> innerVertices,\n VertexCollection<Integer> vertexCollection, int grouping, boolean block)\n throws ExecutionException, InterruptedException;\n\n\n /**\n * Check if a vertex should be blocked\n *\n * @param innerVertices the set of vertices inside of the super-node\n * @param vb the vertex builder\n * @param edge the current edge.\n * @param isSrc if the vertex that we need treat is the source or the destination\n */\n void checkBlockingOfVertex(VertexCollection<Integer> innerVertices, VertexBuilder<Integer> vb, PgxEdge edge,\n boolean isSrc);\n\n}", "title": "" }, { "docid": "d758af08c1ff45bf847b99924d84b150", "score": "0.5271696", "text": "abstract public String compute(Graph graph, GraphUpdate update);", "title": "" }, { "docid": "f19432ff3cb9c2d3e2b9824d16b59713", "score": "0.52664953", "text": "public static void main(String[] args) {\n\t\t \n\t\t AdjacencyListGraph graph = new AdjacencyListGraph(\"first\");\n\t\t graph.addNode(\"A\");\n graph.addNode(\"B\");\n graph.addNode(\"C\");graph.addNode(\"D\");graph.addNode(\"E\");\n graph.addEdge(\"AB\", \"A\", \"B\");\n graph.addEdge(\"BC\", \"B\", \"C\");\n graph.addEdge(\"CA\", \"C\", \"A\");\n graph.addEdge(\"AD\", \"A\", \"D\");graph.addEdge(\"DB\", \"D\", \"B\");\n \n for (Node e :graph.getNodeSet()){\n \t StringBuffer strbuf = new StringBuffer();\n \t for(org.graphstream.graph.Edge ed:e.getEachEdge()){\n \t\t if(!ed.getTargetNode().toString().equals(e.toString()))\n \t\t strbuf.append(ed.getTargetNode().toString());\n \t }\n \t System.out.println(strbuf.toString());\n }\n //System.out.println(e.toString());\n //graph.display();\n \n\t\t/* UndirectedGraph<String, DefaultEdge> g =\n\t\t new SimpleGraph<String, DefaultEdge>(DefaultEdge.class);\n\n\t\t String v1 = \"v1\";\n\t\t String v2 = \"v2\";\n\t\t String v3 = \"v3\";\n\t\t String v4 = \"v4\";\n\n\t\t // add the vertices\n\t\t g.addVertex(v1);\n\t\t g.addVertex(v2);\n\t\t g.addVertex(v3);\n\t\t g.addVertex(v4);\n\n\t\t // add edges to create a circuit\n\t\t g.addEdge(v1, v2);\n\t\t g.addEdge(v2, v3);g.addEdge(v2, v4);\n\t\t g.addEdge(v3, v4);\n\t\t g.addEdge(v4, v1);\n\n\t\t System.out.println(g.toString());*/\n\t\t \t\t \n\t\t /* \t Graph g = new Graph(); \n\t\t \n\t\t g.addNode( 0, 1);\n\t\t g.addNode( 0, 4);\n\t\t g.addNode( 1, 3);\n\t\t g.addNode( 1, 2);\n\t\t g.addNode( 1, 4);\n\t\t g.addNode( 2, 3);\n\t\t g.addNode( 3, 4);\n\t\t g.addNode(5,4);\n\t\t \n\t\t g.printGraph();\n\t\t \n\t\t Edge e1 = new Edge(0, 1);\n\t\t Edge e2 = new Edge(1, 2);\n\t\t Edge e3 = new Edge(2, 3);\n\t\t Edge e4 = new Edge(3, 4);\n\t\t ArrayList<Edge> ar = new ArrayList<Edge>();\n\t\t ar.add(e1);ar.add(e2);ar.add(e3);ar.add(e4);\n\t\t \n\t\t System.out.println(g.isCircle(5, ar));*/\n\t }", "title": "" }, { "docid": "f83d2f19682b035d9bef2c39e85be6ad", "score": "0.52494025", "text": "void visit(Dirigido<T> g, Vertex<T> v, Edge<T> e);", "title": "" }, { "docid": "0ccbd95ccc15d8d203d710e96f311048", "score": "0.52449703", "text": "protected void out(Vertex<T> v) {}", "title": "" }, { "docid": "7e96c5b409f93f13fc5bf9dd48249d5b", "score": "0.52431107", "text": "public interface QueryNode extends ValueExpression\n{\n}", "title": "" }, { "docid": "c2885db4a90971f1ac4c6bdf877d4f0d", "score": "0.52299637", "text": "public void testStandardExplode()\n {\n Graph g = getGraph( );\n ReifierStd.reifyAs( g, node( \"a\" ), triple( \"p Q r\" ) );\n Graph r = GraphMemFactory.createDefaultGraph( );\n graphAdd( r, \"a rdf:type rdf:Statement; a rdf:subject p; a rdf:predicate Q; a rdf:object r\" );\n assertEquals( 4, g.size() );\n assertIsomorphic( r, g );\n }", "title": "" }, { "docid": "034430fd7ebf0e8ea137f8e165880887", "score": "0.5229614", "text": "public IteratorGraph() {\n\t\tthrow new UnsupportedOperationException();\n\t}", "title": "" }, { "docid": "613796480462f3c37f957d91acb9aac0", "score": "0.5213984", "text": "public interface GraphFactory {\n\n Graph build(int height, int width);\n}", "title": "" }, { "docid": "279f9bd2a393ad3639cdcae36e86d1da", "score": "0.5211693", "text": "public interface UndirectedGraph<N,E>\n{\n\tpublic ImmutableSet<N> getNodes() throws UndirectedGraphException;\n\t\n\tpublic boolean isNodeExist(N node) throws UndirectedGraphException;\n\t\n\tpublic boolean isEdgeExist(Pair<N> nodes) throws UndirectedGraphException;\n\t\n\tpublic E getEdgeContents(Pair<N> nodes) throws UndirectedGraphException;\n\t\n\tpublic ImmutableSet<N> getNeighbors(N node) throws UndirectedGraphException;\n\t\n\tpublic void addNode(N node) throws UndirectedGraphException;\n\t\n\tpublic void removeNode(N node) throws UndirectedGraphException;\n\t\n\tpublic void addEdge(Pair<N> nodes, E edgeContents) throws UndirectedGraphException;\n\t\n\tpublic void setEdgeContents(Pair<N> nodes, E edgeContents) throws UndirectedGraphException;\n\t\n\tpublic void removeEdge(Pair<N> nodes) throws UndirectedGraphException;\n}", "title": "" }, { "docid": "9b9c1cb11d82610680e098edde7d0f9c", "score": "0.5206054", "text": "public String getGraph()\n {\n return null;\n }", "title": "" }, { "docid": "363fb744681ba63f4254c9406674048e", "score": "0.5201684", "text": "Graph<Object, Relation> transformForLayout(Hypergraph<Object, Relation> graph);", "title": "" }, { "docid": "df227ef56831647999e1906ca917db69", "score": "0.52002394", "text": "public ConcreteVerticesGraph() {\n\t\t\n\t}", "title": "" }, { "docid": "be3377f4bc0d9bac06e09fe9576ad8c1", "score": "0.5191129", "text": "public Graph buildGraph() {\n /*\n * after Graph class is implemented do VV\n * \n * newGraph = new Graph(Receipts) \n * or newGraph = new Graph(Receipts.values)?\n * \n * return newGraph\n */\n return null;\n }", "title": "" }, { "docid": "64168f4d840af0654818fcc30cdd4de6", "score": "0.51899135", "text": "public interface PositionedNode extends Node<PositionedNode> {\n}", "title": "" }, { "docid": "0be90e7e8892be34bb9154e3236bb7b9", "score": "0.5189344", "text": "@Override\n\tpublic void visit(BpelSequence sequence) {\n\t\t\n\t}", "title": "" }, { "docid": "479c06a88772b390c852bf788947903e", "score": "0.518845", "text": "@Override\r\n\tpublic void visit(BinExpression exp) {\n\r\n\t}", "title": "" }, { "docid": "35a29a06da8213e0f3945560adff4bb6", "score": "0.518745", "text": "abstract public Vertex getReadIn();", "title": "" }, { "docid": "9a2401e70669b9297e7374bbce262722", "score": "0.5186441", "text": "void visit(Dirigido<T> g, Vertex<T> v) throws E;", "title": "" }, { "docid": "999c405956d4e9ce164fe97ad7c19d75", "score": "0.5184374", "text": "public interface Graph {\n\n void addVertex(Vertex vertex);\n void addEdge(Vertex v1, Vertex v2, DefaultWeightedEdge weightedEdge);\n}", "title": "" }, { "docid": "9c2c64f0adcd4a3dc8b27ee1c0ac9908", "score": "0.5182055", "text": "public interface Graphvizable {\n\n /** Get <a href=\"http://www.graphviz.org/content/dot-language\">dot</a> \n representation.<p>\n */\n String toDot();\n}", "title": "" }, { "docid": "4dd2a6d137f3f2dc5cdd4c9210afd81a", "score": "0.51779157", "text": "public IUserInfo vertexAggregate(Collection<IUserInfo> infos);", "title": "" }, { "docid": "644fc62d797cfb1156ccff640d85ed64", "score": "0.5174888", "text": "public interface RelationshipElement extends Edge {\n}", "title": "" }, { "docid": "53bc2e7bbd088b66f170d3237bf4e2a9", "score": "0.51719266", "text": "interface IVisitable \n{\n public void accept(IVisitor visitor);\n //public Shape accept(IVisitor visitor);\n //public String accept(IVisitor visitor);\n //public double accept(IVisitor visitor);\n\n}", "title": "" }, { "docid": "02045e381d75bb5f700d1d91ea1d6a0a", "score": "0.51710945", "text": "protected Graph<VLabel, ELabel> theGraph() {\n return _graph;\n }", "title": "" }, { "docid": "3e7ed1a8fb4f86c95c3038e4b172d0c4", "score": "0.51652414", "text": "public interface Edge extends Petrinet {\n}", "title": "" }, { "docid": "0cad84b7cfbd1e250741db88c78e19e0", "score": "0.51545185", "text": "public interface LogicoLexicoVisitor\n{\n public Object visit(SimpleNode node, Object data);\n public Object visit(ASTprogram node, Object data);\n}", "title": "" }, { "docid": "360c5e133dc41e25427059212ced5bb1", "score": "0.5149", "text": "public interface Transformer {\n\t\n\t/**\n\t * Transforms source to IGraph instance.\n\t * \n\t * @param source Stream of input data.\n\t * @return Abstract Graph representation.\n\t * @throws TransformationException When the input contains error. \n\t */\n\tIGraph getGraph(InputStream source) throws TransformationException;\n\t\n}", "title": "" }, { "docid": "31f1a7fdb57cb4118ccd2764bdf9b4aa", "score": "0.5140183", "text": "public void visit(RelOpNode p_node) {\n\r\n\t}", "title": "" }, { "docid": "a1c37a993473224241e4a6a28a37e371", "score": "0.5139286", "text": "public GenericGraph() {\n nodes = new XSet<N>();\n arcs = new XSet<A>();\n nodeMap = new HashMap<String,N>();\n }", "title": "" }, { "docid": "3ea49373d54470626d9eab65db98cbcc", "score": "0.51387453", "text": "public IUserInfo vertexAggregate(IUserInfo...infos);", "title": "" }, { "docid": "952b393a2d0603dc4c30392e7952a811", "score": "0.5137377", "text": "public Graph graph_of()\r\n {\r\n return term[0].graph_of();\r\n }", "title": "" }, { "docid": "32cd312a6cc286b8125ba5ba0d4296a5", "score": "0.51297635", "text": "public abstract void visit(G sdf)throws SDF4JException;", "title": "" }, { "docid": "3b00c1965df1581b922351ea00a0058a", "score": "0.5115633", "text": "public interface CollectorNode extends TextNode {\n List<TextNode> getChildren();\n}", "title": "" }, { "docid": "48ba58fa54ff964158aabcff0e43c3d3", "score": "0.5105619", "text": "protected abstract GC executeForPattern(LG graph);", "title": "" }, { "docid": "466919ed40d2664720d3893257bcb5d8", "score": "0.50907785", "text": "private static interface EdgeVisitor {\n void next(EdgeIteratorState edgeBase, int index);\n }", "title": "" }, { "docid": "8e897c7fa2b855b9da3bd4d62380ed99", "score": "0.5089284", "text": "private DirectedGraph evalSingleOp(char operation, DirectedGraph op1) {\n DirectedGraph result = new DirectedGraph();\n\n switch (operation) {\n case ADD:\n result = addGraphs(op1);\n break;\n case QMARK:\n result = qMarkGraphs(op1);\n break;\n case STAR:\n result = starGraphs(op1);\n break;\n }\n\n return result;\n }", "title": "" }, { "docid": "92f26ae6383f087b6fdd87b402cf5c1b", "score": "0.50871307", "text": "abstract DisplayableItemNode[] generateNodes();", "title": "" }, { "docid": "e69687df6182bbd510d7d7f1b457a37b", "score": "0.5086797", "text": "public interface IndefiniteGraph<N, E> extends IndefiniteSimpleGraph<N> {\n\n @Override\n default Collection<N> getAdjacentTargets(N node) {\n return adjacentTargetsStream(node).collect(Collectors.toList());\n }\n\n @Override\n default Stream<N> adjacentTargetsStream(N node) {\n return outgoingEdgesStream(node).map(this::getTarget);\n }\n\n @Override\n default IndefiniteGraph<N, E> asNormalGraph() {\n return this;\n }\n\n /**\n * Retrieves the outgoing edges of a given node.\n *\n * @param node\n * the node.\n *\n * @return a {@link Collection} of all outgoing edges, or <code>null</code> if the node has no outgoing edges.\n */\n Collection<E> getOutgoingEdges(N node);\n\n default Stream<E> outgoingEdgesStream(N node) {\n return getOutgoingEdges(node).stream();\n }\n\n default Collection<E> getEdgesBetween(N from, N to) {\n return getOutgoingEdges(from).stream()\n .filter(e -> Objects.equals(getTarget(e), to))\n .collect(Collectors.toList());\n }\n\n /**\n * Retrieves, for a given edge, its target node.\n *\n * @param edge\n * the edge.\n *\n * @return the target node of the given edge.\n */\n N getTarget(E edge);\n\n}", "title": "" }, { "docid": "16d2cfdcc7e31443bbec88deab669aa5", "score": "0.50866145", "text": "public interface MSTResult {\r\n\r\n\t/**\r\n\t * Returns the weight of the minimum spanning tree.\r\n\t * \r\n\t * @return Weight of the minimum spanning tree.\r\n\t */\r\n\tpublic double getWeight();\r\n\r\n\t/**\r\n\t * Returns a list of CyEdges constituting the minimum spanning tree.\r\n\t * \r\n\t * @return A list of CyEdges constituting the minimum spanning tree.\r\n\t */\r\n\tpublic Iterable<CyEdge> getMST();\r\n}", "title": "" }, { "docid": "95b7c5cc4f9cef03c11b027b58959b26", "score": "0.5079129", "text": "private static CannedBinaryTokenStream.BinaryToken[] createGiantGraphWithNoSide() {\n List<CannedBinaryTokenStream.BinaryToken> tokens = new ArrayList<>();\n return tokens.toArray(new CannedBinaryTokenStream.BinaryToken[0]);\n }", "title": "" }, { "docid": "2ebd19dda5cba991a990f1f6b4477595", "score": "0.50782174", "text": "static boolean isgraph(int ch) {\n\n\t\treturn (isascii(ch) && (ctype[ch] & DG) != 0);\n\t}", "title": "" }, { "docid": "fa46982b986b285f2c380075e8827bff", "score": "0.5075448", "text": "protected abstract Collection<TraversalMediumType> getTraversalMediumCollection();", "title": "" }, { "docid": "5aab41e7291110e779f2c348481df8f3", "score": "0.50711274", "text": "public interface AstNodeVisitor\r\n{\r\n // Visit query nodes\r\n public Object visitAggregateFunctionNode(AggregateFunctionNode ast_node) throws QueryCompilationException;\r\n \r\n public Object visitAttributeReference(AttributeReference ast_node) throws QueryCompilationException;\r\n \r\n public Object visitBooleanLiteral(BooleanLiteral ast_node) throws QueryCompilationException;\r\n \r\n public Object visitCaseFunctionNode(CaseFunctionNode ast_node) throws QueryCompilationException;\r\n \r\n public Object visitCastFunctionNode(CastFunctionNode ast_node) throws QueryCompilationException;\r\n \r\n public Object visitCreateStatement(CreateStatement ast_node) throws QueryCompilationException;\r\n \r\n public Object visitDropStatement(DropStatement ast_node) throws QueryCompilationException;\r\n \r\n public Object visitExistsNode(ExistsNode ast_node) throws QueryCompilationException;\r\n \r\n public Object visitExternalFunctionNode(ExternalFunctionNode ast_node) throws QueryCompilationException;\r\n \r\n public Object visitFromExpressionItem(FromExpressionItem ast_node) throws QueryCompilationException;\r\n \r\n public Object visitGeneralFunctionNode(GeneralFunctionNode ast_node) throws QueryCompilationException;\r\n \r\n public Object visitGroupByItem(GroupByItem ast_node) throws QueryCompilationException;\r\n \r\n public Object visitJoinItem(JoinItem ast_node) throws QueryCompilationException;\r\n \r\n public Object visitNullLiteral(NullLiteral ast_node) throws QueryCompilationException;\r\n \r\n public Object visitNumericLiteral(NumericLiteral ast_node) throws QueryCompilationException;\r\n \r\n public Object visitOptionItem(OptionItem ast_node) throws QueryCompilationException;\r\n \r\n public Object visitOrderByItem(OrderByItem ast_node) throws QueryCompilationException;\r\n \r\n public Object visitParameter(DynamicParameter ast_node) throws QueryCompilationException;\r\n \r\n public Object visitQueryExpression(QueryExpression ast_node) throws QueryCompilationException;\r\n \r\n public Object visitQuerySpecification(QuerySpecification ast_node) throws QueryCompilationException;\r\n \r\n public Object visitSelectAllItem(SelectAllItem ast_node) throws QueryCompilationException;\r\n \r\n public Object visitSelectExpressionItem(SelectExpressionItem ast_node) throws QueryCompilationException;\r\n \r\n public Object visitSetOpExpression(SetOpExpression ast_node) throws QueryCompilationException;\r\n \r\n public Object visitStringLiteral(StringLiteral ast_node) throws QueryCompilationException;\r\n \r\n public Object visitSwitchNode(SwitchNode ast_node) throws QueryCompilationException;\r\n \r\n public Object visitTupleFunctionNode(TupleFunctionNode ast_node) throws QueryCompilationException;\r\n \r\n public Object visitCollectionFunctionNode(CollectionFunctionNode ast_node) throws QueryCompilationException;\r\n \r\n public Object visitTupleItem(TupleItem ast_node) throws QueryCompilationException;\r\n \r\n public Object visitAccessStatement(AccessStatement ast_node) throws QueryCompilationException;\r\n \r\n public Object visitInsertStatement(InsertStatement ast_node) throws QueryCompilationException;\r\n \r\n public Object visitUpdateStatement(UpdateStatement ast_node) throws QueryCompilationException;\r\n \r\n public Object visitDeleteStatement(DeleteStatement ast_node) throws QueryCompilationException;\r\n \r\n public Object visitWithItem(WithItem ast_node) throws QueryCompilationException;\r\n \r\n // Visit action nodes\r\n public Object visitVariableDeclaration(VariableDeclaration ast_node) throws FplCompilationException;\r\n \r\n public Object visitParameterDeclaration(ParameterDeclaration ast_node) throws FplCompilationException;\r\n \r\n public Object visitExceptionDeclaration(ExceptionDeclaration ast_node) throws FplCompilationException;\r\n \r\n public Object visitIfStatement(IfStatement ast_node) throws FplCompilationException;\r\n \r\n public Object visitRaiseStatement(RaiseStatement ast_node) throws FplCompilationException;\r\n \r\n public Object visitReturnStatement(ReturnStatement ast_node) throws FplCompilationException;\r\n \r\n public Object visitExceptionHandler(ExceptionHandler ast_node) throws FplCompilationException;\r\n \r\n public Object visitFunctionBody(Body ast_node) throws FplCompilationException;\r\n \r\n public Object visitFunctionDeclarationSection(DeclarationSection ast_node) throws FplCompilationException;\r\n \r\n public Object visitFunctionDefinition(FunctionDefinition ast_node) throws FplCompilationException;\r\n \r\n public Object visitActionDefinition(ActionDefinition ast_node) throws FplCompilationException;\r\n \r\n public Object visitBranch(Branch ast_node) throws FplCompilationException;\r\n \r\n public Object visitAssignmentStatement(AssignmentStatement ast_node) throws FplCompilationException;\r\n \r\n public Object visitActionInvocation(ActionInvocation ast_node) throws FplCompilationException;\r\n \r\n public Object visitTupleAllItem(TupleAllItem ast_node) throws QueryCompilationException;\r\n\r\n public Object visitFlattenItem(FlattenItem flattenItem) throws QueryCompilationException;\r\n}", "title": "" }, { "docid": "e95bd0cb332399df400a4b9515b647b3", "score": "0.50642174", "text": "public void test2() {\n\t\tGraphNonGeneric gc = new GraphNonGeneric(4);\n\t\taddNodeUtil.addNodeNonGeneric_CycleTest(gc);\n\t\tSystem.out.println(gc.isCyclic());\n\t}", "title": "" }, { "docid": "250b1394cc19113fed0fdec255e2c6ed", "score": "0.5059072", "text": "public void testExampleTrace1(){\r\n Node X = new ContinuousVariable(\"X\");\r\n Node Y = new ContinuousVariable(\"Y\");\r\n Node W = new ContinuousVariable(\"W\");\r\n Node Z = new ContinuousVariable(\"Z\");\r\n\r\n Pag G1 = new Pag(Arrays.asList(X, Y, Z));\r\n G1.addEdge(new Edge(X, Y, Endpoint.CIRCLE, Endpoint.CIRCLE));\r\n G1.addEdge(new Edge(Y, Z, Endpoint.CIRCLE, Endpoint.CIRCLE));\r\n G1.addUnderlineTriple(new Triple(X, Y, Z));\r\n\r\n Pag G2 = new Pag(Arrays.asList(X, W, Z));\r\n G2.addEdge(new Edge(X, W, Endpoint.CIRCLE, Endpoint.CIRCLE));\r\n G2.addEdge(new Edge(W, Z, Endpoint.CIRCLE, Endpoint.CIRCLE));\r\n G2.addUnderlineTriple(new Triple(X, W, Z));\r\n\r\n IonSearch search = new IonSearch(Arrays.asList(G1, (Graph)G2));\r\n\r\n List<Graph> pags = search.search();\r\n Set<Graph> outputPags = new HashSet<Graph>();\r\n for (Graph graph : pags) {\r\n outputPags.add(graph);\r\n }\r\n\r\n Pag O1 = new Pag(Arrays.asList(X, Y, W, Z));\r\n O1.addEdge(new Edge(X, Y, Endpoint.CIRCLE, Endpoint.CIRCLE));\r\n O1.addEdge(new Edge(Y, W, Endpoint.CIRCLE, Endpoint.CIRCLE));\r\n O1.addEdge(new Edge(Z, W, Endpoint.CIRCLE, Endpoint.CIRCLE));\r\n O1.addUnderlineTriple(new Triple(Y, W, Z));\r\n O1.addUnderlineTriple(new Triple(X, Y, W));\r\n\r\n Pag O2 = new Pag(Arrays.asList(X, W, Y, Z));\r\n O2.addEdge(new Edge(X, W, Endpoint.CIRCLE, Endpoint.CIRCLE));\r\n O2.addEdge(new Edge(Y, Z, Endpoint.CIRCLE, Endpoint.CIRCLE));\r\n O2.addEdge(new Edge(Y, W, Endpoint.CIRCLE, Endpoint.CIRCLE));\r\n O2.addUnderlineTriple(new Triple(X, W, Y));\r\n O2.addUnderlineTriple(new Triple(W, Y, Z));\r\n\r\n Set<Pag> expectedPags = new HashSet<Pag>();\r\n expectedPags.add(O2);\r\n expectedPags.add(O1);\r\n\r\n assertTrue(expectedPags.equals(outputPags));\r\n\r\n\r\n }", "title": "" }, { "docid": "7b0c404c0a01610005265bc22ec15d1b", "score": "0.5051148", "text": "@Override\n\tpublic void visitTerminal(TerminalNode node) {\n\t\t\n\t}", "title": "" }, { "docid": "7b0c404c0a01610005265bc22ec15d1b", "score": "0.5051148", "text": "@Override\n\tpublic void visitTerminal(TerminalNode node) {\n\t\t\n\t}", "title": "" }, { "docid": "0be59f6a07aad071f6425bba127497cb", "score": "0.50495315", "text": "public UserInfoAggregator getVertexAggregator();", "title": "" }, { "docid": "ea368dcc1f0f1cc5075bebe535b83fc8", "score": "0.5039191", "text": "public interface DagRelationship extends Relationship {\n\n public void setVertexInDag(Map<UUID, Vertex<?>> m);\n\n}", "title": "" }, { "docid": "9f609cf2909b0e34be4ffa57f29ec450", "score": "0.50382835", "text": "public abstract void addVertexImplementation();", "title": "" }, { "docid": "45a61fd3d2e32329cca3ae054dc26ce9", "score": "0.5036993", "text": "static interface GenerateNode {\n Node gen(int i, int j, double score, Node pN);\n }", "title": "" }, { "docid": "a081b319156f63bd00fbc93b5dd69645", "score": "0.5034903", "text": "private void doSubgraph(Module mod) {\r\n\t\tBlackBoxGraph physGraph = new BlackBoxGraph(ID.showLogical(mod), mod,\r\n\t\t\t\tnodeCount++, fontSize);\r\n\t\tfor (Component comp : mod.getComponents()) {\r\n\t\t\tphysGraph.addComponent(comp);\r\n\t\t\tnodeCount++;\r\n\t\t}\r\n\t\tphysGraph.graphAddedComponents();\r\n\t\tgraph.addSubgraph(physGraph);\r\n\t}", "title": "" }, { "docid": "812fcc3d51ad500aea689f15c0f1fb39", "score": "0.50343835", "text": "public interface ISentenceNode <V>\r\n{\r\n\t/** sentence evaluation */\r\n\tpublic V evaluate();\r\n\t\r\n\t/** debugging */\r\n\tpublic void print(int offset);\r\n}", "title": "" } ]
ac37d9b12b72de1d307fec39c46cfbdc
GET /partners/:id : get the "id" partner.
[ { "docid": "e7304fa3a8a720542ccb41340c15f466", "score": "0.7973053", "text": "@RequestMapping(value = \"/partners/{id}\",\n method = RequestMethod.GET,\n produces = MediaType.APPLICATION_JSON_VALUE)\n @Timed\n public ResponseEntity<PartnerDTO> getPartner(@PathVariable Long id) {\n log.debug(\"REST request to get Partner : {}\", id);\n PartnerDTO partnerDTO = partnerService.findOne(id);\n return Optional.ofNullable(partnerDTO)\n .map(result -> new ResponseEntity<>(\n result,\n HttpStatus.OK))\n .orElse(new ResponseEntity<>(HttpStatus.NOT_FOUND));\n }", "title": "" } ]
[ { "docid": "78e6834cfd3a73302d64b23a9eda23e8", "score": "0.7653489", "text": "@CrossOrigin(origins = \"http://112.137.130.47:8000\")\n @RequiredRoles({Role.ADMIN, Role.STUDENT, Role.PARTNER1})\n @RequestMapping(value=\"/partner/{partnerId}\", method = RequestMethod.GET)\n public Partner showPartner(@PathVariable(\"partnerId\") int partnerId){\n return partnerService.showPartner(partnerId);\n }", "title": "" }, { "docid": "bcf6c8f0f41a74a21e767db0e66e7762", "score": "0.72250223", "text": "@Override\n\tpublic Partner findPartnerInfo(int partnerId) {\n\t\treturn mapper.selectByPrimaryKey(partnerId);\n\t}", "title": "" }, { "docid": "86e74148b6e332a62abf3d21961d4082", "score": "0.7057978", "text": "public Long getPartnerId() {\n return partnerId;\n }", "title": "" }, { "docid": "19a6be16cb4d0208d5aa78bdb97e2055", "score": "0.6961066", "text": "public Integer getPartnerId() {\r\n\t\treturn partnerId;\r\n\t}", "title": "" }, { "docid": "1a9dc78e5e0dcfe19e5ad1abd1f93bde", "score": "0.6821399", "text": "@CrossOrigin(origins = \"http://112.137.130.47:8000\")\n @RequiredRoles({Role.STUDENT,Role.ADMIN,Role.PARTNER1})\n @RequestMapping(value=\"/partner\", method = RequestMethod.GET)\n public List<Partner> getPartners(){\n return partnerService.getPartners();\n }", "title": "" }, { "docid": "d916c3b31606a56796c7c0bd475c75a2", "score": "0.67031777", "text": "public Partner getPartner() {\n\t\treturn this.partner;\n\t}", "title": "" }, { "docid": "ffa3a28f52c4d1ee934a4519521a23ca", "score": "0.6368776", "text": "public boolean isPartner(PeerIdentity id) {\n return partners.containsKey(id);\n }", "title": "" }, { "docid": "2df776f680609e982d7001e7abd43c3e", "score": "0.6243111", "text": "public void setPartnerId(Integer partnerId) {\r\n\t\tthis.partnerId = partnerId;\r\n\t}", "title": "" }, { "docid": "ad5b977f36d7714b1eb7b8b5e40f0a21", "score": "0.6198531", "text": "public List<Partner> getAllPartners() {\n return repo.findAll();\n }", "title": "" }, { "docid": "e18d8a3e3d31835a48d1c05de812e82a", "score": "0.6160814", "text": "public void setPartnerId(Long partnerId) {\n this.partnerId = partnerId;\n }", "title": "" }, { "docid": "41dafc1f2f5c0402959da1fe6e02f2ee", "score": "0.6153538", "text": "public void setPartnerId(Integer partnerId) {\n\t\tthis.partnerId = partnerId;\n\t}", "title": "" }, { "docid": "5268f92b956e9d566d54d45ba61f75b1", "score": "0.6080899", "text": "@RequestMapping(value = \"/partners/{id}\",\n method = RequestMethod.DELETE,\n produces = MediaType.APPLICATION_JSON_VALUE)\n @Timed\n public ResponseEntity<Void> deletePartner(@PathVariable Long id) {\n log.debug(\"REST request to delete Partner : {}\", id);\n partnerService.delete(id);\n return ResponseEntity.ok().headers(HeaderUtil.createEntityDeletionAlert(\"partner\", id.toString())).build();\n }", "title": "" }, { "docid": "02f74e2e3ed7441f3c829d8ba01a3dfb", "score": "0.60027087", "text": "@RequestMapping(value = \"/partners\",\n method = RequestMethod.GET,\n produces = MediaType.APPLICATION_JSON_VALUE)\n @Timed\n public ResponseEntity<List<PartnerDTO>> getAllPartners(Pageable pageable)\n throws URISyntaxException {\n log.debug(\"REST request to get a page of Partners\");\n Page<PartnerDTO> page = partnerService.findAll(pageable);\n HttpHeaders headers = PaginationUtil.generatePaginationHttpHeaders(page, \"/api/partners\");\n return new ResponseEntity<>(page.getContent(), headers, HttpStatus.OK);\n }", "title": "" }, { "docid": "90c3af50cc4042ceaae664fa796f51e3", "score": "0.5976592", "text": "public java.lang.String getPartnerClientId() {\n return partnerClientId;\n }", "title": "" }, { "docid": "e64f5d2c25d1a0155f4835a948b2b03d", "score": "0.5944608", "text": "@RequestMapping(value = \"/_search/partners\",\n method = RequestMethod.GET,\n produces = MediaType.APPLICATION_JSON_VALUE)\n @Timed\n public ResponseEntity<List<PartnerDTO>> searchPartners(@RequestParam String query, Pageable pageable)\n throws URISyntaxException {\n log.debug(\"REST request to search for a page of Partners for query {}\", query);\n Page<PartnerDTO> page = partnerService.search(query, pageable);\n HttpHeaders headers = PaginationUtil.generateSearchPaginationHttpHeaders(query, page, \"/api/_search/partners\");\n return new ResponseEntity<>(page.getContent(), headers, HttpStatus.OK);\n }", "title": "" }, { "docid": "cc9b2de616fdb8af54a13b7a191dde4e", "score": "0.5799937", "text": "Party getPartyIdTo();", "title": "" }, { "docid": "55aa72d39a9372480e6f808ebcebc4fe", "score": "0.575433", "text": "public PartData getPart(String recordId) {\n // check local first\n Entry entry = this.entryDAO.getByRecordId(recordId);\n if (entry != null && entry.getVisibility() != Visibility.REMOTE.getValue()) {\n PermissionsController permissionsController = new PermissionsController();\n if (permissionsController.isPubliclyVisible(entry))\n return ModelToInfoFactory.getInfo(entry);\n }\n\n List<RemotePartner> partners = this.remotePartnerDAO.getRegistryPartners();\n for (RemotePartner partner : partners) {\n if (partner.getPartnerStatus() != RemotePartnerStatus.APPROVED)\n continue;\n\n PartData partData = this.remoteContact.getPublicEntry(partner.getUrl(), recordId, partner.getApiKey());\n\n // if the part is just a remote then the main one is on some other ICE instance\n if (partData == null || partData.getVisibility() == Visibility.REMOTE)\n continue;\n\n return partData;\n }\n return null;\n }", "title": "" }, { "docid": "501a6f8a1542a31596a594333b3f0481", "score": "0.5734205", "text": "@Override\r\n public Partner getPartner(String userid) {\r\n\r\n ResultSet rs;\r\n Partner partner = null;\r\n //con = DBConnector.getInstance().getConnection();\r\n try {\r\n\r\n PreparedStatement sqlDel = con.prepareStatement(\"SELECT * FROM partners WHERE user_id = ?\");\r\n //String sqlDelete1 = \"SELECT * FROM partners WHERE user_id = '\" + userid + \"'\";\r\n sqlDel.setString(1, userid);\r\n rs = sqlDel.executeQuery();\r\n\r\n while (rs.next()) {\r\n\r\n partner = new Partner(rs.getString(\"user_id\"), rs.getInt(\"p_id\"), rs.getString(\"p_name\"), rs.getString(\"address\"), rs.getInt(\"cvr\"), rs.getInt(\"phone\"), rs.getInt(\"zip\"));\r\n }\r\n\r\n } catch (Exception e) {\r\n System.out.println(\"Fail in DBfacade - deletePartner\");\r\n System.out.println(e.getMessage());\r\n }\r\n// finally {\r\n// try {\r\n// con.close();\r\n// } catch (Exception e) {\r\n// }\r\n// }\r\n\r\n return partner;\r\n }", "title": "" }, { "docid": "12a1200804119028421525f482670e67", "score": "0.57316095", "text": "public TradeUser getPartner() {\n return TRADE_USER_PARTNER;\n }", "title": "" }, { "docid": "1b35298ceaa0e0143336d3ed6902855f", "score": "0.56806064", "text": "@Override\n\tpublic java.lang.Long getPartnerId() {\n\t\treturn _assetManageReqEntity.getPartnerId();\n\t}", "title": "" }, { "docid": "24d769028b33b573e7317e8bea3cdf1d", "score": "0.5638043", "text": "AdPartner findByPartnerName(String partnerName);", "title": "" }, { "docid": "ac6b4ab7032d88cfbc7881e8adb336ed", "score": "0.55916315", "text": "public String getApplicationPartnerId() {\r\n\t\treturn applicationPartnerId;\r\n\t}", "title": "" }, { "docid": "fc62a68a015185b4ac19f584598389a2", "score": "0.5580314", "text": "@Override\n\tpublic Partner getPartnerByMail(String userName) {\n\t\treturn partnerDao.getPartnerByMail(userName);\n\t}", "title": "" }, { "docid": "196be503e76e9781b5e407a40b8eda34", "score": "0.55576736", "text": "public Collection getPartners() {\n return new ArrayList(partners.keySet());\n }", "title": "" }, { "docid": "539502becfcec1b6d2ea1bf304bb25e4", "score": "0.5518444", "text": "Party getPartyIdFrom();", "title": "" }, { "docid": "0378a18543e9d7255a4b8d223a8c9229", "score": "0.55115134", "text": "public List<Socios> getAllPartners() {\n\t\tList<Socios> partners = new ArrayList<Socios>();\n\n\t\ttry {\n\t\t\tStatement sentencia = conexion.createStatement();\n\t\t\tResultSet rs = sentencia.executeQuery(\"select * from socios\");\n\t\t\twhile (rs.next()) {\n\t\t\t\tpartners.add(new Socios(rs.getString(1), rs.getString(2), rs.getString(3), rs.getString(4)));\n\t\t\t}\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\treturn partners;\n\t}", "title": "" }, { "docid": "04bc1f934e957df2be1729632b06cac5", "score": "0.55100095", "text": "public java.lang.String getPartnername () {\n\t\treturn partnername;\n\t}", "title": "" }, { "docid": "b1ea230587b9062e92795cb980ab8f55", "score": "0.54864717", "text": "public Person getInterviewer(int id) {\r\n\t\treturn getPerson(interviewers, id);\r\n\t}", "title": "" }, { "docid": "535cd7d0a271b9140f8918a1b1754f26", "score": "0.54861015", "text": "@GET\n @Path(\"{id}\")\n public Parqueadero findById(@PathParam(\"id\") Integer id) {\n return parqueaderoEJB.find(id);\n }", "title": "" }, { "docid": "b555178274715afd41ce52b3f7b23358", "score": "0.5482207", "text": "@CrossOrigin(origins = \"http://112.137.130.47:8000\")\n @RequiredRoles({Role.ADMIN, Role.PARTNER1})\n @RequestMapping(value=\"/partner/{partnerId}\", method = RequestMethod.PUT)\n public Partner editPartner(@PathVariable(\"partnerId\") int partnerId, @RequestBody PartnerDTO partnerDTO, HttpServletRequest request){\n String token = request.getHeader(\"auth-token\");\n return partnerService.editPartner(partnerId, partnerDTO, token);\n }", "title": "" }, { "docid": "d4ce18d80c421e480e615489e9ea39e2", "score": "0.54664665", "text": "public void removePartner(PeerIdentity id) {\n if (isPartner(id)) {\n log.debug(\"Removing partner \" + id);\n partners.remove(id);\n lastPartnerRemoveTime = TimeBase.nowMs();\n }\n }", "title": "" }, { "docid": "a83de9226a12538b4c890200ff23ac6e", "score": "0.5396036", "text": "@Override\n public void load(String id) {\n if (persistenceCache.containsPartner(id)) {\n return;\n }\n\n if (garbageCache != null &&\n garbageCache.containsPartner(id)) {\n swapObject(id);\n return;\n }\n\n PartnerData partnerData = builder.initPartnerData(id);\n if (partnerData == null) {\n MessageUtils.warning(\"Partner \" + id + \" data is null.\");\n return;\n }\n\n PartnerProperties partnerProperties = builder.initPartnerProperties(id);\n Partner partner = new PartnerImpl(partnerData, partnerProperties);\n persistenceCache.putPartner(partner.getId(), partner);\n }", "title": "" }, { "docid": "47bb1e55058e1a58f1262fe9ae2935ae", "score": "0.53837353", "text": "public int getParticipantId() {\n return participantId;\n }", "title": "" }, { "docid": "715ebd26a387f4affc1e028fce1fe949", "score": "0.53748596", "text": "public String getPartyId() {\n return partyId;\n }", "title": "" }, { "docid": "4bf786de3b6e82d2e8361c443da408f1", "score": "0.53635657", "text": "public Participant getParticipantById(Integer id) {\n return em.find(Participant.class, id);\n }", "title": "" }, { "docid": "386ca67759a9c0b186fdddb4de6f03fb", "score": "0.53542185", "text": "private int getBPartner()\r\n\t{\r\n\t\tString sql = \"SELECT C_BPartner_ID FROM AD_User WHERE AD_User_ID = \" + AD_User_ID;\r\n\t\t\r\n\t\treturn DB.getSQLValue(null, sql);\r\n\t}", "title": "" }, { "docid": "f97569f3825f5c10d2cb0585fad98518", "score": "0.5344305", "text": "public List<Long> findProjectsByPartnerId(long partnerId) throws DAOException;", "title": "" }, { "docid": "ea7445237c81ab6a6578dcfef304e4a4", "score": "0.5339387", "text": "@RequestMapping(value = \"/clients\", method = RequestMethod.GET)\n public Client getClient(@RequestParam String id)\n {\n checkIfIdInteger(id);\n return clientService.getClient(Integer.parseInt(id));\n }", "title": "" }, { "docid": "7cd89be479bbe8ee0918811ec7a86dd6", "score": "0.53313273", "text": "public Population findPartnerFor(AbstractEAIndividual dad, Population avaiablePartners, int size) {\n return this.selectFrom(avaiablePartners, size);\n }", "title": "" }, { "docid": "0a1eee7e0ee7524a0a7fb50c68bc5407", "score": "0.53217614", "text": "public java.lang.Integer getEdipartnerId () {\n\t\treturn edipartnerId;\n\t}", "title": "" }, { "docid": "c60246776b446e9f1c0fa06fe19c1872", "score": "0.528849", "text": "public Person getCandidate(int id) {\r\n\t\treturn getPerson(candidates, id);\r\n\t}", "title": "" }, { "docid": "097e38185a5785ace2364689cf728e9d", "score": "0.5284576", "text": "public long getPartidoId();", "title": "" }, { "docid": "7e48be07673aa573c2716e4f4f12e821", "score": "0.5267814", "text": "@RequestMapping(value = \"/{id}\", method = RequestMethod.GET)\n\tpublic ResponseEntity<Offer> getOffer(@PathVariable(\"id\") int id){\n\t\tOffer offer = null;\n\t\toffer = this.clinicService.findOfferById(id);\n\t\tif (offer == null) {\n\t\t\treturn new ResponseEntity<Offer>(HttpStatus.NOT_FOUND);\n\t\t}\n\t\treturn new ResponseEntity<Offer>(offer, HttpStatus.OK);\n\t}", "title": "" }, { "docid": "e69da78afd7dca8532e88286ce4e12b1", "score": "0.5255851", "text": "@Override\n\tpublic Party findPartyById(int id) {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "12f09d141146394d81297e1815a63139", "score": "0.5253684", "text": "public String getPartnerType() {\n return this.partnerType;\n }", "title": "" }, { "docid": "92b64579afe539c0691dcaa3cae840d0", "score": "0.52485", "text": "public List<PartnerPersonRec> getAllPersonPartners() throws BacException {\n LOGGER.log(INFO, \"MasterDataDM.getAllPersonPartners() called\");\n List<PartnerPersonRec> persList = new ArrayList<>();\n Query q = em.createNamedQuery(\"allPersPtnrs\");\n List l = q.getResultList();\n ListIterator li = l.listIterator();\n while(li.hasNext()){\n PartnerPerson pers = (PartnerPerson)li.next(); \n if(pers.getClass().getSimpleName().equals(\"User\")){\n continue; \n }\n PartnerPersonRec persRec = this.buildPartnerPersonRec(pers);\n persList.add(persRec);\n }\n return persList;\n }", "title": "" }, { "docid": "4c1b17744f2a24d47e0dc0cd5d4b848e", "score": "0.52382785", "text": "public java.lang.String getPartnerref () {\n\t\treturn partnerref;\n\t}", "title": "" }, { "docid": "636e7bfb10e13401f7ba86a50e43d190", "score": "0.52330714", "text": "IPerson getParticipant();", "title": "" }, { "docid": "5f6dc3cfe90ad238227117dcbe996198", "score": "0.5195557", "text": "private void doViewAllPartners() {\n Scanner sc = new Scanner(System.in);\n\n System.out.println(\"***Hors Management System:: System Administration:: View All Partners\");\n\n List<Partner> partners = partnerControllerRemote.retrieveAllPartners();\n\n partners.forEach((partner) -> {\n System.out.println(\"Partner ID:\" + partner.getPartnerId() + \"Partner Name: \" + partner.getName() + \"Password: \" + partner.getPassword());\n });\n\n System.out.println(\"Press any key to continue...>\");\n sc.nextLine();\n }", "title": "" }, { "docid": "56d38ac8e47fb2e9a16603a0b766f181", "score": "0.5183999", "text": "List<Party> getParties();", "title": "" }, { "docid": "8941be04136fac3fe1d1d85399cb45ff", "score": "0.51703334", "text": "@GET\n @Path(\"/{id}\")\n public Response getSpecific(@PathParam(\"id\") Integer id);", "title": "" }, { "docid": "8941be04136fac3fe1d1d85399cb45ff", "score": "0.51703334", "text": "@GET\n @Path(\"/{id}\")\n public Response getSpecific(@PathParam(\"id\") Integer id);", "title": "" }, { "docid": "9aac0a4d54e8c2269217738852767d21", "score": "0.51669586", "text": "Account getAccount(@PathParam(\"accountId\") long accountId);", "title": "" }, { "docid": "38469ddc549be9090eeefaa9c4cf9bfe", "score": "0.5162579", "text": "public Socios selectPartnerByCode(Socios partnerCode) {\n\t\tSocios socio = null;\n\n\t\ttry {\n\t\t\tPreparedStatement sentencia = conexion.prepareStatement(\"select * from socios where dni = ?\");\n\n\t\t\tsentencia.setString(1, partnerCode.getDni());\n\n\t\t\tResultSet rs = sentencia.executeQuery();\n\t\t\tif (rs.next()) {\n\t\t\t\tsocio = new Socios(rs.getString(1), rs.getString(2), rs.getString(3),rs.getString(4));\n\t\t\t}\n\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\treturn socio;\n\t}", "title": "" }, { "docid": "dd4477901b17d525e6bd582ea7c74334", "score": "0.5132701", "text": "public Proveedor getProveedor(Long idProv) throws Exception;", "title": "" }, { "docid": "52bf4fbb40d9ad63956aeb8d82b82da5", "score": "0.51321226", "text": "Respondent getRespondentById(int id);", "title": "" }, { "docid": "493526a7f307d7b3a5e62f992fea5f45", "score": "0.5129772", "text": "public int getParticipantId() {\n\t\treturn participantId;\n\t}", "title": "" }, { "docid": "e1b5daee0aea58507d84435b4465ea22", "score": "0.51293916", "text": "void addPartner(PeerIdentity id) {\n if (idMgr.isLocalIdentity(id)) {\n return;\n }\n // don't add if recently received multicast from him\n Long lastRcv = (Long)lastMulticastReceived.get(id);\n if (lastRcv != null &&\n\t(TimeBase.msSince(lastRcv.longValue()) < recentMulticastInterval)) {\n return;\n }\n if (log.isDebug() && !isPartner(id)) {\n log.debug(\"Adding partner \" + id);\n }\n partners.put(id, nowLong());\n if (TimeBase.msSince(lastPartnerRemoveTime) > minPartnerRemoveInterval) {\n removeLeastRecent();\n }\n if (partners.size() < minPartners) {\n addFromDefaultList();\n }\n }", "title": "" }, { "docid": "082ef43940ce8f4865802bdc11234512", "score": "0.51282114", "text": "public Person getPerson(int id) {\r\n\t\tif (isInterviewer(id)) return interviewers.get(id);\r\n\t\telse if (isCandidate(id)) return candidates.get(id);\r\n\t\telse return null;\r\n\t}", "title": "" }, { "docid": "096387317287a9460bca4476968c51df", "score": "0.512519", "text": "public String getBPartner()\n\t{\n\t\treturn m_BPartner;\n\t}", "title": "" }, { "docid": "179a526fb3164e3d318166ccf360d6da", "score": "0.50980216", "text": "public String getPartnerReferenceNumber() {\n return proposal.getPartnerReferenceNumber();\n }", "title": "" }, { "docid": "aa48ca6900c6cb2fdd30664ee245355e", "score": "0.5083967", "text": "public void setPartnerClientId(java.lang.String partnerClientId) {\n this.partnerClientId = partnerClientId;\n }", "title": "" }, { "docid": "af70f7da021dcf37a80a6b139f0d7c13", "score": "0.5060935", "text": "java.lang.String getPartnerToken();", "title": "" }, { "docid": "821e693892f1712dd41796495459cb19", "score": "0.50520056", "text": "public long getOfficialVotersId();", "title": "" }, { "docid": "a02b2eb0c212ce7ddc0847bd7227c5ea", "score": "0.50516963", "text": "List<OrderBean> fulfill(int partnerId);", "title": "" }, { "docid": "6f673085afcab96e4160690fb1239566", "score": "0.5049614", "text": "public Provincia encontrarProvinciaPorId(Integer id);", "title": "" }, { "docid": "b7d1bac3d617b3e4936fd52e24520fdc", "score": "0.50415814", "text": "public List<Long> findPartnersByProjectId(long projectId) throws DAOException;", "title": "" }, { "docid": "67e7065918d47abe24cbb11da7073010", "score": "0.5030354", "text": "AdPartner findByUrl(String url);", "title": "" }, { "docid": "1f979416940ea838daa42fd83c41af75", "score": "0.5025156", "text": "public final Long getParticipantId() {\r\n\t\treturn participantId;\r\n\t}", "title": "" }, { "docid": "80f52cae70ca016962414eefd8728d4e", "score": "0.5022796", "text": "int getInviterId();", "title": "" }, { "docid": "76761c9ef19b5c3fa0d272c0038ca6ea", "score": "0.5004503", "text": "@GetMapping(\"/parks/{id}\")\n @Timed\n public ResponseEntity<Park> getPark(@PathVariable Long id) {\n log.debug(\"REST request to get Park : {}\", id);\n Optional<Park> park = parkService.findOne(id);\n return ResponseUtil.wrapOrNotFound(park);\n }", "title": "" }, { "docid": "8415f0d685dd5b5fcddfd7bd89641c63", "score": "0.49898618", "text": "public void addPartner(PeerIdentity id, double probability) {\n log.debug2(\"addPartner(\" + id + \", \" + probability + \")\");\n if (ProbabilisticChoice.choose(probability)) {\n addPartner(id);\n }\n }", "title": "" }, { "docid": "3cd03250a342881ad4b6ebd6121c49a8", "score": "0.49871585", "text": "public int changePartnerNum(int partnerNum, int id) throws DataAccessException {\n Map<String,Object> param = new HashMap<String,Object>();\n\n param.put(\"partnerNum\", new Integer(partnerNum));\n param.put(\"id\", new Integer(id));\n\n return getSqlMapClientTemplate().update(\"MS-PARTNER-RANK-CHANGE-PARTNER-NUM\", param);\n }", "title": "" }, { "docid": "2eb30bd3256a927d64c301f2b0af2244", "score": "0.49759698", "text": "public ProjPartAssoc findAssoc(long projectId, long partnerId) throws DAOException;", "title": "" }, { "docid": "883ff71713b62b2caea2521bc16478d4", "score": "0.4973307", "text": "private static void showPartners() {\n System.out.println(\"** ||-------------------------------------------------|| **\");\n System.out.println(\"** || ~~~~~ Edit an partner ~~~~~ \" +\n \" || **\");\n System.out.println(\"** ||-------------------------------------------------|| **\");\n for (int i = 0; i < partner.size(); i++) {\n System.out.println(\"** || \" + (i + 1) + \" - \" + partner.get(i).getName() +\n \" \" + partner.get(i).getService());\n// System.out.println(i + 1 + \" - \" + partner.get(i).getFirstName() +\n// \" \" + partner.get(i).getLastName());\n }\n System.out.println(\"** || Choose the partner you want to edit: \" +\n \" || **\");\n boolean isNumber; //Validate user input to be integer\n do {\n if (kbd.hasNextInt()) {\n item2 = kbd.nextInt();\n isNumber = true;\n\n } else {\n System.out.println(\"Invalid choice. Try again!\");\n isNumber = false;\n kbd.next();\n }\n } while (!isNumber);\n item2--;\n\n boolean exit3 = false;\n int item3 = 0;\n boolean exit4 = false;\n do {\n System.out.println(\"** ||-------------------------------------------------|| **\");\n System.out.println(\"** || ~~~~~ Edit a partner ~~~~~ \" +\n \" \" +\n \" || **\");\n System.out.println(\"** ||-------------------------------------------------|| **\");\n System.out.println(\"** || 1 - Name: \" + partner.get(item2).getName());\n System.out.println(\"** || 2 - CVR: \" + partner.get(item2).getCvr());\n System.out.println(\"** || 3 - Phone number: \" + partner.get(item2).getPhoneNumber());\n System.out.println(\"** || 4 - E-mail: \" + partner.get(item2).getEmail());\n System.out.println(\"** || 5 - Service: \" + partner.get(item2).getService());\n System.out.println(\"** || 6 - Price: \" + partner.get(item2).getPrice());\n System.out.println(\"** || 0 - Go back to manager menu \" +\n \" || **\");\n System.out.println(\"** || Pick the field you would like \" +\n \"to edit: || **\");\n\n do {\n if (kbd.hasNextInt()) {\n item3 = kbd.nextInt();\n isNumber = true;\n\n } else {\n System.out.println(\"Invalid choice. Try again!\");\n isNumber = false;\n kbd.next();\n }\n } while (!isNumber);\n switch (item3) { //Switch Statement\n case 1:\n System.out.println(\"You've chosen 'Name: ' field.\");\n System.out.println(\"Insert the new content of the field\");\n String newFieldContent = kbd.next();\n System.out.println(\"The name has been changed from \" + partner.get(item2).getName() + \" to \" + newFieldContent);\n partner.get(item2).setName(newFieldContent);\n break;\n case 2:\n System.out.println(\"You've chosen 'CVR: ' field.\");\n System.out.println(\"Insert the new content of the field\");\n newFieldContent = kbd.next();\n System.out.println(\"The CVR number has been changed from \" + partner.get(item2).getCvr() + \" to \" + newFieldContent);\n partner.get(item2).setCvr(newFieldContent);\n break;\n case 3:\n System.out.println(\"You've chosen 'Phone number: ' field.\");\n System.out.println(\"Insert the new content of the field\");\n newFieldContent = kbd.next();\n System.out.println(\"The phone number has been changed \" +\n \"from \" + partner.get(item2).getPhoneNumber() + \" to \" + newFieldContent);\n partner.get(item2).setPhoneNumber(newFieldContent);\n break;\n case 4:\n System.out.println(\"You've chosen 'E-mail: ' field.\");\n System.out.println(\"Insert the new content of the field\");\n newFieldContent = kbd.next();\n System.out.println(\"The e-mail has been changed from \" + partner.get(item2).getEmail() + \" to \" + newFieldContent);\n partner.get(item2).setEmail(newFieldContent);\n break;\n case 5:\n System.out.println(\"You've chosen 'Service: ' field.\");\n System.out.println(\"Insert the new content of the field\");\n newFieldContent = kbd.next();\n System.out.println(\"The service has been changed from \" + partner.get(item2).getService() + \" to \" + newFieldContent);\n partner.get(item2).setService(newFieldContent);\n break;\n case 6:\n System.out.println(\"You've chosen 'Price: ' field.\");\n System.out.println(\"Insert the new content of the field\");\n Double newFieldContent1 = kbd.nextDouble();\n System.out.println(\"The price has been changed from \" + partner.get(item2).getPrice() + \" to \" + newFieldContent1);\n partner.get(item2).setPrice(newFieldContent1);\n break;\n case 0:\n exit4 = true;\n break;\n default:\n System.out.println(\"Invalid choice. Try again!\");\n }\n } while (!exit4);\n partnerWriter();\n }", "title": "" }, { "docid": "52115c6a19198028c7c66cefbb2c293f", "score": "0.49676707", "text": "@RequestMapping(value = \"/offers/{id}\", method = RequestMethod.GET, consumes = MediaType.APPLICATION_JSON_VALUE, produces = MediaType.APPLICATION_JSON_VALUE)\n\t@ResponseBody\n\tpublic Offer getOffer(@PathVariable long id) {\n\t\treturn offersService.getOffer(id);\n\t}", "title": "" }, { "docid": "dd541d6edb83de0f087cbc66f3687be4", "score": "0.4963624", "text": "@ApiModelProperty(required = true, value = \"The unique identifier of the alternate participant\")\n @JsonProperty(\"participantId\")\n /**\n * @return String\n **/\n public String getParticipantId() {\n return participantId;\n }", "title": "" }, { "docid": "0dcdfa1164b9e88892c20ef33c1edbeb", "score": "0.49625233", "text": "public static void getProfile( MongoReceiver handler, int id )\n {\n String url = \"\";\n try {\n // Build the URL\n url = BASE_URL\n + DB_NAME\n + \"/collections/\" + COLL_PROFILES + \"?\"\n + \"q=\" + URLEncoder.encode(\"{\\\"_id\\\":\" + id + \"}\", \"UTF-8\")\n + \"&apiKey=\" + API_KEY;\n }\n catch( UnsupportedEncodingException e){\n Log.d( \"URL\", e.getLocalizedMessage() );\n }\n Log.d( \"URL\", url );\n new GetTask( handler ).execute(url);\n }", "title": "" }, { "docid": "4a8d88d76190e974eb18162edcb7f9b2", "score": "0.49618033", "text": "@RequestMapping(value = \"/partners\",\n method = RequestMethod.POST,\n produces = MediaType.APPLICATION_JSON_VALUE)\n @Timed\n public ResponseEntity<PartnerDTO> createPartner(@Valid @RequestBody PartnerDTO partnerDTO) throws URISyntaxException {\n log.debug(\"REST request to save Partner : {}\", partnerDTO);\n if (partnerDTO.getId() != null) {\n return ResponseEntity.badRequest().headers(HeaderUtil.createFailureAlert(\"partner\", \"idexists\", \"A new partner cannot already have an ID\")).body(null);\n }\n\n try {\n validateBeforeUpdate(partnerDTO);\n } catch (AsMinimumOneValidationException ex){\n return ResponseEntity.badRequest()\n .headers(HeaderUtil.createFailureAlert(\"contact\", \"asminimumone\", \"As minimum one Contact should be created for Partner\")).body(null);\n }\n\n PartnerDTO result;\n\n try {\n result = partnerService.save(partnerDTO);\n } catch (EntityConstrainViolation ex) {\n return ResponseEntity.badRequest()\n .headers(HeaderUtil.createFailureAlert(\"partner\", \"uniqe\", \"The same Partner is already exists\")).body(null);\n }\n\n if (result != null) {\n return ResponseEntity.created(new URI(\"/api/partners/\" + result.getId()))\n .headers(HeaderUtil.createEntityCreationAlert(\"partner\", result.getId().toString()))\n .body(result);\n } else {\n return ResponseEntity.badRequest()\n .headers(HeaderUtil.createFailureAlert(\"partner\", \"smthwentwrong\", \"Something went wrong\")).body(null);\n }\n }", "title": "" }, { "docid": "1a87c66c35ae6d06320e1faf155f0430", "score": "0.49616748", "text": "@Override\n\t@GET\n\t@Path(\"/szukaj/{id}\")\n\t@Produces(MediaType.APPLICATION_JSON)\n\tpublic Response przegladajDaneKlienta(@PathParam(value = \"id\") Long id) {\n\t\tKlient result = klientHotelowyDao.find(id);\n\t\treturn Response.status(200).entity(result).build();\n\t}", "title": "" }, { "docid": "6503a1cda7d91fcb99c6255bf3312ee4", "score": "0.49600998", "text": "@GET(\"/offers/{offerId}\")\n public void getOfferDetails(@Path(\"offerId\")String offerId, Callback<OfferResponse> cb);", "title": "" }, { "docid": "b806b02b5a16ffbcfdf6758a385be340", "score": "0.49590248", "text": "int getLeaderId();", "title": "" }, { "docid": "5a91346a6c2dd128752fb5ae65851864", "score": "0.49535984", "text": "public Park getParkById(int park_id);", "title": "" }, { "docid": "3bb9e8d88eb59b4528efea64d96dc811", "score": "0.49535778", "text": "@Override\n\tpublic void setPartnerId(java.lang.Long partnerId) {\n\t\t_assetManageReqEntity.setPartnerId(partnerId);\n\t}", "title": "" }, { "docid": "1b52b77bff08e21d5a20f6861de69c9a", "score": "0.4939939", "text": "@GetMapping(\"/elections/{id}\")\n @Timed\n public ResponseEntity<Election> getElection(@PathVariable String id) {\n log.debug(\"REST request to get Election : {}\", id);\n Election election = electionRepository.findOne(id);\n HttpHeaders headers = HeaderUtil.createAlert(\"Status user in election\", electionService.ifVoted(election).toString());\n return ResponseUtil.wrapOrNotFound(Optional.ofNullable(election), headers);\n }", "title": "" }, { "docid": "cf9dddefc1f1aa1d6df4c9a3b300325c", "score": "0.493801", "text": "public Optional<Candidate> getCandidate(Integer id)\r\n\t{\r\n\t\treturn candidateRepository.findById(id);\r\n\t\t\r\n\t}", "title": "" }, { "docid": "75116db4daa96a2cc239d388cd9e3417", "score": "0.49357617", "text": "public void setParticipantId(int value) {\n this.participantId = value;\n }", "title": "" }, { "docid": "952b2860848e8460b5b4b026f9a6dd82", "score": "0.49349338", "text": "public W3CEndpointReference getParticipant();", "title": "" }, { "docid": "1d9f24bb3f3cb0bb13cdd2507da0e638", "score": "0.49349105", "text": "public String toString() {\n\t\treturn this.name + \" partner: \" + this.partner;\n\t}", "title": "" }, { "docid": "c64829bd176f95884f667c3f9015c9c7", "score": "0.49272543", "text": "@GET\n @Path(\"{id}\")\n public Response getMemberPastAdverts(@PathParam(\"id\") Long id) {\n if (id == null) {\n return Response.serverError().entity(\"ID cannot be blank\").build();\n }\n List<Advert> adsList = new ArrayList<>();\n DBConnector db = new DBConnector();\n try {\n db.createConnection();\n adsList = db.getMemberPastAdverts(id);\n db.closeConnection();\n } catch (SQLException | ClassNotFoundException ex) {\n Logger.getLogger(GetPastAdvertsREST.class.getName()).log(Level.SEVERE, null, ex);\n }\n if (adsList.isEmpty()) {\n return Response.status(Response.Status.NOT_FOUND).entity(\"No adverts found for ID: \" + id).build();\n }\n String json = new Gson().toJson(adsList);\n\n return Response.ok(json, MediaType.APPLICATION_JSON).build();\n }", "title": "" }, { "docid": "ba99b301ce1d1d4eff0bcea7be7f9ad3", "score": "0.49215183", "text": "public String getLeaderId() {\n return this.leaderId;\n }", "title": "" }, { "docid": "45c0fa1affda23b59e6aac3f8b4035f3", "score": "0.49186024", "text": "java.lang.String getParticipant();", "title": "" }, { "docid": "58f156dc31c240129259de09bc8afe50", "score": "0.48918048", "text": "public final String getPartId() {\n return this.partId;\n }", "title": "" }, { "docid": "6d7d8576e4d87f46913d9b5074b6da00", "score": "0.48884666", "text": "@GetMapping(\"/professors/{id}\")\n @Timed\n public ResponseEntity<ProfessorDTO> getProfessor(@PathVariable Long id) {\n log.debug(\"REST request to get Professor : {}\", id);\n ProfessorDTO professorDTO = professorService.findOne(id);\n return ResponseUtil.wrapOrNotFound(Optional.ofNullable(professorDTO));\n }", "title": "" }, { "docid": "3c157b77af35f924db3dc81581cee3ae", "score": "0.48872682", "text": "@RequestMapping(\"/getId\")\n\tpublic FavorietenEnProfiel getFavorietenEnProfielById(@RequestParam(value = \"id\", defaultValue = \"1\") int id) {\n FavorietenEnProfiel favoriet = FavorietenEnProfielDAO.getFavorietenEnProfielById(id);\n\t\treturn favoriet;\n\t}", "title": "" }, { "docid": "290e399366c292501b5cbf118b58ae5e", "score": "0.4880951", "text": "public ProductRetailer getByEmbeddedId(ProductRetailerEmbeddedId embeddedId) throws ResourceNotFoundException {\n\t\treturn this.productRetailerRepository.findById(embeddedId).orElseThrow(\n\t\t\t\t() -> new ResourceNotFoundException(\"Entry with ID \" + embeddedId.toString() + \" not found!\"));\n\n\t}", "title": "" }, { "docid": "88c36a3d8d2da77d1cfe704119f37012", "score": "0.48791122", "text": "public static void getMeetings( MongoReceiver handler, int id )\n {\n String url = \"\";\n try {\n // Build the URL\n url = BASE_URL\n + DB_NAME\n + \"/collections/\" + COLL_MEETINGS + \"?\"\n + URLEncoder.encode(\"q={\\\"users\\\":\\\"{$elemMatch\\\":{\\\"id\\\":\" + id + \"}}}\", \"UTF-8\")\n + \"&apiKey=\" + API_KEY;\n }\n catch( UnsupportedEncodingException e){\n Log.d( \"URL\", e.getLocalizedMessage() );\n }\n Log.d( \"URL\", url );\n new GetTask( handler ).execute(url);\n }", "title": "" }, { "docid": "6dd5191dd1ac7a3d3f1c82a2cbbfc5ad", "score": "0.48736006", "text": "public List<Loans> getLoansForPartner(Partners partner) throws SQLException {\n\t\tList<Loans> loans = new ArrayList<>();\n\t\tString selectLoans =\n\t\t\t\"SELECT LoanID,FundedAmount,LoanAmount,CountryCode,PartnerID,\" +\n\t\t\t\t\"Description,Region,PostedDate,LoanActivities,LoanThemeID \" +\n\t\t\t\t\"FROM Loans \" +\n\t\t\t\t\"WHERE PartnerID=?;\";\n\t\tConnection connection = null;\n\t\tPreparedStatement selectStmt = null;\n\t\tResultSet results = null;\n\t\ttry {\n\t\t\tconnection = connectionManager.getConnection();\n\t\t\tselectStmt = connection.prepareStatement(selectLoans);\n\t\t\tselectStmt.setInt(1, partner.getPartnerId());\n\t\t\tresults = selectStmt.executeQuery();\n\t\t\twhile(results.next()) {\n\t\t\t\tint resultLoanID = results.getInt(\"LoanID\");\n\t\t\t\tdouble fundedAmount = results.getDouble(\"FundedAmount\");\n\t\t\t\tdouble loanAmount = results.getDouble(\"LoanAmount\");\n\t\t\t\tString countryCode = results.getString(\"CountryCode\");\n\t\t\t\tint partnerID = results.getInt(\"PartnerID\");\n\t\t\t\tString description = results.getString(\"Description\");\n\t\t\t\tString region = results.getString(\"Region\");\n\t\t\t\tDate postedDate = new Date(results.getTimestamp(\"PostedDate\").getTime());\n\t\t\t\tString loanActivities = results.getString(\"LoanActivities\");\n\t\t\t\tString loanThemeID = results.getString(\"LoanThemeID\");\n\t\t\t\t\n\t\t\t\tLoans loan = new Loans(resultLoanID, fundedAmount, loanAmount,\n\t\t\t\t\t\tcountryCode, partnerID, description, region, postedDate,\n\t\t\t\t\t\tloanActivities, loanThemeID);\n\t\t\t\tloans.add(loan);\n\t\t\t}\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t\tthrow e;\n\t\t} finally {\n\t\t\tif(connection != null) {\n\t\t\t\tconnection.close();\n\t\t\t}\n\t\t\tif(selectStmt != null) {\n\t\t\t\tselectStmt.close();\n\t\t\t}\n\t\t\tif(results != null) {\n\t\t\t\tresults.close();\n\t\t\t}\n\t\t}\n\t\treturn loans;\n\t}", "title": "" }, { "docid": "a24a464aaa06edd02671ca904cf92e76", "score": "0.4855455", "text": "@GetMapping(\"/persons/{person_id}\")\n\tpublic String getPerson(@PathVariable(\"person_id\") Long id, Model model) { \n\t\tmodel.addAttribute(\"person\", personService.findPerson(id));\n\t\treturn \"/relationships/readOne.jsp\";\n\t}", "title": "" }, { "docid": "5998fc6f2cadc890165eef481e2ed54f", "score": "0.48421443", "text": "public Partido getPartida(){\r\n\t\treturn partido;\r\n\t}", "title": "" } ]
7889250a27b11d07011e70917fb22f2a
Search for node with given value and returns its parent node
[ { "docid": "894405cff8a443621ee788682771e608", "score": "0.6807807", "text": "private static TreeNode<Integer> findParentNode(TreeNode<Integer> node, Integer v) {\n if (node == null) {\n return null;\n }\n\n if (node.value.equals(v)) {\n return node.parent;\n }\n\n TreeNode<Integer> foundNode = findParentNode(node.left, v);\n if (foundNode != null) {\n return foundNode;\n }\n\n return findParentNode(node.right, v);\n\n }", "title": "" } ]
[ { "docid": "6662929f51dff61ed2698c8488f34b97", "score": "0.6844209", "text": "Item<T> findChild(T value, Item<T> parent);", "title": "" }, { "docid": "bdf367a9025b52e1739d2975754fe6e1", "score": "0.68331707", "text": "private Node<T> ancestorsFindNodeRecursive(T value, Node<T> n){\n\n // check if this node exists\n if(n == null){\n return null;\n }\n\n int comparison = value.compareTo(n.value);\n\n if(comparison < 0){\n return ancestorsFindNodeRecursive(value, n.left);\n } else if(comparison > 0){\n return ancestorsFindNodeRecursive(value, n.right);\n } else { // comparison == 0\n // found match\n return n;\n }\n }", "title": "" }, { "docid": "36c4f4907639c6316e59eb29fb49a07b", "score": "0.6740483", "text": "public Tree<T> find(T value) {\n if (rootValue.equals(value)) {\n return this;\n }\n for (Tree<T> child : children) {\n Tree<T> match = child.find(value);\n if (match != null) {\n return match;\n }\n }\n return null;\n }", "title": "" }, { "docid": "68b4b04604d01bd187ebdac8f698b07b", "score": "0.6715066", "text": "public Node<T> getParent();", "title": "" }, { "docid": "0f088678db0d421dc5a33a607985f3fa", "score": "0.6631383", "text": "public Node findParent(String key) {\r\n\t\tNode p = root;\r\n\t\tNode c = root;\r\n\r\n\t\tdo {\r\n\t\t\tif (key.compareTo(c.data.getName()) == 0) {\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\tp = c;\r\n\t\t\tif (key.compareTo(c.data.getName()) < 0) {\r\n\t\t\t\tc = c.lc;\r\n\t\t\t} else {\r\n\t\t\t\tc = c.rc;\r\n\t\t\t}\r\n\t\t} while (c != null);\r\n\r\n\t\tif (c != null) {\r\n\t\t\tSystem.out.println(\">> Parent: \" + p.data.getName());\r\n\t\t\treturn p;\r\n\t\t} else {\r\n\t\t\treturn null;\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "7e6905dd2beaba8a29c905c20cb7ce54", "score": "0.65899664", "text": "public static TreeNode searchTree(TreeNode start,TreeNode parent,int val){\n if(start.key == val)return start;\n for (TreeNode child : start.children)if(child != parent){\n TreeNode ret = searchTree(child , start , val);\n if(ret != null)return ret;\n }\n return null;\n }", "title": "" }, { "docid": "192cd80d3a139034541539e7c6259202", "score": "0.6552959", "text": "public T find(final V value) {\n if (Util.equals(this.value, value)) {\n return Util.cast(this);\n }\n \n for (T child : Util.unNull(this.children)) {\n child = child.find(value);\n if (child != null) {\n return child;\n }\n }\n \n return null;\n }", "title": "" }, { "docid": "e683e34883294a848e5e44dc8f24c03c", "score": "0.64766896", "text": "private Node findParent(int key) {\n // Start from the root node\n Node current = this.root;\n Node parent = null;\n\n while (true) {\n if (current.key == key) {\n // If match found - exit with parent\n return parent;\n } else if (key < current.key) {\n if (current.leftChild == null) {\n // If no match found - break\n return null;\n }\n // Assign the current parent\n parent = current;\n // Continue with the left child\n current = current.leftChild;\n } else {\n parent = current;\n if (current.rightChild == parent) {\n // If no match found - break\n return null;\n }\n // Assign the current parent\n parent = current;\n // Continue with the right child\n current = current.rightChild;\n }\n }\n }", "title": "" }, { "docid": "01c0b53e6adcfa767d25d3913dcda322", "score": "0.64399284", "text": "private NodeEntry<T> findEntry (T value)\n\t{\n\t\tfor (NodeEntry<T> n : mNodes)\n\t\t{\n\t\t\tif (n.equals (new GraphNode<T> (value)))\n\t\t\t\treturn n;\n\t\t}\n\t\treturn null;\n\t}", "title": "" }, { "docid": "84a68b02dc8111f79ba3101d155e726b", "score": "0.6335545", "text": "private Node<T> getNode(T value) {\n Node<T> node = root;\n while (node != null) {\n Key<T> lesser = node.getKey(0);\n if (value.compareTo(lesser.getElemento()) < 0) {\n if (node.numberOfChildren() > 0) {\n node = node.getChild(0);\n } else {\n node = null;\n }\n continue;\n }\n\n int numberOfKeys = node.numberOfKeys();\n int last = numberOfKeys - 1;\n Key<T> greater = node.getKey(last);\n if (value.compareTo(greater.getElemento()) > 0) {\n if (node.numberOfChildren() > numberOfKeys) {\n node = node.getChild(numberOfKeys);\n } else {\n node = null;\n }\n continue;\n }\n\n for (int i = 0; i < numberOfKeys; i++) {\n Key<T> currentValue = node.getKey(i);\n if (currentValue.getElemento().compareTo(value) == 0) {\n return node;\n }\n\n int next = i + 1;\n if (next <= last) {\n Key<T> nextValue = node.getKey(next);\n if (currentValue.getElemento().compareTo(value) < 0 && nextValue.getElemento().compareTo(value) > 0) {\n if (next < node.numberOfChildren()) {\n node = node.getChild(next);\n break;\n }\n return null;\n }\n }\n }\n }\n return null;\n }", "title": "" }, { "docid": "ddc85ea99e6dd686ec2b9e83a7be7744", "score": "0.6327099", "text": "public T findParent(ASTNode<?> node) {\n Preconditions.checkNotNull(node);\n while (node != null && (!clazz.isInstance(node))) {\n node = node.getParent();\n }\n if (clazz.isInstance(node)) {\n F cast = clazz.cast(node);\n if (predicate.apply(cast)) {\n return transformer.apply(cast);\n }\n }\n return null;\n }", "title": "" }, { "docid": "e34540006e8ac43a17bc6c44879d8f9b", "score": "0.63262", "text": "public static Node lookupParent(Node startingNode, Predicate<Node> predicate, Predicate<Node> stopCondition) {\r\n while (startingNode != null) {\r\n if (predicate.test(startingNode) && !stopCondition.test(startingNode)) {\r\n return startingNode;\r\n }\r\n startingNode = startingNode.getParent();\r\n }\r\n\r\n return null;\r\n }", "title": "" }, { "docid": "02ec211da4f60ef76ea0b1dcc830345a", "score": "0.631941", "text": "public static Node lookupParent(Node startingNode, Predicate<Node> predicate) {\r\n while (startingNode != null) {\r\n if (predicate.test(startingNode)) {\r\n return startingNode;\r\n }\r\n startingNode = startingNode.getParent();\r\n }\r\n\r\n return null;\r\n }", "title": "" }, { "docid": "48ff8d9cd8d84ae3f492432a27bfd47a", "score": "0.63095176", "text": "java.lang.String getParent();", "title": "" }, { "docid": "b2808e2463438306a175734c58c03314", "score": "0.6250265", "text": "public Node findNode(E val) {\n\t\tif(temp==null)\n\t\t\treturn null;\n\t\tif(temp.value==val)\n\t\t\treturn root;\n\t\telse if(temp.value.compareTo(val)<0)\n\t\t{\n\t\t\ttemp=temp.rightChild;\n\t\t\treturn findNode(val);\n\t\t}\n\t\telse\n\t\t{\n\t\t\ttemp=temp.leftChild;\n\t\t\treturn findNode(val);\n\t\t}\n\t\n\t}", "title": "" }, { "docid": "c112a1e22c2c959355ca4c5c749912bf", "score": "0.6245138", "text": "private Node findNode(Node current, int searchValue, String position, String indent) {\r\n\t\tNode target = null;\r\n\t\tif (current != null) {\r\n\t\t\tprintRecursion(indent + \"findNode current is \" + current.toString() + \"-> \" + current.data + \" searchValue = \" + searchValue + \" position = \" + position);\r\n\t\t} else {\r\n\t\t\tprintRecursion(indent + \"findNode current is null \" + \" searchValue = \" + searchValue + \" position = \" + position);\r\n\t\t}\r\n\t\tindent += \" \";\r\n\t\tif (current == null) {\r\n\t\t\tprintRecursion(indent + \" return current is null\");\r\n\t\t\treturn null;\r\n\r\n\t\t} else if (current.data == searchValue) {\r\n\t\t\t// check to see if the branch we want is populated\r\n\t\t\tprintRecursion(indent + \" ******************* found! \" + current.toString());\r\n\r\n\t\t\tif (position.equals(LEFT)) {\r\n\t\t\t\tif (current.left != null) {\r\n\t\t\t\t\tprintRecursion(indent + \" left already populated ... need to look at child - calling findNode with current.left\");\r\n\t\t\t\t\ttarget = findNode(current.left, searchValue, position, indent);\r\n\t\t\t\t\tif (target == null) {\r\n\t\t\t\t\t\tprintRecursion(indent + \" left already populated ... need to look at child - calling findNode with current.right\");\r\n\t\t\t\t\t\ttarget = findNode(current.right, searchValue, position, indent);\r\n\t\t\t\t\t}\r\n\t\t\t\t} else {\r\n\t\t\t\t\tprintRecursion(indent + \" return current: \" + current.toString());\r\n\t\t\t\t\treturn current;\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tif (current.right != null) {\r\n\t\t\t\t\tprintRecursion(indent + \" left already populated ... need to look at child - calling findNode with current.left\");\r\n\t\t\t\t\ttarget = findNode(current.left, searchValue, position, indent);\r\n\t\t\t\t\tif (target == null) {\r\n\t\t\t\t\t\tprintRecursion(indent + \" left already populated ... need to look at child - calling findNode with current.right\");\r\n\t\t\t\t\t\ttarget = findNode(current.right, searchValue, position, indent);\r\n\t\t\t\t\t}\r\n\t\t\t\t} else {\r\n\t\t\t\t\tprintRecursion(indent + \" return current: \" + current.toString());\r\n\t\t\t\t\treturn current;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tprintRecursion(indent + \" - calling findNode with current.left\");\r\n\t\t\ttarget = findNode(current.left, searchValue, position, indent);\r\n\t\t\tif (target == null) {\r\n\t\t\t\tprintRecursion(indent + \" - calling findNode with current.right\");\r\n\t\t\t\ttarget = findNode(current.right, searchValue, position, indent);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tif (target != null) {\r\n\t\t\tprintRecursion(indent + \" return target: \" + target.toString());\r\n\t\t} else {\r\n\t\t\tprintRecursion(indent + \" return target is null \");\r\n\t\t}\r\n\r\n\t\treturn target;\r\n\t}", "title": "" }, { "docid": "4327ed531cb0cac47479c2443ce2b818", "score": "0.62201315", "text": "N findNode(String name);", "title": "" }, { "docid": "535452547b1dbd3890662b31272dfd1e", "score": "0.62117654", "text": "private Node<T> locateNode(T paCriterion) {\r\n Node<T> actual_node = null;\r\n if(root == null) {\r\n return actual_node;\r\n } else {\r\n actual_node = this.root;\r\n if(actual_node.getData().compareTo(paCriterion) == 0) { //requested node is a root\r\n return actual_node;\r\n }\r\n while (actual_node != null) { \r\n if (actual_node.getData().compareTo(paCriterion) > 0) { //go left - s1 > s2, positive number \r\n if (actual_node.hasLeftChild()) {\r\n actual_node = actual_node.getLeftChild();\r\n } else { //not found\r\n return actual_node;\r\n }\r\n } else if(actual_node.getData().compareTo(paCriterion) < 0){ //go right - s1 < s2, negative number \r\n if (actual_node.hasRightChild()) {\r\n actual_node = actual_node.getRightChild();\r\n } else { //not found\r\n return actual_node;\r\n }\r\n } else { //found\r\n return actual_node;\r\n }\r\n }\r\n }\r\n return actual_node;\r\n }", "title": "" }, { "docid": "fbba28ff1bd16705c0298af84c2f3b02", "score": "0.6201189", "text": "public CyNode getParent(CyNode node);", "title": "" }, { "docid": "0fa15213284b0352fa6edde8d05cc760", "score": "0.6197562", "text": "public TreeNode lookup(int val) {\n TreeNode node = _rootNode;\n while(node != null) {\n if(val == node.getValue()) {\n return node;\n } else if (val < node.getValue()){\n node = node.getLeft();\n } else if (val > node.getValue()) {\n node = node.getRight();\n }\n }\n return null;\n }", "title": "" }, { "docid": "15f49ccf91f5c1f131fa358aca070cc7", "score": "0.6165364", "text": "private static TreeNode<Integer> findNodeWithValue(TreeNode<Integer> node, Integer v) {\n if (node == null) {\n return null;\n }\n\n if (node.value.equals(v)) {\n return node;\n }\n\n TreeNode<Integer> foundNode = findNodeWithValue(node.left, v);\n if (foundNode != null) {\n return foundNode;\n }\n\n return findNodeWithValue(node.right, v);\n\n }", "title": "" }, { "docid": "216576dfaff9c698fc105e51174d6996", "score": "0.6164545", "text": "public static TreeNode searchTree(TreeNode start,int val){\n if(start.key == val)return start;\n for (TreeNode child : start.children){\n TreeNode ret = searchTree(child , val);\n if(ret != null)return ret;\n }\n return null;\n }", "title": "" }, { "docid": "74e8ddb79dfcb014c0f63d03134244e4", "score": "0.6162631", "text": "public EARMARKHierarchicalNode getParentNode();", "title": "" }, { "docid": "c3b65ecd306e2253fdbfb97f68d9003c", "score": "0.616127", "text": "public gNode findNode(gNode a,gNode p){\r\n\t\tgNode tag=a;\r\n\t\tString ff=tag.value;\r\n\t\t//System.out.println(\"find---\");\r\n\t\t//System.out.println(ff);\r\n\t\tif (getType(a.value).equals(\"int\")){\r\n\t\t\treturn tag;\r\n\t\t\r\n\t\t}else{\r\n\t\t\ttag=p;\r\n\t\t\twhile (tag.scpNodes.get(ff)==null){\r\n\t\t\t\tif (tag.parent==null){\r\n\t\t\t\t\tSystem.err.printf(\"Error:function %s in undefined \",ff);\r\n\t\t\t\t\tSystem.exit(0);\r\n\t\t\t\t}else{\r\n\t\t\t\t\ttag=tag.parent;\r\n\t\t\t\t}\r\n\t\t\t}\t\t\t\t\r\n\t\t\t\treturn tag.scpNodes.get(ff);\r\n\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "c5502e3dc128c5a4796724ac9e8e027c", "score": "0.6137556", "text": "private BinomialNode findANodeWithKey(int value, BinomialNode temp) \r\n\t{\r\n\t\tBinomialNode node = null;\r\n\t\twhile (temp != null) \r\n\t\t{\t\t\r\n\t\t\tif (temp.key == value) \r\n\t\t\t{\r\n\t\t\t\tnode = temp;\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t if(temp.child == null)\t\r\n\t\t\t\ttemp = temp.sibling;\r\n\t\t\telse\t\r\n\t\t\t{\r\n\t\t\t\tnode = findANodeWithKey(value, temp.child);\r\n\t\t\t\tif (node == null)\r\n\t\t\t\t\ttemp = temp.sibling;\r\n\t\t\t\telse\r\n\t\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\t\t\r\n\t\treturn node;\r\n\t}", "title": "" }, { "docid": "41aeeedf872a0ac84cfaa7eb7f714114", "score": "0.6128037", "text": "Node find(i) {\n if (i.parent == i) return i //i is the root\n return i.parent = find(i.parent) //set parent of i to root & return the root\n }", "title": "" }, { "docid": "7d138eed4c418c9e235492fcd8c252d5", "score": "0.6088398", "text": "private BinaryNode<T> findNode(T entry) {\r\n\t\tBinaryNode<T> current = root;\r\n\t\tboolean found = false;\r\n\t\twhile (!found) {\r\n\t\t\tif (current == null)\r\n\t\t\t\treturn null; // if value is not found\r\n\t\t\tT currentEntry = current.getData();\r\n\t\t\tint comparison = entry.compareTo(currentEntry);\r\n\r\n\t\t\tif (comparison == 0) {\r\n\t\t\t\tfound = true;\r\n\t\t\t} else if (comparison < 0) {\r\n\t\t\t\tcurrent = current.leftChild;\r\n\t\t\t} else {\r\n\t\t\t\tassert comparison > 0;\r\n\t\t\t\tcurrent = current.rightChild;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn current;\r\n\t}", "title": "" }, { "docid": "1951ca7d6bc241aa472692dbcba7e2a9", "score": "0.60813826", "text": "public Node searchTree(String k)\n {\n Node x = _root;\n while (x != Node.nil && !k.equals(x.getVal()))\n {\n if (x.getVal().compareTo(k) > 0)\n x = x.getLeft();\n else\n x = x.getRight(); \n }\n return x;\n }", "title": "" }, { "docid": "ade3eed2b20a5f0dba1565705fe660b5", "score": "0.60723746", "text": "public Node find(Node node){\n\t\tif(node.parent == node){\n\t\t\treturn node;\n\t\t}\n\t\telse{\n\t\t\treturn find(node.parent); // recursively call the method with the node's parent until the root is reached\n\t\t}\n\t}", "title": "" }, { "docid": "b518a7bb6074887b32bbf46deab4153c", "score": "0.6063619", "text": "private Vertex findParent(Vertex v){\n while(v.parent != null){\n v = v.parent;\n }\n return v;\n }", "title": "" }, { "docid": "56efea0bb41a237fd8db3a082e9e043a", "score": "0.6036647", "text": "public String ancestors(T value){ // NOT SURE OF THIS RETURN TYPE\n // find(T value); going to have to reimplement this\n Node<T> n = ancestorsFindNodeRecursive(value, root);\n\n return ancestorsOfNode(n);\n }", "title": "" }, { "docid": "e04ec39bef51ffdae7c31d687d41d9fa", "score": "0.60106045", "text": "public SoftItemNode findNode(SoftItem data) {\n\t\tif (data == null) {\n\t\t\tthrow new IllegalArgumentException(\"data is null.\");\n\t\t}\n\t\tif (root.getData().equals(data)) {\n\t\t\treturn root;\n\t\t}\n\t\tList<SoftItemNode> children = root.getChildren();\n\t\tOptional<SoftItemNode> optionalNode = children.stream().filter(n -> n.getData().equals(data)).findFirst();\n\t\tSoftItemNode foundNode = null;\n\n\t\tif (optionalNode.isPresent()) {\n\t\t\tfoundNode = optionalNode.get();\n\t\t} else {\n\t\t\tfoundNode = findNode(root, data);\n\t\t}\n\n\t\treturn foundNode;\n\t}", "title": "" }, { "docid": "d784462670c4e7a53e5e7f128e9ba474", "score": "0.6009548", "text": "public Node searchBSTIterative(int value) {\n\t\tif (isEmpty())\n\t\t\treturn null;\n\t\tNode currentNode = root;\n\t\twhile (currentNode != null) {\n\t\t\tif (currentNode.getData() == value)\n\t\t\t\treturn currentNode;\n\t\t\tif (currentNode.getData() > value) {\n\t\t\t\tcurrentNode = currentNode.getLeft();\n\t\t\t} else {\n\t\t\t\tcurrentNode = currentNode.getRight();\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"Not found in tree\");\n\t\treturn null;\n\t}", "title": "" }, { "docid": "d70ad438a673372a57f694033f90b54e", "score": "0.6008161", "text": "public SearchNode getParent() {\n return parent;\n }", "title": "" }, { "docid": "cf87c056a2b1ff027f45c5ac2cbab05d", "score": "0.6003642", "text": "public Node find (int key){\n\t\tNode curNode=root;\n\t\tint childNumber;\n\t\twhile (true) {\n\t\t\tif ((childNumber=curNode.findItem(key)) != -1)\n\t\t\t\treturn curNode;\n\t\t\telse if ( curNode.isLeaf())\n\t\t\t\tSystem.out.print(\"\");\n\t\t\telse\n\t\t\t\tcurNode=getNextChild(curNode,key);\n\t\t}\n\t}", "title": "" }, { "docid": "69193f349dcf64deed1de6a10c421cbc", "score": "0.59769374", "text": "public TreeNode getParent() {\n return (TreeNode) nodes.get(\"parent\");\n }", "title": "" }, { "docid": "648eb83ad3e9ece9f708d7bb4e9f1ea4", "score": "0.5976153", "text": "Node getAncestorOfType(NodeType type);", "title": "" }, { "docid": "8a61c94512561d831333e4df31c9fe4d", "score": "0.5975193", "text": "public Node findNode(String key) {\r\n\t\tNode c = root;\r\n\r\n\t\t// iterate through the BST to find the correct key \r\n\t\twhile (c != null) {\r\n\t\t\tif (key.equals(c.data.getName())) {\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\r\n\t\t\telse if (key.compareTo(c.data.getName()) < 0) {\r\n\t\t\t\tc = c.lc;\r\n\t\t\t}\r\n\r\n\t\t\telse {\r\n\t\t\t\tc = c.rc;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn c;\r\n\t}", "title": "" }, { "docid": "eb88e989843b08d97e51280140137812", "score": "0.59525216", "text": "private Position<Entry<K, V>> treeSearch(Position<Entry<K, V>> p, K key) {\r\n\t\tif (isExternal(p))\r\n\t\t\treturn p; // key not found; return the final leaf\r\n\t\tint comp = compare(key, p.getElement());\r\n\t\tif (comp == 0)\r\n\t\t\treturn p; // key found; return its position\r\n\t\telse if (comp < 0)\r\n\t\t\treturn treeSearch(left(p), key); // search left subtree\r\n\t\telse\r\n\t\t\treturn treeSearch(right(p), key); // search right subtree\r\n\t}", "title": "" }, { "docid": "c004e6df62c2af11e029749d96a89adb", "score": "0.59395", "text": "public BinaryTreeNode<T> \n get(T value)\n {\n return searchRecursive(this.root, value);\n }", "title": "" }, { "docid": "3457c1008a065f7eadb9ff423ba37e6e", "score": "0.59307027", "text": "@Nullable\n SNode getParent();", "title": "" }, { "docid": "b55cdf02da53c51b19ef376fbdbeb479", "score": "0.5919434", "text": "private boolean findRecursive(T value, Node<T> n){\n\n // check if this node exists\n if(n == null){\n return false;\n }\n\n int comparison = value.compareTo(n.value);\n\n if(comparison < 0){\n return findRecursive(value, n.left);\n } else if(comparison > 0){\n return findRecursive(value, n.right);\n } else { // comparison == 0\n // found match\n return true;\n }\n }", "title": "" }, { "docid": "c3a7e9eb11423c10c33dcb824f0ea12b", "score": "0.5911924", "text": "private Node search(String name, Node node){\n if(node != null){\n if(node.name().equals(name)){\n return node;\n } else {\n Node foundNode = search(name, node.left);\n if(foundNode == null) {\n foundNode = search(name, node.right);\n }\n return foundNode;\n }\n } else {\n return null;\n }\n}", "title": "" }, { "docid": "0a3797999f30ce0bf468a90c12b49d99", "score": "0.5899877", "text": "@Override\n public boolean findElement(int value) {\n Node node = rootNode;\n\n while (node != null) {\n if (value == node.getValue()) {\n return true;\n }\n if (value < node.getValue()) {\n node = node.getLeftChild();\n } else {\n node = node.getRightChild();\n }\n }\n return false;\n }", "title": "" }, { "docid": "33eabcdf10e302d8899e6eb1228a1cbc", "score": "0.58823633", "text": "static int find(int x){\n if(x == parent[x]){ //if x is the parent of itself, it is the root\n return x;\n }\n else{\n return parent[x] = find(parent[x]); //otherwise, recurse to the parent of x\n }\n }", "title": "" }, { "docid": "8c0e306487f8225815884059a22c850b", "score": "0.58767265", "text": "Parent getParent();", "title": "" }, { "docid": "0acc9fa22bb8a8e56ef4f22283e1e5cf", "score": "0.58720845", "text": "private DiskLocation findParent(DiskLocation n, DiskLocation curr,DiskLocation parent) {\n\t\tif (curr.equals(nil)) {return parent;}\n\t\t\n\t\tif (!n.isGreaterThan(curr)) {return findParent(n, curr.left,curr);}\n\t\t\n\t\treturn findParent(n,curr.right,curr);\n\t}", "title": "" }, { "docid": "bedf5a69df81d7c0b3ca8c878f07edae", "score": "0.58660406", "text": "public Node findNode(int key) {\n\n Node focusNode = root;\n\n // While we haven't found the Node\n // keep looking\n\n while (focusNode.distance != key) {\n\n // If we should search to the left\n\n if (key < focusNode.distance) {\n\n // Shift the focus Node to the left child\n\n focusNode = focusNode.leftChild;\n\n } else {\n\n // Shift the focus Node to the right child\n\n focusNode = focusNode.rightChild;\n\n }\n\n // The node wasn't found\n\n if (focusNode == null)\n return null;\n\n }\n\n return focusNode;\n\n }", "title": "" }, { "docid": "46549bde4c7179fc104f80e1704cb26f", "score": "0.5856487", "text": "private int findIndexInParent(){\n \t\n \tNode parent = parentNode();\n \tif(parent==null)\n \t\treturn -1;\n \t\n \tNodeList parentChildNodeList = parent.childNodes();\n \tfor(int i=0;i<parentChildNodeList.size();i++){\n \t\tNode node = parentChildNodeList.item(i);\n \t\tif(node.equals(this))\n \t\t\treturn i;\n \t}\n \t\n \treturn -1;\n }", "title": "" }, { "docid": "cd5af1c723f96e2122cb3b7cd688b444", "score": "0.584935", "text": "private Node findParent(Node N, Node R){\r\n\t\tNode P=null;\r\n\t\tif( N!=R ){\r\n\t\t\tP = R;\r\n\t\twhile( P.left!=N && P.right!=N ){\r\n\t\t\tif((N.key.compareTo(P.key))<0)\r\n\t\t\t\tP = P.left;\r\n\t\t\telse\r\n\t\t\t\tP = P.right;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn P;\r\n\t}", "title": "" }, { "docid": "c58c35bb699d1d31f7fbe44de4bab2fb", "score": "0.58113784", "text": "public boolean find(int value) {\n \tNode temp =root;\n \twhile(temp!=null) {\n \t\tif (value<this.root.value){\n \t\t\ttemp = this.root.leftChild;\n \t\t\t \t\t\t\n\n\n \t\t}\n \t\telse if (value>this.root.value){\n \t\t\ttemp=this.root.rightChild;\n\n \t\t}\n\n \t\telse if(value ==this.root.value){\n \t\t\treturn true;\n \t\t\n \t}\n \t\t}\n\n return false;\n }", "title": "" }, { "docid": "8142f00a6e2948517f4e269456b73003", "score": "0.58025986", "text": "Node findNode(String name) {\n\t\tfor (Node n : cities) {\n\t\t\tif(n.toString().equals(name))\n\t\t\t\treturn n;\n\t\t}\n\t\treturn null;\n\t}", "title": "" }, { "docid": "5c4dbfcb0f222d60289e939db4eb2e65", "score": "0.57930756", "text": "int find(int p){\n if(parent[p] == p){\n return p;\n }\n parent[p] = find(parent[p]);\n return parent[p];\n }", "title": "" }, { "docid": "2549717e0c754f4829038e3e8d9584cb", "score": "0.57908905", "text": "abstract Item<T> findChild(T value);", "title": "" }, { "docid": "8c6402b3e91fa857fe92dca58af57e9a", "score": "0.5786831", "text": "private int find(int idx){\n int parent = parents.get(idx);\n if (parent == idx) return idx;\n int root = find(parent);\n parents.set(idx, root);\n return root;\n }", "title": "" }, { "docid": "cab0a997e8f7c5adb9ecc5b0629ea0ed", "score": "0.5771955", "text": "public final OMNode getParentNode() {\n \t\tNode parentNode = ot.getParentNode();\n \t\treturn (parentNode != null) ? convert(parentNode) : null;\n \t}", "title": "" }, { "docid": "715fc257ac73241f3a906b4604a2e629", "score": "0.5770475", "text": "private UseCaseNode findNode(\r\n UseCaseNode root,\r\n StrutsUseCase useCase)\r\n {\r\n UseCaseNode useCaseNode = null;\r\n\r\n final List<UseCaseNode> nodeList = new ArrayList<>(); //Collections.list(root.breadthFirstEnumeration().);\r\n Enumeration<TreeNode> nodes = root.breadthFirstEnumeration();\r\n \r\n while(nodes.hasMoreElements()) {\r\n UseCaseNode node = (UseCaseNode) nodes.nextElement();\r\n nodeList.add(node);\r\n }\r\n\r\n for (final Iterator<UseCaseNode> nodeIterator = nodeList.iterator(); nodeIterator.hasNext() && useCaseNode == null;)\r\n {\r\n UseCaseNode node = nodeIterator.next();\r\n if (useCase.equals(node.getUserObject()))\r\n {\r\n useCaseNode = node;\r\n }\r\n }\r\n return useCaseNode;\r\n }", "title": "" }, { "docid": "520938f53359163a6476e18b3b82fe75", "score": "0.5750577", "text": "public TreeNode getParent(int type) {\r\n\t\tTreeNode node = this;\r\n\t\twhile (node.getParent() != null) {\r\n\t\t\tnode = node.getParent();\r\n\t\t\tif (node.getType() == type) {\r\n\t\t\t\treturn node;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "da02a33c3c0b4b7dc876075f8e4c4bc8", "score": "0.5747946", "text": "public NodeInfo getParent() {\n if (parent == null) {\n if (node instanceof Element) {\n if (((Element) node).isRootElement()) {\n parent = makeWrapper(((Element) node).getDocument(), getTreeInfo());\n } else {\n parent = makeWrapper(((Element) node).getParent(), getTreeInfo());\n }\n } else if (node instanceof Text) {\n parent = makeWrapper(((Text) node).getParent(), getTreeInfo());\n } else if (node instanceof Comment) {\n parent = makeWrapper(((Comment) node).getParent(), getTreeInfo());\n } else if (node instanceof ProcessingInstruction) {\n parent = makeWrapper(((ProcessingInstruction) node).getParent(), getTreeInfo());\n } else if (node instanceof Attribute) {\n parent = makeWrapper(((Attribute) node).getParent(), getTreeInfo());\n } else if (node instanceof Document) {\n parent = null;\n } else if (node instanceof Namespace) {\n throw new UnsupportedOperationException(\"Cannot find parent of JDOM namespace node\");\n } else {\n throw new IllegalStateException(\"Unknown JDOM node type \" + node.getClass());\n }\n }\n return parent;\n }", "title": "" }, { "docid": "3e50310c673a5bbcfa78dc82e2efebc7", "score": "0.5732114", "text": "private int find(int v) {\n\t\tif(parents[v] != v) {\n\t\t\tparents[v] = find(parents[v]);\n\t\t}\n\n\t\treturn parents[v];\n\t}", "title": "" }, { "docid": "7809eecf96f2534239531e7de79f91ca", "score": "0.5704913", "text": "@Override\n public Node parentNode() {\n \n \tComponent parent = getParent();\n \tif(parent instanceof Node)\n \t\treturn (Node)parent;\n \telse\n \t\treturn null;\n }", "title": "" }, { "docid": "42e32ab20cd7b5c93a16e91e63c4e1fa", "score": "0.5698031", "text": "private static Node binarySearchInChildren(Node parent, TextPos2D target) {\n\n int low = 0;\n int high = parent.getNumChildren() - 1;\n\n while (low <= high) {\n int mid = (low + high) / 2;\n Node child = parent.getChild(mid);\n int cmp = startPosition(child).compareTo(target);\n\n if (cmp < 0) {\n // node start is before target\n low = mid + 1;\n if (endPosition(child).compareTo(target) >= 0) {\n // node end is after target\n return child;\n }\n } else if (cmp > 0) {\n high = mid - 1;\n } else {\n // target is node start position\n return child; // key found\n }\n }\n return null; // key not found\n }", "title": "" }, { "docid": "aeb27a827398f44c4a9750ed459f71ba", "score": "0.56890637", "text": "public Node find(int key) {\n // Start from the root node\n Node current = root;\n\n while (true) {\n if (current.key == key) {\n // If match found - exit\n return current;\n } else if (key < current.key) {\n if (current.leftChild == null) {\n // If no match found - break\n return null;\n }\n // Continue with the left child\n current = current.leftChild;\n } else {\n if (current.rightChild == null) {\n // If no match found - break\n return null;\n }\n // Continue with the right child\n current = current.rightChild;\n }\n }\n }", "title": "" }, { "docid": "04bde3cd5c5e5f0639762b2f70c2d122", "score": "0.5684428", "text": "@Override\n public SkipListNode findElement(Integer key) {\n SkipListNode node = start;\n while (true) {\n // Go right\n while (key.compareTo(node.getSuccessor().getKey()) >= 0) {\n node = node.getSuccessor();\n }\n\n // If we find the node,\n // then go down to the bottom level and return it\n if (node.getKey() == key) {\n while (node.getDown() != null) {\n node = node.getDown();\n }\n return node;\n }\n\n // If we do not find the node\n else {\n // If this is not the bottom level,\n // then go down and continue searching\n if (node.getDown() != null) {\n node = node.getDown();\n }\n // If this is the bottom list\n else {\n while (key.compareTo(node.getSuccessor().getKey()) >= 0) {\n node = node.getSuccessor();\n }\n // If we find the node,\n // then return it\n if (key.compareTo(node.getKey()) == 0) {\n return node;\n }\n // If we do not find the node,\n // then return null\n else {\n return null;\n }\n }\n }\n }\n }", "title": "" }, { "docid": "17af2b1e4c34549427a463e258182565", "score": "0.56829417", "text": "private TreeNode findNode( DefaultMutableTreeNode node, Object obj )\n {\n if( obj instanceof String )\n {\n if( node.getUserObject().toString().equals( obj.toString() ) )\n {\n return node;\n }\n }\n else if( node.getUserObject().equals( obj ) )\n {\n return node;\n }\n\n TreeNode foundNode = null;\n for( int i = 0; i < node.getChildCount(); i++ )\n {\n DefaultMutableTreeNode childNode = (DefaultMutableTreeNode) node.getChildAt( i );\n foundNode = findNode( childNode, obj );\n if( foundNode != null )\n {\n break;\n }\n }\n\n return foundNode;\n }", "title": "" }, { "docid": "5ebbe60dcb02d6a7feaa5c7a45f8bb04", "score": "0.5681227", "text": "public P getParent();", "title": "" }, { "docid": "2eb60b6bf135a4aaca8179625109a5ba", "score": "0.568003", "text": "private int findParent(int cindex)\n {\n return cindex/2;\n }", "title": "" }, { "docid": "d240e8eead4b07b96e112ab1c8cb38e2", "score": "0.56733286", "text": "public AbstractNode lookforNodeBasedOnPosition(AbstractNode target) {\r\n\t\t// System.out.print(\"\");\r\n\t\tAbstractNode foundNode = null;\r\n\t\tAbstractNode node = null;\r\n\t\tAbstractNode node2 = null;\r\n\t\tint knownLocation = 0;\r\n\t\tif (target == null)\r\n\t\t\treturn null;\r\n\t\tif (target.getParent() != null) {\r\n\t\t\tknownLocation = target.locationInParent();\r\n\t\t} else {\r\n\t\t\tknownLocation = -1;\r\n\t\t}\r\n\t\tSet<AbstractNode> potentialFoundNodes = new HashSet<AbstractNode>();\r\n\t\tEnumeration<AbstractNode> depthFirstEnumeration = this\r\n\t\t\t\t.depthFirstEnumeration();\r\n\t\twhile (depthFirstEnumeration.hasMoreElements()) {\r\n\t\t\tAbstractNode temp = depthFirstEnumeration.nextElement();\r\n\t\t\tif ((temp.getNodeType() == target.getNodeType() || temp\r\n\t\t\t\t\t.getStrValue().equals(target.getStrValue()))) {\r\n\t\t\t\tif (temp.locationInParent() == knownLocation) {\r\n\t\t\t\t\tEnumeration<AbstractNode> path = target\r\n\t\t\t\t\t\t\t.pathFromAncestorEnumeration(target.getRoot());\r\n\t\t\t\t\tEnumeration<AbstractNode> path2 = temp\r\n\t\t\t\t\t\t\t.pathFromAncestorEnumeration(this.getRoot());\r\n\t\t\t\t\twhile (path2.hasMoreElements() && path.hasMoreElements()) {\r\n\t\t\t\t\t\tnode2 = path2.nextElement();\r\n\t\t\t\t\t\tnode = path.nextElement();\r\n\t\t\t\t\t\tif ((node2.getNodeType() == node.getNodeType() || node2\r\n\t\t\t\t\t\t\t\t.getStrValue().equals(node.getStrValue()))\r\n\t\t\t\t\t\t\t\t&& node2.locationInParent() == node\r\n\t\t\t\t\t\t\t\t\t\t.locationInParent()) {// this match is\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// not suitable\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// for\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// \"else\"/\"then\"\r\n\t\t\t\t\t\t\t// because then/else are not matched due to their\r\n\t\t\t\t\t\t\t// own node type, but their if-condition\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (path2.hasMoreElements() || path.hasMoreElements()) {\r\n\t\t\t\t\t\tpath = path2 = null;\r\n\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tpath = path2 = null;\r\n\t\t\t\t\t\tfoundNode = temp;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t} else if (knownLocation == -1) {// there is no parent\r\n\t\t\t\t\tif (temp.getParent() == null) {\r\n\t\t\t\t\t\tfoundNode = temp;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tpotentialFoundNodes.add(temp);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\ttemp = null;\r\n\t\t}\r\n\t\tif (foundNode == null && !potentialFoundNodes.isEmpty()) {\r\n\t\t\tfoundNode = potentialFoundNodes.iterator().next();\r\n\t\t}\r\n\t\tpotentialFoundNodes = null;\r\n\t\tdepthFirstEnumeration = null;\r\n\t\ttarget = null;\r\n\t\treturn foundNode;\r\n\t}", "title": "" }, { "docid": "0101545c7e265b6992a173d55682de73", "score": "0.56727946", "text": "public K getKey(V value)\n\t{\t\n\t\tNode<K,V> tmp = root;\n\t\tif(root == null) return null;\n\t\twhile(tmp != null){\n\t\tif(((Comparable<V>)value).compareTo(tmp.value) < 0)\n\t\t\ttmp = tmp.leftChild;\n\t\telse if(((Comparable<V>)value).compareTo(tmp.value) > 0)\n\t\t\ttmp = tmp.rightChild;\n\t\telse if(((Comparable<V>)value).compareTo(tmp.value) == 0)\n\t\t\treturn tmp.key;\n\t\t}\n\t\tif(tmp == null)\n\t\treturn null;\t\t\n\t\treturn tmp.key;\n\t}", "title": "" }, { "docid": "a7771c81d79a908a3ae3687f4321d990", "score": "0.56699765", "text": "@Override\n public TreeNode getPossibleParentNode(String pattern) {\n if (pattern == null || pattern.length() <= 0 || pattern.indexOf('*') >= 0)\n return null;\n\n TreeNode node = null;\n int longest = 0;\n\n for (TreeNode n : traverse(true)) {\n String aname = n.getCompletePathName();\n\n if (aname == null)\n continue; // defensive pgming\n\n // JIRA 15500 -- there may be a backslash in the name!\n\n if (pattern.startsWith(aname) || pattern.startsWith(aname.replace(\"\\\\\", \"\"))) {\n int thisLength = aname.length();\n\n // keep the longest match ONLY!\n if (node == null || thisLength > longest) {\n node = n;\n longest = thisLength;\n }\n }\n }\n\n return node;\n }", "title": "" }, { "docid": "4facfc104bd1a580e7d4afadb38757c1", "score": "0.5663959", "text": "Node getSiblingOfType(NodeType type);", "title": "" }, { "docid": "c31264128b8fb9cdd2a3a79765d63875", "score": "0.5658051", "text": "public Node getParent() { return parent; }", "title": "" }, { "docid": "adb70fe706a9165e5731df7cfed39739", "score": "0.5654903", "text": "public T getAncestorNode(final Class<? extends V> c) {\n return Util.cast(this.value.getClass().equals(c) ? this : this.parent == null ? null : this.parent\n .getAncestorNode(c));\n }", "title": "" }, { "docid": "7156fa94d47c11cd7e2a53841ed6e6df", "score": "0.5653754", "text": "public Node getOtherNode(Node node);", "title": "" }, { "docid": "b42a2a9b907715c0344e8e8eaf75acea", "score": "0.5651826", "text": "public static Node findNode(ArrayList<Node> list, String property, String value) {\n\t for (Node item:list) {\r\n\t\t if(item.getProperty(property).equals(value)) {\r\n\t\t\t return item;\r\n\t\t }\r\n\t }\r\n\t return null;\r\n }", "title": "" }, { "docid": "a73cb289a05d6048f7df87be4fddd787", "score": "0.56347066", "text": "Node<T> find(T t) {\n /* Since each node has a unique value t, only one value will be returned */\n for (Node<T> n : this.nodes) {\n if (n.pos == t) {\n return n;\n }\n }\n throw new NoSuchElementException(\"This graph doesn't contain this node!\");\n }", "title": "" }, { "docid": "25e588e924d3a66445c7969414847801", "score": "0.5632263", "text": "Object getParentId();", "title": "" }, { "docid": "12ad4dde80ffd49a9dd0bccdf818c559", "score": "0.56037796", "text": "public Parent getParent();", "title": "" }, { "docid": "b409cbfc094e076719198e37e0d8f6bc", "score": "0.5602899", "text": "public Node find(String path) throws NotFoundException {\n\tif(path.charAt(0) != '/') throw new IllegalArgumentException();\n\tString[] S =path.split(pathSeparatorString);\n\t\n\tNode current = this;\n\tObject proof = null;\n\tfor(int i =1; i < S.length;i++) {\n\t\t proof = current.child(S[i]);\n\t\t if (proof == null) {\n\t\t\t throw new NotFoundException(\"NFE\");\n\t\t }\n\t\t \n\t\t current = current.child(S[i]);\n\t\t\n\t\t \n\t}\n\treturn current;\n \n }", "title": "" }, { "docid": "0a929b6ad272f6b238b4570d3addced5", "score": "0.56028825", "text": "public Dnode find(String nodeName, String attrName, Object value) {\r\n\r\n\t\treturn find(nodeName, attrName, value, -1);\r\n\r\n\t}", "title": "" }, { "docid": "48f4cdce7a6f9977ef73f82975c57916", "score": "0.56006914", "text": "public TreeNode getLeastCommonAncestor(TreeNode root, int value1, int value2) {\n\t\tTreeNode node = root;\n\t\twhile (node != null) {\n\t\t\tif (node.value > value1 && node.value > value2) {\n\t\t\t\tnode = node.leftChild;\n\t\t\t} \n\t\t\telse if (node.value <value1 && node.value <value2) {\n\t\t\t\tnode = node.rightChild;\n\t\t\t} \n\t\t\telse { //this is between both value1 and value2\n\t\t\t\treturn node;\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "title": "" }, { "docid": "d31a2924d948489662c4c45a261ce58b", "score": "0.55899763", "text": "public int find(String key)\r\n {\r\n Node curNode = root;\r\n int childNumber;\r\n while (true)\r\n {\r\n if((childNumber = curNode.findItem(key)) != -1)\r\n {\r\n return childNumber; // finds it\r\n }\r\n else if(curNode.isLeaf())\r\n {\r\n return -1; // cant find it\r\n }\r\n else\r\n {\r\n curNode = getNextChild(curNode, key);\r\n }\r\n }\r\n }", "title": "" }, { "docid": "6e8014e961872f0cc272318d27761af1", "score": "0.5587062", "text": "public Element getParentElement();", "title": "" }, { "docid": "fd1ff5a44129070ec3c82354019cd7a9", "score": "0.55861294", "text": "public Object getParent();", "title": "" }, { "docid": "9a536972f2d8cb9422b192f2769eae54", "score": "0.55815125", "text": "private int findParent(int x){\n\t\tint parent = (n-1)/2;\n\t\treturn parent;\n\t}", "title": "" }, { "docid": "3ee1d0972ddca95085aa121516bf8d38", "score": "0.55793077", "text": "VFolder getParent();", "title": "" }, { "docid": "20be011ad34ce0781af8b4eeed8f048e", "score": "0.5572771", "text": "private String find(String child){\n if(!unionMap.containsKey(child))\n return child;\n String parent = unionMap.get(child);\n return parent.equals(child) ? parent : find(parent);\n }", "title": "" }, { "docid": "28adfdd6316abd6560b484245a5db368", "score": "0.5572401", "text": "Node find_iterative(int data){\n\t\tNode curNode=tree.rootNode;\n\t\twhile(curNode!=null){\n\t\t\tif(curNode.data==data){\n\t\t\t\treturn curNode;\n\t\t\t}else{\n\t\t\t\tcurNode=data<curNode.data?curNode.leftNode:curNode.rightNode;\n\t\t\t}\n\t\t}\n\t\treturn curNode;\n\t}", "title": "" }, { "docid": "115156aafa7a6249eca5a4638857cebe", "score": "0.5571716", "text": "public Dnode find(String nodeName, String attrName, Object value, int maxLevel) {\r\n\r\n\t\tArrayList<Dnode> list = new ArrayList<Dnode>();\r\n\t\tfindByNode(list, nodeName, true, attrName, value, maxLevel);\r\n\t\tif (list.size() >= 1) {\r\n\t\t\treturn list.get(0);\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "a393d1b444a2d3099e610c67f43e293d", "score": "0.5565741", "text": "boa.types.Ast.Type getParents(int index);", "title": "" }, { "docid": "7067bd1eef05e72d87c3934d152013d3", "score": "0.5550556", "text": "@Override\r\n\tpublic TrieNode search(String prefix) {\r\n\t\t// TODO Auto-generated method stub\r\n\t\tif(prefix==null || prefix.equals(\"\")) {\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\tHashMap<Character, TrieNode> children = root.getChildren();\r\n\t\tTrieNode pre = root;\r\n\t\tfor(int i =1;i< prefix.length();i++) {\r\n\t\t\tchar ch = prefix.charAt(i);\r\n\t\t\tif(children.containsKey(ch)) {\r\n\t\t\t\tpre = children.get(ch);\r\n\t\t\t\tchildren = pre.getChildren();\r\n\t\t\t}else {\r\n\t\t\t\treturn null;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn pre;\r\n\t}", "title": "" }, { "docid": "c3c02d417d4ff82c0c74e51a3c1c201f", "score": "0.55404466", "text": "public static Node getNode(ArrayList<Node> friendList, int value) {\n\t\tNode node = null;\n\t\tfor (int i = 0; i < friendList.size(); i++) {\n\t\t\tnode = friendList.get(i);\n\t\t\tif (node.getValue() == value) {\n\t\t\t\treturn node;\n\t\t\t}\n\t\t}\n\t\treturn node;\n\t}", "title": "" }, { "docid": "28baadb328e4150628188732ef751c5f", "score": "0.5539233", "text": "public Node getParentByTournamentSelection(int k) {\n\t\tif (k <= 0)\n\t\t\treturn null;\n\t\tNode re = population.get(rd.nextInt(POP_SIZE));\n\t\tNode tmp;\n\t\tfor (int i = 0; i < k - 1; i++) {\n\t\t\tdo\n\t\t\t\ttmp = population.get(rd.nextInt(POP_SIZE));\n\t\t\twhile (tmp == re);\n\t\t\tif (tmp.getH() < re.getH())\n\t\t\t\tre = tmp;\n\t\t}\n\t\treturn re;\n\t}", "title": "" }, { "docid": "c2d4ae66a92d6621fff25f39d722e591", "score": "0.55353063", "text": "public Chain getParent() ;", "title": "" }, { "docid": "0a5396dcde8024a8ed8b11411d7165b2", "score": "0.5523865", "text": "@Override\r\n\tpublic TreeNode getParent() {\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "72d2be60103bcef694e2ce6103a775f7", "score": "0.55179274", "text": "public node find(String k){\n int idx = h(k);\n node n = Table[idx];\n if(n != null && n.getWord().equals(k)){\n return n;\n }\n while(n.getNext() != null) {\n if(n != null && n.getWord() == k){\n return n;\n }\n if(n.getNext().getWord().equals(k)){\n return n.getNext();\n }\n n = n.getNext();\n }\n node dumb_node = new node(\"key does not exist\", 0);\n return dumb_node;\n }", "title": "" }, { "docid": "18cb7246908101f1f921fc721a732c50", "score": "0.55158526", "text": "public Node<T> search(T key)\n {\n Node<T> x = this.root;\n while (x.notLeaf() && !x.key.equals(key))\n {\n if(key.compareTo(x.key)<0)\n x=x.getLeft();\n else\n x=x.getRight();\n }\n //at this point other node is found and in stored in x\n //or x hold null node\n return x;\n }", "title": "" }, { "docid": "33ea45c69fd3359ca380ce504d6a445f", "score": "0.55118966", "text": "private PrefixTreeNode prefixSearchNode(String word) {\n\t\tPrefixTreeNode temp = root;\n\t\tfor (int level = 0; level < word.length(); level++) {\n\t\t\tString curChar = String.valueOf(word.charAt(level));\n\t\t\t// if there is no such possible keywords\n\t\t\tif (!temp.getChildren().containsKey(curChar))\n\t\t\t\treturn null;\n\t\t\ttemp = temp.getChildren().get(curChar);\n\t\t}\n\t\treturn temp;\n\t}", "title": "" }, { "docid": "599885917ab5adc6a5300913ae35be34", "score": "0.55098295", "text": "private Slot getParentSlot(final String parentPath, final String headerName) {\n if ((parentPath == null || parentPath.trim().isEmpty()) && HDR_ENTITY_PARENT.equals(headerName)) {\n if (isHostingSlot) {\n result.addRowMessage(ErrorMessage.ORPHAN_SLOT, HDR_ENTITY_NAME, entityNameFld);\n return null;\n } else {\n return slotEJB.getRootNode();\n }\n }\n final String[] parents = parentPath.split(DataLoader.PATH_SEPARATOR_PATTERN);\n if (parents.length == 1) {\n // find parent if only one in the database\n final String theParent = parents[0].trim();\n final List<Slot> parentCandidates = slotEJB.findAllByName(theParent);\n if (parentCandidates.isEmpty()) {\n result.addRowMessage(ErrorMessage.ENTITY_NOT_FOUND, headerName, theParent);\n return null;\n }\n if (parentCandidates.size() > 1) {\n result.addRowMessage(ErrorMessage.AMBIGUOUS_PARENT_SLOT, headerName, theParent);\n return null;\n }\n return parentCandidates.get(0);\n } else {\n Slot parent = slotEJB.getRootNode();\n for (final String parentName : parents) {\n final String normalizedName = parentName.trim();\n // ignore empty rows\n if (!normalizedName.isEmpty()) {\n parent = findChildSlot(parent, normalizedName, headerName);\n if (parent == null) {\n // requested child not found\n return null;\n }\n }\n }\n return parent;\n }\n }", "title": "" }, { "docid": "b6d6d61d3b2200a8f6321b1d07602581", "score": "0.5506543", "text": "public Integer[] getToNodeWithValue(int searchValue) {\n if (root.getData() == searchValue) {\n return new Integer[]{searchValue};\n } else {\n List<Integer> path = new ArrayList<>();\n root.getToNode(searchValue, path);\n return path.toArray(new Integer[path.size()]);\n }\n }", "title": "" } ]
9d9243ae7d703fe74eb8d04e135f41ff
/ Set type of light this is.
[ { "docid": "121848f8606e204b72f717b9a885aa27", "score": "0.7785136", "text": "public void setLightType(LightTypeE lightType ) { mLightType = lightType ; }", "title": "" } ]
[ { "docid": "04e58f8172306524473de3c2150ac975", "score": "0.68776286", "text": "void setType(Material type);", "title": "" }, { "docid": "c5710ce47fcd582439410e023fd78165", "score": "0.66839194", "text": "void SetType(E_MATERIAL_TYPE type);", "title": "" }, { "docid": "a72bb5798d5e5fdef46b1614a271dc01", "score": "0.6539128", "text": "public void setLightFor(EnumSkyBlock p_177431_1_, BlockPos pos, int value) {}", "title": "" }, { "docid": "5e9c83a0e2ac0e904bcc31145e72eca3", "score": "0.6503512", "text": "public void changeType(Type type) {\n this.type = type;\n }", "title": "" }, { "docid": "968438f639687dd894c5748483893a49", "score": "0.64717895", "text": "void setType(Type type);", "title": "" }, { "docid": "5bd262ad42d3be6dc379455d407c8476", "score": "0.64294815", "text": "public void changeLight()\n {\n boolean flag=true;\n if(state==RED && flag==true)\n {\n state=GREEN;\n flag=false;\n }\n else if (state==YELLOW && flag==true)\n {\n state= RED;\n flag=false;\n }\n else if(state==GREEN && flag==true)\n {\n state=YELLOW;\n flag=false;\n }\n }", "title": "" }, { "docid": "d2b88ebdcea850d1f481c1c6b034f815", "score": "0.64167875", "text": "public void setType(int type);", "title": "" }, { "docid": "867a8fed938e856ddff6702718b5ae52", "score": "0.64160234", "text": "public void setType(int t)\n {\n type = t;\n }", "title": "" }, { "docid": "13e78ba96147675645bf29546ea63706", "score": "0.63999146", "text": "private void setLight(LightNode newLight) {\n this.light = newLight;\n if(this.light == null) {\n this.light = new LightNode();\n }\n\n //Initialize temporary variables that we'll use to track changes.\n this.name = this.light.getIdentifier();\n this.lightType = this.light.type;\n this.diffuseColor.set(light.diffuse);\n this.specularColor.set(light.specular);\n }", "title": "" }, { "docid": "416739c7b4e7e8ce2f7288cf7d254b03", "score": "0.6359123", "text": "public void setLightMode() {\n blank = \"74bfb0\";\n apple = \"cc1212\";\n body = \"249b0f\";\n head = \"b76309\";\n bg = \"ceceb5\";\n backdropKill = \"F61067\";\n backdropSafe = \"7AE7C7\";\n rock = \"53585e\";\n applesEatenKill = \"e9edbb\";\n applesEatenSafe = \"EA633A\";\n toolPanel.updateButtonColors(getColorScheme());\n }", "title": "" }, { "docid": "b433cddc55e00d9f9612276710293cb6", "score": "0.6344765", "text": "public void setType(TYPE type);", "title": "" }, { "docid": "732f5afa958c498925655f7a2e08dd70", "score": "0.62997437", "text": "private void setType(int type) {\n \t\tfType = type;\n \t}", "title": "" }, { "docid": "35dacf115edc89c9d073a5c2bb628190", "score": "0.6297864", "text": "void setType(String type);", "title": "" }, { "docid": "35dacf115edc89c9d073a5c2bb628190", "score": "0.6297864", "text": "void setType(String type);", "title": "" }, { "docid": "35dacf115edc89c9d073a5c2bb628190", "score": "0.6297864", "text": "void setType(String type);", "title": "" }, { "docid": "35c83824543b57c559bbd88e458bf21c", "score": "0.6242864", "text": "public void setType (int t)\n {\n\n\tthis.type = t;\n\n }", "title": "" }, { "docid": "43d5b7259db89daf69ca2a6116eceaa9", "score": "0.62225425", "text": "public Shape setMaterial(Material.Materials type){\n this.material = new Material().getMaterial(type);\n return this;\n }", "title": "" }, { "docid": "9d7b92315b7aded7446ec12bc43b8bf3", "score": "0.62168485", "text": "Light createLight();", "title": "" }, { "docid": "b23c4718e27193fb09c4d23644bd3324", "score": "0.6201741", "text": "SetLightColor createSetLightColor();", "title": "" }, { "docid": "060487d24d2447ad5287cfc6bf4123ba", "score": "0.6199914", "text": "final void setType (int t) {\n type = t;\n needsUpdate = true;\n }", "title": "" }, { "docid": "253bd99cb71d8e148111baccf9c5376c", "score": "0.6194322", "text": "public void setType(String type);", "title": "" }, { "docid": "253bd99cb71d8e148111baccf9c5376c", "score": "0.6194322", "text": "public void setType(String type);", "title": "" }, { "docid": "5defe7978b6c48a37637acfffca4cb0a", "score": "0.61892915", "text": "public LightTypeE getLightType() { return mLightType ; }", "title": "" }, { "docid": "74762162d7888779da8a6ae83ee064b3", "score": "0.6176239", "text": "public void turnLightOn();", "title": "" }, { "docid": "75af2a64208600108f7d6dbec4de067f", "score": "0.6151108", "text": "public void setType(String newType);", "title": "" }, { "docid": "162a8fc73f7a1f5383bdbf71f71df338", "score": "0.6133659", "text": "public final void setColorsType (int type) {\n\n needsUpdate = true;\n colorsType = type;\n }", "title": "" }, { "docid": "14b53c363200bf9fdef89fb8ae16b895", "score": "0.6113345", "text": "public void setLedType(final eu.hansolo.steelseries.tools.LedType LED_TYPE)\n {\n this.ledType = LED_TYPE;\n final boolean LED_WAS_ON = currentLedImage.equals(ledImageOn) ? true : false;\n\n ledImageOff = create_LED_Image(getWidth(), 0, ledColor, ledType);\n ledImageOn = create_LED_Image(getWidth(), 1, ledColor, ledType);\n\n currentLedImage = LED_WAS_ON == true ? ledImageOn : ledImageOff;\n\n repaint();\n }", "title": "" }, { "docid": "0820d4627b07b206f1ec493bbfce8167", "score": "0.61022776", "text": "public void setRatetype(Object newVal) {\n this.ratetype = newVal; \n ratetype_is_modified = true; \n ratetype_is_initialized = true; \n }", "title": "" }, { "docid": "be1a9e67deede37cfa15e229d45b11a5", "score": "0.6099274", "text": "public void type(T t) {\ttype = t; }", "title": "" }, { "docid": "783d36318199470be9c49ac53104434c", "score": "0.6082557", "text": "public void setLightlevel(int lightlevel) {\n this.lightlevel = lightlevel;\n }", "title": "" }, { "docid": "68d7717239214c04f818253dd2c9e270", "score": "0.6078326", "text": "public void setType (String Type);", "title": "" }, { "docid": "2ef82aac7ab6fa233bbb0a454437393a", "score": "0.6068659", "text": "public void setType(String type) {\n fType = type;\n }", "title": "" }, { "docid": "9c8136c5ea3b49a1115ec29838616e0e", "score": "0.6061789", "text": "public void setLightStatus(boolean status){\n\t\tmyTrain.setLights(status);\n\t\n\t}", "title": "" }, { "docid": "c759286b528dc2a08d10017e212f0c18", "score": "0.60390824", "text": "public void setType(int t) {\n\t\tthis.type=t;\n\t}", "title": "" }, { "docid": "8df11755d103a7918868707e865a677d", "score": "0.603019", "text": "public void setType(String type) { this.type = type; }", "title": "" }, { "docid": "8df11755d103a7918868707e865a677d", "score": "0.603019", "text": "public void setType(String type) { this.type = type; }", "title": "" }, { "docid": "f7faec77dfc32e0cd988af9ae467a3f6", "score": "0.60158044", "text": "public void setType(Type type) {\n this.type = type;\n }", "title": "" }, { "docid": "ccd6a835d3cac5ac3d843e325fd73a77", "score": "0.59997743", "text": "public void setType(Type type) {\n this.type = type;\n }", "title": "" }, { "docid": "ecb019cbbdb4b17275b2fb99d39cd6ef", "score": "0.5994378", "text": "final void setType(int type) {\n \tgeomLock.getLock();\n this.type = type;\n \tgeomLock.unLock();\n }", "title": "" }, { "docid": "fb82d6fffd87b89a9488b2d825e07461", "score": "0.59701693", "text": "public void setType(CarType value)\n {\n this.type = value;\n }", "title": "" }, { "docid": "9778a1f9be1338470e266577a6ed4a0a", "score": "0.59658647", "text": "public boolean setColor(int type) {\n Color c;\n switch (type) {\n case MOVABLE_COLOR:\n c = queuedMarkColor;\n break;\n case HIGHLIGHT_COLOR:\n c = mm_highlightColor;\n break;\n default:\n c = mm_normalColor;\n break;\n }\n if (m_color != c) {\n m_color = c;\n makeNewImage(c);\n return true;\n } else {\n return false;\n }\n }", "title": "" }, { "docid": "3ce38433505b4b0351b236b7c1fc4878", "score": "0.595647", "text": "public void setType(int type) {\n this.type = type;\n }", "title": "" }, { "docid": "b359aaa29f7306a5108c461fd377f5ff", "score": "0.59403837", "text": "public void setType( String type ) {\n this.type=type;\n }", "title": "" }, { "docid": "9373dad003e4df0575178522a4b66b40", "score": "0.5938488", "text": "private void setType(String type) {\n this.type = type;\n }", "title": "" }, { "docid": "ed0f353ac71696156b40214da5f79993", "score": "0.5935819", "text": "public void setType(int type) {\r\n\t\tthis.type = type;\r\n\t}", "title": "" }, { "docid": "ed0f353ac71696156b40214da5f79993", "score": "0.5935819", "text": "public void setType(int type) {\r\n\t\tthis.type = type;\r\n\t}", "title": "" }, { "docid": "f78daabd8a768a516867fba56a1dfd9b", "score": "0.59180194", "text": "public void settype(int ty)\r\n\t{\r\n\t\ttype = types[ty];\r\n\t}", "title": "" }, { "docid": "1b386fc8e6523d578c665bb38d8c6033", "score": "0.591139", "text": "protected void setType(MDNodeType type) {\n\t\tthis.type = type;\n\t}", "title": "" }, { "docid": "c9c26ff2d90c45899e0e823af58a241c", "score": "0.5904538", "text": "public void setType(int type) {\n m_type = type;\n }", "title": "" }, { "docid": "3b9f13a30fe09ae5667aa4ffdd913ec7", "score": "0.5904112", "text": "public void setType(String newValue);", "title": "" }, { "docid": "62cfa326badf6e72635fdf10a8b7b94f", "score": "0.5898924", "text": "public void setLightStatus(Mode input) {\n if (input == Mode.ON) {\n lightstatus = Mode.ON;\n statuslabel.setText(\"Lights on\");\n statuslabel.setBackground(Color.green);\n }\n else if (input == Mode.OFF){\n lightstatus = Mode.OFF;\n statuslabel.setText(\"Lights off\");\n statuslabel.setBackground(Color.red);\n }\n else if (input == Mode.NOTCONNECTED){\n lightstatus = Mode.NOTCONNECTED;\n statuslabel.setText(\"Not connected\");\n statuslabel.setBackground(Color.yellow);\n }\n }", "title": "" }, { "docid": "bdb823e17c6d57e01c0de047a73deadb", "score": "0.58968306", "text": "public void setLightMode() {\n mStartingViewColor = getResources().getColor(R.color.car_title_light);\n mEndingViewColor = getResources().getColor(R.color.car_tint);\n updateViewFaders();\n }", "title": "" }, { "docid": "53dda09754f3e88657a74211f6d2af21", "score": "0.58784276", "text": "public Shape setMaterial(Material.Materials type, Rgb color){\n this.material = new Material().getMaterial(type, color);\n return this;\n }", "title": "" }, { "docid": "144ee09dc75f2c0e3cc17809b515dc12", "score": "0.58683467", "text": "public void setType(int type){\n\t\tthis.type=type;\n\t}", "title": "" }, { "docid": "b6268c0ce70d3a8511a132c518498c64", "score": "0.5867589", "text": "public void setType(byte type) {\n\t\tfType = type;\n\t\tinitializeBlocks();\n\t}", "title": "" }, { "docid": "055d01022961fffa0523d3600518d15b", "score": "0.586644", "text": "public void setType(String type) \r\n {\r\n this.type = type;\r\n }", "title": "" }, { "docid": "949fc170c06dc990f31e281904779ab8", "score": "0.58521175", "text": "public void setType(Type type) {\n \t\tString typ = type.toString();\n \t\tsetType(typ);\n \t}", "title": "" }, { "docid": "e9c5bc1204adf0daf82e7e04ebee60d8", "score": "0.5847196", "text": "public static void setAmbientLight(float light){\n\t\t//TODO\n\t}", "title": "" }, { "docid": "f893563ae1b5574fd2db7b8f97f94422", "score": "0.58444965", "text": "public void setType(int x, int z, int y, Material type) {\n setType(x, z, y, MaterialUtil.getId(type));\n }", "title": "" }, { "docid": "e45d699cff06ff658b3867d15feca596", "score": "0.58373696", "text": "public void settype(String ty)\r\n\t{\r\n\t\ttype = ty;\r\n\t}", "title": "" }, { "docid": "7be24c15efeda5afe3990286a6daf6d2", "score": "0.5834403", "text": "public void setType(String type) {\n this.Type = type;\n }", "title": "" }, { "docid": "6559563349e77ef332a4732835af41e6", "score": "0.5829389", "text": "public void setWinlosetype(Integer winlosetype) {\n\t\tthis.winlosetype = winlosetype;\n\t}", "title": "" }, { "docid": "a0bc93bec40e9f52edbbcbd9222382f8", "score": "0.581198", "text": "public void setType(int type) {\n\t\tthis.type = type;\n\t}", "title": "" }, { "docid": "4d9e1ad2cdb470d22ea25a32a2b2ccb3", "score": "0.5808043", "text": "public void setLight(int i) {\n\t\tif (i < 0) i = 0;\n\n\t\tcombinedLight = (byte) ((combinedLight & 0xF0)+(i & 0x0F));\n\t}", "title": "" }, { "docid": "854d6e4777e392b777a1486c20f47142", "score": "0.5803339", "text": "public void setType(org.openxmlformats.schemas.drawingml.x2006.main.STTextAutonumberScheme.Enum type)\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(TYPE$0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(TYPE$0);\n }\n target.setEnumValue(type);\n }\n }", "title": "" }, { "docid": "126380080272b72a0684fa5bc0142e0f", "score": "0.5802452", "text": "public void setType(String type) {\r\n this.type = type;\r\n }", "title": "" }, { "docid": "126380080272b72a0684fa5bc0142e0f", "score": "0.5802452", "text": "public void setType(String type) {\r\n this.type = type;\r\n }", "title": "" }, { "docid": "ebc09588be08857ec44108a4b5636f1e", "score": "0.57996607", "text": "public void setType(String type) {\n this.type = type;\n }", "title": "" }, { "docid": "ebc09588be08857ec44108a4b5636f1e", "score": "0.57996607", "text": "public void setType(String type) {\n this.type = type;\n }", "title": "" }, { "docid": "ebc09588be08857ec44108a4b5636f1e", "score": "0.57996607", "text": "public void setType(String type) {\n this.type = type;\n }", "title": "" }, { "docid": "080618506e1e47b2a7ef4f2df9890750", "score": "0.5795867", "text": "void updateType(Type type);", "title": "" }, { "docid": "ec30cd99401fa60d15bd5704878c3907", "score": "0.57914895", "text": "public void setType(String aType);", "title": "" }, { "docid": "9ec754ebb3aab9e15f5da8f688d217ad", "score": "0.5790554", "text": "public void setType(MediaType type) {\n this.type = type;\n }", "title": "" }, { "docid": "2c040af73b7c98f105b0aa5d75daa947", "score": "0.5790116", "text": "public void setType(String type)\n {\n this.type = type;\n }", "title": "" }, { "docid": "1a427a435e9b1226d1f75d9bfd1bb15f", "score": "0.5783754", "text": "public void setType(String type) {\n this.type = type;\n }", "title": "" }, { "docid": "a5ff255dd1d3d75ce0f38b6fa1e26565", "score": "0.5783402", "text": "public void setType(short type) {\n block.writeShort(O_MAGIC, (short) (Magic.BLOCK + type));\n }", "title": "" }, { "docid": "5ca920697c65663773317c516e512363", "score": "0.5782419", "text": "public void SetFloortype(Floortype _ft){\n\t\tthis.ft = _ft;\n\t\tthis.df.floorChanged(_ft);\n\t}", "title": "" }, { "docid": "1bc3e12f861468cdb7aeafee3a2cf7c2", "score": "0.5779588", "text": "public void setTypeSensor(String typeSensor) {\n this.typeSensor = typeSensor;\n }", "title": "" }, { "docid": "bca889a134f12edb1204b536ff67d24f", "score": "0.5779253", "text": "public void setType(String type) {\n\tthis.type=type;\t\r\n\t}", "title": "" }, { "docid": "377b3c45b095d97365008df310a247fa", "score": "0.57769626", "text": "public void setType(String type) {\n _type = type;\n }", "title": "" }, { "docid": "e8b16edafa42198b9c2d4c98130f5bd0", "score": "0.57721794", "text": "void setType() {\r\n type = this.getClass().getName();\r\n }", "title": "" }, { "docid": "c9456b840c0c6893771aa7efe3e6d1a8", "score": "0.57538855", "text": "Light() {\n\t\tthis.power = \"N/A\";\n\t\tthis.intensity = -1;\n\t\tstatusPredicateMap.put(\"intensity\", \"has_intensity\");\n\t\tstatusPredicateMap.put(\"power\", \"has_power\");\n\t}", "title": "" }, { "docid": "5a5c211262048c7f96be83891051c643", "score": "0.5749197", "text": "public void setType(String type) {\n \t\tthis.type = type;\n \t}", "title": "" }, { "docid": "db3d9bd993fa1bab3fa8efde51410ef9", "score": "0.5748057", "text": "public void setType(String sType){\n\t\tswitch(sType.toLowerCase()){\n\t\tcase \"brick\": \n\t\t\twalkable = false;\n\t\t\ttype = TILE_TYPE[0];\n\t\t\tbreak;\n\t\tcase \"wall\": \n\t\t\twalkable = false;\n\t\t\ttype = TILE_TYPE[1];\n\t\t\tbreak;\n\t\tcase \"green\":\n\t\tdefault: \n\t\t\ttype = TILE_TYPE[2];\n\t\t\twalkable = true;\n\t\t}\n\t}", "title": "" }, { "docid": "8a347cbe1aea5ff259c9bfe95a35c5b5", "score": "0.57458013", "text": "@Override\n public void setPrimitiveType(int type) {\n _hasChanged = true;\n _premitivType = type;\n }", "title": "" }, { "docid": "5a60226f7d72c03f5ad05b85ec8dc0e6", "score": "0.5725247", "text": "@OleProperty void setType(int type);", "title": "" }, { "docid": "56bed904dea3e6bf6198dec0a1dc27a4", "score": "0.5719961", "text": "@Element\n public void setType(String newVar) {\n type = newVar;\n }", "title": "" }, { "docid": "56c6535a8cf83cb709194735e3b5acb1", "score": "0.5717805", "text": "public void setType(String type){\n this.type = type;\n //Update hashMap value..\n hashMap.put(\"type\", type);\n }", "title": "" }, { "docid": "aa347b16c0b1137d8f7913b0c3ada67c", "score": "0.57174176", "text": "public void setType(Integer type) {\r\n this.type = type;\r\n }", "title": "" }, { "docid": "aa347b16c0b1137d8f7913b0c3ada67c", "score": "0.57174176", "text": "public void setType(Integer type) {\r\n this.type = type;\r\n }", "title": "" }, { "docid": "01b4b89cc3257e4b8d431fdbd576c42a", "score": "0.5715929", "text": "Material getType();", "title": "" }, { "docid": "493bcc4170cafd4f802a5334f3389295", "score": "0.57137465", "text": "public void setRumble(RumbleType type, float value) {\n\t\tif (value < 0)\n\t\t\tvalue = 0;\n\t\telse if (value > 1)\n\t\t\tvalue = 1;\n\t\tif (type.value == RumbleType.kLeftRumble_val)\n\t\t\tm_leftRumble = (short) (value * 65535);\n\t\telse\n\t\t\tm_rightRumble = (short) (value * 65535);\n\t\tFRCNetworkCommunicationsLibrary.HALSetJoystickOutputs((byte) m_port, m_outputs, m_leftRumble, m_rightRumble);\n\t}", "title": "" }, { "docid": "48c496148126bf19cfcb1de1d3cd8efc", "score": "0.5713364", "text": "public TrafficLight()\n {\n state=RED;\n }", "title": "" }, { "docid": "db9497de8dab59ccf5101784dbf46f52", "score": "0.5710583", "text": "public void setType(String type) {\n this.type = type;\n }", "title": "" }, { "docid": "db9497de8dab59ccf5101784dbf46f52", "score": "0.5710583", "text": "public void setType(String type) {\n this.type = type;\n }", "title": "" }, { "docid": "db9497de8dab59ccf5101784dbf46f52", "score": "0.5710583", "text": "public void setType(String type) {\n this.type = type;\n }", "title": "" }, { "docid": "db9497de8dab59ccf5101784dbf46f52", "score": "0.5710583", "text": "public void setType(String type) {\n this.type = type;\n }", "title": "" }, { "docid": "db9497de8dab59ccf5101784dbf46f52", "score": "0.5710583", "text": "public void setType(String type) {\n this.type = type;\n }", "title": "" }, { "docid": "db9497de8dab59ccf5101784dbf46f52", "score": "0.5710583", "text": "public void setType(String type) {\n this.type = type;\n }", "title": "" }, { "docid": "db9497de8dab59ccf5101784dbf46f52", "score": "0.5710583", "text": "public void setType(String type) {\n this.type = type;\n }", "title": "" } ]
dc10554eed3cfcd3523c7f514be84e08
destroy the presenter and set the view null
[ { "docid": "476885622a3ec44d8c4e88eb9ec79525", "score": "0.0", "text": "void destroy();", "title": "" } ]
[ { "docid": "3e7362e6442e78258c04cddb00d6f082", "score": "0.83976424", "text": "@Override\n protected void onDestroy() {\n presenter.detachView();\n super.onDestroy();\n }", "title": "" }, { "docid": "502fe8c251009364eac06c0cb3cc1649", "score": "0.7245709", "text": "public void cleanup() {\n view = null;\n }", "title": "" }, { "docid": "cd6fd96c47334f1c98a1d77382f13552", "score": "0.72007406", "text": "public void destroy()\t{ m_viewer.destroy(); }", "title": "" }, { "docid": "ed3c5ce8707f063dcf56c49353286179", "score": "0.71708125", "text": "@Override\n\tpublic void onDestroyView() {\n\t\tsuper.onDestroyView();\n\t\tif (pd != null && pd.isShowing())\n\t\t\tpd.dismiss();\n\t}", "title": "" }, { "docid": "b337d2575dc5e2e23f86c792cf0e93a6", "score": "0.7139673", "text": "@Override\r\n\tpublic void onDestroyView() {\n\t\tsuper.onDestroyView();\r\n\t}", "title": "" }, { "docid": "cb102b122741c0cebca9fea5711c1088", "score": "0.7079145", "text": "@Override\n\tpublic void onDestroyView() {\n\t\tsuper.onDestroyView();\n\t}", "title": "" }, { "docid": "cb102b122741c0cebca9fea5711c1088", "score": "0.7079145", "text": "@Override\n\tpublic void onDestroyView() {\n\t\tsuper.onDestroyView();\n\t}", "title": "" }, { "docid": "cb102b122741c0cebca9fea5711c1088", "score": "0.7079145", "text": "@Override\n\tpublic void onDestroyView() {\n\t\tsuper.onDestroyView();\n\t}", "title": "" }, { "docid": "cb102b122741c0cebca9fea5711c1088", "score": "0.7079145", "text": "@Override\n\tpublic void onDestroyView() {\n\t\tsuper.onDestroyView();\n\t}", "title": "" }, { "docid": "cb102b122741c0cebca9fea5711c1088", "score": "0.7079145", "text": "@Override\n\tpublic void onDestroyView() {\n\t\tsuper.onDestroyView();\n\t}", "title": "" }, { "docid": "8befe37c7091a3046baaa68eb158233b", "score": "0.70389277", "text": "@Override\n\tpublic void onDestroyView() {\n\t\tsuper.onDestroyView();\t\n\t}", "title": "" }, { "docid": "5ad6a68d1926f12dcccf1890d8a84108", "score": "0.6987282", "text": "@Override\n\tpublic void onDestroyView() {\n\t\tsuper.onDestroyView();\n\t\tif(mView!=null) {\n\t\t\t((ViewGroup)mView.getParent()).removeView(mView);\n\t\t}\n\t}", "title": "" }, { "docid": "c9bdea4a49c6889685a6f9cb45f5846a", "score": "0.6974381", "text": "public final void unBindView() {\n this.view = null;\n }", "title": "" }, { "docid": "e83d60418456aa6f7c7040e2066444f4", "score": "0.696071", "text": "@Override\n\tpublic void onDestroyView() {\n\t\tpoint.disconnect();\n\t\tsuper.onDestroyView();\n\t}", "title": "" }, { "docid": "c64ed59f10b13f840c6dbcfe049db598", "score": "0.6877967", "text": "@Override\r\n\tpublic void onDestroyView() {\n\t\tsuper.onDestroyView();\r\n\t\tLog.d(\"ouou\", \"house---》onDestroyView\");\r\n\t}", "title": "" }, { "docid": "80bd2fe9bfdbf28d4c1e360e68f16420", "score": "0.68007785", "text": "@Override\n\tpublic void onDestroyView() {\n\t\tsuper.onDestroyView();\n\t\tL.e(tag, \"onDestroyView\");\n\t\tinfo.setText(\"\");\n\t}", "title": "" }, { "docid": "12d222bb8870059ce56e071463fffc4b", "score": "0.67789453", "text": "@Override\n\tpublic void onDestroyView() {\n\t\tLog.i(tag, \"onDestroyView\");\n\t\tsuper.onDestroyView();\n\t}", "title": "" }, { "docid": "3d8895b4296df3bb12e2f6814d0a1a87", "score": "0.6746716", "text": "public void onDetach(){\n mView = null;\n }", "title": "" }, { "docid": "1e1d7850e0a95060e2118b3a2038177b", "score": "0.6712229", "text": "@CallSuper\n @Override\n public void onDestroyView() {\n onDestroyView(this);\n super.onDestroyView();\n }", "title": "" }, { "docid": "35042f4e4158a9a6a5c01bbccdc89561", "score": "0.66965973", "text": "public void removeView() { \n view.setOff();\n HUD.changeShopButtonVisibility(true);\n this.view = null; \n }", "title": "" }, { "docid": "09ad3d111887ebb30f2d0869c5aa452b", "score": "0.6692857", "text": "public void detachView() {\n this.view = null;\n this.subscription.unsubscribe();\n }", "title": "" }, { "docid": "bebc3723ead18e9ec4a5c76c5d2f0393", "score": "0.66682196", "text": "public void destroy() {\n\t\tif (viewLayout != null) {\n\t\t\t// viewLayout.destroy(brick.getParentGLCanvas().asGLAutoDrawAble().getGL().getGL2());\n\t\t\tviewLayout = null;\n\t\t}\n\t}", "title": "" }, { "docid": "8996674f1e621a5e0d9c8381748f4a68", "score": "0.66570914", "text": "public void dispose() {\n view.dispose();\n }", "title": "" }, { "docid": "e5b5ae22c69d56bc9817f71890544ea1", "score": "0.66500396", "text": "public synchronized void destroy()\n {\n if (log.isInfoEnabled())\n {\n log.info(id + \"destroy\");\n }\n\n if (initialized)\n {\n synchronized (lock)\n {\n // reset state to default values\n service = null;\n componentLocators = null;\n\n if (log.isInfoEnabled())\n {\n log.info(id + \"setting currentState to STATE_NOT_PRESENTING\");\n }\n currentState = STATE_NOT_PRESENTING;\n\n presentationBlocked = true; // default to blocked\n }\n }\n initialized = false;\n }", "title": "" }, { "docid": "827a8d75546b1cd28f534f90d35240f9", "score": "0.66363513", "text": "@Override\r\n\tpublic void onDestroyView() {\n\t\tsuper.onDestroyView();\r\n\t\t//imageLoader.destroy();\r\n\t\t//imageLoader.stop();\r\n\t}", "title": "" }, { "docid": "4375b4ba8ccacce639992c3326c8af0d", "score": "0.6627089", "text": "@Override\r\n\tpublic void onDestroyView() {\n\t\tsuper.onDestroyView();\r\n\t\tSimiManager.getIntance().backToHomeFragment();\r\n\t}", "title": "" }, { "docid": "8a59f86ebc65bc4447f7d7e92d038586", "score": "0.6624433", "text": "@Override\n public void onDestroyView()\n {\n super.onDestroyView();\n mTabHost=null;\n }", "title": "" }, { "docid": "5c6109408e569ac035c781727d40feda", "score": "0.6574422", "text": "@Override\r\n\tpublic void onDestroyView() {\n\t\tsuper.onDestroyView();\r\n\t\tLog.e(TAG, \"ondestoryView\");\r\n\t}", "title": "" }, { "docid": "5c6109408e569ac035c781727d40feda", "score": "0.6574422", "text": "@Override\r\n\tpublic void onDestroyView() {\n\t\tsuper.onDestroyView();\r\n\t\tLog.e(TAG, \"ondestoryView\");\r\n\t}", "title": "" }, { "docid": "78091615a0840cd7b43b8c12f0c5e146", "score": "0.6556218", "text": "@Override\n public void onDestroyView() {\n if (getDialog() != null && getRetainInstance()) {\n getDialog().setDismissMessage(null);\n }\n super.onDestroyView();\n }", "title": "" }, { "docid": "78091615a0840cd7b43b8c12f0c5e146", "score": "0.6556218", "text": "@Override\n public void onDestroyView() {\n if (getDialog() != null && getRetainInstance()) {\n getDialog().setDismissMessage(null);\n }\n super.onDestroyView();\n }", "title": "" }, { "docid": "f34bcddabc22a95a0d44c0316cf762c6", "score": "0.6544811", "text": "@Override\n public void onDestroyView() {\n super.onDestroyView();\n//\t\tLog.e(TAG, \"ondestoryView\");\n }", "title": "" }, { "docid": "13c9845c13a5454720ba915bc16c73ef", "score": "0.6543016", "text": "@Override\r\n\tprotected void onDestroy() {\n\t\tsuper.onDestroy();\r\n\t\tmConnectView.destoryView();\r\n \t\tLog.d(DEBUG, \"onDestroy\");\r\n\t}", "title": "" }, { "docid": "9b3bda399279d0baf7ec92ab0d495712", "score": "0.6540073", "text": "@Override\n \tpublic void onDestroyView() {\n \t\tif (getDialog() != null && getRetainInstance())\n \t\t\tgetDialog().setDismissMessage(null);\n \t\tsuper.onDestroyView();\n \t}", "title": "" }, { "docid": "eeb69e8e1af53db8d30d2493566bdad7", "score": "0.65277624", "text": "@Override\n public void onDestroy() {\n this.statisticsView = null;\n }", "title": "" }, { "docid": "1d278800357b509e896d08f326894a9f", "score": "0.6525077", "text": "@Override\n protected void onDestroy() {\n unbindViews();\n super.onDestroy();\n }", "title": "" }, { "docid": "21b1b08e2d35dd941e77ccd577e61ce6", "score": "0.6484894", "text": "protected void onDestroy(){\n controller.setflag(false, null, null);\n super.onDestroy();\n }", "title": "" }, { "docid": "66697b21d41848513860bb50604923e1", "score": "0.6480469", "text": "@Override\r\n\tpublic void onDestroyView() {\n\t\tConnectManager.close();\r\n\t\tgetActivity().unregisterReceiver(homeReceiver);\r\n\t\tsuper.onDestroyView();\r\n\t}", "title": "" }, { "docid": "f3054d334140c3757b342e6e4d77d220", "score": "0.6460935", "text": "@Override\n\tpublic void onDestroyView() {\n\t\tsuper.onDestroyView();\n\t\tLog.d(\"WebNewsFragment\", \"FRAG1: onDestroyView()\");\n\t}", "title": "" }, { "docid": "a7c4662604a936c4e7788ee24d65e53c", "score": "0.6445806", "text": "@Override\n public void onDestroyView() {\n blankAllValue();\n super.onDestroyView();\n }", "title": "" }, { "docid": "b6d13f4930cf24cf854c7e5013cc8e01", "score": "0.644543", "text": "@Override\n public void run() {\n wm.removeView(viewG);\n }", "title": "" }, { "docid": "b6d13f4930cf24cf854c7e5013cc8e01", "score": "0.644543", "text": "@Override\n public void run() {\n wm.removeView(viewG);\n }", "title": "" }, { "docid": "b6d13f4930cf24cf854c7e5013cc8e01", "score": "0.644543", "text": "@Override\n public void run() {\n wm.removeView(viewG);\n }", "title": "" }, { "docid": "7cd29b8f8e874c599b5987fd8efc64f6", "score": "0.6428541", "text": "@Override\n public void onDestroy() {\n this.itemDetailsView = null;\n this.eventBus.unregister(this);\n }", "title": "" }, { "docid": "9ded4123dd32f6bcd37bc1e7145b6068", "score": "0.6410521", "text": "@Override\n public void onDestroy() {\n super.onDestroy();\n\n // keepPresenter = check if activity changing Configurations || check if fragment is in backstack || check if fragment is not removing\n boolean keepPresenter = getActivity().isChangingConfigurations() || getFragmentManager().getFragments().contains(this) || !isRemoving();\n\n\n if (!keepPresenter) {\n if (mPresenter != null) {\n mPresenter.onDetach();\n }\n\n PresenterManager.remove(fragmentId);\n } else {\n //Remain the presentor in presenter manager\n }\n\n\n }", "title": "" }, { "docid": "9d571a63ae8077a9b32756d59490ccdd", "score": "0.63965625", "text": "void detachView();", "title": "" }, { "docid": "9d571a63ae8077a9b32756d59490ccdd", "score": "0.63965625", "text": "void detachView();", "title": "" }, { "docid": "52b8a7323f39367bfc50871e55a78330", "score": "0.6374917", "text": "@Override\n public void onDestroyView() {\n super.onDestroyView();\n getPreferenceScreen().getSharedPreferences()\n .unregisterOnSharedPreferenceChangeListener(this);\n }", "title": "" }, { "docid": "3c742cdbb825463f1848e3576ece7619", "score": "0.63610697", "text": "@Override\n\tpublic void onDestroyView() {\n\t\tsuper.onDestroyView();\n\t\ttry{\n\t\t\tmWebView.mWebView.removeAllViews();\n\t\t\tmWebView.mWebView.destroy();\n\t\t} catch (Exception e){\n\t\t\t\n\t\t}\n\t}", "title": "" }, { "docid": "4879a840f89e6ee91e7e1ba912a0a739", "score": "0.6359755", "text": "@Override\n public void onDestroy() {\n cambioClaveScreenView = null;\n eventBus.unregister(this);\n }", "title": "" }, { "docid": "f105fdd3f4f2450d584abd6cd9b4df01", "score": "0.63584083", "text": "@Override\n\tpublic void onDestroyView() {\n\t\tsuper.onDestroyView();\n\t\tSystem.out.println(\"onDestroyView\");\n\t\t// if (browsehistory.size() > 0)\n\t\t// updateTracker(browsehistory);\n\t}", "title": "" }, { "docid": "7db330d1a73b7fe6ee79783005df9755", "score": "0.63286525", "text": "public void destroy() {\n\t\tremove(display_parent);\n\t\tsuper.destroy();\n\t}", "title": "" }, { "docid": "8075ff8cff589e9f3bc0ece25d914ae4", "score": "0.63271207", "text": "@Override\r\n\tpublic void onDestroyView() {\r\n\t\tLog.d(LOG_TAG, \"onDestroyView\");\r\n\r\n\t\t// interrupt the RouteRetrieverThreads\r\n\t\tif (poiRouteRetriever != null)\r\n\t\t\tpoiRouteRetriever.interrupt();\r\n\r\n\t\tif (toTourRouteRetriever != null)\r\n\t\t\ttoTourRouteRetriever.interrupt();\r\n\r\n\t\t((ViewGroup) mapView.getParent()).removeView(mapView);\r\n\r\n\t\tsuper.onDestroyView();\r\n\t}", "title": "" }, { "docid": "c5fb117c1db08c8d8b4a7b261f7fed72", "score": "0.6289066", "text": "@Override\n public void onDestroyView() {\n Log.d (\"Other Fragment\", \"onDestroyView\");\n // Clean up resources related to the View.\n super.onDestroyView();\n }", "title": "" }, { "docid": "ad12651c3c9d913921c8c8ee5ce8dc26", "score": "0.6264233", "text": "@Override\n\tpublic void onDestroy() {\n\t\tsuper.onDestroy();\n\n\t\tif (pd != null && pd.isShowing())\n\t\t\tpd.dismiss();\n\n\t\tif (t1 != null)\n\t\t\tt1.interrupt();\n\t\t\n\t\tThread.currentThread().interrupt(); \n\t\tv = null;\n\n\t}", "title": "" }, { "docid": "66faf8c31b34fe0f2ec0a73c717a16d8", "score": "0.62401885", "text": "public void destroy() {\n\t\t\t\r\n\t\t}", "title": "" }, { "docid": "d4710b28234e816bc8e73ec639f1d432", "score": "0.6236521", "text": "public void destroy() {\n\t \n }", "title": "" }, { "docid": "8844e0f6bd7dbd6f1f784b77ec9b6be7", "score": "0.6207135", "text": "@Test\n public void testUnbind() {\n /** Exercise **/\n presenter.unBind();\n\n /** Verify **/\n assertNull(presenter.getView());\n assertNull(presenter.getApiKey());\n assertNull(presenter.getDefaultTitle());\n }", "title": "" }, { "docid": "497d6595c2e9b2c2a55d380a2f3d116f", "score": "0.6203907", "text": "@Override\n protected void onDestroy() {\n super.onDestroy();\n if (mPreview != null) {\n mPreview.release();\n }\n }", "title": "" }, { "docid": "87700c6562a58c88ebcd4ef7753b625d", "score": "0.6191129", "text": "public void destroy() {\n }", "title": "" }, { "docid": "cff2e1ad53ceb2d2d869a5a0a4bf1d93", "score": "0.617923", "text": "public void unInit() {\n mMainHandler.sendEmptyMessage(GYBEAUTY_VIEW_UNINIT);\n }", "title": "" }, { "docid": "e2784abf991ba5655645c7dddefa4f6f", "score": "0.6153346", "text": "@Override\n public void destroy() {\n // nothing to do\n }", "title": "" }, { "docid": "afc11b91b0ae10f87ab312a79dfdf30b", "score": "0.61476666", "text": "@Override\n\tprotected void onDestroy() {\n\t\tsuper.onDestroy();\n\t\t\n\t\tlistView = null;\n\t}", "title": "" }, { "docid": "83085cf1fa69933627c288a9789c9129", "score": "0.6146092", "text": "public interface BasePresenter {\n\n void detachView();\n}", "title": "" }, { "docid": "83085cf1fa69933627c288a9789c9129", "score": "0.6146092", "text": "public interface BasePresenter {\n\n void detachView();\n}", "title": "" }, { "docid": "8634dc0a752b58fd4f3b653ed63cbab3", "score": "0.61346", "text": "public void Terminate()\r\n {\r\n view = null;\r\n entityList.clear();\r\n }", "title": "" }, { "docid": "96f2d90f92e99862c79d29cf20f87789", "score": "0.6129351", "text": "public void destroy() {\n\t\t\r\n\t}", "title": "" }, { "docid": "fda0d9ba0524b3c286c8ed2b2dd38528", "score": "0.6127515", "text": "public void destroy() {\n \r\n }", "title": "" }, { "docid": "60cd8c875912820daa99da0ce44e530e", "score": "0.6124763", "text": "@Override\n public void destroy()\n {\n }", "title": "" }, { "docid": "e101061447f19c1df3010e8cf75773bd", "score": "0.61097574", "text": "@Override\r\n\tpublic void destroy() {\n\t\tsuper.destroy();\r\n\t}", "title": "" }, { "docid": "f16a921e0cd45fad665d9850ab1235ee", "score": "0.6098106", "text": "@Override\r\n\tpublic void destroy() {\n\t\t\r\n\t}", "title": "" }, { "docid": "f16a921e0cd45fad665d9850ab1235ee", "score": "0.6098106", "text": "@Override\r\n\tpublic void destroy() {\n\t\t\r\n\t}", "title": "" }, { "docid": "f16a921e0cd45fad665d9850ab1235ee", "score": "0.6098106", "text": "@Override\r\n\tpublic void destroy() {\n\t\t\r\n\t}", "title": "" }, { "docid": "f16a921e0cd45fad665d9850ab1235ee", "score": "0.6098106", "text": "@Override\r\n\tpublic void destroy() {\n\t\t\r\n\t}", "title": "" }, { "docid": "f16a921e0cd45fad665d9850ab1235ee", "score": "0.6098106", "text": "@Override\r\n\tpublic void destroy() {\n\t\t\r\n\t}", "title": "" }, { "docid": "f16a921e0cd45fad665d9850ab1235ee", "score": "0.6098106", "text": "@Override\r\n\tpublic void destroy() {\n\t\t\r\n\t}", "title": "" }, { "docid": "f16a921e0cd45fad665d9850ab1235ee", "score": "0.6098106", "text": "@Override\r\n\tpublic void destroy() {\n\t\t\r\n\t}", "title": "" }, { "docid": "f16a921e0cd45fad665d9850ab1235ee", "score": "0.6098106", "text": "@Override\r\n\tpublic void destroy() {\n\t\t\r\n\t}", "title": "" }, { "docid": "f16a921e0cd45fad665d9850ab1235ee", "score": "0.6098106", "text": "@Override\r\n\tpublic void destroy() {\n\t\t\r\n\t}", "title": "" }, { "docid": "f16a921e0cd45fad665d9850ab1235ee", "score": "0.6098106", "text": "@Override\r\n\tpublic void destroy() {\n\t\t\r\n\t}", "title": "" }, { "docid": "f16a921e0cd45fad665d9850ab1235ee", "score": "0.6098106", "text": "@Override\r\n\tpublic void destroy() {\n\t\t\r\n\t}", "title": "" }, { "docid": "f16a921e0cd45fad665d9850ab1235ee", "score": "0.6098106", "text": "@Override\r\n\tpublic void destroy() {\n\t\t\r\n\t}", "title": "" }, { "docid": "f16a921e0cd45fad665d9850ab1235ee", "score": "0.6098106", "text": "@Override\r\n\tpublic void destroy() {\n\t\t\r\n\t}", "title": "" }, { "docid": "f16a921e0cd45fad665d9850ab1235ee", "score": "0.6098106", "text": "@Override\r\n\tpublic void destroy() {\n\t\t\r\n\t}", "title": "" }, { "docid": "f16a921e0cd45fad665d9850ab1235ee", "score": "0.6098106", "text": "@Override\r\n\tpublic void destroy() {\n\t\t\r\n\t}", "title": "" }, { "docid": "f16a921e0cd45fad665d9850ab1235ee", "score": "0.6098106", "text": "@Override\r\n\tpublic void destroy() {\n\t\t\r\n\t}", "title": "" }, { "docid": "f16a921e0cd45fad665d9850ab1235ee", "score": "0.6098106", "text": "@Override\r\n\tpublic void destroy() {\n\t\t\r\n\t}", "title": "" }, { "docid": "f16a921e0cd45fad665d9850ab1235ee", "score": "0.6098106", "text": "@Override\r\n\tpublic void destroy() {\n\t\t\r\n\t}", "title": "" }, { "docid": "f16a921e0cd45fad665d9850ab1235ee", "score": "0.6098106", "text": "@Override\r\n\tpublic void destroy() {\n\t\t\r\n\t}", "title": "" }, { "docid": "f16a921e0cd45fad665d9850ab1235ee", "score": "0.6098106", "text": "@Override\r\n\tpublic void destroy() {\n\t\t\r\n\t}", "title": "" }, { "docid": "f16a921e0cd45fad665d9850ab1235ee", "score": "0.6098106", "text": "@Override\r\n\tpublic void destroy() {\n\t\t\r\n\t}", "title": "" }, { "docid": "c0918a6ba06fbd414427b8e4a88a29fa", "score": "0.60923284", "text": "private void exit() {\n ((ISubject) mModel).detach(this);\n ((ISubject) mView).detach(this);\n mModel.releaseModel();\n mView.releaseView();\n }", "title": "" }, { "docid": "3da8466bcaff574b2eeff86ed7e7725d", "score": "0.60779786", "text": "@Override\n public void onDestroyView() {\n super.onDestroyView();\n appBar.removeView(tabs);\n }", "title": "" }, { "docid": "814bdb30f541a18f4fe04ea130ba95a0", "score": "0.60767424", "text": "@Override\n protected void onDestroy() {\n super.onDestroy();\n rideNavView.onDestroy();\n }", "title": "" }, { "docid": "e19d7a765991b7a9a08522827acb6a1f", "score": "0.6072463", "text": "@Override\n public void onDestroy(boolean isChangingConfiguration) {\n if (!isChangingConfiguration) {\n mPresenter = null;\n EventBus.getDefault().unregister(this);\n }\n }", "title": "" }, { "docid": "eb74c92f8da8ba02553f7700801ed798", "score": "0.6069575", "text": "@Override\n public void onDestroyView() {\n super.onDestroyView();\n CommonUtils.hideKeypad(view);\n }", "title": "" }, { "docid": "3cb985a1ff907e4f1b13f55296c59126", "score": "0.6068389", "text": "public void destroy() {\n list = null;\n clickListener = null;\n }", "title": "" }, { "docid": "c47a0e9352e8a4b6c8b9969a32525a37", "score": "0.60669965", "text": "public void destroy() {\n instance = null;\n }", "title": "" }, { "docid": "454c32c3cc2b9f1120a9fb5cb175c27f", "score": "0.60642093", "text": "@Override\n\tprotected void onDestroy() {\n\t\tif (null != videoView) {\n\t\t\tdoDestroy();\n\t\t}\n\t\tsuper.onDestroy();\n\t}", "title": "" }, { "docid": "3df6c69ee591c35124585674a1516b89", "score": "0.6060325", "text": "public void destroy() {\r\n // nothing to destroy\r\n }", "title": "" }, { "docid": "dafa151c393ffe0aae87d09a97c6cb3e", "score": "0.60598594", "text": "public void destroy();", "title": "" } ]
25197b4cf814864ecd440f23b9149cb3
TODO Autogenerated method stub
[ { "docid": "78883add86f8d712b7a03d30490d8d13", "score": "0.0", "text": "public static void main(String[] args) {\n\t\tint a[][]=takeInput2D();\n\t\tspiral(a);\n\n\t}", "title": "" } ]
[ { "docid": "1acc57d42c31dee937ac33ea6f2a5b0b", "score": "0.68399656", "text": "@Override\r\n\tpublic void comer() {\n\t\t\r\n\t}", "title": "" }, { "docid": "118f2b8a20f48999973063ac332d07d3", "score": "0.6563993", "text": "@Override\r\n\t\t\tpublic void atras() {\n\r\n\t\t\t}", "title": "" }, { "docid": "11d67a80d2cd31685776b15ccccc59f0", "score": "0.65296996", "text": "@Override\n\t\t\tpublic void PridenieNaBielu() {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "80d20df1cc75d8fa96c12c49a757fc43", "score": "0.65278774", "text": "@Override\n\tprotected void getExras() {\n\t\t\n\t}", "title": "" }, { "docid": "f9e89d9677a2c32741b998a15248d5eb", "score": "0.6487723", "text": "@Override\r\n\tpublic void Lyf() {\n\t\t\r\n\t}", "title": "" }, { "docid": "5f8d37aee09bc1e9959f768d6eb0183c", "score": "0.6481321", "text": "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "title": "" }, { "docid": "603f0a18e57250d8f455d8cee02b8630", "score": "0.64378566", "text": "@Override\r\n public void Refuel() {\n \r\n }", "title": "" }, { "docid": "b62a7c8e0bb1090171742c543bf4b253", "score": "0.6373858", "text": "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "title": "" }, { "docid": "efda110dae3567ecb4380b4b672c3e8d", "score": "0.635662", "text": "public void anzeigen() {\n\t\t\r\n\t}", "title": "" }, { "docid": "74e8290546e9191e1ae5373cdf611067", "score": "0.632985", "text": "@Override\r\n\tpublic void Petrol() {\n\t\t\r\n\t}", "title": "" }, { "docid": "777efb33041da4779c6ec15b9d85097c", "score": "0.63003165", "text": "@Override\r\n\tpublic void attaque() {\n\t\t\r\n\t}", "title": "" }, { "docid": "177192b7240b496ba5aefdfed60037c9", "score": "0.62754047", "text": "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "title": "" }, { "docid": "1f7c82e188acf30d59f88faf08cf24ac", "score": "0.6237362", "text": "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "title": "" }, { "docid": "1f7c82e188acf30d59f88faf08cf24ac", "score": "0.6237362", "text": "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "title": "" }, { "docid": "95ffa256b098e9b494cb96d4874e063f", "score": "0.6219628", "text": "@Override\n\tvoid refuel() {\n\n\t}", "title": "" }, { "docid": "27e4479db2c37a2e77fe796119b66d4b", "score": "0.61936283", "text": "@Override\r\n\t\t\tpublic void adelante() {\n\r\n\t\t\t}", "title": "" }, { "docid": "556495e35d508ac961dae051dd40b377", "score": "0.61844474", "text": "@Override\n\tpublic void afficher() {\n\t\t\n\t}", "title": "" }, { "docid": "2a5b1784967271fc8f331ece95bee2d7", "score": "0.6173247", "text": "@Override\r\n\t\tpublic void Sudentcf() {\n\t\t\t\r\n\t\t}", "title": "" }, { "docid": "88ecb62c7a1a93131fb72fdf892b6e96", "score": "0.6163209", "text": "public void mo18969b() {\n }", "title": "" }, { "docid": "10ead2e988bf977cb8edb2bacf974891", "score": "0.6158877", "text": "@Override\n\tprotected void init() {\n\t\t\n\t}", "title": "" }, { "docid": "10ead2e988bf977cb8edb2bacf974891", "score": "0.6158877", "text": "@Override\n\tprotected void init() {\n\t\t\n\t}", "title": "" }, { "docid": "af1d7a03c29969bf292760b5053e6876", "score": "0.61020076", "text": "@Override\r\n\tpublic void avanzar() {\n\t\t\r\n\t}", "title": "" }, { "docid": "4c841421384f44238db014cb90fda536", "score": "0.609516", "text": "@Override\n\tpublic void foocall() {\n\t}", "title": "" }, { "docid": "0535d453c6fc64b6eaca5802d4fcc90b", "score": "0.6038407", "text": "@Override\r\n public void atacar() {\n }", "title": "" }, { "docid": "60b0611b3c431fd71ef675a97986d8ce", "score": "0.60336334", "text": "@Override\n\tpublic void bouger() {\n\t\t\n\t}", "title": "" }, { "docid": "93def8741e9801c804ccf94cc0a8c010", "score": "0.60311055", "text": "@Override\r\n\tpublic void comenzar() {\n\r\n\t}", "title": "" }, { "docid": "1eb850cd140029c3284631b6ea4a3a92", "score": "0.6027037", "text": "public void mo7036d() {\n }", "title": "" }, { "docid": "5f1811a241e41ead4415ec767e77c63d", "score": "0.6025444", "text": "@Override\n\tprotected void init() {\n\n\t}", "title": "" }, { "docid": "5f1811a241e41ead4415ec767e77c63d", "score": "0.6025444", "text": "@Override\n\tprotected void init() {\n\n\t}", "title": "" }, { "docid": "b1cf16017c8057c0255a9ad368ecaee5", "score": "0.6017447", "text": "@Override\r\n\tprotected void init() {\n\r\n\t}", "title": "" }, { "docid": "a6c2db17f79f35f8fc3b8e99eee9ab48", "score": "0.60124886", "text": "@Override\r\n\tprotected void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "a6c2db17f79f35f8fc3b8e99eee9ab48", "score": "0.60124886", "text": "@Override\r\n\tprotected void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "068782d4ca6b549d5b38c417ad4e7fbc", "score": "0.6000438", "text": "@Override\n\tpublic void embauche() {\n\t\t\n\t}", "title": "" }, { "docid": "b044552fe4d8d8225d09361b41fbea3a", "score": "0.59513867", "text": "public void mo5201a() {\n }", "title": "" }, { "docid": "8b18fd12dbb5303a665e92c25393fb78", "score": "0.59215844", "text": "@Override\n\tprotected void initData() {\n\t\t\n\t}", "title": "" }, { "docid": "8b18fd12dbb5303a665e92c25393fb78", "score": "0.59215844", "text": "@Override\n\tprotected void initData() {\n\t\t\n\t}", "title": "" }, { "docid": "8b18fd12dbb5303a665e92c25393fb78", "score": "0.59215844", "text": "@Override\n\tprotected void initData() {\n\t\t\n\t}", "title": "" }, { "docid": "59fd0ccdce9a8709416c7bdb0b2740f7", "score": "0.59167963", "text": "@Override\n public void solidaria() {\n \n \n }", "title": "" }, { "docid": "28237d6ae20e1aa35aaca12e05c950c9", "score": "0.5903432", "text": "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "title": "" }, { "docid": "5bb37ed5e0a08c04cb9e970f3e334584", "score": "0.5900665", "text": "@Override\n\tpublic void accion() {\n\n\t}", "title": "" }, { "docid": "f5d4f15bcecfb5439000bf8ce3463314", "score": "0.58953464", "text": "@Override\r\n protected void init() {\n \r\n }", "title": "" }, { "docid": "77f859c241fd5e1d997f67c3b890833e", "score": "0.58881694", "text": "@Override\n\tpublic void dormir() {\n\t\t\n\t}", "title": "" }, { "docid": "40577cf33330bd70c08bc8e310b4436d", "score": "0.58730215", "text": "@Override\n\tpublic void falar() {\n\n\t}", "title": "" }, { "docid": "faf38c70a5abc38e6e6819931e05fdbb", "score": "0.5862488", "text": "@Override\n protected void initialize() { \n }", "title": "" }, { "docid": "4967494f628119c8d3a4740e09278944", "score": "0.5858707", "text": "@Override\r\n\tprotected void initData() {\n\r\n\t}", "title": "" }, { "docid": "d735c08559b9ccd2b05318e486d52050", "score": "0.585777", "text": "@Override\n public void generate() {\n\n }", "title": "" }, { "docid": "c27a216ac709a1e3b9e7156e1c8104e5", "score": "0.5851762", "text": "public void initailize() {\n\t\t\r\n\t}", "title": "" }, { "docid": "7a47ca8b3a55006f92a271bd71da43b7", "score": "0.583262", "text": "@Override\n\tprotected void Sessioprovide() {\n\t\t\n\t}", "title": "" }, { "docid": "ea53a5ca5e3b174f6cc9c79515550cf9", "score": "0.58291394", "text": "@Override\n\tpublic void Faild() {\n\t}", "title": "" }, { "docid": "d8211552b23c886f56d98e4efc7a55fa", "score": "0.58270997", "text": "private void OI() {\n\t\t\n\t}", "title": "" }, { "docid": "9d2f44c3ebe1fb8de1ac4ae677e2d851", "score": "0.58069414", "text": "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "title": "" }, { "docid": "a92ef4f07b07ea7007bb9f92475a6a97", "score": "0.580496", "text": "private void UDPM() {\n\n\t}", "title": "" }, { "docid": "beee84210d56979d0068a8094fb2a5bd", "score": "0.5791594", "text": "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "title": "" }, { "docid": "d4dcf8d1b9c1a18d89084161416469f7", "score": "0.5784581", "text": "public final void mo59419g() {\n }", "title": "" }, { "docid": "329dcd36a53fe338909407efceaa048a", "score": "0.57815796", "text": "@Override\n\tpublic void ovr() {\n\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "17cb0676e79dae45623dcbdd6cf2af58", "score": "0.5772904", "text": "@Override\n\tpublic void update() {\n\t\t// TODO Auto-generated method stub\n\n\t}", "title": "" }, { "docid": "1c10afc999966d89d84d1fb549910281", "score": "0.5767454", "text": "@Override \n\t\tprotected void parse() {\t\t\t\n\t\t}", "title": "" }, { "docid": "518a761521ca9f5cb8a8055b32b72cda", "score": "0.57589173", "text": "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "title": "" }, { "docid": "518a761521ca9f5cb8a8055b32b72cda", "score": "0.57589173", "text": "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "title": "" }, { "docid": "518a761521ca9f5cb8a8055b32b72cda", "score": "0.57589173", "text": "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "title": "" }, { "docid": "ec8745d1f613de3522e52b19973434de", "score": "0.5756245", "text": "@Override\n protected void initialize()\n {\n\n }", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.57491463", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.57491463", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.57491463", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "6e516d7c552dcd925edbe971705ed31a", "score": "0.5742983", "text": "public void mo41019a() {\n }", "title": "" }, { "docid": "b07fa371b39d89d85ee2b46058153640", "score": "0.5741075", "text": "private void set() {\n\t\t\r\n\t}", "title": "" }, { "docid": "f523d2f53f60a1ff3244e79927814898", "score": "0.5737052", "text": "public void mo46998a() {\n }", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.57341826", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.57341826", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.57341826", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.57341826", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "c5279e0c512854cbd0006208a1abf1e4", "score": "0.57304084", "text": "public void sprzedaj() {\n\t\t\n\t}", "title": "" }, { "docid": "4791f18ffa1db9cf9896372a4bb400cd", "score": "0.5712386", "text": "@Override\n\t\t\t\tpublic void update() {\n\t\t\t\t\t\n\t\t\t\t}", "title": "" }, { "docid": "b329688e04bd48d0184ad83234db5580", "score": "0.5702716", "text": "@Override\r\n public int describeContents() {\n return 0;\r\n }", "title": "" }, { "docid": "7aadbda143e84de0144f7a8dadde423d", "score": "0.5701947", "text": "@Override\n protected void initData() {\n\n }", "title": "" }, { "docid": "39132efb6b42f8ec625d96ff6226d80b", "score": "0.5696396", "text": "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "title": "" }, { "docid": "94016f621198b25fa3341ef2382c6876", "score": "0.5689651", "text": "@Override\n\tpublic void grandir() {\n\t\t\n\t}", "title": "" }, { "docid": "7a5ce2d278c2d189c1b8ef8c5af5d416", "score": "0.5686818", "text": "@Override\n\tprotected void initValue() {\n\n\t}", "title": "" }, { "docid": "9d551589ec00d7b16a77df7a4d54caae", "score": "0.5685303", "text": "@Override\n public void init()\n {\n\n }", "title": "" }, { "docid": "be566411d6ed8758a024d201a025c102", "score": "0.5682171", "text": "@Override\r\n\tprotected void update() {\n\t}", "title": "" }, { "docid": "264b73ede67394b8d57db8f3623673db", "score": "0.56804705", "text": "@Override\r\n\tpublic void afterConstruct() {\n\t\t\r\n\t}", "title": "" }, { "docid": "b1e3eb9a5b9dff21ed219e48a8676b34", "score": "0.5677706", "text": "@Override\n public void memoria() {\n \n }", "title": "" }, { "docid": "62020c21199fdbaf0b47453874f310f1", "score": "0.5677236", "text": "@Override\n\tpublic void init()\n\t{\n\t\t\n\t}", "title": "" }, { "docid": "62020c21199fdbaf0b47453874f310f1", "score": "0.5677236", "text": "@Override\n\tpublic void init()\n\t{\n\t\t\n\t}", "title": "" }, { "docid": "a055db97fb04dc3ace542d55ba4eb731", "score": "0.5659786", "text": "public void wypozycz() {\n\t\t\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.56563133", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.56563133", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.56563133", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.56563133", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.56563133", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "704e96abbfbd46ebb60411493a1aaa91", "score": "0.5653795", "text": "@Override\r\n\tpublic void magic() {\n\r\n\t}", "title": "" } ]
18c150819d483a47413c769ac05afeb5
this method make the sliders, checkbox, and comboBox in the pane disabled
[ { "docid": "72f43164bb8af931e74310134ae85054", "score": "0.8252961", "text": "public void disableSliderBoxes() {\n indexSlider.setDisable(true);\n radiusSlider.setDisable(true);\n objectPositionSlider.setDisable(true);\n objectHeightSlider.setDisable(true);\n principleBox.setDisable(true);\n pickPicture.setDisable(true);\n }", "title": "" } ]
[ { "docid": "4a8cd1a178919499e0d297b4f2e429e7", "score": "0.8021077", "text": "public void enableSliderBoxes() {\n indexSlider.setDisable(false);\n radiusSlider.setDisable(false);\n objectPositionSlider.setDisable(false);\n objectHeightSlider.setDisable(false);\n principleBox.setDisable(false);\n pickPicture.setDisable(false);\n }", "title": "" }, { "docid": "2b5d9a8775149f75e582fd69409de659", "score": "0.744075", "text": "private void disableComponents() {\r\n maintainSponsorHierarchyBaseWindow.btnChangeGroupName.setEnabled(false);\r\n maintainSponsorHierarchyBaseWindow.btnCreateNewGroup.setEnabled(false);\r\n maintainSponsorHierarchyBaseWindow.btnDelete.setEnabled(false);\r\n maintainSponsorHierarchyBaseWindow.btnMoveDown.setEnabled(false);\r\n maintainSponsorHierarchyBaseWindow.btnMoveUp.setEnabled(false);\r\n maintainSponsorHierarchyBaseWindow.btnSave.setEnabled(false);\r\n maintainSponsorHierarchyBaseWindow.btnPanel.setEnabled(false);\r\n maintainSponsorHierarchyBaseWindow.btnPanel.setSelected(false);\r\n maintainSponsorHierarchyBaseWindow.mnuItmChangeGroupName.setEnabled(false);\r\n maintainSponsorHierarchyBaseWindow.mnuItmCreateNewGroup.setEnabled(false);\r\n maintainSponsorHierarchyBaseWindow.mnuItmDelete.setEnabled(false);\r\n maintainSponsorHierarchyBaseWindow.mnuItmMoveDown.setEnabled(false);\r\n maintainSponsorHierarchyBaseWindow.mnuItmMoveUp.setEnabled(false);\r\n maintainSponsorHierarchyBaseWindow.mnuItmSave.setEnabled(false);\r\n maintainSponsorHierarchyBaseWindow.mnuItmPanel.setEnabled(false);\r\n maintainSponsorHierarchyBaseWindow.mnuItmPanel.setSelected(false);\r\n }", "title": "" }, { "docid": "6eadb065661a579a80718751b8064d61", "score": "0.7369433", "text": "public void disable()\n {\n // Disable all the buttons one by one\n for (int col = 0; col < COLUMNS; col++ )\n {\n drop[col].setEnabled(false);\n }\n }", "title": "" }, { "docid": "96e19955854903abd2964d89b08d3c1c", "score": "0.72454923", "text": "public void disableChoice() {\n\t\t// Disable the buttons, dimming them\n\t\trock.setEnabled(false);\n\t\tpaper.setEnabled(false);\n\t\tscissors.setEnabled(false);\n\t}", "title": "" }, { "docid": "faf305f58702dedaab0fc4c7c778af55", "score": "0.7221336", "text": "private void disableButtons()\r\n {\r\n }", "title": "" }, { "docid": "8c87ceb34381f4a6f3854bbedca039df", "score": "0.7218756", "text": "private void setAllFieldsAndSliderDisabled(boolean disabled) {\n nameInput.setDisable(disabled);\n frontTrackInput.setDisable(disabled);\n cornerWeightFLInput.setDisable(disabled);\n cornerWeightRLInput.setDisable(disabled);\n rearTrackInput.setDisable(disabled);\n cornerWeightRRInput.setDisable(disabled);\n cornerWeightFRInput.setDisable(disabled);\n cogInput.setDisable(disabled);\n frontRollDistInput.setDisable(disabled);\n wheelBaseInput.setDisable(disabled);\n\n cogSlider.setDisable(disabled);\n wheelBaseSlider.setDisable(disabled);\n frontRollDistSlider.setDisable(disabled);\n cornerWeightFLSlider.setDisable(disabled);\n cornerWeightRLSlider.setDisable(disabled);\n cornerWeightRRSlider.setDisable(disabled);\n cornerWeightFRSlider.setDisable(disabled);\n }", "title": "" }, { "docid": "f908fbdeb3ad71dffd83622815fd1ad9", "score": "0.71939796", "text": "public void disableInputs();", "title": "" }, { "docid": "632d2e417391a33184957464cf1720d6", "score": "0.71195436", "text": "private void disableInputs() {\n bulbPressTime.setEnabled(false);\n intervalTime.setEnabled(false);\n numTicks.setEnabled(false);\n startBtn.setEnabled(false);\n connStatus.setText(getString(R.string.StatusRunning));\n connStatus.setTextColor(getColor(R.color.green));\n }", "title": "" }, { "docid": "8b8381a0a3a94b89debdc72c864417f7", "score": "0.7110238", "text": "public void disable()\n\t{\n\t\tplayButton.setEnabled(false);\n\t\tpassButton.setEnabled(false);\n\t\tbigTwoPanel.setEnabled(false);\n\t}", "title": "" }, { "docid": "efba3d886ed7dd2de64c3275d48f4488", "score": "0.70716196", "text": "private void disableMixedArticleDropdown(){\n\t\tcbCCC.setEnabled(false);\n\t\tcbDCC.setEnabled(false);\n\t\tcbIEC.setEnabled(false);\n\t\tcbLoadingCharge.setEnabled(false);\n\t\tcbDDC.setEnabled(false);\n\t\ttxtDDC_minPerLR.setEnabled(false);\n\t}", "title": "" }, { "docid": "2ab2a96550c0e426ed40d5e09934b9f8", "score": "0.7062547", "text": "public void disable() {\n parent.setDefaultEnabled(false);\n }", "title": "" }, { "docid": "4011d7f8279797521af7bc8982cfbf71", "score": "0.7034356", "text": "private void DisableOrEnableFields(){\n for (Node node:super.newAppointmentView.getChildren()) {\n if (node instanceof GridPane){\n GridPane gridpane = (GridPane)node;\n for (Node node1:gridpane.getChildren()) {\n if(node1 instanceof TextField || node1 instanceof ComboBox){\n node1.setDisable(isDisabled);\n }\n }\n }\n\n }\n isDisabled = !isDisabled;\n }", "title": "" }, { "docid": "a6f2691c9ab4cb240440cf81b83ffe05", "score": "0.7030771", "text": "@Override\r\n\tpublic void disable() {\r\n\t\tthis.tablero.disable();\r\n\t\tthis.panel.disableWhileThinking();\r\n\t}", "title": "" }, { "docid": "6613a3a5d8ac988a2cc85099abfabfb1", "score": "0.70304435", "text": "public void disableButtons() {\n\t\t\r\n\t\tcapture.setEnabled(false);\r\n\t\tstop.setEnabled(false);\r\n\t\tfilter.setEnabled(false);\r\n\t\tsave.setEnabled(false);\r\n\t\t//load.setEnabled(false);\r\n\t}", "title": "" }, { "docid": "e5cc9405130bb183b1f3e37dcef47b81", "score": "0.70187515", "text": "public void inhabilitaPanel() {\n\n\t\t//comboNombreCarta.setEnabled(false);\n\t\tjScrollPane1.setEnabled(false);\n\t\tjScrollPane1.getVerticalScrollBar().setEnabled(false);\n\t\tjScrollPane1.getHorizontalScrollBar().setEnabled(false);\n\t\tjScrollPane2.setEnabled(false);\n\t\tjScrollPane2.getVerticalScrollBar().setEnabled(false);\n\t\tjScrollPane2.getHorizontalScrollBar().setEnabled(false);\n\t\tlistaSeleccionadas.setEnabled(false);\n\t\tlistaDisponibles.setEnabled(false);\n\t\tlabelFondo.setEnabled(false);\n\t\ttextoNumeroCartas.setEnabled(false);\n\t\ttextoRaza.setEnabled(false);\n\t\tbotCargar.setEnabled(false);\n\t\tbotGuardar.setEnabled(false);\n\t\tbotGuardarComo.setEnabled(false);\n\t\tbotSalir.setEnabled(false);\n\t\tbotAyuda.setEnabled(false);\n\t\tbotNuevaBaraja.setEnabled(false);\n\t\ttextoBarajaCargada.setEnabled(false);\n\t\tthis.panelFondo.setEnabled(false);\n\t\tlabelImagen.setEnabled(false);\n this.NumeroPuntos.setEnabled(false);\n\n\t}", "title": "" }, { "docid": "860476fbdbd1c10a1e49f04abe63ac78", "score": "0.70035326", "text": "public void disable() {\n \t\t\tsetEnabled(false);\n \t\t}", "title": "" }, { "docid": "551a7365ad4a2f24288f61b5be20c6aa", "score": "0.6983856", "text": "private void DisablePanel(){\n this.pan.DesableAllPanels();\n }", "title": "" }, { "docid": "f96d640dc246085dcd048b709ef91957", "score": "0.6983022", "text": "public void disablePanelInput() {\n\t\tif (!clickThem) {\r\n\t\t\ttxt_mssv.setText(\"\");\r\n\t\t\ttxt_mssv.setEnabled(false);\r\n\t\t\ttxt_hoten.setEnabled(false);\r\n\t\t\ttxt_hoten.setText(\"\");\r\n\t\t\tcomboSex.setEnabled(false);\r\n\t\t\ttxt_ntns.setText(\"\");\r\n\t\t\ttxt_ntns.setEnabled(false);\r\n\t\t\tbtn_nhap.setEnabled(false);\r\n\t\t} else {\r\n\t\t\ttxt_mssv.setEnabled(true);\r\n\t\t\ttxt_hoten.setEnabled(true);\r\n\t\t\tcomboSex.setEnabled(true);\r\n\t\t\ttxt_ntns.setEnabled(true);\r\n\t\t\tbtn_nhap.setEnabled(true);\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "eb1aa520ecc29bbe5fc2007e36436a85", "score": "0.69255", "text": "public void inhabilitaPanel() {\n\t\t// contentPane.setEnabled(false);\n\t\tpanelPrincipal.setEnabled(false);\n\t\tpanelBotones.setEnabled(false);\n\t\tboton1Jugador.setEnabled(false);\n\t\tbotonJuegoRed.setEnabled(false);\n\t\tbotonEditar.setEnabled(false);\n\t\tbotonDemo.setEnabled(false);\n\t\tbotonReglas.setEnabled(false);\n\t\tbotonAyuda.setEnabled(false);\n\t\tbotonRecibir.setEnabled(false);\n\t\tbotonEnviar.setEnabled(false);\n\t\tbotonDescargaSobre.setEnabled(false);\n\t\tbotonSalir.setEnabled(false);\n\t\tlabelFondo.setEnabled(false);\n\t\tlabelDibujo.setEnabled(false);\n\n\t}", "title": "" }, { "docid": "fc5261d7b0953862a8d606a41dd53580", "score": "0.6904294", "text": "@FXML\n private void disableComboBoxListener(ComboBox pairing1, ComboBox pairing2)\n {\n pairing1.setDisable(true);\n pairing2.setDisable(true);\n }", "title": "" }, { "docid": "be1bbeaeca2f28922625944f0fa474a6", "score": "0.6875896", "text": "@FXML\n void disableHourlyCode() {\n annualAddText.setDisable(false);\n managerRadio.setDisable(true);\n dHeadRadio.setDisable(true);\n directorRadio.setDisable(true);\n hourlyAddText.setDisable(true);\n }", "title": "" }, { "docid": "eac5ea22161dff40811920083f99ca93", "score": "0.6866746", "text": "public void disable(){\n\n bar.setVisible(false);\n bar.removeAll();\n\n }", "title": "" }, { "docid": "04c21ade6e3d6984e35482b6b02ae0fb", "score": "0.6851372", "text": "public void disableButtons() {\n p1WinPoint.setEnabled(false);\n p2WinPoint.setEnabled(false);\n }", "title": "" }, { "docid": "4ca4fcc6c2c8412d0ceb0fbd406338a6", "score": "0.68394256", "text": "public void disable(){\r\n\t\tthis.activ = false;\r\n\t}", "title": "" }, { "docid": "5c93b43b4782e50651979a09e0f9998c", "score": "0.68349963", "text": "@FXML\n void disableAnnualCode() {\n annualAddText.setDisable(true);\n managerRadio.setDisable(true);\n dHeadRadio.setDisable(true);\n directorRadio.setDisable(true);\n hourlyAddText.setDisable(false);\n }", "title": "" }, { "docid": "0d90618fed8f965c4c84c3df28b4f552", "score": "0.6830461", "text": "public void enableMixerSlidersAndAudioPlayer() {\n\t\tpaneMixerAudioPlayer.setDisable(false);\n\t\tpaneMixerSliders.setDisable(false);\n\t\tbuttonBarResetSaveLoad.setDisable(false);\n\t}", "title": "" }, { "docid": "595bfa919e5e5adbd0c23060c9d94faa", "score": "0.68229276", "text": "private void disableRadioButtons(){\n\n this.acOnRadioButton.setEnabled(false);\n this.acOffRadioButton.setEnabled(false);\n\n this.heatOffRadioButton.setEnabled(false);\n this.heatOnRadioButton.setEnabled(false);\n\n this.lightsOnRadioButton.setEnabled(false);\n this.lightsOffRadioButton.setEnabled(false);\n\n this.leftDoorsOpenRadioButton.setEnabled(false);\n this.leftDoorsCloseRadioButton.setEnabled(false);\n\n this.rightDoorsOpenRadioButton.setEnabled(false);\n this.rightDoorsCloseRadioButton.setEnabled(false);\n }", "title": "" }, { "docid": "827f384059dd748b21e2d277fd742064", "score": "0.6813515", "text": "public void disable() {\n canvas.setEnabled(false);\n canvas.repaint();\n removeListeners();\n }", "title": "" }, { "docid": "952b854b0c89ee188a9eb0ca659f6bd0", "score": "0.6786476", "text": "private void toggleSliders() {\n\t\tfor(Slider slider : sliders.keySet()) {\n\t\t\tTextField textField = sliders.get(slider);\n\n\t\t\tif(slider == rotationSlider)\n\t\t\t\tcontinue;\n\n\t\t\tslider.setDisable(!rectifyToggleButton.isSelected());\n\t\t\ttextField.setDisable(!rectifyToggleButton.isSelected());\n\t\t}\n\t}", "title": "" }, { "docid": "10aad3e4ffe6891207dfc7eecb3548ad", "score": "0.67434496", "text": "public void habilitaPanel() {\n\t\t// contentPane.setEnabled(true);\n\t\tpanelPrincipal.setEnabled(true);\n\t\tpanelBotones.setEnabled(true);\n\t\tboton1Jugador.setEnabled(true);\n\t\tbotonJuegoRed.setEnabled(true);\n\t\tbotonEditar.setEnabled(true);\n\t\tbotonDemo.setEnabled(true);\n\t\tbotonReglas.setEnabled(true);\n\t\tbotonAyuda.setEnabled(true);\n\t\tbotonRecibir.setEnabled(true);\n\t\tbotonEnviar.setEnabled(true);\n\t\tbotonDescargaSobre.setEnabled(true);\n\t\tbotonSalir.setEnabled(true);\n\t\tlabelFondo.setEnabled(true);\n\t\tlabelDibujo.setEnabled(true);\n\n\t}", "title": "" }, { "docid": "df6e6f9dfc281a13cc81538cfc6fe231", "score": "0.6726965", "text": "@FXML\n void disableHourly() {\n annualAddText.setDisable(false);\n managerRadio.setDisable(false);\n dHeadRadio.setDisable(false);\n directorRadio.setDisable(false);\n hourlyAddText.setDisable(true);\n }", "title": "" }, { "docid": "c40014e68df5fcfeaf60439d6c699016", "score": "0.6696067", "text": "public void habilitaPanel() {\n\n\t\tthis.panelFondo.setEnabled(true);\n\t\tlabelImagen.setEnabled(true);\n\t\t//comboNombreCarta.setEnabled(true);\n\t\tthis.jScrollPane1.setEnabled(true);\n\t\tthis.jScrollPane1.getVerticalScrollBar().setEnabled(true);\n\t\tjScrollPane1.getHorizontalScrollBar().setEnabled(true);\n\t\tthis.jScrollPane2.setEnabled(true);\n\t\tthis.jScrollPane2.getVerticalScrollBar().setEnabled(true);\n\t\tjScrollPane2.getHorizontalScrollBar().setEnabled(true);\n\t\tlistaSeleccionadas.setEnabled(true);\n\t\tlistaDisponibles.setEnabled(true);\n\t\tthis.labelFondo.setEnabled(true);\n\t\ttextoNumeroCartas.setEnabled(true);\n\t\ttextoRaza.setEnabled(true);\n\t\tbotCargar.setEnabled(true);\n\t\tbotGuardar.setEnabled(true);\n\t\tbotGuardarComo.setEnabled(true);\n\t\tbotSalir.setEnabled(true);\n\t\tbotAyuda.setEnabled(true);\n\t\tbotNuevaBaraja.setEnabled(true);\n\t\ttextoBarajaCargada.setEnabled(true);\n\t\tthis.setEnabled(true);\n this.NumeroPuntos.setEnabled(true);\n\n\t}", "title": "" }, { "docid": "d6ca8b47da2760a6238741e7792499d7", "score": "0.6639695", "text": "protected void disableButtons() {\n if (mFalseButton.isPressed() || mTrueButton.isPressed())\n mFalseButton.setEnabled(false);\n mTrueButton.setEnabled(false);\n }", "title": "" }, { "docid": "e34575540a13b15ea63333a76e4ab9ca", "score": "0.66370463", "text": "public void disableAll(){\n\t\t\taddC1.setEnabled(false);\n\t\t\taddC2.setEnabled(false);\n\t\t\taddC3.setEnabled(false);\n\t\t\taddC4.setEnabled(false);\n\t\t\taddC5.setEnabled(false);\n\t\t\taddC6.setEnabled(false);\n\t\t\taddC7.setEnabled(false);\n\t\t}", "title": "" }, { "docid": "33e75db14d5864dcd6f987baa6423c22", "score": "0.6609275", "text": "public void disableButtons() {\n //a loop to go through all buttons\n for (int i = 0; i < currentBoard.getSizeX(); i++) {\n Inputbuttons[i].setEnabled(false);\n }\n }", "title": "" }, { "docid": "8456fa63c53c92d8662e75fde72c739c", "score": "0.65735435", "text": "void disableAgentSelectionControl();", "title": "" }, { "docid": "a09e80d1c7e396b7aae27fa980bd093e", "score": "0.65705884", "text": "public void disable();", "title": "" }, { "docid": "6e3bf18866e01870f98ef1459bfd00d2", "score": "0.6563255", "text": "private void deActivateButtons(){\n limiteBoton.setEnabled(false);\n derivadaBoton.setEnabled(false);\n integralBoton.setEnabled(false);\n}", "title": "" }, { "docid": "d7991c05fc5842c75c9fd0040a28678f", "score": "0.65584767", "text": "public void disable()\r\n\t{\r\n\t\tenabled = false;\r\n\t}", "title": "" }, { "docid": "ca2f84326964a06bf1286c043c31ce67", "score": "0.655647", "text": "public void setDisabled() {\n\t\tdisabled = true;\n\t}", "title": "" }, { "docid": "6c528d68b13ba8ccf7e857f04b4e8480", "score": "0.6542101", "text": "public void setDisableMixerSliders(boolean trueOrFalse) {\n\t\tpaneMixerSliders.setDisable(trueOrFalse);\n\t}", "title": "" }, { "docid": "deadef37916d5048bed2598647e221d5", "score": "0.6530642", "text": "public void disableProductionButtons(){\n for(int i = 0; i < 3; i++){\n Gui.removeAllListeners(productionButtons[i]);\n productionButtons[i].addActionListener(new ActivateProductionListener(gui,productionButtons[i],i));\n productionButtons[i].setEnabled(false);\n }\n\n baseProductionPanel.disableButton();\n }", "title": "" }, { "docid": "92fe2f6dd93cdcb7f72479f5156f2cec", "score": "0.6529951", "text": "@Override\n public void disableProductionButtons() {\n gameboardPanel.disableProductionButtons();\n leaderCardsPanel.disableProductionButtons();\n }", "title": "" }, { "docid": "e2df6b441dbb3bf2160d7d6672112459", "score": "0.6511836", "text": "public void disableControls() // Disable the game's controls when needed.\n\t{\n\t\tfor (MutablePocket thisPocket: playerPockets) // Disable each control in turn.\n\t\t{\n\t\t\tthisPocket.disablePocket();\n\t\t}\n\n\t\tfor(ImmutablePocket thisPocket: goalPockets)\n\t\t{\n\t\t\tthisPocket.disablePocket();\n\t\t}\t\t\n\t}", "title": "" }, { "docid": "7576d1fe4cb6c47ec7607d89cdb1fe7c", "score": "0.6511623", "text": "private void setButtonDisabled() {\n final boolean areProjects = mainController.selectedOrganisationProperty().getValue().getProjects().size() > 0;\n final boolean areTeams = mainController.selectedOrganisationProperty().getValue().getTeams().size() > 0;\n //allocateTeamButton.setDisable(!(areProjects && areTeams));\n }", "title": "" }, { "docid": "837039980ff59ac0b923c3f18ef5dd5c", "score": "0.6509691", "text": "private void lockButton(){\n\t\tconversionPdf_Txt.setEnabled(false);\n\t\tavisJury.setEnabled(false);\n\t\tstatistique.setEnabled(false);\n\t\tbData.setEnabled(false);\n\t\tbDataTraining.setEnabled(false);\n\t\tbCompare.setEnabled(false);\n\t}", "title": "" }, { "docid": "5db948ec7fdddb9495914f055af1d9b8", "score": "0.65082633", "text": "private void disableDice() {\n\t\ttogglebtnD1.setDisable(true);\n\t\ttogglebtnD2.setDisable(true);\n\t\ttogglebtnD3.setDisable(true);\n\t\tendTurnButton.setDisable(true);\n\t}", "title": "" }, { "docid": "25f0e14d08227adba5a95c7855b0e111", "score": "0.64930755", "text": "private void disableButtons() {\n for (DeployCommand cmd : DeployCommand.values()){\n setButtonEnabled(cmd, false);\n }\n butDone.setEnabled(false);\n setLoadEnabled(false);\n setUnloadEnabled(false);\n setAssaultDropEnabled(false);\n }", "title": "" }, { "docid": "883aa932e80cdd39e83c1eb8555fff53", "score": "0.6490792", "text": "public GUI() {\n initComponents();\n this.jComboBox1.setEnabled(false);\n this.jButton2.setEnabled(false);\n this.jButton3.setEnabled(false);\n this.jTextArea1.setEnabled(false);\n getContentPane().setBackground(java.awt.Color.getHSBColor((float) 0.62, (float) 0.55, (float) 0.55));\n }", "title": "" }, { "docid": "3982a632e6fc2dc388c24c91cf05afe7", "score": "0.6486775", "text": "public void disable ( ) {\r\n\t\tenabled = false;\r\n\t}", "title": "" }, { "docid": "a7705aa236a966f97b91b4236a668f08", "score": "0.64758676", "text": "public Feux() {\n initComponents();\n \n rouge.setEnabled(true);\n orange.setEnabled(false);\n vert.setEnabled(false);\n \n start();\n \n }", "title": "" }, { "docid": "afacdb9ce162403f8153e7bc328b9cfc", "score": "0.6474074", "text": "@FXML\n protected void onCheckBoxSelect(){\n damping.setDisable(schwingungstyp.isSelected());\n dampingFunc.setDisable(schwingungstyp.isSelected());\n }", "title": "" }, { "docid": "0e4a5ce968d2e9fd9599331afe1652b3", "score": "0.6468484", "text": "public void reset() {\n\t\t//set everything back to normal\n\t\tHashMap<String, Component> components = gui.getConversionSettingsComponents();\n\t\tfor (String key: components.keySet()) {\n\t\t\tComponent component = components.get(key);\n\t\t\tcomponent.setEnabled(true);\n\t\t}\n\t}", "title": "" }, { "docid": "ea6a25a2961fb37ec78fcdcefc714a51", "score": "0.64226526", "text": "void disable();", "title": "" }, { "docid": "ea6a25a2961fb37ec78fcdcefc714a51", "score": "0.64226526", "text": "void disable();", "title": "" }, { "docid": "fba825558d2e9ec596c41d9767881b8e", "score": "0.6415521", "text": "private void disableOpeningDoors(){\n\n this.leftDoorsOpenRadioButton.setEnabled(false);\n this.rightDoorsOpenRadioButton.setEnabled(false);\n }", "title": "" }, { "docid": "fcd18ab6509430803eacd217ee59970f", "score": "0.6410844", "text": "public void disableButtons() {\n\n for (Button b: buttons) {\n b.setClickable(false);\n }\n\n }", "title": "" }, { "docid": "5a8f479f3db17416bac0d42801a01c4a", "score": "0.64097816", "text": "public void DisableCheckBox(ActionEvent event) throws Exception {\n\n if (!SavingRB.isSelected()) {//if savings is not selected than disable specials acc check box\n SpecialSavingAccCB.setSelected(false);\n SpecialSavingAccCB.setDisable(true);\n } else SpecialSavingAccCB.setDisable(false);\n\n if (!CheckingRB.isSelected()) {//if checkings is not selected than disable direct deposit check boc\n DirectDepositCheckingsCB.setSelected(false);\n DirectDepositCheckingsCB.setDisable(true);\n } else DirectDepositCheckingsCB.setDisable(false);\n\n if (CloseAccRB.isSelected()) {//if and else if to disable textfields based on bank options\n AmountInput.setDisable(true);\n DateInput.setDisable(true);\n } else if (DepositRB.isSelected() || WithdrawAccRB.isSelected()) {\n AmountInput.setDisable(false);\n DateInput.setDisable(true);\n } else {\n AmountInput.setDisable(false);\n DateInput.setDisable(false);\n }\n\n\n }", "title": "" }, { "docid": "9d438a36bfa92dd450379254d692880b", "score": "0.6407038", "text": "private void disableFields() {\n\t\t\t\t\t\tholderMain.editTextParametername.setEnabled(false);\n\t\t\t\t\t\tholderMain.editTextParameterValue.setEnabled(false);\n\n\t\t\t\t\t}", "title": "" }, { "docid": "f91036eb07b1047623db2ad7790ae068", "score": "0.6401804", "text": "public static void setEnabled(JPanel jpanel, boolean boo) {\n for (int i = 0; i < jpanel.getComponentCount(); i++) {\n if (jpanel.getComponent(i).getClass().equals(txtTexto.class)) {\n jpanel.getComponent(i).setEnabled(boo);\n continue;\n }\n if (jpanel.getComponent(i).getClass().equals(txtCodigo.class)) {\n jpanel.getComponent(i).setEnabled(boo);\n continue;\n }\n if (jpanel.getComponent(i).getClass().equals(txtNumeros.class)) {\n jpanel.getComponent(i).setEnabled(boo);\n continue;\n }\n if (jpanel.getComponent(i).getClass().equals(txtFecha.class)) {\n jpanel.getComponent(i).setEnabled(boo);\n continue;\n }\n if (jpanel.getComponent(i).getClass().equals(txtCelular.class)) {\n jpanel.getComponent(i).setEnabled(boo);\n continue;\n }\n if (jpanel.getComponent(i).getClass().equals(txtTelefono.class)) {\n jpanel.getComponent(i).setEnabled(boo);\n continue;\n }\n if (jpanel.getComponent(i).getClass().equals(txtNumerosFormato.class)) {\n jpanel.getComponent(i).setEnabled(boo);\n continue;\n }\n if (jpanel.getComponent(i).getClass().equals(combo.class)) {\n jpanel.getComponent(i).setEnabled(boo);\n continue;\n }\n if (jpanel.getComponent(i).getClass().equals(JComboBox.class)) {\n jpanel.getComponent(i).setEnabled(boo);\n continue;\n }\n if (jpanel.getComponent(i).getClass().equals(JRadioButton.class)) {\n jpanel.getComponent(i).setEnabled(boo);\n continue;\n }\n if (jpanel.getComponent(i).getClass().equals(JCheckBox.class)) {\n jpanel.getComponent(i).setEnabled(boo);\n continue;\n }\n if (jpanel.getComponent(i).getClass().equals(txtHoraHMS.class)) {\n jpanel.getComponent(i).setEnabled(boo);\n continue;\n }\n if (jpanel.getComponent(i).getClass().equals(txtPassword.class)) {\n jpanel.getComponent(i).setEnabled(boo);\n continue;\n }\n\n if (jpanel.getComponent(i).getClass().equals(JButton.class)) {\n jpanel.getComponent(i).setEnabled(boo);\n continue;\n }\n if (jpanel.getComponent(i).getClass().equals(JTextField.class)) {\n jpanel.getComponent(i).setEnabled(boo);\n continue;\n }\n if (jpanel.getComponent(i).getClass().equals(JPasswordField.class)) {\n jpanel.getComponent(i).setEnabled(boo);\n continue;\n }\n if (jpanel.getComponent(i).getClass().equals(JFormattedTextField.class)) {\n jpanel.getComponent(i).setEnabled(boo);\n }\n }\n }", "title": "" }, { "docid": "b529347de6a091927ceba93948140c60", "score": "0.6386735", "text": "public void vanish() {\n\t\t\r\n\t\tlpanel.addMouseMotionListener(new MouseAdapter() {\r\n\t\t\tpublic void mouseMoved(MouseEvent e) {\r\n\t\t\t\t\r\n\t\t\t\tchecker.setEnabled(false);\r\n\t\t\t\tchecker.setVisible(false);\r\n\t\t\t\trequestL.setEnabled(false);\r\n\t\t\t\trequestL.setVisible(false);\r\n\t\t\t\tpatientL.setEnabled(false);\r\n\t\t\t\tpatientL.setVisible(false);\r\n\t\t\t\treport.setEnabled(false);\r\n\t\t\t\treport.setVisible(false);\r\n\t\t\t}\r\n\t\t});\r\n\t\t}", "title": "" }, { "docid": "f50e4f1a7b1385e381f107f583556fb7", "score": "0.6376903", "text": "@Override\n\tpublic void BloquerCasesPlateau()\n\t{\n\t\tfor (Component bouton : this.unTableau.getComponents())\n\t\t\tbouton.setEnabled(false);\n\t\t\n\t\tthis.unTableau.updateUI();\n\t\t\n\t}", "title": "" }, { "docid": "252bc12ed8206aa1ebe94825c7d04285", "score": "0.63767767", "text": "void disableEdit() {\n\t\tnameField.setEditable(false);\n\t\tssnField.setEditable(false);\n\t\ttakenDateField.setEditable(false);\n\t\ttotalScoreField.setEditable(false);\n\t\tadvisorField.setEditable(false);\n\t\t\n\t}", "title": "" }, { "docid": "63ea420c68fdc24647849ec9c6bf32f1", "score": "0.63662577", "text": "private void setDefaultDisabled() {\n\t\tnameField = new JTextField();\n\t\tnameField.setPreferredSize(new Dimension(290,25)); //Size setting for a 600x400 JFrame\n\t\tnameField.setEnabled(false);\n\t\taddPlayer = new JButton(\"Add Player\");\n\t\taddPlayer.addActionListener(new addPlayerListener());\n\t\taddPlayer.setEnabled(false);\n\t\tplayGame = new JButton(\"Play!\");\n\t\tplayGame.addActionListener(new playGameListener());\n\t\tplayGame.setEnabled(false);\n\t\ttakeTurn = new JButton(\"Take Turn\");\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//v0.1.1 change\n\t\ttakeTurn.addActionListener(new takeTurnListener());\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//v0.1.1 change\n\t\ttakeTurn.setEnabled(false);\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//v0.1.1 change\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//v0.1.1 change\n\t}", "title": "" }, { "docid": "3c3e94dbca7258f5b9b75a791f68de60", "score": "0.63660574", "text": "void disableFolderCollectionPanel();", "title": "" }, { "docid": "3ec5dcd64565c96d9160df47aabfb36f", "score": "0.63496464", "text": "protected abstract void disable();", "title": "" }, { "docid": "c849e0734451806907290bc27ac76f70", "score": "0.6349478", "text": "public void disableAllButtons(){\n\t\tbtnConfirmOrNext.setEnabled(false);\n\t\tbtnStop.setEnabled(false);\n\t\tbtnListenAgain.setEnabled(false);\n\t}", "title": "" }, { "docid": "ae5efad9f69839d16dedd40d57f6053a", "score": "0.6322585", "text": "private void enableSet(){\n addSubmit.setDisable(true);\n removeSubmit.setDisable(true);\n setSubmit.setDisable(false);\n addCS.setDisable(true);\n removeCS.setDisable(true);\n setCS.setDisable(false);\n addIT.setDisable(true);\n removeIT.setDisable(true);\n setIT.setDisable(false);\n addECE.setDisable(true);\n removeECE.setDisable(true);\n setECE.setDisable(false);\n partTime.setDisable(true);\n fullTime.setDisable(true);\n management.setDisable(true);\n dateAddText.setDisable(true);\n dateRemoveText.setDisable(true);\n dateSetText.setDisable(false);\n nameAddText.setDisable(true);\n nameRemoveText.setDisable(true);\n nameSetText.setDisable(false);\n hourlyAddText.setDisable(true);\n annualAddText.setDisable(true);\n managerRadio.setDisable(true);\n dHeadRadio.setDisable(true);\n directorRadio.setDisable(true);\n //codeAddText.setDisable(true);\n hoursSetText.setDisable(false);\n }", "title": "" }, { "docid": "dc8e2ea14c187e50210f14726f311792", "score": "0.6311462", "text": "public void disable() {\r\n cardOne.setEnabled(false);\r\n cardTwo.setEnabled(false);\r\n cardThree.setEnabled(false);\r\n cardFour.setEnabled(false);\r\n cardFive.setEnabled(false);\r\n }", "title": "" }, { "docid": "8b5beac1f79f8f5919153b548176c07c", "score": "0.6299797", "text": "@Override\r\n\tpublic void disable() {\n\t\tcurrentState.disable();\r\n\t}", "title": "" }, { "docid": "d30001a4ad3ea5bfe90c32d0f53acc1f", "score": "0.62739533", "text": "private void setEnableComponents(){\r\n awardAddDocumentForm.cmbDocumentType.setEnabled(true);\r\n awardAddDocumentForm.txtDescription.setEditable(true);\r\n awardAddDocumentForm.txtFileName.setEditable(false);\r\n awardAddDocumentForm.btnUpload.setEnabled(true);\r\n awardAddDocumentForm.btnOk.setEnabled(true);\r\n awardAddDocumentForm.btnCancel.setEnabled(true);\r\n awardAddDocumentForm.btnView.setEnabled(false);\r\n }", "title": "" }, { "docid": "7e55ec03f2a45757a40d372eda1c8c8f", "score": "0.6272279", "text": "public void disabledInit() {\n oi.getXBoxJoystick().setRumble(RumbleType.kLeftRumble, 0);\n oi.getXBoxJoystick().setRumble(RumbleType.kRightRumble, 0);\n oi.getXBoxJoystick2().setRumble(RumbleType.kLeftRumble, 0);\n oi.getXBoxJoystick2().setRumble(RumbleType.kRightRumble, 0);\n }", "title": "" }, { "docid": "4603caa0962c63f689ee4a640f10f7a2", "score": "0.6262876", "text": "public void disableAllButtons() {\n\t\tfor (int i = 0; i < DIM; i++)\n\t\t\tfor (int j = 0; j < DIM; j++)\n\t\t\t\tbuttons[i][j].setEnabled(false);\n\t}", "title": "" }, { "docid": "f3ed1cf4f6c2d11e5fe8b055a98f87ea", "score": "0.6245004", "text": "@Override\n public void onDisabled() {\n }", "title": "" }, { "docid": "6fede094765746ce968133bfb44b0847", "score": "0.6243938", "text": "void omoguciIzmenu() {\n this.setEnabled(true);\n }", "title": "" }, { "docid": "7f05d3cfd970784a54e32c07cf2d4744", "score": "0.6242329", "text": "public Main() {\n initComponents();\n jButton1.setEnabled(false);\n }", "title": "" }, { "docid": "8c57ac5885a506e3159decbb08cc3fd6", "score": "0.6241588", "text": "public void disableComponent(String name);", "title": "" }, { "docid": "631b81882addb7a2e8cd8b64aa766eb7", "score": "0.6237889", "text": "private void enableControls(boolean b) {\n\n\t}", "title": "" }, { "docid": "ee2d93e886c90aee079910267d38d365", "score": "0.62337095", "text": "public void enableDisableEditableIntervalInputTextField() {\r\n intervalInputTextField.setEditable(topModel.isIntervalEditable());\r\n }", "title": "" }, { "docid": "8aba062b28a0536622587c00eafbbf3e", "score": "0.62162906", "text": "private void combox_graphicItemStateChanged(java.awt.event.ItemEvent evt) { \r\n if(!combox_graphic.getSelectedItem().equals(\"Log\")){\r\n ck_ip.setEnabled(false);\r\n ck_bt.setEnabled(false);\r\n ck_st.setEnabled(false);\r\n }else{\r\n ck_ip.setEnabled(true);\r\n ck_bt.setEnabled(true);\r\n ck_st.setEnabled(true);\r\n }\r\n }", "title": "" }, { "docid": "c3e33f024f53c591df847f51f92d1347", "score": "0.6203151", "text": "private void disableButtons(boolean b) {\n for (int i = 0; i < 5; i++) {\n for (int j = 0; j < 5; j++) {\n bt[i][j].setDisable(b);\n bt[i][j].setStyle(\"-fx-border-color:transparent\");\n }\n }\n }", "title": "" }, { "docid": "ab4ccb5e7cd818d34fee89b61c56deee", "score": "0.62019855", "text": "public void disable() {\r\n m_enabled = false;\r\n useOutput(0, 0);\r\n }", "title": "" }, { "docid": "e7383848b60420c0d6746d9e7bd1157a", "score": "0.6169839", "text": "private void setBoardDisabled(boolean disabled) {\r\n\t\tfor(int i = 0; i < 9; i++) {\r\n\t\t\t//If we're enabling the buttons and the button has no text on it (Only enable the unclicked buttons)\r\n\t\t\t//OR if we're disabling the buttons\r\n\t\t\tif(!disabled && buttons[i].getText().equals(\"\") || disabled) {\r\n\t\t\t\tbuttons[i].setDisable(disabled);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "6c33e1cdb445b06b6a94ae4eed440277", "score": "0.61683786", "text": "private void disableChat()\r\n\t{\r\n\t\ttextFieldMessageSaisie.setDisable(true);\r\n\t\tlistViewConversation.setDisable(true);\r\n\t\tbuttonChoisirFichier.setDisable(true);\r\n\t\ttextFieldFichier.setDisable(true);\r\n\t}", "title": "" }, { "docid": "f9a29246f1ff3cd8d422148680f7fc82", "score": "0.61477757", "text": "private void unlockButton() {\n\t\tconversionPdf_Txt.setEnabled(true);\n\t\tavisJury.setEnabled(true);\n\t\tstatistique.setEnabled(true);\n bData.setEnabled(true);\n\t}", "title": "" }, { "docid": "f671fdfb9df2095055e582ad49a46a43", "score": "0.6131019", "text": "private void habilitar() {\n\n if (i <= 0) {\n jButton4.setEnabled(false);\n } else {\n jButton4.setEnabled(true);\n }\n }", "title": "" }, { "docid": "b3b21c7bba3b6bd50baa6a87d23966e9", "score": "0.61166465", "text": "private void disableP1Buttons(){\n game_BTN_p1_lightAttack.setEnabled(false);\n game_BTN_p1_strongAttack.setEnabled(false);\n game_BTN_p1_brutalAttack.setEnabled(false);\n }", "title": "" }, { "docid": "95868ee6ca3c94b4b1ccb3245ab34d54", "score": "0.60817975", "text": "public void disable(){\n if(criticalStop) return;\n getModel().setStatus(false);\n }", "title": "" }, { "docid": "dabf45af65f770c4e6682bf773d7209b", "score": "0.60745305", "text": "public void enablePanel(boolean b);", "title": "" }, { "docid": "09ff935bc0473c36e3ce139010d6164a", "score": "0.6072577", "text": "public void disable(boolean b) {\n\t\tif (b) permanent = true;\n\t\tenabled = false;\n\t\trect.setColor(disabledColor);\n\t}", "title": "" }, { "docid": "c195e50fc2956750fba916450ae713f6", "score": "0.60681945", "text": "private void setControlsEnabled(boolean value){\r\n txtRolodexId.setEditable(value);\r\n txtLastUpdate.setEditable(value);\r\n txtUpdateUser.setEditable(value);\r\n txtLastName.setEditable(value);\r\n txtFirstName.setEditable(value);\r\n txtMiddleName.setEditable(value);\r\n txtSuffix.setEditable(value);\r\n txtPrefix.setEditable(value);\r\n txtTitle.setEditable(value);\r\n txtSponsorCode.setEditable(value);\r\n txtOrganization.setEditable(value);\r\n txtAddress1.setEditable(value);\r\n txtAddress2.setEditable(value);\r\n txtAddress3.setEditable(value);\r\n txtCity.setEditable(value);\r\n txtCounty.setEditable(value);\r\n //Modified for case#3278 - State Combobox is made non editable\r\n cmbState.setEditable(false);\r\n cmbState.setEnabled(value);\r\n cmbState.setForeground(Color.black);\r\n cmbCountry.setEnabled(value);\r\n txtPostalCode.setEditable(value);\r\n txtPhone.setEditable(value);\r\n txtEMail.setEditable(value);\r\n txtFax.setEditable(value);\r\n txtComments.setEditable(value);\r\n }", "title": "" }, { "docid": "77fe6d2b1d854407788961f57c50a78e", "score": "0.6064573", "text": "@FXML\n public void isSelectedOff() {\n reset();\n on.setSelected(false);\n\n lab4.setVisible(false);\n txt4.setVisible(false);\n lab5.setVisible(false);\n txt5.setVisible(false);\n lab6.setVisible(false);\n txt6.setVisible(false);\n\n }", "title": "" }, { "docid": "b9eebae5135698d8a17a75d0874af6bc", "score": "0.60635626", "text": "@Override\n\tpublic void onDisable() {\n\n\t}", "title": "" }, { "docid": "20ef517f5c2fafd1813d573de5a90c78", "score": "0.60535604", "text": "@Override\n\tpublic void onDisable() {\n\t\t\n\t}", "title": "" }, { "docid": "04ec2be259f6e4647127872d4365ccd0", "score": "0.6046356", "text": "private void setMembershipPanelEdiableFalse() {\n \n accountNrTF.setEditable(false);\n fromDateTF.setEditable(false);\n groupTrainingCB.setEnabled(false);\n monthPayTF.setEditable(false);\n pbsDateTF.setEditable(false);\n pbsNumberTF.setEditable(false);\n regNrTF.setEditable(false);\n balanceTF.setEditable(false);\n poolsCB.setEnabled(false);\n timeLimitCB.setEnabled(false);\n endDateTF.setEditable(false);\n membershipDropD.setEnabled(false);\n }", "title": "" }, { "docid": "d9fc758b1306a184c9c92bfa5053f70f", "score": "0.6043013", "text": "public Softwear3() {\n initComponents();\n myConstants.jTabbedPane2 = this.jTabbedPane2;\n jTabbedPane2.setEnabled(false);\n jButton1.setEnabled(false);\n jButton2.setEnabled(false);\n \n }", "title": "" }, { "docid": "d85d72861ed5255b213ad8cd223af777", "score": "0.6036464", "text": "void disableMod();", "title": "" }, { "docid": "2844d770baa88fa9ab37f7123a04bcf3", "score": "0.6035303", "text": "@Override\n public void onDisable() {\n super.onDisable();\n running = false;\n }", "title": "" }, { "docid": "c31d084dd6c849e1b600d8e5a997a72b", "score": "0.6035056", "text": "public JsStatement disable()\n\t{\n\t\treturn new JsQuery(getComponent()).$().chain(\"draggable\", \"'disable'\");\n\t}", "title": "" }, { "docid": "7326add2d350e6677936a40e59fc32aa", "score": "0.6032305", "text": "private void enableDisable() {\n fixDisplayName.setEnabled(automaticFix.isSelected());\n }", "title": "" } ]
3cc21096b6eca779a688539d1968913e
Handle action bar item clicks here. The action bar will automatically handle clicks on the Home/Up button, so long as you specify a parent activity in AndroidManifest.xml.
[ { "docid": "1a239553d1a9a50807c9256d7901f3e1", "score": "0.0", "text": "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == R.id.action_settings) {\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "title": "" } ]
[ { "docid": "07ae17b4f0aba18cdb307bd571a38f09", "score": "0.7816054", "text": "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\n case android.R.id.home:\n // app icon in action bar clicked; goto parent activity.\n this.finish();\n return true;\n \n default:\n return super.onOptionsItemSelected(item);\n }\n \n\t}", "title": "" }, { "docid": "1506d605f9ce64d18e80b4c5891376ae", "score": "0.77977574", "text": "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\n case android.R.id.home:\n // application icon in action bar clicked; go home\n finish();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n\t}", "title": "" }, { "docid": "eb3be055123df6a5669d3fc113d83d9a", "score": "0.77498233", "text": "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id) {\n case android.R.id.home:\n // app icon in action bar clicked; goto parent activity.\n Logger.WriteOnReport(\"ListeningActivity\", \"Clicked on back BUTTON\");\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "title": "" }, { "docid": "da3606f26f1cc02f03beef11ac6929bc", "score": "0.7736629", "text": "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n switch (item.getItemId()) {\n case android.R.id.home:\n // app icon in action bar clicked; go home\n Intent intent = new Intent(this, MainActivity_Menu_WingsArmy.class);\n intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n startActivity(intent);\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n}", "title": "" }, { "docid": "527b356794aec6815e6cbc3160762bbe", "score": "0.7730206", "text": "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\r\n case android.R.id.home:\r\n // app icon in action bar clicked; goto parent activity.\r\n this.finish();\r\n return true;\r\n default:\r\n return super.onOptionsItemSelected(item);\r\n }\r\n }", "title": "" }, { "docid": "b8e4c898e0fef512a106f88d82c2d741", "score": "0.7729712", "text": "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n // up arrow in action bar clicked - goto main activity\n this.finish();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "title": "" }, { "docid": "d392893a77dbd1bdc0ae0a3df413e432", "score": "0.7713695", "text": "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\r\n // Respond to the action bar's Up/Home button\r\n case android.R.id.home:\r\n onBackPressed();\r\n return true;\r\n default:\r\n return super.onOptionsItemSelected(item);\r\n }\r\n }", "title": "" }, { "docid": "92273ff3310bd85ed063785d69882765", "score": "0.768066", "text": "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n // Respond to the action bar's Up/Home button\n case android.R.id.home:\n Intent intent = NavUtils.getParentActivityIntent(this);\n intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP|Intent.FLAG_ACTIVITY_SINGLE_TOP);\n NavUtils.navigateUpTo(this, intent);\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "title": "" }, { "docid": "b4c0d5239c4e63a6e2eb410a823f26f5", "score": "0.76771593", "text": "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n //noinspection SimplifiableIfStatement\n switch (id) {\n // Respond to the action bar's Up/Home button\n case android.R.id.home:\n //handle the home button onClick event here.\n finish();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "title": "" }, { "docid": "9bcfc556fe53b794f8730a6b37ab2b8e", "score": "0.7536053", "text": "@Override\n \tpublic boolean onOptionsItemSelected(MenuItem item) {\n \t\tswitch (item.getItemId()) {\n \t\tcase android.R.id.home:\n \t\t\t// This ID represents the Home or Up button. In the case of this\n \t\t\t// activity, the Up button is shown. Use NavUtils to allow users\n \t\t\t// to navigate up one level in the application structure. For\n \t\t\t// more details, see the Navigation pattern on Android Design:\n \t\t\t//\n \t\t\t// http://developer.android.com/design/patterns/navigation.html#up-vs-back\n \t\t\t//\n \t\t\tNavUtils.navigateUpFromSameTask(this);\n \t\t\treturn true;\n \t\t}\n \t\treturn super.onOptionsItemSelected(item);\n \t}", "title": "" }, { "docid": "a44b5ebc4cbc0d4a3d322962112bfacd", "score": "0.7527321", "text": "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n // Respond to the action bar's Up/Home button\n case android.R.id.home:\n finish();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "title": "" }, { "docid": "fe420a82f6657b37ae864bb4099b099f", "score": "0.749532", "text": "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch(item.getItemId())\n\t\t{\t\t\n\t\t\tcase android.R.id.home:\n\t\t\t\t// this is called when the Home (up) button is pressed in the action bar\n\t\t\t\tIntent parentActivityIntent = new Intent(this, MainActivity.class);\n\t\t\t\tparentActivityIntent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP | Intent.FLAG_ACTIVITY_NEW_TASK);\n\t\t\t\tstartActivity(parentActivityIntent);\n\t\t\t\tfinish();\n\t\t\t\tbreak;\n\t\t\t\t\n/*\t\t\tcase android.R.id.draw:\n\t\t\t\t// this is called when the Home (up) button is pressed in the action bar\n\t\t\t\t//startActivity(new Intent(this, ie.draw.DrawActivity.class));\n\t\t\t\tbreak;\t*/\n\t\t}\n\t\treturn super.onOptionsItemSelected(item);\n\t}", "title": "" }, { "docid": "f79371a53b692993bcdd593c6bc80802", "score": "0.74933946", "text": "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\r\n if(item.getItemId()==android.R.id.home) {\r\n callBackPressedActivity();\r\n }\r\n return super.onOptionsItemSelected(item);\r\n }", "title": "" }, { "docid": "adde3c95e67a15fa3e1c26ffe43edde5", "score": "0.7476806", "text": "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\tonBackPressed();\n\t\t\tbreak;\n\n\t\tdefault:\n\t\t\tbreak;\n\t\t}\n\t\treturn super.onOptionsItemSelected(item);\n\t}", "title": "" }, { "docid": "adde3c95e67a15fa3e1c26ffe43edde5", "score": "0.7476806", "text": "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\tonBackPressed();\n\t\t\tbreak;\n\n\t\tdefault:\n\t\t\tbreak;\n\t\t}\n\t\treturn super.onOptionsItemSelected(item);\n\t}", "title": "" }, { "docid": "31c3d109a01ca8df4d7970c536a8276b", "score": "0.7457902", "text": "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n\n switch (item.getItemId()) {\n case android.R.id.home:\n\n // app icon in action bar clicked; goto parent activity.\n this.finish();\n return true;\n default:\n\n return super.onOptionsItemSelected(item);\n\n }\n }", "title": "" }, { "docid": "077aeb41cc99c8dbbdd0cc395e4d94b8", "score": "0.74287623", "text": "@Override\npublic boolean onOptionsItemSelected(MenuItem item) {\n\t\n\tswitch (item.getItemId()) {\n case R.id.action_about:\n \t\n // about action\n \tactionbar();\n return true;\n\t}\n\tif (item.getItemId()==android.R.id.home) {\n\t\tfinish();\n\t}\n\t\n return super.onOptionsItemSelected(item);\n }", "title": "" }, { "docid": "56246c0f12d77967be66aa57bf53f9f9", "score": "0.74201435", "text": "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n // This is called when the Home (Up) button is pressed\n // in the Action Bar.\n finish();\n return true;\n\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "title": "" }, { "docid": "4fbba57c182db4d704a004e9eb804382", "score": "0.74178416", "text": "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n // Respond to a click on the \"Up\" arrow button in the app bar\n case android.R.id.home:\n // Navigate back to parent activity\n NavUtils.navigateUpFromSameTask(this);\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "title": "" }, { "docid": "0cb019d7b3070e9202195ec522730c0f", "score": "0.7417477", "text": "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n switch (item.getItemId())\n {\n case android.R.id.home:\n onBackPressed();\n break;\n\n default:\n break;\n }\n return super.onOptionsItemSelected(item);\n }", "title": "" }, { "docid": "503327667efc2308a7c77ad05fd265dd", "score": "0.7414448", "text": "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n if (item.getItemId() == android.R.id.home){\n finish(); //Close activity when clicked back Arrow at top of toolbar\n }\n\n return super.onOptionsItemSelected(item);\n }", "title": "" }, { "docid": "1934dbbcdfc8def38baa53349bc9faa5", "score": "0.74046344", "text": "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item)\n\t{\n\t\tint id = item.getItemId();\n\t\tswitch(id){\n\t\t\tcase ActionBarCompat.ID_HOME:\n\t\t\t\tfinish();\n\t\t\t\treturn true;\n\t\t}\n\t\treturn super.onOptionsItemSelected(item);\n\t}", "title": "" }, { "docid": "0f4feafd7609690951a24a1d05dda348", "score": "0.7397931", "text": "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == android.R.id.home) {\n onBackPressed();\n }\n\n return super.onOptionsItemSelected(item);\n }", "title": "" }, { "docid": "9b81d57444100679f43695fe330727f2", "score": "0.73868686", "text": "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n // Given the action bar icon that was selected, do something\n switch (item.getItemId()) {\n // If the main action bar icon (left-most icon) was selected\n case android.R.id.home:\n // Go to the home screen\n //\n // Set the Intent to launch to be the home screen\n Intent intent = new Intent(this, HomeScreen.class);\n // These flags are so if there's an instance of the home screen Activity already\n // running, bring that instance on screen instead of starting a new instance\n // of it\n intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP | Intent.FLAG_ACTIVITY_NEW_TASK);\n // Launch the home screen\n startActivity(intent);\n\n return true;\n default:\n // Call the super class version of the method with the selection\n return super.onOptionsItemSelected(item); // Required call to superclass for app lifecycle management\n }\n }", "title": "" }, { "docid": "b537c3456a2f3576190517f1223a1254", "score": "0.73524815", "text": "@Override\n public boolean onOptionsItemSelected(MenuItem item)\n {\n switch (item.getItemId())\n {\n case R.id.home:\n finishActivity(1);\n return true;\n\n case R.id.action_bar_about:\n startActivity(new Intent(this, About.class));\n return true;\n\n case R.id.action_bar_settings:\n startActivity(new Intent(this, Settings.class));\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "title": "" }, { "docid": "ec749d633409b007d4f9d539322c8ba9", "score": "0.7346575", "text": "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n //handle presses on the action bar items\n switch (item.getItemId()) {\n\n case R.id.action_about:\n ActionBarUtils.alertDialogShow(MainActivity.this);\n return true;\n\n case R.id.action_settings:\n ActionBarUtils.goToSettings(MainActivity.this);\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "title": "" }, { "docid": "ee78ecad8479caacf960d8bcbbcb201f", "score": "0.7337804", "text": "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n if (item.getItemId() == android.R.id.home){\n super.onBackPressed();\n }\n return super.onOptionsItemSelected(item);\n }", "title": "" }, { "docid": "0bd15c0c2b6ce03da53db1168714483a", "score": "0.73300636", "text": "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()){\n case android.R.id.home:\n onBackPressed();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "title": "" }, { "docid": "1228fc32d6743ab168c76d69b3d80ef7", "score": "0.7323246", "text": "@Override\n public boolean onOptionsItemSelected(MenuItem item)\n {\n switch (item.getItemId())\n {\n\n case android.R.id.home:\n onBackPressed();\n return true;\n\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "title": "" }, { "docid": "4bc14269508c91f127b0448ce20a6a6c", "score": "0.73197246", "text": "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n\n }", "title": "" }, { "docid": "ffba94f710f40f598ae749d37efaa942", "score": "0.73046076", "text": "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n switch (item.getItemId()) {\n case android.R.id.home:\n // Back arrow on top\n Intent nazaj = new Intent(getApplicationContext(), MainActivity.class);\n startActivity(nazaj);\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "title": "" }, { "docid": "ec78be6501a99d5d6c511bd9e94063a2", "score": "0.73040766", "text": "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "title": "" }, { "docid": "ec78be6501a99d5d6c511bd9e94063a2", "score": "0.73040766", "text": "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "title": "" }, { "docid": "c4b22f6a887ba4e38a8aaeb630667b00", "score": "0.7303555", "text": "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n // Respond to the action bar's Up/Home button\n case android.R.id.home:\n NavUtils.navigateUpFromSameTask(this);\n // Haptic feedback\n View view = findViewById(android.R.id.home);\n view.performHapticFeedback(HapticFeedbackConstants.VIRTUAL_KEY);\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "title": "" }, { "docid": "71d89b4dc432cb39a7a34b0c17687c5e", "score": "0.72935814", "text": "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId())\n {\n case android.R.id.home:\n\n onBackPressed();\n\n return true;\n\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "title": "" }, { "docid": "e8280c7869869f03194167052c10b763", "score": "0.7288512", "text": "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n if (item.getItemId() == android.R.id.home) {\n onBackPressed();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "title": "" }, { "docid": "79ac716d5104bde79b66ae79cd9e59cb", "score": "0.7287327", "text": "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tif (item.getItemId() == android.R.id.home) {\n\t\t\tgetSherlockActivity().onBackPressed();\n\t\t\treturn true;\n\t\t}\n\t\treturn super.onOptionsItemSelected(item);\n\t}", "title": "" }, { "docid": "719e0c87a7a2009592e8908914e3c718", "score": "0.72856456", "text": "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "title": "" }, { "docid": "86c01e28c34ce1ffc99ff062b6c69b98", "score": "0.728512", "text": "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id) {\n case android.R.id.home:\n onBackPressed();\n return false;\n }\n\n return super.onOptionsItemSelected(item);\n }", "title": "" }, { "docid": "b96610b6bc49a26e4121c18a2c614e00", "score": "0.7284545", "text": "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n switch (id) {\n case android.R.id.home:\n // 左上角返回按钮\n \tfinish();\n \tbreak;\n }\n return super.onOptionsItemSelected(item);\n\t}", "title": "" }, { "docid": "77a7d8c4b2c354a3ab3299ef28255b46", "score": "0.7284033", "text": "@Override\n public boolean onOptionsItemSelected(MenuItem item)\n {\n if(item.getItemId() == android.R.id.home)\n {\n onBackPressed();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "title": "" }, { "docid": "4b1bd55956d763e7672fbf9478cb493d", "score": "0.7282441", "text": "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n Log.i(\"android.R.id.home:\", \"\"+item.getItemId());\n// Intent intent = new Intent(this, MainActivity.class);\n// intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n// startActivity(intent);\n this.finish();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n\n }", "title": "" }, { "docid": "6f1c18c65fab9305336d39a30cb0adf7", "score": "0.728037", "text": "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n switch (id) {\n case android.R.id.home:\n super.onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "title": "" }, { "docid": "fb842bb7867d3a3104e00ff4657c870e", "score": "0.7265424", "text": "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tif(item.getItemId()==android.R.id.home)\n\t\t{\n\t\t\tgetActivity().onBackPressed();\n\t\t}\n\t\treturn super.onOptionsItemSelected(item);\n\t}", "title": "" }, { "docid": "9364686e1374c7e4688a807b5aa46520", "score": "0.72617304", "text": "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n switch (id){\n case android.R.id.home:\n super.onBackPressed();\n }\n return super.onOptionsItemSelected(item);\n }", "title": "" }, { "docid": "7c132ca42cc8d7ee176be216db4bb6ab", "score": "0.72613776", "text": "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n super.onBackPressed();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "title": "" }, { "docid": "06efe60974a43b59ba227eac5429e46c", "score": "0.7260389", "text": "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == R.id.toast_me) {\n\n Toast.makeText(getApplicationContext(),\"From the action bar\",Toast.LENGTH_LONG).show();\n return true;\n }\n\n\n\n if ( id == R.id.btn_square_actbar) {\n\n // switchActivity();\n\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "title": "" }, { "docid": "27c8410963ab9cc758de135802a86143", "score": "0.72592795", "text": "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "title": "" }, { "docid": "27c8410963ab9cc758de135802a86143", "score": "0.72592795", "text": "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "title": "" }, { "docid": "27c8410963ab9cc758de135802a86143", "score": "0.72592795", "text": "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "title": "" }, { "docid": "b2421ab341f89c417336754b6ae85ea8", "score": "0.72562826", "text": "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id) {\n case android.R.id.home:\n onBackPressed();\n return true;\n }\n return false;\n }", "title": "" }, { "docid": "6485fd86f7325e24ae2c795f80001d26", "score": "0.7254161", "text": "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (item.getItemId() == android.R.id.home) {\n onBackPressed();\n }\n return super.onOptionsItemSelected(item);\n }", "title": "" }, { "docid": "b0a31c48906cabf9323b6e0cbbcc8471", "score": "0.7245124", "text": "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n // Handle item selection\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "title": "" }, { "docid": "bbe551ffce840f3298b2f75c16cd8728", "score": "0.7242109", "text": "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home){\n easyTracker.send(MapBuilder.createEvent(\"Billboard\", \"back button pressed\", \"Billboard event\", null).build());\n NavUtils.navigateUpFromSameTask(this);\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "title": "" }, { "docid": "931cdaa489d202e5a760e3bd0830acd3", "score": "0.7228787", "text": "@Override\n public boolean onOptionsItemSelected(MenuItem item)\n {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == android.R.id.home)\n {\n onBackPressed();\n }\n\n return super.onOptionsItemSelected(item);\n }", "title": "" }, { "docid": "d9543ae1c9717290432aa17281c93814", "score": "0.72268593", "text": "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n //if id = back button\n if (item.getItemId()==android.R.id.home)\n {\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "title": "" }, { "docid": "e21e88170ced46d5bc80c076141b9522", "score": "0.7226342", "text": "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n if (item.getItemId() == android.R.id.home) {\n finish();\n }\n return super.onOptionsItemSelected(item);\n }", "title": "" }, { "docid": "dee02471b3a21a0e21ca47c848be8d73", "score": "0.722622", "text": "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\tthis.finish();\n\n\t\t}\n\t\treturn super.onOptionsItemSelected(item);\n\t}", "title": "" }, { "docid": "f2ea6670cadca81529cfe5cddcf4a700", "score": "0.72230077", "text": "@Override\r\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tint id = item.getItemId();\r\n\t\tswitch (id) {\r\n\t\tcase android.R.id.home:\r\n\t\t\tfinish();\r\n\t\t\tbreak;\r\n\r\n\t\tdefault:\r\n\t\t\tbreak;\r\n\t\t}\r\n\t\treturn super.onOptionsItemSelected(item);\r\n\t}", "title": "" }, { "docid": "b53dcebfac074e2ae1c3b781c4093047", "score": "0.72179204", "text": "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home)\n //end the activity\n this.finish();\n return super.onOptionsItemSelected(item);\n }", "title": "" }, { "docid": "3f731aa9631da0513ee28bbb5e932ef5", "score": "0.7211134", "text": "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n // Pass the event to ActionBarDrawerToggle, if it returns\n // true, then it has handled the app icon touch event\n if (drawerToggle != null && drawerToggle.onOptionsItemSelected(item)) {\n return true;\n }\n // Handle your other action bar items...\n\n return super.onOptionsItemSelected(item);\n }", "title": "" }, { "docid": "fd884ce35184c85c364cb1df48e0d182", "score": "0.72082937", "text": "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n super.onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "title": "" }, { "docid": "84841c361c5c5e2e2c2069b6e8f5b041", "score": "0.7206961", "text": "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n onBackPressed();\n }\n\n return super.onOptionsItemSelected(item);\n }", "title": "" }, { "docid": "84841c361c5c5e2e2c2069b6e8f5b041", "score": "0.7206961", "text": "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n onBackPressed();\n }\n\n return super.onOptionsItemSelected(item);\n }", "title": "" }, { "docid": "1ace848a5b02c0fd69b41c264fc28ef6", "score": "0.7195398", "text": "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n finish();\n\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "title": "" }, { "docid": "648e05a8f1d665b354acb3719cd9071f", "score": "0.71905583", "text": "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n if (item.getItemId() == android.R.id.home) {\n finish(); // close this activity and return to preview activity (if there is any)\n }\n if (item.getItemId() == R.id.home_btn) {\n Intent intent = new Intent(getApplicationContext(), MainActivity.class);\n intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n startActivity(intent);\n }\n\n return super.onOptionsItemSelected(item);\n }", "title": "" }, { "docid": "90750e69b2489c8e379916831629cf62", "score": "0.7186201", "text": "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n }\n\n return(super.onOptionsItemSelected(item));\n }", "title": "" }, { "docid": "c5ad04f0f31b15f29502bb22d6f8ba72", "score": "0.718156", "text": "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n if (item.getItemId() == android.R.id.home) {\n onBackPressed();\n }\n return true;\n }", "title": "" }, { "docid": "3029f118f6e5d361a47674ceb598a1c8", "score": "0.71770626", "text": "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId())\n {\n case android.R.id.home:\n\n onBackPressed();\n\n return true;\n }\n return false;\n }", "title": "" }, { "docid": "dedfa279061830853490075844baabf1", "score": "0.716716", "text": "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (item.getItemId() == android.R.id.home) {\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "title": "" }, { "docid": "35073f457f453841562be51ae8af9318", "score": "0.71669316", "text": "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n if(item.getItemId()==android.R.id.home){\n this.finish();\n }\n return super.onOptionsItemSelected(item);\n }", "title": "" }, { "docid": "07dff1ecbebcb002496ea59bc4c9cc2c", "score": "0.7161381", "text": "@Override\n public boolean onOptionsItemSelected (MenuItem item){\n // Handle action bar item clicks here. The action bar will\n // automatically handle clicks on the Home/Up button, so long\n // as you specify a parent activity in AndroidManifest.xml.\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n finish();\n }\n return true;\n }", "title": "" }, { "docid": "af326fc0f876edb3253986c0c1945dab", "score": "0.715401", "text": "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n Intent intent = NavUtils.getParentActivityIntent(this);\n intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP|Intent.FLAG_ACTIVITY_SINGLE_TOP);\n NavUtils.navigateUpTo(this, intent);\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "title": "" }, { "docid": "4ecf013d7a92620aef9c76859e004205", "score": "0.7140634", "text": "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == android.R.id.home) {\n navToHome();\n }\n\n return super.onOptionsItemSelected(item);\n }", "title": "" }, { "docid": "14d2a4f8ea80cbb33258c39da07578f5", "score": "0.71365446", "text": "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n onBackPressed();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "title": "" }, { "docid": "454aa0a9270113fcae9f44678571a8e5", "score": "0.7135846", "text": "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\tfinish();\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tbreak;\n\t\t}\n\t\treturn super.onOptionsItemSelected(item);\n\t}", "title": "" }, { "docid": "89a6588fe54abcf9608c02c44bee5ab7", "score": "0.7132306", "text": "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n if(android.R.id.home == item.getItemId()){\n finish();\n }\n return super.onOptionsItemSelected(item);\n }", "title": "" }, { "docid": "d69b6696d4f010902839e995a8f3b493", "score": "0.7131623", "text": "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (item.getItemId() == android.R.id.home) {\n this.finish();\n }\n return super.onOptionsItemSelected(item);\n }", "title": "" }, { "docid": "93a2381c99f621f5f2d4fd7998ebe704", "score": "0.7127162", "text": "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\tfinish();\n\t\t\treturn true;\n\t\t}\n\t\treturn super.onOptionsItemSelected(item);\n\t}", "title": "" }, { "docid": "cfe81979582b801aee9e537859915d8a", "score": "0.71223444", "text": "@Override\n public boolean onOptionsItemSelected(MenuItem item)\n {\n if(item.getItemId() == android.R.id.home)\n {\n finish();\n }\n return super.onOptionsItemSelected(item);\n }", "title": "" }, { "docid": "20daa87bbd8e563eda78df4fdea10643", "score": "0.71181434", "text": "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "title": "" }, { "docid": "20daa87bbd8e563eda78df4fdea10643", "score": "0.71181434", "text": "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "title": "" }, { "docid": "b36aaa96ebd2308a35ccbb4433ffacfb", "score": "0.7118051", "text": "@Override\n public boolean onOptionsItemSelected (MenuItem item)\n {\n int id = item.getItemId ();\n\n //noinspection SimplifiableIfStatement\n switch (id)\n {\n case android.R.id.home:\n Intent intent = NavUtils.getParentActivityIntent (this);\n intent.setFlags (Intent.FLAG_ACTIVITY_CLEAR_TOP | Intent.FLAG_ACTIVITY_SINGLE_TOP);\n NavUtils.navigateUpTo (this, intent);\n return true;\n }\n\n return super.onOptionsItemSelected (item);\n }", "title": "" }, { "docid": "a47f6f4409e18f2757b454e4b9292503", "score": "0.7116941", "text": "@Override\n public boolean onOptionsItemSelected(@NonNull MenuItem item) {\n if(item.getItemId() == android.R.id.home){\n onBackPressed();\n }\n\n return super.onOptionsItemSelected(item);\n }", "title": "" }, { "docid": "a274d8d0f290a81e7ffc2c7e17324e17", "score": "0.71160007", "text": "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n super.onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "title": "" }, { "docid": "f5423ccaa614e75e214705b02641b244", "score": "0.7107383", "text": "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n if(item.getItemId()==android.R.id.home) {\n finish();\n }\n return super.onOptionsItemSelected(item);\n }", "title": "" }, { "docid": "02aee05710fd22b1a9d0fa231412c91a", "score": "0.7104786", "text": "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home){\n finish();\n }\n return super.onOptionsItemSelected(item);\n }", "title": "" }, { "docid": "620377f2710f0922b54435ed17032657", "score": "0.7092446", "text": "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id) {\n case android.R.id.home:\n// NavUtils.navigateUpFromSameTask(this);\n finish();\n return true;\n\n case R.id.action_go_to_top:\n Intent intent = new Intent(this, MainActivity.class);\n intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n startActivity(intent);\n break;\n\n\n }\n\n return super.onOptionsItemSelected(item);\n }", "title": "" }, { "docid": "9e612f2f9c7f24d02733ef0a4d5fc469", "score": "0.70809513", "text": "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()){\n case android.R.id.home :\n finish();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "title": "" }, { "docid": "ca59a312a19c3fee646f194d0f989fd5", "score": "0.7079834", "text": "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n if (item.getItemId() == android.R.id.home) {\n finish();\n }\n\n return super.onOptionsItemSelected(item);\n }", "title": "" }, { "docid": "25f5f42c285f71451709c7103c847f8a", "score": "0.7077722", "text": "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\n\t\t// Respond to the action bar's Up/Home button\n\t\tcase android.R.id.home:\n\t\t\tNavUtils.navigateUpFromSameTask(this);\n\t\t\toverridePendingTransition(R.anim.in_details, R.anim.out_list);\n\t\t\treturn true;\n\t\t}\n\t\treturn super.onOptionsItemSelected(item);\n\t}", "title": "" }, { "docid": "619fcf051fe95eff8006b78a3c2e3d23", "score": "0.70745295", "text": "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n int id = item.getItemId();\n switch(id){\n case android.R.id.home:\n back();\n break;\n\n default:\n break;\n\n }\n return false;\n }", "title": "" }, { "docid": "0c297642d5cba8a5168255e2470e2ee3", "score": "0.70743173", "text": "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n finish();\n return true;\n }\n return super.onOptionsItemSelected(item);\n\n }", "title": "" }, { "docid": "c5594febeb8f411a8451b98f0d3affad", "score": "0.706983", "text": "@Override\r\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tint id = item.getItemId();\r\n\t\t if (id == android.R.id.home){\r\n\t\t\tfinish();\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\treturn super.onOptionsItemSelected(item);\r\n\t}", "title": "" }, { "docid": "d5a6fffba9ab298fb0c073b3f7828b3e", "score": "0.70691174", "text": "@Override\r\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\r\n\t\tswitch (item.getItemId()) {\r\n\t\t\tcase android.R.id.home:\r\n\t\t\t\tfinish();\r\n\t\t\t\treturn true;\r\n\t\t\tdefault:\r\n\t\t\t\treturn super.onOptionsItemSelected(item);\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "779027ae0b7e5232a8ec2ca26950278a", "score": "0.7064215", "text": "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\tfinish();\n\t\t\treturn true;\n\t\tdefault:\n\t\t\treturn super.onOptionsItemSelected(item);\n\t\t}\n\t}", "title": "" }, { "docid": "336c39a2a1da120d7e2b9e48d67ffd06", "score": "0.7061881", "text": "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if( id == android.R.id.home){\n finish();\n return true;\n }\n\n\n return super.onOptionsItemSelected(item);\n }", "title": "" }, { "docid": "e7789eac55d810276452d87ac12eb897", "score": "0.7061188", "text": "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tIntent intent = new Intent(this, HomeActivity.class);\n\t\tintent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n\t\tstartActivity(intent);\n\t\treturn super.onOptionsItemSelected(item);\n\t}", "title": "" }, { "docid": "b4de4216f52f062abbbb1bc218e7aae6", "score": "0.70585406", "text": "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n if (item.getItemId() == android.R.id.home) {\n this.finish();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "title": "" }, { "docid": "168609471148e74196cbdd0cc0664d5a", "score": "0.7054854", "text": "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home){\n finish();\n return true;\n }\n\n\n return super.onOptionsItemSelected(item);\n }", "title": "" }, { "docid": "c3843742a34c2c9d7b7bcaa1286cac10", "score": "0.70525515", "text": "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n\r\n //noinspection SimplifiableIfStatement\r\n if (id == android.R.id.home) {\r\n // finish the activity\r\n onBackPressed();\r\n return true;\r\n }\r\n return super.onOptionsItemSelected(item);\r\n }", "title": "" } ]
cd55be825fa6ccd61082e17802e9539c
$ANTLR end "rule__XExpression__Group__0" $ANTLR start "rule__XExpression__Group__0__Impl" ../com.jaspersoft.studio.data.sql.ui/srcgen/com/jaspersoft/studio/data/ui/contentassist/antlr/internal/InternalSqlParser.g:9669:1: rule__XExpression__Group__0__Impl : ( KEYWORD_15 ) ;
[ { "docid": "8499fc91748f0d1c377c463a1cf25d92", "score": "0.7578931", "text": "public final void rule__XExpression__Group__0__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../com.jaspersoft.studio.data.sql.ui/src-gen/com/jaspersoft/studio/data/ui/contentassist/antlr/internal/InternalSqlParser.g:9673:1: ( ( KEYWORD_15 ) )\n // ../com.jaspersoft.studio.data.sql.ui/src-gen/com/jaspersoft/studio/data/ui/contentassist/antlr/internal/InternalSqlParser.g:9674:1: ( KEYWORD_15 )\n {\n // ../com.jaspersoft.studio.data.sql.ui/src-gen/com/jaspersoft/studio/data/ui/contentassist/antlr/internal/InternalSqlParser.g:9674:1: ( KEYWORD_15 )\n // ../com.jaspersoft.studio.data.sql.ui/src-gen/com/jaspersoft/studio/data/ui/contentassist/antlr/internal/InternalSqlParser.g:9675:1: KEYWORD_15\n {\n before(grammarAccess.getXExpressionAccess().getXKeyword_0()); \n match(input,KEYWORD_15,FOLLOW_KEYWORD_15_in_rule__XExpression__Group__0__Impl20186); \n after(grammarAccess.getXExpressionAccess().getXKeyword_0()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" } ]
[ { "docid": "698de74be26725dcf45e6485eb7783c1", "score": "0.792339", "text": "public final void rule__XExpression__Group__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../com.jaspersoft.studio.data.sql.ui/src-gen/com/jaspersoft/studio/data/ui/contentassist/antlr/internal/InternalSqlParser.g:9661:1: ( rule__XExpression__Group__0__Impl rule__XExpression__Group__1 )\n // ../com.jaspersoft.studio.data.sql.ui/src-gen/com/jaspersoft/studio/data/ui/contentassist/antlr/internal/InternalSqlParser.g:9662:2: rule__XExpression__Group__0__Impl rule__XExpression__Group__1\n {\n pushFollow(FOLLOW_rule__XExpression__Group__0__Impl_in_rule__XExpression__Group__020155);\n rule__XExpression__Group__0__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_rule__XExpression__Group__1_in_rule__XExpression__Group__020158);\n rule__XExpression__Group__1();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "78516d271aa4f380b707dcc9bba1f5e8", "score": "0.77955323", "text": "public final void rule__XExpression___Group__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../com.jaspersoft.studio.data.sql.ui/src-gen/com/jaspersoft/studio/data/ui/contentassist/antlr/internal/InternalSqlParser.g:9981:1: ( rule__XExpression___Group__0__Impl rule__XExpression___Group__1 )\n // ../com.jaspersoft.studio.data.sql.ui/src-gen/com/jaspersoft/studio/data/ui/contentassist/antlr/internal/InternalSqlParser.g:9982:2: rule__XExpression___Group__0__Impl rule__XExpression___Group__1\n {\n pushFollow(FOLLOW_rule__XExpression___Group__0__Impl_in_rule__XExpression___Group__020781);\n rule__XExpression___Group__0__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_rule__XExpression___Group__1_in_rule__XExpression___Group__020784);\n rule__XExpression___Group__1();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "1b11d78099d9226431aebe524121f1d6", "score": "0.77204865", "text": "public final void rule__XRelationalExpression__Group_1_0_0__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.example.helloxbase.ui/src-gen/org/xtext/example/helloxbase/ui/contentassist/antlr/internal/InternalHelloXbase.g:4362:1: ( rule__XRelationalExpression__Group_1_0_0__0__Impl )\n // ../org.xtext.example.helloxbase.ui/src-gen/org/xtext/example/helloxbase/ui/contentassist/antlr/internal/InternalHelloXbase.g:4363:2: rule__XRelationalExpression__Group_1_0_0__0__Impl\n {\n pushFollow(FOLLOW_rule__XRelationalExpression__Group_1_0_0__0__Impl_in_rule__XRelationalExpression__Group_1_0_0__09214);\n rule__XRelationalExpression__Group_1_0_0__0__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "0186e8510e9ce592298d0b62ffa5356e", "score": "0.76997083", "text": "public final void rule__Expression__Group__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../com.jaspersoft.studio.data.sql.ui/src-gen/com/jaspersoft/studio/data/ui/contentassist/antlr/internal/InternalSqlParser.g:10495:1: ( rule__Expression__Group__0__Impl rule__Expression__Group__1 )\n // ../com.jaspersoft.studio.data.sql.ui/src-gen/com/jaspersoft/studio/data/ui/contentassist/antlr/internal/InternalSqlParser.g:10496:2: rule__Expression__Group__0__Impl rule__Expression__Group__1\n {\n pushFollow(FOLLOW_rule__Expression__Group__0__Impl_in_rule__Expression__Group__021790);\n rule__Expression__Group__0__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_rule__Expression__Group__1_in_rule__Expression__Group__021793);\n rule__Expression__Group__1();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "d3d09e46b0eaf81f2d694973bf01d21f", "score": "0.7680825", "text": "public final void rule__XRelationalExpression__Group_1_1_0__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.example.helloxbase.ui/src-gen/org/xtext/example/helloxbase/ui/contentassist/antlr/internal/InternalHelloXbase.g:4518:1: ( rule__XRelationalExpression__Group_1_1_0__0__Impl )\n // ../org.xtext.example.helloxbase.ui/src-gen/org/xtext/example/helloxbase/ui/contentassist/antlr/internal/InternalHelloXbase.g:4519:2: rule__XRelationalExpression__Group_1_1_0__0__Impl\n {\n pushFollow(FOLLOW_rule__XRelationalExpression__Group_1_1_0__0__Impl_in_rule__XRelationalExpression__Group_1_1_0__09518);\n rule__XRelationalExpression__Group_1_1_0__0__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "6bed88727e4331b2edeb17f681b71997", "score": "0.7636407", "text": "public final void rule__XExpression__Group_6__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../com.jaspersoft.studio.data.sql.ui/src-gen/com/jaspersoft/studio/data/ui/contentassist/antlr/internal/InternalSqlParser.g:9949:1: ( rule__XExpression__Group_6__1__Impl )\n // ../com.jaspersoft.studio.data.sql.ui/src-gen/com/jaspersoft/studio/data/ui/contentassist/antlr/internal/InternalSqlParser.g:9950:2: rule__XExpression__Group_6__1__Impl\n {\n pushFollow(FOLLOW_rule__XExpression__Group_6__1__Impl_in_rule__XExpression__Group_6__120720);\n rule__XExpression__Group_6__1__Impl();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "f9e504196a9cd457cc87644fd246ef7c", "score": "0.76039374", "text": "public final void rule__XExpression___Group_6__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../com.jaspersoft.studio.data.sql.ui/src-gen/com/jaspersoft/studio/data/ui/contentassist/antlr/internal/InternalSqlParser.g:10269:1: ( rule__XExpression___Group_6__1__Impl )\n // ../com.jaspersoft.studio.data.sql.ui/src-gen/com/jaspersoft/studio/data/ui/contentassist/antlr/internal/InternalSqlParser.g:10270:2: rule__XExpression___Group_6__1__Impl\n {\n pushFollow(FOLLOW_rule__XExpression___Group_6__1__Impl_in_rule__XExpression___Group_6__121346);\n rule__XExpression___Group_6__1__Impl();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "4c97a6d84162ad253f3864c17ffa3421", "score": "0.75836027", "text": "public final void rule__XExpression___Group__0__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../com.jaspersoft.studio.data.sql.ui/src-gen/com/jaspersoft/studio/data/ui/contentassist/antlr/internal/InternalSqlParser.g:9993:1: ( ( KEYWORD_15 ) )\n // ../com.jaspersoft.studio.data.sql.ui/src-gen/com/jaspersoft/studio/data/ui/contentassist/antlr/internal/InternalSqlParser.g:9994:1: ( KEYWORD_15 )\n {\n // ../com.jaspersoft.studio.data.sql.ui/src-gen/com/jaspersoft/studio/data/ui/contentassist/antlr/internal/InternalSqlParser.g:9994:1: ( KEYWORD_15 )\n // ../com.jaspersoft.studio.data.sql.ui/src-gen/com/jaspersoft/studio/data/ui/contentassist/antlr/internal/InternalSqlParser.g:9995:1: KEYWORD_15\n {\n before(grammarAccess.getXExpression_Access().getXKeyword_0()); \n match(input,KEYWORD_15,FOLLOW_KEYWORD_15_in_rule__XExpression___Group__0__Impl20812); \n after(grammarAccess.getXExpression_Access().getXKeyword_0()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "6db0a167a42489d8303bee85a6c72654", "score": "0.748963", "text": "public final void rule__XRelationalExpression__Group_1_0_0_0__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.example.helloxbase.ui/src-gen/org/xtext/example/helloxbase/ui/contentassist/antlr/internal/InternalHelloXbase.g:4423:1: ( rule__XRelationalExpression__Group_1_0_0_0__1__Impl )\n // ../org.xtext.example.helloxbase.ui/src-gen/org/xtext/example/helloxbase/ui/contentassist/antlr/internal/InternalHelloXbase.g:4424:2: rule__XRelationalExpression__Group_1_0_0_0__1__Impl\n {\n pushFollow(FOLLOW_rule__XRelationalExpression__Group_1_0_0_0__1__Impl_in_rule__XRelationalExpression__Group_1_0_0_0__19334);\n rule__XRelationalExpression__Group_1_0_0_0__1__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "d718a36da278bf464ea7c03224aec457", "score": "0.748788", "text": "public final void rule__XExpression___Group_6__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../com.jaspersoft.studio.data.sql.ui/src-gen/com/jaspersoft/studio/data/ui/contentassist/antlr/internal/InternalSqlParser.g:10238:1: ( rule__XExpression___Group_6__0__Impl rule__XExpression___Group_6__1 )\n // ../com.jaspersoft.studio.data.sql.ui/src-gen/com/jaspersoft/studio/data/ui/contentassist/antlr/internal/InternalSqlParser.g:10239:2: rule__XExpression___Group_6__0__Impl rule__XExpression___Group_6__1\n {\n pushFollow(FOLLOW_rule__XExpression___Group_6__0__Impl_in_rule__XExpression___Group_6__021284);\n rule__XExpression___Group_6__0__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_rule__XExpression___Group_6__1_in_rule__XExpression___Group_6__021287);\n rule__XExpression___Group_6__1();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "c962cad3ed9edc1311cfb2a412e5aa4c", "score": "0.7472835", "text": "public final void rule__ExpressionGroup__Group__0__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../com.jaspersoft.studio.data.sql.ui/src-gen/com/jaspersoft/studio/data/ui/contentassist/antlr/internal/InternalSqlParser.g:9513:1: ( ( () ) )\n // ../com.jaspersoft.studio.data.sql.ui/src-gen/com/jaspersoft/studio/data/ui/contentassist/antlr/internal/InternalSqlParser.g:9514:1: ( () )\n {\n // ../com.jaspersoft.studio.data.sql.ui/src-gen/com/jaspersoft/studio/data/ui/contentassist/antlr/internal/InternalSqlParser.g:9514:1: ( () )\n // ../com.jaspersoft.studio.data.sql.ui/src-gen/com/jaspersoft/studio/data/ui/contentassist/antlr/internal/InternalSqlParser.g:9515:1: ()\n {\n before(grammarAccess.getExpressionGroupAccess().getExprGroupAction_0()); \n // ../com.jaspersoft.studio.data.sql.ui/src-gen/com/jaspersoft/studio/data/ui/contentassist/antlr/internal/InternalSqlParser.g:9516:1: ()\n // ../com.jaspersoft.studio.data.sql.ui/src-gen/com/jaspersoft/studio/data/ui/contentassist/antlr/internal/InternalSqlParser.g:9518:1: \n {\n }\n\n after(grammarAccess.getExpressionGroupAccess().getExprGroupAction_0()); \n\n }\n\n\n }\n\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "c723b7c4ed2f56887714aeae33808ce2", "score": "0.74720263", "text": "public final void rule__XRelationalExpression__Group_1_0_0__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.httprouting.ui/src-gen/org/xtext/httprouting/ui/contentassist/antlr/internal/InternalRoute.g:6259:1: ( rule__XRelationalExpression__Group_1_0_0__0__Impl )\n // ../org.xtext.httprouting.ui/src-gen/org/xtext/httprouting/ui/contentassist/antlr/internal/InternalRoute.g:6260:2: rule__XRelationalExpression__Group_1_0_0__0__Impl\n {\n pushFollow(FOLLOW_rule__XRelationalExpression__Group_1_0_0__0__Impl_in_rule__XRelationalExpression__Group_1_0_0__013035);\n rule__XRelationalExpression__Group_1_0_0__0__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "3df12001385b1ca97f1617ac35330aba", "score": "0.74688405", "text": "public final void rule__XExpression__Group_6__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../com.jaspersoft.studio.data.sql.ui/src-gen/com/jaspersoft/studio/data/ui/contentassist/antlr/internal/InternalSqlParser.g:9918:1: ( rule__XExpression__Group_6__0__Impl rule__XExpression__Group_6__1 )\n // ../com.jaspersoft.studio.data.sql.ui/src-gen/com/jaspersoft/studio/data/ui/contentassist/antlr/internal/InternalSqlParser.g:9919:2: rule__XExpression__Group_6__0__Impl rule__XExpression__Group_6__1\n {\n pushFollow(FOLLOW_rule__XExpression__Group_6__0__Impl_in_rule__XExpression__Group_6__020658);\n rule__XExpression__Group_6__0__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_rule__XExpression__Group_6__1_in_rule__XExpression__Group_6__020661);\n rule__XExpression__Group_6__1();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "fcf053a652191f45302cbfe71d0e4535", "score": "0.74369687", "text": "public final void rule__XExpression___Group_6__0__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../com.jaspersoft.studio.data.sql.ui/src-gen/com/jaspersoft/studio/data/ui/contentassist/antlr/internal/InternalSqlParser.g:10250:1: ( ( KEYWORD_12 ) )\n // ../com.jaspersoft.studio.data.sql.ui/src-gen/com/jaspersoft/studio/data/ui/contentassist/antlr/internal/InternalSqlParser.g:10251:1: ( KEYWORD_12 )\n {\n // ../com.jaspersoft.studio.data.sql.ui/src-gen/com/jaspersoft/studio/data/ui/contentassist/antlr/internal/InternalSqlParser.g:10251:1: ( KEYWORD_12 )\n // ../com.jaspersoft.studio.data.sql.ui/src-gen/com/jaspersoft/studio/data/ui/contentassist/antlr/internal/InternalSqlParser.g:10252:1: KEYWORD_12\n {\n before(grammarAccess.getXExpression_Access().getVerticalLineKeyword_6_0()); \n match(input,KEYWORD_12,FOLLOW_KEYWORD_12_in_rule__XExpression___Group_6__0__Impl21315); \n after(grammarAccess.getXExpression_Access().getVerticalLineKeyword_6_0()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "efd655f6c5222664e182e53afe7ec94f", "score": "0.73945177", "text": "public final void rule__XExpressionParams__Group_1_1__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../com.jaspersoft.studio.data.sql.ui/src-gen/com/jaspersoft/studio/data/ui/contentassist/antlr/internal/InternalSqlParser.g:10463:1: ( rule__XExpressionParams__Group_1_1__1__Impl )\n // ../com.jaspersoft.studio.data.sql.ui/src-gen/com/jaspersoft/studio/data/ui/contentassist/antlr/internal/InternalSqlParser.g:10464:2: rule__XExpressionParams__Group_1_1__1__Impl\n {\n pushFollow(FOLLOW_rule__XExpressionParams__Group_1_1__1__Impl_in_rule__XExpressionParams__Group_1_1__121729);\n rule__XExpressionParams__Group_1_1__1__Impl();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "3cec628a74c766ff930735f0fe2737b9", "score": "0.7389477", "text": "public final void rule__XExpressionParams__Group__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../com.jaspersoft.studio.data.sql.ui/src-gen/com/jaspersoft/studio/data/ui/contentassist/antlr/internal/InternalSqlParser.g:10301:1: ( rule__XExpressionParams__Group__0__Impl rule__XExpressionParams__Group__1 )\n // ../com.jaspersoft.studio.data.sql.ui/src-gen/com/jaspersoft/studio/data/ui/contentassist/antlr/internal/InternalSqlParser.g:10302:2: rule__XExpressionParams__Group__0__Impl rule__XExpressionParams__Group__1\n {\n pushFollow(FOLLOW_rule__XExpressionParams__Group__0__Impl_in_rule__XExpressionParams__Group__021407);\n rule__XExpressionParams__Group__0__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_rule__XExpressionParams__Group__1_in_rule__XExpressionParams__Group__021410);\n rule__XExpressionParams__Group__1();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "fc6d5761d042f6dbe457bf0d212d75f6", "score": "0.73854953", "text": "public final void rule__XRelationalExpression__Group_1_1_0__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.httprouting.ui/src-gen/org/xtext/httprouting/ui/contentassist/antlr/internal/InternalRoute.g:6415:1: ( rule__XRelationalExpression__Group_1_1_0__0__Impl )\n // ../org.xtext.httprouting.ui/src-gen/org/xtext/httprouting/ui/contentassist/antlr/internal/InternalRoute.g:6416:2: rule__XRelationalExpression__Group_1_1_0__0__Impl\n {\n pushFollow(FOLLOW_rule__XRelationalExpression__Group_1_1_0__0__Impl_in_rule__XRelationalExpression__Group_1_1_0__013339);\n rule__XRelationalExpression__Group_1_1_0__0__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "25a0d944afa8e327b169a4166d6dfba6", "score": "0.7376089", "text": "public final void rule__XExpression__Group_6__0__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../com.jaspersoft.studio.data.sql.ui/src-gen/com/jaspersoft/studio/data/ui/contentassist/antlr/internal/InternalSqlParser.g:9930:1: ( ( KEYWORD_4 ) )\n // ../com.jaspersoft.studio.data.sql.ui/src-gen/com/jaspersoft/studio/data/ui/contentassist/antlr/internal/InternalSqlParser.g:9931:1: ( KEYWORD_4 )\n {\n // ../com.jaspersoft.studio.data.sql.ui/src-gen/com/jaspersoft/studio/data/ui/contentassist/antlr/internal/InternalSqlParser.g:9931:1: ( KEYWORD_4 )\n // ../com.jaspersoft.studio.data.sql.ui/src-gen/com/jaspersoft/studio/data/ui/contentassist/antlr/internal/InternalSqlParser.g:9932:1: KEYWORD_4\n {\n before(grammarAccess.getXExpressionAccess().getCommaKeyword_6_0()); \n match(input,KEYWORD_4,FOLLOW_KEYWORD_4_in_rule__XExpression__Group_6__0__Impl20689); \n after(grammarAccess.getXExpressionAccess().getCommaKeyword_6_0()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "6b5639639c395022d9cc0aa4ae297926", "score": "0.7372465", "text": "public final void rule__XExpression__Group__1__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../com.jaspersoft.studio.data.sql.ui/src-gen/com/jaspersoft/studio/data/ui/contentassist/antlr/internal/InternalSqlParser.g:9704:1: ( ( () ) )\n // ../com.jaspersoft.studio.data.sql.ui/src-gen/com/jaspersoft/studio/data/ui/contentassist/antlr/internal/InternalSqlParser.g:9705:1: ( () )\n {\n // ../com.jaspersoft.studio.data.sql.ui/src-gen/com/jaspersoft/studio/data/ui/contentassist/antlr/internal/InternalSqlParser.g:9705:1: ( () )\n // ../com.jaspersoft.studio.data.sql.ui/src-gen/com/jaspersoft/studio/data/ui/contentassist/antlr/internal/InternalSqlParser.g:9706:1: ()\n {\n before(grammarAccess.getXExpressionAccess().getXExprAction_1()); \n // ../com.jaspersoft.studio.data.sql.ui/src-gen/com/jaspersoft/studio/data/ui/contentassist/antlr/internal/InternalSqlParser.g:9707:1: ()\n // ../com.jaspersoft.studio.data.sql.ui/src-gen/com/jaspersoft/studio/data/ui/contentassist/antlr/internal/InternalSqlParser.g:9709:1: \n {\n }\n\n after(grammarAccess.getXExpressionAccess().getXExprAction_1()); \n\n }\n\n\n }\n\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "73705e727771b9ba24758c143b73c232", "score": "0.7364238", "text": "public final void rule__XExpression___Group__6__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../com.jaspersoft.studio.data.sql.ui/src-gen/com/jaspersoft/studio/data/ui/contentassist/antlr/internal/InternalSqlParser.g:10175:1: ( ( ( rule__XExpression___Group_6__0 )? ) )\n // ../com.jaspersoft.studio.data.sql.ui/src-gen/com/jaspersoft/studio/data/ui/contentassist/antlr/internal/InternalSqlParser.g:10176:1: ( ( rule__XExpression___Group_6__0 )? )\n {\n // ../com.jaspersoft.studio.data.sql.ui/src-gen/com/jaspersoft/studio/data/ui/contentassist/antlr/internal/InternalSqlParser.g:10176:1: ( ( rule__XExpression___Group_6__0 )? )\n // ../com.jaspersoft.studio.data.sql.ui/src-gen/com/jaspersoft/studio/data/ui/contentassist/antlr/internal/InternalSqlParser.g:10177:1: ( rule__XExpression___Group_6__0 )?\n {\n before(grammarAccess.getXExpression_Access().getGroup_6()); \n // ../com.jaspersoft.studio.data.sql.ui/src-gen/com/jaspersoft/studio/data/ui/contentassist/antlr/internal/InternalSqlParser.g:10178:1: ( rule__XExpression___Group_6__0 )?\n int alt101=2;\n int LA101_0 = input.LA(1);\n\n if ( (LA101_0==KEYWORD_12) ) {\n alt101=1;\n }\n switch (alt101) {\n case 1 :\n // ../com.jaspersoft.studio.data.sql.ui/src-gen/com/jaspersoft/studio/data/ui/contentassist/antlr/internal/InternalSqlParser.g:10178:2: rule__XExpression___Group_6__0\n {\n pushFollow(FOLLOW_rule__XExpression___Group_6__0_in_rule__XExpression___Group__6__Impl21178);\n rule__XExpression___Group_6__0();\n\n state._fsp--;\n\n\n }\n break;\n\n }\n\n after(grammarAccess.getXExpression_Access().getGroup_6()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "e8210b7618fffe84e803aa00cd4f9b21", "score": "0.7360689", "text": "public final void rule__XExpression___Group__1__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../com.jaspersoft.studio.data.sql.ui/src-gen/com/jaspersoft/studio/data/ui/contentassist/antlr/internal/InternalSqlParser.g:10024:1: ( ( () ) )\n // ../com.jaspersoft.studio.data.sql.ui/src-gen/com/jaspersoft/studio/data/ui/contentassist/antlr/internal/InternalSqlParser.g:10025:1: ( () )\n {\n // ../com.jaspersoft.studio.data.sql.ui/src-gen/com/jaspersoft/studio/data/ui/contentassist/antlr/internal/InternalSqlParser.g:10025:1: ( () )\n // ../com.jaspersoft.studio.data.sql.ui/src-gen/com/jaspersoft/studio/data/ui/contentassist/antlr/internal/InternalSqlParser.g:10026:1: ()\n {\n before(grammarAccess.getXExpression_Access().getXExprAction_1()); \n // ../com.jaspersoft.studio.data.sql.ui/src-gen/com/jaspersoft/studio/data/ui/contentassist/antlr/internal/InternalSqlParser.g:10027:1: ()\n // ../com.jaspersoft.studio.data.sql.ui/src-gen/com/jaspersoft/studio/data/ui/contentassist/antlr/internal/InternalSqlParser.g:10029:1: \n {\n }\n\n after(grammarAccess.getXExpression_Access().getXExprAction_1()); \n\n }\n\n\n }\n\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "185ceec27039023e201dbbabd5878a10", "score": "0.73584807", "text": "public final void rule__XRelationalExpression__Group_1_1_0_0__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.example.helloxbase.ui/src-gen/org/xtext/example/helloxbase/ui/contentassist/antlr/internal/InternalHelloXbase.g:4579:1: ( rule__XRelationalExpression__Group_1_1_0_0__1__Impl )\n // ../org.xtext.example.helloxbase.ui/src-gen/org/xtext/example/helloxbase/ui/contentassist/antlr/internal/InternalHelloXbase.g:4580:2: rule__XRelationalExpression__Group_1_1_0_0__1__Impl\n {\n pushFollow(FOLLOW_rule__XRelationalExpression__Group_1_1_0_0__1__Impl_in_rule__XRelationalExpression__Group_1_1_0_0__19638);\n rule__XRelationalExpression__Group_1_1_0_0__1__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "53a4755a348b9b00d2f665479b250110", "score": "0.7347225", "text": "public final void rule__Expression__Group__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../com.jaspersoft.studio.data.sql.ui/src-gen/com/jaspersoft/studio/data/ui/contentassist/antlr/internal/InternalSqlParser.g:10524:1: ( rule__Expression__Group__1__Impl )\n // ../com.jaspersoft.studio.data.sql.ui/src-gen/com/jaspersoft/studio/data/ui/contentassist/antlr/internal/InternalSqlParser.g:10525:2: rule__Expression__Group__1__Impl\n {\n pushFollow(FOLLOW_rule__Expression__Group__1__Impl_in_rule__Expression__Group__121850);\n rule__Expression__Group__1__Impl();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "c5540de2498dfac5f3b0b01562e3957b", "score": "0.73457325", "text": "public final void rule__XExpression__Group__6__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../com.jaspersoft.studio.data.sql.ui/src-gen/com/jaspersoft/studio/data/ui/contentassist/antlr/internal/InternalSqlParser.g:9855:1: ( ( ( rule__XExpression__Group_6__0 )? ) )\n // ../com.jaspersoft.studio.data.sql.ui/src-gen/com/jaspersoft/studio/data/ui/contentassist/antlr/internal/InternalSqlParser.g:9856:1: ( ( rule__XExpression__Group_6__0 )? )\n {\n // ../com.jaspersoft.studio.data.sql.ui/src-gen/com/jaspersoft/studio/data/ui/contentassist/antlr/internal/InternalSqlParser.g:9856:1: ( ( rule__XExpression__Group_6__0 )? )\n // ../com.jaspersoft.studio.data.sql.ui/src-gen/com/jaspersoft/studio/data/ui/contentassist/antlr/internal/InternalSqlParser.g:9857:1: ( rule__XExpression__Group_6__0 )?\n {\n before(grammarAccess.getXExpressionAccess().getGroup_6()); \n // ../com.jaspersoft.studio.data.sql.ui/src-gen/com/jaspersoft/studio/data/ui/contentassist/antlr/internal/InternalSqlParser.g:9858:1: ( rule__XExpression__Group_6__0 )?\n int alt100=2;\n int LA100_0 = input.LA(1);\n\n if ( (LA100_0==KEYWORD_4) ) {\n alt100=1;\n }\n switch (alt100) {\n case 1 :\n // ../com.jaspersoft.studio.data.sql.ui/src-gen/com/jaspersoft/studio/data/ui/contentassist/antlr/internal/InternalSqlParser.g:9858:2: rule__XExpression__Group_6__0\n {\n pushFollow(FOLLOW_rule__XExpression__Group_6__0_in_rule__XExpression__Group__6__Impl20552);\n rule__XExpression__Group_6__0();\n\n state._fsp--;\n\n\n }\n break;\n\n }\n\n after(grammarAccess.getXExpressionAccess().getGroup_6()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "0923a9c958eb9817b3b4737c5f97764c", "score": "0.7335334", "text": "public final void rule__XExpressionParams__Group__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../com.jaspersoft.studio.data.sql.ui/src-gen/com/jaspersoft/studio/data/ui/contentassist/antlr/internal/InternalSqlParser.g:10330:1: ( rule__XExpressionParams__Group__1__Impl )\n // ../com.jaspersoft.studio.data.sql.ui/src-gen/com/jaspersoft/studio/data/ui/contentassist/antlr/internal/InternalSqlParser.g:10331:2: rule__XExpressionParams__Group__1__Impl\n {\n pushFollow(FOLLOW_rule__XExpressionParams__Group__1__Impl_in_rule__XExpressionParams__Group__121466);\n rule__XExpressionParams__Group__1__Impl();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "40fc3c7c8103e5f0e4e67b92e5f25c81", "score": "0.7328749", "text": "public final void ruleXExpression() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../com.jaspersoft.studio.data.sql.ui/src-gen/com/jaspersoft/studio/data/ui/contentassist/antlr/internal/InternalSqlParser.g:1240:5: ( ( ( rule__XExpression__Group__0 ) ) )\n // ../com.jaspersoft.studio.data.sql.ui/src-gen/com/jaspersoft/studio/data/ui/contentassist/antlr/internal/InternalSqlParser.g:1241:1: ( ( rule__XExpression__Group__0 ) )\n {\n // ../com.jaspersoft.studio.data.sql.ui/src-gen/com/jaspersoft/studio/data/ui/contentassist/antlr/internal/InternalSqlParser.g:1241:1: ( ( rule__XExpression__Group__0 ) )\n // ../com.jaspersoft.studio.data.sql.ui/src-gen/com/jaspersoft/studio/data/ui/contentassist/antlr/internal/InternalSqlParser.g:1242:1: ( rule__XExpression__Group__0 )\n {\n before(grammarAccess.getXExpressionAccess().getGroup()); \n // ../com.jaspersoft.studio.data.sql.ui/src-gen/com/jaspersoft/studio/data/ui/contentassist/antlr/internal/InternalSqlParser.g:1243:1: ( rule__XExpression__Group__0 )\n // ../com.jaspersoft.studio.data.sql.ui/src-gen/com/jaspersoft/studio/data/ui/contentassist/antlr/internal/InternalSqlParser.g:1243:2: rule__XExpression__Group__0\n {\n pushFollow(FOLLOW_rule__XExpression__Group__0_in_ruleXExpression2461);\n rule__XExpression__Group__0();\n\n state._fsp--;\n\n\n }\n\n after(grammarAccess.getXExpressionAccess().getGroup()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "22cd8b9eda400a4994b53917e0c2d240", "score": "0.7320896", "text": "public final void rule__XExpressionParams__Group_1__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../com.jaspersoft.studio.data.sql.ui/src-gen/com/jaspersoft/studio/data/ui/contentassist/antlr/internal/InternalSqlParser.g:10393:1: ( rule__XExpressionParams__Group_1__1__Impl )\n // ../com.jaspersoft.studio.data.sql.ui/src-gen/com/jaspersoft/studio/data/ui/contentassist/antlr/internal/InternalSqlParser.g:10394:2: rule__XExpressionParams__Group_1__1__Impl\n {\n pushFollow(FOLLOW_rule__XExpressionParams__Group_1__1__Impl_in_rule__XExpressionParams__Group_1__121589);\n rule__XExpressionParams__Group_1__1__Impl();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "bd14eafeb526ba1aeed6a8356eef5054", "score": "0.7314408", "text": "public final void ruleXExpression_() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../com.jaspersoft.studio.data.sql.ui/src-gen/com/jaspersoft/studio/data/ui/contentassist/antlr/internal/InternalSqlParser.g:1268:5: ( ( ( rule__XExpression___Group__0 ) ) )\n // ../com.jaspersoft.studio.data.sql.ui/src-gen/com/jaspersoft/studio/data/ui/contentassist/antlr/internal/InternalSqlParser.g:1269:1: ( ( rule__XExpression___Group__0 ) )\n {\n // ../com.jaspersoft.studio.data.sql.ui/src-gen/com/jaspersoft/studio/data/ui/contentassist/antlr/internal/InternalSqlParser.g:1269:1: ( ( rule__XExpression___Group__0 ) )\n // ../com.jaspersoft.studio.data.sql.ui/src-gen/com/jaspersoft/studio/data/ui/contentassist/antlr/internal/InternalSqlParser.g:1270:1: ( rule__XExpression___Group__0 )\n {\n before(grammarAccess.getXExpression_Access().getGroup()); \n // ../com.jaspersoft.studio.data.sql.ui/src-gen/com/jaspersoft/studio/data/ui/contentassist/antlr/internal/InternalSqlParser.g:1271:1: ( rule__XExpression___Group__0 )\n // ../com.jaspersoft.studio.data.sql.ui/src-gen/com/jaspersoft/studio/data/ui/contentassist/antlr/internal/InternalSqlParser.g:1271:2: rule__XExpression___Group__0\n {\n pushFollow(FOLLOW_rule__XExpression___Group__0_in_ruleXExpression_2525);\n rule__XExpression___Group__0();\n\n state._fsp--;\n\n\n }\n\n after(grammarAccess.getXExpression_Access().getGroup()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "a602835f489bf4f7c1dba1f82c9ba891", "score": "0.7309252", "text": "public final void rule__XRelationalExpression__Group_1_0__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.example.helloxbase.ui/src-gen/org/xtext/example/helloxbase/ui/contentassist/antlr/internal/InternalHelloXbase.g:4330:1: ( rule__XRelationalExpression__Group_1_0__1__Impl )\n // ../org.xtext.example.helloxbase.ui/src-gen/org/xtext/example/helloxbase/ui/contentassist/antlr/internal/InternalHelloXbase.g:4331:2: rule__XRelationalExpression__Group_1_0__1__Impl\n {\n pushFollow(FOLLOW_rule__XRelationalExpression__Group_1_0__1__Impl_in_rule__XRelationalExpression__Group_1_0__19153);\n rule__XRelationalExpression__Group_1_0__1__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "f144b303cf3fd0ee22ce098b0fac4e12", "score": "0.73031783", "text": "public final void rule__XExpression___Group__2__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../com.jaspersoft.studio.data.sql.ui/src-gen/com/jaspersoft/studio/data/ui/contentassist/antlr/internal/InternalSqlParser.g:10055:1: ( ( KEYWORD_11 ) )\n // ../com.jaspersoft.studio.data.sql.ui/src-gen/com/jaspersoft/studio/data/ui/contentassist/antlr/internal/InternalSqlParser.g:10056:1: ( KEYWORD_11 )\n {\n // ../com.jaspersoft.studio.data.sql.ui/src-gen/com/jaspersoft/studio/data/ui/contentassist/antlr/internal/InternalSqlParser.g:10056:1: ( KEYWORD_11 )\n // ../com.jaspersoft.studio.data.sql.ui/src-gen/com/jaspersoft/studio/data/ui/contentassist/antlr/internal/InternalSqlParser.g:10057:1: KEYWORD_11\n {\n before(grammarAccess.getXExpression_Access().getLeftCurlyBracketKeyword_2()); \n match(input,KEYWORD_11,FOLLOW_KEYWORD_11_in_rule__XExpression___Group__2__Impl20935); \n after(grammarAccess.getXExpression_Access().getLeftCurlyBracketKeyword_2()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "1173ebf4515f188c4617c645c666d082", "score": "0.7300758", "text": "public final void rule__XOrExpression__Group_1_0__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.httprouting.ui/src-gen/org/xtext/httprouting/ui/contentassist/antlr/internal/InternalRoute.g:5614:1: ( rule__XOrExpression__Group_1_0__0__Impl )\n // ../org.xtext.httprouting.ui/src-gen/org/xtext/httprouting/ui/contentassist/antlr/internal/InternalRoute.g:5615:2: rule__XOrExpression__Group_1_0__0__Impl\n {\n pushFollow(FOLLOW_rule__XOrExpression__Group_1_0__0__Impl_in_rule__XOrExpression__Group_1_0__011766);\n rule__XOrExpression__Group_1_0__0__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "7e664ba5913f83f3c468344223ea5fed", "score": "0.7286683", "text": "public final void rule__XOrExpression__Group__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.httprouting.ui/src-gen/org/xtext/httprouting/ui/contentassist/antlr/internal/InternalRoute.g:5521:1: ( rule__XOrExpression__Group__1__Impl )\n // ../org.xtext.httprouting.ui/src-gen/org/xtext/httprouting/ui/contentassist/antlr/internal/InternalRoute.g:5522:2: rule__XOrExpression__Group__1__Impl\n {\n pushFollow(FOLLOW_rule__XOrExpression__Group__1__Impl_in_rule__XOrExpression__Group__111583);\n rule__XOrExpression__Group__1__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "3181b417264bfc0c01ba812625035d6d", "score": "0.72785425", "text": "public final void rule__XOrExpression__Group_1_0__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.example.helloxbase.ui/src-gen/org/xtext/example/helloxbase/ui/contentassist/antlr/internal/InternalHelloXbase.g:3717:1: ( rule__XOrExpression__Group_1_0__0__Impl )\n // ../org.xtext.example.helloxbase.ui/src-gen/org/xtext/example/helloxbase/ui/contentassist/antlr/internal/InternalHelloXbase.g:3718:2: rule__XOrExpression__Group_1_0__0__Impl\n {\n pushFollow(FOLLOW_rule__XOrExpression__Group_1_0__0__Impl_in_rule__XOrExpression__Group_1_0__07945);\n rule__XOrExpression__Group_1_0__0__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "54db7f35b46ab7c1a49a900c1dec9b17", "score": "0.72737515", "text": "public final void rule__Operand__Group_1_0_0__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../com.jaspersoft.studio.data.sql.ui/src-gen/com/jaspersoft/studio/data/ui/contentassist/antlr/internal/InternalSqlParser.g:11465:1: ( rule__Operand__Group_1_0_0__1__Impl )\n // ../com.jaspersoft.studio.data.sql.ui/src-gen/com/jaspersoft/studio/data/ui/contentassist/antlr/internal/InternalSqlParser.g:11466:2: rule__Operand__Group_1_0_0__1__Impl\n {\n pushFollow(FOLLOW_rule__Operand__Group_1_0_0__1__Impl_in_rule__Operand__Group_1_0_0__123705);\n rule__Operand__Group_1_0_0__1__Impl();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "1c49eb4f1f9442982b413f46f03c3451", "score": "0.7255944", "text": "public final void rule__XExpression__Group__2__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../com.jaspersoft.studio.data.sql.ui/src-gen/com/jaspersoft/studio/data/ui/contentassist/antlr/internal/InternalSqlParser.g:9735:1: ( ( KEYWORD_11 ) )\n // ../com.jaspersoft.studio.data.sql.ui/src-gen/com/jaspersoft/studio/data/ui/contentassist/antlr/internal/InternalSqlParser.g:9736:1: ( KEYWORD_11 )\n {\n // ../com.jaspersoft.studio.data.sql.ui/src-gen/com/jaspersoft/studio/data/ui/contentassist/antlr/internal/InternalSqlParser.g:9736:1: ( KEYWORD_11 )\n // ../com.jaspersoft.studio.data.sql.ui/src-gen/com/jaspersoft/studio/data/ui/contentassist/antlr/internal/InternalSqlParser.g:9737:1: KEYWORD_11\n {\n before(grammarAccess.getXExpressionAccess().getLeftCurlyBracketKeyword_2()); \n match(input,KEYWORD_11,FOLLOW_KEYWORD_11_in_rule__XExpression__Group__2__Impl20309); \n after(grammarAccess.getXExpressionAccess().getLeftCurlyBracketKeyword_2()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "03f4f3541c123c4b5ba295715259559f", "score": "0.7254189", "text": "public final void rule__XExpression__Group__7() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../com.jaspersoft.studio.data.sql.ui/src-gen/com/jaspersoft/studio/data/ui/contentassist/antlr/internal/InternalSqlParser.g:9872:1: ( rule__XExpression__Group__7__Impl )\n // ../com.jaspersoft.studio.data.sql.ui/src-gen/com/jaspersoft/studio/data/ui/contentassist/antlr/internal/InternalSqlParser.g:9873:2: rule__XExpression__Group__7__Impl\n {\n pushFollow(FOLLOW_rule__XExpression__Group__7__Impl_in_rule__XExpression__Group__720583);\n rule__XExpression__Group__7__Impl();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "4d86f82a52490aa5aea13b17271ee92e", "score": "0.72343713", "text": "public final void rule__Expression__Group__0() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalPascal.g:4148:1: ( rule__Expression__Group__0__Impl rule__Expression__Group__1 )\r\n // InternalPascal.g:4149:2: rule__Expression__Group__0__Impl rule__Expression__Group__1\r\n {\r\n pushFollow(FOLLOW_20);\r\n rule__Expression__Group__0__Impl();\r\n\r\n state._fsp--;\r\n\r\n pushFollow(FOLLOW_2);\r\n rule__Expression__Group__1();\r\n\r\n state._fsp--;\r\n\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 finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "470c6bce9d1e0d0850f3d89f94509b59", "score": "0.7230625", "text": "public final void rule__XRelationalExpression__Group_1_0_0_0__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.httprouting.ui/src-gen/org/xtext/httprouting/ui/contentassist/antlr/internal/InternalRoute.g:6320:1: ( rule__XRelationalExpression__Group_1_0_0_0__1__Impl )\n // ../org.xtext.httprouting.ui/src-gen/org/xtext/httprouting/ui/contentassist/antlr/internal/InternalRoute.g:6321:2: rule__XRelationalExpression__Group_1_0_0_0__1__Impl\n {\n pushFollow(FOLLOW_rule__XRelationalExpression__Group_1_0_0_0__1__Impl_in_rule__XRelationalExpression__Group_1_0_0_0__113155);\n rule__XRelationalExpression__Group_1_0_0_0__1__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "9690daf80f085887af2f45c6793a1fce", "score": "0.7221532", "text": "public final void rule__XOrExpression__Group__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.example.helloxbase.ui/src-gen/org/xtext/example/helloxbase/ui/contentassist/antlr/internal/InternalHelloXbase.g:3624:1: ( rule__XOrExpression__Group__1__Impl )\n // ../org.xtext.example.helloxbase.ui/src-gen/org/xtext/example/helloxbase/ui/contentassist/antlr/internal/InternalHelloXbase.g:3625:2: rule__XOrExpression__Group__1__Impl\n {\n pushFollow(FOLLOW_rule__XOrExpression__Group__1__Impl_in_rule__XOrExpression__Group__17762);\n rule__XOrExpression__Group__1__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "f8b7a66499a113801b19e4379d4d7b7e", "score": "0.72117364", "text": "public final void rule__XOrExpression__Group_1__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.httprouting.ui/src-gen/org/xtext/httprouting/ui/contentassist/antlr/internal/InternalRoute.g:5582:1: ( rule__XOrExpression__Group_1__1__Impl )\n // ../org.xtext.httprouting.ui/src-gen/org/xtext/httprouting/ui/contentassist/antlr/internal/InternalRoute.g:5583:2: rule__XOrExpression__Group_1__1__Impl\n {\n pushFollow(FOLLOW_rule__XOrExpression__Group_1__1__Impl_in_rule__XOrExpression__Group_1__111705);\n rule__XOrExpression__Group_1__1__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "5e66a9be693e233288b023caac3cf657", "score": "0.72110367", "text": "public final void rule__XOrExpression__Group_1_0_0__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.example.helloxbase.ui/src-gen/org/xtext/example/helloxbase/ui/contentassist/antlr/internal/InternalHelloXbase.g:3778:1: ( rule__XOrExpression__Group_1_0_0__1__Impl )\n // ../org.xtext.example.helloxbase.ui/src-gen/org/xtext/example/helloxbase/ui/contentassist/antlr/internal/InternalHelloXbase.g:3779:2: rule__XOrExpression__Group_1_0_0__1__Impl\n {\n pushFollow(FOLLOW_rule__XOrExpression__Group_1_0_0__1__Impl_in_rule__XOrExpression__Group_1_0_0__18065);\n rule__XOrExpression__Group_1_0_0__1__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "ed69d310a3c20926934c359b6a3d503b", "score": "0.7208155", "text": "public final void rule__XOrExpression__Group_1_0_0__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.httprouting.ui/src-gen/org/xtext/httprouting/ui/contentassist/antlr/internal/InternalRoute.g:5675:1: ( rule__XOrExpression__Group_1_0_0__1__Impl )\n // ../org.xtext.httprouting.ui/src-gen/org/xtext/httprouting/ui/contentassist/antlr/internal/InternalRoute.g:5676:2: rule__XOrExpression__Group_1_0_0__1__Impl\n {\n pushFollow(FOLLOW_rule__XOrExpression__Group_1_0_0__1__Impl_in_rule__XOrExpression__Group_1_0_0__111886);\n rule__XOrExpression__Group_1_0_0__1__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "fa356a080788d74ff50303e8ec427d88", "score": "0.71959424", "text": "public final void rule__XExpression___Group__7() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../com.jaspersoft.studio.data.sql.ui/src-gen/com/jaspersoft/studio/data/ui/contentassist/antlr/internal/InternalSqlParser.g:10192:1: ( rule__XExpression___Group__7__Impl )\n // ../com.jaspersoft.studio.data.sql.ui/src-gen/com/jaspersoft/studio/data/ui/contentassist/antlr/internal/InternalSqlParser.g:10193:2: rule__XExpression___Group__7__Impl\n {\n pushFollow(FOLLOW_rule__XExpression___Group__7__Impl_in_rule__XExpression___Group__721209);\n rule__XExpression___Group__7__Impl();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "e4e26d497015b45cfe365fc331610796", "score": "0.71935505", "text": "public final void rule__XRelationalExpression__Group__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.example.helloxbase.ui/src-gen/org/xtext/example/helloxbase/ui/contentassist/antlr/internal/InternalHelloXbase.g:4240:1: ( rule__XRelationalExpression__Group__0__Impl rule__XRelationalExpression__Group__1 )\n // ../org.xtext.example.helloxbase.ui/src-gen/org/xtext/example/helloxbase/ui/contentassist/antlr/internal/InternalHelloXbase.g:4241:2: rule__XRelationalExpression__Group__0__Impl rule__XRelationalExpression__Group__1\n {\n pushFollow(FOLLOW_rule__XRelationalExpression__Group__0__Impl_in_rule__XRelationalExpression__Group__08972);\n rule__XRelationalExpression__Group__0__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n pushFollow(FOLLOW_rule__XRelationalExpression__Group__1_in_rule__XRelationalExpression__Group__08975);\n rule__XRelationalExpression__Group__1();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "896f313677bbddaf39df6fcf8ffc0ed3", "score": "0.7187342", "text": "public final void rule__XExpression__Group__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../com.jaspersoft.studio.data.sql.ui/src-gen/com/jaspersoft/studio/data/ui/contentassist/antlr/internal/InternalSqlParser.g:9692:1: ( rule__XExpression__Group__1__Impl rule__XExpression__Group__2 )\n // ../com.jaspersoft.studio.data.sql.ui/src-gen/com/jaspersoft/studio/data/ui/contentassist/antlr/internal/InternalSqlParser.g:9693:2: rule__XExpression__Group__1__Impl rule__XExpression__Group__2\n {\n pushFollow(FOLLOW_rule__XExpression__Group__1__Impl_in_rule__XExpression__Group__120217);\n rule__XExpression__Group__1__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_rule__XExpression__Group__2_in_rule__XExpression__Group__120220);\n rule__XExpression__Group__2();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "16579c5635cf45636348359aa6394e24", "score": "0.71796584", "text": "public final void rule__XExpressionParams__Group__1__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../com.jaspersoft.studio.data.sql.ui/src-gen/com/jaspersoft/studio/data/ui/contentassist/antlr/internal/InternalSqlParser.g:10341:1: ( ( ( rule__XExpressionParams__Group_1__0 )? ) )\n // ../com.jaspersoft.studio.data.sql.ui/src-gen/com/jaspersoft/studio/data/ui/contentassist/antlr/internal/InternalSqlParser.g:10342:1: ( ( rule__XExpressionParams__Group_1__0 )? )\n {\n // ../com.jaspersoft.studio.data.sql.ui/src-gen/com/jaspersoft/studio/data/ui/contentassist/antlr/internal/InternalSqlParser.g:10342:1: ( ( rule__XExpressionParams__Group_1__0 )? )\n // ../com.jaspersoft.studio.data.sql.ui/src-gen/com/jaspersoft/studio/data/ui/contentassist/antlr/internal/InternalSqlParser.g:10343:1: ( rule__XExpressionParams__Group_1__0 )?\n {\n before(grammarAccess.getXExpressionParamsAccess().getGroup_1()); \n // ../com.jaspersoft.studio.data.sql.ui/src-gen/com/jaspersoft/studio/data/ui/contentassist/antlr/internal/InternalSqlParser.g:10344:1: ( rule__XExpressionParams__Group_1__0 )?\n int alt102=2;\n int LA102_0 = input.LA(1);\n\n if ( (LA102_0==KEYWORD_4) ) {\n alt102=1;\n }\n switch (alt102) {\n case 1 :\n // ../com.jaspersoft.studio.data.sql.ui/src-gen/com/jaspersoft/studio/data/ui/contentassist/antlr/internal/InternalSqlParser.g:10344:2: rule__XExpressionParams__Group_1__0\n {\n pushFollow(FOLLOW_rule__XExpressionParams__Group_1__0_in_rule__XExpressionParams__Group__1__Impl21493);\n rule__XExpressionParams__Group_1__0();\n\n state._fsp--;\n\n\n }\n break;\n\n }\n\n after(grammarAccess.getXExpressionParamsAccess().getGroup_1()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "cd59444cbe22eefee8accad53fd9774e", "score": "0.71737707", "text": "public final void rule__ExpressionGroup__Group__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../com.jaspersoft.studio.data.sql.ui/src-gen/com/jaspersoft/studio/data/ui/contentassist/antlr/internal/InternalSqlParser.g:9501:1: ( rule__ExpressionGroup__Group__0__Impl rule__ExpressionGroup__Group__1 )\n // ../com.jaspersoft.studio.data.sql.ui/src-gen/com/jaspersoft/studio/data/ui/contentassist/antlr/internal/InternalSqlParser.g:9502:2: rule__ExpressionGroup__Group__0__Impl rule__ExpressionGroup__Group__1\n {\n pushFollow(FOLLOW_rule__ExpressionGroup__Group__0__Impl_in_rule__ExpressionGroup__Group__019842);\n rule__ExpressionGroup__Group__0__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_rule__ExpressionGroup__Group__1_in_rule__ExpressionGroup__Group__019845);\n rule__ExpressionGroup__Group__1();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "d4175284caade9503b662e01ecd03f5f", "score": "0.71735096", "text": "public final void rule__XExpression___Group__4__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../com.jaspersoft.studio.data.sql.ui/src-gen/com/jaspersoft/studio/data/ui/contentassist/antlr/internal/InternalSqlParser.g:10115:1: ( ( KEYWORD_12 ) )\n // ../com.jaspersoft.studio.data.sql.ui/src-gen/com/jaspersoft/studio/data/ui/contentassist/antlr/internal/InternalSqlParser.g:10116:1: ( KEYWORD_12 )\n {\n // ../com.jaspersoft.studio.data.sql.ui/src-gen/com/jaspersoft/studio/data/ui/contentassist/antlr/internal/InternalSqlParser.g:10116:1: ( KEYWORD_12 )\n // ../com.jaspersoft.studio.data.sql.ui/src-gen/com/jaspersoft/studio/data/ui/contentassist/antlr/internal/InternalSqlParser.g:10117:1: KEYWORD_12\n {\n before(grammarAccess.getXExpression_Access().getVerticalLineKeyword_4()); \n match(input,KEYWORD_12,FOLLOW_KEYWORD_12_in_rule__XExpression___Group__4__Impl21057); \n after(grammarAccess.getXExpression_Access().getVerticalLineKeyword_4()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "cd74d61595ad5d851f900e6cd27e94f0", "score": "0.7172833", "text": "public final void rule__XRelationalExpression__Group_1_0__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.httprouting.ui/src-gen/org/xtext/httprouting/ui/contentassist/antlr/internal/InternalRoute.g:6227:1: ( rule__XRelationalExpression__Group_1_0__1__Impl )\n // ../org.xtext.httprouting.ui/src-gen/org/xtext/httprouting/ui/contentassist/antlr/internal/InternalRoute.g:6228:2: rule__XRelationalExpression__Group_1_0__1__Impl\n {\n pushFollow(FOLLOW_rule__XRelationalExpression__Group_1_0__1__Impl_in_rule__XRelationalExpression__Group_1_0__112974);\n rule__XRelationalExpression__Group_1_0__1__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "ad29d46827e60bd3c089aa285218ff95", "score": "0.71673113", "text": "public final void rule__XRelationalExpression__Group_1_0__0__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.example.helloxbase.ui/src-gen/org/xtext/example/helloxbase/ui/contentassist/antlr/internal/InternalHelloXbase.g:4313:1: ( ( ( rule__XRelationalExpression__Group_1_0_0__0 ) ) )\n // ../org.xtext.example.helloxbase.ui/src-gen/org/xtext/example/helloxbase/ui/contentassist/antlr/internal/InternalHelloXbase.g:4314:1: ( ( rule__XRelationalExpression__Group_1_0_0__0 ) )\n {\n // ../org.xtext.example.helloxbase.ui/src-gen/org/xtext/example/helloxbase/ui/contentassist/antlr/internal/InternalHelloXbase.g:4314:1: ( ( rule__XRelationalExpression__Group_1_0_0__0 ) )\n // ../org.xtext.example.helloxbase.ui/src-gen/org/xtext/example/helloxbase/ui/contentassist/antlr/internal/InternalHelloXbase.g:4315:1: ( rule__XRelationalExpression__Group_1_0_0__0 )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXRelationalExpressionAccess().getGroup_1_0_0()); \n }\n // ../org.xtext.example.helloxbase.ui/src-gen/org/xtext/example/helloxbase/ui/contentassist/antlr/internal/InternalHelloXbase.g:4316:1: ( rule__XRelationalExpression__Group_1_0_0__0 )\n // ../org.xtext.example.helloxbase.ui/src-gen/org/xtext/example/helloxbase/ui/contentassist/antlr/internal/InternalHelloXbase.g:4316:2: rule__XRelationalExpression__Group_1_0_0__0\n {\n pushFollow(FOLLOW_rule__XRelationalExpression__Group_1_0_0__0_in_rule__XRelationalExpression__Group_1_0__0__Impl9123);\n rule__XRelationalExpression__Group_1_0_0__0();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXRelationalExpressionAccess().getGroup_1_0_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "f00816f10e012b13abfa09135034c679", "score": "0.71611303", "text": "public final void rule__XRelationalExpression__Group_1_0__0__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.httprouting.ui/src-gen/org/xtext/httprouting/ui/contentassist/antlr/internal/InternalRoute.g:6210:1: ( ( ( rule__XRelationalExpression__Group_1_0_0__0 ) ) )\n // ../org.xtext.httprouting.ui/src-gen/org/xtext/httprouting/ui/contentassist/antlr/internal/InternalRoute.g:6211:1: ( ( rule__XRelationalExpression__Group_1_0_0__0 ) )\n {\n // ../org.xtext.httprouting.ui/src-gen/org/xtext/httprouting/ui/contentassist/antlr/internal/InternalRoute.g:6211:1: ( ( rule__XRelationalExpression__Group_1_0_0__0 ) )\n // ../org.xtext.httprouting.ui/src-gen/org/xtext/httprouting/ui/contentassist/antlr/internal/InternalRoute.g:6212:1: ( rule__XRelationalExpression__Group_1_0_0__0 )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXRelationalExpressionAccess().getGroup_1_0_0()); \n }\n // ../org.xtext.httprouting.ui/src-gen/org/xtext/httprouting/ui/contentassist/antlr/internal/InternalRoute.g:6213:1: ( rule__XRelationalExpression__Group_1_0_0__0 )\n // ../org.xtext.httprouting.ui/src-gen/org/xtext/httprouting/ui/contentassist/antlr/internal/InternalRoute.g:6213:2: rule__XRelationalExpression__Group_1_0_0__0\n {\n pushFollow(FOLLOW_rule__XRelationalExpression__Group_1_0_0__0_in_rule__XRelationalExpression__Group_1_0__0__Impl12944);\n rule__XRelationalExpression__Group_1_0_0__0();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXRelationalExpressionAccess().getGroup_1_0_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "e13af82c31730a642c8b7171cee6492e", "score": "0.71556926", "text": "public final void rule__Operand__Group__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../com.jaspersoft.studio.data.sql.ui/src-gen/com/jaspersoft/studio/data/ui/contentassist/antlr/internal/InternalSqlParser.g:11312:1: ( rule__Operand__Group__0__Impl rule__Operand__Group__1 )\n // ../com.jaspersoft.studio.data.sql.ui/src-gen/com/jaspersoft/studio/data/ui/contentassist/antlr/internal/InternalSqlParser.g:11313:2: rule__Operand__Group__0__Impl rule__Operand__Group__1\n {\n pushFollow(FOLLOW_rule__Operand__Group__0__Impl_in_rule__Operand__Group__023401);\n rule__Operand__Group__0__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_rule__Operand__Group__1_in_rule__Operand__Group__023404);\n rule__Operand__Group__1();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "4f034340795c875d3e68181d4f22f8e0", "score": "0.7143213", "text": "public final void rule__XRelationalExpression__Group_1_1__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.example.helloxbase.ui/src-gen/org/xtext/example/helloxbase/ui/contentassist/antlr/internal/InternalHelloXbase.g:4486:1: ( rule__XRelationalExpression__Group_1_1__1__Impl )\n // ../org.xtext.example.helloxbase.ui/src-gen/org/xtext/example/helloxbase/ui/contentassist/antlr/internal/InternalHelloXbase.g:4487:2: rule__XRelationalExpression__Group_1_1__1__Impl\n {\n pushFollow(FOLLOW_rule__XRelationalExpression__Group_1_1__1__Impl_in_rule__XRelationalExpression__Group_1_1__19457);\n rule__XRelationalExpression__Group_1_1__1__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "86a1d50b1481ebe1fbe2bf2f27fd5904", "score": "0.7141671", "text": "public final void rule__XRelationalExpression__Group__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.example.helloxbase.ui/src-gen/org/xtext/example/helloxbase/ui/contentassist/antlr/internal/InternalHelloXbase.g:4269:1: ( rule__XRelationalExpression__Group__1__Impl )\n // ../org.xtext.example.helloxbase.ui/src-gen/org/xtext/example/helloxbase/ui/contentassist/antlr/internal/InternalHelloXbase.g:4270:2: rule__XRelationalExpression__Group__1__Impl\n {\n pushFollow(FOLLOW_rule__XRelationalExpression__Group__1__Impl_in_rule__XRelationalExpression__Group__19031);\n rule__XRelationalExpression__Group__1__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "3a84db3ff6227bfc892c19843add7d3c", "score": "0.714111", "text": "public final void rule__XExpressionParams__Group_1_1__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../com.jaspersoft.studio.data.sql.ui/src-gen/com/jaspersoft/studio/data/ui/contentassist/antlr/internal/InternalSqlParser.g:10432:1: ( rule__XExpressionParams__Group_1_1__0__Impl rule__XExpressionParams__Group_1_1__1 )\n // ../com.jaspersoft.studio.data.sql.ui/src-gen/com/jaspersoft/studio/data/ui/contentassist/antlr/internal/InternalSqlParser.g:10433:2: rule__XExpressionParams__Group_1_1__0__Impl rule__XExpressionParams__Group_1_1__1\n {\n pushFollow(FOLLOW_rule__XExpressionParams__Group_1_1__0__Impl_in_rule__XExpressionParams__Group_1_1__021667);\n rule__XExpressionParams__Group_1_1__0__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_rule__XExpressionParams__Group_1_1__1_in_rule__XExpressionParams__Group_1_1__021670);\n rule__XExpressionParams__Group_1_1__1();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "a264b661adcc6caf6cf211ea9eed4066", "score": "0.71387047", "text": "public final void rule__XRelationalExpression__Group_1_1_0_0__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.httprouting.ui/src-gen/org/xtext/httprouting/ui/contentassist/antlr/internal/InternalRoute.g:6476:1: ( rule__XRelationalExpression__Group_1_1_0_0__1__Impl )\n // ../org.xtext.httprouting.ui/src-gen/org/xtext/httprouting/ui/contentassist/antlr/internal/InternalRoute.g:6477:2: rule__XRelationalExpression__Group_1_1_0_0__1__Impl\n {\n pushFollow(FOLLOW_rule__XRelationalExpression__Group_1_1_0_0__1__Impl_in_rule__XRelationalExpression__Group_1_1_0_0__113459);\n rule__XRelationalExpression__Group_1_1_0_0__1__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "e0741c2dc4c55e148e1590ecaa7f4b7d", "score": "0.7136459", "text": "public final void rule__XOrExpression__Group_1__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.example.helloxbase.ui/src-gen/org/xtext/example/helloxbase/ui/contentassist/antlr/internal/InternalHelloXbase.g:3685:1: ( rule__XOrExpression__Group_1__1__Impl )\n // ../org.xtext.example.helloxbase.ui/src-gen/org/xtext/example/helloxbase/ui/contentassist/antlr/internal/InternalHelloXbase.g:3686:2: rule__XOrExpression__Group_1__1__Impl\n {\n pushFollow(FOLLOW_rule__XOrExpression__Group_1__1__Impl_in_rule__XOrExpression__Group_1__17884);\n rule__XOrExpression__Group_1__1__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "8d4f3e86635ed94de113075738fd5364", "score": "0.7127151", "text": "public final void rule__XRelationalExpression__Group_1_0_0__0__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.example.helloxbase.ui/src-gen/org/xtext/example/helloxbase/ui/contentassist/antlr/internal/InternalHelloXbase.g:4373:1: ( ( ( rule__XRelationalExpression__Group_1_0_0_0__0 ) ) )\n // ../org.xtext.example.helloxbase.ui/src-gen/org/xtext/example/helloxbase/ui/contentassist/antlr/internal/InternalHelloXbase.g:4374:1: ( ( rule__XRelationalExpression__Group_1_0_0_0__0 ) )\n {\n // ../org.xtext.example.helloxbase.ui/src-gen/org/xtext/example/helloxbase/ui/contentassist/antlr/internal/InternalHelloXbase.g:4374:1: ( ( rule__XRelationalExpression__Group_1_0_0_0__0 ) )\n // ../org.xtext.example.helloxbase.ui/src-gen/org/xtext/example/helloxbase/ui/contentassist/antlr/internal/InternalHelloXbase.g:4375:1: ( rule__XRelationalExpression__Group_1_0_0_0__0 )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXRelationalExpressionAccess().getGroup_1_0_0_0()); \n }\n // ../org.xtext.example.helloxbase.ui/src-gen/org/xtext/example/helloxbase/ui/contentassist/antlr/internal/InternalHelloXbase.g:4376:1: ( rule__XRelationalExpression__Group_1_0_0_0__0 )\n // ../org.xtext.example.helloxbase.ui/src-gen/org/xtext/example/helloxbase/ui/contentassist/antlr/internal/InternalHelloXbase.g:4376:2: rule__XRelationalExpression__Group_1_0_0_0__0\n {\n pushFollow(FOLLOW_rule__XRelationalExpression__Group_1_0_0_0__0_in_rule__XRelationalExpression__Group_1_0_0__0__Impl9241);\n rule__XRelationalExpression__Group_1_0_0_0__0();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXRelationalExpressionAccess().getGroup_1_0_0_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "53b634ac6255e06d6564a404cfdd1d98", "score": "0.71175164", "text": "public final void rule__XRelationalExpression__Group__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.httprouting.ui/src-gen/org/xtext/httprouting/ui/contentassist/antlr/internal/InternalRoute.g:6137:1: ( rule__XRelationalExpression__Group__0__Impl rule__XRelationalExpression__Group__1 )\n // ../org.xtext.httprouting.ui/src-gen/org/xtext/httprouting/ui/contentassist/antlr/internal/InternalRoute.g:6138:2: rule__XRelationalExpression__Group__0__Impl rule__XRelationalExpression__Group__1\n {\n pushFollow(FOLLOW_rule__XRelationalExpression__Group__0__Impl_in_rule__XRelationalExpression__Group__012793);\n rule__XRelationalExpression__Group__0__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n pushFollow(FOLLOW_rule__XRelationalExpression__Group__1_in_rule__XRelationalExpression__Group__012796);\n rule__XRelationalExpression__Group__1();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "6c48899c49a7c206fa639cd6f4843df0", "score": "0.7117168", "text": "public final void rule__Operand__Group_1_0_0__1__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../com.jaspersoft.studio.data.sql.ui/src-gen/com/jaspersoft/studio/data/ui/contentassist/antlr/internal/InternalSqlParser.g:11476:1: ( ( KEYWORD_3 ) )\n // ../com.jaspersoft.studio.data.sql.ui/src-gen/com/jaspersoft/studio/data/ui/contentassist/antlr/internal/InternalSqlParser.g:11477:1: ( KEYWORD_3 )\n {\n // ../com.jaspersoft.studio.data.sql.ui/src-gen/com/jaspersoft/studio/data/ui/contentassist/antlr/internal/InternalSqlParser.g:11477:1: ( KEYWORD_3 )\n // ../com.jaspersoft.studio.data.sql.ui/src-gen/com/jaspersoft/studio/data/ui/contentassist/antlr/internal/InternalSqlParser.g:11478:1: KEYWORD_3\n {\n before(grammarAccess.getOperandAccess().getPlusSignKeyword_1_0_0_1()); \n match(input,KEYWORD_3,FOLLOW_KEYWORD_3_in_rule__Operand__Group_1_0_0__1__Impl23733); \n after(grammarAccess.getOperandAccess().getPlusSignKeyword_1_0_0_1()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "b5d44d312358f75763d7fce4f7aee683", "score": "0.7113759", "text": "public final void rule__XExpressionParams__Group_1__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../com.jaspersoft.studio.data.sql.ui/src-gen/com/jaspersoft/studio/data/ui/contentassist/antlr/internal/InternalSqlParser.g:10362:1: ( rule__XExpressionParams__Group_1__0__Impl rule__XExpressionParams__Group_1__1 )\n // ../com.jaspersoft.studio.data.sql.ui/src-gen/com/jaspersoft/studio/data/ui/contentassist/antlr/internal/InternalSqlParser.g:10363:2: rule__XExpressionParams__Group_1__0__Impl rule__XExpressionParams__Group_1__1\n {\n pushFollow(FOLLOW_rule__XExpressionParams__Group_1__0__Impl_in_rule__XExpressionParams__Group_1__021528);\n rule__XExpressionParams__Group_1__0__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_rule__XExpressionParams__Group_1__1_in_rule__XExpressionParams__Group_1__021531);\n rule__XExpressionParams__Group_1__1();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "87fd4ccdc14e60a3d2ecddf0af7b23d0", "score": "0.7111245", "text": "public final void rule__XRelationalExpression__Group_1_1_0__0__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.example.helloxbase.ui/src-gen/org/xtext/example/helloxbase/ui/contentassist/antlr/internal/InternalHelloXbase.g:4529:1: ( ( ( rule__XRelationalExpression__Group_1_1_0_0__0 ) ) )\n // ../org.xtext.example.helloxbase.ui/src-gen/org/xtext/example/helloxbase/ui/contentassist/antlr/internal/InternalHelloXbase.g:4530:1: ( ( rule__XRelationalExpression__Group_1_1_0_0__0 ) )\n {\n // ../org.xtext.example.helloxbase.ui/src-gen/org/xtext/example/helloxbase/ui/contentassist/antlr/internal/InternalHelloXbase.g:4530:1: ( ( rule__XRelationalExpression__Group_1_1_0_0__0 ) )\n // ../org.xtext.example.helloxbase.ui/src-gen/org/xtext/example/helloxbase/ui/contentassist/antlr/internal/InternalHelloXbase.g:4531:1: ( rule__XRelationalExpression__Group_1_1_0_0__0 )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXRelationalExpressionAccess().getGroup_1_1_0_0()); \n }\n // ../org.xtext.example.helloxbase.ui/src-gen/org/xtext/example/helloxbase/ui/contentassist/antlr/internal/InternalHelloXbase.g:4532:1: ( rule__XRelationalExpression__Group_1_1_0_0__0 )\n // ../org.xtext.example.helloxbase.ui/src-gen/org/xtext/example/helloxbase/ui/contentassist/antlr/internal/InternalHelloXbase.g:4532:2: rule__XRelationalExpression__Group_1_1_0_0__0\n {\n pushFollow(FOLLOW_rule__XRelationalExpression__Group_1_1_0_0__0_in_rule__XRelationalExpression__Group_1_1_0__0__Impl9545);\n rule__XRelationalExpression__Group_1_1_0_0__0();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXRelationalExpressionAccess().getGroup_1_1_0_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "56bb1f71c1f067d7ec30f5f8fb5211ab", "score": "0.7101438", "text": "public final void rule__Operand__Group_1_0_1__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../com.jaspersoft.studio.data.sql.ui/src-gen/com/jaspersoft/studio/data/ui/contentassist/antlr/internal/InternalSqlParser.g:11530:1: ( rule__Operand__Group_1_0_1__1__Impl )\n // ../com.jaspersoft.studio.data.sql.ui/src-gen/com/jaspersoft/studio/data/ui/contentassist/antlr/internal/InternalSqlParser.g:11531:2: rule__Operand__Group_1_0_1__1__Impl\n {\n pushFollow(FOLLOW_rule__Operand__Group_1_0_1__1__Impl_in_rule__Operand__Group_1_0_1__123829);\n rule__Operand__Group_1_0_1__1__Impl();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "0f4373c287da66ae7573257e0d0b4104", "score": "0.7100459", "text": "public final void rule__XOtherOperatorExpression__Group_1_0__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.example.helloxbase.ui/src-gen/org/xtext/example/helloxbase/ui/contentassist/antlr/internal/InternalHelloXbase.g:4733:1: ( rule__XOtherOperatorExpression__Group_1_0__0__Impl )\n // ../org.xtext.example.helloxbase.ui/src-gen/org/xtext/example/helloxbase/ui/contentassist/antlr/internal/InternalHelloXbase.g:4734:2: rule__XOtherOperatorExpression__Group_1_0__0__Impl\n {\n pushFollow(FOLLOW_rule__XOtherOperatorExpression__Group_1_0__0__Impl_in_rule__XOtherOperatorExpression__Group_1_0__09941);\n rule__XOtherOperatorExpression__Group_1_0__0__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "7cceab1d1487347d8fdd700f27ab3b6a", "score": "0.7097292", "text": "public final void rule__XExpressionParams__Group_1__1__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../com.jaspersoft.studio.data.sql.ui/src-gen/com/jaspersoft/studio/data/ui/contentassist/antlr/internal/InternalSqlParser.g:10404:1: ( ( ( ( rule__XExpressionParams__Group_1_1__0 ) ) ( ( rule__XExpressionParams__Group_1_1__0 )* ) ) )\n // ../com.jaspersoft.studio.data.sql.ui/src-gen/com/jaspersoft/studio/data/ui/contentassist/antlr/internal/InternalSqlParser.g:10405:1: ( ( ( rule__XExpressionParams__Group_1_1__0 ) ) ( ( rule__XExpressionParams__Group_1_1__0 )* ) )\n {\n // ../com.jaspersoft.studio.data.sql.ui/src-gen/com/jaspersoft/studio/data/ui/contentassist/antlr/internal/InternalSqlParser.g:10405:1: ( ( ( rule__XExpressionParams__Group_1_1__0 ) ) ( ( rule__XExpressionParams__Group_1_1__0 )* ) )\n // ../com.jaspersoft.studio.data.sql.ui/src-gen/com/jaspersoft/studio/data/ui/contentassist/antlr/internal/InternalSqlParser.g:10406:1: ( ( rule__XExpressionParams__Group_1_1__0 ) ) ( ( rule__XExpressionParams__Group_1_1__0 )* )\n {\n // ../com.jaspersoft.studio.data.sql.ui/src-gen/com/jaspersoft/studio/data/ui/contentassist/antlr/internal/InternalSqlParser.g:10406:1: ( ( rule__XExpressionParams__Group_1_1__0 ) )\n // ../com.jaspersoft.studio.data.sql.ui/src-gen/com/jaspersoft/studio/data/ui/contentassist/antlr/internal/InternalSqlParser.g:10407:1: ( rule__XExpressionParams__Group_1_1__0 )\n {\n before(grammarAccess.getXExpressionParamsAccess().getGroup_1_1()); \n // ../com.jaspersoft.studio.data.sql.ui/src-gen/com/jaspersoft/studio/data/ui/contentassist/antlr/internal/InternalSqlParser.g:10408:1: ( rule__XExpressionParams__Group_1_1__0 )\n // ../com.jaspersoft.studio.data.sql.ui/src-gen/com/jaspersoft/studio/data/ui/contentassist/antlr/internal/InternalSqlParser.g:10408:2: rule__XExpressionParams__Group_1_1__0\n {\n pushFollow(FOLLOW_rule__XExpressionParams__Group_1_1__0_in_rule__XExpressionParams__Group_1__1__Impl21618);\n rule__XExpressionParams__Group_1_1__0();\n\n state._fsp--;\n\n\n }\n\n after(grammarAccess.getXExpressionParamsAccess().getGroup_1_1()); \n\n }\n\n // ../com.jaspersoft.studio.data.sql.ui/src-gen/com/jaspersoft/studio/data/ui/contentassist/antlr/internal/InternalSqlParser.g:10411:1: ( ( rule__XExpressionParams__Group_1_1__0 )* )\n // ../com.jaspersoft.studio.data.sql.ui/src-gen/com/jaspersoft/studio/data/ui/contentassist/antlr/internal/InternalSqlParser.g:10412:1: ( rule__XExpressionParams__Group_1_1__0 )*\n {\n before(grammarAccess.getXExpressionParamsAccess().getGroup_1_1()); \n // ../com.jaspersoft.studio.data.sql.ui/src-gen/com/jaspersoft/studio/data/ui/contentassist/antlr/internal/InternalSqlParser.g:10413:1: ( rule__XExpressionParams__Group_1_1__0 )*\n loop103:\n do {\n int alt103=2;\n int LA103_0 = input.LA(1);\n\n if ( (LA103_0==KEYWORD_4) ) {\n alt103=1;\n }\n\n\n switch (alt103) {\n \tcase 1 :\n \t // ../com.jaspersoft.studio.data.sql.ui/src-gen/com/jaspersoft/studio/data/ui/contentassist/antlr/internal/InternalSqlParser.g:10413:2: rule__XExpressionParams__Group_1_1__0\n \t {\n \t pushFollow(FOLLOW_rule__XExpressionParams__Group_1_1__0_in_rule__XExpressionParams__Group_1__1__Impl21630);\n \t rule__XExpressionParams__Group_1_1__0();\n\n \t state._fsp--;\n\n\n \t }\n \t break;\n\n \tdefault :\n \t break loop103;\n }\n } while (true);\n\n after(grammarAccess.getXExpressionParamsAccess().getGroup_1_1()); \n\n }\n\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "9fe1a1d28f581f7f7a60db62da27e1da", "score": "0.7096813", "text": "public final void rule__MathOp__Group_1_0__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../csep.example.cake.ui/src-gen/csep/example/cake/ui/contentassist/antlr/internal/InternalCakefile.g:7941:1: ( rule__MathOp__Group_1_0__0__Impl )\n // ../csep.example.cake.ui/src-gen/csep/example/cake/ui/contentassist/antlr/internal/InternalCakefile.g:7942:2: rule__MathOp__Group_1_0__0__Impl\n {\n pushFollow(FOLLOW_rule__MathOp__Group_1_0__0__Impl_in_rule__MathOp__Group_1_0__016442);\n rule__MathOp__Group_1_0__0__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "64bd36ccf9bdcf7b536d82a8e848de9a", "score": "0.70917", "text": "public final void rule__XRelationalExpression__Group_1_1_0__0__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.httprouting.ui/src-gen/org/xtext/httprouting/ui/contentassist/antlr/internal/InternalRoute.g:6426:1: ( ( ( rule__XRelationalExpression__Group_1_1_0_0__0 ) ) )\n // ../org.xtext.httprouting.ui/src-gen/org/xtext/httprouting/ui/contentassist/antlr/internal/InternalRoute.g:6427:1: ( ( rule__XRelationalExpression__Group_1_1_0_0__0 ) )\n {\n // ../org.xtext.httprouting.ui/src-gen/org/xtext/httprouting/ui/contentassist/antlr/internal/InternalRoute.g:6427:1: ( ( rule__XRelationalExpression__Group_1_1_0_0__0 ) )\n // ../org.xtext.httprouting.ui/src-gen/org/xtext/httprouting/ui/contentassist/antlr/internal/InternalRoute.g:6428:1: ( rule__XRelationalExpression__Group_1_1_0_0__0 )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXRelationalExpressionAccess().getGroup_1_1_0_0()); \n }\n // ../org.xtext.httprouting.ui/src-gen/org/xtext/httprouting/ui/contentassist/antlr/internal/InternalRoute.g:6429:1: ( rule__XRelationalExpression__Group_1_1_0_0__0 )\n // ../org.xtext.httprouting.ui/src-gen/org/xtext/httprouting/ui/contentassist/antlr/internal/InternalRoute.g:6429:2: rule__XRelationalExpression__Group_1_1_0_0__0\n {\n pushFollow(FOLLOW_rule__XRelationalExpression__Group_1_1_0_0__0_in_rule__XRelationalExpression__Group_1_1_0__0__Impl13366);\n rule__XRelationalExpression__Group_1_1_0_0__0();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXRelationalExpressionAccess().getGroup_1_1_0_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "beb477bddfa1db07258eddba74f38de5", "score": "0.70877063", "text": "public final void rule__YAnnotExpression__Group_0__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalModel.g:2678:1: ( rule__YAnnotExpression__Group_0__1__Impl )\n // InternalModel.g:2679:2: rule__YAnnotExpression__Group_0__1__Impl\n {\n pushFollow(FOLLOW_2);\n rule__YAnnotExpression__Group_0__1__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "0cf37c0b1100c7e1be56b46a5f647872", "score": "0.70838803", "text": "public final void rule__XRelationalExpression__Group_1_0__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.example.helloxbase.ui/src-gen/org/xtext/example/helloxbase/ui/contentassist/antlr/internal/InternalHelloXbase.g:4301:1: ( rule__XRelationalExpression__Group_1_0__0__Impl rule__XRelationalExpression__Group_1_0__1 )\n // ../org.xtext.example.helloxbase.ui/src-gen/org/xtext/example/helloxbase/ui/contentassist/antlr/internal/InternalHelloXbase.g:4302:2: rule__XRelationalExpression__Group_1_0__0__Impl rule__XRelationalExpression__Group_1_0__1\n {\n pushFollow(FOLLOW_rule__XRelationalExpression__Group_1_0__0__Impl_in_rule__XRelationalExpression__Group_1_0__09093);\n rule__XRelationalExpression__Group_1_0__0__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n pushFollow(FOLLOW_rule__XRelationalExpression__Group_1_0__1_in_rule__XRelationalExpression__Group_1_0__09096);\n rule__XRelationalExpression__Group_1_0__1();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "30853b5793a66459b238923bdd41037e", "score": "0.7075926", "text": "public final void rule__XParenthesizedExpression__Group__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.httprouting.ui/src-gen/org/xtext/httprouting/ui/contentassist/antlr/internal/InternalRoute.g:9584:1: ( rule__XParenthesizedExpression__Group__0__Impl rule__XParenthesizedExpression__Group__1 )\n // ../org.xtext.httprouting.ui/src-gen/org/xtext/httprouting/ui/contentassist/antlr/internal/InternalRoute.g:9585:2: rule__XParenthesizedExpression__Group__0__Impl rule__XParenthesizedExpression__Group__1\n {\n pushFollow(FOLLOW_rule__XParenthesizedExpression__Group__0__Impl_in_rule__XParenthesizedExpression__Group__019571);\n rule__XParenthesizedExpression__Group__0__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n pushFollow(FOLLOW_rule__XParenthesizedExpression__Group__1_in_rule__XParenthesizedExpression__Group__019574);\n rule__XParenthesizedExpression__Group__1();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "618ccd5f4933560c269713b4b582f57e", "score": "0.7072418", "text": "public final void rule__XRelationalExpression__Group_1_0_0__0__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.httprouting.ui/src-gen/org/xtext/httprouting/ui/contentassist/antlr/internal/InternalRoute.g:6270:1: ( ( ( rule__XRelationalExpression__Group_1_0_0_0__0 ) ) )\n // ../org.xtext.httprouting.ui/src-gen/org/xtext/httprouting/ui/contentassist/antlr/internal/InternalRoute.g:6271:1: ( ( rule__XRelationalExpression__Group_1_0_0_0__0 ) )\n {\n // ../org.xtext.httprouting.ui/src-gen/org/xtext/httprouting/ui/contentassist/antlr/internal/InternalRoute.g:6271:1: ( ( rule__XRelationalExpression__Group_1_0_0_0__0 ) )\n // ../org.xtext.httprouting.ui/src-gen/org/xtext/httprouting/ui/contentassist/antlr/internal/InternalRoute.g:6272:1: ( rule__XRelationalExpression__Group_1_0_0_0__0 )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXRelationalExpressionAccess().getGroup_1_0_0_0()); \n }\n // ../org.xtext.httprouting.ui/src-gen/org/xtext/httprouting/ui/contentassist/antlr/internal/InternalRoute.g:6273:1: ( rule__XRelationalExpression__Group_1_0_0_0__0 )\n // ../org.xtext.httprouting.ui/src-gen/org/xtext/httprouting/ui/contentassist/antlr/internal/InternalRoute.g:6273:2: rule__XRelationalExpression__Group_1_0_0_0__0\n {\n pushFollow(FOLLOW_rule__XRelationalExpression__Group_1_0_0_0__0_in_rule__XRelationalExpression__Group_1_0_0__0__Impl13062);\n rule__XRelationalExpression__Group_1_0_0_0__0();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXRelationalExpressionAccess().getGroup_1_0_0_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "f1620850b18c1761ca96b1cb1a99b416", "score": "0.7070156", "text": "public final void rule__XRelationalExpression__Group_1_1__0__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.httprouting.ui/src-gen/org/xtext/httprouting/ui/contentassist/antlr/internal/InternalRoute.g:6366:1: ( ( ( rule__XRelationalExpression__Group_1_1_0__0 ) ) )\n // ../org.xtext.httprouting.ui/src-gen/org/xtext/httprouting/ui/contentassist/antlr/internal/InternalRoute.g:6367:1: ( ( rule__XRelationalExpression__Group_1_1_0__0 ) )\n {\n // ../org.xtext.httprouting.ui/src-gen/org/xtext/httprouting/ui/contentassist/antlr/internal/InternalRoute.g:6367:1: ( ( rule__XRelationalExpression__Group_1_1_0__0 ) )\n // ../org.xtext.httprouting.ui/src-gen/org/xtext/httprouting/ui/contentassist/antlr/internal/InternalRoute.g:6368:1: ( rule__XRelationalExpression__Group_1_1_0__0 )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXRelationalExpressionAccess().getGroup_1_1_0()); \n }\n // ../org.xtext.httprouting.ui/src-gen/org/xtext/httprouting/ui/contentassist/antlr/internal/InternalRoute.g:6369:1: ( rule__XRelationalExpression__Group_1_1_0__0 )\n // ../org.xtext.httprouting.ui/src-gen/org/xtext/httprouting/ui/contentassist/antlr/internal/InternalRoute.g:6369:2: rule__XRelationalExpression__Group_1_1_0__0\n {\n pushFollow(FOLLOW_rule__XRelationalExpression__Group_1_1_0__0_in_rule__XRelationalExpression__Group_1_1__0__Impl13248);\n rule__XRelationalExpression__Group_1_1_0__0();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXRelationalExpressionAccess().getGroup_1_1_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "a519952973ce5d4d94765393ef00d7ed", "score": "0.7064664", "text": "public final void rule__XRelationalExpression__Group__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.httprouting.ui/src-gen/org/xtext/httprouting/ui/contentassist/antlr/internal/InternalRoute.g:6166:1: ( rule__XRelationalExpression__Group__1__Impl )\n // ../org.xtext.httprouting.ui/src-gen/org/xtext/httprouting/ui/contentassist/antlr/internal/InternalRoute.g:6167:2: rule__XRelationalExpression__Group__1__Impl\n {\n pushFollow(FOLLOW_rule__XRelationalExpression__Group__1__Impl_in_rule__XRelationalExpression__Group__112852);\n rule__XRelationalExpression__Group__1__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "12406ab0ddfee8e1bd2d9136e7e0cbde", "score": "0.70639825", "text": "public final void rule__Operand__Group_1_0_3__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../com.jaspersoft.studio.data.sql.ui/src-gen/com/jaspersoft/studio/data/ui/contentassist/antlr/internal/InternalSqlParser.g:11658:1: ( rule__Operand__Group_1_0_3__1__Impl )\n // ../com.jaspersoft.studio.data.sql.ui/src-gen/com/jaspersoft/studio/data/ui/contentassist/antlr/internal/InternalSqlParser.g:11659:2: rule__Operand__Group_1_0_3__1__Impl\n {\n pushFollow(FOLLOW_rule__Operand__Group_1_0_3__1__Impl_in_rule__Operand__Group_1_0_3__124074);\n rule__Operand__Group_1_0_3__1__Impl();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "9cbc2358fc1a43738893174efb7a7cf6", "score": "0.7063811", "text": "public final void rule__XAdditiveExpression__Group_1_0__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.example.helloxbase.ui/src-gen/org/xtext/example/helloxbase/ui/contentassist/antlr/internal/InternalHelloXbase.g:5264:1: ( rule__XAdditiveExpression__Group_1_0__0__Impl )\n // ../org.xtext.example.helloxbase.ui/src-gen/org/xtext/example/helloxbase/ui/contentassist/antlr/internal/InternalHelloXbase.g:5265:2: rule__XAdditiveExpression__Group_1_0__0__Impl\n {\n pushFollow(FOLLOW_rule__XAdditiveExpression__Group_1_0__0__Impl_in_rule__XAdditiveExpression__Group_1_0__010978);\n rule__XAdditiveExpression__Group_1_0__0__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "01d833c92aaa6e0d6c9a62e5dfe1033c", "score": "0.70628136", "text": "public final void ruleExp() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../at.caks.eglipse.lang.glsl.ui/src-gen/at/caks/eglipse/lang/glsl/ui/contentassist/antlr/internal/InternalGlsl.g:640:2: ( ( ( rule__Exp__Group__0 ) ) )\n // ../at.caks.eglipse.lang.glsl.ui/src-gen/at/caks/eglipse/lang/glsl/ui/contentassist/antlr/internal/InternalGlsl.g:641:1: ( ( rule__Exp__Group__0 ) )\n {\n // ../at.caks.eglipse.lang.glsl.ui/src-gen/at/caks/eglipse/lang/glsl/ui/contentassist/antlr/internal/InternalGlsl.g:641:1: ( ( rule__Exp__Group__0 ) )\n // ../at.caks.eglipse.lang.glsl.ui/src-gen/at/caks/eglipse/lang/glsl/ui/contentassist/antlr/internal/InternalGlsl.g:642:1: ( rule__Exp__Group__0 )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getExpAccess().getGroup()); \n }\n // ../at.caks.eglipse.lang.glsl.ui/src-gen/at/caks/eglipse/lang/glsl/ui/contentassist/antlr/internal/InternalGlsl.g:643:1: ( rule__Exp__Group__0 )\n // ../at.caks.eglipse.lang.glsl.ui/src-gen/at/caks/eglipse/lang/glsl/ui/contentassist/antlr/internal/InternalGlsl.g:643:2: rule__Exp__Group__0\n {\n pushFollow(FOLLOW_rule__Exp__Group__0_in_ruleExp1305);\n rule__Exp__Group__0();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getExpAccess().getGroup()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "522fe331ad9426fdd9518d8e1f5764e9", "score": "0.7058871", "text": "public final void rule__XExpression___Group__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../com.jaspersoft.studio.data.sql.ui/src-gen/com/jaspersoft/studio/data/ui/contentassist/antlr/internal/InternalSqlParser.g:10012:1: ( rule__XExpression___Group__1__Impl rule__XExpression___Group__2 )\n // ../com.jaspersoft.studio.data.sql.ui/src-gen/com/jaspersoft/studio/data/ui/contentassist/antlr/internal/InternalSqlParser.g:10013:2: rule__XExpression___Group__1__Impl rule__XExpression___Group__2\n {\n pushFollow(FOLLOW_rule__XExpression___Group__1__Impl_in_rule__XExpression___Group__120843);\n rule__XExpression___Group__1__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_rule__XExpression___Group__2_in_rule__XExpression___Group__120846);\n rule__XExpression___Group__2();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "309e6626b005b6660fe6f0980d65c277", "score": "0.70563865", "text": "public final void rule__XRelationalExpression__Group_1_1_0_0__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.example.helloxbase.ui/src-gen/org/xtext/example/helloxbase/ui/contentassist/antlr/internal/InternalHelloXbase.g:4548:1: ( rule__XRelationalExpression__Group_1_1_0_0__0__Impl rule__XRelationalExpression__Group_1_1_0_0__1 )\n // ../org.xtext.example.helloxbase.ui/src-gen/org/xtext/example/helloxbase/ui/contentassist/antlr/internal/InternalHelloXbase.g:4549:2: rule__XRelationalExpression__Group_1_1_0_0__0__Impl rule__XRelationalExpression__Group_1_1_0_0__1\n {\n pushFollow(FOLLOW_rule__XRelationalExpression__Group_1_1_0_0__0__Impl_in_rule__XRelationalExpression__Group_1_1_0_0__09577);\n rule__XRelationalExpression__Group_1_1_0_0__0__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n pushFollow(FOLLOW_rule__XRelationalExpression__Group_1_1_0_0__1_in_rule__XRelationalExpression__Group_1_1_0_0__09580);\n rule__XRelationalExpression__Group_1_1_0_0__1();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "250fedb7dfc4c106aaf25e8c28108ff3", "score": "0.70548046", "text": "public final void rule__UnaryExpression__Group__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalMyCsv.g:4824:1: ( rule__UnaryExpression__Group__1__Impl )\n // InternalMyCsv.g:4825:2: rule__UnaryExpression__Group__1__Impl\n {\n pushFollow(FOLLOW_2);\n rule__UnaryExpression__Group__1__Impl();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "94beac82ca848d3235d91a2ab8e9ef83", "score": "0.7054703", "text": "public final void rule__XRelationalExpression__Group_1_1__0__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.example.helloxbase.ui/src-gen/org/xtext/example/helloxbase/ui/contentassist/antlr/internal/InternalHelloXbase.g:4469:1: ( ( ( rule__XRelationalExpression__Group_1_1_0__0 ) ) )\n // ../org.xtext.example.helloxbase.ui/src-gen/org/xtext/example/helloxbase/ui/contentassist/antlr/internal/InternalHelloXbase.g:4470:1: ( ( rule__XRelationalExpression__Group_1_1_0__0 ) )\n {\n // ../org.xtext.example.helloxbase.ui/src-gen/org/xtext/example/helloxbase/ui/contentassist/antlr/internal/InternalHelloXbase.g:4470:1: ( ( rule__XRelationalExpression__Group_1_1_0__0 ) )\n // ../org.xtext.example.helloxbase.ui/src-gen/org/xtext/example/helloxbase/ui/contentassist/antlr/internal/InternalHelloXbase.g:4471:1: ( rule__XRelationalExpression__Group_1_1_0__0 )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXRelationalExpressionAccess().getGroup_1_1_0()); \n }\n // ../org.xtext.example.helloxbase.ui/src-gen/org/xtext/example/helloxbase/ui/contentassist/antlr/internal/InternalHelloXbase.g:4472:1: ( rule__XRelationalExpression__Group_1_1_0__0 )\n // ../org.xtext.example.helloxbase.ui/src-gen/org/xtext/example/helloxbase/ui/contentassist/antlr/internal/InternalHelloXbase.g:4472:2: rule__XRelationalExpression__Group_1_1_0__0\n {\n pushFollow(FOLLOW_rule__XRelationalExpression__Group_1_1_0__0_in_rule__XRelationalExpression__Group_1_1__0__Impl9427);\n rule__XRelationalExpression__Group_1_1_0__0();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXRelationalExpressionAccess().getGroup_1_1_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "38ff8e6b0a0352e1e77cad6d47d5c492", "score": "0.7048955", "text": "public final void rule__XRelationalExpression__Group_1_0_0_0__0__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.example.helloxbase.ui/src-gen/org/xtext/example/helloxbase/ui/contentassist/antlr/internal/InternalHelloXbase.g:4404:1: ( ( () ) )\n // ../org.xtext.example.helloxbase.ui/src-gen/org/xtext/example/helloxbase/ui/contentassist/antlr/internal/InternalHelloXbase.g:4405:1: ( () )\n {\n // ../org.xtext.example.helloxbase.ui/src-gen/org/xtext/example/helloxbase/ui/contentassist/antlr/internal/InternalHelloXbase.g:4405:1: ( () )\n // ../org.xtext.example.helloxbase.ui/src-gen/org/xtext/example/helloxbase/ui/contentassist/antlr/internal/InternalHelloXbase.g:4406:1: ()\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXRelationalExpressionAccess().getXInstanceOfExpressionExpressionAction_1_0_0_0_0()); \n }\n // ../org.xtext.example.helloxbase.ui/src-gen/org/xtext/example/helloxbase/ui/contentassist/antlr/internal/InternalHelloXbase.g:4407:1: ()\n // ../org.xtext.example.helloxbase.ui/src-gen/org/xtext/example/helloxbase/ui/contentassist/antlr/internal/InternalHelloXbase.g:4409:1: \n {\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXRelationalExpressionAccess().getXInstanceOfExpressionExpressionAction_1_0_0_0_0()); \n }\n\n }\n\n\n }\n\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "2de8b7353ec4f3c948c791a0c67c0617", "score": "0.7042491", "text": "public final void rule__Operand__Group_1_0_4__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../com.jaspersoft.studio.data.sql.ui/src-gen/com/jaspersoft/studio/data/ui/contentassist/antlr/internal/InternalSqlParser.g:11723:1: ( rule__Operand__Group_1_0_4__1__Impl )\n // ../com.jaspersoft.studio.data.sql.ui/src-gen/com/jaspersoft/studio/data/ui/contentassist/antlr/internal/InternalSqlParser.g:11724:2: rule__Operand__Group_1_0_4__1__Impl\n {\n pushFollow(FOLLOW_rule__Operand__Group_1_0_4__1__Impl_in_rule__Operand__Group_1_0_4__124198);\n rule__Operand__Group_1_0_4__1__Impl();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "4824b5f558239f446024b7847f504ec6", "score": "0.704117", "text": "public final void rule__XRelationalExpression__Group_1_0_0_0__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.example.helloxbase.ui/src-gen/org/xtext/example/helloxbase/ui/contentassist/antlr/internal/InternalHelloXbase.g:4392:1: ( rule__XRelationalExpression__Group_1_0_0_0__0__Impl rule__XRelationalExpression__Group_1_0_0_0__1 )\n // ../org.xtext.example.helloxbase.ui/src-gen/org/xtext/example/helloxbase/ui/contentassist/antlr/internal/InternalHelloXbase.g:4393:2: rule__XRelationalExpression__Group_1_0_0_0__0__Impl rule__XRelationalExpression__Group_1_0_0_0__1\n {\n pushFollow(FOLLOW_rule__XRelationalExpression__Group_1_0_0_0__0__Impl_in_rule__XRelationalExpression__Group_1_0_0_0__09273);\n rule__XRelationalExpression__Group_1_0_0_0__0__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n pushFollow(FOLLOW_rule__XRelationalExpression__Group_1_0_0_0__1_in_rule__XRelationalExpression__Group_1_0_0_0__09276);\n rule__XRelationalExpression__Group_1_0_0_0__1();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "35ea9efe0e2acba3ca34035958383e72", "score": "0.703318", "text": "public final void rule__Expression__Group__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalGo.g:13267:1: ( rule__Expression__Group__0__Impl rule__Expression__Group__1 )\n // InternalGo.g:13268:2: rule__Expression__Group__0__Impl rule__Expression__Group__1\n {\n pushFollow(FOLLOW_73);\n rule__Expression__Group__0__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n pushFollow(FOLLOW_2);\n rule__Expression__Group__1();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "a1d34f88dd4d74b261eebc801d0c8dbe", "score": "0.7014951", "text": "public final void rule__Expression__Group__1() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalPascal.g:4175:1: ( rule__Expression__Group__1__Impl )\r\n // InternalPascal.g:4176:2: rule__Expression__Group__1__Impl\r\n {\r\n pushFollow(FOLLOW_2);\r\n rule__Expression__Group__1__Impl();\r\n\r\n state._fsp--;\r\n\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 finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "17203ca2553093b4e140e694bb9a5f0e", "score": "0.7002048", "text": "public final void rule__Exp__Group__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../at.caks.eglipse.lang.glsl.ui/src-gen/at/caks/eglipse/lang/glsl/ui/contentassist/antlr/internal/InternalGlsl.g:7743:1: ( rule__Exp__Group__0__Impl rule__Exp__Group__1 )\n // ../at.caks.eglipse.lang.glsl.ui/src-gen/at/caks/eglipse/lang/glsl/ui/contentassist/antlr/internal/InternalGlsl.g:7744:2: rule__Exp__Group__0__Impl rule__Exp__Group__1\n {\n pushFollow(FOLLOW_rule__Exp__Group__0__Impl_in_rule__Exp__Group__015715);\n rule__Exp__Group__0__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n pushFollow(FOLLOW_rule__Exp__Group__1_in_rule__Exp__Group__015718);\n rule__Exp__Group__1();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "dda8acfeffa35960b1a93de3ac5b2894", "score": "0.69989705", "text": "public final void rule__UnaryExpression__Group__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalMyCsv.g:4797:1: ( rule__UnaryExpression__Group__0__Impl rule__UnaryExpression__Group__1 )\n // InternalMyCsv.g:4798:2: rule__UnaryExpression__Group__0__Impl rule__UnaryExpression__Group__1\n {\n pushFollow(FOLLOW_37);\n rule__UnaryExpression__Group__0__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_2);\n rule__UnaryExpression__Group__1();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "38bdedcb3b23c4845169fa35495ab65b", "score": "0.6997251", "text": "public final void rule__Operand__Group_1_0_2__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../com.jaspersoft.studio.data.sql.ui/src-gen/com/jaspersoft/studio/data/ui/contentassist/antlr/internal/InternalSqlParser.g:11595:1: ( rule__Operand__Group_1_0_2__1__Impl )\n // ../com.jaspersoft.studio.data.sql.ui/src-gen/com/jaspersoft/studio/data/ui/contentassist/antlr/internal/InternalSqlParser.g:11596:2: rule__Operand__Group_1_0_2__1__Impl\n {\n pushFollow(FOLLOW_rule__Operand__Group_1_0_2__1__Impl_in_rule__Operand__Group_1_0_2__123953);\n rule__Operand__Group_1_0_2__1__Impl();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "2cdfd48c6803fbbfda7c9d48aff42cb6", "score": "0.6993079", "text": "public final void rule__Declaration__Group_0__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../at.caks.eglipse.lang.glsl.ui/src-gen/at/caks/eglipse/lang/glsl/ui/contentassist/antlr/internal/InternalGlsl.g:2160:1: ( rule__Declaration__Group_0__1__Impl )\n // ../at.caks.eglipse.lang.glsl.ui/src-gen/at/caks/eglipse/lang/glsl/ui/contentassist/antlr/internal/InternalGlsl.g:2161:2: rule__Declaration__Group_0__1__Impl\n {\n pushFollow(FOLLOW_rule__Declaration__Group_0__1__Impl_in_rule__Declaration__Group_0__14804);\n rule__Declaration__Group_0__1__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "92cacaf2a7f43912e33b4e4c38c9ffbb", "score": "0.6990598", "text": "public final void rule__XRelationalExpression__Group_1_1__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.httprouting.ui/src-gen/org/xtext/httprouting/ui/contentassist/antlr/internal/InternalRoute.g:6383:1: ( rule__XRelationalExpression__Group_1_1__1__Impl )\n // ../org.xtext.httprouting.ui/src-gen/org/xtext/httprouting/ui/contentassist/antlr/internal/InternalRoute.g:6384:2: rule__XRelationalExpression__Group_1_1__1__Impl\n {\n pushFollow(FOLLOW_rule__XRelationalExpression__Group_1_1__1__Impl_in_rule__XRelationalExpression__Group_1_1__113278);\n rule__XRelationalExpression__Group_1_1__1__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "7e6d9d16a191defa28e8c057dba39436", "score": "0.6985274", "text": "public final void rule__XVariableDeclaration__Group_2_0_0__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.example.helloxbase.ui/src-gen/org/xtext/example/helloxbase/ui/contentassist/antlr/internal/InternalHelloXbase.g:10011:1: ( rule__XVariableDeclaration__Group_2_0_0__1__Impl )\n // ../org.xtext.example.helloxbase.ui/src-gen/org/xtext/example/helloxbase/ui/contentassist/antlr/internal/InternalHelloXbase.g:10012:2: rule__XVariableDeclaration__Group_2_0_0__1__Impl\n {\n pushFollow(FOLLOW_rule__XVariableDeclaration__Group_2_0_0__1__Impl_in_rule__XVariableDeclaration__Group_2_0_0__120311);\n rule__XVariableDeclaration__Group_2_0_0__1__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "f1e7b9e2884c101b4f7df515b9b7aeec", "score": "0.69817907", "text": "public final void rule__XVariableDeclaration__Group_2_0__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.example.helloxbase.ui/src-gen/org/xtext/example/helloxbase/ui/contentassist/antlr/internal/InternalHelloXbase.g:9952:1: ( rule__XVariableDeclaration__Group_2_0__0__Impl )\n // ../org.xtext.example.helloxbase.ui/src-gen/org/xtext/example/helloxbase/ui/contentassist/antlr/internal/InternalHelloXbase.g:9953:2: rule__XVariableDeclaration__Group_2_0__0__Impl\n {\n pushFollow(FOLLOW_rule__XVariableDeclaration__Group_2_0__0__Impl_in_rule__XVariableDeclaration__Group_2_0__020192);\n rule__XVariableDeclaration__Group_2_0__0__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "facb83f85d0455be510d6f2308b3f9e1", "score": "0.6980298", "text": "public final void rule__Operand__Group_1_0_0__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../com.jaspersoft.studio.data.sql.ui/src-gen/com/jaspersoft/studio/data/ui/contentassist/antlr/internal/InternalSqlParser.g:11434:1: ( rule__Operand__Group_1_0_0__0__Impl rule__Operand__Group_1_0_0__1 )\n // ../com.jaspersoft.studio.data.sql.ui/src-gen/com/jaspersoft/studio/data/ui/contentassist/antlr/internal/InternalSqlParser.g:11435:2: rule__Operand__Group_1_0_0__0__Impl rule__Operand__Group_1_0_0__1\n {\n pushFollow(FOLLOW_rule__Operand__Group_1_0_0__0__Impl_in_rule__Operand__Group_1_0_0__023644);\n rule__Operand__Group_1_0_0__0__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_rule__Operand__Group_1_0_0__1_in_rule__Operand__Group_1_0_0__023647);\n rule__Operand__Group_1_0_0__1();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "c1005761b6194f9afd112ae7f6e630d7", "score": "0.69717824", "text": "public final void rule__XExpression__Group__6() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../com.jaspersoft.studio.data.sql.ui/src-gen/com/jaspersoft/studio/data/ui/contentassist/antlr/internal/InternalSqlParser.g:9843:1: ( rule__XExpression__Group__6__Impl rule__XExpression__Group__7 )\n // ../com.jaspersoft.studio.data.sql.ui/src-gen/com/jaspersoft/studio/data/ui/contentassist/antlr/internal/InternalSqlParser.g:9844:2: rule__XExpression__Group__6__Impl rule__XExpression__Group__7\n {\n pushFollow(FOLLOW_rule__XExpression__Group__6__Impl_in_rule__XExpression__Group__620522);\n rule__XExpression__Group__6__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_rule__XExpression__Group__7_in_rule__XExpression__Group__620525);\n rule__XExpression__Group__7();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "6054d378325faa5ea71a96112ec5b066", "score": "0.69707274", "text": "public final void rule__XAdditiveExpression__Group_1_0__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.httprouting.ui/src-gen/org/xtext/httprouting/ui/contentassist/antlr/internal/InternalRoute.g:7161:1: ( rule__XAdditiveExpression__Group_1_0__0__Impl )\n // ../org.xtext.httprouting.ui/src-gen/org/xtext/httprouting/ui/contentassist/antlr/internal/InternalRoute.g:7162:2: rule__XAdditiveExpression__Group_1_0__0__Impl\n {\n pushFollow(FOLLOW_rule__XAdditiveExpression__Group_1_0__0__Impl_in_rule__XAdditiveExpression__Group_1_0__014799);\n rule__XAdditiveExpression__Group_1_0__0__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "f2aa276a79112f79ac3a8356425fb579", "score": "0.69685715", "text": "public final void rule__XParenthesizedExpression__Group__0__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.httprouting.ui/src-gen/org/xtext/httprouting/ui/contentassist/antlr/internal/InternalRoute.g:9596:1: ( ( '(' ) )\n // ../org.xtext.httprouting.ui/src-gen/org/xtext/httprouting/ui/contentassist/antlr/internal/InternalRoute.g:9597:1: ( '(' )\n {\n // ../org.xtext.httprouting.ui/src-gen/org/xtext/httprouting/ui/contentassist/antlr/internal/InternalRoute.g:9597:1: ( '(' )\n // ../org.xtext.httprouting.ui/src-gen/org/xtext/httprouting/ui/contentassist/antlr/internal/InternalRoute.g:9598:1: '('\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXParenthesizedExpressionAccess().getLeftParenthesisKeyword_0()); \n }\n match(input,51,FOLLOW_51_in_rule__XParenthesizedExpression__Group__0__Impl19602); if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXParenthesizedExpressionAccess().getLeftParenthesisKeyword_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "401feba6f83cc71f61b43ef6c1854723", "score": "0.69650406", "text": "public final void rule__Simple_expression__Group_2_0__1() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalPascal.g:4364:1: ( rule__Simple_expression__Group_2_0__1__Impl )\r\n // InternalPascal.g:4365:2: rule__Simple_expression__Group_2_0__1__Impl\r\n {\r\n pushFollow(FOLLOW_2);\r\n rule__Simple_expression__Group_2_0__1__Impl();\r\n\r\n state._fsp--;\r\n\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 finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "bb47f0719b8d02c5282b8bf7705cdfe1", "score": "0.69634515", "text": "public final void rule__Expression__Group_1__1() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalPascal.g:4229:1: ( rule__Expression__Group_1__1__Impl )\r\n // InternalPascal.g:4230:2: rule__Expression__Group_1__1__Impl\r\n {\r\n pushFollow(FOLLOW_2);\r\n rule__Expression__Group_1__1__Impl();\r\n\r\n state._fsp--;\r\n\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 finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "107036161cfe9f589858167284d07933", "score": "0.6962888", "text": "public final void rule__XOrExpression__Group__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.httprouting.ui/src-gen/org/xtext/httprouting/ui/contentassist/antlr/internal/InternalRoute.g:5492:1: ( rule__XOrExpression__Group__0__Impl rule__XOrExpression__Group__1 )\n // ../org.xtext.httprouting.ui/src-gen/org/xtext/httprouting/ui/contentassist/antlr/internal/InternalRoute.g:5493:2: rule__XOrExpression__Group__0__Impl rule__XOrExpression__Group__1\n {\n pushFollow(FOLLOW_rule__XOrExpression__Group__0__Impl_in_rule__XOrExpression__Group__011524);\n rule__XOrExpression__Group__0__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n pushFollow(FOLLOW_rule__XOrExpression__Group__1_in_rule__XOrExpression__Group__011527);\n rule__XOrExpression__Group__1();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "c876dac9d61d28928b93afd7b7bb2a9e", "score": "0.69622785", "text": "public final void rule__RelationalExpr__Group_1_0__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../com.rockwellcollins.atc.resolute.ui/src-gen/com/rockwellcollins/atc/resolute/ui/contentassist/antlr/internal/InternalResolute.g:5275:1: ( rule__RelationalExpr__Group_1_0__0__Impl )\n // ../com.rockwellcollins.atc.resolute.ui/src-gen/com/rockwellcollins/atc/resolute/ui/contentassist/antlr/internal/InternalResolute.g:5276:2: rule__RelationalExpr__Group_1_0__0__Impl\n {\n pushFollow(FOLLOW_rule__RelationalExpr__Group_1_0__0__Impl_in_rule__RelationalExpr__Group_1_0__011103);\n rule__RelationalExpr__Group_1_0__0__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" } ]
e4fbe242f0e86f073986ef3dca3bd682
The terminal&39;s MAC address in your WiFi network.
[ { "docid": "2bc15a7e57bd1c699c258ae2e7b402cd", "score": "0.67701334", "text": "@javax.annotation.Nullable\n @ApiModelProperty(value = \"The terminal's MAC address in your Wi-Fi network.\")\n\n public String getWifiMac() {\n return wifiMac;\n }", "title": "" } ]
[ { "docid": "57556de5682bbd8c35029686ed7b95a2", "score": "0.82742244", "text": "private String getMACAddress() {\n WifiManager wifi = (WifiManager) mContext\n .getSystemService(Context.WIFI_SERVICE);\n WifiInfo info = wifi.getConnectionInfo();\n String mac = info.getMacAddress();\n\n return mac != null ? mac.replace(\":\", \"-\") : null;\n }", "title": "" }, { "docid": "cd8aa884a35cfb4d77be3587970bf89b", "score": "0.77454036", "text": "public String getMacAddress() {\n\n\n try {\n List<NetworkInterface> all = Collections.list(NetworkInterface.getNetworkInterfaces());\n for (NetworkInterface nif : all) {\n if (!nif.getName().equalsIgnoreCase(\"wlan0\")) continue;\n\n byte[] macBytes = nif.getHardwareAddress();\n if (macBytes == null) {\n return \"\";\n }\n\n StringBuilder res1 = new StringBuilder();\n for (byte b : macBytes) {\n //res1.append(Integer.toHexString(b & 0xFF) + \":\");\n res1.append(String.format(\"%02X:\", b));\n }\n\n if (res1.length() > 0) {\n res1.deleteCharAt(res1.length() - 1);\n }\n return res1.toString();\n }\n } catch (Exception ex) {\n }\n return \"02:00:00:00:00:00\";\n\n\n }", "title": "" }, { "docid": "0ae5b4af149eebae7f336202ead850e7", "score": "0.7572098", "text": "public String getMacAddress() {\n\t\treturn String.valueOf(thisNode.getID());\n\t}", "title": "" }, { "docid": "e93a9666c55769de13726bb0e51d630f", "score": "0.75394166", "text": "public String getMacAddress() {\n // String macAddress = null;\n // WifiManager wm = (WifiManager) this.cordova.getActivity().getApplicationContext().getSystemService(Context.WIFI_SERVICE);\n // macAddress = wm.getConnectionInfo().getMacAddress();\n // if (macAddress == null || macAddress.length() == 0) {\n // macAddress = \"00:00:00:00:00:00\";\n // }\n // return macAddress;\n try {\n List<NetworkInterface> all = Collections.list(NetworkInterface.getNetworkInterfaces());\n for (NetworkInterface nif : all) {\n if (!nif.getName().equalsIgnoreCase(\"wlan0\")) continue;\n \n byte[] macBytes = nif.getHardwareAddress();\n if (macBytes == null) {\n return \"\";\n }\n \n StringBuilder res1 = new StringBuilder();\n for (byte b : macBytes) {\n res1.append(Integer.toHexString(b & 0xFF) + \":\");\n }\n \n if (res1.length() > 0) {\n res1.deleteCharAt(res1.length() - 1);\n }\n return res1.toString();\n }\n } catch (Exception ex) {\n }\n return \"02:00:00:00:00:00\";\n }", "title": "" }, { "docid": "f6a2209d15969e4952e5602c8571b9ba", "score": "0.75308955", "text": "public String getMACADDRESS(){\n return MACADDRESS;\n }", "title": "" }, { "docid": "7152bbd96676c9004c30490194fdb1ae", "score": "0.74279135", "text": "public static String getMac(Context context) {\n String[] results = runCommand(BUSYBOX_PATH + \" iplink show wlan0\");\n // Parse iplink command\n String[] parsed = results[1].split(\" \");\n String mac;\n for (int j = 0; j < parsed.length; ++j){\n if (parsed[j].equals(\"link/ether\")) {\n mac = parsed[j+1];\n return mac;\n }\n }\n return \"error\";\n }", "title": "" }, { "docid": "cc1a2cfed5029ca72a0aff76be131eaf", "score": "0.7389968", "text": "String getOS_EXT_IPS_MAC_mac_addr();", "title": "" }, { "docid": "b398b41dcac531c6bfaaa38c7da3dcb4", "score": "0.7221115", "text": "java.lang.String getMac();", "title": "" }, { "docid": "1e063bb8c7042d992e1a8438436b8fd8", "score": "0.72135377", "text": "public String getLocalMac() {\n return localMac;\n }", "title": "" }, { "docid": "99d74f963bcd1e9b8c9b837dab533f4e", "score": "0.72072214", "text": "public static String getLocalMacAddress(Context context) { \n WifiManager wifi = (WifiManager) context.getSystemService(Context.WIFI_SERVICE); \n WifiInfo info = wifi.getConnectionInfo();\n String mac = info.getMacAddress();\n return mac == null || mac.length() == 0 ? \"00:00:00:00:00:00\":mac; \n }", "title": "" }, { "docid": "c18ae7e0ec42c687836c2775fcf77aaa", "score": "0.71842897", "text": "public static String getMac(Context context) {\n\t\tWifiManager manager = (WifiManager) context.getSystemService(Context.WIFI_SERVICE);\n\t\tif (manager == null) {\n\t\t\treturn \"\";\n\t\t}\n\n\t\tWifiInfo info = manager.getConnectionInfo();\n\n\t\treturn info == null ? \"\" : info.getMacAddress();\n\t}", "title": "" }, { "docid": "a2553ef2c1684944b245cb0ba6aa3d09", "score": "0.71348727", "text": "public String getIdtipmac()\n {\n return (String)getAttributeInternal(IDTIPMAC);\n }", "title": "" }, { "docid": "a2553ef2c1684944b245cb0ba6aa3d09", "score": "0.71348727", "text": "public String getIdtipmac()\n {\n return (String)getAttributeInternal(IDTIPMAC);\n }", "title": "" }, { "docid": "1309806d60160a7c1fd9fa0288760a03", "score": "0.7129965", "text": "public java.lang.String getMac() {\n java.lang.Object ref = mac_;\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 mac_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "title": "" }, { "docid": "0b2335e13334b38ce0e94fb9c076c146", "score": "0.70993894", "text": "public String getMacAddr() {\n return macAddr;\n }", "title": "" }, { "docid": "3413625f8c580e7031d1e3a80b777244", "score": "0.7094574", "text": "String MACAddress(Context context);", "title": "" }, { "docid": "e339be259bdd22b3d2baadb15967e1ef", "score": "0.7087554", "text": "public java.lang.String getMac() {\n java.lang.Object ref = mac_;\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 mac_ = s;\n return s;\n }\n }", "title": "" }, { "docid": "a4c8fb52b022cd117c49904252f79538", "score": "0.700933", "text": "private String getNetworkInterface() {\n String mac = \"\";\n try {\n InetAddress address = InetAddress.getLocalHost();\n\n NetworkInterface ni = NetworkInterface.getByInetAddress(address);\n byte[] harwareAddress = ni.getHardwareAddress();\n\n /* Here begins some magic that transforms bytes into a formatted string*/\n for (int i = 0; i < harwareAddress.length; i++) {\n mac += String.format(\"%02X%s\", harwareAddress[i], (i < harwareAddress.length - 1) ? \"-\" : \"\");\n }\n } catch (SocketException | UnknownHostException e) {\n e.getStackTrace();\n }\n\n return mac;\n\n }", "title": "" }, { "docid": "f1fc08d7adc4c12172fdf0f5e3ab3fc2", "score": "0.70021856", "text": "public MacAddress macAddress() {\n return macAddr;\n }", "title": "" }, { "docid": "99ceb2abad4a894fde6498c295471a7b", "score": "0.69124657", "text": "public String getIdmac()\n {\n return (String)getAttributeInternal(IDMAC);\n }", "title": "" }, { "docid": "99ceb2abad4a894fde6498c295471a7b", "score": "0.69124657", "text": "public String getIdmac()\n {\n return (String)getAttributeInternal(IDMAC);\n }", "title": "" }, { "docid": "99ceb2abad4a894fde6498c295471a7b", "score": "0.69124657", "text": "public String getIdmac()\n {\n return (String)getAttributeInternal(IDMAC);\n }", "title": "" }, { "docid": "9d0474c705e67f7c6d1a95a8a0a1c47c", "score": "0.68745244", "text": "public MACAddress getMacAddress() {\n\t\treturn macAddress;\n\t}", "title": "" }, { "docid": "341643df2f949d0bc45ba4efd74a9d6e", "score": "0.68591714", "text": "public com.google.protobuf.ByteString\n getMacBytes() {\n java.lang.Object ref = mac_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n mac_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "title": "" }, { "docid": "89d0992dde48f4c365fe2def971c8752", "score": "0.6854103", "text": "MacAddress macAddress();", "title": "" }, { "docid": "e9a483072794f9504e01500d64b5fdf5", "score": "0.68152016", "text": "protected String produceMac() {\n String[] macParts = new String[]{\n \t\tString.format(\"%02X\", (random.nextInt(255) & 0xF0)), //& 0xF0 to keep it a universal mac address\n \t\tString.format(\"%02X\", random.nextInt(255)),\n \t\tString.format(\"%02X\", random.nextInt(255)),\n \t\tString.format(\"%02X\", random.nextInt(255)),\n \t\tString.format(\"%02X\", random.nextInt(255)),\n \t\tString.format(\"%02X\", random.nextInt(255))\n };\n return Arrays.stream(macParts) \n .collect(Collectors.joining(\":\"));\n }", "title": "" }, { "docid": "2ad48c07f002e973488378e0b0ddbbb3", "score": "0.6782155", "text": "public String getMacName() {\r\n return macName;\r\n }", "title": "" }, { "docid": "47f3ca37980dad10b0bc1ccd0fbf8312", "score": "0.67565817", "text": "public com.google.protobuf.ByteString\n getMacBytes() {\n java.lang.Object ref = mac_;\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 mac_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "title": "" }, { "docid": "c26fb0c39248c099ac735b4f340813d3", "score": "0.6669798", "text": "public String getSafeMac() {\n return safeMac;\n }", "title": "" }, { "docid": "06cd7ba7b2308d301f70872727cae25e", "score": "0.65588295", "text": "@ApiModelProperty(value = \"MAC address. If this attribute is not present, it shall be chosen by the NFV MANO. \")\n public String getMacAddress() {\n return macAddress;\n }", "title": "" }, { "docid": "0c96b403c68571fc46d76190acc76f32", "score": "0.6554966", "text": "@javax.annotation.Nullable\n @ApiModelProperty(value = \"The ethernet MAC address of the terminal.\")\n\n public String getEthernetMac() {\n return ethernetMac;\n }", "title": "" }, { "docid": "5b1e8d3595d1e16f7418a95d1e0a8b46", "score": "0.64938354", "text": "com.google.protobuf.ByteString\n getMacBytes();", "title": "" }, { "docid": "c7d3143236d329e660ca64e773044d96", "score": "0.64535564", "text": "public String m226a() {\n StringBuilder sb = new StringBuilder();\n WifiManager wifiManager = (WifiManager) this.f321a.getSystemService(\"wifi\");\n if (wifiManager == null) {\n return \"\";\n }\n if (wifiManager.isWifiEnabled()) {\n WifiInfo connectionInfo = wifiManager.getConnectionInfo();\n if (connectionInfo != null) {\n String ssid = connectionInfo.getSSID();\n String bssid = connectionInfo.getBSSID();\n if (!c()) {\n if (TextUtils.isEmpty(ssid)) {\n ssid = \"<unknown ssid>\";\n }\n try {\n if (TextUtils.isEmpty(bssid) || bssid.length() != 17 || \"ff:ff:ff:ff:ff:ff\".equals(bssid)) {\n bssid = \"02:00:00:00:00:00\";\n }\n } catch (Throwable unused) {\n }\n } else if (TextUtils.isEmpty(bssid) || bssid.length() != 17 || \"ff:ff:ff:ff:ff:ff\".equals(bssid)) {\n bssid = \"00:00:00:00:00:00\";\n }\n sb.append(ssid);\n sb.append(\",\");\n sb.append(az.c(bssid));\n sb.append(\"|\");\n }\n }\n b.c(\"MAC_FIX mac ssid and mac: \" + sb.toString());\n List<ScanResult> scanResults = wifiManager.getScanResults();\n if (!ae.a(scanResults)) {\n Collections.sort(scanResults, this.f82007a);\n for (int i = 0; i < Math.min(10, scanResults.size()); i++) {\n ScanResult scanResult = scanResults.get(i);\n if (i > 0) {\n sb.append(\";\");\n }\n if (scanResult != null) {\n sb.append(scanResult.SSID);\n sb.append(\",\");\n sb.append(az.c(scanResult.BSSID));\n sb.append(\",\");\n sb.append(scanResult.level);\n }\n }\n }\n b.c(\"MAC_FIX mac ssid group : \" + sb.toString());\n return sb.toString();\n }", "title": "" }, { "docid": "239acc23e707e47a82667f6aa7c70501", "score": "0.63923687", "text": "public String getRemoteMac() {\n return remoteMac;\n }", "title": "" }, { "docid": "7fddd79f05d53651d0906f6c51fb3852", "score": "0.62918764", "text": "public static byte[] getMacAddress() {\n\t\ttry {\n\t\t\t/* Search network interfaces for an interface with a valid, non-blocked hardware address */\n\t \tfor(final NetworkInterface iface: Collections.list(NetworkInterface.getNetworkInterfaces())) {\n\t \t\tif (iface.isLoopback())\n\t \t\t\tcontinue;\n\t \t\tif (iface.isPointToPoint())\n\t \t\t\tcontinue;\n\n\t \t\ttry {\n\t\t \t\tfinal byte[] ifaceMacAddress = iface.getHardwareAddress();\n\t\t \t\tif ((ifaceMacAddress != null) && (ifaceMacAddress.length == 6) && !isBlockedHardwareAddress(ifaceMacAddress)) {\n\t\t \t\t\tlog.debug(\"Hardware address is MAC: \" + toHexString(ifaceMacAddress) + \" (\" + iface.getDisplayName() + \")\");\n\t\t \t \treturn Arrays.copyOfRange(ifaceMacAddress, 0, 6);\n\t\t \t\t}\n\t \t\t}\n\t \t\tcatch (final Throwable e) {\n\t \t\t\t/* Ignore */\n\t \t\t}\n\t \t}\n\t\t}\n\t\tcatch (final Throwable e) {\n\t\t\t/* Ignore */\n\t\t}\n\n\t\t/* Fallback to the IP address padded to 6 bytes */\n\t\ttry {\n\t\t\tfinal byte[] hostAddress = Arrays.copyOfRange(InetAddress.getLocalHost().getAddress(), 0, 6);\n\t\t\tlog.debug(\"Hardware address is IP: \" + toHexString(hostAddress));\n\t\t\treturn hostAddress;\n\t\t}\n\t\tcatch (final Throwable e) {\n\t\t\t/* Ignore */\n\t\t}\n\n\t\t/* Fallback to a constant */\n\t\tlog.debug(\"Hardware address is fake MAC (last resort): 00DEADBEEF00\");\n\t\treturn new byte[] {(byte)0x00, (byte)0xDE, (byte)0xAD, (byte)0xBE, (byte)0xEF, (byte)0x00};\n\t}", "title": "" }, { "docid": "440df49ffb8caaef1dfbf81faa76fc8a", "score": "0.6268482", "text": "public MACAddress getMacAddress(InetAddress ipAddress);", "title": "" }, { "docid": "d285f449991b9d6d77f2dde0cc55e314", "score": "0.6231094", "text": "public String getDesctipmac()\n {\n return (String)getAttributeInternal(DESCTIPMAC);\n }", "title": "" }, { "docid": "11a3ba0ef1dedb9b0f02882c9a50a0c5", "score": "0.618141", "text": "public static void obtenerMAC(byte[] trama) {\n System.out.printf(\"MAC DESTINO:\");\n for (int r = 0; r < 6; r++) { //Obtener la direccion MAC Destino\n if (r % 16 == 0) {\n System.out.println(\"\");\n }\n System.out.printf(\"%02X \", trama[r]);\n\n }\n System.out.println(\"\");\n System.out.println(\"MAC ORIGEN:\");\n for (int r = 6; r < 12; r++) { //Obtener la direccion MAC Origen\n if (r % 16 == 0) {\n System.out.println(\"\");\n }\n System.out.printf(\"%02X \", trama[r]);\n }\n System.out.println(\"\");\n }", "title": "" }, { "docid": "38a50ca2f2fb4c22a426fbd538711fba", "score": "0.6123218", "text": "public void setMac(String mac) {\n this.mac = mac;\n }", "title": "" }, { "docid": "66a64fa5da8ab5eb32940a6367b5fee2", "score": "0.6109541", "text": "public void setIdtipmac(String value)\n {\n setAttributeInternal(IDTIPMAC, value);\n }", "title": "" }, { "docid": "66a64fa5da8ab5eb32940a6367b5fee2", "score": "0.6109541", "text": "public void setIdtipmac(String value)\n {\n setAttributeInternal(IDTIPMAC, value);\n }", "title": "" }, { "docid": "bf751e652dabffddd05205ff77e9f60e", "score": "0.6105112", "text": "public String getIdmac1()\n {\n return (String)getAttributeInternal(IDMAC1);\n }", "title": "" }, { "docid": "bf751e652dabffddd05205ff77e9f60e", "score": "0.6105112", "text": "public String getIdmac1()\n {\n return (String)getAttributeInternal(IDMAC1);\n }", "title": "" }, { "docid": "f6174cb39ba7e3803204a5dcf804631a", "score": "0.607589", "text": "public MACAddress getSrcMacAddress() {\n return srcMac;\n }", "title": "" }, { "docid": "794f5c892cb44dbc2d556faf5ace63a0", "score": "0.60117036", "text": "public Builder setMac(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n mac_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "4382c0306f8bfbe47ae20b88b84b7177", "score": "0.5952838", "text": "public String getTerminalDevice() {\n return terminalDevice;\n }", "title": "" }, { "docid": "9a540479cc3d25e3faa87195d7c82e90", "score": "0.59452355", "text": "public String updatemac(){\r\n\t\tHostNode vo = new HostNode();\r\n\t\tint id=getParaIntValue(\"id\");\r\n\t\tString mac=getParaValue(\"mac\");\r\n\t\tHostNodeDao hostdao=new HostNodeDao();\r\n\t\thostdao.UpdateAixMac(id, mac);\r\n\t\tString id2=\"net\"+id;\r\n\t\t\r\n\t\tDaoInterface dao = new HostNodeDao(); \t \r\n\t setTarget(\"/detail/dispatcher.jsp?flag=1&id=\"+id2);\r\n\t\treturn update(dao, vo);\r\n\t}", "title": "" }, { "docid": "b13ae63ddab01b420aa2814658f3a671", "score": "0.5937823", "text": "public int getMacLength();", "title": "" }, { "docid": "7db975aedbaf56ddab9273cbed5f0b56", "score": "0.5921695", "text": "@javax.annotation.Nullable\n @ApiModelProperty(value = \"The Bluetooth MAC address of the terminal.\")\n\n public String getBluetoothMac() {\n return bluetoothMac;\n }", "title": "" }, { "docid": "b4a1e1e1ecd9d31b99ae493466e4a73a", "score": "0.589337", "text": "public static String getAddress ()\n\t{\n\t\treturn netif.getAddress().toString();\n\t}", "title": "" }, { "docid": "7eea0e81bad42d4ba78e5fbbdf16bd12", "score": "0.58725864", "text": "Builder macAddress(MacAddress macAddress);", "title": "" }, { "docid": "b00012b054c426e073ec4f326f65e566", "score": "0.5844011", "text": "public static boolean isMac()\n {\n return s_isMac;\n }", "title": "" }, { "docid": "1242c8b2072dc408ae2b9ada5d199987", "score": "0.5818819", "text": "public void modificarMac(String MAC){\n miBt.setAddress(MAC);\n }", "title": "" }, { "docid": "89e9ee672eeaf12c055a6da7c9cc10b1", "score": "0.578461", "text": "private String requestediPAddressForGivenMacFromARP(String MAC){\n\t\tfor(ARPObject item : arpList){\n\t\t\tBlackBoard.writeConsole(className, \"ARP List: \"+item.showObject());\n\t\t\tif(item.gethWAddress().equalsIgnoreCase(MAC)){\n\t\t\t\tIP=item.getiPAddress();\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\treturn IP;\n\t}", "title": "" }, { "docid": "46e69ba389fb5014288f4c4693937e1e", "score": "0.5781092", "text": "private void convertMacAddrFormat() {\r\n\r\n StringBuffer buffer = new StringBuffer(enterMacAddress.getText());\r\n int len = buffer.length();\r\n boolean colons = false;\r\n boolean period = false;\r\n for (int i = 0; i < len; i++) {\r\n if (buffer.charAt(i) == Character.valueOf(':')) {\r\n colons = true;\r\n }\r\n if (buffer.charAt(i) == Character.valueOf('.')) {\r\n period = true;\r\n }\r\n }\r\n if (colons) {\r\n for (int i = 0; i < len; i++) {\r\n if (buffer.charAt(i) == ':') {\r\n buffer.deleteCharAt(i);\r\n buffer.insert(i, '-');\r\n }\r\n }\r\n } // assumes using 0001.1111.2222 notation\r\n if (period) {\r\n for (int i = 0; i < len; i++) {\r\n if (buffer.charAt(i) == '.') {\r\n buffer.deleteCharAt(i);\r\n buffer.insert(i, '-');\r\n buffer.insert(i - 2, '-');\r\n if (i > 9) {\r\n buffer.insert(i + 4, '-');\r\n } \r\n }\r\n } \r\n }\r\n outputText.setText(enterMacAddress.getText());\r\n System.out.println(buffer.toString());\r\n enterMacAddress.setText(buffer.toString());\r\n }", "title": "" }, { "docid": "8ebf859727020a3d1ea273fb9e2595d1", "score": "0.5764082", "text": "public static boolean isMac() {\r\n return IS_MAC;\r\n }", "title": "" }, { "docid": "c730a6f0857a3db192916d6e3d23f2e8", "score": "0.5725804", "text": "private String requestediPAddressForGivenMacFromDHCP(String MAC){\n\t\t\n\t\tfor(DHCPObject item : dhcpList){\n\t\t\tBlackBoard.writeConsole(className, \"DHCP List IP: \"+item.iP+\" MAC: \"+item.mAC);\n\t\t\tif(item.mAC.equalsIgnoreCase(MAC)){\n\t\t\t\tIP=item.iP;\n\t\t\t}\n\t\t}\n\t\treturn IP;\n\t}", "title": "" }, { "docid": "d882f553b7cf43b2b8d14272592c85a4", "score": "0.5724736", "text": "public MACAddress getDstMacAddress() {\n return dstMac;\n }", "title": "" }, { "docid": "fbb779141ba312fb00e3c98e0500c310", "score": "0.57113904", "text": "@javax.annotation.Nullable\n @ApiModelProperty(value = \"The ethernet IP address of the terminal.\")\n\n public String getEthernetIp() {\n return ethernetIp;\n }", "title": "" }, { "docid": "c41c4304a20e68b4153024c2c62ba3c0", "score": "0.56951743", "text": "public static void main(String args[]) throws Exception {\n System.out.println(\"ces\");\n try {\n System.out.println(\"mac地址:\" +getLocalMac(\"192.168.7.113\"));\n } catch (Exception e) {\n e.printStackTrace();\n }\n// System.out.println(what(\"192.168.7.109\"));\n// System.out.println(MacUtil.getWindowsMACAddress(\"182.148.48.156\"));\n }", "title": "" }, { "docid": "8c82f0a72f0b751fd6b3b27348194bf7", "score": "0.56849265", "text": "public static ArrayList<String> getMacAddress() throws Exception {\n\t\tFile file = File.createTempFile(\"javastorm\",\".vbs\");\n\t\tfile.deleteOnExit();\n\t\tFileWriter fileWriter = new FileWriter(file);\n\t\tString str = \"Set objWMIService = GetObject(\\\"winmgmts:\\\\\\\\.\\\\root\\\\cimv2\\\") \\n Set colItems = objWMIService.ExecQuery \" +\n\t\t\t\t\"_ \\n (\\\"Select * from Win32_NetworkAdapterConfiguration\\\") \\n For Each objItem in colItems \\n \" +\n\t\t\t\t\"if objItem.IPEnabled = 0 And objItem.ServiceName <> \\\"VMnetAdapter\\\" And isNull(objItem.MACAddress) = 0 \" +\n\t\t\t\t\"Then \\n Wscript.Echo objItem.MACAddress \\n End if \\nNext \\n\";\n\t\tfileWriter.write(str);\n\t\tfileWriter.close();\n\t\tProcess process = Runtime.getRuntime().exec(\"cscript //NoLogo \" + file.getPath());\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(process.getInputStream()));\n\t\tString result = br.readLine();\n\t\tArrayList<String> list = new ArrayList<String>();\n\t\twhile(result != null) {\n\t\t\tlist.add(result.trim());\n\t\t\tresult = br.readLine();\n\t\t}\n\t\tbr.close();\n\t\treturn list;\n\t}", "title": "" }, { "docid": "1c543d8cce7cb4dc45f608e5f65f2c59", "score": "0.55561125", "text": "public java.lang.String getTerminalId() {\n return terminalId;\n }", "title": "" }, { "docid": "f22214a25d7983427f78387aa311a03a", "score": "0.5553342", "text": "public void setIdmac(String value)\n {\n setAttributeInternal(IDMAC, value);\n }", "title": "" }, { "docid": "f22214a25d7983427f78387aa311a03a", "score": "0.5553342", "text": "public void setIdmac(String value)\n {\n setAttributeInternal(IDMAC, value);\n }", "title": "" }, { "docid": "f22214a25d7983427f78387aa311a03a", "score": "0.5553342", "text": "public void setIdmac(String value)\n {\n setAttributeInternal(IDMAC, value);\n }", "title": "" }, { "docid": "939c1dd89f2437f5f67de1ee16fbae6a", "score": "0.55221665", "text": "public void setLocalMac(String localMac) {\n this.localMac = localMac;\n }", "title": "" }, { "docid": "41ccf93e565b769b33233cad810dd5c6", "score": "0.547505", "text": "public void setMacAddr(String macAddr) {\n this.macAddr = macAddr == null ? null : macAddr.trim();\n }", "title": "" }, { "docid": "b90e80093a28b72edcadaa117d366637", "score": "0.5440993", "text": "@NonNull\n byte[] getMacAddressBytes(@NonNull String macAddress) {\n final byte[] bytes = new byte[6];\n final String rawMac = macAddress.replace(\":\", \"\").replace(\"-\", \"\");\n\n for (int i = 0; i < 6; i++) {\n bytes[i] = ((Integer) Integer.parseInt(rawMac.substring(i * 2, (i + 1) * 2), 16)).byteValue();\n }\n\n return bytes;\n }", "title": "" }, { "docid": "d8cdf9e180379cdfa12dba2e3b91c9a1", "score": "0.54225665", "text": "public long readDestMac(Packet packet)\r\n {\r\n return EthernetUtils.readDestMac(packet,\r\n packet.driverOffset[layer]);\r\n }", "title": "" }, { "docid": "9fb04f0a37e1f86c1a646354d1e28e5f", "score": "0.5421267", "text": "public static String formatMacAddress(byte[] macAddress) {\n return formatMacAddress(new StringBuilder(17), macAddress, ':').toString();\n }", "title": "" }, { "docid": "7951b457e873a720cb16497d49fca3f8", "score": "0.54154265", "text": "public String device() {\n\t\treturn \"普通打印机\";\r\n\t}", "title": "" }, { "docid": "926bc3bbae3704fd97ce023e7062e1df", "score": "0.53832644", "text": "public void getThisDeviceAddress() {\n\t\ttry {\n\t\t\tEnumeration<NetworkInterface> e = NetworkInterface.getNetworkInterfaces();\n\t\t\twhile(e.hasMoreElements()) {\n\t\t\t\t\n\t\t\t\tNetworkInterface network = (NetworkInterface)e.nextElement();\n\t\t\t\tEnumeration<InetAddress> ee = network.getInetAddresses();\n\t\t\t\twhile(ee.hasMoreElements()) {\n\t\t\t\t\tInetAddress i = ee.nextElement();\n\t\t\t\t\t\n\t\t\t\t\tif(!i.isLinkLocalAddress()) {\n\t\t\t\t\t\tif(i instanceof Inet4Address) {\n\t\t\t\t\t\t\taddIPv4AddressList(i.getHostAddress());\n\t\t\t\t\t\t\tSystem.out.println(\"IP Adress 4v: \" + i.getHostAddress());\n\t\t\t\t\t\t} else if (i instanceof Inet6Address) {\n\t\t\t\t\t\t\taddIPv6AddressList(i.getHostAddress());\n\t\t\t\t\t\t\tSystem.out.println(\"IP Adress 6v: \" + i.getHostAddress());\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} catch (SocketException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "title": "" }, { "docid": "57d780082ff1ab4727089352e7ff1b59", "score": "0.5378031", "text": "public String getHomeAddress() {\n return (String)getAttributeInternal(HOMEADDRESS);\n }", "title": "" }, { "docid": "32ce7e0141f9e3f2cb7cfb2d14cf6852", "score": "0.53535724", "text": "public String getIP(String MAC){\n\t\ttry {\n\t\t\tThread.sleep(2000);//I have to check this time\n\t\t} catch (InterruptedException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t//we have to read file each time, because new User would be added to the file\n\t\treadARPFile();\n\t\t//readDHCPFile();\n\t\t\n\t\trequestediPAddressForGivenMacFromARP(MAC);\n\t\t//requestediPAddressForGivenMacFromDHCP(MAC);\n\t\tBlackBoard.writeConsole(className, \"requested IP: \"+IP);\n\t\treturn IP;\n\t}", "title": "" }, { "docid": "b3b34ed39c0c8f3d4d178556c81341e8", "score": "0.53201157", "text": "public String getBSSID(){\n return BSSID;\n }", "title": "" }, { "docid": "6bb7eb9c80b835b3df362114a6fc27ff", "score": "0.5286851", "text": "public SecretKey getServerMacKey() {\n return serverMacKey;\n }", "title": "" }, { "docid": "d22d77f80e126dd7952cf542e30452f0", "score": "0.52811044", "text": "public String getThisDeviceCommand() {\n\t\tString os = getThisDeviceOS();\n\t\tString command = \"\";\n\t\t\n\t\tif(os.contains(\"Mac\") || os.contains(\"Ubuntu\") || os.contains(\"Linux\")) {\n\t\t\tcommand = \"-c\";\n\t\t} else if(os.contains(\"Windows\")) {\n\t\t\tcommand = \"-n\";\n\t\t} \n\t\treturn command;\n\t}", "title": "" }, { "docid": "04326a1ab3702d0baddeded988968ab9", "score": "0.5267293", "text": "public boolean isSetMac() {\n return this.mac != null;\n }", "title": "" }, { "docid": "63e07a95394a21c2d826283928a24b89", "score": "0.5248326", "text": "public void setDesctipmac(String value)\n {\n setAttributeInternal(DESCTIPMAC, value);\n }", "title": "" }, { "docid": "5f7fb31626f9849dd50b5f83bb9b20df", "score": "0.52336496", "text": "private String getHostAddress() {\n try {\n InetAddress iaddr = InetAddress.getLocalHost();\n return iaddr.getHostAddress();\n } catch (UnknownHostException e) {\n return \"?unknown?\";\n }\n }", "title": "" }, { "docid": "2b5268b52b67f513084d3b6db92f2b9c", "score": "0.52283424", "text": "public Set<String> getDeviceMacList() {\n if (maclist.size() == 0) {\n DeviceBean dbin;\n for (int i = 0; i < list.size(); i++) {\n dbin = list.get(i);\n maclist.add(dbin.getMac());\n }\n }\n return maclist;\n }", "title": "" }, { "docid": "8f8d615b260b0030a4d943d3ea975191", "score": "0.5215955", "text": "public void setMacName(String macName) {\r\n this.macName = macName;\r\n }", "title": "" }, { "docid": "5970d47ccd5c7bcbf958970be033ab1e", "score": "0.51987803", "text": "@Override\n public String[] getFactoryMacAddresses() {\n final int uid = Binder.getCallingUid();\n if (!mWifiPermissionsUtil.checkNetworkSettingsPermission(uid)) {\n throw new SecurityException(\"App not allowed to get Wi-Fi factory MAC address \"\n + \"(uid = \" + uid + \")\");\n }\n final List<String> result = new ArrayList<>();\n boolean success = mWifiInjector.getClientModeImplHandler().runWithScissors(() -> {\n final String mac = mClientModeImpl.getFactoryMacAddress();\n if (mac != null) {\n result.add(mac);\n }\n }, RUN_WITH_SCISSORS_TIMEOUT_MILLIS);\n if (success) {\n return result.isEmpty() ? null : result.stream().toArray(String[]::new);\n }\n return null;\n }", "title": "" }, { "docid": "708979156522c692919d26ae8cfe3f56", "score": "0.519558", "text": "public long readSourceMac(Packet packet)\r\n {\r\n return EthernetUtils.readSrcMac(packet,\r\n packet.driverOffset[layer]);\r\n }", "title": "" }, { "docid": "19ec90198d211476d944326a962c669e", "score": "0.5187343", "text": "public static String getHostName() {\n try {\n InetAddress iAddress = InetAddress.getLocalHost();\n String hostName = iAddress.getHostName();\n // String canonicalHostName = iAddress.getCanonicalHostName();\n return hostName;\n } catch (Exception e) {\n log.error(\"Error getting hostname\");\n }\n\n return toHexString(getMacAddress());\n }", "title": "" }, { "docid": "343b54a171341034d6100593717d30df", "score": "0.5155879", "text": "@javax.annotation.Nullable\n @ApiModelProperty(value = \"The terminal's IP address in your Wi-Fi network.\")\n\n public String getWifiIp() {\n return wifiIp;\n }", "title": "" }, { "docid": "9b99fc213e3aaf2f5867ca64512cb849", "score": "0.51494586", "text": "public String getTerminalNo()\n\t{\n\t\treturn getValue(InstockPlan.TERMINALNO).toString();\n\t}", "title": "" }, { "docid": "06c23b73ecf412f6be46f869f1c070c2", "score": "0.51485175", "text": "public static String getDeviceWifiAddress(Context context) throws UnknownHostException {\n WifiManager wifiMgr = (WifiManager) context.getSystemService(context.WIFI_SERVICE);\n WifiInfo wifiInfo = wifiMgr.getConnectionInfo();\n int ipAddress = wifiInfo.getIpAddress();\n\n if (ByteOrder.nativeOrder().equals(ByteOrder.LITTLE_ENDIAN)) {\n ipAddress = Integer.reverseBytes(ipAddress);\n }\n\n byte[] ipByteArray = BigInteger.valueOf(ipAddress).toByteArray();\n\n InetAddress address = InetAddress.getByAddress(ipByteArray);\n\n return address.getHostAddress();\n }", "title": "" }, { "docid": "d246461ce4332b690f9a82df18330aed", "score": "0.5141917", "text": "public Builder clearMac() {\n \n mac_ = getDefaultInstance().getMac();\n onChanged();\n return this;\n }", "title": "" }, { "docid": "7b7146ce8645b9329a5b78535ee83793", "score": "0.5120472", "text": "private MacAddress getDstMacFromSelector(FlowRule flowRule) {\n Criterion criterion = flowRule.selector().getCriterion(Criterion.Type.ETH_DST);\n if (criterion != null && criterion instanceof EthCriterion) {\n EthCriterion eth = (EthCriterion) criterion;\n return eth.mac();\n } else {\n return null;\n }\n }", "title": "" }, { "docid": "a7616c8e1da767d719faf10a13d869ac", "score": "0.51174676", "text": "private MacAddress getDstMacFromTreatment(FlowRule flowRule) {\n Instruction instruction = flowRule.treatment().allInstructions().stream()\n .filter(inst -> inst instanceof ModEtherInstruction &&\n ((ModEtherInstruction) inst).subtype().equals(ETH_DST))\n .findFirst()\n .orElse(null);\n\n if (instruction == null) {\n return null;\n }\n\n return ((ModEtherInstruction) instruction).mac();\n }", "title": "" }, { "docid": "62739fe73c0636b03414ebddaf70f1c9", "score": "0.51139456", "text": "public Builder setMacBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n mac_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "d4be59e654e1e36be7a4b9dd5eaca1a8", "score": "0.50997037", "text": "String getUserIP();", "title": "" }, { "docid": "e233569b5393470a1d299857729ab343", "score": "0.5095592", "text": "public String mo8885c() {\n StringBuilder sb = new StringBuilder();\n sb.append(mo8883a());\n sb.append(':');\n sb.append(mo8884b());\n return sb.toString();\n }", "title": "" }, { "docid": "3842f8d26af2dd4af30f078067ba79ef", "score": "0.5092906", "text": "public void setMacAddress(MACAddress macAddress) {\n\t\tthis.macAddress = macAddress;\n\t}", "title": "" }, { "docid": "2e5f5b89151366444a5bdda49ea76321", "score": "0.50891596", "text": "public int getPhysicalAddress() {\n return this.mCecController.getPhysicalAddress();\n }", "title": "" }, { "docid": "f98efc592be0dc4f2d2b76d7e5f93291", "score": "0.5064738", "text": "public String findRouter(Context context) throws IOException{\n\n\n WifiManager wm = (WifiManager)context.getSystemService(context.WIFI_SERVICE);\n\n return wm.getDhcpInfo().toString();\n\n// List<String> commandList = new ArrayList<>();\n// commandList.add(\"ipconfig\");\n// ProcessBuilder pb = new ProcessBuilder();\n// Process process = pb.start();\n// BufferedReader stdInput = new BufferedReader(\n// new InputStreamReader(\n// process.getInputStream()\n// )\n// );\n// String Line = null;\n// String IPString = \"\";\n// while ((Line = stdInput.readLine()) != null){\n// IPString += Line;\n// }\n//\n// return IPString; //returns string of router's ip address\n }", "title": "" }, { "docid": "8cafffd877526d3ac6abd1246585d0e3", "score": "0.50246656", "text": "public String getMACHINE_NAME_IP() {\r\n return MACHINE_NAME_IP;\r\n }", "title": "" }, { "docid": "844bdf29bb66b254f5d02cb9aebabf68", "score": "0.50231856", "text": "public static String getIP()\n {\n try\n {\n Enumeration<NetworkInterface> ni = NetworkInterface.getNetworkInterfaces();\n while (ni.hasMoreElements())\n {\n NetworkInterface i = ni.nextElement();\n if (!i.isLoopback() && i.isUp())\n {\n for (InterfaceAddress ia: i.getInterfaceAddresses())\n {\n if (ia.getAddress().getAddress().length == 4) { // length = 16 IPv6\n return ia.getAddress().toString();\n }\n }\n }\n\n }\n }\n catch (SocketException e)\n {\n e.printStackTrace();\n }\n\n return null;\n }", "title": "" }, { "docid": "957eb31f46433bf4ed0a5296c7859000", "score": "0.50187695", "text": "@Nonnull String hex();", "title": "" } ]
899161c4c0dd3fc46838cb25694c3444
hide add button if the screen is readonly
[ { "docid": "61dd34ea8eec61703177a57d28e6c467", "score": "0.65231335", "text": "@Override\r\n\tpublic boolean isVisible()\r\n\t{\n\t\treturn !this.getFormScreen().isReadonly();\r\n\t}", "title": "" } ]
[ { "docid": "5c3cb6d73c570c5318d1f797f76a007c", "score": "0.7120933", "text": "private void enableDisableAdd(){\n if (!isAdd) {\n isAdd = true;\n }else{\n isAdd = false;\n add.setText(\"Add\");\n }\n }", "title": "" }, { "docid": "3eba6f42b70361a61bc234ebbe2d865f", "score": "0.623841", "text": "public void showEditPanel() {\n\t\tthis.addPanel.unlockElements();\n\t}", "title": "" }, { "docid": "21c38b20d2e503e176f4bc7fa7b4d68f", "score": "0.6133411", "text": "public void modoLectura() {\n editar.setEnabled(false);\n nombre.setEnabled(false);\n descripcion.setEnabled(false);\n equipo.setEnabled(false);\n fechac.setEnabled(false);\n fechal.setEnabled(false);\n switch1.setEnabled(false);\n spinner1.setEnabled(false);\n\n }", "title": "" }, { "docid": "1405d9bec7a9436a3ae5e99aecce531b", "score": "0.6088598", "text": "private static void showOrHideStartButton()\r\n\t{\r\n\t\tif (connectionData.presentedBrickList.isEmpty())\r\n\t\t{\r\n\t\t\tbtnNewButton_1.setEnabled(false);\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tbtnNewButton_1.setEnabled(true);\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "2a283c507fb6aa03e235c153164af9c5", "score": "0.6070322", "text": "private void updateControls() {\n btnInvite.setDisabled(lstSessions.getSelectedCount() == 0);\n }", "title": "" }, { "docid": "7f8f7908f039647489be1b7530686b07", "score": "0.6050807", "text": "public void disableEdit() {\n checkThenAppend(t1, limitText1);\n checkThenAppend(t2, 4);\n\n phone.setText(zip.getSelectedItem() + \" - \" + t1.getText() + \" - \" + t2.getText());\n\n zip.setVisible(false);\n t1.setVisible(false);\n t2.setVisible(false);\n hyphen.setVisible(false);\n phone.setVisible(true);\n }", "title": "" }, { "docid": "eb4cd43904398df423de14c4359461ae", "score": "0.60182136", "text": "@FXML\n private void hideItems() {\n if (isOpenedByClinician) {\n //user is a clinician looking at donors profile, maximise functionality\n buttonSaveMedications.setVisible(true);\n buttonDeleteMedication.setVisible(true);\n buttonShowDrugInteractions.setVisible(true);\n buttonViewActiveIngredients.setVisible(true);\n buttonAddMedication.setVisible(true);\n buttonMedicationCurrentToHistoric.setVisible(true);\n buttonMedicationHistoricToCurrent.setVisible(true);\n textFieldMedicationSearch.setVisible(true);\n tableViewActiveIngredients.setVisible(true);\n tableViewDrugInteractionsNames.setVisible(true);\n tableViewDrugInteractions.setVisible(true);\n buttonClearCache.setVisible(true);\n buttonMedicationHistoricToCurrent.setDisable(true);\n buttonMedicationCurrentToHistoric.setDisable(true);\n buttonDeleteMedication.setDisable(true);\n buttonShowDrugInteractions.setDisable(true);\n buttonViewActiveIngredients.setDisable(true);\n } else {\n // user is a standard profile, limit functionality\n buttonSaveMedications.setVisible(false);\n buttonDeleteMedication.setVisible(false);\n buttonShowDrugInteractions.setVisible(false);\n buttonViewActiveIngredients.setVisible(false);\n buttonAddMedication.setVisible(false);\n buttonMedicationCurrentToHistoric.setVisible(false);\n buttonMedicationHistoricToCurrent.setVisible(false);\n textFieldMedicationSearch.setVisible(false);\n tableViewActiveIngredients.setVisible(false);\n tableViewDrugInteractionsNames.setVisible(false);\n tableViewDrugInteractions.setVisible(false);\n buttonClearCache.setVisible(false);\n }\n }", "title": "" }, { "docid": "add3ff086e08eda464624fc5b3972bda", "score": "0.5961608", "text": "private void toggleEditing() {\n \tboolean status = !this.name.isDisabled();\n \t\n \tthis.name.setDisable(status);\n \tthis.houseLocation.setDisable(status);\n \tthis.contact.setDisable(status);\n \tthis.landlord.setDisable(status);\n \tthis.caretaker.setDisable(status);\n \tthis.saveBtn.setVisible(!status);\n \tthis.cancelBtn.setVisible(!status);\n \tthis.toggleEdit.setDisable(!status);\n }", "title": "" }, { "docid": "730d1833250e34eceb3ac9b880900c0d", "score": "0.59095395", "text": "public void isReadOnly(boolean b){\r\n\t\t_cutMenuItem.setEnabled(b);\r\n\t\t_pasteMenuItem.setEnabled(b);\r\n\t\t_cutMenuItem.setVisible(b);\r\n\t\t_pasteMenuItem.setVisible(b);\r\n\t}", "title": "" }, { "docid": "770320cf750d5d84f24c3577e17dadc5", "score": "0.59089243", "text": "private void limpiar(){\n txtID.setText(\"\");\n txtNombre.setText(\"\");;\n txtRFC.setText(\"\");\n txtDireccion.setText(\"\");\n txtTelefono.setText(\"\");\n txtPaginaWeb.setText(\"\");\n txtNombre.setEnabled(true);\n txtRFC.setEnabled(true);\n txtDireccion.setEnabled(true);\n txtTelefono.setEnabled(true);\n txtPaginaWeb.setEnabled(true);\n btnGuardar.setText(\"Guardar\");\n }", "title": "" }, { "docid": "1728b3bd6023927ed1c056ef795e4103", "score": "0.5901551", "text": "@Override\n \t\tprotected void updateEnablement() {\n \t\t\t// Add button is always available\n \t\t}", "title": "" }, { "docid": "bff5ed3c214978a7a0102fa326604857", "score": "0.58828723", "text": "public void setEdit(){\n if (0<=painting.getId() && painting.getId()<=10){\n\n artist.setEnabled(false);\n title.setEnabled(false);\n room.setEnabled(false);\n year.setEnabled(false);\n description.setEnabled(false);\n //set buttons to the correct settings for this painting\n add.setText(\"Update Painting\");\n permissionNeeded = false;\n }\n }", "title": "" }, { "docid": "40ec0aabecd30974525ff79d4522b4fc", "score": "0.5863022", "text": "@FXML\n private void showHideCompletedTask(){\n\n if(completeTaskListView.disabledProperty().get()){\n completeTaskListView.disableProperty().setValue(false);\n completeTaskListView.setVisible(true);\n\n showHideCompletedTaskButton.setText(\"Hide Completed Tasks\");\n }else{\n\n completeTaskListView.disableProperty().setValue(true);\n completeTaskListView.setVisible(false);\n\n showHideCompletedTaskButton.setText(\"Show Completed Tasks\");\n\n }\n\n }", "title": "" }, { "docid": "189ba83df6465472158753dc08389957", "score": "0.5858816", "text": "public void hideRollButton(){\n\t\trollButton.setVisible(false);\n\t}", "title": "" }, { "docid": "e72c8e0b30e8206e7b7078b5ab5e2923", "score": "0.5843818", "text": "public void hideForEditing () {\n findViewById(R.id.sheet_2).setVisibility(View.GONE);\n findViewById(R.id.lv_historic_main).setVisibility(View.GONE);\n findViewById(R.id.frm_topbar).setVisibility(View.GONE);\n }", "title": "" }, { "docid": "38d70bba870481e49a5d2291eb484e44", "score": "0.58378166", "text": "private void updateRegisterButton() {\n\t\tregisterButton.setDisable(usernameTextField.getText().isEmpty() || passwordField.getText().isEmpty()\n\t\t\t\t|| emailTextField.getText().isEmpty());\n\t}", "title": "" }, { "docid": "8e91e10d329dc70f5395bb2968cbca10", "score": "0.5808249", "text": "private void disableControls() {\n\t\teditTxt.setEnabled(false);\n\t\tifBtn.setEnabled(false);\n\t\tifelseBtn.setEnabled(false);\n\t\tforBtn.setEnabled(false);\n\t\tdelCodeButton.setEnabled(false);\n\t\taddCommentBtn.setEnabled(false);\n\t\tmodeInsert.setEnabled(false);\n\t\tmodeEdit.setEnabled(false);\n\t}", "title": "" }, { "docid": "2c0ae83fe89a62e3f533c7a57828f78e", "score": "0.5782066", "text": "public boolean canEdit() {\n return false;\n }", "title": "" }, { "docid": "89a8fe10f2b93c6f2c84df3014709eb4", "score": "0.5774576", "text": "boolean isReadonly();", "title": "" }, { "docid": "a82b9996bb0e3159d659137a2a317133", "score": "0.576519", "text": "@SuppressWarnings(\"serial\")\n private void addControls() {\n\t\tsaveButton = new AjaxButton(\"submitButton\", ResourceUtils.getModel(\"button.save\")) {\n\t\t\t@Override\n\t\t\tprotected void onSubmit(AjaxRequestTarget target, Form<?> form) {\n\t\t\t\tonSubmitAction(LicenseEditForm.this.form.getModel(), target, form);\n\t\t\t\ttarget.add(form);\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tprotected void onError(AjaxRequestTarget target, Form<?> form) {\n\t\t\t\tsuper.onError(target, form);\n\t\t\t\ttarget.add(form);\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tprotected void onConfigure() {\n\t\t\t\tsuper.onConfigure();\n\t\t\t\tthis.setVisible(displayControls);\n\t\t\t}\n\t\t};\n saveButton.setVisibilityAllowed(false);\n\t\tform.add(saveButton);\n\t\t\n AjaxButton button = new AjaxButton(\"cancelButton\", ResourceUtils.getModel(\"button.cancel\")) {\n\t\t\t@Override\n\t\t\tprotected void onSubmit(AjaxRequestTarget target, Form<?> form) {\n\t\t\t\tonCancelAction(LicenseEditForm.this.form.getModel(), target, form);\n\t\t\t\tform.clearInput();\n\t\t\t\ttarget.add(form);\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tprotected void onConfigure() {\n\t\t\t\tsuper.onConfigure();\n\t\t\t\tthis.setVisible(displayControls);\n\t\t\t}\n\t\t};\n\t\tbutton.setDefaultFormProcessing(false);\n\t\tform.add(button);\n\n\t\t/*button = new AjaxButton(\"removeButton\", ResourceUtils.getModel(\"button.remove\")) {\n\t\t\t@Override\n\t\t\tprotected void onSubmit(AjaxRequestTarget target, Form<?> form) {\n\t\t\t\tonRemoveAction(LicenseEditForm.this.form.getModel(), target, form);\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tprotected void onConfigure() {\n\t\t\t\tsuper.onConfigure();\n\t\t\t\tthis.setVisible(displayControls && displayRemoveButton);\n\t\t\t}\n\t\t};\n\t\tform.add(button);*/\n\t}", "title": "" }, { "docid": "b3a1695a2442c5c988d005063e46b65c", "score": "0.57593644", "text": "public void unlockScheduleControls() {\n noScheduleOpenLabel.setVisible(false);\n spreadsheetView.setVisible(true);\n dpSelectScheduleWeek.setDisable(false);\n btnCreateSchedule.setDisable(false);\n chkboxEditMode.setDisable(false);\n }", "title": "" }, { "docid": "0f44f50cf2cefef7083fb486c32a714d", "score": "0.57587224", "text": "@Override\n public void onClick(View v) {\n mAddFieldFooter.setVisibility(View.GONE);\n addItem();\n }", "title": "" }, { "docid": "ab1b28f48c77b33ddc38d969c0c52a14", "score": "0.5755042", "text": "public static boolean isShowButton() {\r\n return org.exoplatform.wcm.webui.Utils.isAdministratorUser() && Utils.hasPushButtonPermission(PERMISSIONS_VARIABLE);\r\n }", "title": "" }, { "docid": "d904974b9172859752013c0b6e976494", "score": "0.57474864", "text": "@Override\n\tprotected void fireEditingStopped() {\n\t\tsuper.fireEditingStopped();\n //btn.setVisible(false);\n\t}", "title": "" }, { "docid": "d904974b9172859752013c0b6e976494", "score": "0.57474864", "text": "@Override\n\tprotected void fireEditingStopped() {\n\t\tsuper.fireEditingStopped();\n //btn.setVisible(false);\n\t}", "title": "" }, { "docid": "b0e0c9f1bee33d176bd19e503a969a49", "score": "0.5734311", "text": "public boolean renderAddFormButton() {\n // The following line of code is called a ternary operator or conditional operator.\n return (selectedEvent == null)? false: (selectedEvent.getType().isUnscheduledFormAllowed());\n }", "title": "" }, { "docid": "c05bf5bc5f0d0167f585c58a746a435f", "score": "0.57229555", "text": "private void lockInfo() {\n fabGuardar.hide();\n btnFecha.setEnabled(false);\n btnHoraEntrada.setEnabled(false);\n btnHoraSalida.setEnabled(false);\n btnFirma.setEnabled(false);\n btnVehiculoGuardar.setEnabled(false);\n btnAreaGuardar.setEnabled(false);\n\n etContacto.setEnabled(false);\n chkAreaInterior.setEnabled(false);\n chkAreaExterior.setEnabled(false);\n chkAreaVehiculo.setEnabled(false);\n chkArea.setEnabled(false);\n spTipoServ.setEnabled(false);\n spTipoInstalacion.setEnabled(false);\n etTipoServOtro.setEnabled(false);\n chkAspersion.setEnabled(false);\n chkMicroniz.setEnabled(false);\n chkTermoneb.setEnabled(false);\n chkInyeccion.setEnabled(false);\n chkCeboRoden.setEnabled(false);\n chkCeboGel.setEnabled(false);\n chkTrampas.setEnabled(false);\n\n etObservaciones.setEnabled(false);\n chkLiquidado.setEnabled(false);\n spModoPago.setEnabled(false);\n etDineroRecibido.setEnabled(false);\n\n vehiculoAdapter.hideDelete(true);\n etVehiculoMarca.setEnabled(false);\n etVehiculoMatricula.setEnabled(false);\n etVehiculoNumEco.setEnabled(false);\n\n areaAdapter.hideDelete(true);\n etAreaNombre.setEnabled(false);\n }", "title": "" }, { "docid": "3d639d9e18add99328397e6646c375fd", "score": "0.5718874", "text": "@SuppressWarnings(\"unchecked\")\n \n public void disable(){\n modifyLabel.setEnabled(false);\n nameTextField.setEnabled(false);\n colorTextField.setEnabled(false);\n weightTextField.setEnabled(false);\n priceTextField.setEnabled(false);\n materialTextField.setEnabled(false);\n idTextField.setEnabled(true);\n loadLabel.setEnabled(true);\n idTextField.setText(\"\");\n nameTextField.setText(\"\");\n colorTextField.setText(\"\");\n weightTextField.setText(\"\");\n priceTextField.setText(\"\");\n idTextField.setText(\"\"); \n materialTextField.setText(\"\");\n }", "title": "" }, { "docid": "e1dd9e3173e4f964e7e64a16a1e09848", "score": "0.57187754", "text": "private void updateVisibility()\r\n {\r\n if (!searchField.getText().trim().equals(\"\"))\r\n {\r\n searchButton.setEnabled(true);\r\n clearButton.setEnabled(true);\r\n }\r\n else\r\n {\r\n searchButton.setEnabled(false);\r\n clearButton.setEnabled(false);\r\n }\r\n }", "title": "" }, { "docid": "c72e57c2b41a0d77dcba3abe3860b42e", "score": "0.5696873", "text": "@FXML\n\tvoid enableEditMode() {\n\t\tif(cmiEnableEditMode.isSelected()) {\n\t\t\t//Enable edit mode\n\t\t\tsuper.enableEditMode();\n\t\t\ttxtCrewpersonNo.setDisable(false);\n\t\t\ttxtNewCrewpersonNo.setVisible(true);\n\t\t\t\n\t\t} else {\n\t\t\t//Disable edit mode\n\t\t\tsuper.enableEditMode();\n\t\t\ttxtCrewpersonNo.setText(null);\n\t\t\ttxtCrewpersonNo.setDisable(true);\n\t\t\ttxtNewCrewpersonNo.setVisible(false);\n\t\t}\n\t}", "title": "" }, { "docid": "39e7602f084b6f28bdff8873719feb78", "score": "0.56878704", "text": "private void setButtonVisibility() {\n List<Button> buttons = List.of(newShiftButton, editShiftButton, deleteShiftButton);\n boolean visible = getAccess().isGroupAdmin(getActiveGroupId(), getActiveUsername());\n for (Button button : buttons) {\n button.setVisible(visible);\n }\n }", "title": "" }, { "docid": "ebcc0345e39ec550da3327d457f88f43", "score": "0.5679114", "text": "boolean isReadOnly();", "title": "" }, { "docid": "ebcc0345e39ec550da3327d457f88f43", "score": "0.5679114", "text": "boolean isReadOnly();", "title": "" }, { "docid": "ebcc0345e39ec550da3327d457f88f43", "score": "0.5679114", "text": "boolean isReadOnly();", "title": "" }, { "docid": "ebcc0345e39ec550da3327d457f88f43", "score": "0.5679114", "text": "boolean isReadOnly();", "title": "" }, { "docid": "ebcc0345e39ec550da3327d457f88f43", "score": "0.5679114", "text": "boolean isReadOnly();", "title": "" }, { "docid": "f48a4c11b21a42b6638371f240ba40c4", "score": "0.567347", "text": "public boolean isAddClicked() {\r\n return addClicked;\r\n }", "title": "" }, { "docid": "d5b1fa72199d40d76763b7a8a2f8dd4a", "score": "0.5667517", "text": "private void enableInputs(){\n usernameTextField.setDisable(false);\n emailTextField.setDisable(false);\n nombreTextField.setDisable(false);\n apellidoTextFIeld.setDisable(false);\n telefonoTextFIeld.setDisable(false);\n celularTextFIeld.setDisable(false);\n direccionTextArea.setDisable(false);\n }", "title": "" }, { "docid": "dca15b8a860c7a8460f94f7eedfe13fc", "score": "0.5656847", "text": "public void btnChangedInitialMode(){\n btn_cook.setVisibility(View.GONE);\n btn_add.setVisibility(View.VISIBLE);\n btn_delete.setVisibility(View.GONE);\n }", "title": "" }, { "docid": "f9cbfce67fbf8f9330726698da7c297a", "score": "0.5653683", "text": "public void doReadOnlyMode(boolean b) {\r\n txtb_kdruangan.setReadonly(b);\r\n txtb_namaruangan.setReadonly(b);\r\n txtb_maxkuliah.setReadonly(b);\r\n txtb_maxujian.setReadonly(b);\r\n// txtb_status.setReadonly(b);\r\n cmb_status.setDisabled(b);\r\n }", "title": "" }, { "docid": "f3715a5e793dce6200d5c84de08f3abd", "score": "0.565363", "text": "public boolean enable_special_button(){\n\t\tusername=getUserName();\n\t\tUser u=query.findUser(username);\n\t\tif(u.getRole().equals(\"U\"))\n\t\t\treturn false;\n\t\treturn true;\n\t\t\t\n\t}", "title": "" }, { "docid": "80ce61a58e374629d4f0ec95c33b471e", "score": "0.56427366", "text": "private void enableDisableControls() {\r\n // Enable/Disable widgets of the control panel\r\n boolean hasColumn = table.getColumnCount() > 0;\r\n boolean hasRow = table.getRowCount() > 0;\r\n btnAddRows.setEnabled(hasColumn);\r\n btnRemoveColumn.setEnabled(hasRow);\r\n btnRemoveRows.setEnabled(hasRow);\r\n chckbxRowSelection.setEnabled(hasRow);\r\n chckbxColumnSelection.setEnabled(hasRow);\r\n chckbxListAutoResize.setEnabled(hasRow);\r\n btnSave.setEnabled(hasColumn);\r\n }", "title": "" }, { "docid": "0cfffbc95853d8669d1899b62495af6f", "score": "0.5640943", "text": "private void uneditable() {\n idTextField.setEditable(false);\n textFname.setEditable(false);\n textLname.setEditable(false);\n textEmail.setEditable(false);\n textDiploma.setEditable(false);\n textWorker.setEditable(false);\n textCourseID.setEditable(false);\n textCourseName.setEditable(false);\n textLocation.setEditable(false);\n textIndustry.setEditable(false);\n }", "title": "" }, { "docid": "622441c8337e21407a2d88ddd0f42937", "score": "0.56107193", "text": "private void setListenAddButton() {\n buttonAdd.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n\n if (input == null) {\n input.setText(\"\");\n } else {\n inputVal1 = Float.parseFloat(input.getText() + \"\");\n addBool = true;\n input.setText(null);\n }\n }\n });\n }", "title": "" }, { "docid": "f9509a3c26717214bf07e07560fde147", "score": "0.56085175", "text": "public void btnChangedChooseMode(){\n btn_cook.setVisibility(View.VISIBLE);\n btn_add.setVisibility(View.GONE);\n btn_delete.setVisibility(View.VISIBLE);\n }", "title": "" }, { "docid": "380dea7b0092e577e4580ef8219a5878", "score": "0.56038874", "text": "private void enableEditing() {\n\n if (employeeRecordsTab.isSelected()) {\n employeeSaveButton.setDisable(true);\n employeeUpdateButton.setDisable(false);\n employeeDeleteButton.setDisable(false);\n\n } else if (userAccountsRecordsTab.isSelected()) {\n userAccountsSaveButton.setDisable(true);\n userAccountsDeleteButton.setDisable(false);\n userAccountsEditButton.setDisable(false);\n\n } else if (productsRecordsTab.isSelected()) {\n productsRecordsSaveButton.setDisable(true);\n productsRecordsDeleteButton.setDisable(false);\n productsRecordsEditButton.setDisable(false);\n\n }\n }", "title": "" }, { "docid": "b3623ed5ff6ba7bbb3d31f02b1555596", "score": "0.5601741", "text": "void Habilitar_Objetos()\n { \n TxtId.setEnabled(false);\n TxtArea.setEnabled(true);\n TxtCiudad.setEnabled(true);\n \n if (accion == \"Agregar\")\n {\n TxtId.setText(\"\");\n TxtArea.setText(\"\");\n TxtCiudad.setText(\"\");\n } \n \n BtnAgregar.setEnabled(false);\n BtnModificar.setEnabled(false);\n BtnGuardar.setEnabled(true);\n BtnCancelar.setEnabled(true);\n BtnBuscar.setEnabled(false);\n BtnMenuprincipal.setEnabled(false);\n }", "title": "" }, { "docid": "73d6d0aa36b0c374ba03c7dfa6c3eeef", "score": "0.5590612", "text": "public void invisibility(){\n mButtonId.setVisibility(View.INVISIBLE);\n }", "title": "" }, { "docid": "ae8df383324086e30b75629ec4b045a8", "score": "0.5585901", "text": "@FXML\r\n private void disableButtons() {\r\n\r\n //todo add more buttons here as the app grows, more will need to be made as we go\r\n viewClientBtn.setDisable(true);\r\n editClientBtn.setDisable(true);\r\n removeClientBtn.setDisable(true);\r\n\r\n viewLabourerProfileBtn.setDisable(true);\r\n editLabourerBtn.setDisable(true);\r\n removeLabourerBtn.setDisable(true);\r\n\r\n editProjectBtn.setDisable(true);\r\n removeProjectBtn.setDisable(true);\r\n }", "title": "" }, { "docid": "fce71887bb1e04ad82bc566cfa51045c", "score": "0.55824834", "text": "private void comprovarControls() {\n\n //Habilita tots els botons\n btPrimer.setDisable(false);\n btAnterior.setDisable(false);\n btSeguent.setDisable(false);\n btFinal.setDisable(false);\n\n //Si la posició es el primer element desabilita els botons de primer i anterior\n if (posTaula == 0) {\n\n btPrimer.setDisable(true);\n btAnterior.setDisable(true);\n\n //Si la posició es l'ultim element desabilita els botons de seguent i final\n } else if (posTaula == tvUsuaris.getItems().size() - 1) {\n\n btSeguent.setDisable(true);\n btFinal.setDisable(true);\n\n }\n \n if(comprovaLogin()){\n btEliminar.setDisable(true);\n }\n else{\n btEliminar.setDisable(false);\n }\n\n }", "title": "" }, { "docid": "e7c62a4f41988ef2b98c1fdd3b21cfde", "score": "0.55769026", "text": "boolean isHidden();", "title": "" }, { "docid": "e7c62a4f41988ef2b98c1fdd3b21cfde", "score": "0.55769026", "text": "boolean isHidden();", "title": "" }, { "docid": "3de24680e3036f16d5d9d918446b99d2", "score": "0.5573809", "text": "@FXML\n private void EnableMultiDeleteStudents(ActionEvent e) {\n if (btnDeleteMultipleStudents.isVisible()) {\n btnDeleteMultipleStudents.setVisible(false);\n lblMultiDeleteInstruction.setVisible(false);\n lblMultiDeleteInstruction1.setVisible(false);\n tglbtnEnableMultiDeleteStudent.setText(\"Enable multi-delete\");\n } else {\n btnDeleteMultipleStudents.setVisible(true);\n lblMultiDeleteInstruction.setVisible(true);\n lblMultiDeleteInstruction1.setVisible(true);\n tglbtnEnableMultiDeleteStudent.setText(\"Disable multi-delete\");\n }\n }", "title": "" }, { "docid": "311e732bd61563def7759ab8eee8444a", "score": "0.5573478", "text": "private void disableControls() {\n username.setEnabled(false);\n password.setEnabled(false);\n login.setEnabled(false);\n }", "title": "" }, { "docid": "55c865f018bbb12f4b3c9fd2fe351a70", "score": "0.55697", "text": "private void setControlsDisabled(boolean value) {\n saveButton.setDisable(value);\n browseSyncDirButton.setDisable(value);\n }", "title": "" }, { "docid": "e7b1d9e329c36522a2455c7f99567408", "score": "0.55555", "text": "public boolean AddComputerButtonEnabled() \n\t{\n\t\tboolean AddEnabled=AddComputer.isEnabled();\n\t\treturn AddEnabled;\n\t}", "title": "" }, { "docid": "a8c31c0f316dd968e3970b07550045f2", "score": "0.55554354", "text": "public void HabilitarTodo(){\n jcheckBoxJefeCarpeta.setEnabled(true);\n txtDNI.setEnabled(true);\n jcbParentesco.setEnabled(true);\n txtHistoriaNueva.setEnabled(true);\n txtHistoriaAnt.setEnabled(true);\n txtDireccion.setEnabled(true);\n txtApePar.setEnabled(true);\n txtApeMat.setEnabled(true);\n txtNombres.setEnabled(true);\n fa.getJFormattedTextField().setEnabled(true);\n// btnTraslado.setEnabled(true);\n btnAgregar.setEnabled(true);\n btnCancelar.setEnabled(true);\n }", "title": "" }, { "docid": "88d37d2a661e5a163443d8d8358dafb5", "score": "0.55499023", "text": "private void hideGUI()\n { \n restartButton.setVisible(false);\n restartButton.setDisable(true);\n menuButton.setVisible(false);\n menuButton.setDisable(true);\n nameForm.setVisible(false);\n nameForm.setDisable(true);\n gm.setSubmitStatus(false);\n }", "title": "" }, { "docid": "30656bdafb006ff2e25089543e51a6f2", "score": "0.55462015", "text": "public boolean isHidden();", "title": "" }, { "docid": "69c4c2bb3ff5f9d4f8f7cd3d2a451f48", "score": "0.55452675", "text": "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\taddLayout.setVisibility(View.VISIBLE);\n\t\t\t}", "title": "" }, { "docid": "747df58458920e8069f010b136946ef5", "score": "0.5537453", "text": "public void editUsageStatus(){\n if(isAvailable == false){\n isAvailable = true;\n }\n else{\n isAvailable = false;\n }\n }", "title": "" }, { "docid": "13dce24dc6d7d0ef7cf9ec8ceafbb0cb", "score": "0.5532195", "text": "public boolean isReadOnly() {\n/* 75 */ return false;\n/* */ }", "title": "" }, { "docid": "c8124a230141018a3051b8795f2c714a", "score": "0.55269253", "text": "private void operationBtnsCtrl(boolean option) {\n addBtn.setDisable(option);\n subBtn.setDisable(option);\n multBtn.setDisable(option);\n diviBtn.setDisable(option);\n }", "title": "" }, { "docid": "9726475d6835d2b40d8f34637e9b5381", "score": "0.55267835", "text": "private void enableAll() {\n likesBtn.setDisable(false);\n retweetsBtn.setDisable(false);\n repliesBtn.setDisable(false);\n timeBtn.setDisable(false);\n lengthBtn.setDisable(false);\n usersField.clear();\n lengthField.clear();\n changeDatasetBtn.setDisable(false);\n downloadBtn.setVisible(true);\n }", "title": "" }, { "docid": "d60d4033eb55b294efe730da43b60ec5", "score": "0.55215734", "text": "private void disableHumanButtons() {\n get_help_button.setEnabled(false);\n save_game_button.setEnabled(false);\n }", "title": "" }, { "docid": "f5f50a2b6d10972d76cb4be00a2d54f3", "score": "0.55211437", "text": "public Veia_Screen() {\n initComponents();\n btn1.setVisible(false);\n btn2.setVisible(false);\n \n }", "title": "" }, { "docid": "6d9c245c951dca8bb506a5c809f2346f", "score": "0.5515461", "text": "public void escritura() {\n editar.setEnabled(true);\n nombre.setEnabled(true);\n descripcion.setEnabled(true);\n equipo.setEnabled(true);\n fechac.setEnabled(true);\n fechal.setEnabled(true);\n switch1.setEnabled(true);\n spinner1.setEnabled(true);\n\n }", "title": "" }, { "docid": "5d647b5d18ae84cfa00eb8004b4cd09d", "score": "0.55138326", "text": "@Override\n\t\t\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\t\t\n\t\t\t\t\t\tMASTER.SBreg.setVisible(false);\n\t\t\t\t\t\tMASTER.Dreg.setVisible(true);\n\t\t\t\t\t\t\n\t\t\t\t\t}", "title": "" }, { "docid": "d8a5f620d62f5956a0b3dfe142c57af3", "score": "0.5490296", "text": "private void abaConsulta() {\n //jTabbedPaneAdicionarEvolucaoAluno.setSelectedIndex(0);\n //jTabbedPaneAdicionarEvolucaoAluno.setEnabledAt(0, true);\n //jTabbedPaneAdicionarEvolucaoAluno.setEnabledAt(1, false);\n jButtonConfirmarEvolucaoAluno.setEnabled(false);\n jButtonCancelarEvolucaoAluno.setEnabled(false);\n jButtonInserirEvolucaoAluno.setEnabled(true);\n //jButtonAlterarEvolucaoAluno.setEnabled(true);\n jButtonExcluirEvolucaoAluno.setEnabled(true);\n }", "title": "" }, { "docid": "c1080c109f5f099bfc6dd3a7f926020b", "score": "0.548447", "text": "public void inhabilitarTranslado(){\n txtHistoriaAnt.setEnabled(false);\n txtDNI.setEnabled(false);\n txtApePar.setEnabled(false);\n txtApeMat.setEnabled(false);\n txtNombres.setEnabled(false);\n fa.getJFormattedTextField().setEnabled(false);\n }", "title": "" }, { "docid": "360f1e876932712495199434a6dcd53d", "score": "0.54820347", "text": "@FXML\n private void EnableMultiDeleteRecords(ActionEvent e) {\n if (btnDeleteMultipleRecords.isVisible()) {\n btnDeleteMultipleRecords.setVisible(false);\n lblMultiDeleteInstructionRecord.setVisible(false);\n lblMultiDeleteInstructionRecord1.setVisible(false);\n tglbtnEnableMultiDeleteRecord.setText(\"Enable multi-delete\");\n } else {\n btnDeleteMultipleRecords.setVisible(true);\n lblMultiDeleteInstructionRecord.setVisible(true);\n lblMultiDeleteInstructionRecord1.setVisible(true);\n tglbtnEnableMultiDeleteRecord.setText(\"Disable multi-delete\");\n }\n }", "title": "" }, { "docid": "80dcbb06248f60cf6f3ed16b10e7330d", "score": "0.5481636", "text": "void view() {\n display.setText(\"Viewing...\");\n viewButton.setEnabled(false);\n searchButton.setEnabled(true);\n bookButton.setEnabled(true);\n }", "title": "" }, { "docid": "123839a8e619c1ce664aac93cae03fcc", "score": "0.5478903", "text": "public void setShowAdd( boolean b ) {\n showAdd = b;\n }", "title": "" }, { "docid": "2ad029af2d314e992b7947a2eff775e1", "score": "0.54771286", "text": "public void hideShield() {\n\t\tthis.setVisible(false);\n\t}", "title": "" }, { "docid": "08ada98cc65932c8d1a9dc21c05cdc5a", "score": "0.5475698", "text": "private void disableInputs(){\n usernameTextField.setDisable(true);\n emailTextField.setDisable(true);\n nombreTextField.setDisable(true);\n apellidoTextFIeld.setDisable(true);\n telefonoTextFIeld.setDisable(true);\n celularTextFIeld.setDisable(true);\n direccionTextArea.setDisable(true);\n }", "title": "" }, { "docid": "9d21f2b36fd10484f634d966c296f58f", "score": "0.54753476", "text": "public boolean isInputHidden();", "title": "" }, { "docid": "4ed7a942dd7a75c2d89290c5c0a56239", "score": "0.5471506", "text": "public AddAccount() {\n initComponents();\n \n StudentNumberLabel.setVisible(false);\n StudentNumberTextField.setVisible(false);\n }", "title": "" }, { "docid": "d4ae0a0740a7b96f9a6c7a2bc52165ee", "score": "0.5468345", "text": "private void habilitarBotones() {\n\n\n this.btnBuscaDocu.setEnabled(false);\n\n }", "title": "" }, { "docid": "4c9fce405eda9d67acadf685f19db707", "score": "0.54664093", "text": "@FXML\n void addClicked(ActionEvent event) {\n jobField.setItems(jobs);\n jobField.setValue(\"sprzedawca\");\n peselLabel.setVisible(true);\n peselField.setVisible(true);\n firstnameLabel.setVisible(true);\n firstnameField.setVisible(true);\n nameLabel.setVisible(true);\n nameField.setVisible(true);\n jobLabel.setVisible(true);\n jobField.setVisible(true);\n addBtn.setVisible(true);\n addWBtn.setVisible(false);\n headerLabel.setVisible(true);\n\n\n }", "title": "" }, { "docid": "18732c5b3ca89d05161c732476d1e0a9", "score": "0.5453091", "text": "@Override\r\n\tprotected boolean shouldAddBlockRightClick() {\n\t\treturn false;\r\n\t}", "title": "" }, { "docid": "30420e176477604c3f3d3ee2dc13af78", "score": "0.5449828", "text": "protected void activerAffichage() {\r\n\t\tbtnAfficherArbre.setDisable(false);\r\n\t\tbtnAfficherList.setDisable(false);\r\n\t\tbtnAfficherMoins40.setDisable(false);\r\n\t\tbtnAfficherPersonne.setDisable(false);\r\n\t}", "title": "" }, { "docid": "494ec40aa0150cbc682b2ace8d3236e7", "score": "0.5448417", "text": "public AddAction() {\n \t\t\tsuper(JBossESBUIMessages.JBossRuntimeListFieldEditor_ActionAdd);\n \t\t\t// This action is always available\n \t\t\tsetEnabled(true);\n \t\t}", "title": "" }, { "docid": "84b1e82ade818ee7c543af1049021d03", "score": "0.54479253", "text": "@FXML\n private void passwordSwitch() {\n if (this.hidePasswordButton.isVisible() == false) {\n this.hidePasswordButton.setVisible(true);\n this.hidePasswordButton.setManaged(true);\n } else {\n this.hidePasswordButton.setVisible(false);\n this.hidePasswordButton.setManaged(false);\n }\n }", "title": "" }, { "docid": "14d394f66b865784573e217bc6fa13fb", "score": "0.544349", "text": "private void enableHumanButtons(){\n get_help_button.setEnabled(true);\n save_game_button.setEnabled(true);\n }", "title": "" }, { "docid": "f29413fdf5e0c88dc34b6123877aade8", "score": "0.5440885", "text": "@JSProperty\n\tboolean isClearButtonVisible();", "title": "" }, { "docid": "59cecf93bb36919f8ff1e50d41117dc5", "score": "0.5440005", "text": "private void setAcceptButtonVisibility()\n\t{\n\t\tif (!gameService.isInPlacementPhase())\n\t\t{\n\t\t\tsetAcceptButtonVisible(false);\n\t\t\treturn;\n\t\t}\n\t\tif (!gameService.areAllShipsPlaced(ownShips))\n\t\t{\n\t\t\tsetAcceptButtonVisible(false);\n\t\t\treturn;\n\t\t}\n\t\tif (gameService.getInvalidFields(ownShips).size() > 0)\n\t\t{\n\t\t\tsetAcceptButtonVisible(false);\n\t\t\treturn;\n\t\t}\n\t\tsetAcceptButtonVisible(true);\n\t}", "title": "" }, { "docid": "a25a6878ad1e46dc28cf96c9ee6dfd43", "score": "0.54375094", "text": "public boolean showAsLocked() {\n return (this instanceof EditableModel) && !canEdit();\n }", "title": "" }, { "docid": "1558ddf097b2104960bd6b9376ccb6b1", "score": "0.5433656", "text": "public void setInvisible() {\n delete();\n isVisible = false;\n }", "title": "" }, { "docid": "99afcfa272c221a358781c8fd399102d", "score": "0.5428388", "text": "@Override\n\tpublic boolean isReadOnly() {\n\t\treturn false;\n\t}", "title": "" }, { "docid": "99afcfa272c221a358781c8fd399102d", "score": "0.5428388", "text": "@Override\n\tpublic boolean isReadOnly() {\n\t\treturn false;\n\t}", "title": "" }, { "docid": "4694fe02d2ae74e3b885cff67740a926", "score": "0.54247063", "text": "@Override\n public boolean isReadOnly() {\n return false;\n }", "title": "" }, { "docid": "a79802d5186f5018bbd65733e79f5b23", "score": "0.5418471", "text": "void Inhabilitar_Objetos()\n { \n TxtId.setEnabled(false);\n TxtArea.setEnabled(false);\n TxtCiudad.setEnabled(false);\n \n BtnAgregar.setEnabled(true);\n BtnModificar.setEnabled(true);\n BtnGuardar.setEnabled(false);\n BtnCancelar.setEnabled(false);\n BtnBuscar.setEnabled(true);\n BtnMenuprincipal.setEnabled(true);\n }", "title": "" }, { "docid": "7a744ad1098bbb4d62b95c148fce8b3a", "score": "0.54132736", "text": "public void activarGuardarCliente() {\n//Desactivo botones y label\n eliminarClienteBtn.setEnabled(false);\n modificarClienteBtn.setEnabled(false);\n editarClienteLabel.setVisible(false);\n //Activo label y boton\n guardarClienteBtn.setVisible(true);\n agregarNuevoClienteLabel.setVisible(true);\n }", "title": "" }, { "docid": "f3d27a2bb2a4d1f9f15948d966baf0f2", "score": "0.54103214", "text": "private void disableCustomerDetails() {\n nameField.setEditable(false);\n addressField.setEditable(false);\n address2Field.setEditable(false);\n postalCodeField.setEditable(false);\n phoneField.setEditable(false);\n }", "title": "" }, { "docid": "d46a21c807b2d35bbe406b86a5d0676f", "score": "0.54070014", "text": "public void disableTextFields(){\n nameField.setEnabled(false);\n emailField.setEnabled(false);\n phoneField.setEnabled(false);\n addressField.setEnabled(false);\n notesField.setEnabled(false);\n }", "title": "" }, { "docid": "58b5ca2a394f0dc2c6b513ccd9b5e82a", "score": "0.54041606", "text": "public mlogin() {\n initComponents();\n jTextField2.setEnabled(false);\n }", "title": "" }, { "docid": "c22924847df17cbb15a4528d3375a24b", "score": "0.5400341", "text": "public void addScreenListeners(RecordOwner screen)\n {\n super.addScreenListeners(screen);\n this.getField(Inventory.USED).setEnabled(false);\n this.getField(Inventory.AVAILABLE).setEnabled(false);\n }", "title": "" }, { "docid": "ff18cb55900761b0e474ba58e82c9db7", "score": "0.5399223", "text": "protected void disabledFieldsMore() {\n\t\taut02.setEnabled(false);\n\t\tcheckBoxAfternoonMore.setEnabled(false);\n\t\tcheckBoxEveningMore.setEnabled(false);\n\t\tcheckBoxMorningMore.setEnabled(false);\n\t\tcheckBoxNightMore.setEnabled(false);\n\n\t}", "title": "" }, { "docid": "ac78391eb91c3e6e8b1281753cab252e", "score": "0.53983414", "text": "private void enableControls() {\n this.getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_ALWAYS_VISIBLE);\n username.setEnabled(true);\n password.setEnabled(true);\n login.setEnabled(true);\n }", "title": "" }, { "docid": "f19e445b7f92493332bcfdc299255c46", "score": "0.53894204", "text": "void book() {\n display.setText(\"Viewing...\");\n viewButton.setEnabled(true);\n searchButton.setEnabled(true);\n bookButton.setEnabled(false);\n }", "title": "" } ]
25197b4cf814864ecd440f23b9149cb3
TODO Autogenerated method stub
[ { "docid": "6dcc7e62cf47a8f2c6ac283eb68b8028", "score": "0.0", "text": "@Override\r\n\tpublic View getInfoWindow(Marker marker) {\n\t\treturn null;\r\n\t}", "title": "" } ]
[ { "docid": "b7c706d331e2b507ec0ff8404ad87dc7", "score": "0.69742316", "text": "@Override\r\n\t\t\tpublic void crispel() {\n\t\t\t\t\r\n\t\t\t}", "title": "" }, { "docid": "76b3966c8e3f64884c4127d1a3df09a8", "score": "0.68059677", "text": "@Override\r\n\t\t\tpublic void maruti() {\n\t\t\t\t\r\n\t\t\t}", "title": "" }, { "docid": "34b43810a805e0d48661629f62b35f2b", "score": "0.6648208", "text": "@Override\r\n\tpublic void 위험물회피() {\n\t\t\r\n\t}", "title": "" }, { "docid": "80d20df1cc75d8fa96c12c49a757fc43", "score": "0.65278774", "text": "@Override\n\tprotected void getExras() {\n\t\t\n\t}", "title": "" }, { "docid": "096eb77080c8c192fe461650f49ca14b", "score": "0.65149313", "text": "@Override\r\n public void catering() {\r\n\r\n }", "title": "" }, { "docid": "a21047eaafcc2c1ada6326bfbe33e0ad", "score": "0.64755934", "text": "@Override\r\n public void alquilar() {\n }", "title": "" }, { "docid": "646377f9a04958a6eeea1118fddba04e", "score": "0.64358324", "text": "@Override\n\tpublic void refuel() {\n\n\t}", "title": "" }, { "docid": "c2f383f280f298416bf45e72c374ecfa", "score": "0.6414421", "text": "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "title": "" }, { "docid": "cc5af39f74474ffdb7b456b8a10d5774", "score": "0.6357822", "text": "@Override\r\n\tpublic void 길안내() {\n\t\t\r\n\t}", "title": "" }, { "docid": "c18c3127184f8abd7be145ddb9d4c3e6", "score": "0.6348844", "text": "@Override\r\n\tpublic void 온도내리기() {\n\t\t\r\n\t}", "title": "" }, { "docid": "bde53ee3de9072b04cd122133e6162a1", "score": "0.6326172", "text": "public void soigner() {\n\t\t\r\n\t}", "title": "" }, { "docid": "fdbf96893589fef5cdd1a8fe92e98938", "score": "0.62869394", "text": "@Override\n\tpublic void enfria() {\n\n\t}", "title": "" }, { "docid": "9ee6be05232928533401d708d518b6ed", "score": "0.62742454", "text": "@Override\r\n\t\t\tpublic void enginetype() {\n\t\t\t\t\r\n\t\t\t}", "title": "" }, { "docid": "83c17378086426b4324c4ea8c160e29d", "score": "0.626611", "text": "@Override\r\n\tpublic void provjeri() {\n\r\n\t}", "title": "" }, { "docid": "556495e35d508ac961dae051dd40b377", "score": "0.61844474", "text": "@Override\n\tpublic void afficher() {\n\t\t\n\t}", "title": "" }, { "docid": "9da42c54ca8fb8825afce96ad2d2781c", "score": "0.61519784", "text": "@Override\r\n\tpublic void comenzar() {\n\t\t\r\n\t}", "title": "" }, { "docid": "ce01e16cbc1fc0a29d28a4365b63f79d", "score": "0.6131432", "text": "@Override\n\tprotected void specialFuntion() {\n\t\t\n\t}", "title": "" }, { "docid": "c387be8fe936bea8d505f3a779d6ba15", "score": "0.61139184", "text": "@Override\n\tpublic void actualise() {\n\t\t\n\t}", "title": "" }, { "docid": "30c236da9912ee76f7962e7da2c72b59", "score": "0.6074856", "text": "@Override\n\tpublic void chante() {\n\t\t\n\t}", "title": "" }, { "docid": "7839d9b18f833d7ad1ccae8536c829da", "score": "0.605568", "text": "@Override\r\n\tpublic void zielone_swiatlo() {\n\t\t\r\n\t}", "title": "" }, { "docid": "f13a29996996a34a710d85285e104a7f", "score": "0.6034386", "text": "public void mo5201a() {\n }", "title": "" }, { "docid": "90586632a4af36d51003a1554ebef902", "score": "0.6030915", "text": "public void mo24205Oz() {\n }", "title": "" }, { "docid": "5f1811a241e41ead4415ec767e77c63d", "score": "0.6025444", "text": "@Override\n\tprotected void init() {\n\n\t}", "title": "" }, { "docid": "5f1811a241e41ead4415ec767e77c63d", "score": "0.6025444", "text": "@Override\n\tprotected void init() {\n\n\t}", "title": "" }, { "docid": "5f1811a241e41ead4415ec767e77c63d", "score": "0.6025444", "text": "@Override\n\tprotected void init() {\n\n\t}", "title": "" }, { "docid": "5f1811a241e41ead4415ec767e77c63d", "score": "0.6025444", "text": "@Override\n\tprotected void init() {\n\n\t}", "title": "" }, { "docid": "5f1811a241e41ead4415ec767e77c63d", "score": "0.6025444", "text": "@Override\n\tprotected void init() {\n\n\t}", "title": "" }, { "docid": "5f1811a241e41ead4415ec767e77c63d", "score": "0.6025444", "text": "@Override\n\tprotected void init() {\n\n\t}", "title": "" }, { "docid": "0b7a2d4389f8d1afdedab87d2ac4fb96", "score": "0.5973926", "text": "@Override\n\tprotected void generateData() {\n\t\treturn;\t\t\n\t}", "title": "" }, { "docid": "43f0eb79e8610935222f70ad7a047f4f", "score": "0.59676504", "text": "protected void Referesh() {\n\t\t\t\r\n\t\t}", "title": "" }, { "docid": "69f727ad790d8c02f9f110fb4190bf05", "score": "0.5958382", "text": "@Override\r\n\tpublic void 에어백펼치기() {\n\t\t\r\n\t}", "title": "" }, { "docid": "4fd121321f2d50da2f5700be65d017d8", "score": "0.59534895", "text": "@Override\n\tpublic void filngtonext() {\n\t\t\n\t}", "title": "" }, { "docid": "5289bcfa483e278c4782f4e45b7117eb", "score": "0.59168786", "text": "@Override\n\tpublic void generer() {\n\t\t\n\t}", "title": "" }, { "docid": "c52abf264dc130278399a6a822295dca", "score": "0.5916093", "text": "@Override\n\t\t\tpublic void e() {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "661a589ba018609d85af5ba0fc651d02", "score": "0.5909626", "text": "@Override\n\t\tprotected void process() {\n\t\t}", "title": "" }, { "docid": "661a589ba018609d85af5ba0fc651d02", "score": "0.5909626", "text": "@Override\n\t\tprotected void process() {\n\t\t}", "title": "" }, { "docid": "c28afddea09ba99a1adc54b371dabaa1", "score": "0.59047043", "text": "@Override\r\n\tpublic void 온도높이기() {\n\t\t\r\n\t}", "title": "" }, { "docid": "afad8999ad242028a092a07078328021", "score": "0.5886539", "text": "public void mo55240a() {\n }", "title": "" }, { "docid": "6827ba40809e6f9bad9a043036edaa04", "score": "0.58847684", "text": "@Override\r\n\tpublic void dormir() {\n\t}", "title": "" }, { "docid": "6afb1e3a721c7314f12581b77ae35716", "score": "0.5883849", "text": "@Override\n\tprotected void colisao() {\n\t\t\n\t}", "title": "" }, { "docid": "40a41a107fa03a270a78b03d0bcf910d", "score": "0.58717483", "text": "private void ergebnisAuswerten() {\n\n\t}", "title": "" }, { "docid": "c5fa2315669c0925b60762f7cca5f0f6", "score": "0.58611465", "text": "public void mo5203c() {\n }", "title": "" }, { "docid": "a672d2d2a4b7bb037f7f20d62ff1f55e", "score": "0.58465064", "text": "@Override\n\tpublic void ss() {\n\t\t\n\t}", "title": "" }, { "docid": "fa29da40be3a8b33b07b21fe8e0ba298", "score": "0.5842648", "text": "@Override\n\tpublic void notity() {\n\t\t\n\t}", "title": "" }, { "docid": "4ff7fd5d2a0aebc561e81557b528262a", "score": "0.58340675", "text": "@Override\n\tprotected void initialize() {\n\n }", "title": "" }, { "docid": "f323cb003520a5608cea47c5412447e4", "score": "0.58295655", "text": "@Override\n\t\t\t\tpublic int characteristics() {\n\t\t\t\t\treturn 0;\n\t\t\t\t}", "title": "" }, { "docid": "089be79d90be02605e37d2a48b09e194", "score": "0.58192337", "text": "@Override\n\tpublic void gril() {\n\n\t}", "title": "" }, { "docid": "b14d9313b224be37257260448fc816d3", "score": "0.58025044", "text": "@Override\n\tpublic void breathes()\n\t{\n\n\t}", "title": "" }, { "docid": "5783648f118108797828ca2085091ef9", "score": "0.57931334", "text": "@Override\n protected void initialize() {\n \n }", "title": "" }, { "docid": "ce91051d32625345f2bf3562abbb93de", "score": "0.5791661", "text": "@Override\n\tprotected void inicializar() {\n\t}", "title": "" }, { "docid": "beee84210d56979d0068a8094fb2a5bd", "score": "0.5791594", "text": "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "title": "" }, { "docid": "630b43215e2b87f8b2bd389cae71f8a6", "score": "0.5789139", "text": "@Override\n\tprotected void dataAcquisition() {\n\t}", "title": "" }, { "docid": "54b1134554bc066c34ed30a72adb660c", "score": "0.5788234", "text": "@Override\n\tprotected void initData() {\n\n\t}", "title": "" }, { "docid": "54b1134554bc066c34ed30a72adb660c", "score": "0.5788234", "text": "@Override\n\tprotected void initData() {\n\n\t}", "title": "" }, { "docid": "54b1134554bc066c34ed30a72adb660c", "score": "0.5788234", "text": "@Override\n\tprotected void initData() {\n\n\t}", "title": "" }, { "docid": "54b1134554bc066c34ed30a72adb660c", "score": "0.5788234", "text": "@Override\n\tprotected void initData() {\n\n\t}", "title": "" }, { "docid": "79a702a1409937a9a2dd8f8167323190", "score": "0.5784611", "text": "@Override\n\tvoid promocja() {\n\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "86ca2b6b7e0174532c4a1f8a4dec7946", "score": "0.577024", "text": "@Override\r\n\tpublic void 주차보조() {\n\t\t\r\n\t}", "title": "" }, { "docid": "e74841359f2b616460c1fcf1e3e0b696", "score": "0.57600427", "text": "@Override\n\tpublic void Oeffne_Schadenanlage() {\n\t\t\n\t}", "title": "" }, { "docid": "518a761521ca9f5cb8a8055b32b72cda", "score": "0.57589173", "text": "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "title": "" }, { "docid": "518a761521ca9f5cb8a8055b32b72cda", "score": "0.57589173", "text": "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "title": "" }, { "docid": "ebfe1bb4dd1c0618c0fad36d9f7674b4", "score": "0.57514423", "text": "@Override\n protected void initialize() {\n\n }", "title": "" }, { "docid": "a8b768dae1b52549249069e4d6a9253f", "score": "0.5750039", "text": "@Override\n public int getType() {\n return 0;\n }", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.57491463", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.57491463", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.57491463", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "f98329c4ce112f2ebcf93e4b478576a0", "score": "0.5745665", "text": "@Override\r\n\tpublic void work4() {\n\t\t\r\n\t}", "title": "" }, { "docid": "6cfde2be0b51f55a421cdc3e28609c66", "score": "0.57384264", "text": "@Override\n\tprotected void salario() {\n\t\t\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.57341826", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.57341826", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.57341826", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "f5fd4f1b89ecbb54b8b64a1b9e40552c", "score": "0.5733982", "text": "protected void mo7431b() {\n }", "title": "" }, { "docid": "3fb97b46c147b19f8180197325c66d34", "score": "0.5722489", "text": "@Override\n public void quite() {\n }", "title": "" }, { "docid": "f448e47f2da25727e964a3718545f012", "score": "0.5718643", "text": "public final void mo93547c() {\n }", "title": "" }, { "docid": "9a26c4906f8195084e9ec158504cab47", "score": "0.571633", "text": "@Override\n public void init() {\n \n }", "title": "" }, { "docid": "0fc890bce2cd6e7184e33036b92f8217", "score": "0.5714686", "text": "public void mo55254a() {\n }", "title": "" }, { "docid": "d7c48eb628caa38ca564de355edb7e6e", "score": "0.5709367", "text": "@Override\n public int getType() {\n return 1;\n }", "title": "" }, { "docid": "593053b99bc5abca6d010d9e21a31e6b", "score": "0.570741", "text": "@Override\r\n\tpublic void 자율주행하기() {\n\t\t\r\n\t}", "title": "" }, { "docid": "28872bba7a5c17cad13c73f21624cabc", "score": "0.57049847", "text": "@Override\n\tpublic void CreateRs() {\n\t\t\n\t}", "title": "" }, { "docid": "8e056894cd061aea767d71a9c1b43d97", "score": "0.5701457", "text": "@Override\n\tpublic void init(){\n\t}", "title": "" }, { "docid": "2102a3691307d06f0d2ee35d192fccc6", "score": "0.57008916", "text": "protected Encontro() {\n\t}", "title": "" }, { "docid": "e8f6ecd3f06f1f0e76ca511991b76265", "score": "0.5697829", "text": "protected void defesa(){}", "title": "" }, { "docid": "39132efb6b42f8ec625d96ff6226d80b", "score": "0.5696396", "text": "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "title": "" }, { "docid": "09b27558b293ecd91a8d2d3a705d8a37", "score": "0.5676146", "text": "@Override\n\t\t\tpublic void c() {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "c937f9289f415cfdd7aefc5d621d0867", "score": "0.567194", "text": "@Override\n protected void inicializar() {\n }", "title": "" }, { "docid": "75e13fc47dcc1e84b4615e5de4d4c091", "score": "0.56708115", "text": "@Override\n public String getName() {\n return null;\n }", "title": "" }, { "docid": "b6c641fa6ba40a5b14cc33cb07aa0671", "score": "0.5669723", "text": "@Override\n\tprotected void initData() {\n\t}", "title": "" }, { "docid": "81488a3212e9004be8808ba15e91f1a5", "score": "0.56636477", "text": "public final void mo93546b() {\n }", "title": "" }, { "docid": "1b6ae1f9acb8e538994b7d00bae50317", "score": "0.5662892", "text": "@Override\n\tprotected void skirmish() {\n\n\t}", "title": "" }, { "docid": "da07444f023c4f45aa766ef285cccf1c", "score": "0.56608945", "text": "@Override\n\tpublic void 吃斋() {\n\n\t}", "title": "" }, { "docid": "9f6aa437b415b967faa876e403ae9f7b", "score": "0.5658635", "text": "@Override\n\t\t\tpublic boolean esTorre() {\n\t\t\t\treturn false;\n\t\t\t}", "title": "" }, { "docid": "9f6aa437b415b967faa876e403ae9f7b", "score": "0.5658635", "text": "@Override\n\t\t\tpublic boolean esTorre() {\n\t\t\t\treturn false;\n\t\t\t}", "title": "" }, { "docid": "9f6aa437b415b967faa876e403ae9f7b", "score": "0.5658635", "text": "@Override\n\t\t\tpublic boolean esTorre() {\n\t\t\t\treturn false;\n\t\t\t}", "title": "" }, { "docid": "9f6aa437b415b967faa876e403ae9f7b", "score": "0.5658635", "text": "@Override\n\t\t\tpublic boolean esTorre() {\n\t\t\t\treturn false;\n\t\t\t}", "title": "" }, { "docid": "9f6aa437b415b967faa876e403ae9f7b", "score": "0.5658635", "text": "@Override\n\t\t\tpublic boolean esTorre() {\n\t\t\t\treturn false;\n\t\t\t}", "title": "" } ]
0b8ecfdfc8ee8ba49ba244d4bc0ed297
Get the document set.
[ { "docid": "5d14ec012b2ee60d81f38b7ea9313c8a", "score": "0.7968336", "text": "public DocumentDescription[] getDocumentSet()\n {\n return documentSet;\n }", "title": "" } ]
[ { "docid": "2d549e517a1fd2082edb689708aa5569", "score": "0.70617944", "text": "public Set<Document> getDocuments(){\n\t\treturn documents;\n\t}", "title": "" }, { "docid": "351f47b054759daf2da418ec38766d07", "score": "0.67954236", "text": "@JsonProperty(\"documents\")\r\n\tpublic Set<Document> getDocuments() {\r\n\t\treturn documents;\r\n\t}", "title": "" }, { "docid": "e4830367ed2e7afd9c8d92fc33f031ee", "score": "0.6601395", "text": "public List<Document> getDocuments() {\n\t\tif (documents == null) {\n\t\t\tdocuments = new ArrayList<Document>();\t\n\t\t}\n\t\treturn documents;\n\t}", "title": "" }, { "docid": "cd4e95c9187aa5b4c51234a02d0aefa0", "score": "0.6429045", "text": "public Iterable<MaybeDocument> getDocuments() {\n return new DocumentIterable();\n }", "title": "" }, { "docid": "bdb35bb4f59bad0c3a195a65a78e2b6b", "score": "0.6187367", "text": "public Document getDocument(){\n\t\treturn doc;\n\t}", "title": "" }, { "docid": "a41a808e02b90f77da965d3065c980bd", "score": "0.6162299", "text": "public Document getDocument();", "title": "" }, { "docid": "331714c19cf9dfe303f317b52898a00b", "score": "0.6126288", "text": "@Override\n public List<Document> getDocs() {\n return internalGetDocs();\n }", "title": "" }, { "docid": "2f4ac7297293faaf856821705255164a", "score": "0.6111046", "text": "public Document getDocument() {\n return document;\n }", "title": "" }, { "docid": "d425336bba001995090c733d5b5b88f1", "score": "0.6106744", "text": "public Document getDocument()\n\t{\n\t\treturn document;\n\t}", "title": "" }, { "docid": "fc7a9796951bf02c13682a868e6f1703", "score": "0.6037071", "text": "public DocList getDocList() {\n return docListAndSet.docList;\n }", "title": "" }, { "docid": "116627dc602b118d3573dc94f966aa07", "score": "0.59904337", "text": "public Document getDocument() {\n\t\treturn document;\n\t}", "title": "" }, { "docid": "d3fc4f492f940ff24f340729f35975da", "score": "0.5983602", "text": "Document getDocument();", "title": "" }, { "docid": "06d715059e8aae2be4fae7c3e7a5e047", "score": "0.59742886", "text": "public final Document getDocument() {\n return this.doc;\n }", "title": "" }, { "docid": "764d13e0add7066ad6c954144c676c8a", "score": "0.5967169", "text": "public ISynset getSynset();", "title": "" }, { "docid": "064b4518c62db03ce1c78010e7073c26", "score": "0.59406024", "text": "public Document getDocument() {\n return document;\n }", "title": "" }, { "docid": "25583f2c62d266cfa56d1b77512b29ee", "score": "0.5940212", "text": "public Document getMETSDocument()\n {\n return this.doc;\n }", "title": "" }, { "docid": "ab8c20edaf2c5033fdb692ff1845f6f2", "score": "0.590901", "text": "@Nonnull\n Document getDocument();", "title": "" }, { "docid": "2500a1b780a72950029f65e91e8f21c4", "score": "0.59038824", "text": "@WrapToScript\n\tpublic ModelSet getModelSet() {\n\t\tEditingDomain editingDomain = TransactionUtil.getEditingDomain(getModel());\n\t\tif (editingDomain == null) {\n\t\t\tLogger.error(Activator.PLUGIN_ID, \"Unable to get the editing domain\");\n\t\t\treturn null;\n\t\t}\n\t\tResourceSet resourceSet = editingDomain.getResourceSet();\n\t\tif (resourceSet instanceof ModelSet) {\n\t\t\treturn (ModelSet) resourceSet;\n\n\t\t}\n\t\tLogger.error(Activator.PLUGIN_ID, \"The resource set is not a model set\");\n\t\treturn null;\n\t}", "title": "" }, { "docid": "d556f0a404cbcb46bc1e8da5c1c48d38", "score": "0.5897275", "text": "public synchronized Document getDocument() {\n checkStableOrParsingState();\n return currentDocument;\n }", "title": "" }, { "docid": "1034e03e0a1f0561f65bfd6bb54dc0ae", "score": "0.58866453", "text": "protected List documents() throws DocumentException {\n load();\n return this.documentsList;\n }", "title": "" }, { "docid": "d1c07751b498d73ff2d776657ef612dc", "score": "0.58855015", "text": "public Document[] getListaDeDocumentos(){\r\n return localListaDeDocumentos;\r\n }", "title": "" }, { "docid": "d1c07751b498d73ff2d776657ef612dc", "score": "0.58855015", "text": "public Document[] getListaDeDocumentos(){\r\n return localListaDeDocumentos;\r\n }", "title": "" }, { "docid": "62cf939f3efce08993c3d3f533483454", "score": "0.5863383", "text": "public Map<String, ScriptDocValues<?>> getDoc() {\n return leafLookup.doc();\n }", "title": "" }, { "docid": "aa226865c0b579959209df60d35382e7", "score": "0.5853364", "text": "public Document getDocument() {\n\t\treturn (this.dom);\n\t}", "title": "" }, { "docid": "d4c169d3d8865f812387423f9418ea5a", "score": "0.58437264", "text": "public org.w3c.dom.Document getDocument() {\n return document;\n }", "title": "" }, { "docid": "13cde8494605fe7ed549c791c7481b58", "score": "0.58379114", "text": "public com.vmware.vim25.ObjectSpec[] getObjectSet() {\n\t\treturn objectSet;\n\t}", "title": "" }, { "docid": "41c1afcb57c73033af9e59b589bd2b9d", "score": "0.5819612", "text": "public BatchDocument getDocument() {\n return document;\n }", "title": "" }, { "docid": "b7d8c9e6f3ce786d9f33ea6ee7b5e7a4", "score": "0.5794683", "text": "private HashSet<Document> singleWordQuery(Word query)\r\n {\r\n return documents.get(query);\r\n }", "title": "" }, { "docid": "0ac5970b61befb0c48cdc52d4e850102", "score": "0.5787939", "text": "public Document getDoc () {\n return myDoc;\n }", "title": "" }, { "docid": "841f719cfe20b81ba3f49c1d25a2e78f", "score": "0.5775262", "text": "protected final IDocument getDocument() {\n\t\treturn fDocument;\n\t}", "title": "" }, { "docid": "a4c8dc623cba64dd90da2c70b69c5313", "score": "0.5773335", "text": "Set<E> getSet() {\n return set;\n }", "title": "" }, { "docid": "b5c52a038de4eedfb881013a991c0339", "score": "0.57538474", "text": "protected final IDocument getDocument() {\r\n\t\treturn fDocument;\r\n\t}", "title": "" }, { "docid": "5ac831a56ff35e4748e56946b3e4d5fe", "score": "0.5744844", "text": "public List<Book> getDocuments() {\r\n\t\tlog.debug(\"Getting books\");\r\n\t\t// currently only bibles and commentaries are supported\r\n\t\tList<Book> allDocuments = Books.installed().getBooks(SUPPORTED_DOCUMENT_TYPES);\r\n\t\t\r\n\t\tlog.debug(\"Got books, Num=\"+allDocuments.size());\r\n\t\tisSwordLoaded = true;\r\n\t\treturn allDocuments;\r\n\t}", "title": "" }, { "docid": "17cb76c70fe46fb3e8a6a7ca1a253818", "score": "0.5736843", "text": "public B2BDocument getUseDocument()\n\t{\n\t\treturn getUseDocument( getSession().getSessionContext() );\n\t}", "title": "" }, { "docid": "1c42f2aef8e5ba434dc8bb26e5a12fc9", "score": "0.5735262", "text": "public List<Path> getList() {\r\n\t\treturn documents;\r\n\t}", "title": "" }, { "docid": "64632bfba9008a6da8359e2bc08d4b95", "score": "0.57289714", "text": "public Set<String> words()\n {\n return wordsSet; \n }", "title": "" }, { "docid": "17e48303a3c8ea6c8e537809c05783d7", "score": "0.569998", "text": "public static Map<String, Document> getImportedDocuments() {\n return importedDocuments;\n }", "title": "" }, { "docid": "aee3ef3a71b775f23c062bd6ff748340", "score": "0.5696832", "text": "@Override public Document getDocument() \t{ return for_document; }", "title": "" }, { "docid": "6a21ceba4f676db8bdd35e8d39c3bbcf", "score": "0.5689204", "text": "public RMDocument getDocument() { return getContent(RMDocument.class); }", "title": "" }, { "docid": "1434286bf9b3e9a6815a68eb0c81e3f9", "score": "0.5686875", "text": "public Iterator<Document> iterator() {\n return new JDBCCorpusIterator();\n }", "title": "" }, { "docid": "6b758140bc56ef2db68bc7f1d37a68b5", "score": "0.56834656", "text": "IDocument getDocument();", "title": "" }, { "docid": "a6d3b7b75439b1cc6f23bb0169fcb1db", "score": "0.5665169", "text": "public Set<String> getWords();", "title": "" }, { "docid": "2ff74340fce8b5b7f1dc47e6d9e0b72f", "score": "0.5663786", "text": "Object getDoc();", "title": "" }, { "docid": "f4509bae5a8a6bed63a0b09387a7e689", "score": "0.5663447", "text": "public DocumentReference getTutorList(){\n return db.collection(\"booking\").document(\"tutors\");\n }", "title": "" }, { "docid": "96f358a5204b1a63ae5c7775d028ebf1", "score": "0.56554365", "text": "@Override\n public Set<String> getAsSet() {\n if (null == set)\n set = new HashSet<>(list);\n return set;\n\n }", "title": "" }, { "docid": "c15dee9b05396244142669043a9c7d67", "score": "0.5641818", "text": "@SuppressWarnings(\"rawtypes\")\n\t@Override\n\tpublic Iterator iterator() {\n\t\treturn new SetIterator();\n\t}", "title": "" }, { "docid": "f66974c9510905eb94735f1d0dace4a8", "score": "0.56232715", "text": "public static final DocumentExt get() {\n return Document.get().cast();\n }", "title": "" }, { "docid": "a2d763043a02345abbf89b1eea9f25c0", "score": "0.5623025", "text": "@JsonProperty(\"documents\")\n public List<Document> getDocuments() {\n return documents;\n }", "title": "" }, { "docid": "93daba244710395a25c7ff41a3fb925f", "score": "0.5614157", "text": "public Set<K> backingSet() {\n return this.set;\n }", "title": "" }, { "docid": "9c09973c901a06cfeac8b8db4537d74f", "score": "0.5594249", "text": "public List<Query> getCorpusDocuments() {\n try {\t\t\t\n MetadataDAO dao = new SQLMetadataDAO();\n List<Query> queries =\n dao.getDocuments(Metadata.CORPUS_KEY, null, query.getDocumentID(), true);\n \n Collections.sort(queries);\n return queries;\n } catch (MetadataAccessException se) {\n logger.warn(\"Problem getting corpus documents\", se);\n return new ArrayList<Query>();\n }\n }", "title": "" }, { "docid": "636941924e9ce3df972b696ba6fa1155", "score": "0.5593387", "text": "public List<Document> fetch();", "title": "" }, { "docid": "64586820609a93a7221a1024e413d472", "score": "0.5577298", "text": "public abstract Document getDocument();", "title": "" }, { "docid": "64586820609a93a7221a1024e413d472", "score": "0.5577298", "text": "public abstract Document getDocument();", "title": "" }, { "docid": "64586820609a93a7221a1024e413d472", "score": "0.5577298", "text": "public abstract Document getDocument();", "title": "" }, { "docid": "59aef06508b08cf1dd9113fe5c12998c", "score": "0.55699337", "text": "public Set<PerpDocuments> getPerpDocuments() {\n return perpDocuments;\n }", "title": "" }, { "docid": "2059cc9970ec422aac77d7a90ca8eced", "score": "0.55556023", "text": "public ResourceSet getResourceSet() {\n \t\treturn getEmfContextBase().getResourceSet();\n \t}", "title": "" }, { "docid": "5b874b81f4b1803192fd8485ff9d278a", "score": "0.5544075", "text": "public ResultSet getResultSet() {\n return rset;\n }", "title": "" }, { "docid": "a7ac83f0011d588eeac1aab14718d6d2", "score": "0.5537313", "text": "sy_soapserver.IssetDocument.Isset getIsset();", "title": "" }, { "docid": "1c5a5a0a2246467faf4c78af1305ca3a", "score": "0.5517818", "text": "public Set entrySet() {\n Set<String> s = new HashSet<String> ();\n\n s.add (this.medicament);\n s.add (this.dosage);\n\n return s;\n }", "title": "" }, { "docid": "06f3fd52a1fe540dd67bf5968735e83e", "score": "0.5516055", "text": "protected IDocument getDocument() {\n \t\tIDocumentProvider provider= fTextEditor.getDocumentProvider();\n \t\treturn provider.getDocument(fTextEditor.getEditorInput());\n \t}", "title": "" }, { "docid": "c07fb89e274690e6284b8521de088f32", "score": "0.5510432", "text": "public java.lang.String getSet() {\n return set;\n }", "title": "" }, { "docid": "14caf597d6806f2e831cdb2a90ef6704", "score": "0.55047107", "text": "public ContentInterface getDoc() {\r\n\t\treturn doc;\r\n\t}", "title": "" }, { "docid": "9e590a3994aa8f54d34ae1e65c890fc5", "score": "0.5489426", "text": "Set<X> dom();", "title": "" }, { "docid": "5bd73f265123f615af310af4f605bcac", "score": "0.54890734", "text": "public CourseSet getCourseSet();", "title": "" }, { "docid": "4cb73e8065a647a9cf08a3fde71f2751", "score": "0.54845107", "text": "@Override\n\tpublic List<String> getDocentes() {\n\t\treturn this.docentes;\n\t}", "title": "" }, { "docid": "c40c6fec9c1477a603a6234ffd9bd6a9", "score": "0.54834306", "text": "Bson getDocument();", "title": "" }, { "docid": "a7aeba03bdefa9cce5032f87e96ff99f", "score": "0.54565525", "text": "DocumentManager getDocumentManager();", "title": "" }, { "docid": "a68a5e18a1f6c066454a7b429eb188ef", "score": "0.54550165", "text": "public Node getDocument() {\r\n return this.document;\r\n }", "title": "" }, { "docid": "f01fcda751ce832d73a82e35f0de28e5", "score": "0.54391956", "text": "public StudySet getStudySet()\n {\n return this.studySet;\n }", "title": "" }, { "docid": "4dea33bcf5a141c46e771505fc270696", "score": "0.54390806", "text": "int readSet();", "title": "" }, { "docid": "367c2ff16715abb003297f9e4f0702b4", "score": "0.54344225", "text": "public ItemSet getItems() {\n return this.itemSet;\n }", "title": "" }, { "docid": "2aa45d2fd0cce05a34a2035b47a25e10", "score": "0.5432516", "text": "public interface DocumentCollection {\n\tint getDocumentsCount();\n\tMap<Integer, Integer> getDocument(int id);\n\n\tint getVocabSize();\n\n\tint getCategoriesCount();\n\tList<Integer> getCategories(int id);\n}", "title": "" }, { "docid": "5596f1b6fd0f4453d72ab6b87ef6be4a", "score": "0.54320383", "text": "public String corpus() {\n return corpus;\n }", "title": "" }, { "docid": "fe6da36b728a49beecdc9bdc7e8efb28", "score": "0.5414694", "text": "public InteractionsDocument getDocument() {\n return _doc;\n }", "title": "" }, { "docid": "b71a65f96b616abd1f215c91bf8d76a3", "score": "0.54144216", "text": "@java.lang.Override\n public com.google.firestore.v1.Document getDocument() {\n return document_ == null ? com.google.firestore.v1.Document.getDefaultInstance() : document_;\n }", "title": "" }, { "docid": "6a9f9dcc1bfe3e7b0f52044bf6b29973", "score": "0.5411433", "text": "public ListModel getDefinitionsDocuments();", "title": "" }, { "docid": "5300577e6e46ea39dec265e10fe147bc", "score": "0.540967", "text": "@Override\r\n\tpublic Iterator<T> iterator() {\n\t\treturn myset.iterator();\r\n\t}", "title": "" }, { "docid": "68b1144eff2c4b3fd238b9ec2a0dc265", "score": "0.54063874", "text": "public ViewArRootDocumentsImpl getSearchAll() {\n return (ViewArRootDocumentsImpl)findViewObject(\"SearchAll\");\n }", "title": "" }, { "docid": "47b6abc6bdeb61e1cf653fc6720fab09", "score": "0.54031956", "text": "public Set<T> getScope();", "title": "" }, { "docid": "1932fb1176642f89cf556f8bd29dcd47", "score": "0.5396709", "text": "public synchronized Document getCurrentDocument() {\n return currentDocument;\n }", "title": "" }, { "docid": "fad06aeb38dcb96539753a32ca3a6f65", "score": "0.53770405", "text": "@Override\n\tpublic List<Document> findAll() {\n\t\treturn dd.findAll();\n\t}", "title": "" }, { "docid": "9b7797d284e9d037d0d14d961342d5ae", "score": "0.5364075", "text": "public DocumentIndexer getDocumentIndexer() {\n return _indexer;\n }", "title": "" }, { "docid": "416b855da6505355196cfbad6766108c", "score": "0.53536385", "text": "@Override\n public String getDoc() {\n return doc;\n }", "title": "" }, { "docid": "6ce3dac4754b0e60544104e17415584d", "score": "0.5351198", "text": "public int getExtentSet() {\r\n return this.extentSet;\r\n }", "title": "" }, { "docid": "db2ca0777015822e3e7a1fe1a2825f13", "score": "0.53511447", "text": "public abstract Set entrySet ();", "title": "" }, { "docid": "b69016d3ee3863bfc69be6b65eb2f01a", "score": "0.5344405", "text": "public HashSet<ScavengeObject> getScavengeList()\n {\n return scavengeList;\n }", "title": "" }, { "docid": "8b293a160ee4e047a126dd6f8dac8b0b", "score": "0.53352386", "text": "public String[] getTerms(){\n\t\treturn _set.toArray(new String[_set.size()]);\n\t}", "title": "" }, { "docid": "517250f1ca0ab377389bd307ada8b7d9", "score": "0.53352314", "text": "@Override\r\n\tpublic List<Document> findAllDocuments() {\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "64f6d78f914e0e3745e20b4a4d49d1b6", "score": "0.53316295", "text": "public int getDocument() {\n return m_docHandle;\n }", "title": "" }, { "docid": "f9969b758d83e975f0ade7979fcb9461", "score": "0.53307575", "text": "@JsonProperty(\"documents\")\r\n\tpublic void setDocuments(Set<Document> documents) {\r\n\t\tthis.documents = documents;\r\n\t}", "title": "" }, { "docid": "b535d40e90dfa5159a68424dff068b5e", "score": "0.53305405", "text": "public int getDocument() {\n\treturn document;\n}", "title": "" }, { "docid": "f09b7b8f52a6fbf737630b7413ea6759", "score": "0.53238803", "text": "public List<DocBean> getRightDocuments()\n {\n return this.rightDocuments;\n }", "title": "" }, { "docid": "fee968008adc9f769c481cfeecec9b1c", "score": "0.5319732", "text": "public List<DocBean> getLeftDocuments()\n {\n return this.leftDocuments;\n }", "title": "" }, { "docid": "fec848ba85b6e022b0e47622d1c643ce", "score": "0.53150743", "text": "public Tuple<DocumentSet, DocumentSet> loadDataSet();", "title": "" }, { "docid": "f5c0011739407997fd58fcd50656657a", "score": "0.5311274", "text": "public SortedSet<K> backingSet() {\n return (SortedSet) super.backingSet();\n }", "title": "" }, { "docid": "f05a1eda7205e13a223e9de8b14bb4e9", "score": "0.5310732", "text": "@MethodInformation(author=\"Wolfgang\", date=\"07.12.2012\", description=\"returns a new Iterator over Set\")\r\n\tpublic BauernIterator iterator() {\r\n\t\treturn new BauernIterator();\r\n\t}", "title": "" }, { "docid": "45d11cf014f2bcfe9fc564d851572909", "score": "0.5297201", "text": "@Override\n public final AbstractMathSet<AbstractMathSet<T>> powerSet()\n {\n return AbstractMathSet.powerSet(this.getRawData()).stream().map(MathSet::new).collect(toMathSet());\n }", "title": "" }, { "docid": "0ef68e2f480bc8791e2b188a6538dc06", "score": "0.5295575", "text": "public Set<K> keySet() {\n return _keyset;\n }", "title": "" }, { "docid": "fc9b1cec62a04883065e340c3ef2a20c", "score": "0.52951956", "text": "String getCollection();", "title": "" }, { "docid": "fc1786b43ff82785fe89757f56090c1d", "score": "0.5292838", "text": "@Override\n public Set<K> keySet() {\n Set<K> hs = new HashSet<>();\n keySetHelper(hs, root);\n return hs;\n }", "title": "" } ]
2fe1202e3afa4ab359ec432ac6c9d617
Sets both installment and PDL principal
[ { "docid": "246cd54ac8a53d20b7cbd3179ce3b171", "score": "0.72658825", "text": "public void setPrincipal(int principal) {\n installLoan.setPrincipal(principal);\n pdLoan.setPrincipal(principal);\n }", "title": "" } ]
[ { "docid": "87ea8841af897dc241c8f2e606a6b645", "score": "0.665579", "text": "protected void initPrincipal() {\n\n // System.out.println(\"Inside initprincipal of customprinciimpl\");\n setName(null); // will have to set from db .\n setFullName(null);\n setGuid(null);\n setDescription(null);\n setDN(null);\n }", "title": "" }, { "docid": "2bec073bbfb0184e702bdd4d979f7ce8", "score": "0.66182154", "text": "@Override\r\n\tpublic void setPrincipal(String principal) {\n\t\t\r\n\t}", "title": "" }, { "docid": "e7e27f9fa2e4199dad7dcaebd16c7b7a", "score": "0.6360282", "text": "public PrincipalProfessor(Principal principal) {\n this.principal = principal;\n initComponents();\n }", "title": "" }, { "docid": "49aeae6f1b249ef327b3c6301033e2b2", "score": "0.5799702", "text": "public int getInstallPrincipal() {\n return installLoan.getPrincipal();\n }", "title": "" }, { "docid": "4021bbe9af53dfaf91afd45ab0818c18", "score": "0.5753911", "text": "public PainelProdutos(TelaPrincipal telaPrincipal) {\n initComponents();\n this.telaPrincipal = telaPrincipal;\n }", "title": "" }, { "docid": "33e8fd8e5f7825586c96c549956359b1", "score": "0.57260436", "text": "private void Principal() \r\n\t{\r\n\t\t// TODO Auto-generated method stub\r\n\t\r\n\t\tclsPrincipal principal=new clsPrincipal();\r\n\t\tprincipal.setVisible(true);\r\n\t}", "title": "" }, { "docid": "6ce25c538f52a441862ce11f149d35f8", "score": "0.57200325", "text": "public AgregarAeronavePresidenteJPanel(Principal principal) {\n //logica = new ControladorPilaAvion();\n this.principal = principal;\n initComponents();\n }", "title": "" }, { "docid": "7eda9ca0c112ea07f9396ff5855d1b6c", "score": "0.56766826", "text": "public void set() {// This method is used to set the property\n\t\tfinal ClassLoader oldLoader = Thread.currentThread()\n\t\t\t\t.getContextClassLoader();\n\t\tfinal ClassLoader newLoader = this.getClass().getClassLoader();\n\t\ttry {\n\t\t\tThread.currentThread().setContextClassLoader(newLoader);\n\t\t\tenv = new Properties();\n\t\t\tenv.setProperty(SASConstants.factInitial, SASConstants.nContex);\n\t\t\tenv.setProperty(SASConstants.url, ConfigReader.licenseTopicIP_s\n\t\t\t\t\t+ colon + ConfigReader.licenseTopicPort_s);\n\t\t\tenv.setProperty(SASConstants.urlPkg, SASConstants.jnpInter);\n\t\t\tjndi = new InitialContext(env);\n\t\t} catch (Exception ex) {\n\t\t\tfinal String errMsg = \"Exception thrown in Method \"\n\t\t\t\t\t+ \"**set()** in class [ LicensePublisher ] \";\n\t\t\tSolutionsacceleratorstudioPlugin.getDefault().logError(errMsg, ex);\n\t\t\tex.printStackTrace();\n\t\t} finally {\n\t\t\tThread.currentThread().setContextClassLoader(oldLoader);\n\t\t}\n\t}", "title": "" }, { "docid": "0e639d401b273181abb51bdb631d3a87", "score": "0.5660843", "text": "void setPrincipalName(String name);", "title": "" }, { "docid": "c353d090a3d3e4ca6e984d4a387223d5", "score": "0.5640396", "text": "public void setPrinciple(double principle) {\n\t\tthis.principle = principle;\n\t}", "title": "" }, { "docid": "5f7b089069e003a6148164bf0abccf54", "score": "0.5559997", "text": "public principal() {\n initComponents();\n \n }", "title": "" }, { "docid": "5f7b089069e003a6148164bf0abccf54", "score": "0.5559997", "text": "public principal() {\n initComponents();\n \n }", "title": "" }, { "docid": "55fd76a8d3df6dea4fa1eeb11c055a9f", "score": "0.5554454", "text": "void switchPrincipal(String principalId);", "title": "" }, { "docid": "72693ad2250ae7bd48822c2aa807594e", "score": "0.55116314", "text": "public void setPrincipal(java.util.Map<String, String> principal) {\n this.principal = principal;\n }", "title": "" }, { "docid": "5dfec69f1c8912a7330092cc56edb358", "score": "0.54938954", "text": "public void setPrincipleAmount(String PrincipleAmount){\n this.principle_amount = PrincipleAmount;\n }", "title": "" }, { "docid": "2d7bd0dc923ae74043541bf7c6e06a1a", "score": "0.5399901", "text": "public FormPrincipal() {\n initComponents();\n configuracoes();\n }", "title": "" }, { "docid": "19b519d207092e27a8f64eb56834445a", "score": "0.53938705", "text": "public BuscarClienteDirectorJPanel(Principal principal) {\n this.principal = principal;\n initComponents();\n }", "title": "" }, { "docid": "967ab600c8660274953d4aa92b4815fe", "score": "0.53671014", "text": "public abstract void activateDefaultPrincipalToRoleMapping();", "title": "" }, { "docid": "30aa6dc500e44cc2c9bd0859239f41df", "score": "0.53410435", "text": "public VentanaPrincipal() {\n initComponents();\n }", "title": "" }, { "docid": "f34f1d6eb82d80f1c1f503b4081d3a0e", "score": "0.52986467", "text": "public Principal(ModeloPrincipal _modeloPrincipal ) {\n this.modeloPrincipal = _modeloPrincipal;\n initComponents();\n capturaEventos();\n \n \n }", "title": "" }, { "docid": "2273fe25f7ac2a7fdd068390a1928423", "score": "0.5296354", "text": "public TelaPrincipal() {\n this.palavraService = new PalavraService();\n initComponents();\n setLocationRelativeTo(this);\n inserirIcone();\n setLocationRelativeTo(buttonJogar);\n }", "title": "" }, { "docid": "3b0cc0a0535582aecfa8308f19a179fc", "score": "0.5296187", "text": "@Before\n \tpublic void setUp() {\n \t\tsecurityService.setCurrent(new Person(Person.SYSTEM_ADMINISTRATOR_ID));\n \t}", "title": "" }, { "docid": "e9913dab8dc12ce720c57293894fc112", "score": "0.52718496", "text": "public void setEscenarioPrincipal(Principal escenarioPrincipal) {\n this.escenarioPrincipal = escenarioPrincipal;\n }", "title": "" }, { "docid": "267be131d5e71ce7298ee90cc8552f33", "score": "0.52686757", "text": "private void autherization(){\r\n\t\tEVatServiceSingleton.getInstance().autherization(ApplicationProperties.getInstance());\r\n\t\tif(EVatServiceSingleton.getInstance().isAuthorized()){\r\n\t\t\tSystem.out.println(\"Авторизация пройдена\");\r\n\t\t\tauthMenuItem.setEnabled(false);\r\n\t\t\tconnectMenuItem.setEnabled(true);\r\n\t\t\tdisconnectMenuItem.setEnabled(false);\r\n\t\t\tinfoCertMenuItem.setEnabled(true);\r\n\t\t\tloadFileMenuItem.setEnabled(true);\r\n\t\t\tloadFolderMenuItem.setEnabled(true);\r\n\t\t\tsetTitle(title+\" [\"+ Certificate.getInstance().getOrgName().trim() +\" \" +Certificate.getInstance().getLastName().trim()+\" \"+Certificate.getInstance().getFirstMiddleName()+\"]\");\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "f131dce78dd89a4fa6ff913b7385be61", "score": "0.5262287", "text": "public Principal() {\n initComponents();\n inicializacion();\n }", "title": "" }, { "docid": "183200ba4757ee1e9f167aaccc26e6bf", "score": "0.5262188", "text": "public JanelaPrincipal() {\n initComponents();\n }", "title": "" }, { "docid": "5a49dd43640255e283c5a96ea17930ea", "score": "0.5258858", "text": "public Principal() {\n initComponents();\n \n }", "title": "" }, { "docid": "8bf4f18f825d134e591ae234ca9e0803", "score": "0.5238599", "text": "public ProUserAssign () {\n\t\tsuper();\n\t}", "title": "" }, { "docid": "d7b6210e67b8dd20255b2ce64c0ecd3d", "score": "0.52372205", "text": "public Principal() {\n initComponents();\n cmdCambiarC.setEnabled(false);\n cmdSeguridad.setEnabled(false);\n cmdSeguridad.setEnabled(false);\n }", "title": "" }, { "docid": "64ee7cfcf7b1491c62abf7b5eaf00c35", "score": "0.52342933", "text": "public void openConfigureOrchestratorPrespective()\n\t\t{\n\t\t\tbot.perspectiveByLabel(\"Configure Orchestrator\").activate();\n\t\t\t\n\t\t}", "title": "" }, { "docid": "50552d34da4929498b8f567e83ba249b", "score": "0.52314156", "text": "Principal principal() throws AppLogicException;", "title": "" }, { "docid": "718b1036552db563d2c5271e9196c0cf", "score": "0.521196", "text": "Principal getPrincipal();", "title": "" }, { "docid": "d3a8a3f8f0f1b2fb540d9555dcfacd01", "score": "0.5208735", "text": "public PantallaPrincipal(Controlador controlador) {\n this.controlador = controlador;\n initComponents();\n }", "title": "" }, { "docid": "5c4216aca3b17d4204bb63d06382256d", "score": "0.52047855", "text": "public TelaPrincipal() {\n initComponents();\n }", "title": "" }, { "docid": "5c4216aca3b17d4204bb63d06382256d", "score": "0.52047855", "text": "public TelaPrincipal() {\n initComponents();\n }", "title": "" }, { "docid": "5c4216aca3b17d4204bb63d06382256d", "score": "0.52047855", "text": "public TelaPrincipal() {\n initComponents();\n }", "title": "" }, { "docid": "5c4216aca3b17d4204bb63d06382256d", "score": "0.52047855", "text": "public TelaPrincipal() {\n initComponents();\n }", "title": "" }, { "docid": "5c4216aca3b17d4204bb63d06382256d", "score": "0.52047855", "text": "public TelaPrincipal() {\n initComponents();\n }", "title": "" }, { "docid": "5c4216aca3b17d4204bb63d06382256d", "score": "0.52047855", "text": "public TelaPrincipal() {\n initComponents();\n }", "title": "" }, { "docid": "1e2691eb49a07402c6b85305fbe7d735", "score": "0.51826805", "text": "private void attachToSpecificPidsAsCurrentUser() throws Exception {\n Set<String> includePids = arguments.getIncludePids();\n for (String includePid : includePids) {\n Properties properties = GetAgentProperties.getAgentAndSystemProperties(includePid, userRegistry.getCurrentUser());\n attach(JvmInfo.withCurrentUser(includePid, properties));\n }\n }", "title": "" }, { "docid": "d2b643fd8ec8f45afe9f67bda8b52020", "score": "0.51817024", "text": "@Override\r\n public Principal getUserPrincipal() {\n return new Principal() {\r\n @Override\r\n public String getName() {\r\n return user;\r\n }\r\n };\r\n }", "title": "" }, { "docid": "8c87c4d42c8fddc88749915a1c8159ed", "score": "0.5181681", "text": "private void OuvrirMenuPrincipal() {\n\t\t\t\t\n\t\t\t\tMenuPrincipal menuPrincipal = new MenuPrincipal();\n\t\t\t\tmenuPrincipal.getFrmMenuPrincipal().setVisible(true);\n\t\t\t}", "title": "" }, { "docid": "c354874e50379db60f7023f7f7cb7e0a", "score": "0.51712143", "text": "public void setAccrualPolicy(java.lang.String accrualPolicy)\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(ACCRUALPOLICY$0, 0);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(ACCRUALPOLICY$0);\r\n }\r\n target.setStringValue(accrualPolicy);\r\n }\r\n }", "title": "" }, { "docid": "4ea6023d19e96fe584f2314882c9c89f", "score": "0.51541674", "text": "@Override\n\tpublic Object getPrincipal() {\n\t\treturn principal;\n\t}", "title": "" }, { "docid": "bc68d66161d65b185d4578206d9af82e", "score": "0.514228", "text": "public /*synchronized*/ void setPrincipalAuthenticated(boolean authnOK) {\n this.principalAuthenticated = authnOK;\n changed = true;\n }", "title": "" }, { "docid": "068f765b146e44a37bef9f3a295316b1", "score": "0.5141697", "text": "private void addPrincipal(User user) throws AuthorizationPersistenceException {\r\n Principal principal = new GeneralPrincipal(user.getId(), user.getUsername());\r\n authorizationPersistence.addPrincipal(principal);\r\n }", "title": "" }, { "docid": "e1f9cee207711d5d1bc26aff6fb2a605", "score": "0.5137068", "text": "public Tela_Principal() {\n initComponents();\n }", "title": "" }, { "docid": "484e923a5e1aeb3ecd63b42c0cd63015", "score": "0.51301944", "text": "@Override\n public Principal getUserPrincipal() {\n return new Principal() {\n @Override\n public String getName() {\n return user;\n }\n };\n }", "title": "" }, { "docid": "eb3c74385f15e0e83894520c9cc9f888", "score": "0.5126237", "text": "private void setUp(int passengers, int trustedPCT, int fastPCT) {\r\n\t\tTicketing.setDistribution(trustedPCT, fastPCT);\r\n\t\tinTicketing = new PreSecurity(passengers, log);\r\n\t\t\r\n\t}", "title": "" }, { "docid": "4d178594ad2e5e7e0f2a90182090433e", "score": "0.5114301", "text": "public interface Principal {\n\n /**\n * Compares this principal to the specified object. Returns true if the\n * object passed in matches the principal represented by the implementation\n * of this interface.\n *\n * @param another\n * principal to compare with.\n * @return true if the principal passed in is the same as that encapsulated\n * by this principal, and false otherwise.\n */\n public boolean equals(Object another);\n\n /**\n * Returns a string representation of this principal.\n *\n * @return a string representation of this principal.\n */\n public String toString();\n\n /**\n * Returns a hashcode for this principal.\n *\n * @return a hashcode for this principal.\n */\n public int hashCode();\n\n /**\n * Returns the name of this principal.\n *\n * @return the name of this principal.\n */\n public String getName();\n\n /**\n * Returns true if the specified subject is implied by this principal.\n * <p>\n * The default implementation of this method returns true if {@code subject}\n * is non-null and contains at least one principal that is equal to this\n * principal.\n * <p>\n * Subclasses may override this with a different implementation, if\n * necessary.\n *\n * @param subject\n * the {@code Subject}\n * @return true if {@code subject} is non-null and is implied by this\n * principal, or false otherwise.\n * @since 1.8\n */\n public default boolean implies(Subject subject) {\n if (subject == null)\n return false;\n return subject.getPrincipals().contains(this);\n }\n}", "title": "" }, { "docid": "45342ea084076e8afec6d8838ab92ae0", "score": "0.51052827", "text": "public JFramePrincipal() {\n initComponents();\n }", "title": "" }, { "docid": "4522e28e809bec7a555701d9a70badd4", "score": "0.51018435", "text": "public principal() {\n initComponents();\n }", "title": "" }, { "docid": "c49cb4ac1aa840dc1ed9b59e4a1a0e9e", "score": "0.5085193", "text": "public Ventana_Principal() {\n initComponents();\n }", "title": "" }, { "docid": "ff8c68d9d16c75258fde2c5e5b5e9ee2", "score": "0.5080329", "text": "@Override\n\tpublic PrincipalConfig getPrincipalConfig() {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "ad0f1a0701e485cb492b747b977ec820", "score": "0.507961", "text": "private static void setInstallDirProperty() {\n\t\tSystem.setProperty(\"kse.install.dir\", System.getProperty(\"user.dir\"));\n\t}", "title": "" }, { "docid": "61ff90c80dd8ce649639bd665b9e0b43", "score": "0.5079461", "text": "public static void setPrincipal(final HttpServletRequest request,\n\t\t\tfinal Principal principal) {\n\t\tif (principal == null) {\n\t\t\tthrow new IllegalArgumentException(\"Principal is null\");\n\t\t}\n\t\trequest.getSession().setAttribute(KEY_PRINCIPAL, principal);\n\t}", "title": "" }, { "docid": "1e813fa68f136ae2b6edb2eddf2adf73", "score": "0.5079153", "text": "public Principal() {\r\n initComponents();\r\n }", "title": "" }, { "docid": "1e813fa68f136ae2b6edb2eddf2adf73", "score": "0.5079153", "text": "public Principal() {\r\n initComponents();\r\n }", "title": "" }, { "docid": "8866022426184e1bdfe52d22ca7da8f1", "score": "0.5061761", "text": "protected FCCustomPrincipalImpl(String name) {\n setName(name);\n initPrincipal();\n }", "title": "" }, { "docid": "611b13a2a3dbe576abb7452b75769416", "score": "0.50490075", "text": "public void xsetAccrualPolicy(org.apache.xmlbeans.XmlString accrualPolicy)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.XmlString target = null;\r\n target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(ACCRUALPOLICY$0, 0);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(ACCRUALPOLICY$0);\r\n }\r\n target.set(accrualPolicy);\r\n }\r\n }", "title": "" }, { "docid": "72d06c9c6a6fd7dce96fac8b9399804c", "score": "0.50469655", "text": "public Principal() {\n initComponents();\n \n }", "title": "" }, { "docid": "d1a691b232c483abe0ddce4df66526a4", "score": "0.50463504", "text": "public static void main(String[] args) {\n\t\t\r\n\t\tPrincipal e1=new Principal();\r\n\t\te1.Ejecutar();\r\n\t}", "title": "" }, { "docid": "c7c24e30a6c148546c800f6c6fbe171a", "score": "0.5042176", "text": "@Override\r\n\tpublic String getPrincipal() {\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "6cd82d56041e7fb51dbe7f9a476cd3a1", "score": "0.50403446", "text": "public void setPrincipalAuthnIdentifier(String principalAuthnIdentifier);", "title": "" }, { "docid": "4fe5b16dc51cdde86e7f88550104eba4", "score": "0.5039767", "text": "public static void main(String[] args) {\n \t\n PrincipalUI frmPrincipal = new PrincipalUI();\n frmPrincipal.setLocationRelativeTo(null);\n frmPrincipal.setVisible(true);\n\n// \tPalestranteUI frmPalestrante = new PalestranteUI();\n//\t\tfrmPalestrante.setVisible(true);\n//\t\tfrmPalestrante.setTitle(\"Palestrante\");\n \n// AlunoMN.execute();//tudo funcionando ok\n// ColaboradorMN.execute();\n// PalestranteMN.execute();\n }", "title": "" }, { "docid": "29d52b238e42951504e5ae2cf4c3dc77", "score": "0.50202936", "text": "void installSecurity(SecurityProvider type, Pom module);", "title": "" }, { "docid": "19bc3771c89998e9fa9ddc73947bf25a", "score": "0.5014293", "text": "public double getprincipal(){\n\t\treturn principal;\n\t}", "title": "" }, { "docid": "73b31106b5108e95c95d77307af90c54", "score": "0.5013114", "text": "private void setupPermissionService() {\n List<SubjectEntity> users = this.subjectRepository.getUserSubjects();\n users.forEach(user -> UserSubjectCollection.instance.getSubjects().put(user.getIdentifier(), user.getSubject()));\n\n List<SubjectEntity> groups = this.subjectRepository.getGroupSubjects();\n groups.forEach(group -> GroupSubjectCollection.instance.getSubjects().put(group.getIdentifier(), group.getSubject()));\n\n Optional<SubjectEntity> optionalDefault = this.subjectRepository.getDefault();\n if (optionalDefault.isPresent()) {\n Subject defaultSubject = optionalDefault.get().getSubject();\n DefaultSubject.instance.getSubjectData().getAllPermissions().putAll(defaultSubject.getSubjectData().getAllPermissions());\n DefaultSubject.instance.getSubjectData().getAllParents().putAll(defaultSubject.getSubjectData().getAllParents());\n DefaultSubject.instance.getSubjectData().getAllOptions().putAll(defaultSubject.getSubjectData().getAllOptions());\n } else {\n SubjectRepository.getInstance().save(DefaultSubject.instance.getSubjectEntity());\n }\n\n Sponge.getServiceManager().setProvider(this, PermissionService.class, GlowstonePermissionService.instance);\n }", "title": "" }, { "docid": "4cdcf6dc2709757f2499e7a82008beae", "score": "0.5010595", "text": "public Principal() {\n initComponents();\n }", "title": "" }, { "docid": "4cdcf6dc2709757f2499e7a82008beae", "score": "0.5010595", "text": "public Principal() {\n initComponents();\n }", "title": "" }, { "docid": "4cdcf6dc2709757f2499e7a82008beae", "score": "0.5010595", "text": "public Principal() {\n initComponents();\n }", "title": "" }, { "docid": "4cdcf6dc2709757f2499e7a82008beae", "score": "0.5010595", "text": "public Principal() {\n initComponents();\n }", "title": "" }, { "docid": "4cdcf6dc2709757f2499e7a82008beae", "score": "0.5010595", "text": "public Principal() {\n initComponents();\n }", "title": "" }, { "docid": "4cdcf6dc2709757f2499e7a82008beae", "score": "0.5010595", "text": "public Principal() {\n initComponents();\n }", "title": "" }, { "docid": "4cdcf6dc2709757f2499e7a82008beae", "score": "0.5010595", "text": "public Principal() {\n initComponents();\n }", "title": "" }, { "docid": "4e94056debbe4130a86b3dffd38b3296", "score": "0.5008406", "text": "SamlPrincipal getPrincipal();", "title": "" }, { "docid": "287ca57449a4828f945eb8a84be7f694", "score": "0.49930254", "text": "public Principal() {\n initComponents();\n jmi_login.setVisible(false);\n jmi_logina.setVisible(false);\n jmi_parte.setVisible(false);\n jmi_parte2.setVisible(false);\n }", "title": "" }, { "docid": "f0cb5f64b1f06aff1ee7118131059d0b", "score": "0.49892902", "text": "public void setup() {\n\t\tif (roleDAO.count() == 0) {\n\t\t\tROLE_ADMIN = Role.getRole(Role.ADMIN);\n\t\t\tROLE_USER = Role.getRole(Role.USER);\n\t\t\troleDAO.createRole(ROLE_ADMIN);\n\t\t\troleDAO.createRole(ROLE_USER);\n\t\t}\n\t}", "title": "" }, { "docid": "a6d070e3ffaddd31d84057bcf913d8d8", "score": "0.4984574", "text": "public void createPremiumUserRoleAndPolicy(){\n\n //Creating the premium role\n String path = \"http://\"+ kcHost +\"/auth/admin/realms/\"+ realmName +\"/roles\";\n String json = \"{\\\"name\\\":\\\"user-premium\\\"}\";\n makeHTTPRequest(path,json,\"POST\");\n\n //Getting the id of premium\n RoleResource userPremiumRoleRep = realm.roles().get(\"user-premium\");\n String roleID = userPremiumRoleRep.toRepresentation().getId();\n\n // Creating premium policy\n path = \"http://\"+ kcHost +\"/auth/admin/realms/\"+\n realmName +\n \"/clients/\"+\n resourceServerClientId +\n \"/authz/resource-server/policy/role/\";\n json = \"{\\\"type\\\":\\\"role\\\",\\\"logic\\\":\\\"POSITIVE\\\",\\\"decisionStrategy\\\":\\\"UNANIMOUS\\\",\" +\n \"\\\"name\\\":\\\"Premium User Policy\\\",\\\"roles\\\":[{\\\"id\\\":\\\"\"+roleID+\"\\\"}]}\";\n\n makeHTTPRequest(path,json,\"POST\");\n }", "title": "" }, { "docid": "71321b6d9a6d09dd52e203014ea3a6d5", "score": "0.49799967", "text": "private void setCertificado(Certificado certificado) {\n this.certificado = certificado;\n }", "title": "" }, { "docid": "b5c13c0334d5724d3e6d9a9adbbd48eb", "score": "0.4977358", "text": "Object getPrincipal();", "title": "" }, { "docid": "5d48b334862dd95983d3de1549e8d93f", "score": "0.49689874", "text": "public static void main(String[] args) {\n\n\t\tFramePrincipal framePrincipal = new FramePrincipal();\n\t\tPrincipalControl controladorPrincipal = new PrincipalControl(framePrincipal);\n\t\tcontroladorPrincipal.inicia();\n\t}", "title": "" }, { "docid": "c73de1433da4243ca377464e01fe2151", "score": "0.49634698", "text": "@Override\n public KafkaPrincipal principal() {\n InetAddress clientAddress = transportLayer.socketChannel().socket().getInetAddress();\n // listenerName should only be null in Client mode where principal() should not be called\n if (listenerName == null)\n throw new IllegalStateException(\"Unexpected call to principal() when listenerName is null\");\n SslAuthenticationContext context = new SslAuthenticationContext(\n transportLayer.sslSession(),\n clientAddress,\n listenerName.value());\n return principalBuilder.build(context);\n }", "title": "" }, { "docid": "eefc532ac52b22b7af5064e75bb6ab90", "score": "0.49565187", "text": "public Principal() {\n initComponents();\n setLocationRelativeTo(null); \n setModal(true);\n }", "title": "" }, { "docid": "8e17794301616022fde9ac407ce1bd9b", "score": "0.4945467", "text": "private void buildContainerPrincipal()\n\t{\n\t\tcontainerPrincipal.add(containerInformation);\n\t\tcontainerPrincipal.add(containerSelectionArchive);\n\t\tthis.setContentPane(containerPrincipal);\n\n\t}", "title": "" }, { "docid": "b240172b371748fabadb3b0307e59283", "score": "0.49406257", "text": "public MenuPrincipal() {\n initComponents();\n setLocationRelativeTo(null);\n setResizable(false);\n setTitle(\"PRECAR - Menu Principal\");\n }", "title": "" }, { "docid": "7cbac25fb60754f3906152aeeff84826", "score": "0.493629", "text": "void isolate(String principal, UserOrg user);", "title": "" }, { "docid": "d61baae6f289f9773779e7999e44a023", "score": "0.49330032", "text": "public Pantalla_Principal() {\n initComponents();\n }", "title": "" }, { "docid": "0ac72000aa423e185fbbb4aea7d0129a", "score": "0.49301058", "text": "public double getPrincipal()\r\n\t{\r\n\t\treturn principal.get();\r\n\t}", "title": "" }, { "docid": "cca5f986ab9a895de0b707274256ca21", "score": "0.49278867", "text": "public Principal() {\n initComponents();\n \n\n\n }", "title": "" }, { "docid": "bc3e10f8c2e3022638e62cb66c675a4c", "score": "0.49211493", "text": "public org.apache.geronimo.xbeans.geronimo.security.GerPrincipalType addNewPrincipal()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.geronimo.xbeans.geronimo.security.GerPrincipalType target = null;\n target = (org.apache.geronimo.xbeans.geronimo.security.GerPrincipalType)get_store().add_element_user(PRINCIPAL$8);\n return target;\n }\n }", "title": "" }, { "docid": "f58bc78880bb617c7efa2df1407ae574", "score": "0.49146992", "text": "public Principal() {\n initComponents();\n historial = new Historial();\n }", "title": "" }, { "docid": "a5322b379acac832792aebb54b0045a8", "score": "0.49006724", "text": "public Principal() {\n initComponents();\n\n }", "title": "" }, { "docid": "3e14f230e4379c4aa9ffad3308dcb063", "score": "0.48898953", "text": "public void setCurrentPlayer(String Pid) {\r\n if (CurrentPlayer != null) {\r\n //Moderator.messageUser(\"Error: There is already a player in this role\");\r\n } else {\r\n CurrentPlayer = Pid;\r\n }\r\n\r\n }", "title": "" }, { "docid": "ab2ed13c24a350e517c85825d0688717", "score": "0.4882147", "text": "public void calculateInstallPmt() {\n\n switch (installLoan.getPayFrequency()) {\n case 7:\n case 14:\n case 15:\n installLoan.setPaymentAmt((FinanceLib.pmt(installLoan.getPeriodInterest() / 100,\n installLoan.getTermLength() * 2, (double) installLoan.getPrincipal(), 0.0, false)));\n break;\n case 30:\n installLoan.setPaymentAmt((FinanceLib.pmt(installLoan.getPeriodInterest() / 100,\n installLoan.getTermLength(), (double) installLoan.getPrincipal(), 0.0, false)));\n }\n\n }", "title": "" }, { "docid": "c5c6a1cc4d81f1b3408d817649dc630b", "score": "0.48632354", "text": "@Override\n public Object getPrincipal() {\n return null;\n }", "title": "" }, { "docid": "376c7ed86f69e4d8886321125db757e3", "score": "0.4861681", "text": "public Principal(boolean signedIn, String userName) {\n initComponents();\n this.userName_Label.setVisible(false);\n this.signedIn=signedIn;\n this.userName = userName;\n \n if (signedIn)\n {\n this.userName_Label.setText(userName);\n this.userName_Label.setVisible(signedIn); \n \n }\n \n }", "title": "" }, { "docid": "b233f681a078a85ea41c6276d1d8c757", "score": "0.48559228", "text": "public static void requestUpateMainUser(PersistenceData persistenceData) {\n\t}", "title": "" }, { "docid": "295ec253ddb75bad027c0e5dd47c96ce", "score": "0.48468846", "text": "public Principal() {\n initComponents();\n this.setLocationRelativeTo(null);\n }", "title": "" }, { "docid": "23f6f386d5ec24c3fe2cde3e87c7210d", "score": "0.4844258", "text": "public void setEsParrocoPrincipal(boolean es_parroco_principal) {\n this.es_parroco_principal = es_parroco_principal;\n }", "title": "" } ]
0fa8c3b514b5cdf6dc26f8fb4b1cf755
/ Tests for moving a piece by B and unselecting a piece once.
[ { "docid": "ab429197d03fb569faaf3704cf262750", "score": "0.7444138", "text": "@Test\n public void testForBMoveAPieceAndUnselectAPiece() {\n UpdateUI updateUI = createUpdateUI(bId, bId, allFacingUpState);\n BanqiState banqiState = banqiLogic.gameApiStateToBanqiState(\n updateUI.getState(), Color.B, playerIds);\n banqiPresenter.updateUI(updateUI);\n banqiPresenter.cellSelected(24, false);\n banqiPresenter.cellSelected(24, false);\n banqiPresenter.cellSelected(31, false);\n banqiPresenter.cellSelected(30, false);\n\n verify(mockView).setPlayerState(banqiPresenter.getAllCells(banqiState), false);\n verify(mockView, times(2)).chooseNextCell(\n banqiPresenter.getAllCells(banqiState), new ArrayList<Integer>());\n verify(mockView).chooseNextCell(banqiPresenter.getAllCells(banqiState),\n Lists.newArrayList(24));\n verify(mockView).chooseNextCell(banqiPresenter.getAllCells(banqiState),\n Lists.newArrayList(31));\n verify(mockContainer).sendMakeMove(\n banqiLogic.getMovePieceOperation(banqiState, new Set(MOVEPIECE,\n ImmutableList.of(\"C31\", \"C30\"))));\n }", "title": "" } ]
[ { "docid": "7dc6435def779135379ae00d94e513c9", "score": "0.7102152", "text": "@Test\n public void testForBMoveAPiece() {\n UpdateUI updateUI = createUpdateUI(bId, bId, allFacingUpState);\n BanqiState banqiState = banqiLogic.gameApiStateToBanqiState(\n updateUI.getState(), Color.B, playerIds);\n banqiPresenter.updateUI(updateUI);\n banqiPresenter.cellSelected(31, false);\n banqiPresenter.cellSelected(30, false);\n\n verify(mockView).setPlayerState(banqiPresenter.getAllCells(banqiState), false);\n verify(mockView).chooseNextCell(banqiPresenter.getAllCells(banqiState),\n new ArrayList<Integer>());\n verify(mockView).chooseNextCell(banqiPresenter.getAllCells(banqiState),\n Lists.newArrayList(31));\n verify(mockContainer).sendMakeMove(\n banqiLogic.getMovePieceOperation(banqiState, new Set(MOVEPIECE,\n ImmutableList.of(\"C31\", \"C30\"))));\n }", "title": "" }, { "docid": "c92e8fcf501ca81363dbecf5442382e1", "score": "0.69062465", "text": "void pieceWasMoved(PositionOnBoard oldPiecePosition,PositionOnBoard newPiecePosition);", "title": "" }, { "docid": "589efac6112c45baa3c4c79133805c23", "score": "0.6769211", "text": "private static boolean move(Piece[][] board, int xfrom, int yfrom, int xto, int yto) {\n \n \t\tPiece from = board[yfrom][xfrom];\n \t\tPiece to = board[yto][xto];\n \t\tboolean capture = (to != null);\n \t\t\n \t\tif (castleMove(board, from, to, capture, xfrom, yfrom, xto, yto)) {\n \t\t\tint kDest, rDest;\n \t\t\tboolean fromKing;\n \t\t\tif (from instanceof King) {\n \t\t\t\tfromKing = true;\n \t\t\t\tkDest = (xto == 7) ? 6 : 2;\n \t\t\t\trDest = (xto == 7) ? 5 : 3;\n \t\t\t} else {\n \t\t\t\tfromKing = false;\n \t\t\t\tkDest = (xfrom == 7) ? 6 : 2;\n \t\t\t\trDest = (xfrom == 7) ? 5 : 3;\n \t\t\t}\n \t\t\t\n \t\t\tboard[yfrom][xfrom] = null;\n \t\t\tboard[yto][xto] = null;\n \t\t\t\n \t\t\tboard[yfrom][kDest] = (fromKing) ? from : to;\n \t\t\tboard[yto][rDest] = (fromKing) ? to : from;\n \t\t\t\n \t\t\tbc.repaint();\n \t\t\t\n \t\t\twhiteTurn = !whiteTurn;\n \t\t\tfrom.firstMove = false;\n \t\t\tto.firstMove = false;\n \t\t\treturn true;\n \t\t} else if (standardMove(board, from, to, capture, xfrom, yfrom, xto, yto)) {\n \t\t\tif (from instanceof Pawn && yto == ((from.white) ? 7 : 0)) {\n \t\t\t\tboard[yfrom][xfrom] = null;\n \t\t\t\tboard[yto][xto] = new Queen(from.white);\n \t\t\t} else {\n \t\t\t\tboard[yfrom][xfrom] = null;\n \t\t\t\tboard[yto][xto] = from;\n \t\t\t}\n \t\t\t\n \t\t\tbc.repaint();\n \t\t\t\n \t\t\t// Switch turns and set moved piece's firstMove bool to false \n \t\t\twhiteTurn = !whiteTurn;\n \t\t\tfrom.firstMove = false;\n \t\t\treturn true;\n \t\t} else {\n \t\t\treturn false;\n \t\t}\n \t}", "title": "" }, { "docid": "617d747c0476cd2dea5d49321f386356", "score": "0.6743148", "text": "@Test\n public void test_capturePiece() {\n start = new Position(4, 3);\n end = new Position(2, 5);\n move = new Move(start, end);\n\n arrayBoard[4][3].setPiece(new Piece(Piece.Color.RED, Piece.Type.SINGLE));\n //Create a piece to jump\n arrayBoard[3][4].setPiece(new Piece(Piece.Color.WHITE, Piece.Type.SINGLE));\n\n //Test that the piece was placed correctly\n assertNotNull(arrayBoard[3][4].getPiece());\n CuT.makeMove(move);\n //Test the piece was removed after the move\n assertNull(arrayBoard[3][4].getPiece());\n }", "title": "" }, { "docid": "8bb0de5f383293114efa8bfdcb5c3e70", "score": "0.6730047", "text": "@Test\n\tpublic void bishopMoveTest1() throws IllegalMoveException, PieceNullPointerException, CoordinateOutOfBoundsException\n\t{\n\t\tCoord currentPos = new Coord(3,0);\n\t\tCoord newPos = new Coord(5,2);\n\t\tboard.movePiece(currentPos, newPos, ChessColour.WHITE);\n\t}", "title": "" }, { "docid": "ea7c4ea5c3e5a6bf883483f0c538cc9e", "score": "0.6688638", "text": "@Test\n public void testForRMoveAPiece() {\n UpdateUI updateUI = createUpdateUI(rId, rId, allFacingUpState);\n BanqiState banqiState = banqiLogic.gameApiStateToBanqiState(\n updateUI.getState(), Color.R, playerIds);\n banqiPresenter.updateUI(updateUI);\n banqiPresenter.cellSelected(0, false);\n banqiPresenter.cellSelected(1, false);\n\n verify(mockView).setPlayerState(banqiPresenter.getAllCells(banqiState), false);\n verify(mockView).chooseNextCell(banqiPresenter.getAllCells(banqiState),\n new ArrayList<Integer>());\n verify(mockView).chooseNextCell(banqiPresenter.getAllCells(banqiState),\n Lists.newArrayList(0));\n verify(mockContainer).sendMakeMove(\n banqiLogic.getMovePieceOperation(banqiState, new Set(MOVEPIECE,\n ImmutableList.of(\"C0\", \"C1\"))));\n }", "title": "" }, { "docid": "526b3d6169627b7a1f52a9f2c66c6673", "score": "0.6683111", "text": "@Test\n public void isPiecesMove() {\n assertTrue(queen.isPiecesMove(squareE6, game.chessBoard));\n // same square\n assertFalse(queen.isPiecesMove(squareC4, game.chessBoard));\n }", "title": "" }, { "docid": "af7624f5a77e18ac7c68d63001541d3e", "score": "0.66354585", "text": "@Test\n\tvoid canMoveToTest2()\n\t{\n\t\ttry \n\t\t{\n\t\t\t//Creating a new black rook at the cell a1.\n\t\t\tpiece = new Rook(Board.White);\n\t\t\tmovement.construct(piece, board.getCellAt(Board.rowMin, Board.colMin));\n\t\t\tArrayList<Cell> moves = movement.getAllMoves(piece);\n\t\t\t//Make sure that canMoveTo() doesn't mess with\n\t\t\t//already filled list of moves.\n\t\t\tassertEquals(14, movement.getAllMoves(piece).size());\n\t\t\tassertEquals(moves, movement.getAllMoves(piece));\n\t\t\tBoolean y = movement.canMoveTo( piece,\n\t\t\t\t\tboard.getCellAt(Board.rowMax, Board.colMin));\n\t\t\tassertEquals(true, y);\n\t\t\tBoolean selfCell = movement.canMoveTo( piece,\n\t\t\t\t\tboard.getCellAt(Board.rowMin, Board.colMin));\n\t\t\tassertEquals(false, selfCell);\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\tSystem.out.println(\"Exception in testCanMoveTo2() \"\n\t\t\t\t\t+ \"method PieceTest\");\n\t\t}\n\t}", "title": "" }, { "docid": "00cec1baede2977bd6c8cbccef39815d", "score": "0.6623068", "text": "public boolean movePiece(int X, int Y){\n if (current == null ||current.getSelectedPiece()[0]==-1||current.getSelectedPiece()[1]==-1){\n return false;\n }\n if (X > 7 || X < 0 || Y > 7 || Y < 0) {\n return false;\n }\n int[] coords = new int[2];\n coords[0] = X;\n coords[1] = Y;\n int selectedX = current.getSelectedPiece()[0];\n int selectedY = current.getSelectedPiece()[1];\n if (playerNum == 0) {\n if (current.getBoard()[selectedX][selectedY]>=3){\n if (current.getBoard()[X][Y]==0){\n if (selectedX-X==1||selectedX-X==-1){\n if(selectedY-Y==1||selectedY-Y==-1){\n game.sendAction(new CheckersMoveAction(this, coords));\n return true;\n }\n }\n }\n }\n else{\n if (current.getBoard()[X][Y]==0){\n if (selectedX-X==1||selectedX-X==-1){\n if(selectedY-Y==1){\n game.sendAction(new CheckersMoveAction(this, coords));\n return true;\n }\n }\n }\n }\n }\n else {\n if (current.getBoard()[selectedX][selectedY]>=4){\n if (current.getBoard()[X][Y]==0){\n if (selectedX-X==1||selectedX-X==-1){\n if(selectedY-Y==1||selectedY-Y==-1){\n game.sendAction(new CheckersMoveAction(this, coords));\n return true;\n }\n }\n }\n }\n else{\n if (current.getBoard()[X][Y]==0){\n if (selectedX-X==1||selectedX-X==-1){\n if(selectedY-Y==-1){\n game.sendAction(new CheckersMoveAction(this, coords));\n return true;\n }\n }\n }\n }\n }\n Log.i(\"Fat cat 2 pack\", \"jdksal;f\");\n return false;\n }", "title": "" }, { "docid": "034a2700be702251baec8f24b0eedb57", "score": "0.66220546", "text": "@Test\n\tvoid canMoveToTest1() \n\t{\n\t\ttry \n\t\t{\n\t\t\t//Creating a new black rook at the cell a1.\n\t\t\tpiece = new Rook(Board.Black);\n\t\t\tmovement.construct(piece, board.getCellAt(Board.rowMin, Board.colMin));\n\t\t\t\n\t\t\tCell dest = board.getCellAt(Board.rowMax, Board.colMin);\n\t\t\tassertFalse(movement.canMoveTo(piece, null),\n\t\t\t\t\t\"A piece must return false when destination is null.\");\n\t\t\t\n\t\t\tBoolean x = movement.canMoveTo(piece, dest);\n\t\t\tassertEquals(14, movement.getAllMoves(piece).size(),\n\t\t\t\t\t\"A rook can have exactly 14 moves from a1 cell.\");\n\t\t\tassertEquals(true, x, \"A rook must be able to move\"\n\t\t\t\t\t+ \" from a1 to a8.\");\t\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\tSystem.out.println(\"Exception in testCanMoveTo1() \"\n\t\t\t\t\t+ \"method of PieceTest\");\n\t\t}\n\t}", "title": "" }, { "docid": "705e52dd10fddaa952a148305bd9df9a", "score": "0.66063803", "text": "private boolean tryMove (Shape curPiece, int prevX, int prevY, int newX, int newY)\n {\n \n //A brute-force solution to threading. Further explanation in README\n for(int i = 0; i < 4; i++)\n {\n int oldX = curPiece.getShape()[i][0] + prevX;\n int oldY = curPiece.getShape()[i][1] + prevY;\n\n squareCoordinates[oldX][oldY] = 0;\n }\n\n //Checks boundaries\n if (curPiece.minX() + newX < 0 || curPiece.maxX() + newX > BoardWidth - 1 ||\n curPiece.minY() + newY < 0 || curPiece.maxY() + newY > BoardHeight - 2) \n {\n for(int i = 0; i < 4; i++)\n {\n int oldX = curPiece.getShape()[i][0] + prevX;\n int oldY = curPiece.getShape()[i][1] + prevY;\n\n squareCoordinates[oldX][oldY] = curPiece.getShapeType();\n }\n return false;\n }\n\n //Checks for intersection\n for(int j = 0; j < 4; j++)\n {\n int testX = curPiece.getShape()[j][0] + newX;\n int testY = curPiece.getShape()[j][1] + newY;\n if(squareCoordinates[testX][testY] != 0)\n {\n for(int i = 0; i < 4; i++)\n {\n int oldX = curPiece.getShape()[i][0] + prevX;\n int oldY = curPiece.getShape()[i][1] + prevY;\n\n squareCoordinates[oldX][oldY] = curPiece.getShapeType();\n }\n return false;\n }\n }\n for(int i = 0; i < 4; i++)\n {\n int squareX = curPiece.getShape()[i][0] + newX;\n int squareY = curPiece.getShape()[i][1] + newY;\n\n squareCoordinates[squareX][squareY] = curPiece.getShapeType();\n }\n\n this.curPiece = curPiece;\n\n curX = newX;\n curY = newY;\n\n repaint();\n return true;\n }", "title": "" }, { "docid": "c132584e0aef35ecabad377c0f1ab040", "score": "0.6605952", "text": "@Test(expected=IllegalMoveException.class)\n\tpublic void bishopMoveTest3() throws IllegalMoveException, PieceNullPointerException, CoordinateOutOfBoundsException\n\t{\n\t\tCoord currentPos = new Coord(0,0);\n\t\tCoord newPos = new Coord(0,2);\n\t\tboard.movePiece(currentPos, newPos, ChessColour.WHITE);\n\t\tcurrentPos = new Coord(0,2);\n\t\tnewPos = new Coord(0,4);\n\t\tboard.movePiece(currentPos, newPos, ChessColour.WHITE);\n\t\tcurrentPos = new Coord(0,4);\n\t\tnewPos = new Coord(1,4);\n\t\tboard.movePiece(currentPos, newPos, ChessColour.WHITE);\n\t\tcurrentPos = new Coord(2,5);\n\t\tnewPos = new Coord(0,3);\n\t\tboard.movePiece(currentPos, newPos, ChessColour.BLACK);\n\t}", "title": "" }, { "docid": "1cc18f335ecdf4f48e141a66102db87d", "score": "0.66013587", "text": "private boolean movePiece(int row1, int col1, int row2, int col2) {\n //moves the pieces to their according places\n board[row2][col2].setContainedPiece(board[row1][col1].getContainedPiece());\n board[row1][col1].setContainedPiece(null);\n return true;\n }", "title": "" }, { "docid": "8d94acabb9d09f8d273fc0ea8f1c00f2", "score": "0.6590727", "text": "@Test(expected=IllegalMoveException.class)\n\tpublic void bishopMoveTest2() throws IllegalMoveException, PieceNullPointerException, CoordinateOutOfBoundsException\n\t{\n\t\tCoord currentPos = new Coord(3,0);\n\t\tCoord newPos = new Coord(3,2);\n\t\tboard.movePiece(currentPos, newPos, ChessColour.WHITE);\n\t}", "title": "" }, { "docid": "2d826850e8390d0bb22671bbfea48ff9", "score": "0.65886074", "text": "public void movePiece(int x, int y, int x1, int y1) {\n int piece = board[x][y]; \n //populate the board with moved pieces\n board[x1][y1] = piece; \n board[x][y] = 0; //original position now empty\n int xDiff = Math.abs(x - x1); \n if (xDiff == 2) {\n int newX = (x + x1) / 2; \n int newY = (y + y1) / 2; \n board[newX][newY] = 0; \n }\n\n //create kings if criteria fits \n boolean whiteCrowned = (y1 == 7 && piece == white); \n boolean blackCrowned = (y1 == 0 && piece == black); \n if (whiteCrowned) {\n board[x1][y1] = wKing; \n } else if (blackCrowned) {\n board[x1][y1] = bKing; \n }\n\n }", "title": "" }, { "docid": "b37246908fead5e79974ffa6fba710b5", "score": "0.65723866", "text": "@Test\n public void testMoveSelectedPawn() {\n assertFalse(this.game.isPawnSelectable(new Position(8, 5)));\n assertTrue(this.game.isPawnSelectable(new Position(5, 5)));\n\n this.game.setSelectedPawn(new Position(5, 5));\n this.game.moveSelectedPawn(new Position(8, 5));\n\n assertTrue(this.game.isPawnSelectable(new Position(8, 5)));\n assertFalse(this.game.isPawnSelectable(new Position(5, 5)));\n }", "title": "" }, { "docid": "9fc49b47e6b6faa7ad88ef392d601a05", "score": "0.65452325", "text": "public void Validmoves (int boardpieces[] [], int toswap1, int x, int y) //boardpieces represents which array to call Valid Moves on (boardpieces or train), toswap1 is the number that represents the piece and its colour (only counting the first 2 digits), int x and y are the x and y values of the piece on the boardpieces array\n {\n\tint colour = (toswap1 / 10) % 10; // to find the colour of the piece by figuring out the second number\n\tint piece = toswap1 / 100; // to find which piece it is by figuring out the first digit of the number\n\tif (piece == 1 && colour == 2) //if it's a pawn and it's white\n\t{\n\t if (boardpieces [x - 1] [y] / 100 == 0) //to see if sqaure in front is empty\n\t {\n\t\tboardpieces [x - 1] [y] = boardpieces [x - 1] [y] - (boardpieces [x - 1] [y] % 10) + 3; //changes square colour to blue so the player can see if you can move here\n\t\tif (x == 6) //if pawn is at starting position (for white pawns)\n\t\t{\n\t\t if (boardpieces [x - 2] [y] / 100 == 0) //to see if the square 2 in front is empty\n\t\t\tboardpieces [x - 2] [y] = boardpieces [x - 2] [y] - (boardpieces [x - 2] [y] % 10) + 3;\n\t\t}\n\t }\n\n\t if (y - 1 >= 0 && boardpieces [x - 1] [y - 1] / 100 > 0 && (((boardpieces [x - 1] [y - 1] / 10) % 10) == 1)) //if there is a piece/square (if it's inside the array) in front to the left of the pawn and its black\n\t\tboardpieces [x - 1] [y - 1] = boardpieces [x - 1] [y - 1] - (boardpieces [x - 1] [y - 1] % 10) + 3;\n\n\n\t if (y + 1 < col && boardpieces [x - 1] [y + 1] / 100 > 0 && (((boardpieces [x - 1] [y + 1] / 10) % 10) == 1)) //if there is a piece/square (if it's inside the array) in front to the right of the pawn and its black\n\t\tboardpieces [x - 1] [y + 1] = boardpieces [x - 1] [y + 1] - (boardpieces [x - 1] [y + 1] % 10) + 3;\n\n\t}\n\telse if (piece == 1 && colour == 1) //if it's a pawn and it's black\n\t{\n\t if (boardpieces [x + 1] [y] / 100 == 0) //if square in front is empty\n\t {\n\t\tboardpieces [x + 1] [y] = boardpieces [x + 1] [y] - (boardpieces [x + 1] [y] % 10) + 3;\n\t\tif (x == 1) //if pawn is at starting position (for black pawns)\n\t\t{\n\t\t if (boardpieces [x + 2] [y] / 100 == 0) //to see if the square 2 in front is empty\n\t\t\tboardpieces [x + 2] [y] = boardpieces [x + 2] [y] - (boardpieces [x + 2] [y] % 10) + 3;\n\t\t}\n\t }\n\n\t if (y - 1 >= 0 && boardpieces [x + 1] [y - 1] / 100 > 0 && (((boardpieces [x + 1] [y - 1] / 10) % 10) == 2)) //if there is a piece/square (if it's inside the array) in front to the left of the pawn and its white\n\t\tboardpieces [x + 1] [y - 1] = boardpieces [x + 1] [y - 1] - (boardpieces [x + 1] [y - 1] % 10) + 3;\n\n\n\t if (y + 1 < col && boardpieces [x + 1] [y + 1] / 100 > 0 && (((boardpieces [x + 1] [y + 1] / 10) % 10) == 2)) //if there is a piece/square (if it's inside the array) in front to the right of the pawn and its white\n\t\tboardpieces [x + 1] [y + 1] = boardpieces [x + 1] [y + 1] - (boardpieces [x + 1] [y + 1] % 10) + 3;\n\n\t}\n\telse if (piece == 2) //bishop\n\t{\n\t bishop (x, y, colour);\n\t}\n\telse if (piece == 3) //knight\n\t{ //checks if the piece in front or back or sides in a L shape is not its own colour\n\t if (x - 1 >= 0 && y + 2 < col && (boardpieces [x - 1] [y + 2] / 10) % 10 != colour)\n\t\tboardpieces [x - 1] [y + 2] = boardpieces [x - 1] [y + 2] - (boardpieces [x - 1] [y + 2] % 10) + 3;\n\t if (x - 2 >= 0 && y + 1 < col && (boardpieces [x - 2] [y + 1] / 10) % 10 != colour)\n\t\tboardpieces [x - 2] [y + 1] = boardpieces [x - 2] [y + 1] - (boardpieces [x - 2] [y + 1] % 10) + 3;\n\t if (x - 2 >= 0 && y - 1 >= 0 && (boardpieces [x - 2] [y - 1] / 10) % 10 != colour)\n\t\tboardpieces [x - 2] [y - 1] = boardpieces [x - 2] [y - 1] - (boardpieces [x - 2] [y - 1] % 10) + 3;\n\t if (x - 1 >= 0 && y - 2 >= 0 && (boardpieces [x - 1] [y - 2] / 10) % 10 != colour)\n\t\tboardpieces [x - 1] [y - 2] = boardpieces [x - 1] [y - 2] - (boardpieces [x - 1] [y - 2] % 10) + 3;\n\t if (x + 1 < row && y - 2 >= 0 && (boardpieces [x + 1] [y - 2] / 10) % 10 != colour)\n\t\tboardpieces [x + 1] [y - 2] = boardpieces [x + 1] [y - 2] - (boardpieces [x + 1] [y - 2] % 10) + 3;\n\t if (x + 2 < row && y - 1 >= 0 && (boardpieces [x + 2] [y - 1] / 10) % 10 != colour)\n\t\tboardpieces [x + 2] [y - 1] = boardpieces [x + 2] [y - 1] - (boardpieces [x + 2] [y - 1] % 10) + 3;\n\t if (x + 2 < row && y + 1 < col && (boardpieces [x + 2] [y + 1] / 10) % 10 != colour)\n\t\tboardpieces [x + 2] [y + 1] = boardpieces [x + 2] [y + 1] - (boardpieces [x + 2] [y + 1] % 10) + 3;\n\t if (x + 1 < row && y + 2 < col && (boardpieces [x + 1] [y + 2] / 10) % 10 != colour)\n\t\tboardpieces [x + 1] [y + 2] = boardpieces [x + 1] [y + 2] - (boardpieces [x + 1] [y + 2] % 10) + 3;\n\t}\n\telse if (piece == 4) //rook\n\t{\n\t rook (x, y, colour);\n\t}\n\telse if (piece == 5) //queen - moves the same as a bishop and rook put together\n\t{\n\t bishop (x, y, colour);\n\t rook (x, y, colour);\n\t}\n\telse if (piece == 6) //king\n\t{\n\t /*white king castling - had to check if it was white's move because if i didn't it would cause a \"stackoverflow\" error\n\t\t since whenever I called Validmoves inside the following loop or in the black king castling if statement below, it would check the Valid moves\n\t\t for all the black pieces including the black king, and since I called Validmoves on all the white pieces in the black king castle if statement\n\t\t it would call Validmoves on a white king which would in turn call Valid moves again for the black king and this would keep\n\t\t on going forever!!!!! By checking if it is white's turn before entering this if I could avoid Validmoves being called over\n\t\t and over again.*/\n\t if (colour == 2 && wkingmoved == 0 && move % 2 == 0) //if king didn't move and it's white\n\t {\n\t\tfor (int i = 0 ; i < 8 ; i++)\n\t\t{\n\t\t for (int j = 0 ; j < 8 ; j++)\n\t\t {\n\t\t\tif ((boardpieces [i] [j] / 10) % 10 == 1) //calls valid Moves for all black pieces to check is castling is Valid\n\t\t\t Validmoves (boardpieces, (boardpieces [i] [j] - (boardpieces [i] [j] % 10)), i, j);\n\t\t }\n\t\t}\n\t\t//checks if white rook2 (king side) moved and there is no check or pieces in between\n\t\tif (wrook2moved == 0 && x == 7 && boardpieces [x] [y] % 10 != 3 && y + 1 < col && boardpieces [x] [y + 1] % 10 != 3 && (boardpieces [x] [y + 1] / 10) % 10 == 0 && y + 2 < col && boardpieces [x] [y + 2] % 10 != 3 && (boardpieces [x] [y + 2] / 10) % 10 == 0) //king's side castling\n\t\t{\n\t\t resetcolours (boardpieces); //resets\n\t\t wkscastleavailable++;\n\t\t}\n\t\t//checks if white rook1 (queen side) moved and there is no check or pieces in between\n\t\tif (wrook1moved == 0 && x == 7 && boardpieces [x] [y] % 10 != 3 && y - 1 >= 0 && boardpieces [x] [y - 1] % 10 != 3 && (boardpieces [x] [y - 1] / 10) % 10 == 0 && y - 2 >= 0 && boardpieces [x] [y - 2] % 10 != 3 && (boardpieces [x] [y - 2] / 10) % 10 == 0 && y - 3 >= 0 && boardpieces [x] [y - 3] % 10 != 3) //queen side castling\n\t\t{\n\t\t resetcolours (boardpieces);\n\t\t wqscastleavailable++;\n\t\t}\n\t\t//if no castle is available it sets all the blue squares that were called on black pieces when Valid Moves was called to normal colours\n\t\tif (wkscastleavailable == 0 && wqscastleavailable == 0)\n\t\t resetcolours (boardpieces);\n\t }\n\t /*black king castling - had to check if it was black's move because if i didn't it would cause a \"stackoverflow\" error\n\t\tsince whenever I called Validmoves inside the following loop or in the white king castling if statement above, it would check\n\t\tthe Valid moves for all the white pieces including the white king, and since I called Validmoves on all the black pieces in the\n\t\twhite king castle if statement it would call Validmoves on a black king which would in turn call Valid moves again for the white\n\t\tking and this would keep on going forever!!!!! By checking if it is black's turn before entering this if I could avoid Validmoves\n\t\tbeing called over and over again.*/\n\t else if (colour == 1 && bkingmoved == 0 && move % 2 == 1) //if king didn't move and it's black\n\t {\n\t\tfor (int i = 0 ; i < 8 ; i++)\n\t\t{\n\t\t for (int j = 0 ; j < 8 ; j++)\n\t\t {\n\t\t\tif ((boardpieces [i] [j] / 10) % 10 == 2) //calls valid Moves for all black pieces to check is castling is Valid\n\t\t\t Validmoves (boardpieces, (boardpieces [i] [j] - (boardpieces [i] [j] % 10)), i, j);\n\t\t }\n\t\t}\n\t\t//checks if black rook2 (king side) moved and there is no check or pieces in between\n\t\tif (brook2moved == 0 && x == 0 && boardpieces [x] [y] % 10 != 3 && y + 1 < col && boardpieces [x] [y + 1] % 10 != 3 && (boardpieces [x] [y + 1] / 10) % 10 == 0 && y + 2 < col && boardpieces [x] [y + 2] % 10 != 3 && (boardpieces [x] [y + 2] / 10) % 10 == 0) //king's side castling\n\t\t{\n\t\t resetcolours (boardpieces);\n\t\t bkscastleavailable++;\n\t\t}\n\t\t//checks if black rook1 (queen side) moved and there is no check or pieces in between\n\t\tif (brook1moved == 0 && x == 0 && boardpieces [x] [y] % 10 != 3 && y - 1 >= 0 && boardpieces [x] [y - 1] % 10 != 3 && (boardpieces [x] [y - 1] / 10) % 10 == 0 && y - 2 >= 0 && boardpieces [x] [y - 2] % 10 != 3 && (boardpieces [x] [y - 2] / 10) % 10 == 0 && y - 3 >= 0 && boardpieces [x] [y - 3] % 10 != 3) //king's side castling\n\t\t{\n\t\t resetcolours (boardpieces);\n\t\t bqscastleavailable++;\n\t\t}\n\t\t//if no castle is available it sets all the blue squares that were called on white pieces when Valid Moves was called to normal colours\n\t\tif (bkscastleavailable == 0 && bqscastleavailable == 0)\n\t\t resetcolours (boardpieces);\n\t }\n\t //king moves (up, down, left, right and diagonally in all directions for one space)\n\t if (y + 1 < col && ((boardpieces [x] [y + 1] / 10) % 10) != colour)\n\t {\n\t\tboardpieces [x] [y + 1] = boardpieces [x] [y + 1] - (boardpieces [x] [y + 1] % 10) + 3;\n\t }\n\t if (x - 1 >= 0 && y + 1 < col && ((boardpieces [x - 1] [y + 1] / 10) % 10) != colour)\n\t {\n\t\tboardpieces [x - 1] [y + 1] = boardpieces [x - 1] [y + 1] - (boardpieces [x - 1] [y + 1] % 10) + 3;\n\t }\n\t if (x - 1 >= 0 && ((boardpieces [x - 1] [y] / 10) % 10) != colour)\n\t {\n\t\tboardpieces [x - 1] [y] = boardpieces [x - 1] [y] - (boardpieces [x - 1] [y] % 10) + 3;\n\t }\n\t if (x - 1 >= 0 && y - 1 >= 0 && ((boardpieces [x - 1] [y - 1] / 10) % 10) != colour)\n\t {\n\t\tboardpieces [x - 1] [y - 1] = boardpieces [x - 1] [y - 1] - (boardpieces [x - 1] [y - 1] % 10) + 3;\n\t }\n\t if (y - 1 >= 0 && ((boardpieces [x] [y - 1] / 10) % 10) != colour)\n\t {\n\t\tboardpieces [x] [y - 1] = boardpieces [x] [y - 1] - (boardpieces [x] [y - 1] % 10) + 3;\n\t }\n\t if (x + 1 < row && y - 1 >= 0 && ((boardpieces [x + 1] [y - 1] / 10) % 10) != colour)\n\t {\n\t\tboardpieces [x + 1] [y - 1] = boardpieces [x + 1] [y - 1] - (boardpieces [x + 1] [y - 1] % 10) + 3;\n\t }\n\t if (x + 1 < row && ((boardpieces [x + 1] [y] / 10) % 10) != colour)\n\t {\n\t\tboardpieces [x + 1] [y] = boardpieces [x + 1] [y] - (boardpieces [x + 1] [y] % 10) + 3;\n\t }\n\t if (x + 1 < row && y + 1 < col && ((boardpieces [x + 1] [y + 1] / 10) % 10) != colour)\n\t {\n\t\tboardpieces [x + 1] [y + 1] = boardpieces [x + 1] [y + 1] - (boardpieces [x + 1] [y + 1] % 10) + 3;\n\t }\n\t //if castles were available it sets the squares for astling blue\n\t if (y + 2 < col && (wkscastleavailable == 1 || bkscastleavailable == 1))\n\t\tboardpieces [x] [y + 2] = boardpieces [x] [y + 2] - (boardpieces [x] [y + 2] % 10) + 3;\n\t if (y - 2 >= 0 && (bqscastleavailable == 1 || wqscastleavailable == 1))\n\t\tboardpieces [x] [y - 2] = boardpieces [x] [y - 2] - (boardpieces [x] [y - 2] % 10) + 3;\n\t}\n }", "title": "" }, { "docid": "f8577156c5daaaf29f8106ca3bf88a6e", "score": "0.65277535", "text": "static void pieceAction() {\r\n\r\n \t//Below it is checked whether the piece selected is an allowed piece to be selected.\r\n \t//firstTurn being true allows either red or blue pieces to be selected.\r\n if (isPieceSelected && ((pieceSelected.getType() != previousPieceType || (pieceWasAttacked && pieceSelected.samePiece(previousPieceSelected))) || firstTurn)) {\r\n int oldX = pieceSelected.getPieceX();\r\n int oldY = pieceSelected.getPieceY();\r\n int newX = tileClicked.getTileX();\r\n int newY = tileClicked.getTileY();\r\n\r\n //Below it is checked whether the player moves or attacks another piece using the pieceSelected.\r\n //If neither, nothing occurs until a legal option is made by the player.\r\n if ((Math.abs(newX - oldX) == 1 && firstTurn) || (Math.abs(newX - oldX) == 1 && ((newY - oldY) == pieceSelected.getType().MOVEDIRECTION || pieceSelected.getType()==PieceType.REDKING || pieceSelected.getType()==PieceType.BLUEKING) && !tileClicked.hasPiece() && !pieceSelected.samePiece(previousPieceSelected))){\r\n firstTurn = false;\r\n \tpieceWasAttacked = false;\r\n \tmovePiece(oldX, oldY, newX, newY);\r\n endGameSelected =false;\r\n\r\n } else if (Math.abs(newX - oldX) == 2 && ((newY - oldY) == 2 * pieceSelected.getType().MOVEDIRECTION || pieceSelected.getType()==PieceType.REDKING || pieceSelected.getType()==PieceType.BLUEKING) && !tileClicked.hasPiece()) {\r\n \tattackingPieceMove(oldX, oldY, newX, newY);\r\n endGameSelected =false;\r\n }\r\n\r\n //Below it is checked whether any piece reached the end of the board which allows it to\r\n //become a king piece. This allows the piece to move in either positive or negative MOVEDIRECTION.\r\n if(pieceSelected.getType() == PieceType.RED && newY == 7){\r\n \tpieces.getChildren().remove(pieceSelected);\r\n \tpieces.getChildren().add(new PlayPiece(PieceType.REDKING, newX,newY));\r\n \tendGameSelected =false;\r\n }\r\n else if(pieceSelected.getType() == PieceType.BLUE && newY == 0){\r\n \tpieces.getChildren().remove(pieceSelected);\r\n \tpieces.getChildren().add(new PlayPiece(PieceType.BLUEKING, newX,newY));\r\n \tendGameSelected =false;\r\n }\r\n previousPieceSelected = pieceSelected;\r\n\r\n //Opacity for pieces set to 1.0 after actions are made\r\n previousPiece.setOpacity(1.0);\r\n previousPieceSelected.setOpacity(1.0);\r\n }\r\n\r\n }", "title": "" }, { "docid": "f5e2d499092b7ad4194a272bdfe75501", "score": "0.6478485", "text": "public boolean movePiece(Move inMove){\n\t\tMove usableMove = new Move(inMove, this);\n\t\tif(validateMove(usableMove)){\n\t\t\tif(validate (usableMove)){\n\t\t\t\tif(board[usableMove.getPosition().getRows()][usableMove.getPosition().getColumns()] != null){\n\t\t\t\t\t// System.out.println(\"GOT HERE\");\n\t\t\t\t\tif(board[usableMove.getPosition().getRows()][usableMove.getPosition().getColumns()].getTeam() == 'W'){\n\t\t\t\t\t\twhite.deletePiece(board[usableMove.getPosition().getRows()][usableMove.getPosition().getColumns()]);\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\tblack.deletePiece(board[usableMove.getPosition().getRows()][usableMove.getPosition().getColumns()]);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tusableMove.getPiece().setPosition(usableMove.getPosition());\n\t\t\t\tboard[usableMove.getOldPosition().getRows()][usableMove.getOldPosition().getColumns()] = null;\n\t\t\t\tboard[usableMove.getPosition().getRows()][usableMove.getPosition().getColumns()] = usableMove.getPiece();\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "title": "" }, { "docid": "9f44d067bde265d33a8af50145a05d49", "score": "0.6475553", "text": "@Test\n\tpublic void rookMoveTest2() throws IllegalMoveException, PieceNullPointerException, CoordinateOutOfBoundsException\n\t{\n\t\tCoord currentPos = new Coord(0,0);\n\t\tCoord newPos = new Coord(0,2);\n\t\tboard.movePiece(currentPos, newPos, ChessColour.WHITE);\n\t}", "title": "" }, { "docid": "4b9da97bc8b4c7ffa8cc8a62826af548", "score": "0.6462491", "text": "public void validMoves(Piece p){\n\n\t\t//_____________________________________WHITE_PAWNS_____________________________________//\n\n\t\tif(p.toString() == \"Pawn\" && p.type() == PlayerWhite){\n\t\t\t// LOOK ONE SQUARE AHEAD IF CLEAR HIGHLIGHT\n\t\t\tif(p.jcoord()-1 >= 0){ // Guard for bounds\n\t\t\tif(pieces[p.icoord()][p.jcoord()-1].toString().equals(\"Empty\")){\n\t\t\t\tboard[p.icoord()][p.jcoord()-1].setStroke(Color.CORNFLOWERBLUE);\n\t\t\t}}\n\n\t\t\tif(p.firstmove() == true){\n\t\t\t// LOOK TWO SQUARE AHEAD IF CLEAR HIGHLIGHT\n\t\t\tif(pieces[p.icoord()][p.jcoord()-2].toString().equals(\"Empty\") && pieces[p.icoord()][p.jcoord()-1].toString().equals(\"Empty\")){\n\t\t\t\tboard[p.icoord()][p.jcoord()-2].setStroke(Color.CORNFLOWERBLUE);\n\t\t\t}}\n\n\t\t\t// LOOK ONE SQUARE LEFT DIAGONALLY IF ENEMY PRESENT HIGHLIGHT\n\t\t\tif(p.icoord()-1 >= 0 && p.jcoord()-1 >= 0){\n\t\t\tif(pieces[p.icoord()-1][p.jcoord()-1].type() == 2){\n\t\t\t\tboard[p.icoord()-1][p.jcoord()-1].setStroke(Color.AQUAMARINE);\n\t\t\t}}\n\n\t\t\t// LOOK ONE SQUARE RIGHT DIAGONALLY IF ENEMY PRESENT HIGHLIGHT\n\t\t\tif(p.icoord()+1 < 8 && p.jcoord()-1 >= 0){\n\t\t\tif(pieces[p.icoord()+1][p.jcoord()-1].type() == 2){\n\t\t\t\tboard[p.icoord()+1][p.jcoord()-1].setStroke(Color.AQUAMARINE);\n\t\t\t}}\n\t\t}\n\n\t\t\t//_____________________________________BLACKPAWNS_____________________________________//\n\n\t\t\tif(p.toString() == \"Pawn\" && p.type() == 2){\n\t\t\t\t// LOOK ONE SQUARE AHEAD IF CLEAR HIGHLIGHT\n\t\t\t\tif(p.jcoord()+1 < 8){ // Guard for bounds\n\t\t\t\tif(pieces[p.icoord()][p.jcoord()+1].toString().equals(\"Empty\")){\n\t\t\t\t\tboard[p.icoord()][p.jcoord()+1].setStroke(Color.CORNFLOWERBLUE);\n\t\t\t\t}}\n\n\t\t\t\tif(p.firstmove()){\n\t\t\t\t// LOOK TWO SQUARE AHEAD IF CLEAR HIGHLIGHT\n\t\t\t\tif(pieces[p.icoord()][p.jcoord()+2].toString().equals(\"Empty\") && pieces[p.icoord()][p.jcoord()+1].toString().equals(\"Empty\")){\n\t\t\t\t\tboard[p.icoord()][p.jcoord()+2].setStroke(Color.CORNFLOWERBLUE);\n\t\t\t\t}}\n\n\t\t\t\t// LOOK ONE SQUARE LEFT DIAGONALLY IF ENEMY PRESENT HIGHLIGHT\n\t\t\t\tif(p.icoord()-1 >= 0 && p.jcoord()+1 < 8){\n\t\t\t\tif(pieces[p.icoord()-1][p.jcoord()+1].type() == 1){\n\t\t\t\t\tboard[p.icoord()-1][p.jcoord()+1].setStroke(Color.AQUAMARINE);\n\t\t\t\t}}\n\n\t\t\t\t// LOOK ONE SQUARE RIGHT DIAGONALLY IF ENEMY PRESENT HIGHLIGHT\n\t\t\t\tif(p.icoord()+1 < 8 && p.jcoord()+1 < 8){\n\t\t\t\tif(pieces[p.icoord()+1][p.jcoord()+1].type() == 1){\n\t\t\t\t\tboard[p.icoord()+1][p.jcoord()+1].setStroke(Color.AQUAMARINE);\n\t\t\t\t}}\n\t\t\t}\n\n\t\t\t//__________________________________________WHITEROOK_____________________________________//\n\n\t\t\tif(p.toString() == \"Rook\" && p.type() == 1){\n\t\t\t\t// Look Up ..\n\t\t\t\tfor(int y = p.jcoord()-1; y >= 0; y--){\n\t\t\t\t\tif(pieces[p.icoord()][y].toString().equals(\"Empty\")){\n\t\t\t\t\tboard[p.icoord()][y].setStroke(Color.CORNFLOWERBLUE);\n\t\t\t\t\t}\n\t\t\t\t\tif(pieces[p.icoord()][y].type()==2){\n\t\t\t\t\tboard[p.icoord()][y].setStroke(Color.AQUAMARINE);\n\t\t\t\t\t// Stop looking\n\t\t\t\t\ty=-1;\n\t\t\t\t\t}\n\t\t\t\t\tif(y!=-1 && pieces[p.icoord()][y].type()==1){\n\t\t\t\t\t// Stop looking\n\t\t\t\t\ty=-1;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// Look Right ..\n\t\t\t\tfor(int x = p.icoord()+1; x < 8; x++){\n\t\t\t\t\tif(pieces[x][p.jcoord()].toString().equals(\"Empty\")){\n\t\t\t\t\tboard[x][p.jcoord()].setStroke(Color.CORNFLOWERBLUE);\n\t\t\t\t\t}\n\t\t\t\t\tif(pieces[x][p.jcoord()].type()==2){\n\t\t\t\t\tboard[x][p.jcoord()].setStroke(Color.AQUAMARINE);\n\t\t\t\t\t// Stop looking\n\t\t\t\t\tx=8;\n\t\t\t\t\t}\n\t\t\t\t\tif(x!=8 && pieces[x][p.jcoord()].type()==1){\n\t\t\t\t\t// Stop looking\n\t\t\t\t\tx=8;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// Look Left ..\n\t\t\t\tfor(int x = p.icoord()-1; x >= 0; x--){\n\t\t\t\t\tif(pieces[x][p.jcoord()].toString().equals(\"Empty\")){\n\t\t\t\t\tboard[x][p.jcoord()].setStroke(Color.CORNFLOWERBLUE);\n\t\t\t\t\t}\n\t\t\t\t\tif(pieces[x][p.jcoord()].type()==2){\n\t\t\t\t\tboard[x][p.jcoord()].setStroke(Color.AQUAMARINE);\n\t\t\t\t\t// Stop looking\n\t\t\t\t\tx=-1;\n\t\t\t\t\t}\n\t\t\t\t\tif(x!=-1 && pieces[x][p.jcoord()].type()==1){\n\t\t\t\t\t// Stop looking\n\t\t\t\t\tx=-1;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// Look Down ..\n\t\t\t\tfor(int y = p.jcoord()+1; y < 8; y++){\n\t\t\t\t\tif(pieces[p.icoord()][y].toString().equals(\"Empty\")){\n\t\t\t\t\tboard[p.icoord()][y].setStroke(Color.CORNFLOWERBLUE);\n\t\t\t\t\t}\n\t\t\t\t\tif(pieces[p.icoord()][y].type()==2){\n\t\t\t\t\tboard[p.icoord()][y].setStroke(Color.AQUAMARINE);\n\t\t\t\t\t// Stop looking\n\t\t\t\t\ty=8;\n\t\t\t\t\t}\n\t\t\t\t\tif(y!=8 && pieces[p.icoord()][y].type()==1 && y!=8){\n\t\t\t\t\t// Stop looking\n\t\t\t\t\ty=8;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t//__________________________________________BLACKROOK_____________________________________//\n\n\t\t\tif(p.toString() == \"Rook\" && p.type() == 2){\n\t\t\t\t// Look Up ..\n\t\t\t\tfor(int y = p.jcoord()-1; y >= 0; y--){\n\t\t\t\t\tif(pieces[p.icoord()][y].toString().equals(\"Empty\")){\n\t\t\t\t\tboard[p.icoord()][y].setStroke(Color.CORNFLOWERBLUE);\n\t\t\t\t\t}\n\t\t\t\t\tif(pieces[p.icoord()][y].type()==1){\n\t\t\t\t\tboard[p.icoord()][y].setStroke(Color.AQUAMARINE);\n\t\t\t\t\t// Stop looking\n\t\t\t\t\ty=-1;\n\t\t\t\t\t}\n\t\t\t\t\tif(y!=-1 && pieces[p.icoord()][y].type()==2){\n\t\t\t\t\t// Stop looking\n\t\t\t\t\ty=-1;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// Look Right ..\n\t\t\t\tfor(int x = p.icoord()+1; x < 8; x++){\n\t\t\t\t\tif(pieces[x][p.jcoord()].toString().equals(\"Empty\")){\n\t\t\t\t\tboard[x][p.jcoord()].setStroke(Color.CORNFLOWERBLUE);\n\t\t\t\t\t}\n\t\t\t\t\tif(pieces[x][p.jcoord()].type()==1){\n\t\t\t\t\tboard[x][p.jcoord()].setStroke(Color.AQUAMARINE);\n\t\t\t\t\t// Stop looking\n\t\t\t\t\tx=8;\n\t\t\t\t\t}\n\t\t\t\t\tif(x!=8 && pieces[x][p.jcoord()].type()==2){\n\t\t\t\t\t// Stop looking\n\t\t\t\t\tx=8;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// Look Left ..\n\t\t\t\tfor(int x = p.icoord()-1; x >= 0; x--){\n\t\t\t\t\tif(pieces[x][p.jcoord()].toString().equals(\"Empty\")){\n\t\t\t\t\tboard[x][p.jcoord()].setStroke(Color.CORNFLOWERBLUE);\n\t\t\t\t\t}\n\t\t\t\t\tif(pieces[x][p.jcoord()].type()==1){\n\t\t\t\t\tboard[x][p.jcoord()].setStroke(Color.AQUAMARINE);\n\t\t\t\t\t// Stop looking\n\t\t\t\t\tx=-1;\n\t\t\t\t\t}\n\t\t\t\t\tif(x!=-1 && pieces[x][p.jcoord()].type()==2){\n\t\t\t\t\t// Stop looking\n\t\t\t\t\tx=-1;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// Look Down ..\n\t\t\t\tfor(int y = p.jcoord()+1; y < 8; y++){\n\t\t\t\t\tif(pieces[p.icoord()][y].toString().equals(\"Empty\")){\n\t\t\t\t\tboard[p.icoord()][y].setStroke(Color.CORNFLOWERBLUE);\n\t\t\t\t\t}\n\t\t\t\t\tif(pieces[p.icoord()][y].type()==1){\n\t\t\t\t\tboard[p.icoord()][y].setStroke(Color.AQUAMARINE);\n\t\t\t\t\t// Stop looking\n\t\t\t\t\ty=8;\n\t\t\t\t\t}\n\t\t\t\t\tif(y!=8 && pieces[p.icoord()][y].type()==2){\n\t\t\t\t\t// Stop looking\n\t\t\t\t\ty=8;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\n\t\t\t//__________________________________________BLACKBISHOP_____________________________________//\n\n\t\t\tif(p.toString() == \"Bishop\" && p.type() == 2){\n\t\t\t\t// Look up .. (left)\n\t\t\t\tfor(int y=p.jcoord()-1, x=p.icoord()-1; y >= 0 && x >= 0; y--,x--){\n\t\t\t\t\tif(pieces[x][y].toString().equals(\"Empty\")){\n\t\t\t\t\tboard[x][y].setStroke(Color.CORNFLOWERBLUE);\n\t\t\t\t\t}\n\t\t\t\t\tif(pieces[x][y].type()==1){\n\t\t\t\t\tboard[x][y].setStroke(Color.AQUAMARINE);\n\t\t\t\t\t// Stop Looking\n\t\t\t\t\tx=-1; y=-1;\n\t\t\t\t\t}\n\t\t\t\t\tif(x!=-1 && y!=-1 && pieces[x][y].type()==2){\n\t\t\t\t\t// Stop Looking\n\t\t\t\t\tx=-1; y=-1;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// Look up .. (right)\n\t\t\t\tfor(int y=p.jcoord()-1, x=p.icoord()+1; y >= 0 && x < 8; y--,x++){\n\t\t\t\t\tif(pieces[x][y].toString().equals(\"Empty\")){\n\t\t\t\t\tboard[x][y].setStroke(Color.CORNFLOWERBLUE);\n\t\t\t\t\t}\n\t\t\t\t\tif(pieces[x][y].type()==1){\n\t\t\t\t\tboard[x][y].setStroke(Color.AQUAMARINE);\n\t\t\t\t\t// Stop Looking\n\t\t\t\t\tx=8;y=-1;\n\t\t\t\t\t}\n\t\t\t\t\tif(x!=8 && y!=-1 && pieces[x][y].type()==2){\n\t\t\t\t\t// Stop Looking\n\t\t\t\t\tx=8;y = -1;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// Look down .. (left)\n\t\t\t\tfor(int y=p.jcoord()+1, x=p.icoord()-1; y < 8 && x >= 0; y++,x--){\n\t\t\t\t\tif(pieces[x][y].toString().equals(\"Empty\")){\n\t\t\t\t\tboard[x][y].setStroke(Color.CORNFLOWERBLUE);\n\t\t\t\t\t}\n\t\t\t\t\tif(pieces[x][y].type()==1){\n\t\t\t\t\tboard[x][y].setStroke(Color.AQUAMARINE);\n\t\t\t\t\t// Stop Looking\n\t\t\t\t\tx= -1; y = 8;\n\t\t\t\t\t}\n\t\t\t\t\tif(x!=-1 && y!=8 && pieces[x][y].type()==2){\n\t\t\t\t\t// Stop Looking\n\t\t\t\t\tx = -1; y = 8;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// Look down .. (right)\n\t\t\t\tfor(int y=p.jcoord()+1, x=p.icoord()+1; y < 8 && x < 8; y++,x++){\n\t\t\t\t\tif(pieces[x][y].toString().equals(\"Empty\")){\n\t\t\t\t\tboard[x][y].setStroke(Color.CORNFLOWERBLUE);\n\t\t\t\t\t}\n\t\t\t\t\tif(pieces[x][y].type()==1){\n\t\t\t\t\tboard[x][y].setStroke(Color.AQUAMARINE);\n\t\t\t\t\t// Stop Looking\n\t\t\t\t\tx=8;y=8;\n\t\t\t\t\t}\n\t\t\t\t\tif(x!=8 && y!=8 && pieces[x][y].type()==2){\n\t\t\t\t\t// Stop Looking\n\t\t\t\t\tx=8;y=8;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t//__________________________________________WHITEBISHOP_____________________________________//\n\n\t\tif(p.toString() == \"Bishop\" && p.type() == 1){\n\t\t\t// Look up .. (left)\n\t\t\tfor(int y=p.jcoord()-1, x=p.icoord()-1; y >= 0 && x >= 0; y--,x--){\n\t\t\t\tif(pieces[x][y].toString().equals(\"Empty\")){\n\t\t\t\t\tboard[x][y].setStroke(Color.CORNFLOWERBLUE);\n\t\t\t\t}\n\t\t\t\tif(pieces[x][y].type()==2){\n\t\t\t\t\tboard[x][y].setStroke(Color.AQUAMARINE);\n\t\t\t\t\t// Stop Looking\n\t\t\t\t\tx=-1; y=-1;\n\t\t\t\t}\n\t\t\t\tif(x!=-1 && y!=-1 && pieces[x][y].type()==1){\n\t\t\t\t\t// Stop Looking\n\t\t\t\t\tx=-1; y=-1;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Look up .. (right)\n\t\t\tfor(int y=p.jcoord()-1, x=p.icoord()+1; y >= 0 && x < 8; y--,x++){\n\t\t\t\tif(pieces[x][y].toString().equals(\"Empty\")){\n\t\t\t\t\tboard[x][y].setStroke(Color.CORNFLOWERBLUE);\n\t\t\t\t}\n\t\t\t\tif(pieces[x][y].type()==2){\n\t\t\t\t\tboard[x][y].setStroke(Color.AQUAMARINE);\n\t\t\t\t\t// Stop Looking\n\t\t\t\t\tx=8; y=-1;\n\t\t\t\t}\n\t\t\t\tif(x!=8 && y!=-1 && pieces[x][y].type()==1){\n\t\t\t\t\t// Stop Looking\n\t\t\t\t\tx=8; y=-1;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Look down .. (left)\n\t\t\tfor(int y=p.jcoord()+1, x=p.icoord()-1; y < 8 && x >= 0; y++,x--){\n\t\t\t\tif(pieces[x][y].toString().equals(\"Empty\")){\n\t\t\t\t\tboard[x][y].setStroke(Color.CORNFLOWERBLUE);\n\t\t\t\t}\n\t\t\t\tif(pieces[x][y].type()==2){\n\t\t\t\t\tboard[x][y].setStroke(Color.AQUAMARINE);\n\t\t\t\t\t// Stop Looking\n\t\t\t\t\tx=-1; y=8;\n\t\t\t\t}\n\t\t\t\tif(x!=-1 && y!=8 && pieces[x][y].type()==1){\n\t\t\t\t\t// Stop Looking\n\t\t\t\t\tx=-1; y=8;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Look down .. (right)\n\t\t\tfor(int y=p.jcoord()+1, x=p.icoord()+1; y < 8 && x < 8; y++,x++){\n\t\t\t\tif(pieces[x][y].toString().equals(\"Empty\")){\n\t\t\t\t\tboard[x][y].setStroke(Color.CORNFLOWERBLUE);\n\t\t\t\t}\n\t\t\t\tif(pieces[x][y].type()==2){\n\t\t\t\t\tboard[x][y].setStroke(Color.AQUAMARINE);\n\t\t\t\t\t// Stop Looking\n\t\t\t\t\tx=8;y=8;\n\t\t\t\t}\n\t\t\t\tif(x!=8 && y!=8 && pieces[x][y].type()==1){\n\t\t\t\t\t// Stop Looking\n\t\t\t\t\tx=8;y=8;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t\t//_________________________________ WHITE_KNIGHT _____________________________________//\n\n\t\t\t// Assuming knights can jump regardless of what pieces are in the way//_________________-___________\n\n\t\t\tif(p.toString() == \"Knight\" && p.type() == 1){\n\t\t\t\t// Up and left (first)\n\t\t\t\tif(p.icoord()-1 >= 0 && p.jcoord()-2 >= 0){\t\t\t\t// Bound check\n\t\t\t\t\tif(pieces[p.icoord()-1][p.jcoord()-2].toString().equals(\"Empty\")){\n\t\t\t\t\t\tboard[p.icoord()-1][p.jcoord()-2].setStroke(Color.CORNFLOWERBLUE);\n\t\t\t\t\t}\n\t\t\t\t\tif(pieces[p.icoord()-1][p.jcoord()-2].type()==2){\n\t\t\t\t\t\tboard[p.icoord()-1][p.jcoord()-2].setStroke(Color.AQUAMARINE);\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// Up and left (second)\n\t\t\t\tif(p.icoord()-2 >= 0 && p.jcoord()-1 >= 0){\t\t\t\t// Bound check\n\t\t\t\t\tif(pieces[p.icoord()-2][p.jcoord()-1].toString().equals(\"Empty\")){\n\t\t\t\t\t\tboard[p.icoord()-2][p.jcoord()-1].setStroke(Color.CORNFLOWERBLUE);\n\t\t\t\t\t}\n\t\t\t\t\tif(pieces[p.icoord()-2][p.jcoord()-1].type()==2){\n\t\t\t\t\t\tboard[p.icoord()-2][p.jcoord()-1].setStroke(Color.AQUAMARINE);\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// Up and right (first)\n\t\t\t\tif(p.icoord()+1 < 8 && p.jcoord()-2 >= 0){\t\t\t\t// Bound check\n\t\t\t\t\tif(pieces[p.icoord()+1][p.jcoord()-2].toString().equals(\"Empty\")){\n\t\t\t\t\t\tboard[p.icoord()+1][p.jcoord()-2].setStroke(Color.CORNFLOWERBLUE);\n\t\t\t\t\t}\n\t\t\t\t\tif(pieces[p.icoord()+1][p.jcoord()-2].type()==2){\n\t\t\t\t\t\tboard[p.icoord()+1][p.jcoord()-2].setStroke(Color.AQUAMARINE);\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// Up and right (second)\n\t\t\t\tif(p.icoord()+2 < 8 && p.jcoord()-1 >= 0){\t\t\t\t// Bound check\n\t\t\t\t\tif(pieces[p.icoord()+2][p.jcoord()-1].toString().equals(\"Empty\")){\n\t\t\t\t\t\tboard[p.icoord()+2][p.jcoord()-1].setStroke(Color.CORNFLOWERBLUE);\n\t\t\t\t\t}\n\t\t\t\t\tif(pieces[p.icoord()+2][p.jcoord()-1].type()==2){\n\t\t\t\t\t\tboard[p.icoord()+2][p.jcoord()-1].setStroke(Color.AQUAMARINE);\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// Bottom and right (first)\n\t\t\t\tif(p.icoord()+1 < 8 && p.jcoord()+2 < 8){\t\t\t\t// Bound check\n\t\t\t\t\tif(pieces[p.icoord()+1][p.jcoord()+2].toString().equals(\"Empty\")){\n\t\t\t\t\t\tboard[p.icoord()+1][p.jcoord()+2].setStroke(Color.CORNFLOWERBLUE);\n\t\t\t\t\t}\n\t\t\t\t\tif(pieces[p.icoord()+1][p.jcoord()+2].type()==2){\n\t\t\t\t\t\tboard[p.icoord()+1][p.jcoord()+2].setStroke(Color.AQUAMARINE);\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// Bottom and right (second)\n\t\t\t\tif(p.icoord()+2 < 8 && p.jcoord()+1 < 8){\t\t\t\t// Bound check\n\t\t\t\t\tif(pieces[p.icoord()+2][p.jcoord()+1].toString().equals(\"Empty\")){\n\t\t\t\t\t\tboard[p.icoord()+2][p.jcoord()+1].setStroke(Color.CORNFLOWERBLUE);\n\t\t\t\t\t}\n\t\t\t\t\tif(pieces[p.icoord()+2][p.jcoord()+1].type()==2){\n\t\t\t\t\t\tboard[p.icoord()+2][p.jcoord()+1].setStroke(Color.AQUAMARINE);\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// Bottom and left (first)\n\t\t\t\tif(p.icoord()-1 >= 0 && p.jcoord()+2 < 8){\t\t\t\t// Bound check\n\t\t\t\t\tif(pieces[p.icoord()-1][p.jcoord()+2].toString().equals(\"Empty\")){\n\t\t\t\t\t\tboard[p.icoord()-1][p.jcoord()+2].setStroke(Color.CORNFLOWERBLUE);\n\t\t\t\t\t}\n\t\t\t\t\tif(pieces[p.icoord()-1][p.jcoord()+2].type()==2){\n\t\t\t\t\t\tboard[p.icoord()-1][p.jcoord()+2].setStroke(Color.AQUAMARINE);\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// Bottom and left (second)\n\t\t\t\tif(p.icoord()-2 >= 0 && p.jcoord()+1 < 8){\t\t\t\t// Bound check\n\t\t\t\t\tif(pieces[p.icoord()-2][p.jcoord()+1].toString().equals(\"Empty\")){\n\t\t\t\t\t\tboard[p.icoord()-2][p.jcoord()+1].setStroke(Color.CORNFLOWERBLUE);\n\t\t\t\t\t}\n\t\t\t\t\tif(pieces[p.icoord()-2][p.jcoord()+1].type()==2){\n\t\t\t\t\t\tboard[p.icoord()-2][p.jcoord()+1].setStroke(Color.AQUAMARINE);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t//_________________________________BLACKKNIGHT_____________________________________//\n\t\t\tif(p.toString() == \"Knight\" && p.type() == 2){\n\t\t\t\t// Up and left (first)\n\t\t\t\tif(p.icoord()-1 >= 0 && p.jcoord()-2 >= 0){\t\t\t\t// Bound check\n\t\t\t\t\tif(pieces[p.icoord()-1][p.jcoord()-2].toString().equals(\"Empty\")){\n\t\t\t\t\t\tboard[p.icoord()-1][p.jcoord()-2].setStroke(Color.CORNFLOWERBLUE);\n\t\t\t\t\t}\n\t\t\t\t\tif(pieces[p.icoord()-1][p.jcoord()-2].type()==1){\n\t\t\t\t\t\tboard[p.icoord()-1][p.jcoord()-2].setStroke(Color.AQUAMARINE);\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// Up and left (second)\n\t\t\t\tif(p.icoord()-2 >= 0 && p.jcoord()-1 >= 0){\t\t\t\t// Bound check\n\t\t\t\t\tif(pieces[p.icoord()-2][p.jcoord()-1].toString().equals(\"Empty\")){\n\t\t\t\t\t\tboard[p.icoord()-2][p.jcoord()-1].setStroke(Color.CORNFLOWERBLUE);\n\t\t\t\t\t}\n\t\t\t\t\tif(pieces[p.icoord()-2][p.jcoord()-1].type()==1){\n\t\t\t\t\t\tboard[p.icoord()-2][p.jcoord()-1].setStroke(Color.AQUAMARINE);\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// Up and right (first)\n\t\t\t\tif(p.icoord()+1 < 8 && p.jcoord()-2 >= 0){\t\t\t\t// Bound check\n\t\t\t\t\tif(pieces[p.icoord()+1][p.jcoord()-2].toString().equals(\"Empty\")){\n\t\t\t\t\t\tboard[p.icoord()+1][p.jcoord()-2].setStroke(Color.CORNFLOWERBLUE);\n\t\t\t\t\t}\n\t\t\t\t\tif(pieces[p.icoord()+1][p.jcoord()-2].type()==1){\n\t\t\t\t\t\tboard[p.icoord()+1][p.jcoord()-2].setStroke(Color.AQUAMARINE);\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// Up and right (second)\n\t\t\t\tif(p.icoord()+2 < 8 && p.jcoord()-1 >= 0){\t\t\t\t// Bound check\n\t\t\t\t\tif(pieces[p.icoord()+2][p.jcoord()-1].toString().equals(\"Empty\")){\n\t\t\t\t\t\tboard[p.icoord()+2][p.jcoord()-1].setStroke(Color.CORNFLOWERBLUE);\n\t\t\t\t\t}\n\t\t\t\t\tif(pieces[p.icoord()+2][p.jcoord()-1].type()==1){\n\t\t\t\t\t\tboard[p.icoord()+2][p.jcoord()-1].setStroke(Color.AQUAMARINE);\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// Bottom and right (first)\n\t\t\t\tif(p.icoord()+1 < 8 && p.jcoord()+2 < 8){\t\t\t\t// Bound check\n\t\t\t\t\tif(pieces[p.icoord()+1][p.jcoord()+2].toString().equals(\"Empty\")){\n\t\t\t\t\t\tboard[p.icoord()+1][p.jcoord()+2].setStroke(Color.CORNFLOWERBLUE);\n\t\t\t\t\t}\n\t\t\t\t\tif(pieces[p.icoord()+1][p.jcoord()+2].type()==1){\n\t\t\t\t\t\tboard[p.icoord()+1][p.jcoord()+2].setStroke(Color.AQUAMARINE);\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// Bottom and right (second)\n\t\t\t\tif(p.icoord()+2 < 8 && p.jcoord()+1 < 8){\t\t\t\t// Bound check\n\t\t\t\t\tif(pieces[p.icoord()+2][p.jcoord()+1].toString().equals(\"Empty\")){\n\t\t\t\t\t\tboard[p.icoord()+2][p.jcoord()+1].setStroke(Color.CORNFLOWERBLUE);\n\t\t\t\t\t}\n\t\t\t\t\tif(pieces[p.icoord()+2][p.jcoord()+1].type()==1){\n\t\t\t\t\t\tboard[p.icoord()+2][p.jcoord()+1].setStroke(Color.AQUAMARINE);\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// Bottom and left (first)\n\t\t\t\tif(p.icoord()-1 >= 0 && p.jcoord()+2 < 8){\t\t\t\t// Bound check\n\t\t\t\t\tif(pieces[p.icoord()-1][p.jcoord()+2].toString().equals(\"Empty\")){\n\t\t\t\t\t\tboard[p.icoord()-1][p.jcoord()+2].setStroke(Color.CORNFLOWERBLUE);\n\t\t\t\t\t}\n\t\t\t\t\tif(pieces[p.icoord()-1][p.jcoord()+2].type()==1){\n\t\t\t\t\t\tboard[p.icoord()-1][p.jcoord()+2].setStroke(Color.AQUAMARINE);\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// Bottom and left (second)\n\t\t\t\tif(p.icoord()-2 >= 0 && p.jcoord()+1 < 8){\t\t\t\t// Bound check\n\t\t\t\t\tif(pieces[p.icoord()-2][p.jcoord()+1].toString().equals(\"Empty\")){\n\t\t\t\t\t\tboard[p.icoord()-2][p.jcoord()+1].setStroke(Color.CORNFLOWERBLUE);\n\t\t\t\t\t}\n\t\t\t\t\tif(pieces[p.icoord()-2][p.jcoord()+1].type()==1){\n\t\t\t\t\t\tboard[p.icoord()-2][p.jcoord()+1].setStroke(Color.AQUAMARINE);\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t\t//______________________________WHITEQUEEN_____________________________________//\n\t\t\tif(p.toString() == \"Queen\" && p.type() == 1){\n\t\t\t\t// Look up .. (left)\n\t\t\t\tfor(int y=p.jcoord()-1, x=p.icoord()-1; y >= 0 && x >= 0; y--,x--){\n\t\t\t\t\tif(pieces[x][y].toString().equals(\"Empty\")){\n\t\t\t\t\tboard[x][y].setStroke(Color.CORNFLOWERBLUE);\n\t\t\t\t\t}\n\t\t\t\t\tif(pieces[x][y].type()==2){\n\t\t\t\t\tboard[x][y].setStroke(Color.AQUAMARINE);\n\t\t\t\t\t// Stop Looking\n\t\t\t\t\tx=-1; y=-1;\n\t\t\t\t\t}\n\t\t\t\t\tif(x!=-1 && y!=-1 && pieces[x][y].type()==1){\n\t\t\t\t\t// Stop Looking\n\t\t\t\t\tx=-1; y=-1;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// Look up .. (right)\n\t\t\t\tfor(int y=p.jcoord()-1, x=p.icoord()+1; y >= 0 && x < 8; y--,x++){\n\t\t\t\t\tif(pieces[x][y].toString().equals(\"Empty\")){\n\t\t\t\t\tboard[x][y].setStroke(Color.CORNFLOWERBLUE);\n\t\t\t\t\t}\n\t\t\t\t\tif(pieces[x][y].type()==2){\n\t\t\t\t\tboard[x][y].setStroke(Color.AQUAMARINE);\n\t\t\t\t\t// Stop Looking\n\t\t\t\t\tx=8; y=-1;\n\t\t\t\t\t}\n\t\t\t\t\tif(x!=8 && y!=-1 && pieces[x][y].type()==1){\n\t\t\t\t\t// Stop Looking\n\t\t\t\t\tx=8; y=-1;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// Look down .. (left)\n\t\t\t\tfor(int y=p.jcoord()+1, x=p.icoord()-1; y < 8 && x >= 0; y++,x--){\n\t\t\t\t\tif(pieces[x][y].toString().equals(\"Empty\")){\n\t\t\t\t\tboard[x][y].setStroke(Color.CORNFLOWERBLUE);\n\t\t\t\t\t}\n\t\t\t\t\tif(pieces[x][y].type()==2){\n\t\t\t\t\tboard[x][y].setStroke(Color.AQUAMARINE);\n\t\t\t\t\t// Stop Looking\n\t\t\t\t\tx=-1;y=8;\n\t\t\t\t\t}\n\t\t\t\t\tif(x!=-1 && y!=8 && pieces[x][y].type()==1){\n\t\t\t\t\t// Stop Looking\n\t\t\t\t\tx=-1;y=8;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// Look down .. (right)\n\t\t\t\tfor(int y=p.jcoord()+1, x=p.icoord()+1; y < 8 && x < 8; y++,x++){\n\t\t\t\t\tif(pieces[x][y].toString().equals(\"Empty\")){\n\t\t\t\t\tboard[x][y].setStroke(Color.CORNFLOWERBLUE);\n\t\t\t\t\t}\n\t\t\t\t\tif(pieces[x][y].type()==2){\n\t\t\t\t\tboard[x][y].setStroke(Color.AQUAMARINE);\n\t\t\t\t\t// Stop Looking\n\t\t\t\t\tx=8;y=8;\n\t\t\t\t\t}\n\t\t\t\t\tif(x!=8 && y!=8 && pieces[x][y].type()==1){\n\t\t\t\t\t// Stop Looking\n\t\t\t\t\tx=8;y=8;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// Look Up ..\n\t\t\t\tfor(int y = p.jcoord()-1; y >= 0; y--){\n\t\t\t\t\tif(pieces[p.icoord()][y].toString().equals(\"Empty\")){\n\t\t\t\t\tboard[p.icoord()][y].setStroke(Color.CORNFLOWERBLUE);\n\t\t\t\t\t}\n\t\t\t\t\tif(pieces[p.icoord()][y].type()==2){\n\t\t\t\t\tboard[p.icoord()][y].setStroke(Color.AQUAMARINE);\n\t\t\t\t\t// Stop looking\n\t\t\t\t\ty=-1;\n\t\t\t\t\t}\n\t\t\t\t\tif(y!=-1 && pieces[p.icoord()][y].type()==1){\n\t\t\t\t\t// Stop looking\n\t\t\t\t\ty=-1;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// Look Right ..\n\t\t\t\tfor(int x = p.icoord()+1; x < 8; x++){\n\t\t\t\t\tif(pieces[x][p.jcoord()].toString().equals(\"Empty\")){\n\t\t\t\t\tboard[x][p.jcoord()].setStroke(Color.CORNFLOWERBLUE);\n\t\t\t\t\t}\n\t\t\t\t\tif(pieces[x][p.jcoord()].type()==2){\n\t\t\t\t\tboard[x][p.jcoord()].setStroke(Color.AQUAMARINE);\n\t\t\t\t\t// Stop looking\n\t\t\t\t\tx=8;\n\t\t\t\t\t}\n\t\t\t\t\tif(x!=8 && pieces[x][p.jcoord()].type()==1){\n\t\t\t\t\t// Stop looking\n\t\t\t\t\tx=8;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// Look Left ..\n\t\t\t\tfor(int x = p.icoord()-1; x >= 0; x--){\n\t\t\t\t\tif(pieces[x][p.jcoord()].toString().equals(\"Empty\")){\n\t\t\t\t\tboard[x][p.jcoord()].setStroke(Color.CORNFLOWERBLUE);\n\t\t\t\t\t}\n\t\t\t\t\tif(pieces[x][p.jcoord()].type()==2){\n\t\t\t\t\tboard[x][p.jcoord()].setStroke(Color.AQUAMARINE);\n\t\t\t\t\t// Stop looking\n\t\t\t\t\tx=-1;\n\t\t\t\t\t}\n\t\t\t\t\tif(x!=-1 && pieces[x][p.jcoord()].type()==1){\n\t\t\t\t\t// Stop looking\n\t\t\t\t\tx=-1;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// Look Down ..\n\t\t\t\tfor(int y = p.jcoord()+1; y < 8; y++){\n\t\t\t\t\tif(pieces[p.icoord()][y].toString().equals(\"Empty\")){\n\t\t\t\t\tboard[p.icoord()][y].setStroke(Color.CORNFLOWERBLUE);\n\t\t\t\t\t}\n\t\t\t\t\tif(pieces[p.icoord()][y].type()==2){\n\t\t\t\t\tboard[p.icoord()][y].setStroke(Color.AQUAMARINE);\n\t\t\t\t\t// Stop looking\n\t\t\t\t\ty=8;\n\t\t\t\t\t}\n\t\t\t\t\tif(y!=8 && pieces[p.icoord()][y].type()==1 && y!=8){\n\t\t\t\t\t// Stop looking\n\t\t\t\t\ty=8;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t//______________________________BLACKQUEEN_____________________________________//\n\t\t\tif(p.toString() == \"Queen\" && p.type() == 2){\n\t\t\t\t// Look up .. (left)\n\t\t\t\tfor(int y=p.jcoord()-1, x=p.icoord()-1; y >= 0 && x >= 0; y--,x--){\n\t\t\t\t\tif(pieces[x][y].toString().equals(\"Empty\")){\n\t\t\t\t\tboard[x][y].setStroke(Color.CORNFLOWERBLUE);\n\t\t\t\t\t}\n\t\t\t\t\tif(pieces[x][y].type()==1){\n\t\t\t\t\tboard[x][y].setStroke(Color.AQUAMARINE);\n\t\t\t\t\t// Stop Looking\n\t\t\t\t\tx=-1;y=-1;\n\t\t\t\t\t}\n\t\t\t\t\tif(x!=-1 && y!=-1 && pieces[x][y].type()==2){\n\t\t\t\t\t// Stop Looking\n\t\t\t\t\tx=-1;y=-1;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// Look up .. (right)\n\t\t\t\tfor(int y=p.jcoord()-1, x=p.icoord()+1; y >= 0 && x < 8; y--,x++){\n\t\t\t\t\tif(pieces[x][y].toString().equals(\"Empty\")){\n\t\t\t\t\tboard[x][y].setStroke(Color.CORNFLOWERBLUE);\n\t\t\t\t\t}\n\t\t\t\t\tif(pieces[x][y].type()==1){\n\t\t\t\t\tboard[x][y].setStroke(Color.AQUAMARINE);\n\t\t\t\t\t// Stop Looking\n\t\t\t\t\tx=8;y=-1;\n\t\t\t\t\t}\n\t\t\t\t\tif(x!=8 && y!=-1 && pieces[x][y].type()==2){\n\t\t\t\t\t// Stop Looking\n\t\t\t\t\tx=8;y=-1;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// Look down .. (left)\n\t\t\t\tfor(int y=p.jcoord()+1, x=p.icoord()-1; y < 8 && x >= 0; y++,x--){\n\t\t\t\t\tif(pieces[x][y].toString().equals(\"Empty\")){\n\t\t\t\t\tboard[x][y].setStroke(Color.CORNFLOWERBLUE);\n\t\t\t\t\t}\n\t\t\t\t\tif(pieces[x][y].type()==1){\n\t\t\t\t\tboard[x][y].setStroke(Color.AQUAMARINE);\n\t\t\t\t\t// Stop Looking\n\t\t\t\t\tx=-1;y=8;\n\t\t\t\t\t}\n\t\t\t\t\tif(x!=-1 && y!=8 && pieces[x][y].type()==2){\n\t\t\t\t\t// Stop Looking\n\t\t\t\t\tx=-1;y=8;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// Look down .. (right)\n\t\t\t\tfor(int y=p.jcoord()+1, x=p.icoord()+1; y < 8 && x < 8; y++,x++){\n\t\t\t\t\tif(pieces[x][y].toString().equals(\"Empty\")){\n\t\t\t\t\tboard[x][y].setStroke(Color.CORNFLOWERBLUE);\n\t\t\t\t\t}\n\t\t\t\t\tif(pieces[x][y].type()==1){\n\t\t\t\t\tboard[x][y].setStroke(Color.AQUAMARINE);\n\t\t\t\t\t// Stop Looking\n\t\t\t\t\tx=8;y=8;\n\t\t\t\t\t}\n\t\t\t\t\tif(x!=8 && y!=8 && pieces[x][y].type()==2){\n\t\t\t\t\t// Stop Looking\n\t\t\t\t\tx=8;y=8;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// Look Up ..\n\t\t\t\tfor(int y = p.jcoord()-1; y >= 0; y--){\n\t\t\t\t\tif(pieces[p.icoord()][y].toString().equals(\"Empty\")){\n\t\t\t\t\tboard[p.icoord()][y].setStroke(Color.CORNFLOWERBLUE);\n\t\t\t\t\t}\n\t\t\t\t\tif(pieces[p.icoord()][y].type()==1){\n\t\t\t\t\tboard[p.icoord()][y].setStroke(Color.AQUAMARINE);\n\t\t\t\t\t// Stop looking\n\t\t\t\t\ty=-1;\n\t\t\t\t\t}\n\t\t\t\t\tif(y!=-1 && pieces[p.icoord()][y].type()==2){\n\t\t\t\t\t// Stop looking\n\t\t\t\t\ty=-1;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// Look Right ..\n\t\t\t\tfor(int x = p.icoord()+1; x < 8; x++){\n\t\t\t\t\tif(pieces[x][p.jcoord()].toString().equals(\"Empty\")){\n\t\t\t\t\tboard[x][p.jcoord()].setStroke(Color.CORNFLOWERBLUE);\n\t\t\t\t\t}\n\t\t\t\t\tif(pieces[x][p.jcoord()].type()==1){\n\t\t\t\t\tboard[x][p.jcoord()].setStroke(Color.AQUAMARINE);\n\t\t\t\t\t// Stop looking\n\t\t\t\t\tx=8;\n\t\t\t\t\t}\n\t\t\t\t\tif(x!=8 && pieces[x][p.jcoord()].type()==2){\n\t\t\t\t\t// Stop looking\n\t\t\t\t\tx=8;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// Look Left ..\n\t\t\t\tfor(int x = p.icoord()-1; x >= 0; x--){\n\t\t\t\t\tif(pieces[x][p.jcoord()].toString().equals(\"Empty\")){\n\t\t\t\t\tboard[x][p.jcoord()].setStroke(Color.CORNFLOWERBLUE);\n\t\t\t\t\t}\n\t\t\t\t\tif(pieces[x][p.jcoord()].type()==1){\n\t\t\t\t\tboard[x][p.jcoord()].setStroke(Color.AQUAMARINE);\n\t\t\t\t\t// Stop looking\n\t\t\t\t\tx=-1;\n\t\t\t\t\t}\n\t\t\t\t\tif(x!=-1 && pieces[x][p.jcoord()].type()==2){\n\t\t\t\t\t// Stop looking\n\t\t\t\t\tx=-1;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// Look Down ..\n\t\t\t\tfor(int y = p.jcoord()+1; y < 8; y++){\n\t\t\t\t\tif(pieces[p.icoord()][y].toString().equals(\"Empty\")){\n\t\t\t\t\tboard[p.icoord()][y].setStroke(Color.CORNFLOWERBLUE);\n\t\t\t\t\t}\n\t\t\t\t\tif(pieces[p.icoord()][y].type()==1){\n\t\t\t\t\tboard[p.icoord()][y].setStroke(Color.AQUAMARINE);\n\t\t\t\t\t// Stop looking\n\t\t\t\t\ty=8;\n\t\t\t\t\t}\n\t\t\t\t\tif(y!=8 && pieces[p.icoord()][y].type()==2 && y!=8){\n\t\t\t\t\t// Stop looking\n\t\t\t\t\ty=8;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t//_________________________________WHITEKING_____________________________________//\n\t\t\tif(p.toString() == \"King\" && p.type() == 1){\n\t\t\t\t// Up\n\t\t\t\tif(p.jcoord()-1 >= 0){\n\t\t\t\tif(pieces[p.icoord()][p.jcoord()-1].toString().equals(\"Empty\")){\n\t\t\t\tboard[p.icoord()][p.jcoord()-1].setStroke(Color.CORNFLOWERBLUE);\n\t\t\t\t}\n\t\t\t\tif(pieces[p.icoord()][p.jcoord()-1].type()==2){\n\t\t\t\tboard[p.icoord()][p.jcoord()-1].setStroke(Color.AQUAMARINE);\n\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// Up - right\n\t\t\t\tif(p.jcoord()-1 >= 0 && p.icoord()+1 < 8){\n\t\t\t\tif(pieces[p.icoord()+1][p.jcoord()-1].toString().equals(\"Empty\")){\n\t\t\t\tboard[p.icoord()+1][p.jcoord()-1].setStroke(Color.CORNFLOWERBLUE);\n\t\t\t\t}\n\t\t\t\tif(pieces[p.icoord()+1][p.jcoord()-1].type()==2){\n\t\t\t\tboard[p.icoord()+1][p.jcoord()-1].setStroke(Color.AQUAMARINE);\n\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// Up - left\n\t\t\t\tif(p.jcoord()-1 >= 0 && p.icoord()-1 >= 0){\n\t\t\t\tif(pieces[p.icoord()-1][p.jcoord()-1].toString().equals(\"Empty\")){\n\t\t\t\tboard[p.icoord()-1][p.jcoord()-1].setStroke(Color.CORNFLOWERBLUE);\n\t\t\t\t}\n\t\t\t\tif(pieces[p.icoord()-1][p.jcoord()-1].type()==2){\n\t\t\t\tboard[p.icoord()-1][p.jcoord()-1].setStroke(Color.AQUAMARINE);\n\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// Left\n\t\t\t\tif(p.icoord()-1 >= 0){\n\t\t\t\tif(pieces[p.icoord()-1][p.jcoord()].toString().equals(\"Empty\")){\n\t\t\t\tboard[p.icoord()-1][p.jcoord()].setStroke(Color.CORNFLOWERBLUE);\n\t\t\t\t}\n\t\t\t\tif(pieces[p.icoord()-1][p.jcoord()].type()==2){\n\t\t\t\tboard[p.icoord()-1][p.jcoord()].setStroke(Color.AQUAMARINE);\n\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// Right\n\t\t\t\tif(p.icoord()+1 < 8){\n\t\t\t\tif(pieces[p.icoord()+1][p.jcoord()].toString().equals(\"Empty\")){\n\t\t\t\tboard[p.icoord()+1][p.jcoord()].setStroke(Color.CORNFLOWERBLUE);\n\t\t\t\t}\n\t\t\t\tif(pieces[p.icoord()+1][p.jcoord()].type()==2){\n\t\t\t\tboard[p.icoord()+1][p.jcoord()].setStroke(Color.AQUAMARINE);\n\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// Down\n\t\t\t\tif(p.jcoord()+1 < 8){\n\t\t\t\tif(pieces[p.icoord()][p.jcoord()+1].toString().equals(\"Empty\")){\n\t\t\t\tboard[p.icoord()][p.jcoord()+1].setStroke(Color.CORNFLOWERBLUE);\n\t\t\t\t}\n\t\t\t\tif(pieces[p.icoord()][p.jcoord()+1].type()==2){\n\t\t\t\tboard[p.icoord()][p.jcoord()+1].setStroke(Color.AQUAMARINE);\n\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// Down - left\n\t\t\t\tif(p.jcoord()+1 < 8 && p.icoord()-1 >= 0){\n\t\t\t\tif(pieces[p.icoord()-1][p.jcoord()+1].toString().equals(\"Empty\")){\n\t\t\t\tboard[p.icoord()-1][p.jcoord()+1].setStroke(Color.CORNFLOWERBLUE);\n\t\t\t\t}\n\t\t\t\tif(pieces[p.icoord()-1][p.jcoord()+1].type()==2){\n\t\t\t\tboard[p.icoord()-1][p.jcoord()+1].setStroke(Color.AQUAMARINE);\n\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// Down - right\n\t\t\t\tif(p.jcoord()+1 < 8 && p.icoord()+1 < 8){\n\t\t\t\tif(pieces[p.icoord()+1][p.jcoord()+1].toString().equals(\"Empty\")){\n\t\t\t\tboard[p.icoord()+1][p.jcoord()+1].setStroke(Color.CORNFLOWERBLUE);\n\t\t\t\t}\n\t\t\t\tif(pieces[p.icoord()+1][p.jcoord()+1].type()==2){\n\t\t\t\tboard[p.icoord()+1][p.jcoord()+1].setStroke(Color.AQUAMARINE);\n\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t//_________________________________BLACKKING_____________________________________//\n\t\t\tif(p.toString() == \"King\" && p.type() == 2){\n\t\t\t\t// Up\n\t\t\t\tif(p.jcoord()-1 >= 0){\n\t\t\t\tif(pieces[p.icoord()][p.jcoord()-1].toString().equals(\"Empty\")){\n\t\t\t\tboard[p.icoord()][p.jcoord()-1].setStroke(Color.CORNFLOWERBLUE);\n\t\t\t\t}\n\t\t\t\tif(pieces[p.icoord()][p.jcoord()-1].type()==1){\n\t\t\t\tboard[p.icoord()][p.jcoord()-1].setStroke(Color.AQUAMARINE);\n\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// Up - right\n\t\t\t\tif(p.jcoord()-1 >= 0 && p.icoord()+1 < 8){\n\t\t\t\tif(pieces[p.icoord()+1][p.jcoord()-1].toString().equals(\"Empty\")){\n\t\t\t\tboard[p.icoord()+1][p.jcoord()-1].setStroke(Color.CORNFLOWERBLUE);\n\t\t\t\t}\n\t\t\t\tif(pieces[p.icoord()+1][p.jcoord()-1].type()==1){\n\t\t\t\tboard[p.icoord()+1][p.jcoord()-1].setStroke(Color.AQUAMARINE);\n\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// Up - left\n\t\t\t\tif(p.jcoord()-1 >= 0 && p.icoord()-1 >= 0){\n\t\t\t\tif(pieces[p.icoord()-1][p.jcoord()-1].toString().equals(\"Empty\")){\n\t\t\t\tboard[p.icoord()-1][p.jcoord()-1].setStroke(Color.CORNFLOWERBLUE);\n\t\t\t\t}\n\t\t\t\tif(pieces[p.icoord()-1][p.jcoord()-1].type()==1){\n\t\t\t\tboard[p.icoord()-1][p.jcoord()-1].setStroke(Color.AQUAMARINE);\n\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// Left\n\t\t\t\tif(p.icoord()-1 >= 0){\n\t\t\t\tif(pieces[p.icoord()-1][p.jcoord()].toString().equals(\"Empty\")){\n\t\t\t\tboard[p.icoord()-1][p.jcoord()].setStroke(Color.CORNFLOWERBLUE);\n\t\t\t\t}\n\t\t\t\tif(pieces[p.icoord()-1][p.jcoord()].type()==1){\n\t\t\t\tboard[p.icoord()-1][p.jcoord()].setStroke(Color.AQUAMARINE);\n\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// Right\n\t\t\t\tif(p.icoord()+1 < 8){\n\t\t\t\tif(pieces[p.icoord()+1][p.jcoord()].toString().equals(\"Empty\")){\n\t\t\t\tboard[p.icoord()+1][p.jcoord()].setStroke(Color.CORNFLOWERBLUE);\n\t\t\t\t}\n\t\t\t\tif(pieces[p.icoord()+1][p.jcoord()].type()==1){\n\t\t\t\tboard[p.icoord()+1][p.jcoord()].setStroke(Color.AQUAMARINE);\n\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// Down\n\t\t\t\tif(p.jcoord()+1 < 8){\n\t\t\t\tif(pieces[p.icoord()][p.jcoord()+1].toString().equals(\"Empty\")){\n\t\t\t\tboard[p.icoord()][p.jcoord()+1].setStroke(Color.CORNFLOWERBLUE);\n\t\t\t\t}\n\t\t\t\tif(pieces[p.icoord()][p.jcoord()+1].type()==1){\n\t\t\t\tboard[p.icoord()][p.jcoord()+1].setStroke(Color.AQUAMARINE);\n\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// Down - left\n\t\t\t\tif(p.jcoord()+1 < 8 && p.icoord()-1 >= 0){\n\t\t\t\tif(pieces[p.icoord()-1][p.jcoord()+1].toString().equals(\"Empty\")){\n\t\t\t\tboard[p.icoord()-1][p.jcoord()+1].setStroke(Color.CORNFLOWERBLUE);\n\t\t\t\t}\n\t\t\t\tif(pieces[p.icoord()-1][p.jcoord()+1].type()==1){\n\t\t\t\tboard[p.icoord()-1][p.jcoord()+1].setStroke(Color.AQUAMARINE);\n\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// Down - right\n\t\t\t\tif(p.jcoord()+1 < 8 && p.icoord()+1 < 8){\n\t\t\t\tif(pieces[p.icoord()+1][p.jcoord()+1].toString().equals(\"Empty\")){\n\t\t\t\tboard[p.icoord()+1][p.jcoord()+1].setStroke(Color.CORNFLOWERBLUE);\n\t\t\t\t}\n\t\t\t\tif(pieces[p.icoord()+1][p.jcoord()+1].type()==1){\n\t\t\t\tboard[p.icoord()+1][p.jcoord()+1].setStroke(Color.AQUAMARINE);\n\t\t\t\t}\n\t\t\t\t}\t\n\t\t\t}\n\t}", "title": "" }, { "docid": "7babc79d3e345a4f0dadacee4af17da7", "score": "0.6448397", "text": "public boolean gameMove(Player p, Move move){\n //gets the current piece that is being moved\n Piece currPiece = move.getStart().getPiece();\n\n //return false if no piece\n if(currPiece == null){\n return false;\n }\n\n //if wrong color piece is selected return false\n if(currPiece.getColor() != currPlayer.getColor()){\n return false;\n }\n\n //player making move is not correct player\n if(p != currPlayer){\n return false;\n }\n\n //check if the move is a valid move for the current piece we are selecting, if not return false\n if (!currPiece.validMove(b, move.getStart(), move.getEnd())) {\n return false;\n }\n\n //check if end piece has opposing piece, we know piece cannot be of same color because of valid move. If it is there, set the piece to dead\n if(move.getEnd().getPiece() != null){\n move.getEnd().getPiece().setDead(true);\n }\n\n //check if piece moving is a rook, then case as a rook so we can access specific methods\n //we have to do this because castling is only valid if the rook has not moved yet.\n if(currPiece instanceof Rook && !((Rook) currPiece).getHasMoved()){\n ((Rook) currPiece).updatedHasMoved();\n }\n\n //check if king has moved. If he hasn't yet, then see if he is currently castling (only time in the game where he can)\n if(currPiece instanceof King && !((King) currPiece).getHasMoved()){\n ((King) currPiece).updatedHasMoved();\n System.out.println(((King) currPiece).getCurrentlyCastling() + \" This ting\");\n //if king hasn't moved and is now moving,\n if(currPiece instanceof King && ((King) currPiece).getCurrentlyCastling()){\n System.out.println(\"CURRENTLY CASTLING\");\n //four castling cases, so we will view all.\n //white castling (y = 0)\n if(move.getEnd().getY() == 0){\n System.out.println(\"white\");\n //queenside\n if(move.getEnd().getX() == 2){\n System.out.println(\"QUEENSIDE\");\n //places king in correct place\n move.getEnd().setPiece(currPiece);\n move.getStart().setPiece(null);\n\n //places rook in correct place\n this.b.getTile(3, 0).setPiece(this.b.getTile(0,0).getPiece());\n this.b.getTile(0,0).setPiece(null);\n\n }\n\n //kingside\n if(move.getEnd().getX() == 6){\n\n //places king in correct place\n move.getEnd().setPiece(currPiece);\n move.getStart().setPiece(null);\n\n //places rook in correct place\n this.b.getTile(5, 0).setPiece(this.b.getTile(7,0).getPiece());\n this.b.getTile(7,0).setPiece(null);\n }\n }\n }\n\n //black castling\n else if(move.getEnd().getY() == 7){\n System.out.println(\"black\");\n //queenside\n if(move.getEnd().getX() == 2){\n System.out.println(\"QUEENSIDE\");\n //places king in correct place\n move.getEnd().setPiece(currPiece);\n move.getStart().setPiece(null);\n\n //places rook in correct place\n this.b.getTile(3, 7).setPiece(this.b.getTile(0,7).getPiece());\n this.b.getTile(0,7).setPiece(null);\n\n }\n\n //kingside\n if(move.getEnd().getX() == 6){\n System.out.println(\"Kingside\");\n //places king in correct place\n move.getEnd().setPiece(currPiece);\n move.getStart().setPiece(null);\n\n //places rook in correct place\n this.b.getTile(5, 7).setPiece(this.b.getTile(7,7).getPiece());\n this.b.getTile(7,7).setPiece(null);\n }\n\n }\n\n //now that king has castled, we reset currently castling\n ((King) currPiece).resetCurrentlyCastling();\n }\n\n //update the piece moving\n else {\n move.getEnd().setPiece(currPiece);\n move.getStart().setPiece(null);\n }\n\n //actually update the move on the game board\n b.getTile(move.getStart().getX(), move.getStart().getY()).setPiece(null);\n b.getTile(move.getEnd().getX(), move.getEnd().getY()).setPiece(currPiece);\n\n //game move is valid, so we change player color\n switchPlayers();\n return true;\n }", "title": "" }, { "docid": "49392ab49df902ca12e830246103d4f2", "score": "0.6437364", "text": "public boolean move(Tile fromTile, Tile toTile) {\n\n boolean moveMade = false;\n\n Piece movedPiece = fromTile.getPiece();\n\n\n if(toTile.getPiece() != null && toTile.getPiece().getColor() == fromTile.getPiece().getColor()){\n //cannot capture your own piece\n return false;\n }\n\n if((movedPiece instanceof Pawn && movePawn(currentPlayer, fromTile, toTile))){\n moveMade = validateMove(fromTile, toTile);\n } else if (movedPiece instanceof King && movedPiece.isMoveValid(fromTile, toTile) &&\n !isThreatenTile(currentPlayer.getColor(), toTile, true)){\n moveMade = validateMove(fromTile, toTile);\n } else if(movedPiece instanceof King && (fromTile.getY() - 3 == toTile.getY() || fromTile.getY() + 2 == toTile.getY())\n && fromTile.getX() == toTile.getX()) {\n moveMade = tryToDoTheCastling(fromTile,toTile);\n } else if(movedPiece.isMoveValid(fromTile, toTile)\n && checkIfClearWay(fromTile, toTile) && !(movedPiece instanceof Pawn) && !(movedPiece instanceof King)){\n moveMade = validateMove(fromTile, toTile);\n }\n\n Tile kingTile = getTile(currentPlayer.getKing().getX(), currentPlayer.getKing().getY());\n if(isThreatenTile(currentPlayer.getColor(), kingTile, true)){\n this.state = State.CHECK;\n if(checkIfCheckMate(kingTile)){\n this.state = State.CHECKMATE;\n }\n } else if(kingTile.getPiece().calculatePossibleMoves(this).size() == 0){\n this.state = State.STALEMATE;\n for(Piece piece: currentPlayer.getPieces()){\n if(piece.calculatePossibleMoves(this).size() != 0){\n this.state = State.NORMAL;\n\n }\n }\n } else {\n this.state = State.NORMAL;\n }\n return moveMade;\n }", "title": "" }, { "docid": "184742a38132e7bcfa160708327d7c38", "score": "0.6436337", "text": "public boolean isMovingPiece() {\n return movedPieceSquare != null;\n }", "title": "" }, { "docid": "65375191945b05310473490f06975801", "score": "0.6428293", "text": "void movePiece(int x0, int y0, int x1, int y1){\n\t\tint color = grid[x0][y0].color;\n\t\tremovePiece(x0, y0);\n\t\taddPiece(x1, y1, color);\n\t}", "title": "" }, { "docid": "b58b0398762f9ea33e282691ab984af0", "score": "0.6424863", "text": "ILoGamePiece moveAll();", "title": "" }, { "docid": "4ad150603473062321f3d262bff39e5c", "score": "0.6410834", "text": "public boolean test2x2Move() {\n\t\tPuzzlePiece move = m.getOriginalPiece(m.getSelectedPiece().getX() + x, m.getSelectedPiece().getHeight() + y);\r\n\t\tif (move == null) {\r\n\t\t\treturn true;\r\n\t\t} else {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "4994824312f4a4a159d3ce3b71581b5a", "score": "0.64053786", "text": "public boolean movePieceDuringSetup(int row1, int col1, int row2, int col2) {\n //makes sure that the first spot contains a piece\n if(!(board[row1][col1].containsPiece())) {\n return false;\n }\n //switches the piece in the first block with the second block\n Piece temp=new Piece(board[row1][col1].getContainedPiece());\n if(board[row2][col2].containsPiece()) {\n board[row1][col1].setContainedPiece(new Piece(board[row2][col2].getContainedPiece()));\n } else {\n board[row1][col1].setContainedPiece(null);\n }\n board[row2][col2].setContainedPiece(temp);\n return true;\n }", "title": "" }, { "docid": "ff2a41d41373948e9e43eebbd2e8f193", "score": "0.63953936", "text": "@Test\n public void testMoveTo () {\n performLegalMove(bishop,6,6);\n performIllegalMove(bishop,6,5);\n performIllegalMove(rook,6,6);\n performLegalMove(rook,1,4);\n }", "title": "" }, { "docid": "71d4d8d0ca28d90d9c363a27baa6acff", "score": "0.6389369", "text": "private boolean checkPieceMovement(int fromX, int fromY, int toX, int toY){\n\t\treturn \t(tiles[fromX][fromY].canMove(fromX, fromY, toX, toY, this) \t\t&&\t\t\t\t\t\t//se la mossa da fare è nel set di mosse possibile per il tipo di pezzo selezionato\n\t\t\t\t!sameColorOnTheArrival(fromX, fromY, toX, toY) \t\t\t\t\t&&\t\t\t\t\t\t//se nella casella di arrivo non c'è un pezzo dello stesso colore\n\t\t\t\t(tiles[fromX][fromY].canFly() || !someoneOnThePath(fromX, fromY, toX, toY)));\n\t}", "title": "" }, { "docid": "42dd82e63285d6dd915703e0bbce7801", "score": "0.63883966", "text": "private void moveTo(int x, int y,int i, int j)\n {\n \n if(square[x][y].hasWhitePieceOn(square[x][y].button)==true && resetTurn(turn)==true) \n //do a move specific to white pieces\n {\n if(canMoveTo(x,y,i,j)==true)\n //only a legal move is going to end a move combo\n {\n square[x][y].addWhite(square[x][y].button);\n square[i][j].addWhitePiece();\n turn=false; //switch to red's turn\n }\n if(i==x-2 && j==y-2 && canCapture(x,y,x-2,y-2)==true)\n {\n square[x][y].addWhite(square[x][y].button);\n square[x-1][y-1].addWhite(square[x-1][y-1].button);\n square[i][j].addWhitePiece();\n turn=false; //switch to red's turn \n }\n if(i==x-2 && j==y+2 && canCapture(x,y,x-2,y+2)==true)\n {\n square[x][y].addWhite(square[x][y].button);\n square[x-1][y+1].addWhite(square[x-1][y+1].button);\n square[i][j].addWhitePiece();\n turn=false; //switch to red's turn \n }\n } \n if(square[x][y].hasRedPieceOn(square[x][y].button)==true && resetTurn(turn)==false)\n //do a move specific to red pieces\n {\n if(canMoveTo(x,y,i,j)==true)\n //only a legal move is going to end a move combo\n {\n square[x][y].addWhite(square[x][y].button);\n square[i][j].addRedPiece();\n turn= true; //switch to white's turn\n }\n if(i==x+2 && j==y+2 && canCapture(x,y,x+2,y+2)==true)\n {\n square[x][y].addWhite(square[x][y].button);\n square[x+1][y+1].addWhite(square[x+1][y+1].button);\n square[i][j].addRedPiece();\n turn= true; //switch to white's turn \n }\n if(i==x+2 && j==y-2 && canCapture(x,y,x+2,y-2)==true)\n {\n square[x][y].addWhite(square[x][y].button);\n square[x+1][y-1].addWhite(square[x+1][y-1].button);\n square[i][j].addRedPiece();\n turn= true; //switch to white's turn\n }\n }\n clearHighlights();\n //call clearHighlights() in order to allow another move to happen\n a=-1;b=-1;c=-1;d=-1; \n //clear the variables for another move to happen\n }", "title": "" }, { "docid": "c0e0b5c3697bfd7f276bd551812f4f0e", "score": "0.6381095", "text": "@Test\n\tpublic void test2(){\n\t\tCommonBoard testboard = new CommonBoard();\n\t\ttestboard.SetChessStart();\n\t\tPlayer w = testboard.getPlayerWhite();\n\t\tPlayer b = testboard.getPlayerBlack();\n//\t\tb.getMyChessPieces()[3].setPositionX(4) ;\n//\t\tb.getMyChessPieces()[3].setPositionY(7) ;\n//\t\ttestboard.getBoard()[4][7] = b.getMyChessPieces()[3];\n//\t\ttestboard.getBoard()[0][3] = null;\n\t\t\n\t\t// Test get Chess Piece from the turn\n\t\tChessPiece piece= testboard.getChessPiece(w, 6, 6);\n\t\tassertEquals( \"ChessPiece.Pawn\", piece.getClass().getName().toString() );\n\t\t\n\t\t//Test move style of \"up2\" of pawn\n\t\tboolean retStat = testboard.moveChesspiece(piece, 4, 6);\n\t\tassertTrue( retStat );\n\t\ttestboard.printBoard();\n\t\t\n\t\t\n\t\t//Test turn change\n\t\ttestboard.changePlayerTurn(w, b);\n\t\tassertTrue(b.isMyTurn());\n\t\tassertFalse(w.isMyTurn());\n\t\t\n\t\tChessPiece piece2 = testboard.getChessPiece(b, 1, 4);\n\t\tassertEquals( \"ChessPiece.Pawn\", piece2.getClass().getName().toString());\n\t\tretStat = testboard.moveChesspiece(piece2, 3, 4);\n\t\tassertTrue( retStat );\n\t\ttestboard.printBoard();\n\t\t\n\t\t\n\t\ttestboard.changePlayerTurn(w, b);\n\t\tassertTrue(w.isMyTurn());\n\t\tassertFalse(b.isMyTurn());\n\t\t\n\t\tpiece = testboard.getChessPiece(w, 6, 5);\n\t\tretStat = testboard.moveChesspiece(piece, 5, 5);\n\t\tassertTrue( retStat );\n\t\t\n\t\ttestboard.changePlayerTurn(w, b);\n\t\tboolean gameStat = testboard.isCheckmated(b, w);\n\t\tassertFalse( gameStat );\n\t\t\n\t\t//Test move path valid of QUEEN with \"downright\"\n\t\tpiece = testboard.getChessPiece(b, 0, 3);\n\t\tassertEquals( \"ChessPiece.Queen\", piece.getClass().getName().toString());\n\t\t\n\t\tretStat = testboard.moveChesspiece(piece, 4, 7);\n\t\tassertTrue( retStat );\n\t\t\n\t\t//change turn\n\t\ttestboard.changePlayerTurn(w, b);\n\t\tassertTrue(w.isMyTurn());\n\t\tassertFalse(b.isMyTurn());\n\t\tgameStat = testboard.isCheckmated(w, b);\n\t\tassertFalse( gameStat );\n\t\t\n\t}", "title": "" }, { "docid": "5462533d0f3580e55faec5a193823221", "score": "0.6380732", "text": "@Test\n public void testForBTurnUpAPiece() {\n UpdateUI updateUI = createUpdateUI(bId, bId, allFacingDownState);\n BanqiState banqiState = banqiLogic.gameApiStateToBanqiState(\n updateUI.getState(), Color.B, playerIds);\n banqiPresenter.updateUI(updateUI);\n banqiPresenter.cellSelected(0, false);\n\n verify(mockView).setPlayerState(banqiPresenter.getAllCells(banqiState), false);\n verify(mockView).chooseNextCell(banqiPresenter.getAllCells(banqiState),\n new ArrayList<Integer>());\n verify(mockContainer).sendMakeMove(\n banqiLogic.getTurnPieceOperation(banqiState, new Set(TURNPIECE, \"C0\")));\n }", "title": "" }, { "docid": "0dc5816f9e6f51a8ded4abc760584fc0", "score": "0.6362966", "text": "public boolean canMovePiece(Piece piece, int x, int y){\n\t\tif(thereAreProblems(piece, x, y))\n\t\t\treturn false;\n\t\t//we made it this far, let's simulate the move and\n\t\t//see if we will be in check\n\t\tint currentX, currentY;\n\t\tcurrentX = piece.getX();\n\t\tcurrentY = piece.getY();\n\t\tboolean check;\n\t\tif(squares[x-1][y-1].isTaken() == 0){\n\t\t\tsimulateMove(piece, x, y);\n\t\t\tcheck = isTheKingInCheck(piece.getPlayer());\t\t\t\n\t\t\tbringPieceBack(piece, currentX, currentY, x, y);\t\t\t\n\t\t\tif(check)\n\t\t\t\treturn false;\n\t\t}\n\t\t//we need to also simulate capturing a piece\n\t\telse{\t\t\t\n\t\t\tPiece capturedPiece = pieceAt(x, y);\t\t\t\n\t\t\tcapturedPiece.setCoordinates(0, 0);\n\t\t\tcapturedPiece.setTaken(1);\t\t\t\t\t\t\n\t\t\tsimulateMove(piece, x, y);\n\t\t\tcheck = isTheKingInCheck(piece.getPlayer());\n\t\t\tcapturedPiece.setCoordinates(x, y);\n\t\t\tcapturedPiece.setTaken(0);\n\t\t\tbringPieceBack(piece, currentX, currentY, x, y);\n\t\t\tsquares[x-1][y-1].setTaken(1);\n\t\t\tif(check)\n\t\t\t\treturn false;\n\t\t}\t\t\n\t\treturn true;\n\t}", "title": "" }, { "docid": "1278036e1bfbf8a7f48b8213906326c0", "score": "0.6357257", "text": "public Flag movePiece(int x, int y)\n {\n Piece targetPiece = pieceHandler.selectPiece(x, y);\n Flag tempFlag;\n int saveX = this.x;\n int saveY = this.y;\n boolean hit = false;\n\n tempFlag = validateMove(x, y);\n if(tempFlag != Flag.LEGAL)\n {\n return tempFlag;\n }\n if(targetPiece == null)\n {\n this.x = x;\n this.y = y;\n }\n else\n {\n hit = true;\n this.x = x;\n this.y = y;\n targetPiece.setAlive(false);\n targetPiece.setX(-1);\n targetPiece.setY(-1);\n }\n tempFlag = validateKing();\n if(tempFlag == Flag.ILLEGAL)\n {\n System.out.println(\"MOVE PIECE: King is in Danger\");\n if(hit)\n {\n targetPiece.setAlive(false);\n targetPiece.setX(x);\n targetPiece.setY(y);\n }\n this.x = saveX;\n this.y = saveY;\n }\n return tempFlag;\n }", "title": "" }, { "docid": "5a69b526351484ab6c899b668cb1ae30", "score": "0.6355736", "text": "private int movePiece(int row1, int col1, int row2, int col2) throws Throwable {\n\t\tint piece = boardModel.get(row1, col1);\n\t\tint capturedPieceNum = boardModel.get(row2, col2);\n\t\t\n\t\tif(!this.isLegal(row1,col1,row2,col2)) {\n\t\t\treturn 0;\n\t\t}\n\t\telse if(!isMyTurn()) {\n\t\t\treturn 0;\n\t\t}\n\t\telse {\n\t\t\tif(capturedPieceNum != 0) {\n\t\t\t\tif(capturedPieceNum > 6) {\n\t\t\t\t\tboardModel.deadBlack.add(capturedPieceNum);\n\t\t\t\t} else {\n\t\t\t\t\tboardModel.deadWhite.add(capturedPieceNum);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tboardModel.set(piece, row2, col2);\n\t\t\tboardModel.set(0, row1, col1);\n\t\t\t\n\t\t\tboardModel.whiteInCheck = isInCheck(boardModel, white);\n\t\t\tboardModel.blackInCheck = isInCheck(boardModel, black);\n\t\t\tif(boardModel.whiteInCheck) {\n\t\t\t\tboardModel.whiteInCheckmate = isInCheckmate(boardModel, white);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tboardModel.whiteInCheckmate = false;\n\t\t\t}\n\t\t\t\n\t\t\tif(boardModel.blackInCheck) {\n\t\t\t\tboardModel.blackInCheckmate = isInCheckmate(boardModel, black);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tboardModel.blackInCheckmate = false;\n\t\t\t}\n\t\t\t\n\n\t\t\tString message = boardModel.nMoves + \".)\";\n\t\t\t\n\t\t\tif(boardModel.myPlayer == white) {\n\t\t\t\tmessage += \"White\";\n\t\t\t}\n\t\t\telse{\n\t\t\t\tmessage +=\"Black\";\n\t\t\t}\n\t\t\t\n\t\t\tswitch(piece) {\n\t\t\t\tcase BK: case WK:\n\t\t\t\t\tmessage += \"King\";\n\t\t\t\t\tbreak;\n\t\t\t\tcase WQ: case BQ:\n\t\t\t\t\tmessage += \"Queen\";\n\t\t\t\t\tbreak;\n\t\t\t\tcase BB: case WB:\n\t\t\t\t\tmessage += \"Bishop\";\n\t\t\t\t\tbreak;\n\t\t\t\tcase BR: case WR:\n\t\t\t\t\tmessage += \"Rook\";\n\t\t\t\t\tbreak;\n\t\t\t\tcase BN: case WN:\n\t\t\t\t\tmessage += \"Knight\";\n\t\t\t\t\tbreak;\n\t\t\t\tcase BP: case WP:\n\t\t\t\t\tmessage += \"Pawn\";\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t\tmessage += \" to \" + COL_NAMES[col2] + (row2 + 1);\n\t\t\tboardModel.previousMoves.push(message);\n\t\t\t\n\t\t\tboardModel.nMoves++;\n\t\t\t\n\t\t\tthis.changePlayer();\n\t\t\tthis.updateBoardView();\n\t\t\tthis.client.sendUpdate();\n\t\t\t\n\t\t\treturn 1;\n\t\t}\n\t}", "title": "" }, { "docid": "a6a7dc10c522555cd5fa48c9b21a724d", "score": "0.6335762", "text": "private void move(int from, int to) {\n\t\t// Moves that arrive this point have been checked \n\t\t// to be valid.\n\t\tint file = from & 7;\n\t\tint rank = from >> 3;\n\t\tint newFile = to & 7;\n\t\tint newRank = to >> 3;\n\t\tpawnHasPromoted = false;\n\t\tboolean capturing = false;\n\n\t\tif (isWhiteTurn)\n\t\t\tfullmoveNumber++;\n\n\t\tif (file == 4) {\n\t\t\tif ((field[from] == WK) && file == 4 && newFile == 2) {\n\t\t\t\t// White castles queen side:\n\t\t\t\tmove(0, 3);\n\t\t\t\tisWhiteTurn = !isWhiteTurn;\n\t\t\t\tif (isWhiteTurn)\n\t\t\t\t\tfullmoveNumber--;\n\t\t\t} else if ((field[from] == WK) && file == 4 && newFile == 6) {\n\t\t\t\t// White castles king side:\n\t\t\t\tmove(7, 5);\n\t\t\t\tisWhiteTurn = !isWhiteTurn;\n\t\t\t\tif (isWhiteTurn)\n\t\t\t\t\tfullmoveNumber--;\n\t\t\t} else if ((field[from] == BK) && file == 4 && newFile == 2) {\n\t\t\t\t// Black castles queen side:\n\t\t\t\tmove(((7 << 3) + 0), ((7 << 3) + 3));\n\t\t\t\tisWhiteTurn = !isWhiteTurn;\n\t\t\t\tif (isWhiteTurn)\n\t\t\t\t\tfullmoveNumber--;\n\t\t\t} else if ((field[from] == BK) && file == 4 && newFile == 6) {\n\t\t\t\t// Black castles king side:\n\t\t\t\tmove(((7 << 3) + 7), ((7 << 3) + 5));\n\t\t\t\tisWhiteTurn = !isWhiteTurn;\n\t\t\t\tif (isWhiteTurn)\n\t\t\t\t\tfullmoveNumber--;\n\t\t\t}\n\t\t}\n\t\tif ((field[to] == EM && field[from] == WP) && file != newFile) {\n\t\t\t// Capturing en passant (white):\n\t\t\tfield[(4 << 3) + newFile] = EM;\n\t\t\tclearBitboardField((4 << 3) + newFile);\n\t\t\tcapturing = true;\n\t\t} else if ((field[to] == EM && field[from] == BP) && file != newFile) {\n\t\t\t// Capturing en passant (black):\n\t\t\tfield[(3 << 3) + newFile] = EM;\n\t\t\tclearBitboardField((3 << 3) + newFile);\n\t\t\tcapturing = true;\n\t\t}\n\t\tif (field[to] == WK) //Oops!\n\t\t\twhiteKingPos = 64; // Illegal field!\n\t\telse if (field[to] == BK)\n\t\t\tblackKingPos = 64;\n\t\t// No, thats not a joke. Its required for move checking.\n\t\tif (field[from] == WR && from == 0)\n\t\t\tleftWhiteRookHasMoved = true;\n\t\telse if (field[from] == WR && from == 7)\n\t\t\trightWhiteRookHasMoved = true;\n\t\telse if (field[from] == BR && from == (7 << 3))\n\t\t\tleftBlackRookHasMoved = true;\n\t\telse if (field[from] == BR && from == (7 << 3) + 7)\n\t\t\trightBlackRookHasMoved = true;\n\t\telse if (field[from] == WK) {\n\t\t\twhiteKingHasMoved = true;\n\t\t\twhiteKingPos = to;\n\t\t} else if (field[from] == BK) {\n\t\t\tblackKingHasMoved = true;\n\t\t\tblackKingPos = to;\n\t\t}\n\t\tif (to == 0)\n\t\t\tleftWhiteRookHasMoved = true;\n\t\telse if (to == 7)\n\t\t\trightWhiteRookHasMoved = true;\n\t\telse if (to == 56)\n\t\t\tleftBlackRookHasMoved = true;\n\t\telse if (to == 63)\n\t\t\trightBlackRookHasMoved = true;\n\n\t\tif (field[to] != EM)\n\t\t\tcapturing = true;\n\n\t\t// Halfmove clock\n\t\tif (field[from] == WP || field[from] == BP || capturing)\n\t\t\thalfmoveClock = 0;\n\t\telse\n\t\t\thalfmoveClock++;\n\n\t\t//Set up enPassantTarget:\n\t\tif (field[from] == WP && rank == 1 && newRank == 3)\n\t\t\tenPassantTarget = ((2 << 3) + file);\n\t\telse if (field[from] == BP && rank == 6 && newRank == 4)\n\t\t\tenPassantTarget = ((5 << 3) + file);\n\t\telse\n\t\t\tenPassantTarget = 64;\n\n\t\t// Update the bitboards\n\t\tclearBitboardField(from);\n\t\tclearBitboardField(to);\n\t\tif (isWhiteFigure(field[from])) {\n\t\t\tsetWhiteBitboardField(to);\n\t\t}\n\t\tif (isBlackFigure(field[from])) {\n\t\t\tsetBlackBitboardField(to);\n\t\t}\n\n\t\t// Clear the attack boards, they have to be recalculated when needed.\n\t\twhiteAttackBoard = 0;\n\t\tblackAttackBoard = 0;\n\n\t\t// Update the array board\n\t\tfield[to] = field[from];\n\t\tfield[from] = EM;\n\t\tlastFrom = from;\n\t\tlastTo = to;\n\t\tisWhiteTurn = !isWhiteTurn;\n\n\t\t// Pawn promotion:\n\t\tif (field[to] == WP && newRank == 7) {\n\t\t\tif (pawnPromotion == NONE) {\n\t\t\t\tpawnPromotion = QUEEN;\n\t\t\t\tfield[to] = WHITE_QUEEN;\n\t\t\t} else if (pawnPromotion == QUEEN)\n\t\t\t\tfield[to] = WHITE_QUEEN;\n\t\t\telse if (pawnPromotion == ROOK)\n\t\t\t\tfield[to] = WHITE_ROOK;\n\t\t\telse if (pawnPromotion == BISHOP)\n\t\t\t\tfield[to] = WHITE_BISHOP;\n\t\t\telse if (pawnPromotion == KNIGHT)\n\t\t\t\tfield[to] = WHITE_KNIGHT;\n\t\t\tpawnHasPromoted = true;\n\t\t} else if (field[to] == BP && newRank == 0) {\n\t\t\tif (pawnPromotion == NONE) {\n\t\t\t\tpawnPromotion = QUEEN;\n\t\t\t\tfield[to] = BLACK_QUEEN;\n\t\t\t} else if (pawnPromotion == QUEEN)\n\t\t\t\tfield[to] = BLACK_QUEEN;\n\t\t\telse if (pawnPromotion == ROOK)\n\t\t\t\tfield[to] = BLACK_ROOK;\n\t\t\telse if (pawnPromotion == BISHOP)\n\t\t\t\tfield[to] = BLACK_BISHOP;\n\t\t\telse if (pawnPromotion == KNIGHT)\n\t\t\t\tfield[to] = BLACK_KNIGHT;\n\t\t\tpawnHasPromoted = true;\n\t\t}\n\t\t// \t\tSystem.out.println(\"From: \"+from+\", To: \"+to);\n\t\t// \t\tSystem.out.println(\"WhitePiecesDiag1:\\n\"+binaryPresentation(whitePiecesDiag1));\n\t\t// \t\tSystem.out.println(\"BlackPiecesDiag1:\\n\"+binaryPresentation(blackPiecesDiag1)+\"\\n\");\n\t}", "title": "" }, { "docid": "b575ece2649a7557976eb3e65184eb15", "score": "0.63356805", "text": "@Override\n\tpublic void execute(Board board, List<Piece> pieces) {\n\t\tint d = Math.max(Math.abs(originRow - finalRow), Math.abs(originCol - finalCol));\n\n\t\t// Checks if the piece we want to move belongs to the current player:\n\t\tif (getPiece().equals(board.getPosition(originRow, originCol))) {\n\t\t\t// Checks if the final position where we want to move the piece does\n\t\t\t// exist:\n\t\t\tif (finalRow >= 0 && finalCol >= 0 && finalRow < board.getRows() && finalCol < board.getCols()) {\n\t\t\t\t// Checks if there is a piece in the initial position and if the\n\t\t\t\t// final position is free:\n\t\t\t\tif (board.getPosition(originRow, originCol) != null && board.getPosition(finalRow, finalCol) == null) {\n\t\t\t\t\t// We can only move up to two spaces:\n\t\t\t\t\tif (d == 2) {\n\t\t\t\t\t\t// Moves the piece if the distance is 2:\n\t\t\t\t\t\tboard.setPosition(finalRow, finalCol, getPiece());\n\t\t\t\t\t\t// And deletes the piece from its original position:\n\t\t\t\t\t\tboard.setPosition(originRow, originCol, null);\n\t\t\t\t\t} else if (d == 1) {\n\t\t\t\t\t\t// Moves the piece if the distance is 1:\n\t\t\t\t\t\tboard.setPosition(finalRow, finalCol, getPiece());\n\t\t\t\t\t\tboard.setPieceCount(getPiece(), board.getPieceCount(getPiece()) + 1);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tthrow new GameError(\"Piece cannot move further than 2 spaces!\");\n\t\t\t\t\t}\n\t\t\t\t} else if (board.getPosition(finalRow, finalCol) != null) {\n\t\t\t\t\tthrow new GameError(\"Position (\" + finalRow + \",\" + finalCol + \") is already occupied!\");\n\t\t\t\t} else {\n\t\t\t\t\tthrow new GameError(\"Please, select a valid destination cell.\");\n\t\t\t\t}\n\t\t\t}\n\t\t} else if (board.getPosition(originRow, originCol) == null) {\n\t\t\tthrow new GameError(\"There is no piece at position (\" + originRow + \",\" + originCol + \")!\");\n\t\t} else {\n\t\t\tthrow new GameError(\"Piece at position (\" + originRow + \",\" + originCol + \") is not yours!\");\n\t\t}\n\n\t\t// To check that a piece is an obstacle from outside we simply check\n\t\t// that it is not in the list of pieces. We flip the pieces around us\n\t\t// that belong to our opponents and are not obstacles:\n\t\tfor (int i = finalRow - 1; i <= finalRow + 1; i++) {\n\t\t\tfor (int j = finalCol - 1; j <= finalCol + 1; j++) {\n\t\t\t\tif (i >= 0 && j >= 0 && i < board.getRows() && j < board.getCols()) {\n\t\t\t\t\tif (board.getPosition(i, j) != null && !isObstacle(board, pieces, i, j)) {\n\t\t\t\t\t\tboard.setPieceCount(board.getPosition(i, j), board.getPieceCount(board.getPosition(i, j)) - 1);\n\t\t\t\t\t\tboard.setPosition(i, j, getPiece());\n\t\t\t\t\t\tboard.setPieceCount(getPiece(), board.getPieceCount(getPiece()) + 1);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "56931e0d78195e893beb5d95d3832e13", "score": "0.63230556", "text": "@Test(expected = IllegalStateException.class)\n public void whenMoveFromFigureOnWay() {\n Logic logic = new Logic();\n BishopBlack bishopBlack = new BishopBlack(Cell.B1);\n BishopBlack bishopBlack2 = new BishopBlack(Cell.G6);\n logic.add(bishopBlack);\n logic.add(bishopBlack2);\n assertThat(logic.move(Cell.B1, Cell.H7), is(true));\n }", "title": "" }, { "docid": "2feb403319b8c2128571f48623f40561", "score": "0.63089186", "text": "private void checkMoveBackTostart(int playerSquare[], int pieceToMove, Vector<User> closedSockets) {\n for (int i=0;i<numPlayers;i++) {\n for (int j=0;j<4;j++) {\n if (! players[i].getNickname().equals(playerTurn.getNickname())) {\n int pieces[] = userPlaces.get(players[i].getNickname());\n if (pieces[j] < 53 && playerSquare[pieceToMove] < 53) {\n if (realBoardMap[turnInt][playerSquare[pieceToMove]] == realBoardMap[i][pieces[j]]) {\n // writes move command to update players game ui.\n for (int k=0;k<numPlayers;k++) {\n try {\n players[k].write(\"GAME|\" + id + \"|\" + name + \"|MOVE|\" +\n players[i].getNickname() + \"|\" + j + \"|\" + 0);\n } catch (Exception e) {\n playerLeft(players[k], closedSockets);\n closedSockets.add(players[k]);\n logger.log(Level.SEVERE, \"an exception was thrown\", e);\n }\n }\n //update location of piece that was knocked back\n userPlaces.get(players[i].getNickname())[j] = 0;\n }\n }\n }\n }\n }\n }", "title": "" }, { "docid": "14ec3ce314553127ec62f3ddcd2b83cc", "score": "0.63084584", "text": "public void move(Coordinate iCord, Coordinate nCord) {\n //white pieces\n if (boardLayout[iCord.getRow()][iCord.getCol()].getColor() == true) {\n\n //the piece is only moved if the move is a \"valid move\"\n\n if (boardLayout[iCord.getRow()][iCord.getCol()].isValidMove(nCord) == true) {\n\n Piece temp = boardLayout[iCord.getRow()][iCord.getCol()];\n //moves the piece\n boardLayout[nCord.getRow()][nCord.getCol()] = temp;\n //sets the updates coordinates of the piece\n boardLayout[nCord.getRow()][nCord.getCol()].setCoordinate(nCord.getRow(), nCord.getCol());\n //sets the old piece location to null on array\n boardLayout[iCord.getRow()][iCord.getCol()] = null;\n\n setKing(nCord);\n\n //single jump\n if (Math.abs(nCord.getRow() - iCord.getRow()) == 2 && Math.abs(nCord.getCol() - iCord.getCol()) == 2) {\n\n //capture up left for white\n if (nCord.getRow() < iCord.getRow() && nCord.getCol() < iCord.getCol()) {\n boardLayout[iCord.getRow() - 1][iCord.getCol() - 1] = null;\n }\n //capture up right for white\n if (nCord.getRow() < iCord.getRow() && nCord.getCol() > iCord.getCol()) {\n boardLayout[iCord.getRow() - 1][iCord.getCol() + 1] = null;\n }\n //capture down left for white\n if (nCord.getRow() > iCord.getRow() && nCord.getCol() < iCord.getCol()) {\n boardLayout[iCord.getRow() + 1][iCord.getCol() - 1] = null;\n }\n //capture down right for white\n if (nCord.getRow() > iCord.getRow() && nCord.getCol() > iCord.getCol()) {\n boardLayout[iCord.getRow() + 1][iCord.getCol() + 1] = null;\n }\n numBlackPieces--;\n }\n\n } else {\n System.out.println(\"Not a valid move\");\n System.out.println();\n }\n\n }\n\n //black pieces\n else if (boardLayout[iCord.getRow()][iCord.getCol()].getColor() == false) {\n\n //the piece is only moved if the move is a \"valid move\"\n if (boardLayout[iCord.getRow()][iCord.getCol()].isValidMove(nCord) == true) {\n\n\n Piece temp = boardLayout[iCord.getRow()][iCord.getCol()];\n //moves the piece\n boardLayout[nCord.getRow()][nCord.getCol()] = temp;\n //sets the updates coordinates of the piece\n boardLayout[nCord.getRow()][nCord.getCol()].setCoordinate(nCord.getRow(), nCord.getCol());\n //sets the old piece location to null on array\n boardLayout[iCord.getRow()][iCord.getCol()] = null;\n setKing(nCord);\n\n\n //single jump\n if (Math.abs(nCord.getRow() - iCord.getRow()) == 2 && Math.abs(nCord.getCol() - iCord.getCol()) == 2) {\n\n //capture down left for black\n if (nCord.getRow() > iCord.getRow() && nCord.getCol() < iCord.getCol()) {\n boardLayout[iCord.getRow() + 1][iCord.getCol() - 1] = null;\n }\n //capture down right for black\n if (nCord.getRow() > iCord.getRow() && nCord.getCol() > iCord.getCol()) {\n boardLayout[iCord.getRow() + 1][iCord.getCol() + 1] = null;\n }\n //capture up left for black\n if (nCord.getRow() < iCord.getRow() && nCord.getCol() < iCord.getCol()) {\n boardLayout[iCord.getRow() - 1][iCord.getCol() - 1] = null;\n }\n //capture up right for black\n if (nCord.getRow() < iCord.getRow() && nCord.getCol() > iCord.getCol()) {\n boardLayout[iCord.getRow() - 1][iCord.getCol() + 1] = null;\n }\n numWhitePieces--;\n }\n\n\n } else {\n System.out.println(\"Not a valid move\");\n System.out.println();\n }\n }\n\n fillAllMoves();\n }", "title": "" }, { "docid": "c270e08ae1f33a096114390d0d92aa94", "score": "0.6302082", "text": "protected boolean doMove(Move m) {\n if (m.moveKind == Move.QUIT) {\n return true;\n }\n if (validMove(m)) {\n if (m.moveKind == Move.STEP) {\n removePiece(getPiece(m.x2,m.y2));\n }\n addPiece(new Piece(m.x1, m.y1, nextPlayer));\n nextPlayer = otherPlayer(nextPlayer);\n numMoves++;\n return true;\n\t }\n return false;\n }", "title": "" }, { "docid": "ed70cd634250859c7df9b844fa227d9d", "score": "0.629573", "text": "@Test(expected=IllegalMoveException.class)\n\tpublic void rookMoveTest1() throws IllegalMoveException, PieceNullPointerException, CoordinateOutOfBoundsException\n\t{\n\t\tCoord currentPos = new Coord(0,0);\n\t\tCoord newPos = new Coord(2,2);\n\t\tboard.movePiece(currentPos, newPos, ChessColour.WHITE);\n\t}", "title": "" }, { "docid": "b8d73e2644daa3c0783fa0939a45b88b", "score": "0.6292225", "text": "private boolean validMove(Piece p, int xi, int yi, int xf, int yf) { \n\n if (pieces[xf][yf] != null) {\n return false;\n }\n\n // Upward movement \n if (p.isFire() || p.isKing()) {\n if ((xf == xi + 1 || xf == xi - 1) && yf == yi + 1) {\n return true; \n }\n }\n\n // Downward movement \n if (!p.isFire() || p.isKing()) {\n if ((xf == xi + 1 || xf == xi - 1) && yf == yi - 1) {\n return true; \n }\n }\n return false; \n }", "title": "" }, { "docid": "dc35f97c7f089422fb05f6e2bb0fd36a", "score": "0.6282092", "text": "@Test\n\tpublic void testRedLeft_singleMoves() {\n\t\tBoard board = new Board();\n\n\t\tSinglePiece piece = (SinglePiece) board.getPieceAt(2, 7);\n\t\tKingPiece king = piece.promote();\n\t\tboard.setPieceAt(2, 7, king);\n\n\t\tList<Move> moves = king.getSingleMoves(board, new Position(2, 7));\n\t\tassertEquals(1, moves.size());\n\t\tMove move = moves.get(0);\n\n\t\tassertEquals(new Position(2, 7), move.getStart());\n\t\tassertEquals(new Position(3, 6), move.getEnd());\n\t}", "title": "" }, { "docid": "bb3351914f9fb2f170d1aca53462e932", "score": "0.6276051", "text": "private void selecPiece(MouseEvent evt){\r\n // Interaction disabled ignore mouse events\r\n if(!interaction)\r\n return;\r\n // Deselect Piece/Square button mask (right mouse button)\r\n if((evt.getModifiers() & InputEvent.BUTTON3_MASK) == InputEvent.BUTTON3_MASK){\r\n for (int row = 0; row < 8; row++){\r\n for (int col = 0; col < 8; col++){\r\n matrix[row][col].clearSelection();\r\n }\r\n }\r\n move_start = null; move_end = null;\r\n return;\r\n }\r\n // Select Piece/Square button mask (left mouse button)\r\n if((evt.getModifiers() & InputEvent.BUTTON1_MASK) == InputEvent.BUTTON1_MASK){\r\n if(evt.getSource() instanceof BoardCell){\r\n BoardCell selected = (BoardCell)evt.getSource();\r\n // Avoids select light squares\r\n if(selected.getSquare().getName() == Textures.light_square)\r\n return;\r\n // Avoids select square before piece\r\n if(selected.getPiece() == null && move_start == null)\r\n return;\r\n // save move points\r\n if(move_start == null)\r\n move_start = new Point(selected.getRow(),selected.getCol());\r\n else\r\n move_end = new Point(selected.getRow(),selected.getCol());\r\n // Avoid select the same piece for start and end\r\n if(move_start.equals(move_end))\r\n move_end = null;\r\n // set selected\r\n selected.setSelection(select_texture);\r\n // notifies observer\r\n if(move_start != null && move_end != null){\r\n setChanged();\r\n notifyObservers(new Pair(move_start,move_end));\r\n move_start = null; move_end = null;\r\n }\r\n }\r\n }\r\n }", "title": "" }, { "docid": "22ef06dc8cb807fd43f1925ff9ddd654", "score": "0.62740684", "text": "@Test\n\tpublic void testBishopCaptureOnePieceFail() {\n\t\t\n\t\tMoveStrategy bishopStrategy = stratFac.getStrategy(ChessPieceType.BISHOP, \n\t\t\t\tnull, board);\n\t\tboard.setPiece( new ChessPiece( ChessPieceType.BISHOP, ChessColor.BLACK ),\n\t\t\t\t'd', 5);\n\t\tboard.setPiece( new ChessPiece( ChessPieceType.BISHOP, ChessColor.BLACK ),\n\t\t\t\t'f', 3);\n\t\tassertFalse( bishopStrategy.canCapture(board, 'f', 3, 'd', 5) );\n\t}", "title": "" }, { "docid": "2b509f96cbaf98ec7b3294cb71344bcf", "score": "0.62732315", "text": "public Piece getMove(Board b, char color)throws Exception;", "title": "" }, { "docid": "a10f49aad0a88d4a0289c5521cd1e9c9", "score": "0.6272863", "text": "public int movePiece(int x, int y, int newX, int newY){\t\t\n\t\t//validate the move, make sure it doesn't go off the board\n\t\tif((newX < 1) || (newY < 1))\n\t\t\treturn 0;\n\t\tif((newX > rows) || (newY > columns))\n\t\t\treturn 0;\n\t\t//move is within the board\n\t\tPiece piece = pieceAt(x, y);\n\t\tif(piece == null)\n\t\t\treturn 0;\n\t\tif(piece.isTaken() == 1)\n\t\t\treturn 0;\n\t\t//if we didn't find one, do nothing\n\t\t//if found, check if the move is legal\t\t\n\t\tif(canMovePiece(piece, newX, newY)){\n\t\t\t//if the destination is free, go!\n\t\t\tif(squares[newX - 1][newY - 1].isTaken() == 0){\n\t\t\t\tsquares[x-1][y-1].setTaken(0);\n\t\t\t\tpiece.setCoordinates(newX, newY);\n\t\t\t\tsquares[newX - 1][newY - 1].setTaken(1);\t\t\t\t\n\t\t\t\treturn 1;\n\t\t\t}\n\t\t\telse{\n\t\t\t\treturn tryCapture(piece, newX, newY);\n\t\t\t}\t\t\t\n\t\t}\n\t\treturn 0;\n\t}", "title": "" }, { "docid": "529ce5fd62c2accaff97a8663e6e7cfe", "score": "0.6270547", "text": "@Test\n public void whenMoveFourFourToFourSixThenTrue() {\n Board board = new Board();\n Cell start = new Cell(4, 4);\n Cell finish = new Cell(4, 6);\n board.setFigure(new Queen(start), start);\n boolean methodReturns = false;\n try {\n methodReturns = board.move(start, finish);\n } catch (ChessException e) {\n e.printStackTrace();\n }\n boolean expected = true;\n assertThat(methodReturns, is(expected));\n }", "title": "" }, { "docid": "785b19dfdac86c8c0b22ff306438bb2f", "score": "0.6268089", "text": "@Test\n\tpublic void testRightCorner_singleMoves() {\n\t\tBoard board = new Board();\n\n\t\tSinglePiece piece = (SinglePiece) board.getPieceAt(0, 7);\n\t\tKingPiece king = piece.promote();\n\t\tboard.setPieceAt(0, 7, king);\n\n\t\tList<Move> moves = king.getSingleMoves(board, new Position(0, 7));\n\t\tassertTrue(moves.isEmpty());\n\t}", "title": "" }, { "docid": "b1faf30d704ccd94c7f132cce782cc5a", "score": "0.626681", "text": "protected void preMove(Move move)\n {\n halfMoves++;\n String initial = move.getFrom();\n String destination = move.getDestination();\n char oldInitialPiece = desk.getPieceAt(initial);\n char destInitialPiece = desk.getPieceAt(destination);\n //if it is capturing\n if (destInitialPiece != EMPTY_CELL_CHAR) {\n halfMoves = 0;\n }\n //1. move\n desk.setPieceAt(destination, oldInitialPiece);\n desk.setPieceAt(initial, EMPTY_CELL_CHAR);\n String oldEnpassant = possibleEnPassantField;\n possibleEnPassantField = null;\n if (oldInitialPiece == 'p' || oldInitialPiece == 'P') {\n halfMoves = 0;\n //2. check enPassant\n //2.1 set enPassant flag\n int initialRowNumber = Character.isUpperCase(oldInitialPiece) ? 2 : 7; //we are in terms of chess desk\n int destRowNumber = Character.isUpperCase(oldInitialPiece) ? 4 : 5;\n int finalRowNumber = Character.isUpperCase(oldInitialPiece) ? 8 : 1;\n\n DeskIterator deskIterator = desk.deskIterator(initial);\n MoveVector addToInitial = Character.isUpperCase(oldInitialPiece) ? NORTH : SOUTH;\n if (initial.endsWith(String.valueOf(initialRowNumber))\n && destination.endsWith(String.valueOf(destRowNumber))) {\n possibleEnPassantField = deskIterator.getSquareAt(addToInitial);\n }\n //2.2 check capturing enPassant\n if (destination.equals(oldEnpassant)) {\n DeskIterator epIterator = desk.deskIterator(oldEnpassant);\n desk.setPieceAt(epIterator.getSquareAt(addToInitial.negate()), EMPTY_CELL_CHAR);\n }\n //3. check pawn to figure transformation\n if (destination.endsWith(String.valueOf(finalRowNumber))) {\n desk.setPieceAt(destination, move.getPromotion());\n }\n }\n\n //4. check castling\n //4.3 this move is castling\n if (oldInitialPiece == 'K' && K && destination.equals(\"G1\")) {\n K = false;\n Q = false;\n desk.setPieceAt(\"H1\", EMPTY_CELL_CHAR);\n desk.setPieceAt(\"F1\", 'R');\n }\n if (oldInitialPiece == 'K' && Q && destination.equals(\"C1\")) {\n K = false;\n Q = false;\n desk.setPieceAt(\"A1\", EMPTY_CELL_CHAR);\n desk.setPieceAt(\"D1\", 'R');\n }\n if (oldInitialPiece == 'k' && k && destination.equals(\"G8\")) {\n k = false;\n q = false;\n desk.setPieceAt(\"H8\", EMPTY_CELL_CHAR);\n desk.setPieceAt(\"F8\", 'r');\n }\n if (oldInitialPiece == 'k' && q && destination.equals(\"C8\")) {\n k = false;\n q = false;\n desk.setPieceAt(\"A8\", EMPTY_CELL_CHAR);\n desk.setPieceAt(\"D8\", 'r');\n }\n //4.1 move of rook or king\n if (oldInitialPiece == 'K') {\n K = false;\n Q = false;\n }\n if (oldInitialPiece == 'k') {\n k = false;\n q = false;\n }\n if (oldInitialPiece == 'R') {\n if (initial.equals(\"A1\")) {\n Q = false;\n }\n if (initial.equals(\"H1\")) {\n K = false;\n }\n }\n if (oldInitialPiece == 'r') {\n if (initial.equals(\"A8\")) {\n q = false;\n }\n if (initial.equals(\"H8\")) {\n k = false;\n }\n }\n //4.2 rook is captured\n if (destination.equals(\"A1\")) {\n Q = false;\n }\n if (destination.equals(\"H1\")) {\n K = false;\n }\n if (destination.equals(\"A8\")) {\n q = false;\n }\n if (destination.equals(\"H8\")) {\n k = false;\n }\n\n //increase move counter after black move\n if (!activePlayer) {\n moves++;\n }\n\n if (halfMoves == 50) {\n System.out.println(\"Half moves == 50!\");\n }\n //all is ok\n activePlayer = !activePlayer;\n }", "title": "" }, { "docid": "2adfa492d573f3ed1ab7808175059a44", "score": "0.6263513", "text": "@Test\n public void testMoveUpAndLeft () {\n assertTrue(bishop.canMoveTo(5,3));\n assertFalse(rook.canMoveTo(5,3));\n }", "title": "" }, { "docid": "25b3cb9935ba36ea3ccab6e29161035a", "score": "0.6249851", "text": "@Test\n public void whenMoveFourFourToFourTwoThenTrue() {\n Board board = new Board();\n Cell start = new Cell(4, 4);\n Cell finish = new Cell(4, 2);\n board.setFigure(new Queen(start), start);\n boolean methodReturns = false;\n try {\n methodReturns = board.move(start, finish);\n } catch (ChessException e) {\n e.printStackTrace();\n }\n boolean expected = true;\n assertThat(methodReturns, is(expected));\n }", "title": "" }, { "docid": "a85ce72f2e07c871d4ee623db7743f3c", "score": "0.62478244", "text": "@Test\n\tpublic void testRedRight_singleMoves() {\n\t\tBoard board = new Board();\n\n\t\tSinglePiece piece = (SinglePiece) board.getPieceAt(2, 1);\n\t\tKingPiece king = piece.promote();\n\t\tboard.setPieceAt(3, 0, king);\n\n\t\tList<Move> moves = king.getSingleMoves(board, new Position(3, 0));\n\t\tassertEquals(1, moves.size());\n\t\tMove move = moves.get(0);\n\n\t\tassertEquals(new Position(3, 0), move.getStart());\n\t\tassertEquals(new Position(4, 1), move.getEnd());\n\t}", "title": "" }, { "docid": "1eca2ff865129b65d4f4b29efca18b80", "score": "0.6243696", "text": "@Test\n public void testMoveUp () {\n assertFalse(bishop.canMoveTo(5,4));\n assertTrue(rook.canMoveTo(5,4));\n }", "title": "" }, { "docid": "3b58bc0efec632726ce4b749f8dde244", "score": "0.6241704", "text": "private void moveSelectedPiece(FieldModel destination) {\n FieldModel fieldSelected = chessboardModel.getFieldModelSelected();\n PieceView pieceViewToMove = chessboardView.getFieldView(fieldSelected).getPieceView();\n List<FieldModel> moves = fieldSelected.getPossibleMoves();\n unselectField();\n if (moves.contains(destination) ) {\n pieceViewToMove.move(destination);\n }\n }", "title": "" }, { "docid": "0401986e3cacb0e8fa3664aa5e590868", "score": "0.62408656", "text": "boolean hasPuzzlePieceDropped();", "title": "" }, { "docid": "e38b854ae692488d3badbd8300e06a19", "score": "0.6240672", "text": "public void moveKing(String player, String selectedPiece, String toTile) \n throws InvalidPieceException, InvalidPlayerException {\n String fromTile = Board.board.map.getTile(selectedPiece);\n \n int fromRow = Character.getNumericValue(fromTile.charAt(0));\n int fromColumn = Character.getNumericValue(fromTile.charAt(1));\n int toRow = Character.getNumericValue(toTile.charAt(0));\n int toColumn = Character.getNumericValue(toTile.charAt(1));\n // 1A, 1 is row, A is column\n \n // MOVING LEFT\n if (fromRow == toRow && (toColumn == fromColumn - 1)) {\n setPos(player, selectedPiece, toTile);\n \n // MOVING RIGHT\n } else if (fromRow == toRow && (toColumn == fromColumn + 1)) {\n setPos(player, selectedPiece, toTile);\n \n // MOVING UP\n } else if (fromColumn == toColumn && (toRow == fromRow + 1)) {\n setPos(player, selectedPiece, toTile);\n \n // MOVING DOWN\n } else if (fromColumn == toColumn && (toRow == fromRow - 1)) {\n setPos(player, selectedPiece, toTile);\n\n // MOVING NORTH EAST DIAGONALLY\n } else if ((toColumn == fromColumn + 1) && (toRow == fromRow + 1)) {\n setPos(player, selectedPiece, toTile);\n \n // MOVING SOUTH EAST DIAGONALLY\n } else if ((toColumn == fromColumn + 1) && (toRow == fromRow - 1)) {\n setPos(player, selectedPiece, toTile);\n \n // MOVING SOUTH WEST DIAGONALLY\n } else if ((toColumn == fromColumn - 1) && (toRow == fromRow - 1)) {\n setPos(player, selectedPiece, toTile);\n \n // MOVING NORTH WEST DIAGONALLY\n } else if ((toColumn == fromColumn - 1) && (toRow == fromRow + 1)) {\n setPos(player, selectedPiece, toTile);\n \n } else {\n if (!Board.board.map.valueLock) {\n System.out.println(\"Illegal Move. Please move your King in accordance to the game's rules\");\n }\n passedValidation = false;\n }\n }", "title": "" }, { "docid": "eef2a08de340f6dc429909c98c5653ac", "score": "0.6235777", "text": "public void simulateMove(Piece piece, int x, int y){\n\t\tint currentX, currentY;\n\t\tcurrentX = piece.getX();\n\t\tcurrentY = piece.getY();\n\t\tsquares[x-1][y-1].setTaken(1);\n\t\tsquares[currentX-1][currentY-1].setTaken(0);\n\t\tpiece.setCoordinates(x, y);\n\t}", "title": "" }, { "docid": "29280b73f98417c75e6a7f256bce1eeb", "score": "0.62353414", "text": "@Test\n public void TestCanMove() {\n assertTrue(wp1.canMove(1, 0));\n assertTrue(wp2.canMove(4, 5));\n assertTrue(bp1.canMove(6, 7));\n assertTrue(bp2.canMove(3, 6));\n assertFalse(wp1.canMove(2, 0));\n assertFalse(wp2.canMove(4, 6));\n assertFalse(bp1.canMove(7, 6));\n assertFalse(bp2.canMove(5, 6));\n }", "title": "" }, { "docid": "af2bcde3abacd762ddc9c483b6838195", "score": "0.6235293", "text": "private boolean castling(String firstKey, String secondKey, ChessPiece pieceToMove){\n\t\t\n\t\t//check if you are moving the king\n\t\tif(!(pieceToMove instanceof King)){ return false; }\n\t\t\n\t\t//check if the king has moved before\n\t\tKing tempK = (King) pieceToMove;\n\t\tif(tempK.firstMove == false){ return false; }\n\t\t\n\t\t//check if you are trying to move king 2 spots\n\t\tif(!secondKey.equals(\"c1\") && !secondKey.equals(\"g1\") && !secondKey.equals(\"c8\") && !secondKey.equals(\"g8\") ){ return false; }\n\t\t\n\t\t//white left side castle\n\t\tif(secondKey.equals(\"c1\")){\n\t\t\t\n\t\t\t//check if rook is still there\n\t\t\tif(pieces.get(\"a1\") == null){ return false; }\n\t\t\t\n\t\t\t//check to see if piece there is a rook and the correct team\n\t\t\tChessPiece temp = pieces.get(\"a1\");\n\t\t\tif(!(temp instanceof Rook) || temp.team != 'w'){ return false; }\n\t\t\t\n\t\t\t//check to see if the rook has moved before\n\t\t\tRook tempR = (Rook)pieces.get(\"a1\");\n\t\t\tif(tempR.firstMove == false){ return false; }\n\t\t\t\n\t\t\t//check to see if any pieces are in between the rook and king\n\t\t\tif (pieceInTheWay(\"e1\", \"a1\") ){ return false; }\n\t\t\t\n\t\t\t//check to make sure you are not castling through a check\n\t\t\t//move piece 1st of 2 moves, e1 -> d1\n\t\t\tif(pieceToMove.move(\"d1\")) {\n\t\t\t\tpieces.remove(\"e1\");\n\t\t\t\tpieces.put(\"d1\", pieceToMove);\n\t\t\t\t\t\n\t\t\t\t//seeing if check thru occurs, if it does move piece back, set 1st move to true since the move never actually happened\n\t\t\t\tif (check(whiteKing)) {\n\t\t\t\t\t//move back from d1 -> e1\n\t\t\t\t\tif(pieceToMove.move(\"e1\")) { pieces.remove(\"d1\"); pieces.put(\"e1\", pieceToMove); }\n\t\t\t\t\ttempK.firstMove = true;\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\t\t\n\t\t\t//check to make sure you are not castling into a check\n\t\t\t//move piece 2nd of 2 moves, d1 -> c1 | (e1 -> d1 -> c1)\n\t\t\tif(pieceToMove.move(\"c1\")) {\n\t\t\t\tpieces.remove(\"d1\");\n\t\t\t\tpieces.put(\"c1\", pieceToMove);\n\t\t\t\t\t\n\t\t\t\t//see if king moved into a check, if so undo the moves, and set 1st move back to true\n\t\t\t\tif (check(whiteKing)) {\n\t\t\t\t\t//move back c1 -> d1\n\t\t\t\t\tif(pieceToMove.move(\"d1\")) { pieces.remove(\"c1\"); pieces.put(\"d1\", pieceToMove); }\n\t\t\t\t\t//move back d1 -> e1\n\t\t\t\t\tif(pieceToMove.move(\"e1\")) { pieces.remove(\"d1\"); pieces.put(\"e1\", pieceToMove); }\n\t\t\t\t\ttempK.firstMove = true;\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\t\n\t\t\t//move rook to right side of king, set movement to false, a1 -> d1\n\t\t\ttempR.firstMove = false;\n\t\t\ttemp.move(\"d1\");\n\t\t\tpieces.remove(\"a1\");\n\t\t\tpieces.put(\"d1\", temp);\n\t\t}\n\t\t\n\t\t//white right side castle\n\t\tif(secondKey.equals(\"g1\")){\n\t\t\t\n\t\t\t//check if rook is still there\n\t\t\tif(pieces.get(\"h1\") == null){ return false; }\n\t\t\t\t\n\t\t\t//check to see if piece there is a rook and the correct team\n\t\t\tChessPiece temp = pieces.get(\"h1\");\n\t\t\tif(!(temp instanceof Rook) || temp.team != 'w'){ return false; }\n\t\t\t\t\n\t\t\t//check to see if the rook has moved before\n\t\t\tRook tempR = (Rook)pieces.get(\"h1\");\n\t\t\tif(tempR.firstMove == false){ return false; }\n\t\t\t\t\n\t\t\t//check to see if any pieces are in between the rook and king\n\t\t\tif (pieceInTheWay(\"e1\", \"h1\") ){ return false; }\n\t\t\t\t\t\n\t\t\t//check to make sure you are not castling through a check\n\t\t\t//move piece 1st of 2 moves, e1 -> f1\n\t\t\tif(pieceToMove.move(\"f1\")) {\n\t\t\t\tpieces.remove(\"e1\");\n\t\t\t\tpieces.put(\"f1\", pieceToMove);\n\t\t\t\t\t\t\n\t\t\t\t//seeing if check thru occurs, if it does move piece back, set 1st move to true since the move never actually happened\n\t\t\t\tif (check(whiteKing)) {\n\t\t\t\t\t//move back from f1 -> e1\n\t\t\t\t\tif(pieceToMove.move(\"e1\")) { pieces.remove(\"f1\"); pieces.put(\"e1\", pieceToMove); }\n\t\t\t\t\ttempK.firstMove = true;\n\t\t\t\t\treturn false;\n\t\t\t\t}\t\t\t\t\t\t\n\t\t\t}\n\t\t\t\t\t\t\n\t\t\t//check to make sure you are not castling into a check\n\t\t\t//move piece 2nd of 2 moves, f1 -> g1 | (e1 -> f1 -> g1)\n\t\t\tif(pieceToMove.move(\"g1\")) {\n\t\t\t\tpieces.remove(\"f1\");\n\t\t\t\tpieces.put(\"g1\", pieceToMove);\n\t\t\t\t//see if king moved into a check, if so undo the moves, and set 1st move back to true\n\t\t\t\tif (check(whiteKing)) {\n\t\t\t\t\t//move back g1 -> f1\n\t\t\t\t\tif(pieceToMove.move(\"f1\")) { pieces.remove(\"g1\"); pieces.put(\"f1\", pieceToMove); }\n\t\t\t\t\t//move back f1 -> e1\n\t\t\t\t\tif(pieceToMove.move(\"e1\")) { pieces.remove(\"f1\"); pieces.put(\"e1\", pieceToMove); }\n\t\t\t\t\ttempK.firstMove = true;\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\t\t\t\n\t\t\t//move rook to left side of king, set movement to false, h1 -> f1\n\t\t\ttempR.firstMove = false;\n\t\t\ttemp.move(\"f1\");\n\t\t\tpieces.remove(\"h1\");\n\t\t\tpieces.put(\"f1\", temp);\n\t\t}\n\t\t\n\t\t//black left side castle, towards A column\n\t\tif(secondKey.equals(\"c8\")){\n\t\t\t\t\t\n\t\t\t//check if rook is still there\n\t\t\tif(pieces.get(\"a8\") == null){ return false; }\n\t\t\t\t\t\n\t\t\t//check to see if piece there is a rook and the correct team\n\t\t\tChessPiece temp = pieces.get(\"a8\");\n\t\t\tif(!(temp instanceof Rook) || temp.team != 'b'){ return false; }\n\t\t\t\t\t\n\t\t\t//check to see if the rook has moved before\n\t\t\tRook tempR = (Rook)pieces.get(\"a8\");\n\t\t\tif(tempR.firstMove == false){ return false; }\n\t\t\t\t\t\n\t\t\t//check to see if any pieces are in between the rook and king\n\t\t\tif (pieceInTheWay(\"e8\", \"a8\") ){ return false; }\n\t\t\t\t\t\n\t\t\t//check to make sure you are not castling through a check\n\t\t\t//move piece 1st of 2 moves, e8 -> d8\n\t\t\tif(pieceToMove.move(\"d8\")) {\n\t\t\t\tpieces.remove(\"e8\");\n\t\t\t\tpieces.put(\"d8\", pieceToMove);\n\t\t\t\t\t\t\t\n\t\t\t\t//seeing if check thru occurs, if it does move piece back, set 1st move to true since the move never actually happened\n\t\t\t\tif (check(blackKing)) {\n\t\t\t\t\t//move back from d8 -> e8\n\t\t\t\t\tif(pieceToMove.move(\"e8\")) { pieces.remove(\"d8\"); pieces.put(\"e8\", pieceToMove); }\n\t\t\t\t\ttempK.firstMove = true;\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\t\t\t\n\t\t\t//check to make sure you are not castling into a check\n\t\t\t//move piece 2nd of 2 moves, d8 -> c8 | (e8 -> d8 -> c8)\n\t\t\tif(pieceToMove.move(\"c8\")) {\n\t\t\t\tpieces.remove(\"d8\");\n\t\t\t\tpieces.put(\"c8\", pieceToMove);\n\t\t\t\t\t\t\t\n\t\t\t\t//see if king moved into a check, if so undo the moves, and set 1st move back to true\n\t\t\t\tif (check(blackKing)) {\n\t\t\t\t\t//move back c8 -> d8\n\t\t\t\t\tif(pieceToMove.move(\"d8\")) { pieces.remove(\"c8\"); pieces.put(\"d8\", pieceToMove); }\n\t\t\t\t\t//move back d8 -> e8\n\t\t\t\t\tif(pieceToMove.move(\"e8\")) { pieces.remove(\"d8\"); pieces.put(\"e8\", pieceToMove); }\n\t\t\t\t\ttempK.firstMove = true;\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\t\t\t\n\t\t\t//move rook to right side of king, set movement to false, a8 -> d8\n\t\t\ttempR.firstMove = false;\n\t\t\ttemp.move(\"d8\");\n\t\t\tpieces.remove(\"a8\");\n\t\t\tpieces.put(\"d8\", temp);\n\t\t}\t\t\n\t\t\n\t\t//black right side castle, towards H column\n\t\tif(secondKey.equals(\"g8\")){\n\t\t\t\t\t\n\t\t\t//check if rook is still there\n\t\t\tif(pieces.get(\"h8\") == null){ return false; }\n\t\t\t\t\t\t\n\t\t\t//check to see if piece there is a rook and the correct team\n\t\t\tChessPiece temp = pieces.get(\"h8\");\n\t\t\tif(!(temp instanceof Rook) || temp.team != 'b'){ return false; }\n\t\t\t\t\t\t\n\t\t\t//check to see if the rook has moved before\n\t\t\tRook tempR = (Rook)pieces.get(\"h8\");\n\t\t\tif(tempR.firstMove == false){ return false; }\n\t\t\t\t\t\t\n\t\t\t//check to see if any pieces are in between the rook and king\n\t\t\tif (pieceInTheWay(\"e8\", \"h8\") ){ return false; }\n\t\t\t\t\t\t\t\n\t\t\t//check to make sure you are not castling through a check\n\t\t\t//move piece 1st of 2 moves, e8 -> f8\n\t\t\tif(pieceToMove.move(\"f8\")) {\n\t\t\t\tpieces.remove(\"e8\");\n\t\t\t\tpieces.put(\"f8\", pieceToMove);\n\t\t\t\t\t\t\t\t\n\t\t\t\t//seeing if check thru occurs, if it does move piece back, set 1st move to true since the move never actually happened\n\t\t\t\tif (check(blackKing)) {\n\t\t\t\t\t//move back from f8 -> e8\n\t\t\t\t\tif(pieceToMove.move(\"e8\")) { pieces.remove(\"f8\"); pieces.put(\"e8\", pieceToMove); }\n\t\t\t\t\ttempK.firstMove = true;\n\t\t\t\t\treturn false;\n\t\t\t\t}\t\t\t\t\t\t\n\t\t\t}\n\t\t\t\t\t\t\t\t\n\t\t\t//check to make sure you are not castling into a check\n\t\t\t//move piece 2nd of 2 moves, f8 -> g8 | (e8 -> f8 -> g8)\n\t\t\tif(pieceToMove.move(\"g8\")) {\n\t\t\t\tpieces.remove(\"f8\");\n\t\t\t\tpieces.put(\"g8\", pieceToMove);\n\t\t\t\t//see if king moved into a check, if so undo the moves, and set 1st move back to true\n\t\t\t\tif (check(blackKing)) {\n\t\t\t\t\t//move back g8 -> f8\n\t\t\t\t\tif(pieceToMove.move(\"f8\")) { pieces.remove(\"g8\"); pieces.put(\"f8\", pieceToMove); }\n\t\t\t\t\t//move back f8 -> e8\n\t\t\t\t\tif(pieceToMove.move(\"e8\")) { pieces.remove(\"f8\"); pieces.put(\"e8\", pieceToMove); }\n\t\t\t\t\ttempK.firstMove = true;\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\t\t\t\t\t\n\t\t\t//move rook to left side of king, set movement to false, h8 -> f8\n\t\t\ttempR.firstMove = false;\n\t\t\ttemp.move(\"f8\");\n\t\t\tpieces.remove(\"h8\");\n\t\t\tpieces.put(\"f8\", temp);\n\t\t}\t\t\n\t\t\n\t\t//all conditions were properly met and the pieces were properly moved, return castling move complete\n\t\treturn true;\n\t}", "title": "" }, { "docid": "c62c8eb56ec112f403b58fbaa80b2f92", "score": "0.62333554", "text": "@Test\n\tpublic void testBishopCaptureOnePiece() {\n\t\t\n\t\tMoveStrategy bishopStrategy = stratFac.getStrategy(ChessPieceType.BISHOP, \n\t\t\t\tnull, board);\n\t\tboard.setPiece( new ChessPiece( ChessPieceType.BISHOP, ChessColor.WHITE ),\n\t\t\t\t'd', 5);\n\t\tboard.setPiece( new ChessPiece( ChessPieceType.BISHOP, ChessColor.BLACK ),\n\t\t\t\t'f', 3);\n\t\tassertTrue( bishopStrategy.canCapture(board, 'f', 3, 'd', 5) );\n\t}", "title": "" }, { "docid": "3b2c70c8ac490722736c932d1af9191c", "score": "0.622578", "text": "@Test(expected=IllegalMoveException.class)\n\tpublic void rookMoveTest3() throws IllegalMoveException, PieceNullPointerException, CoordinateOutOfBoundsException\n\t{\n\t\tCoord currentPos = new Coord(0,0);\n\t\tCoord newPos = new Coord(0,2);\n\t\tboard.movePiece(currentPos, newPos, ChessColour.WHITE);\n\t\tcurrentPos = new Coord(0,2);\n\t\tnewPos = new Coord(0,4);\n\t\tboard.movePiece(currentPos, newPos, ChessColour.WHITE);\n\t\tcurrentPos = new Coord(0,5);\n\t\tnewPos = new Coord(0,3);\n\t\tboard.movePiece(currentPos, newPos, ChessColour.BLACK);\n\t}", "title": "" }, { "docid": "7d7bda56f720ca8e178f2dc7383e732e", "score": "0.62183404", "text": "private void moveOneStepForwardAndPickUpBeeper() throws Exception {\n move();\n pickBeeper();\n }", "title": "" }, { "docid": "12adf766c0494012aff1a1086621beb8", "score": "0.6217294", "text": "public boolean canSelect(int x, int y){\n \tif(x>7 || x<0 ||y>7 || y<0){\n \t\treturn false;\n \t}\n \telse if((x+y)%2==1){\n \t\treturn false;\n \t}\n \tif (board[x][y]!=null){//if the selected square is not empty\n \t\tif (movedPiece==false && isFireTurn==board[x][y].isFire()){\n \t\t\t//if a piece hasnt been moved yet and the team matches\n \t\t\treturn true;\n \t\t}\n \t\telse{\n \t\t\treturn false;\n \t\t}\n \t}\n \telse{//if square selected is empty\n \t\tif (curPiece!=null){//if already selected a piece\n \t\t\tif (((y-cury>0) == isFireTurn) ||curPiece.isKing()){\n \t\t\t\t//if the direction selected and the 'team' of the piece match\n \t\t\t\tif (((x-curx)==1 || (x-curx)==-1)&&curPiece.hasCaptured()==false){//if the move is within 1\n \t\t\t\t\tif (movedPiece==false){//if a piece has not been moved yet\n \t\t\t\t\t\treturn true;\n \t\t\t\t\t}\n \t\t\t\t\treturn false;\n \t\t\t\t}\n \t\t\t\tif (((x-curx)==2 || (x-curx)==-2) && Math.abs(y-cury)==2 && board[(x+curx)/2][(y+cury)/2]!=null){//if the move is a capture\n \t\t\t\t\tif (curPiece.isFire() != board[(x+curx)/2][(y+cury)/2].isFire()){\n \t\t\t\t\t\t//and if the piece in between is capturable\n \t\t\t\t\t\treturn true;\n \t\t\t\t\t}\n \t\t\t\t\treturn false;\n \t\t\t\t}\n \t\t\t\treturn false;\n \t\t\t}\n \t\t\treturn false;\n \t\t}\n \t\telse if (prevPiece!=null){\n \t\t\tif ((((y-prevy>0) == isFireTurn) ||prevPiece.isKing())&& prevPiece.hasCaptured()==true){\n \t\t\t\tif (((x-prevx)==2 || (x-prevx)==-2) && Math.abs(y-prevy)==2 && board[(x+prevx)/2][(y+prevy)/2]!=null){//if the move is a capture\n \t\t\t\t\tif (prevPiece.isFire() != board[(x+prevx)/2][(y+prevy)/2].isFire()){\n \t\t\t\t\t\t//and if the piece in between is capturable\n \t\t\t\t\t\treturn true;\n \t\t\t\t\t}\n \t\t\t\t\treturn false;\n \t\t\t\t}\n \t\t\t\treturn false;\n \t\t\t}\n \t\t\treturn false;\n \t\t}\n \t\treturn false;\n \t}\n }", "title": "" }, { "docid": "be8f02a6d9393a1c09cb3eb5afd69196", "score": "0.621631", "text": "public void performIllegalMove (AbstractPiece piece,\n int toRow, int toColumn) {\n int r1, r2, c1, c2;\n Square location = piece.location();\n r1 = location.row();\n c1 = location.column();\n piece.moveTo(new Square(toRow,toColumn));\n location = piece.location();\n r2 = location.row();\n c2 = location.column();\n assertEquals(r1,r2);\n assertEquals(c1,c2);\n }", "title": "" }, { "docid": "f59cf50ff1174f4f743190245b9ecf97", "score": "0.6215556", "text": "@Test\n\tpublic void testBishopCaptureOnePieceFromC6toD5() {\n\t\t\n\t\tMoveStrategy bishopStrategy = stratFac.getStrategy(ChessPieceType.BISHOP, \n\t\t\t\tnull, board);\n\t\tboard.setPiece( new ChessPiece( ChessPieceType.BISHOP, ChessColor.WHITE ),\n\t\t\t\t'd', 5);\n\t\tboard.setPiece( new ChessPiece( ChessPieceType.BISHOP, ChessColor.BLACK ),\n\t\t\t\t'c', 6);\n\t\tassertTrue( bishopStrategy.canCapture(board, 'c', 6, 'd', 5) );\n\t}", "title": "" }, { "docid": "63ac5e8681bdc9014bb522de26abbdd9", "score": "0.6212213", "text": "@Test\n public void testKingDroppedAtAllowedPosition() {\n initFriendly(col(), row(), Protocol.KING);\n setDraggedFigure(col(), row());\n logic.calculateAllowedMoves(col(), row());\n int targetRow = row() - 1;\n logic.drop(col(), targetRow);\n verifyEmpty(col(), row());\n verifyMoved(col(), targetRow);\n verify(board, times(1)).setCheck(false);\n verify(board, times(1)).makeMove(col(), targetRow);\n }", "title": "" }, { "docid": "fb750ce6837e688c5e264cc041a01b4e", "score": "0.62104267", "text": "@Test\n public void testForRTurnUpAPiece() {\n UpdateUI updateUI = createUpdateUI(rId, rId, allFacingDownState);\n BanqiState banqiState = banqiLogic.gameApiStateToBanqiState(\n updateUI.getState(), Color.R, playerIds);\n banqiPresenter.updateUI(updateUI);\n banqiPresenter.cellSelected(0, false);\n\n verify(mockView).setPlayerState(banqiPresenter.getAllCells(banqiState), false);\n verify(mockView).chooseNextCell(banqiPresenter.getAllCells(banqiState),\n new ArrayList<Integer>());\n verify(mockContainer).sendMakeMove(\n banqiLogic.getTurnPieceOperation(banqiState, new Set(TURNPIECE, \"C0\")));\n }", "title": "" }, { "docid": "5ba6440ffc42b91d5f4e701687609bdf", "score": "0.62035805", "text": "@Test\n\tvoid bishopMovesFromCornerDiffConstantTest() \n\t{\n\t\ttry\n\t\t{\n\t\t\t//This tests moves of a bishop along a constant difference diagonal.\n\t\t\t//Creating a new white bishop at the cell a1.\n\t\t\tpiece = new Bishop(Board.White);\n\t\t\tCell a1 = board.getCellAt(Board.rowMin, Board.colMin);\n\t\t\tmovement.construct(piece, a1);\n\t\t\tArrayList<Cell> moves;\n\t\t\tmoves = movement.getAllMoves(piece);\n\t\t\tassertEquals(7, moves.size(), \"A bishop can have exactly 7 moves\"\n\t\t\t\t\t+ \" from cell a1.\");\n\t\t\tfor(Cell c: moves)\n\t\t\t{\t\n\t\t\t\tassertEquals((c.col - Board.colMin),\n\t\t\t\t\t\t\t (c.row - Board.rowMin),\n\t\t\t\t\"Bishop must be able to move only in the same diagonal.\");\n\n\t\t\t\tassertTrue(c.row >= Board.rowMin && c.col >= Board.colMin, \n\t\t\t\t\t\t\"A piece can't go outside the board\");\n\t\t\t\tassertTrue(c.row <= Board.rowMax && c.col <= Board.colMax,\n\t\t\t\t\t\t\"A piece can't go outside the board\");\t\t\t\n\t\t\t}\n\t\t\tassertFalse(moves.contains(a1));\n\t\t\t\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\tSystem.out.println(\"Exception in \"\n\t\t\t\t+ \"bishopMovesFromCornerDiffConstantTest() \"\n\t\t\t\t+ \"method of PieceTest\");\n\t\t}\n\t}", "title": "" }, { "docid": "0f211bb79773856a6dd6e720cd07c3ad", "score": "0.62026334", "text": "@Test\n\tvoid moveToTest() \n\t{\n\t\ttry\n\t\t{\n\t\t\t//Creating a new black rook at the cell a1.\n\t\t\tpiece = new Rook(Board.Black);\n\t\t\tmovement.construct(piece, board.getCellAt(Board.rowMin, Board.colMin));\n\t\t\t\n\t\t\tCell dest= board.getCellAt(Board.rowMin+2, Board.colMin);\n\t\t\t\n\t\t\tassertNull(movement.moveTo(piece, null),\n\t\t\t\t\"Movement object must return null when destination is null.\");\n\t\t\t//board.print();\n\t\t\t//System.out.println(dest);\n\t\t\tassertNotNull(movement.moveTo(piece, dest), \n\t\t\t\t\"rook must be able to move to cell a3 from a1.\");\n\t\t\t\n\t\t\tassertNull(movement.colourAt(Board.rowMin, Board.colMin), \n\t\t\t\t\"a1 cell must be empty now.\");\n\t\t\t\n\t\t\tassertEquals(piece, movement.getPieceOn(dest), \n\t\t\t\t\"rook must be on the dest cell now.\");\n\t\t\t//System.out.println(\"hmm\");\n\t\t\t//board.print();\n\t\t\tArrayList<Cell> movesList = movement.getAllMoves(piece);\n\t\t\t//System.out.println(\"test\"+movesList);\n\t\t\tassertEquals(14, movesList.size(), \n\t\t\t\t\"rook must have 14 moves from cell a3.\");\n\t\t\t\n\t\t\t//board.print();\n\t\t\tdest= board.getCellAt(Board.rowMin+1, Board.colMin+1);\n\t\t\tassertNull(movement.moveTo(piece, dest), \n\t\t\t\t\"rook must not be able to move to b2 from a3.\");\n\t\t\t//System.out.println(movement.getAllMoves(piece));\n\t\t\tassertEquals(movesList, movement.getAllMoves(piece), \n\t\t\t\t\"the list of moves must not change.\");\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t\tSystem.out.println(\"Exception in moveToTest() \"\n\t\t\t\t\t+ \"method of PieceTest\");\n\t\t}\n\t}", "title": "" }, { "docid": "6f6eb499c1cbf3eee03a0481f8f69218", "score": "0.61991626", "text": "@Test\n\tpublic void testWhiteRight_singleMoves() {\n\t\tBoard board = new Board();\n\n\t\tSinglePiece piece = (SinglePiece) board.getPieceAt(6, 1);\n\t\tKingPiece king = piece.promote();\n\t\tboard.setPieceAt(4, 7, king);\n\n\t\tList<Move> moves = king.getSingleMoves(board, new Position(4, 7));\n\t\tassertEquals(1, moves.size());\n\t\tMove move = moves.get(0);\n\n\t\tassertEquals(new Position(4, 7), move.getStart());\n\t\tassertEquals(new Position(3, 6), move.getEnd());\n\t}", "title": "" }, { "docid": "17d4fb60a42c331c8e6201209c5a1b58", "score": "0.61968744", "text": "public boolean movePiece(int startX, int startY, int endX, int endY) {\n\n\t\t// out of range co-ordinates, must convert co-ordinates to 0-7 range\n\t\t// first\n\t\tif (startX < 0 || startX > 7 || startY < 0 || startY > 7 || endX < 0\n\t\t\t\t|| endX > 7 || endY < 0 || endY > 7) {\n\t\t\treturn false;\n\t\t}\n\n\t\t// start co-ord is the same as end co-ord\n\t\tif (startX == endX && startY == endY) {\n\t\t\treturn false;\n\t\t}\n\n\t\tChessPiece currentPiece = chessPieces[startX][startY];\n\n\t\t// end piece is the king or a piece of the same colour as moving piece\n\t\tif ((currentPiece.toString().contains(\"white\") && chessPieces[endX][endY]\n\t\t\t\t.toString().contains(\"white\"))\n\t\t\t\t|| (currentPiece.toString().contains(\"black\") && chessPieces[endX][endY]\n\t\t\t\t\t\t.toString().contains(\"black\"))) {\n\t\t\treturn false;\n\t\t}\n\t\tif (chessPieces[endX][endY].toString().contains(\"king\")) {\n\t\t\treturn false;\n\t\t}\n\n\t\tcopyVariables();\n\n\t\t// have a validate method for each type of piece, so 12 validate methods\n\t\tswitch (currentPiece) {\n\t\tcase empty:\n\t\t\treturn false;\n\t\tcase whiteking:\n\t\t\tif (!checkWhiteKing(startX, startY, endX, endY)) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\twhiteKingHasntMoved = false;\n\t\t\twhiteKingX = endX;\n\t\t\twhiteKingY = endY;\n\t\t\t//castle left side\n\t\t\tif(startX == 0 && startY == 4 && endX == 0 && endY == 2) {\n\t\t\t\tchessPieces[0][0] = ChessPiece.empty;\n\t\t\t\tchessPieces[0][3] = ChessPiece.whiterook;\n\t\t\t}\n\t\t\t//castle right side\n\t\t\tif(startX == 0 && startY == 4 && endX == 0 && endY == 6) {\n\t\t\t\tchessPieces[0][7] = ChessPiece.empty;\n\t\t\t\tchessPieces[0][5] = ChessPiece.whiterook;\n\t\t\t}\n\t\t\tbreak;\n\t\tcase whitequeen:\n\t\t\tif (!checkWhiteQueen(startX, startY, endX, endY)) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\tbreak;\n\t\tcase whitebishop:\n\t\t\tif (!checkWhiteBishop(startX, startY, endX, endY)) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\tbreak;\n\t\tcase whiteknight:\n\t\t\tif (!checkWhiteKnight(startX, startY, endX, endY)) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\tbreak;\n\t\tcase whiterook:\n\t\t\tif (!checkWhiteRook(startX, startY, endX, endY)) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\tif (startX == 0 && startY == 0) {\n\t\t\t\tleftWhiteRookHasntMoved = false;\n\t\t\t}\n\t\t\tif (startX == 0 && startY == 7) {\n\t\t\t\trightWhiteRookHasntMoved = false;\n\t\t\t}\n\t\t\tbreak;\n\t\tcase whitepawn:\n\t\t\tif (!checkWhitePawn(startX, startY, endX, endY)) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\tif (endX - startX == 1 && Math.abs(startY - endY) == 1\n\t\t\t\t\t&& chessPieces[endX][endY] == ChessPiece.empty\n\t\t\t\t\t&& EPLastMove && endY == pawnEPPosition && endX == 5) {\n\t\t\t\tchessPieces[endX - 1][endY] = ChessPiece.empty;\n\t\t\t}\n\t\t\tpawnEPPosition = -1;\n\t\t\tEPLastMove = false;\n\t\t\tif (startX == 1 && endX == 3) {\n\t\t\t\tpawnEPPosition = startY;\n\t\t\t\tEPLastMove = true;\n\t\t\t}\n\t\t\tbreak;\n\t\tcase blackking:\n\t\t\tif (!checkBlackKing(startX, startY, endX, endY)) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\tblackKingHasntMoved = false;\n\t\t\tblackKingX = endX;\n\t\t\tblackKingY = endY;\n\t\t\t//castle left side\n\t\t\tif(startX == 7 && startY == 4 && endX == 7 && endY == 2) {\n\t\t\t\tchessPieces[7][0] = ChessPiece.empty;\n\t\t\t\tchessPieces[7][3] = ChessPiece.blackrook;\n\t\t\t}\n\t\t\t//castle right side\n\t\t\tif(startX == 7 && startY == 4 && endX == 7 && endY == 6) {\n\t\t\t\tchessPieces[7][7] = ChessPiece.empty;\n\t\t\t\tchessPieces[7][5] = ChessPiece.blackrook;\n\t\t\t}\n\t\t\tbreak;\n\t\tcase blackqueen:\n\t\t\tif (!checkBlackQueen(startX, startY, endX, endY)) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\tbreak;\n\t\tcase blackbishop:\n\t\t\tif (!checkBlackBishop(startX, startY, endX, endY)) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\tbreak;\n\t\tcase blackknight:\n\t\t\tif (!checkBlackKnight(startX, startY, endX, endY)) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\tbreak;\n\t\tcase blackrook:\n\t\t\tif (!checkBlackRook(startX, startY, endX, endY)) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\tif (startX == 7 && startY == 0) {\n\t\t\t\tleftBlackRookHasntMoved = false;\n\t\t\t}\n\t\t\tif (startX == 7 && startY == 7) {\n\t\t\t\trightBlackRookHasntMoved = false;\n\t\t\t}\n\t\t\tbreak;\n\t\tcase blackpawn:\n\t\t\tif (!checkBlackPawn(startX, startY, endX, endY)) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\tif (startX - endX == 1 && Math.abs(startY - endY) == 1\n\t\t\t\t\t&& chessPieces[endX][endY] == ChessPiece.empty\n\t\t\t\t\t&& EPLastMove && endY == pawnEPPosition && endX == 2) {\n\t\t\t\tchessPieces[endX + 1][endY] = ChessPiece.empty;\n\t\t\t}\n\t\t\tpawnEPPosition = -1;\n\t\t\tEPLastMove = false;\n\t\t\tif (startX == 6 && endX == 4) {\n\t\t\t\tpawnEPPosition = startY;\n\t\t\t\tEPLastMove = true;\n\t\t\t}\n\t\t\tbreak;\n\t\tdefault:\n\t\t\treturn false;\n\t\t}\n\t\tchessPieces[endX][endY] = chessPieces[startX][startY];\n\t\tchessPieces[startX][startY] = ChessPiece.empty;\n\t\treturn true;\n\t}", "title": "" }, { "docid": "8ccb513fbd2bce4e89da557aadd35d02", "score": "0.6186782", "text": "public void applyMove(Move move) {\n // An invalidMoveException can be thrown if applying that move would mean to place pieces on an illegal position.\n try {\n moveCounter++;\n // If there's already a winner, the move won't be applied\n if (gipfBoardState.players.winner() != null) return;\n\n /*\n * Prepare for creating a new child GipfBoardState. The pieceMap and playersInGame objects of the current\n * gipfBoardState are unmodifiable, so we have to create modifiable copies.\n * If the move turns out to be legal, a new child GipfBoardState will be generated, based on the modified\n * copies of the PieceMap and the PlayersInGame objects.\n */\n // The piece map returned by getPieceMap() is unmodifiable, so it has to be converted to a new (hash) map\n // the newPieceMap can be modified, after that a new GipfBoardState can be generated.\n Map<Position, Piece> newPieceMap = new HashMap<>(gipfBoardState.getPieceMap());\n\n // The same is true for the PlayersInGame object. It is unmodifiable, so a new instance has to be created\n // for the new board state.\n PlayersInGame newPlayers = new PlayersInGame(gipfBoardState.players);\n\n // If the current player has enough pieces left in the reserve to perform the move (1 for a normal move, 2 for\n // a Gipf move.)\n if (newPlayers.current().reserve >= move.addedPiece.getPieceValue()) {\n /*\n * Move the piece\n */\n // Each move adds a new piece to the board\n newPieceMap.put(move.startPos, move.addedPiece);\n\n // Move it into the direction determined by the move\n movePiecesTowards(newPieceMap, move.startPos, move.direction);\n\n /*\n * Remove the lines and pieces that can be removed from the board\n */\n // Create an object that keeps track of which piece is taken by whom. An EnumMap instead of a HashMap is\n // used, because all keys correspond with values from the PieceColor enum.\n Map<PieceColor, Set<Line.Segment>> linesTakenBy = new EnumMap<>(PieceColor.class);\n linesTakenBy.put(WHITE, new HashSet<>());\n linesTakenBy.put(BLACK, new HashSet<>());\n\n // Create an object that keeps track of which individual pieces are taken by whom.\n // A HashMap is used because it can handle null keys, in contrast with EnumMaps.\n Map<PieceColor, Set<Position>> piecesBackTo = new HashMap<>();\n piecesBackTo.put(WHITE, new HashSet<>());\n piecesBackTo.put(BLACK, new HashSet<>());\n piecesBackTo.put(null, new HashSet<>()); // Used for pieces that are removed from the board\n\n /*\n * Distinguish between complete and incomplete moves.\n * - Complete moves:\n * are generated by the getAllowedMoves() method and contain all information about that move,\n * including a choice for which lines or gipf pieces will be removed.\n * - Incomplete moves:\n * are performed by human players. These moves don't contain the information of which pieces are\n * removed. This means that there may be user interaction required if the player must choose between\n * multiple lines or gipf pieces that can be removed.\n */\n if (move.isCompleteMove) {\n // Complete moves are the easiest to handle, the positions of pieces that are removed are already\n // determined.\n // This means that we only have to read the values for the pieces that are returned to each player\n // into the piecesBackTo map.\n piecesBackTo.get(WHITE).addAll(move.piecesToWhite);\n piecesBackTo.get(BLACK).addAll(move.piecesToBlack);\n piecesBackTo.get(null).addAll(move.piecesRemoved);\n } else {\n // Now we have incomplete moves. This means that we have to remove the pieces that are required to\n // be removed. If the player must choose between different pieces / lines, the removeLines method\n // will ask the player to make a choice.\n\n // Get the lines that are taken by the current player (retrieved from linesTakenBy) and store them\n // in the piecesBackTo map. The opponent's pieces are stored in piecesBackTo.get(null), because they\n // are removed from the board.\n removeLines(newPieceMap, newPlayers.current().pieceColor, linesTakenBy, piecesBackTo);\n //linesTakenBy.get(newPlayers.current().pieceColor).addAll(getRemovableLineSegments(newPieceMap, newPlayers.current().pieceColor));\n\n // Get the lines that are taken by the opponent (retrieved from the linesTakenBy map), and store\n // them in the piecesBackTo map. The current player's pieces are stored in piecesBackTO.get(null),\n // because they are removed from the board.\n PieceColor opponentColor = newPlayers.current().pieceColor == WHITE ? BLACK : WHITE;\n removeLines(newPieceMap, opponentColor, linesTakenBy, piecesBackTo);\n //linesTakenBy.get(opponentColor).addAll(getRemovableLineSegments(newPieceMap, opponentColor));\n }\n gameLogger.log(move.toString());\n\n // Each value in the piecesBackTo map is a set, and each element (position) of the sets of all values\n // is removed from the pieceMap.\n // The number of the returned pieces for each player are added to their reserve.\n for (Map.Entry<PieceColor, Set<Position>> removedPieces : piecesBackTo.entrySet()) {\n if (removedPieces.getKey() != null) {\n // Calculate the sum for the pieces returned to this player. Normal pieces have a value of 1,\n // gipf pieces a value of 2 determined in Piece.getPieceValue().\n int returnedPiecesSum = removedPieces.getValue().stream()\n .mapToInt(position -> {\n if (newPieceMap.containsKey(position))\n return newPieceMap.get(position).getPieceValue();\n else\n return 1;\n }).sum();\n\n newPlayers.get(removedPieces.getKey()).reserve += returnedPiecesSum;\n gameLogger.log(removedPieces.getKey() + \" retrieved \" + returnedPiecesSum + \" pieces\");\n }\n\n // The pieces are not earlier removed from the board, because the returnedPiecesSum variable can\n // only be set if all the pieces are still on the board.\n removePiecesFromPieceMap(newPieceMap, removedPieces.getValue());\n }\n\n /*\n * Set the properties for the player, based on the move\n */\n if (move.addedPiece.getPieceType() == PieceType.GIPF) {\n newPlayers.current().hasPlacedGipfPieces = true;\n }\n if (!newPlayers.current().isPlacingGipfPieces) {\n newPlayers.current().hasPlacedNormalPieces = true;\n }\n\n // Update the current player's reserve for the last added piece\n newPlayers.current().reserve -= move.addedPiece.getPieceValue();\n\n /*\n * Check whether it is game over\n */\n // If we create a new GipfBoardState based on the calculated properties, will there be a game over situation?\n if (getGameOverState(new GipfBoardState(null, newPieceMap, newPlayers))) {\n // If the current player causes a game over situation, the other player (updateCurrent()), will be\n // the winner of the game.\n newPlayers = newPlayers.updateCurrent().makeCurrentPlayerWinner();\n gameLogger.log(\"Game over! \" + newPlayers.winner().pieceColor + \" won!\");\n\n if (moveCounter != 1) {\n if (SettingsSingleton.getInstance().showExperimentOutput) {\n String moveCountString = Integer.toString(moveCounter);\n String durationString = Long.toString(Duration.between(gameStartInstant, Instant.now()).toMillis());\n String winnerString = newPlayers.winner().pieceColor.toString();\n String whiteAlgorithm = whitePlayer.getClass().getSimpleName();\n String blackAlgorithm = blackPlayer.getClass().getSimpleName();\n\n ExperimentLogger.get().log(\n whiteAlgorithm + \"; \" +\n blackAlgorithm + \"; \" +\n moveCountString + \"; \" +\n durationString + \"; \" +\n winnerString\n );\n }\n }\n }\n\n\n // We don't need to update the current player if the game has ended\n if (newPlayers.winner() == null) {\n newPlayers = newPlayers.updateCurrent();\n }\n\n // Create a new gipfBoardState, based on the calculated PieceMap and PlayersInGame objects.\n GipfBoardState newGipfBoardState = new GipfBoardState(gipfBoardState, newPieceMap, newPlayers);\n boardHistory.add(gipfBoardState);\n this.gipfBoardState = newGipfBoardState;\n } else {\n gameLogger.log(\"No pieces left\");\n }\n\n // Recalculate the properties of this gipfBoardState\n gipfBoardState.boardStateProperties.updateBoardState();\n\n } catch (InvalidMoveException e) {\n System.out.println(\"Move not applied\");\n }\n }", "title": "" }, { "docid": "a120d35c99066679dd572056982ae5c2", "score": "0.61864555", "text": "@Test\n public void whenMoveFiveFiveToFourFourSixThenTrue() {\n Board board = new Board();\n Cell start = new Cell(5, 5);\n Cell finish = new Cell(4, 6);\n board.setFigure(new Queen(start), start);\n boolean methodReturns = false;\n try {\n methodReturns = board.move(start, finish);\n } catch (ChessException e) {\n e.printStackTrace();\n }\n boolean expected = true;\n assertThat(methodReturns, is(expected));\n }", "title": "" }, { "docid": "bf0eda2e0256430df7d97cab7b2ce434", "score": "0.6184002", "text": "@Test\n public void whenMoveOneOneToFourFourThenTrue() {\n Board board = new Board();\n Cell start = new Cell(1, 1);\n Cell finish = new Cell(4, 4);\n board.setFigure(new Queen(start), start);\n boolean methodReturns = false;\n try {\n methodReturns = board.move(start, finish);\n } catch (ChessException e) {\n e.printStackTrace();\n }\n boolean expected = true;\n assertThat(methodReturns, is(expected));\n }", "title": "" }, { "docid": "5da621213bfb393f5944d8d32198ed87", "score": "0.6168143", "text": "@Test\n public void testMoveDownAndLeft () {\n assertTrue(bishop.canMoveTo(3,3));\n assertFalse(rook.canMoveTo(3,3));\n }", "title": "" }, { "docid": "0211bd51c7485f9ddd370a4cd514b33b", "score": "0.616629", "text": "@Test\n public void whenMoveFiveFiveToFourOneOneThenTrue() {\n Board board = new Board();\n Cell start = new Cell(5, 5);\n Cell finish = new Cell(1, 1);\n board.setFigure(new Queen(start), start);\n boolean methodReturns = false;\n try {\n methodReturns = board.move(start, finish);\n } catch (ChessException e) {\n e.printStackTrace();\n }\n boolean expected = true;\n assertThat(methodReturns, is(expected));\n }", "title": "" }, { "docid": "3576a2793af42a7b18708371a94e3bd1", "score": "0.6164595", "text": "@Test\n public void testMoveUpAndRight () {\n assertTrue(bishop.canMoveTo(5,5));\n assertFalse(rook.canMoveTo(5,5));\n }", "title": "" }, { "docid": "6d457f65665598f8a8d818a1aab90486", "score": "0.61593246", "text": "private boolean isValidMove(Point from, int x, int y)\n\t{\t\n Point to = new Point(x,y);\n \n\t\tif (to.equals(moveFrom))\n {\n\t\t\t//Deselecting squares if a piece is chosen and then deselected\n gameBoard.unSelect((int)from.getY(), (int)from.getX());\n deselectUnused(moveFrom, to);\n \n pieceSelect = true;\n return false;\n }\n\t\t\n\t\tboolean valid = engine.moveValidation(from, to);\n\t\tif (!valid)\n\t\t window.statusUpdate(\"Invalid move\", INVALIDMOVE);\n\t\treturn valid; \n\t}", "title": "" }, { "docid": "c15838a8202ab4a613f1aea8eb0a8f50", "score": "0.61510515", "text": "public void check()\n {\n //compute possible moves for red checkers\n if(squares[x][y].getIcon().equals(redChip))\n { \n //This is an edge piece, the farthest right on the board\n //it will only calculate two possible movements \n if(squares[x][y].getB() == 7)\n {\n //Calculating possible movements\n new1 = squares[squares[x][y].getA()-1][squares[x][y].getB()];\n new2 = squares[squares[x][y].getA()-1][squares[x][y].getB()-1];\n //The piece can NEVER move forward onto a spot if there is another chip\n //this ensures that it will not be highlighted if that is the case\n if(new1.getIcon() == null)\n {\n squares[squares[x][y].getA()-1][squares[x][y].getB()].setBackground(Color.YELLOW);\n }\n //Hight the pieces diagonally forward only when these are opponent's pieces.\n if(new2.getIcon() != redChip)\n {\n squares[squares[x][y].getA()-1][squares[x][y].getB()-1].setBackground(Color.YELLOW);\n }\n }\n //This is an edge piece, the farthest left on the board\n //it will only calculate two possible movements \n else if(squares[x][y].getB() == 0)\n {\n //Calculating possible movements\n new1 = squares[squares[x][y].getA()-1][squares[x][y].getB()];\n new3 = squares[squares[x][y].getA()-1][squares[x][y].getB()+1]; \n //The piece can NEVER move forward onto a spot if there is another chip\n //this ensures that it will not be highlighted if that is the case \n if(new1.getIcon() == null)\n {\n squares[squares[x][y].getA()-1][squares[x][y].getB()].setBackground(Color.YELLOW);\n }\n //Hight the pieces diagonally forward only when these are opponent's pieces.\n if(new3.getIcon() != redChip)\n {\n squares[squares[x][y].getA()-1][squares[x][y].getB()+1].setBackground(Color.YELLOW);\n }\n }\n //if it is not an edge piece, then there can be up to 3 possible moves\n //this will calculate them\n else\n { \n //Calculating possible movements \n new1 = squares[squares[x][y].getA()-1][squares[x][y].getB()];\n new2 = squares[squares[x][y].getA()-1][squares[x][y].getB()-1];\n new3 = squares[squares[x][y].getA()-1][squares[x][y].getB()+1];\n //The piece can NEVER move forward onto a spot if there is another chip\n //this ensures that it will not be highlighted if that is the case\n if(new1.getIcon() == null)\n {\n squares[squares[x][y].getA()-1][squares[x][y].getB()].setBackground(Color.YELLOW);\n }\n if(new2.getIcon() != redChip)\n {\n squares[squares[x][y].getA()-1][squares[x][y].getB()-1].setBackground(Color.YELLOW);\n }\n if(new3.getIcon() != redChip)\n {\n squares[squares[x][y].getA()-1][squares[x][y].getB()+1].setBackground(Color.YELLOW);\n }\n }\n }\n //compute possible moves for black checkers\n else if(squares[x][y].getIcon().equals(blackChip))\n { \n //This is an edge piece, the farthest right on the board\n //it will only calculate two possible movements\n if(squares[x][y].getB() == 7)\n { \n //Calculating possible movements\n new1 = squares[squares[x][y].getA()+1][squares[x][y].getB()];\n new2 = squares[squares[x][y].getA()+1][squares[x][y].getB()-1];\n //The piece can NEVER move forward onto a spot if there is another chip\n //this ensures that it will not be highlighted if that is the case\n if(new1.getIcon() == null)\n {\n squares[squares[x][y].getA()+1][squares[x][y].getB()].setBackground(Color.YELLOW);\n }\n //Hight the pieces diagonally forward only when these are opponent's pieces.\n if(new2.getIcon() != blackChip)\n {\n squares[squares[x][y].getA()+1][squares[x][y].getB()-1].setBackground(Color.YELLOW);\n }\n }\n //This is an edge piece, the farthest left on the board\n //it will only calculate two possible movements\n else if(squares[x][y].getB() == 0)\n {\n //Calculating possible movements\n new1 = squares[squares[x][y].getA()+1][squares[x][y].getB()];\n new3 = squares[squares[x][y].getA()+1][squares[x][y].getB()+1];\n //The piece can NEVER move forward onto a spot if there is another chip\n //this ensures that it will not be highlighted if that is the case\n if(new1.getIcon() == null)\n {\n squares[squares[x][y].getA()+1][squares[x][y].getB()].setBackground(Color.YELLOW);\n }\n //Hight the pieces diagonally forward only when these are opponent's pieces.\n if(new3.getIcon() != blackChip)\n {\n squares[squares[x][y].getA()+1][squares[x][y].getB()+1].setBackground(Color.YELLOW);\n }\n }\n else\n {\n //Calculating possible movements\n new1 = squares[squares[x][y].getA()+1][squares[x][y].getB()];\n new2 = squares[squares[x][y].getA()+1][squares[x][y].getB()-1];\n new3 = squares[squares[x][y].getA()+1][squares[x][y].getB()+1];\n //The piece can NEVER move forward onto a spot if there is another chip\n //this ensures that it will not be highlighted if that is the case\n if(new1.getIcon() == null)\n {\n squares[squares[x][y].getA()+1][squares[x][y].getB()].setBackground(Color.YELLOW);\n }\n if(new2.getIcon() != blackChip)\n {\n squares[squares[x][y].getA()+1][squares[x][y].getB()-1].setBackground(Color.YELLOW);\n }\n if(new3.getIcon() != blackChip)\n {\n squares[squares[x][y].getA()+1][squares[x][y].getB()+1].setBackground(Color.YELLOW);\n }\n }\n } //END calculating moves \n }", "title": "" }, { "docid": "4542f2ab6728473a2e1dcff2108a365e", "score": "0.6149841", "text": "private void oneLineDown()\n {\n if (!tryMove(curPiece, curX, curY, curX, curY + 1))\n {\n newPiece(); \n }\n else\n {\n tryMove(curPiece, curX, curY, curX, curY);\n }\n }", "title": "" }, { "docid": "9a7bfae291f718c994ce7fd209a5f1fb", "score": "0.6143485", "text": "public int tryCapture(Piece piece, int newX, int newY){\t\t\t\n\t\tPiece destination = pieceAt(newX, newY);\t\n\t\tif(destination instanceof King)\n\t\t\treturn 0;\n\t\tif(piece.getPlayer() != destination.getPlayer()){\t\n\t\t\tdestination.setTaken(1);\n\t\t\tdestination.setCoordinates(-1, -1);\n\t\t\tsquares[piece.getX() - 1][piece.getY() - 1].setTaken(0);\n\t\t\tpiece.setCoordinates(newX, newY);\t\t\t\n\t\t\treturn 1;\n\t\t}\n\t\treturn 0;\n\t}", "title": "" }, { "docid": "b92e081db474a664b366a25f2c10423b", "score": "0.61431175", "text": "public void makeMove()\r\n\t{\r\n\t\tpiece.setX(X);\r\n\t\tpiece.setY(Y);\r\n\t\tgameBoard.setPiece(piece, piece.getX(), piece.getY());\r\n\t\tgameBoard.releaseTile(pX, pY);\r\n\t\tif (capturePiece != null) {\r\n\t\t\tgameBoard.getTeams(capturePiece.getAlliance()).remove(capturePiece);\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "6c49230e7482b468bbb74c59d59792a8", "score": "0.6138964", "text": "public void makeMove(Board b, int x1, int y1, int x2, int y2) {\n\t\tif(Math.abs(x1 - x2) == 2) { // Castling\n\t\t\tb.board[x2][y2] = b.board[x1][y1];\n\t\t\tb.board[x1][y1] = null;\n\t\t\t\n\t\t\tif(x1 > x2) { // - left rook\n\t\t\t\tb.board[x2+1][y1] = b.board[0][y1];\n\t\t\t\tb.board[0][y1] = null;\n\t\t\t\t\n\t\t\t\tb.board[x2+1][y1].hasMoved = true;\n\t\t\t} else { // (x1 < x2) - right rook\n\t\t\t\tb.board[x2-1][y1] = b.board[7][y1];\n\t\t\t\tb.board[7][y1] = null;\n\t\t\t\t\n\t\t\t\tb.board[x2-1][y1].hasMoved = true;\n\t\t\t}\n\t\t\t\n\t\t\thasMoved = true;\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tif(b.board[x2][y2] != null) { // Capturing\n\t\t\tif(color == 'w')\n\t\t\t\tb.black.kill(b.board[x2][y2]);\n\t\t\t\n\t\t\tif(color == 'b')\n\t\t\t\tb.white.kill(b.board[x2][y2]);\n\t\t}\n\t\t\n\t\t// Move Piece\n\t\tb.board[x2][y2] = b.board[x1][y1];\n\t\tb.board[x1][y1] = null;\n\t\t\n\t\thasMoved = true;\n\t\tsetXY(x2, y2);\n\t}", "title": "" }, { "docid": "25220334b44190cb83c6485e77147e91", "score": "0.61382675", "text": "@Test\n public void whenMoveFourFourToZeroFourThenTrue() {\n Board board = new Board();\n Cell start = new Cell(4, 4);\n Cell finish = new Cell(0, 4);\n board.setFigure(new Queen(start), start);\n boolean methodReturns = false;\n try {\n methodReturns = board.move(start, finish);\n } catch (ChessException e) {\n e.printStackTrace();\n }\n boolean expected = true;\n assertThat(methodReturns, is(expected));\n }", "title": "" }, { "docid": "18cf7661bea7c26712eec6d97b82790f", "score": "0.6133117", "text": "@Test\n\tpublic void testFakeBishopCaptureOnePieceFail() {\n\t\t\n\t\tMoveStrategy bishopStrategy = stratFac.getStrategy(ChessPieceType.BISHOP, \n\t\t\t\tnull, board);\n\t\tboard.setPiece( new ChessPiece( ChessPieceType.BISHOP, ChessColor.WHITE ),\n\t\t\t\t'd', 5);\n\t\tboard.setPiece( new ChessPiece( ChessPieceType.KING, ChessColor.BLACK ),\n\t\t\t\t'f', 3);\n\t\tassertFalse( bishopStrategy.canCapture(board, 'f', 3, 'd', 5) );\n\t}", "title": "" }, { "docid": "454c98ec34591ebcfa9b3ccf1906ef6a", "score": "0.61249655", "text": "public boolean randomMove() {\n\t\tif(currentTeam == 'w'){\n\t\t\tif(stalemate(whiteKing))\n\t\t\t\treturn false;\n\t\t}else{\n\t\t\tif(stalemate(blackKing))\n\t\t\t\treturn false;\n\t\t}\n\n\t\tRandom random = new Random();\n\t\tString startKey, endKey;\n\t\tChessPiece pieceToMove;\n\t\tArrayList<String> listOfKeys;\n\t\tArrayList<String> keysToMoveTo;\n\t\tboolean moved = false;\n\n\t\t// populate existing keys list\n\t\tlistOfKeys = new ArrayList<String>(pieces.keySet());\n\n\t\twhile(!listOfKeys.isEmpty()) {\n\t\t\tstartKey = listOfKeys.get(random.nextInt(listOfKeys.size()));\n\t\t\tpieceToMove = pieces.get(startKey);\n\t\t\tlistOfKeys.remove(startKey);\n\n\t\t\twhile ((pieceToMove.getTeam() != currentTeam) && !listOfKeys.isEmpty()) {\n\t\t\t\tstartKey = listOfKeys.get(random.nextInt(listOfKeys.size()));\n\t\t\t\tpieceToMove = pieces.get(startKey);\n\t\t\t\tlistOfKeys.remove(startKey);\n\t\t\t}\n\n\t\t\t// populate column and row lists\n\t\t\tkeysToMoveTo = new ArrayList<String>(64);\n\t\t\tfor(char col = 'a'; col <= 'h'; col++)\n\t\t\t\tfor(int row = 1; row <= 8; row++)\n\t\t\t\t\tkeysToMoveTo.add(\"\" + col + row);\n\n\t\t\tendKey = keysToMoveTo.get(random.nextInt(keysToMoveTo.size()));\n\t\t\tkeysToMoveTo.remove(endKey);\n\n\t\t\tif (move(startKey, endKey))\n\t\t\t\tmoved = true;\n\n\t\t\twhile (!moved && !keysToMoveTo.isEmpty()) {\n\t\t\t\tendKey = keysToMoveTo.get(random.nextInt(keysToMoveTo.size()));\n\t\t\t\tkeysToMoveTo.remove(endKey);\n\n\t\t\t\tif (move(startKey, endKey))\n\t\t\t\t\tmoved = true;\n\t\t\t}\n\n\t\t\tif(moved)\n\t\t\t\tbreak;\n\t\t}\n\n\t\tif(moved)\n\t\t\treturn true;\n\t\telse\n\t\t\treturn false;\n\t}", "title": "" }, { "docid": "de6e65c7fa1db635f6c2eb01b6ece1be", "score": "0.6122867", "text": "@Test\n public void whenMoveFourFourToEightFourThenTrue() {\n Board board = new Board();\n Cell start = new Cell(4, 4);\n Cell finish = new Cell(7, 4);\n board.setFigure(new Queen(start), start);\n boolean methodReturns = false;\n try {\n methodReturns = board.move(start, finish);\n } catch (ChessException e) {\n e.printStackTrace();\n }\n boolean expected = true;\n assertThat(methodReturns, is(expected));\n }", "title": "" }, { "docid": "130ec1e7887ecbf48f50e6e67cd9bade", "score": "0.6108746", "text": "@Test\n public void whenMoveFiveFiveToSevenThreeThenTrue() {\n Board board = new Board();\n Cell start = new Cell(5, 5);\n Cell finish = new Cell(7, 3);\n board.setFigure(new Queen(start), start);\n boolean methodReturns = false;\n try {\n methodReturns = board.move(start, finish);\n } catch (ChessException e) {\n e.printStackTrace();\n }\n boolean expected = true;\n assertThat(methodReturns, is(expected));\n }", "title": "" }, { "docid": "ee5e845baa98730b71238700ee7f1f2e", "score": "0.61083406", "text": "IList<Target> removePiece() {\r\n IList<Target> tempPieces = this.pieces;\r\n int counter = 0;\r\n\r\n for (Target item : tempPieces) {\r\n if ((((this.player.getX() == item.getX()) \r\n && (this.player.getY() == item.getY())) \r\n || ((this.numPlayers == 2)\r\n && (this.player2.getX() == item.getX()) \r\n && (this.player2.getY() == item.getY())))\r\n && !(item.finalTarget())) {\r\n\r\n tempPieces = tempPieces.remove(counter);\r\n\r\n } \r\n \r\n else if ((this.player.getX() == item.getX()) \r\n && (this.player.getY() == item.getY())\r\n && (this.numPlayers == 2) \r\n && (this.player2.getX() == item.getX())\r\n && (this.player2.getY() == item.getY()) \r\n && (tempPieces.length() == 1)) {\r\n tempPieces = tempPieces.remove(counter);\r\n } \r\n \r\n else if ((this.player.getX() == item.getX()) \r\n && (this.player.getY() == item.getY())\r\n && (tempPieces.length() == 1) \r\n && (this.numPlayers == 1)) {\r\n tempPieces = tempPieces.remove(counter);\r\n }\r\n counter += 1;\r\n }\r\n\r\n return tempPieces;\r\n }", "title": "" }, { "docid": "229b31d64c6ff20574ac2ae252a689ee", "score": "0.61080605", "text": "public static Piece[][] movePiece(int startRow, int startColumn, int endRow, int endColumn, Piece[][] board) {\n\n // en passant movement\n if (board[startRow][startColumn] instanceof Pawn) {\n\n // white rightward\n if (endRow == startRow + 1 && endColumn == startColumn + 1) {\n if (board[startRow][startColumn + 1] instanceof Pawn) {\n if (board[startRow][startColumn + 1].canEnPassant && board[startRow][startColumn + 1].color != board[startRow][startColumn].color) {\n board[startRow][startColumn + 1] = null;\n }\n }\n }\n\n // white leftward\n if (endRow == startRow + 1 && endColumn == startColumn - 1) {\n if (board[startRow][startColumn - 1] instanceof Pawn) {\n if (board[startRow][startColumn - 1].canEnPassant && board[startRow][startColumn - 1].color != board[startRow][startColumn].color) {\n board[startRow][startColumn - 1] = null;\n }\n }\n }\n\n // black rightward\n if (endRow == startRow - 1 && endColumn == startColumn + 1) {\n if (board[startRow][startColumn + 1] instanceof Pawn) {\n if (board[startRow][startColumn + 1].canEnPassant && board[startRow][startColumn + 1].color != board[startRow][startColumn].color) {\n board[startRow][startColumn + 1] = null;\n }\n }\n }\n\n // black leftward\n if (endRow == startRow - 1 && endColumn == startColumn - 1) {\n if (board[startRow][startColumn - 1] instanceof Pawn) {\n if (board[startRow][startColumn - 1].canEnPassant && board[startRow][startColumn - 1].color != board[startRow][startColumn].color) {\n board[startRow][startColumn - 1] = null;\n }\n }\n }\n }\n\n // castling movement\n if (board[startRow][startColumn] instanceof King) {\n if (endRow == 0) {\n if (endColumn == 2) {\n board[0][2] = new King (\"white\", true);\n board[0][3] = new Rook(\"white\", true);\n board[startRow][startColumn] = null;\n board[0][0] = null;\n return board;\n }\n else if (endColumn == 6) {\n board[0][6] = new King (\"white\", true);\n board[0][5] = new Rook(\"white\", true);\n board[startRow][startColumn] = null;\n board[0][7] = null;\n return board;\n }\n }\n\n if (endRow == 7) {\n if (endColumn == 2) {\n board[7][2] = new King (\"black\", true);\n board[7][3] = new Rook(\"black\", true);\n board[startRow][startColumn] = null;\n board[7][0] = null;\n return board;\n }\n else if (endColumn == 6) {\n board[7][6] = new King (\"black\", true);\n board[7][5] = new Rook(\"black\", true);\n board[startRow][startColumn] = null;\n board[7][7] = null;\n return board;\n }\n }\n }\n\n // all other movements\n if (board[startRow][startColumn] instanceof Pawn) {\n board[endRow][endColumn] = new Pawn(board[startRow][startColumn], true);\n }\n else if (board[startRow][startColumn] instanceof King) {\n board[endRow][endColumn] = new King(board[startRow][startColumn]);\n }\n else if (board[startRow][startColumn] instanceof Queen) {\n board[endRow][endColumn] = new Queen(board[startRow][startColumn]);\n }\n else if (board[startRow][startColumn] instanceof Bishop) {\n board[endRow][endColumn] = new Bishop(board[startRow][startColumn]);\n }\n else if (board[startRow][startColumn] instanceof Knight) {\n board[endRow][endColumn] = new Knight(board[startRow][startColumn]);\n }\n else if (board[startRow][startColumn] instanceof Rook) {\n board[endRow][endColumn] = new Rook(board[startRow][startColumn]);\n }\n\n board[startRow][startColumn] = null;\n return board;\n }", "title": "" }, { "docid": "7bace4327f307bd503324f6d1b684fa8", "score": "0.61078656", "text": "@Test\n\tpublic void testWhiteLeft_singleMoves() {\n\t\tBoard board = new Board();\n\n\t\tSinglePiece piece = (SinglePiece) board.getPieceAt(5, 0);\n\t\tKingPiece king = piece.promote();\n\t\tboard.setPieceAt(5, 0, king);\n\n\t\tList<Move> moves = king.getSingleMoves(board, new Position(5, 0));\n\t\tassertEquals(1, moves.size());\n\t\tMove move = moves.get(0);\n\n\t\tassertEquals(new Position(5, 0), move.getStart());\n\t\tassertEquals(new Position(4, 1), move.getEnd());\n\t}", "title": "" }, { "docid": "448ed32929e31ca51f0e242bfd936cc8", "score": "0.6107734", "text": "@Test\n\tpublic void testKingCaptureOnePieceFail() {\n\t\t\n\t\tMoveStrategy kingStrategy = stratFac.getStrategy(ChessPieceType.KING, \n\t\t\t\tnull, board);\n\t\tboard.setPiece( new ChessPiece( ChessPieceType.BISHOP, ChessColor.BLACK ),\n\t\t\t\t'd', 5);\n\t\tboard.setPiece( new ChessPiece( ChessPieceType.KING, ChessColor.BLACK ),\n\t\t\t\t'c', 5);\n\t\tassertFalse( kingStrategy.canCapture(board, 'c', 5, 'd', 5) );\n\t}", "title": "" }, { "docid": "835e3d18dd391d8b8503fb97025d69bf", "score": "0.6105646", "text": "@Test\n public void hyoMoveToOccupiedSquareDownward() {\n Board myChessBoard = new Board();\n Square currSquare = myChessBoard.board[3][3];\n Square destSquare = myChessBoard.board[5][3];\n Hyo myHyo = new Hyo(3,3,true,\"Hyo\",true); //White king\n Pawn myPawn = new Pawn(5,3,true,\"Pawn\",false, true); //Black pawn\n currSquare.piece = myHyo;\n destSquare.piece = myPawn;\n\n assertTrue((myHyo.validMovement(currSquare, destSquare, myChessBoard))); //check if it's a valid movement\n assertTrue(currSquare.canOccupy(destSquare));\n\n currSquare.occupyIt(destSquare); //occupy the destination square with the king\n\n int newXcoord = myHyo.getxCoord();\n int newYcoord = myHyo.getyCoord();\n\n assertTrue(currSquare.piece == null); //check if the king have left the original square\n assertTrue(destSquare.piece == myHyo); //check if the king is in the destination square\n assertTrue(destSquare.xCoord == newXcoord);\n assertTrue(destSquare.yCoord == newYcoord);\n assertTrue(myPawn.isAvailable() == false);\n }", "title": "" }, { "docid": "a095d4ad374416c246dc1d35493752fd", "score": "0.60969937", "text": "public void performLegalMove (AbstractPiece piece,\n int toRow, int toColumn) {\n int r1, r2, c1, c2;\n Square location = piece.location();\n r1 = location.row();\n c1 = location.column();\n piece.moveTo(new Square(toRow,toColumn));\n location = piece.location();\n r2 = location.row();\n c2 = location.column();\n assertEquals(toRow,r2);\n assertEquals(toColumn,c2);\n }", "title": "" }, { "docid": "e287d300195f22600ad99c15fc413ea2", "score": "0.60953635", "text": "private boolean stalemate(King king) {\n\t\tChessPiece piece, movingPiece;\n\t\tString startKey, endKey;\n\n\t\t// see if any pieces on the king's team can move\n\t\tfor (char col = 'a'; col <= 'h'; col++) {\n\t\t\tfor (int row = 1; row <= 8; row++) {\n\t\t\t\tstartKey = \"\" + col + row;\n\n\t\t\t\tif (pieces.containsKey(startKey)) {\n\t\t\t\t\tmovingPiece = pieces.get(startKey);\n\n\t\t\t\t\tif (movingPiece.getTeam() == king.getTeam()) {\n\t\t\t\t\t\t// loop through again to see if the piece can move without going into check\n\t\t\t\t\t\tfor (char c = 'a'; c <= 'h'; c++) {\n\t\t\t\t\t\t\tfor (int r = 1; r <= 8; r++) {\n\t\t\t\t\t\t\t\tendKey = \"\" + c + r;\n\n\t\t\t\t\t\t\t\tboolean validMove = true;\n\n\t\t\t\t\t\t\t\tif (!(movingPiece instanceof Knight)) {\n\t\t\t\t\t\t\t\t\tif (!moveInStraightLine(startKey, endKey))\n\t\t\t\t\t\t\t\t\t\tvalidMove = false;\n\n\t\t\t\t\t\t\t\t\tif (pieceInTheWay(startKey, endKey))\n\t\t\t\t\t\t\t\t\t\tvalidMove = false;\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\tif (validMove) {\n\t\t\t\t\t\t\t\t\tif (pieces.containsKey(endKey)) {\n\t\t\t\t\t\t\t\t\t\tpiece = pieces.get(endKey);\n\n\t\t\t\t\t\t\t\t\t\tif (movingPiece.move(piece)) {\n\t\t\t\t\t\t\t\t\t\t\tpieces.remove(endKey);\n\t\t\t\t\t\t\t\t\t\t\tpieces.remove(startKey);\n\t\t\t\t\t\t\t\t\t\t\tpieces.put(endKey, movingPiece);\n\n\t\t\t\t\t\t\t\t\t\t\tif (!check(king)) {\n\t\t\t\t\t\t\t\t\t\t\t\tmovingPiece.stepBack();\n\n\t\t\t\t\t\t\t\t\t\t\t\tpieces.put(startKey, movingPiece);\n\t\t\t\t\t\t\t\t\t\t\t\tpieces.put(endKey, piece);\n\n\t\t\t\t\t\t\t\t\t\t\t\treturn false;\n\t\t\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\t\t\tmovingPiece.stepBack();\n\n\t\t\t\t\t\t\t\t\t\t\t\tpieces.put(startKey, movingPiece);\n\t\t\t\t\t\t\t\t\t\t\t\tpieces.put(endKey, piece);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t} else if (movingPiece.move(endKey)) {\n\t\t\t\t\t\t\t\t\t\tpieces.remove(startKey);\n\t\t\t\t\t\t\t\t\t\tpieces.put(endKey, movingPiece);\n\n\t\t\t\t\t\t\t\t\t\tif (!check(king)) {\n\t\t\t\t\t\t\t\t\t\t\tmovingPiece.stepBack();\n\n\t\t\t\t\t\t\t\t\t\t\tpieces.remove(endKey);\n\t\t\t\t\t\t\t\t\t\t\tpieces.put(startKey, movingPiece);\n\n\t\t\t\t\t\t\t\t\t\t\treturn false;\n\t\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\t\tmovingPiece.stepBack();\n\n\t\t\t\t\t\t\t\t\t\t\tpieces.remove(endKey);\n\t\t\t\t\t\t\t\t\t\t\tpieces.put(startKey, movingPiece);\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn true;\n\t}", "title": "" }, { "docid": "aeccdb1cc2ab32173f258c4bfff5be39", "score": "0.6089616", "text": "@Test\n public void testMoveDown () {\n assertFalse(bishop.canMoveTo(3,4));\n assertTrue(rook.canMoveTo(3,4));\n }", "title": "" }, { "docid": "ce3e93d43dd7670fcf9ed4bc0fdeb8db", "score": "0.60893303", "text": "public abstract Piece holdPiece();", "title": "" } ]
5a54160f571e17d8d69d1417d37b35f1
This method was generated by MyBatis Generator. This method corresponds to the database table t_qr
[ { "docid": "03e12bc36ad1bf4822aa7d3a6cb823b9", "score": "0.0", "text": "public void or(Criteria criteria) {\r\n oredCriteria.add(criteria);\r\n }", "title": "" } ]
[ { "docid": "93d196faab2699827b75cf6e93c2fabe", "score": "0.5831237", "text": "@Select({\r\n \"select\",\r\n \"ORG_CD, BRANCH_CD, MAC_NO, CLOSE_DATE, CLOSE_TIME, GV_COM_CD, GV_TYPE, GV_OUT_CNT, \",\r\n \"UPDATE_DATE, UPDATE_UID, DEPT_CD, OFFICE_CD\",\r\n \"from OP.T_FN_NICE_CLOSE_GIFT\",\r\n \"where ORG_CD = #{orgCd,jdbcType=VARCHAR}\",\r\n \"and BRANCH_CD = #{branchCd,jdbcType=VARCHAR}\",\r\n \"and MAC_NO = #{macNo,jdbcType=VARCHAR}\",\r\n \"and CLOSE_DATE = #{closeDate,jdbcType=VARCHAR}\",\r\n \"and CLOSE_TIME = #{closeTime,jdbcType=VARCHAR}\"\r\n })\r\n @Results({\r\n @Result(column=\"ORG_CD\", property=\"orgCd\", jdbcType=JdbcType.VARCHAR, id=true),\r\n @Result(column=\"BRANCH_CD\", property=\"branchCd\", jdbcType=JdbcType.VARCHAR, id=true),\r\n @Result(column=\"MAC_NO\", property=\"macNo\", jdbcType=JdbcType.VARCHAR, id=true),\r\n @Result(column=\"CLOSE_DATE\", property=\"closeDate\", jdbcType=JdbcType.VARCHAR, id=true),\r\n @Result(column=\"CLOSE_TIME\", property=\"closeTime\", jdbcType=JdbcType.VARCHAR, id=true),\r\n @Result(column=\"GV_COM_CD\", property=\"gvComCd\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"GV_TYPE\", property=\"gvType\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"GV_OUT_CNT\", property=\"gvOutCnt\", jdbcType=JdbcType.DECIMAL),\r\n @Result(column=\"UPDATE_DATE\", property=\"updateDate\", jdbcType=JdbcType.TIMESTAMP),\r\n @Result(column=\"UPDATE_UID\", property=\"updateUid\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"DEPT_CD\", property=\"deptCd\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"OFFICE_CD\", property=\"officeCd\", jdbcType=JdbcType.VARCHAR)\r\n })\r\n TFnNiceCloseGift selectByPrimaryKey(TFnNiceCloseGiftKey key);", "title": "" }, { "docid": "f1c47a47c6f0d4f924f5165f19cbaecb", "score": "0.5519122", "text": "public static String sql_RutaXVehiculo() {\n String sql\n = \"SELECT\"\n + \" ir.PK_INFORMACION_REGISTRADORA AS IR_PK,\"\n + \" ir.FK_RUTA AS RUTA_PK,\"\n + \" ir.FECHA_INGRESO AS FECHA,\"\n + \" ir.HORA_SALIDA_BASE_SALIDA AS HORA_SALIDA,\"\n + \" time_to_sec(ir.HORA_SALIDA_BASE_SALIDA) AS HORA_SALIDA_SEC,\"\n + \" ir.NUMERO_VUELTA,\"\n + \" v.PLACA,\"\n + \" v.NUM_INTERNO AS NUMERO_INTERNO\"\n // + \" r.NOMBRE AS NOMBRE_RUTA\"\n + \" FROM tbl_informacion_registradora AS ir\"\n // + \" INNER JOIN tbl_ruta AS r ON\"\n // + \" ir.FK_RUTA = r.PK_RUTA AND r.ESTADO = 1\"\n + \" INNER JOIN tbl_vehiculo AS v ON\"\n + \" v.PK_VEHICULO = ir.FK_VEHICULO AND v.ESTADO = 1\"\n + \" WHERE ir.FECHA_INGRESO = ? AND ir.FK_VEHICULO = ? AND\"\n + \" ir.FK_RUTA IS NOT NULL\";\n\n return sql;\n }", "title": "" }, { "docid": "7959e2b99f95079f88fd99e6ff9127f2", "score": "0.55098116", "text": "@Test\n public void testQuery() throws Exception {\n DataSource dataSource = JdbcUtilsV2.getDataSource();\n QR<Student> qr = new QR<Student>(dataSource);\n String sql = \"select * from student where sname=?\";\n //写一个内部类\n RsHandler<Student> rsHandler = new RsHandler<Student>() {\n @Override\n public Student handle(ResultSet resultSet) {\n try {\n if (!resultSet.next()) {\n return null;\n }\n int sid = resultSet.getInt(\"sid\");\n String sname = resultSet.getString(\"sname\");\n Student student = new Student();\n student.setSid(sid);\n student.setSname(sname);\n return student;\n } catch (SQLException e) {\n throw new RuntimeException(e);\n }\n }\n };\n Student student = qr.query(sql, rsHandler, \"刘德华\");\n System.out.println(student.toString());\n }", "title": "" }, { "docid": "01ef6a7adb74a130371849ef832cbed0", "score": "0.54847664", "text": "@Override\n\tpublic String tableName() {\n\t\treturn \" t_qxsecond \";\n\t}", "title": "" }, { "docid": "f149b465552c661c48d5a9428f2edd11", "score": "0.5359122", "text": "public static String sql_ProduccionXRuta() {\n String sql\n = \"SELECT\"\n + \" v.PLACA AS PLACA,\"\n + \" v.NUM_INTERNO AS NUMERO_INTERNO,\"\n + \" count(ir.NUMERO_VUELTA) AS CANTIDAD_VUELTAS,\"\n + \" sum(ir.NUM_LLEGADA - ir.NUMERACION_BASE_SALIDA) AS CANTIDAD_PASAJEROS,\"\n + \" avg(ir.NUM_LLEGADA - ir.NUMERACION_BASE_SALIDA) AS PROMEDIO_PASAJEROS,\"\n + \" ir.FECHA_INGRESO AS FECHA_INGRESO\"\n + \" FROM tbl_informacion_registradora AS ir\"\n + \" INNER JOIN tbl_vehiculo AS v ON\"\n + \" ir.FK_VEHICULO = v.PK_VEHICULO\"\n + \" WHERE ir.FECHA_INGRESO BETWEEN ? AND ? AND\"\n + \" ir.FK_RUTA = ?\"\n + \" GROUP BY ir.FECHA_INGRESO, v.PLACA\";\n return sql;\n }", "title": "" }, { "docid": "cd3bb577cace7aa221c318a55f12d7ae", "score": "0.5339947", "text": "public interface UsrApplnQueSopExclusnMapper {\n\n\t/**\n\t *This method is used to get User Applcation Queue Sop Exclusion details.\n\t * @return list of User Applcation Queue Sop Exclusion details\n\t*/\n\t@Select(\"SELECT usrAppQSopExclsn.appln_id as 'usrApplnQueSopExclsnApplicationId',usrAppQSopExclsn.que_id as 'usrApplnQueSopExclsnQueueId',usrAppQSopExclsn.usr_id as 'usrApplnQueSopExclsnUsrId',usrAppQSopExclsn.sop_id as 'usrApplnQueSopExclsnSopId',usrAppQSopExclsn.delete_flag as 'usrApplnQueSopExclsnDeleteFlag',\"\n\t\t\t+ \"usrAppQSopExclsn.created_by as 'usrApplnQueSopExclsnCreatedBy',usrAppQSopExclsn.modified_by as 'usrApplnQueSopExclsnModifiedBy',\"\n\t\t\t+ \"usrAppQSopExclsn.created_date as 'usrApplnQueSopExclsnCreatedDate',DATE_FORMAT(usrAppQSopExclsn.created_date,'%d %b %Y %T') AS 'strUsrApplnQueSopExclsnCreatedDate',\"\n\t\t\t+ \"usrAppQSopExclsn.modified_date as 'usrApplnQueSopExclsnModifiedDate',DATE_FORMAT(usrAppQSopExclsn.modified_date,'%d %b %Y %T') AS 'strUsrApplnQueSopExclsnModifiedDate',\"\n\t\t\t+ \"usrAppQSopExclsn.res_attribute1 as 'usrApplnQueSopExclsnResAttribute1',usrAppQSopExclsn.res_attribute2 as 'usrApplnQueSopExclsnResAttribute2',\"\n\t\t\t+ \"usrAppQSopExclsn.res_attribute3 as 'usrApplnQueSopExclsnResAttribute3',usrAppQSopExclsn.res_attribute4 as 'usrApplnQueSopExclsnResAttribute4',\"\n\t\t\t+ \"usrAppQSopExclsn.res_attribute5 as 'usrApplnQueSopExclsnResAttribute5' FROM scmn_usr_appln_que_sop_exclson usrAppQSopExclsn \")\n\tList<UsrApplnQueSopExclusn> getCompleteUserApplicationQueueSopExclusionList();\n\t\n\t@Select(\"SELECT sopDtls.sop_id AS sopId, sopDtls.sop_name AS sopName, sopDtls.sop_desc AS sopDesc,sopDtls.delete_flag AS deleteFlag,sopDtls.created_by AS createdBy,\"\n\t\t\t+\" sopDtls.modified_by AS modifiedBy,sopDtls.created_date AS createdDate,sopDtls.modified_date AS modifiedDate,sopDtls.res_attribute1 AS resAttribute1,\"\n\t\t\t+\" sopDtls.res_attribute2 AS resAttribute2,sopDtls.res_attribute3 AS resAttribute3,sopDtls.res_attribute4 AS resAttribute4,sopDtls.res_attribute5 AS resAttribute5\"\n\t\t\t+\" FROM scmn_usr_appln_que_sop_exclson usrAppQueSopLnk,scmn_application_dtls appDtls,scmn_queue_dtls queDtls,scmn_user_dtls userDtls ,scmn_sop_dtls sopDtls\"\n\t\t +\" WHERE userDtls.usr_id = #{0} AND appDtls.appln_name = #{1} AND queDtls.que_name = #{2}\"\n\t\t\t+\" AND usrAppQueSopLnk.appln_id=appDtls.appln_id AND usrAppQueSopLnk.que_id = queDtls.que_id AND sopDtls.sop_id=usrAppQueSopLnk.sop_id AND queDtls.delete_flag ='0' AND sopDtls.delete_flag = '0' AND usrAppQueSopLnk.delete_flag = '0' AND usrAppQueSopLnk.usr_id =userDtls.usr_id \")\n\n\tList<SopDetails> getsopListNotAccessByUsr(long usrId, String incdntAppName,String incdntAssgnmntGrp);\n}", "title": "" }, { "docid": "0c0f814a7840bd867070f2f6fec58d76", "score": "0.5333216", "text": "@Select(\"SELECT usrAppQSopExclsn.appln_id as 'usrApplnQueSopExclsnApplicationId',usrAppQSopExclsn.que_id as 'usrApplnQueSopExclsnQueueId',usrAppQSopExclsn.usr_id as 'usrApplnQueSopExclsnUsrId',usrAppQSopExclsn.sop_id as 'usrApplnQueSopExclsnSopId',usrAppQSopExclsn.delete_flag as 'usrApplnQueSopExclsnDeleteFlag',\"\n\t\t\t+ \"usrAppQSopExclsn.created_by as 'usrApplnQueSopExclsnCreatedBy',usrAppQSopExclsn.modified_by as 'usrApplnQueSopExclsnModifiedBy',\"\n\t\t\t+ \"usrAppQSopExclsn.created_date as 'usrApplnQueSopExclsnCreatedDate',DATE_FORMAT(usrAppQSopExclsn.created_date,'%d %b %Y %T') AS 'strUsrApplnQueSopExclsnCreatedDate',\"\n\t\t\t+ \"usrAppQSopExclsn.modified_date as 'usrApplnQueSopExclsnModifiedDate',DATE_FORMAT(usrAppQSopExclsn.modified_date,'%d %b %Y %T') AS 'strUsrApplnQueSopExclsnModifiedDate',\"\n\t\t\t+ \"usrAppQSopExclsn.res_attribute1 as 'usrApplnQueSopExclsnResAttribute1',usrAppQSopExclsn.res_attribute2 as 'usrApplnQueSopExclsnResAttribute2',\"\n\t\t\t+ \"usrAppQSopExclsn.res_attribute3 as 'usrApplnQueSopExclsnResAttribute3',usrAppQSopExclsn.res_attribute4 as 'usrApplnQueSopExclsnResAttribute4',\"\n\t\t\t+ \"usrAppQSopExclsn.res_attribute5 as 'usrApplnQueSopExclsnResAttribute5' FROM scmn_usr_appln_que_sop_exclson usrAppQSopExclsn \")\n\tList<UsrApplnQueSopExclusn> getCompleteUserApplicationQueueSopExclusionList();", "title": "" }, { "docid": "b1e51c33eca6e13e95722b630024c047", "score": "0.53057367", "text": "@Select({\n \"select\",\n columns,\n \"from payment\",\n \"where PAY_ID = #{payId,jdbcType=INTEGER}\"\n })\n @Results(id = \"paymentMap\", value = {\n @Result(column=\"PAY_ID\", property=\"payId\", jdbcType=JdbcType.INTEGER, id=true),\n @Result(column=\"BUYER_ACCOUNT\", property=\"buyerAccount\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"CHANNEL_TYPE\", property=\"channelType\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"COMPLETE_TIME\", property=\"completeTime\", jdbcType=JdbcType.TIMESTAMP),\n @Result(column=\"CREATE_TIME\", property=\"createTime\", jdbcType=JdbcType.TIMESTAMP),\n @Result(column=\"ERROR_CODE\", property=\"errorCode\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"ERROR_MSG\", property=\"errorMsg\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"NOTIFY_TIME\", property=\"notifyTime\", jdbcType=JdbcType.TIMESTAMP),\n @Result(column=\"OPERATOR_ID\", property=\"operatorId\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"PAY_AMOUNT\", property=\"payAmount\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"PAY_FLOW_CODE\", property=\"payFlowCode\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"PAY_NOTIFY_STATE\", property=\"payNotifyState\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"PAY_STATE\", property=\"payState\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"PAY_TYPE\", property=\"payType\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"REMARK\", property=\"remark\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"CUSTOMER_ID\", property=\"customerId\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"ORDER_ID\", property=\"orderId\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"BATCH_NO\", property=\"batchNo\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"BATCH_NUM\", property=\"batchNum\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"RETURN_CODE\", property=\"returnCode\", jdbcType=JdbcType.VARCHAR)\n })\n Payment selectByPrimaryKey(Integer payId);", "title": "" }, { "docid": "6b20a77168e77ab9553b20c105818c5a", "score": "0.5303315", "text": "@SelectProvider(type=PayRefundOrderSqlProvider.class, method=\"selectByExample\")\n @Results({\n @Result(column=\"id\", property=\"id\", jdbcType=JdbcType.VARCHAR, id=true),\n @Result(column=\"user_id\", property=\"userId\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"account_id\", property=\"accountId\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"channel\", property=\"channel\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"gateway\", property=\"gateway\", jdbcType=JdbcType.OTHER),\n @Result(column=\"recharge_id\", property=\"rechargeId\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"freeze_id\", property=\"freezeId\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"mer_refund_no\", property=\"merRefundNo\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"ser_refund_no\", property=\"serRefundNo\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"busi_refund_no\", property=\"busiRefundNo\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"amount\", property=\"amount\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"subject\", property=\"subject\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"body\", property=\"body\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"create_time\", property=\"createTime\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"refund_time\", property=\"refundTime\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"ser_notify_time\", property=\"serNotifyTime\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"ser_notify_status\", property=\"serNotifyStatus\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"ser_notify_log\", property=\"serNotifyLog\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"callback_url\", property=\"callbackUrl\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"callback_status\", property=\"callbackStatus\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"callback_count\", property=\"callbackCount\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"callback_time\", property=\"callbackTime\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"seller_partner\", property=\"sellerPartner\", jdbcType=JdbcType.VARCHAR)\n })\n List<PayRefundOrder> selectByExampleWithRowbounds(PayRefundOrderCriteria example, RowBounds rowBounds);", "title": "" }, { "docid": "c417131f1ca434d6ce5e2e24f858c9f0", "score": "0.5303315", "text": "@SelectProvider(type=PayRefundOrderSqlProvider.class, method=\"selectByExample\")\n @Results({\n @Result(column=\"id\", property=\"id\", jdbcType=JdbcType.VARCHAR, id=true),\n @Result(column=\"user_id\", property=\"userId\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"account_id\", property=\"accountId\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"channel\", property=\"channel\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"gateway\", property=\"gateway\", jdbcType=JdbcType.OTHER),\n @Result(column=\"recharge_id\", property=\"rechargeId\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"freeze_id\", property=\"freezeId\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"mer_refund_no\", property=\"merRefundNo\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"ser_refund_no\", property=\"serRefundNo\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"busi_refund_no\", property=\"busiRefundNo\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"amount\", property=\"amount\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"subject\", property=\"subject\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"body\", property=\"body\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"create_time\", property=\"createTime\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"refund_time\", property=\"refundTime\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"ser_notify_time\", property=\"serNotifyTime\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"ser_notify_status\", property=\"serNotifyStatus\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"ser_notify_log\", property=\"serNotifyLog\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"callback_url\", property=\"callbackUrl\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"callback_status\", property=\"callbackStatus\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"callback_count\", property=\"callbackCount\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"callback_time\", property=\"callbackTime\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"seller_partner\", property=\"sellerPartner\", jdbcType=JdbcType.VARCHAR)\n })\n List<PayRefundOrder> selectByExample(PayRefundOrderCriteria example);", "title": "" }, { "docid": "39b24209302ebf101286d17e8cb9b797", "score": "0.52324086", "text": "@Select(value =\n \"{call #{tmpCodigo, mode=OUT, jdbcType=BIGINT} := \" +\n \"ADMCENTRAL_RECAUDACION.RCD_REGTR_PAGO_DEUDA_RIPLEY(\" +\n \"#{cCodGrupoCia_in},\" +\n \"#{cCod_Cia_in},\" +\n \"#{cCod_Local_in},\" +\n \"#{cTip_Msj_in},\" + \n \"#{cEst_Trscc_in},\" + \n \"#{cTipo_Trssc_in},\" + \n \"#{cTipo_Rcd_in},\" + \n \"#{cNro_Trjt_in},\" +\n \"#{cMonto_in},\" +\n \"#{cTerminal_in},\" +\n \"#{cComercio_in},\" +\n \"#{cUbicacion_in},\" +\n \"#{cNro_Cuotas_in},\" +\n \"#{cNro_Caja_in},\" +\n \"#{cId_cajero_in},\" +\n \"#{cUsu_Crea_in}\" +\n \")}\")\n @Options(statementType = StatementType.CALLABLE)\n void registrarTrsscPagoDeudaRipley(Map mapParametros);", "title": "" }, { "docid": "2409b45e65ed47424880f04b4c45e995", "score": "0.52132136", "text": "@Select({\n \"select\",\n \"id, company_id, park_id, park_car_id, carplate, recharge_no, need_pay, actual_pay, \",\n \"wallet_banance, oper_type, pay_time, pay_type, remark, operator\",\n \"from t_carowner_payment\",\n \"where id = #{id,jdbcType=INTEGER}\"\n })\n @Results({\n @Result(column=\"id\", property=\"id\", jdbcType=JdbcType.INTEGER, id=true),\n @Result(column=\"company_id\", property=\"companyId\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"park_id\", property=\"parkId\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"park_car_id\", property=\"parkCarId\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"carplate\", property=\"carplate\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"recharge_no\", property=\"rechargeNo\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"need_pay\", property=\"needPay\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"actual_pay\", property=\"actualPay\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"wallet_banance\", property=\"walletBanance\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"oper_type\", property=\"operType\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"pay_time\", property=\"payTime\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"pay_type\", property=\"payType\", jdbcType=JdbcType.SMALLINT),\n @Result(column=\"remark\", property=\"remark\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"operator\", property=\"operator\", jdbcType=JdbcType.VARCHAR)\n })\n TCarownerPayment selectByPrimaryKey(Integer id);", "title": "" }, { "docid": "e5e2a4132e796a41b4e20c8f1f071445", "score": "0.5211209", "text": "public interface ExpressInfoTestRepository extends MybatisRepository<ExpressInfoTest,Long> {\n\n}", "title": "" }, { "docid": "7235416a1eb02de0989959508e9889b7", "score": "0.5181889", "text": "public HashMap<Integer,String> generateBiListByResultSet(){\n try{\n HashMap<Integer,String> map = new HashMap<>();\n ResultSetMetaData rsmd = temp.getMetaData();\n int columnsNumber = rsmd.getColumnCount();\n // when there is only one column of data\n // means is a version number / file list / clone chain list\n if(columnsNumber == 1){\n // use int key strart from 0 to easily looping\n int i = 0;\n while(temp.next()){\n map.put(i,temp.getString(1));\n i++;\n }\n }\n // when get changecount of another chain to compare chain similarity\n else if (columnsNumber == 2){\n while(temp.next()){\n map.put(temp.getInt(1),temp.getString(2));\n }\n }\n else {\n // only one situation\n // first field is revision, second is changecount, third is start line, fourth is end line, fifth is clone class\n // in future will use revision to search cloneid\n while(temp.next()){\n // map.put(temp.getInt(1),temp.getString(2));\n map.put(temp.getInt(1),temp.getString(2).concat(\":\").concat(temp.getString(3)).concat(\":\").concat(temp.getString(4)).concat(\":\").concat(temp.getString(5)).concat(\":\").concat(temp.getString(6)));\n }\n }\n return map;\n }catch (SQLException e){\n e.printStackTrace();\n }\n return null;\n }", "title": "" }, { "docid": "9b50b7eb35364f7c2bc734a8b5ff34ef", "score": "0.5159389", "text": "java.lang.String getSqlQuery();", "title": "" }, { "docid": "b70cacb673c90019094bd605f7107121", "score": "0.5138556", "text": "public static String sql_VehiculosXRuta() {\n String sql\n = \"SELECT\"\n + \" r.NOMBRE AS NOMBRE_RUTA,\"\n + \" ir.NUMERO_VUELTA AS NUMERO_VUELTA,\"\n + \" v.PK_VEHICULO AS PK_VEHICULO,\"\n + \" v.PLACA AS PLACA,\"\n + \" v.NUM_INTERNO AS NUMERO_INTERNO,\"\n + \" IF(c.NOMBRE IS NULL, 'NA', LCASE(CONCAT(c.NOMBRE, ' ', c.APELLIDO))) AS NOMBRE_CONDUCTOR,\"\n + \" ir.FECHA_INGRESO AS FECHA,\"\n + \" ir.HORA_SALIDA_BASE_SALIDA AS HORA_SALIDA,\"\n + \" ir.HORA_INGRESO AS HORA_LLEGADA,\"\n \n + \" TIME_FORMAT(SEC_TO_TIME(((SELECT rp.PROMEDIO_MINUTOS FROM tbl_ruta_punto rp WHERE\"\n + \" rp.FK_RUTA = ir.FK_RUTA AND rp.TIPO = 3 LIMIT 1) + (TIME_TO_SEC(ir.HORA_SALIDA_BASE_SALIDA)/60)) * 60), '%H:%i:%s')\"\n + \" AS HORA_LLEGADA_PLANEADA,\"\n + \" TIME_FORMAT(SEC_TO_TIME(ABS((SELECT rp.PROMEDIO_MINUTOS FROM tbl_ruta_punto rp WHERE\"\n + \" rp.FK_RUTA = ir.FK_RUTA AND rp.TIPO = 3 LIMIT 1) + (TIME_TO_SEC(ir.HORA_SALIDA_BASE_SALIDA)/60) - (TIME_TO_SEC(ir.HORA_INGRESO)/60))*60), '%H:%i:%s')\"\n + \" AS DIFERENCIA,\"\n \n + \"IF ((SELECT (rp.PROMEDIO_MINUTOS - rp.HOLGURA_MINUTOS) FROM tbl_ruta_punto rp WHERE\"\n + \" rp.FK_RUTA = ir.FK_RUTA AND rp.TIPO = 3 LIMIT 1) + (TIME_TO_SEC(ir.HORA_SALIDA_BASE_SALIDA)/60) > (TIME_TO_SEC(ir.HORA_INGRESO)/60), 2,\"\n + \" IF ((SELECT (rp.PROMEDIO_MINUTOS + rp.HOLGURA_MINUTOS) FROM tbl_ruta_punto rp WHERE\"\n + \" rp.FK_RUTA = ir.FK_RUTA AND rp.TIPO = 3 LIMIT 1) + (TIME_TO_SEC(ir.HORA_SALIDA_BASE_SALIDA)/60) < (TIME_TO_SEC(ir.HORA_INGRESO)/60), 1, 0)) AS ESTADO,\"\n \n + \" IF(ir.HORA_INGRESO < SEC_TO_TIME(((SELECT rp.PROMEDIO_MINUTOS FROM tbl_ruta_punto rp WHERE\"\n + \" rp.FK_RUTA = ir.FK_RUTA AND rp.TIPO = 3 LIMIT 1) + (TIME_TO_SEC(ir.HORA_SALIDA_BASE_SALIDA)/60)) * 60), '-', ' ') AS SIGNO,\"\n \n + \" (ir.NUM_LLEGADA - ir.NUMERACION_BASE_SALIDA ) AS CANTIDAD_PASAJEROS\"\n + \" FROM tbl_informacion_registradora AS ir\"\n + \" INNER JOIN tbl_vehiculo AS v ON\"\n + \" v.PK_VEHICULO = ir.FK_VEHICULO AND v.ESTADO = 1\"\n + \" LEFT JOIN tbl_conductor AS c ON\"\n + \" c.PK_CONDUCTOR = ir.FK_CONDUCTOR AND c.ESTADO = 1\"\n + \" INNER JOIN tbl_ruta AS r ON\"\n + \" r.PK_RUTA = ir.FK_RUTA AND r.ESTADO = 1\"\n + \" WHERE\"\n + \" ir.FK_RUTA = ? AND\"\n + \" (ir.FECHA_INGRESO = ? OR\"\n + \" ir.FECHA_SALIDA_BASE_SALIDA = ?) AND\"\n + \" ir.ESTADO = 1\"\n + \" ORDER BY v.PLACA, ir.HORA_SALIDA_BASE_SALIDA ASC\";\n\n return sql;\n }", "title": "" }, { "docid": "cc020b86694f0cc8bee63e44cc465223", "score": "0.5136256", "text": "@Select({\n \"select\",\n \"ID, TASK_ID, CHANNEL, NAME, ADDRESS, LATITUDE, LONGITUDE, PHONE, RATING, RATING_COUNT, \",\n \"CHANNEL_SHOP_ID, CREATE_TIME\",\n \"from dc_shop_info\",\n \"where ID = #{id,jdbcType=BIGINT}\"\n })\n @Results({\n @Result(column = \"ID\", property = \"id\", jdbcType = JdbcType.BIGINT, id = true),\n @Result(column = \"TASK_ID\", property = \"taskId\", jdbcType = JdbcType.BIGINT),\n @Result(column = \"CHANNEL\", property = \"channel\", jdbcType = JdbcType.INTEGER),\n @Result(column = \"NAME\", property = \"name\", jdbcType = JdbcType.VARCHAR),\n @Result(column = \"ADDRESS\", property = \"address\", jdbcType = JdbcType.VARCHAR),\n @Result(column = \"LATITUDE\", property = \"latitude\", jdbcType = JdbcType.VARCHAR),\n @Result(column = \"LONGITUDE\", property = \"longitude\", jdbcType = JdbcType.VARCHAR),\n @Result(column = \"PHONE\", property = \"phone\", jdbcType = JdbcType.VARCHAR),\n @Result(column = \"RATING\", property = \"rating\", jdbcType = JdbcType.DOUBLE),\n @Result(column = \"RATING_COUNT\", property = \"ratingCount\", jdbcType = JdbcType.INTEGER),\n @Result(column = \"CHANNEL_SHOP_ID\", property = \"channelShopId\", jdbcType = JdbcType.VARCHAR),\n @Result(column = \"CREATE_TIME\", property = \"createTime\", jdbcType = JdbcType.TIMESTAMP)\n })\n DcShopInfo selectByPrimaryKey(Long id);", "title": "" }, { "docid": "754c2066222eee314c5d3ae4cff99b5e", "score": "0.5132957", "text": "@Select(value =\n \"{call #{tmpCodigo, mode=OUT, jdbcType=BIGINT} := \" +\n \"ADMCENTRAL_RECAUDACION.RCD_REGTR_PAGO_DEUDA_CMR(\" +\n \"#{cCodGrupoCia_in},\" +\n \"#{cCod_Cia_in},\" +\n \"#{cCod_Local_in},\" +\n \n \"#{cTip_Msj_in},\" + \n \"#{cEst_Trscc_in},\" + \n \"#{cTipo_Trssc_in},\" + \n \n \"#{cTipo_Rcd_in},\" + \n \"#{cNro_Trjt_in},\" +\n \"#{cMonto_in},\" +\n \n \"#{cTerminal_in},\" +\n \"#{cComercio_in},\" +\n \"#{cUbicacion_in},\" +\n \n \"#{cNro_Cuotas_in},\" +\n \"#{cNro_Caja_in},\" +\n \"#{cId_cajero_in},\" +\n \n \"#{cUsu_Crea_in}\" +\n //\"#{cTip_Comp_in},\" +\n //\"#{cNum_Comp_in}\" +\n \")}\")\n @Options(statementType = StatementType.CALLABLE)\n void registrarTrsscPagoDeudaCMR(Map mapParametros);", "title": "" }, { "docid": "59c050b6791625836b786110be1af157", "score": "0.51206887", "text": "public Product linq58() {\r\n Product product12 = new LinqQueriesDb4o_SbqlQuery47(db).executeQuery();\r\n return product12;\r\n }", "title": "" }, { "docid": "0c700a793b4071700927ca9b04cf019e", "score": "0.51154727", "text": "public String getSql(Query q)\n { \n return getSql(q,false);\n }", "title": "" }, { "docid": "c7295ee13da4de44f4a712809af5db05", "score": "0.51043653", "text": "@Select(value =\n \"{call #{tmpCodigo, mode=OUT, jdbcType=BIGINT} := \" +\n \"ADMCENTRAL_RECAUDACION.RCD_REGTR_CONSU_DEUDA_CMR(\" +\n \"#{cCodGrupoCia_in},\" +\n \"#{cCod_Cia_in},\" +\n \"#{cCod_Local_in},\" +\n \"#{cTip_Msj_in},\" + \n \"#{cEst_Trscc_in},\" + \n \"#{cTipo_Trssc_in},\" + \n \"#{cTipo_Rcd_in},\" +\n \"#{cNro_Tarjeta_in},\" +\n \"#{cNro_Cuotas_in}\" +\n \")}\")\n @Options(statementType = StatementType.CALLABLE)\n void registrarTrsscConsultaDeudaCMR(Map mapParametros);", "title": "" }, { "docid": "bab3267d73439623a5acd61413fd643c", "score": "0.50960064", "text": "@Select({\n \"select\",\n \"id, person_id, status, shape, weight, height, height_heel, height_waist, length_crotch_d, \",\n \"length_skirt, length_arm, length_tail, bust, bust_d, waist, hipline, neck, arm, \",\n \"leg, wrist\",\n \"from A_CUSTOMER\"\n })\n @Results({\n @Result(column=\"id\", property=\"id\", jdbcType=JdbcType.INTEGER, id=true),\n @Result(column=\"person_id\", property=\"personId\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"status\", property=\"status\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"shape\", property=\"shape\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"weight\", property=\"weight\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"height\", property=\"height\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"height_heel\", property=\"heightHeel\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"height_waist\", property=\"heightWaist\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"length_crotch_d\", property=\"lengthCrotchD\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"length_skirt\", property=\"lengthSkirt\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"length_arm\", property=\"lengthArm\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"length_tail\", property=\"lengthTail\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"bust\", property=\"bust\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"bust_d\", property=\"bustD\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"waist\", property=\"waist\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"hipline\", property=\"hipline\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"neck\", property=\"neck\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"arm\", property=\"arm\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"leg\", property=\"leg\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"wrist\", property=\"wrist\", jdbcType=JdbcType.VARCHAR)\n })\n List<ACustomer> selectAll();", "title": "" }, { "docid": "1ef73cf43006cb971447efe682d81690", "score": "0.50686866", "text": "@Select({\n \"select\",\n \"ID, TASK_ID, CHANNEL, NAME, ADDRESS, LATITUDE, LONGITUDE, PHONE, RATING, RATING_COUNT, \",\n \"CHANNEL_SHOP_ID, CREATE_TIME\",\n \"from dc_shop_info\"\n })\n @Results({\n @Result(column = \"ID\", property = \"id\", jdbcType = JdbcType.BIGINT, id = true),\n @Result(column = \"TASK_ID\", property = \"taskId\", jdbcType = JdbcType.BIGINT),\n @Result(column = \"CHANNEL\", property = \"channel\", jdbcType = JdbcType.INTEGER),\n @Result(column = \"NAME\", property = \"name\", jdbcType = JdbcType.VARCHAR),\n @Result(column = \"ADDRESS\", property = \"address\", jdbcType = JdbcType.VARCHAR),\n @Result(column = \"LATITUDE\", property = \"latitude\", jdbcType = JdbcType.VARCHAR),\n @Result(column = \"LONGITUDE\", property = \"longitude\", jdbcType = JdbcType.VARCHAR),\n @Result(column = \"PHONE\", property = \"phone\", jdbcType = JdbcType.VARCHAR),\n @Result(column = \"RATING\", property = \"rating\", jdbcType = JdbcType.DOUBLE),\n @Result(column = \"RATING_COUNT\", property = \"ratingCount\", jdbcType = JdbcType.INTEGER),\n @Result(column = \"CHANNEL_SHOP_ID\", property = \"channelShopId\", jdbcType = JdbcType.VARCHAR),\n @Result(column = \"CREATE_TIME\", property = \"createTime\", jdbcType = JdbcType.TIMESTAMP)\n })\n List<DcShopInfo> selectAll();", "title": "" }, { "docid": "9501280ee38d4b1f340550a967f22d36", "score": "0.50677514", "text": "@Select({\n \"select\",\n \"id, person_id, status, shape, weight, height, height_heel, height_waist, length_crotch_d, \",\n \"length_skirt, length_arm, length_tail, bust, bust_d, waist, hipline, neck, arm, \",\n \"leg, wrist\",\n \"from A_CUSTOMER\",\n \"where id = #{id,jdbcType=INTEGER}\"\n })\n @Results({\n @Result(column=\"id\", property=\"id\", jdbcType=JdbcType.INTEGER, id=true),\n @Result(column=\"person_id\", property=\"personId\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"status\", property=\"status\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"shape\", property=\"shape\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"weight\", property=\"weight\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"height\", property=\"height\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"height_heel\", property=\"heightHeel\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"height_waist\", property=\"heightWaist\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"length_crotch_d\", property=\"lengthCrotchD\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"length_skirt\", property=\"lengthSkirt\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"length_arm\", property=\"lengthArm\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"length_tail\", property=\"lengthTail\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"bust\", property=\"bust\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"bust_d\", property=\"bustD\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"waist\", property=\"waist\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"hipline\", property=\"hipline\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"neck\", property=\"neck\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"arm\", property=\"arm\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"leg\", property=\"leg\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"wrist\", property=\"wrist\", jdbcType=JdbcType.VARCHAR)\n })\n ACustomer selectByPrimaryKey(Integer id);", "title": "" }, { "docid": "e279283acc9b8baafd798413c5be0d43", "score": "0.5046795", "text": "@Select(value =\n \"{call #{tmpCodigo, mode=OUT, jdbcType=BIGINT} := \" +\n \"ADMCENTRAL_RECAUDACION.RCD_REGTR_PAGO_DEUDA_CLARO(\" +\n \"#{cCodGrupoCia_in},\" +\n \"#{cCod_Cia_in},\" +\n \"#{cCod_Local_in},\" +\n\n \"#{cTip_Msj_in},\" + \n \"#{cEst_Trscc_in},\" + \n \"#{cTipo_Trssc_in},\" + \n\n \"#{cTipo_Rcd_in},\" + \n \"#{cMonto_in},\" +\n\n \"#{cTerminal_in},\" +\n \"#{cComercio_in},\" +\n \"#{cUbicacion_in},\" +\n\n \"#{cTelefono_in},\" +\n\n \"#{cTipoProdServ_in},\" +\n \"#{cNumRecibo_in},\" +\n\n \"#{cUsu_Crea_in}\" +\n \")}\")\n @Options(statementType = StatementType.CALLABLE)\n void registrarTrsscPagoDeudaClaro(Map mapParametros);", "title": "" }, { "docid": "dc32305206fcfc9484942d29735fdd19", "score": "0.50428087", "text": "@Select(value =\n \"{call #{tmpCodigo, mode=OUT, jdbcType=BIGINT} := \" +\n \"ADMCENTRAL_RECAUDACION.RCD_REGTR_CONSU_DEUDA_CLARO(\" +\n \"#{cCodGrupoCia_in},\" +\n \"#{cCod_Cia_in},\" +\n \"#{cCod_Local_in},\" +\n \"#{cTip_Msj_in},\" + \n \"#{cEst_Trscc_in},\" + \n \"#{cTipo_Trssc_in},\" + \n \"#{cTipo_Rcd_in},\" +\n \n \"#{cTerminal_in},\" +\n \"#{cComercio_in},\" +\n \"#{cSucursal_in},\" +\n \"#{cUbicacion_in},\" +\n \n \"#{cTelefono_in},\" +\n \n \"#{cTipoProdServ_in},\" +\n \n \"#{cUsu_Crea_in}\" +\n \")}\")\n @Options(statementType = StatementType.CALLABLE)\n void registrarTrsscConsultaDeudaClaro(Map mapParametros);", "title": "" }, { "docid": "48ed487a75d88cd8da208daf9a731a2e", "score": "0.50320095", "text": "@Select(value=\"{call #{datosTrsscClaro, mode=OUT, jdbcType=CURSOR, resultMap=resultado} := \" +\n \"ADMCENTRAL_RECAUDACION.RCD_OBT_DATOS_SIX(\" +\n \"#{cCod_Trscc_in},\" + \n \"#{cModo_Trscc_in}\" + \n \")}\")\n @Options(statementType = StatementType.CALLABLE)\n void obtenerDatosTrsscSix(Map mapParametros);", "title": "" }, { "docid": "4f7d74878db69af99adf0a3b6da710e4", "score": "0.5024798", "text": "private TablaGenerica getRubrosTipoNominaSql(String sql_emp){\n\t\tTablaGenerica tab_rubros=utilitario.consultar(\"SELECT ide_nrder,RUB.ide_nrrub,IDE_NRFOC,dtn.IDE_NRDTN,FORMULA_NRDER,FECHA_INICIAL_NRDER, \" +\r\n\t\t\t\t\"FECHA_FINAL_NRDER,FECHA_PAGO_NRDER,ORDEN_NRDER \" +\r\n\t\t\t\t\"FROM NRH_DETALLE_RUBRO DER \" +\r\n\t\t\t\t\"INNER JOIN NRH_RUBRO RUB ON RUB.IDE_NRRUB=DER.IDE_NRRUB \" +\r\n\t\t\t\t\"INNER JOIN NRH_DETALLE_TIPO_NOMINA DTN ON DER.IDE_NRDTN=DTN.IDE_NRDTN \"+\r\n\t\t\t\t\"WHERE DTN.IDE_GTTEM in (\" +\r\n\t\t\t\t\"SELECT IDE_GTTEM FROM NRH_DETALLE_TIPO_NOMINA WHERE IDE_NRDTN IN ( \"+\r\n\t\t\t\t\"select a.IDE_NRDTN from \" +\r\n\t\t\t\t\"( \"+\r\n\t\t\t\t\"\"+sql_emp+\"\" +\r\n\t\t\t\t\")a)) \" +\r\n\t\t\t\t\"AND DER.ACTIVO_NRDER=TRUE \" +\r\n\t\t\t\t\"AND DTN.IDE_NRTIN=\"+utilitario.getVariable(\"p_nrh_tipo_nomina_escenario\")+\" \"+\r\n\t\t\t\t\"ORDER BY DER.ORDEN_NRDER DESC \");\r\n\t\treturn tab_rubros;\r\n\t}", "title": "" }, { "docid": "d5ae79ca48da5ae3c8cf18bfd503d1c9", "score": "0.5020352", "text": "@Select({\n \"select\",\n \"guide_id, serial_fail_times, serial_fail_days, today_fail_times, today_deal_times, \",\n \"accumulative_fail_times, accumulative_fail_days, accumulative_deal_orders, accumulative_expect_times, \",\n \"accumulative_demand_times, reptdt, update_time, create_time\",\n \"from `trade_guide_attitudinal`\",\n \"where guide_id = #{guideId,jdbcType=VARCHAR}\"\n })\n @Results({\n @Result(column=\"guide_id\", property=\"guideId\", jdbcType=JdbcType.VARCHAR, id=true),\n @Result(column=\"serial_fail_times\", property=\"serialFailTimes\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"serial_fail_days\", property=\"serialFailDays\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"today_fail_times\", property=\"todayFailTimes\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"today_deal_times\", property=\"todayDealTimes\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"accumulative_fail_times\", property=\"accumulativeFailTimes\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"accumulative_fail_days\", property=\"accumulativeFailDays\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"accumulative_deal_orders\", property=\"accumulativeDealOrders\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"accumulative_expect_times\", property=\"accumulativeExpectTimes\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"accumulative_demand_times\", property=\"accumulativeDemandTimes\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"reptdt\", property=\"reptdt\", jdbcType=JdbcType.TIMESTAMP),\n @Result(column=\"update_time\", property=\"updateTime\", jdbcType=JdbcType.TIMESTAMP),\n @Result(column=\"create_time\", property=\"createTime\", jdbcType=JdbcType.TIMESTAMP)\n })\n TradeGuideAttitudinal selectByPrimaryKey(String guideId);", "title": "" }, { "docid": "0717bf30781a38e1bc79a7bf46fd3f08", "score": "0.50202274", "text": "@Test\n public void testUpdate() throws Exception {\n QR qr = new QR(JdbcUtilsV2.getDataSource());\n String sql = \"DELETE FROM student WHERE sname=?\";\n int i = qr.update(sql, \"刘德华\");\n System.out.println(i);\n }", "title": "" }, { "docid": "c813d87e4f91cf6d33b55fd5036f342a", "score": "0.5017744", "text": "@Select(value =\n \"{call #{tmpCodigo, mode=OUT, jdbcType=BIGINT} := \" +\n \"ADMCENTRAL_RECAUDACION.RCD_ANUL_PAGO_TARJ_RIPLEY(\" +\n \"#{cCodGrupoCia_in},\" +\n \"#{cCod_Cia_in},\" +\n \"#{cCod_Local_in},\" +\n \"#{cTip_Msj_in},\" + \n \"#{cEst_Trscc_in},\" + \n \"#{cTipo_Trssc_in},\" + \n \"#{cTipo_Rcd_in},\" +\n \"#{cNro_Tarjeta_in},\" +\n \"#{cNro_Cuotas_in},\" +\n \"#{cMonto_in},\" +\n \"#{cNum_Caja_in},\" +\n \"#{cId_Cajero_in},\" +\n // \"#{cMotvExtorno_in},\" +\n \"#{cCod_Trssc_Six_in},\" +\n \"#{cFecha_Origen_in},\" +\n \"#{cCod_auditoria_in},\" +\n \n \"#{cTerminal_in},\" +\n \"#{cComercio_in},\" +\n \"#{cUbicacion_in},\" +\n \"#{cUsu_Crea_in}\" + \n \")}\")\n @Options(statementType = StatementType.CALLABLE)\n void anularPagoTarjetaRipley(Map mapParametros);", "title": "" }, { "docid": "6e1dba23e7f11dbd0bfbd3321a79fcad", "score": "0.5000721", "text": "public interface ProductMaterialDao {\n public final String TNAME = \"product_material\";\n public final String COLUMS = \"productId,materialId,count,beizhu\";\n public final String VALUES = \"#{productId},#{materialId},#{count},#{beizhu}\";\n\n public final String UPDATES = \"id=#{id},productId=#{productId},materialId=#{materialId},count=#{count},beizhu=#{beizhu}\";\n public final String MATERIAL_NAME = \"material\";\n public final String PRODUCT_NAME = \"product\";\n public void addRLByProductId(@Param(\"productId\")Long productId,@Param(\"materialIds\") Long[] materialIds,@Param(\"beizhu\") String beizhu);\n public void addRLByMaterialId(@Param(\"materialId\")Long materialId,@Param(\"productIds\") Long[] productIds,@Param(\"beizhu\") String beizhu);\n\n\n @Select(\"select * from \"+TNAME+\" where materialId=#{materialId}\")\n public List<ProductMaterialRL> queryByMaterialId(@Param(\"materialId\") Long materialId);\n\n @Select(\"select * from \"+TNAME+\" where productId=#{productId}\")\n public List<ProductMaterialRL> queryByProductId(@Param(\"productId\") Long productId);\n\n @Delete(\"delete from \"+TNAME+\" where materialId = #{materialId}\")\n int deleteBLByMaterialId(@Param(\"materialId\")Long materialId);\n\n @Delete(\"delete from \"+TNAME+\" where productId = #{productId}\")\n int deleteBLByProductId(@Param(\"productId\")Long productId);\n\n @Select(\"select \"\n +TNAME +\".id,\"\n +TNAME +\".productId as productId,\"\n +TNAME +\".materialId as materialId,\"\n +TNAME +\".count as count,\"\n +TNAME +\".beizhu as beizhu,\"\n +MATERIAL_NAME +\".id as materialId,\"\n +MATERIAL_NAME +\".name as materialName,\"\n +MATERIAL_NAME +\".guige as materialGuige,\"\n +MATERIAL_NAME +\".yanse as materialYanse,\"\n +MATERIAL_NAME +\".danwei as materialDanwei,\"\n +MATERIAL_NAME +\".jinjia as materialDanjia,\"\n +PRODUCT_NAME + \".name as productName,\"\n +\"1\"\n +\" from \"+ TNAME + \",\" + MATERIAL_NAME +\",\" + PRODUCT_NAME\n + \" where \"\n + TNAME +\".materialId\"+\"=\"+ MATERIAL_NAME +\".id\"\n +\" and \" + TNAME +\".productId\"+\"=\"+ PRODUCT_NAME +\".id\"\n +\" and \"+TNAME+\".productId\"+\"=#{productId}\"\n +\" and 1=1\"\n )\n List<AssemblyItem> queryAssemblyItemByProductId(Long productId);\n\n @Insert(\"insert into \"+TNAME+\"(\"+COLUMS+\")\"+\" values \"+\"(\"+VALUES+\")\")\n void add(ProductMaterialRL relation);\n\n @Delete(\"delete from \"+TNAME+\" where id=#{id}\")\n void deleteById(Long id);\n\n @Update(\"update \"+TNAME+\" set \"+UPDATES+\" where id=#{id}\")\n void update(ProductMaterialRL productMaterialRL);\n\n}", "title": "" }, { "docid": "927421c5d007a5a5c33c8980713310bf", "score": "0.49924046", "text": "public int registerQuery(QueryDTO qryDTO,String selectedQueryRun,int noSubQueries){\r\n\t\tPreparedStatement ps = null;\r\n\t\tConnection connection = connection();\r\n\t\tint lastQryId = 0;\r\n\t\tSystem.out.println(\"register query0\");\r\n\t\ttry {\r\n\t\t\tps = connection.prepareStatement(INST_QRYMSTR_DEFAULT_QRY);\r\n\t\t\tps.setString(1, selectedQueryRun.trim());\r\n\t\t\tps.setInt(2, (qryDTO.getTimeWindow() == null || qryDTO.getTimeWindow().equals(\"\") ?0:Integer.parseInt(qryDTO.getTimeWindow())));//55\r\n\t\t\tps.setDouble(3, qryDTO.getLatitudeUnit());//3.3\r\n\t\t\tps.setDouble(4, qryDTO.getLongitudeUnit());//2.3\r\n\t\t\tps.setString(5, qryDTO.getBoundingBox());\r\n\t\t\t//ps.setString(6, qryDTO.getQueryStatus());\r\n//\t\t\tif (getQueryStatus(qryDTO.getqID())) {\r\n//\t\t\t\tps.setString(6,RUNNING);\r\n//\t\t\t} else {\r\n\t\t\t\tps.setString(6,STOPPED);\r\n//\t\t\t}\t\t\t\t\t\t\t\t\r\n\t\t\t\r\n\t\t\tps.setInt(7, qryDTO.getQryCreatorId());\t\t\t\t\r\n\t\t\tps.setString(8,qryDTO.getQueryName()); // no entry in UI yet -- sanjukta\t\t\r\n\t\t\tSystem.out.println(\"reghister query chilldd\");\r\n\t\t\t\r\n\t\t\t/*\r\n\t\t\t//child\r\n\t\t\tif (firstInsrtedQryId != 0) {\r\n\t\t\t\tps = connection.prepareStatement(INST_QRYMSTR_QRY);\r\n\t\t\t\t\r\n\t\t\t\tps.setString(1, selectedQueryRun.trim()); // esql\r\n\t\t\t\tps.setInt(2, (qryDTO.getTimeWindow() == null || qryDTO.getTimeWindow().equals(\"\") ?0:Integer.parseInt(qryDTO.getTimeWindow()))); // hardcoded--Integer.parseInt(qryDTO.getTimeWindow())\r\n\t\t\t\tps.setDouble(3, qryDTO.getLatitudeUnit()); // hardcoded --qryDTO.getLatitudeUnit()\r\n\t\t\t\tps.setDouble(4, qryDTO.getLongitudeUnit()); // hardcoded -qryDTO.getLongitudeUnit()\r\n\t\t\t\tps.setString(5, qryDTO.getBoundingBox()); // hardcoded--not there in grouping\r\n\t\t\t\t//ps.setString(6, qryDTO.getQueryStatus()); // hardcoded--qryDTO.getQueryStatus()\r\n\t\t\t\tif (getQueryStatus(qryDTO.getqID())) {\r\n\t\t\t\t\tps.setString(6,RUNNING);\r\n\t\t\t\t} else {\r\n\t\t\t\t\tps.setString(6,STOPPED);\r\n\t\t\t\t}\t\t\t\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\tps.setInt(7, firstInsrtedQryId);\r\n\t\t\t\tps.setInt(8, qryDTO.getQryCreatorId());\r\n\t\t\t\tps.setString(9,qryDTO.getQueryName()); // no entry in UI yet -- sanjukta\r\n\t\t\t\tSystem.out.println(\"reghister query parenttt\");\r\n\t\t\t}else {\r\n\t\t\t\t\r\n\t\t\t\tps = connection.prepareStatement(INST_QRYMSTR_DEFAULT_QRY);\r\n\t\t\t\tps.setString(1, selectedQueryRun.trim());\r\n\t\t\t\tps.setInt(2, (qryDTO.getTimeWindow() == null || qryDTO.getTimeWindow().equals(\"\") ?0:Integer.parseInt(qryDTO.getTimeWindow())));//55\r\n\t\t\t\tps.setDouble(3, qryDTO.getLatitudeUnit());//3.3\r\n\t\t\t\tps.setDouble(4, qryDTO.getLongitudeUnit());//2.3\r\n\t\t\t\tps.setString(5, qryDTO.getBoundingBox());\r\n\t\t\t\t//ps.setString(6, qryDTO.getQueryStatus());\r\n//\t\t\t\tif (getQueryStatus(qryDTO.getqID())) {\r\n//\t\t\t\t\tps.setString(6,RUNNING);\r\n//\t\t\t\t} else {\r\n\t\t\t\t\tps.setString(6,STOPPED);\r\n//\t\t\t\t}\t\t\t\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\tps.setInt(7, qryDTO.getQryCreatorId());\t\t\t\t\r\n\t\t\t\tps.setString(8,qryDTO.getQueryName()); // no entry in UI yet -- sanjukta\t\t\r\n\t\t\t\tSystem.out.println(\"reghister query chilldd\");\r\n\t\t\t}\r\n\t\t\t*/\r\n\t\t\t\r\n\t\t\tps.executeUpdate();\r\n\t\t\tResultSet rs = ps.getGeneratedKeys();\r\n\t\t\tif (rs.next()){\r\n\t\t\t lastQryId = rs.getInt(1);\r\n\t\t\t}\r\n\r\n\t\t} catch (Exception e) {\r\n\t\t\t//log.error(e.getMessage());\r\n\t\t\tSystem.out.println(\"exceptionnn e11\"+e);\r\n\t\t} \r\n\t\tSystem.out.println(\"reghister query1 with id \"+lastQryId);\r\n\t\treturn lastQryId;\r\n\t}", "title": "" }, { "docid": "1209e3d25b96faceff9c7ce08e47e450", "score": "0.4990463", "text": "public void AllQuestionfetchRecords(FrameQuestions S) throws SQLException, Exception\n\t{\n\t\t\tConnection conn = null;\n\t\t\ttry {\n\t\t\t\tSystem.out.println(\"fetch\");\n\t\t\t\tconn = connection.getConnection();\n\t\t\t\tStatement stmt = null;\n\t\t\t\tstmt = conn.createStatement();\n\t\t\t\tString sql1, sql2;\n\t\t\t\t\n\t\t\t\tsql1 = \"select tbl_questions.Questions from tbl_qtype,tbl_questions,tbl_studprofile where tbl_questions.RollNo=tbl_studprofile.RollNo and tbl_qtype.QtypeNo=tbl_questions.QtypeNo and tbl_qtype.QtypeNo='1';\";\n\t\t\t\t//sql2 = \"alter table tbl_questions modify Questions char(100);\";\n\t\t\t\tResultSet rs;\n\t\t\t\trs = stmt.executeQuery(sql1);\n\t\t\t\t//rs = stmt.executeQuery(sql2);\n\t\t\t\tS.table_1.setModel(DbUtils.resultSetToTableModel(rs));\n\t\t\t\tsql1 = \"select tbl_questions.Questions from tbl_qtype,tbl_questions,tbl_studprofile where tbl_questions.RollNo=tbl_studprofile.RollNo and tbl_qtype.QtypeNo=tbl_questions.QtypeNo and tbl_qtype.QtypeNo='2';\";\n\t\t\t\t//sql2 = \"alter table tbl_questions modify Questions char(100);\";\n\t\t\t\t//ResultSet rs;\n\t\t\t\trs = stmt.executeQuery(sql1);\n\t\t\t\t//rs = stmt.executeQuery(sql2);\n\t\t\t\tS.table_2.setModel(DbUtils.resultSetToTableModel(rs));\n\t\t\t\t\n\t\t\t\tsql1 = \"select tbl_questions.Questions from tbl_qtype,tbl_questions,tbl_studprofile where tbl_questions.RollNo=tbl_studprofile.RollNo and tbl_qtype.QtypeNo=tbl_questions.QtypeNo and tbl_qtype.QtypeNo='3';\";\n\t\t\t\t//sql2 = \"alter table tbl_questions modify Questions char(100);\";\n\t\t\t\t//ResultSet rs;\n\t\t\t\trs = stmt.executeQuery(sql1);\n\t\t\t\t//rs = stmt.executeQuery(sql2);\n\t\t\t\tS.table.setModel(DbUtils.resultSetToTableModel(rs));\n\t\t\t\tsql1 = \"select tbl_questions.Questions from tbl_qtype,tbl_questions,tbl_studprofile where tbl_questions.RollNo=tbl_studprofile.RollNo and tbl_qtype.QtypeNo=tbl_questions.QtypeNo and tbl_qtype.QtypeNo='4';\";\n\t\t\t\t//sql2 = \"alter table tbl_questions modify Questions char(100);\";\n\t\t\t//\tResultSet rs;\n\t\t\t\trs = stmt.executeQuery(sql1);\n\t\t\t\t//rs = stmt.executeQuery(sql2);\n\t\t\t\tS.table_6.setModel(DbUtils.resultSetToTableModel(rs));\n\t\t\t\tsql1 = \"select tbl_questions.Questions from tbl_qtype,tbl_questions,tbl_studprofile where tbl_questions.RollNo=tbl_studprofile.RollNo and tbl_qtype.QtypeNo=tbl_questions.QtypeNo and tbl_qtype.QtypeNo='5';\";\n\t\t\t\t//sql2 = \"alter table tbl_questions modify Questions char(100);\";\n\t\t\t\t//ResultSet rs;\n\t\t\t\trs = stmt.executeQuery(sql1);\n\t\t\t\t//rs = stmt.executeQuery(sql2);\n\t\t\t\tS.table_7.setModel(DbUtils.resultSetToTableModel(rs));\n\t\t\t\tsql1 = \"select tbl_questions.Questions from tbl_qtype,tbl_questions,tbl_studprofile where tbl_questions.RollNo=tbl_studprofile.RollNo and tbl_qtype.QtypeNo=tbl_questions.QtypeNo and tbl_qtype.QtypeNo='6';\";\n\t\t\t\t//sql2 = \"alter table tbl_questions modify Questions char(100);\";\n\t\t\t\t//ResultSet rs;\n\t\t\t\trs = stmt.executeQuery(sql1);\n\t\t\t\t//rs = stmt.executeQuery(sql2);\n\t\t\t\tS.table_8.setModel(DbUtils.resultSetToTableModel(rs));\n\t\t\t\tsql1 = \"select tbl_questions.Questions from tbl_qtype,tbl_questions,tbl_studprofile where tbl_questions.RollNo=tbl_studprofile.RollNo and tbl_qtype.QtypeNo=tbl_questions.QtypeNo and tbl_qtype.QtypeNo='7';\";\n\t\t\t\t//sql2 = \"alter table tbl_questions modify Questions char(100);\";\n\t\t\t\t//ResultSet rs;\n\t\t\t\trs = stmt.executeQuery(sql1);\n\t\t\t\t//rs = stmt.executeQuery(sql2);\n\t\t\t\tS.table_9.setModel(DbUtils.resultSetToTableModel(rs));\n\t\t\t\tsql1 = \"select tbl_questions.Questions from tbl_qtype,tbl_questions,tbl_studprofile where tbl_questions.RollNo=tbl_studprofile.RollNo and tbl_qtype.QtypeNo=tbl_questions.QtypeNo and tbl_qtype.QtypeNo='8';\";\n\t\t\t\t//sql2 = \"alter table tbl_questions modify Questions char(100);\";\n\t\t\t\t//ResultSet rs;\n\t\t\t\trs = stmt.executeQuery(sql1);\n\t\t\t\t//rs = stmt.executeQuery(sql2);\n\t\t\t\tS.table_5.setModel(DbUtils.resultSetToTableModel(rs));\n\t\t\t\tsql1 = \"select tbl_questions.Questions from tbl_qtype,tbl_questions,tbl_studprofile where tbl_questions.RollNo=tbl_studprofile.RollNo and tbl_qtype.QtypeNo=tbl_questions.QtypeNo and tbl_qtype.QtypeNo='9';\";\n\t\t\t\t//sql2 = \"alter table tbl_questions modify Questions char(100);\";\n\t\t\t\t//ResultSet rs;\n\t\t\t\trs = stmt.executeQuery(sql1);\n\t\t\t\t//rs = stmt.executeQuery(sql2);\n\t\t\t\tS.table_4.setModel(DbUtils.resultSetToTableModel(rs));\n\t\t\t\tsql1 = \"select tbl_questions.Questions from tbl_qtype,tbl_questions,tbl_studprofile where tbl_questions.RollNo=tbl_studprofile.RollNo and tbl_qtype.QtypeNo=tbl_questions.QtypeNo and tbl_qtype.QtypeNo='10';\";\n\t\t\t\t//sql2 = \"alter table tbl_questions modify Questions char(100);\";\n\t\t\t\t//ResultSet rs;\n\t\t\t\trs = stmt.executeQuery(sql1);\n\t\t\t\t//rs = stmt.executeQuery(sql2);\n\t\t\t\tS.table_3.setModel(DbUtils.resultSetToTableModel(rs));\n\t\t\t\tS.table.setRowHeight(25);\n\t\t\t\tS.table_1.setRowHeight(25);\n\t\t\t\tS.table_2.setRowHeight(25);\n\t\t\t\tS.table_3.setRowHeight(25);\n\t\t\t\tS.table_4.setRowHeight(25);\n\t\t\t\tS.table_5.setRowHeight(25);\n\t\t\t\tS.table_6.setRowHeight(25);\n\t\t\t\tS.table_7.setRowHeight(25);\n\t\t\t\tS.table_8.setRowHeight(25);\n\t\t\t\tS.table_9.setRowHeight(25);\n\t\t\t\t//\n\t\t\t\t//S.table_1.setFont(new Font(\"Segoe UI Semibold\", Font.BOLD, 20));\n\t\t\t\t//rs = stmt.executeQuery(sql2);\n\t\t\t\t//S.table.setModel(DbUtils.resultSetToTableModel(rs));\n\t\t\t\t}catch (ClassNotFoundException | SQLException err) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\terr.printStackTrace();\n\t\t\t}\n\t\t \n\t}", "title": "" }, { "docid": "32662cd9cfb6953ec2d9f1b39856d83f", "score": "0.49813446", "text": "@Select(value =\n \"{call #{tmpCodigo, mode=OUT, jdbcType=BIGINT} := \" +\n \"ADMCENTRAL_RECAUDACION.RCD_ANUL_PAGO_TARJ_CMR(\" +\n \"#{cCodGrupoCia_in},\" +\n \"#{cCod_Cia_in},\" +\n \"#{cCod_Local_in},\" +\n \"#{cTip_Msj_in},\" + \n \"#{cEst_Trscc_in},\" + \n \"#{cTipo_Trssc_in},\" + \n \"#{cTipo_Rcd_in},\" +\n \"#{cNro_Tarjeta_in},\" +\n \"#{cNro_Cuotas_in},\" +\n \"#{cMonto_in},\" +\n \"#{cNum_Caja_in},\" +\n \"#{cId_Cajero_in},\" +\n \"#{cMotvExtorno_in},\" +\n \"#{cCod_Trssc_Six_in},\" +\n \n \"#{cTerminal_in},\" +\n \"#{cComercio_in},\" +\n \"#{cUbicacion_in},\" +\n \"#{cUsu_Crea_in}\" + \n \")}\")\n @Options(statementType = StatementType.CALLABLE)\n void anularPagoTarjetaCMR(Map mapParametros);", "title": "" }, { "docid": "8fe8f00507d7dceab0ed7c5f6f57727b", "score": "0.49801978", "text": "public int linq78() {\r\n int[] numbers = {5, 4, 1, 3, 9, 8, 6, 7, 2, 0};\r\n int numSum = new LinqQueriesDb4o_SbqlQuery58(numbers,db).executeQuery();\r\n return numSum;\r\n }", "title": "" }, { "docid": "ac4c498815f56e9548ecf49fbed05515", "score": "0.49776694", "text": "@Select({\n \"select\",\n \"id, user_id, account_id, channel, gateway, recharge_id, freeze_id, mer_refund_no, \",\n \"ser_refund_no, busi_refund_no, amount, subject, body, create_time, refund_time, \",\n \"ser_notify_time, ser_notify_status, ser_notify_log, callback_url, callback_status, \",\n \"callback_count, callback_time, seller_partner\",\n \"from `pay_refund_order`\",\n \"where id = #{id,jdbcType=VARCHAR}\"\n })\n @Results({\n @Result(column=\"id\", property=\"id\", jdbcType=JdbcType.VARCHAR, id=true),\n @Result(column=\"user_id\", property=\"userId\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"account_id\", property=\"accountId\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"channel\", property=\"channel\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"gateway\", property=\"gateway\", jdbcType=JdbcType.OTHER),\n @Result(column=\"recharge_id\", property=\"rechargeId\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"freeze_id\", property=\"freezeId\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"mer_refund_no\", property=\"merRefundNo\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"ser_refund_no\", property=\"serRefundNo\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"busi_refund_no\", property=\"busiRefundNo\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"amount\", property=\"amount\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"subject\", property=\"subject\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"body\", property=\"body\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"create_time\", property=\"createTime\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"refund_time\", property=\"refundTime\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"ser_notify_time\", property=\"serNotifyTime\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"ser_notify_status\", property=\"serNotifyStatus\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"ser_notify_log\", property=\"serNotifyLog\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"callback_url\", property=\"callbackUrl\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"callback_status\", property=\"callbackStatus\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"callback_count\", property=\"callbackCount\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"callback_time\", property=\"callbackTime\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"seller_partner\", property=\"sellerPartner\", jdbcType=JdbcType.VARCHAR)\n })\n PayRefundOrder selectByPrimaryKey(String id);", "title": "" }, { "docid": "73c16a056ee58c787a170719ddec5d48", "score": "0.49608094", "text": "public static String sql_RutasEstablecidas() {\n String sql\n = \"SELECT\"\n + \" r.NOMBRE AS NOMBRE_RUTA,\"\n + \" r.ESTADO_CREACION AS ESTADO_CREACION\"\n + \" FROM tbl_ruta AS r\"\n + \" WHERE r.ESTADO = 1 AND\" \n + \" r.ESTADO_CREACION <> 3 AND\"\n + \" r.FK_EMPRESA = ?\";\n\n return sql;\n }", "title": "" }, { "docid": "e0523d365849b01c3d0281c082f9250d", "score": "0.49606967", "text": "@Override\n\t\t\t\t\tpublic Question mapRow(ResultSet rs, int rowNum)\n\t\t\t\t\t\t\tthrows SQLException {\n\t\t\t\t\t\tQuestion q = new Question(rs.getString(\"name\"), rs\n\t\t\t\t\t\t\t\t.getString(\"type\"), rs.getString(\"label\"));\n\t\t\t\t\t\tif(rs.getArray(\"children\")!=null){\n\t\t\t\t\t\t\tq.setChildren((String[])rs.getArray(\"children\").getArray());\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif(rs.getString(\"repeat_count\")!=null)\n\t\t\t\t\t\t\tq.setRepeat_count(rs.getString(\"repeat_count\"));\n\n\t\t\t\t\t\treturn q;\n\t\t\t\t\t}", "title": "" }, { "docid": "d64a4b12197ea8aa8e5d96a1784081b2", "score": "0.4959804", "text": "public interface PokeInfoDAO {\n\n @Mapper(PokeInfoMapper.class)\n @SqlQuery(\"SELECT id, identifier, primary_type, secondary_type, height, weight \" +\n \"FROM pokemon AS pokemon \" +\n \"JOIN (SELECT * FROM crosstab( \" +\n \"'SELECT pokemon_id, slot, identifier \" +\n \"FROM pokemon_types \" +\n \"INNER JOIN types \" +\n \"ON type_id = types.id \" +\n \"ORDER BY 1', \" +\n \"'SELECT DISTINCT slot \" +\n \"FROM pokemon_types \" +\n \"ORDER BY 1' \" +\n \") as ct( \" +\n \"pokemon_id int, primary_type text, secondary_type text)) AS poketypes \" +\n \"ON pokemon.id = poketypes.pokemon_id \" +\n \"WHERE id = :id \")\n PokeInfo findPokemonById(@Bind(\"id\") long id);\n \n}", "title": "" }, { "docid": "84b8f050f86be825d1a2eabf61215ce1", "score": "0.49574918", "text": "@Mapper\npublic interface AccountDao {\n\n @Insert(\" insert into account(contentId, title, image, price, num, time) values (#{contentId,jdbcType=INTEGER}, #{title,jdbcType=VARCHAR}, #{image,jdbcType=VARCHAR}, #{price,jdbcType=INTEGER}, #{num,jdbcType=INTEGER}, #{time,jdbcType=TIMESTAMP})\")\n int insert(Account order);\n\n @Select(\"select * from account\")\n List<Account> getAccounts();\n\n @Select(\"select * from account where id = #{id}\")\n Account getAccountById(@Param(\"id\")int id);\n\n @Select(\"select * from account where contentId = #{contentId}\")\n Account getAccountByContentId(@Param(\"contentId\")int contentId);\n}", "title": "" }, { "docid": "4584807363195dd324cb38c6a834a4b0", "score": "0.49548477", "text": "@Override\n protected String getSql() {\n return \"select * from {namespace}.PT_OBJECT_OBJECT ORDER BY parent_object_id\";\n }", "title": "" }, { "docid": "e0b330815b239a786a63131179657503", "score": "0.49545854", "text": "@Select(value =\n \"{call #{idTrssc, mode=OUT, jdbcType=BIGINT} := \" +\n \"ADMCENTRAL_RECAUDACION.RCD_ANUL_VENTA_TARJ_CMR(\" +\n \"#{cCodGrupoCia_in},\" +\n \"#{cCod_Cia_in},\" +\n \"#{cCod_Local_in},\" +\n \"#{cTip_Msj_in},\" + \n \"#{cEst_Trscc_in},\" + \n \"#{cTipo_Trssc_in},\" + \n \"#{cTipo_Rcd_in},\" +\n \n \"#{cNro_Tarjeta_in},\" +\n \"#{cMonto_in},\" +\n //auditoria se obtiene en el procedimiento\n \"#{cTerminal_in},\" + \n \"#{cComercio_in},\" +\n \"#{cUbicacion_in},\" +\n \"#{cNro_Cuotas_in},\" +\n //sucursal se obtiene en el procedimiento\n \"#{cId_Cajero_in},\" +\n \"#{cNum_Doc_in},\" +\n \"#{cId_Anular_in},\" +\n \"#{cUsu_Crea_in}\" + \n \")}\")\n @Options(statementType = StatementType.CALLABLE)\n void anularPagoTarjetaVentaCMR(Map mapParametros);", "title": "" }, { "docid": "b4260ae4e742e11ca54934cc96547780", "score": "0.49521893", "text": "@Override\n\tpublic String generateUpdateSql() {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "6f89be4b37ae6cbceebfef80daef2f85", "score": "0.49441916", "text": "private static void doVQ1 (Connection conn) throws SQLException{\n\t \t stmt = conn.createStatement();\n\t \t ResultSet rs = stmt.executeQuery(sqlVQ1);\n\t \tResultSetMetaData rsm = rs.getMetaData();\n\t \t\n\t \tSystem.out.println(rsm.getColumnName(1) + \"\\t\\t\" + rsm.getColumnName(2)+\"\\t\\t \"\n\t\t \t\t +\"\\t$\"+rsm.getColumnName(3));\n\t\t \t\t\t \n\t \t\n\t //\t System.out.println(\"Code\\t\\t Product\\t\\t Price\");\n\t \t System.out.println(\"=======\\t======================\\t\\t======\"); \t \n \n\t \t while(rs.next()){\n\t \t\t\n\t \t\t\t System.out.println(rs.getString(1) + \"\\t \"\n\t \t\t\t + rs.getString(2)+\"\\t\\t\"+rs.getString(3));\n\t \t\t\t }\n\t \t\t\trs.close(); \n\t }", "title": "" }, { "docid": "338f82c4f07b217e03c4b58fe687eca3", "score": "0.49408022", "text": "public static String rSQL(com.westvalley.tempus.carry.fncl.TbIMSError.Keys k,String t){initDBI();return dbi.relationSQL(k.key(),t);}", "title": "" }, { "docid": "82cc6faa2e13b4f45ec072d72599c9e4", "score": "0.49275675", "text": "public String sqlSelectTableData(){\n try{\n \n }catch(Exception exception){}\n return sqlQuery;\n }", "title": "" }, { "docid": "041758cfc4d8fd16cd13a94c0bc9f681", "score": "0.4919452", "text": "@Mapper\npublic interface SubjectRepayDirectDao {\n\n /**\n * 根据subjectId和期数查询对应数据\n * @param subjectId\n * @param term\n * @return\n */\n @Select(\"SELECT * FROM ndr_subject_repay_direct WHERE subject_id = #{subjectId} AND curr_term=#{term} AND match_status=1\")\n SubjectRepayDirect findBySubjectIdAndTerm(@Param(\"subjectId\") String subjectId, @Param(\"term\")Integer term);\n\n\n\n @Insert(\"INSERT INTO ndr_subject_repay_direct (`subject_id`, `curr_term`, `contract_no`, `type`, `total_term`, `repay_date`,`repay_type`,`loan_type`,`match_status`) \" +\n \"VALUES (#{subjectId}, #{currTerm}, #{contractNo}, #{type}, #{totalTerm}, #{repayDate},#{repayType},#{loanType},#{matchStatus})\")\n int insert(SubjectPayoffReg subjectPayoffReg);\n}", "title": "" }, { "docid": "07d461de70accdf94beaa900506d6c11", "score": "0.49017918", "text": "@Select({\n \"select\",\n \"id, park_id, company_id, charge_date, car_nature_desc, charge_amount, needpay_total, \",\n \"actualpay_total, qpasspay_total, behalfpay_total, prepay_total, coupon_total, \",\n \"create_time, duty_person, out_port_id, walletpay_total, inaccesspaid_total\",\n \"from t_charge_details_report\",\n \"where id = #{id,jdbcType=INTEGER}\"\n })\n @Results({\n @Result(column=\"id\", property=\"id\", jdbcType=JdbcType.INTEGER, id=true),\n @Result(column=\"park_id\", property=\"parkId\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"company_id\", property=\"companyId\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"charge_date\", property=\"chargeDate\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"car_nature_desc\", property=\"carNatureDesc\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"charge_amount\", property=\"chargeAmount\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"needpay_total\", property=\"needpayTotal\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"actualpay_total\", property=\"actualpayTotal\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"qpasspay_total\", property=\"qpasspayTotal\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"behalfpay_total\", property=\"behalfpayTotal\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"prepay_total\", property=\"prepayTotal\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"coupon_total\", property=\"couponTotal\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"create_time\", property=\"createTime\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"duty_person\", property=\"dutyPerson\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"out_port_id\", property=\"outPortId\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"walletpay_total\", property=\"walletpayTotal\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"inaccesspaid_total\", property=\"inaccesspaidTotal\", jdbcType=JdbcType.DOUBLE)\n })\n TChargeDetailsReport selectByPrimaryKey(Integer id);", "title": "" }, { "docid": "e4fb32f2b8c3278893270dfc8bef2dc3", "score": "0.4899631", "text": "@Override\n\tpublic String toString() {\n\t\treturn this.originalSql;\n\t}", "title": "" }, { "docid": "271d53fe7684b72d451694d13eae5738", "score": "0.4896678", "text": "@Test\n\tpublic void testGenerateXML() {\n\n\t\tList<String> keyList = new ArrayList<String>();\n\t\tkeyList.add(\"triplog_id\");\t\n\t\t\n\t\tPrimaryKey primaryKey = new PrimaryKey();\n\t\tprimaryKey.setGenerator(\"assigned\");\n\t\tprimaryKey.setKey(keyList);\t\t\n\t\t\n\t\t// obuversion\n\t\tDbTable dbTable = new DbTable();\n\n\t\tdbTable.setTableName(\"dy_triplog_begin\");\n\t\tdbTable.setPrimaryKey(primaryKey);\n\t\tdbTable.setUpdate(false);\n\t\t\n\t\t\n\n\t\tString[] tableFields = {\"obu_id\",\"data_serial\",\"route_code\",\"running_no\",\"obu_time\",\"trip_code\",\n\t\t\t\t \"redis_time\",\"triplog_id\",\"bus_id\",\"bus_code\",\"bus_name\",\"number_plate\",\"organ_id\",\n\t\t\t\t \"organ_code\",\"organ_name\",\"route_id_belong_to\",\"route_name_belongto\",\"route_id\",\n\t\t\t\t \"route_name\",\"direction\",\"route_sub_id\",\"route_sub_name\",\"from_station_id\",\n\t\t\t\t \"from_station_name\",\"to_station_id\",\"to_station_name\",\"service_number\",\"service_name\",\n\t\t\t\t \"employee_id\",\"employee_name\",\"qualification\",\"gpskey\"};\n\t\t\n\t\t\n\t\tString[] redisFields = {\"obuid\",\"data_serial\",\"route_code\",\"trip_code\",\"local_time\",\"oper_content\",\n\t\t\t\t \"redis_time\",\"_id_\",\"bus_id\",\"bus_code\",\"bus_name\",\"number_plate\",\"organ_id\",\n\t\t\t\t \"organ_code\",\"organ_name\",\"route_id_belongto\",\"route_name_belongto\",\"route_id\",\n\t\t\t\t \"route_name\",\"routesub_direction\",\"routesub_id\",\"route_sub_name\",\"first_station_id\",\n\t\t\t\t \"first_station_name\",\"last_station_id\",\"last_station_name\",\"service_number\",\"service_name\",\n\t\t\t\t \"employee_id\",\"employee_name\",\"qualification\",\"gpskey\"};\t\n\t\t\n\n\t\tString[] tableFieldType = { \"string\",\"integer\",\"string\",\"string\",\"date\",\"string\",\n\t\t\t\t\t\t\t\t\t\"date\",\"string\",\"string\",\"string\",\"string\",\"string\",\"integer\",\n\t\t\t\t\t\t\t\t\t\"string\",\"string\",\"integer\",\"string\",\"integer\",\"string\",\n\t\t\t\t\t\t\t\t\t\"string\",\"integer\",\"string\",\"integer\",\"string\",\n\t\t\t\t\t\t\t\t\t\"integer\",\"string\",\"string\",\"string\",\"integer\",\n\t\t\t\t\t\t\t\t\t\"string\",\"string\",\"string\"};\n\t\t\t\t\t\t\t\n\n\t\tSystem.out.println(tableFields.length+\",\"+ redisFields.length+\",\"+tableFieldType.length);\n\t\t\n\t\tif(tableFields.length != redisFields.length || redisFields.length != tableFieldType.length)\n\t\t\tfail(\"parameter wrong\");\t\t\n\t\t\n\n\t\tfor(int i = 0 ; i < tableFields.length; i++){\n\t\t\tDbField field = new DbField();\n\t\t\tfield.setDbField(tableFields[i]);\n\t\t\tfield.setRedisField(redisFields[i]);\n\t\t\tfield.setDbType(tableFieldType[i]);\n\t\t\tif(\"date\".equals(tableFieldType[i])){\n\t\t\t\tfield.setFormatter(\"yyyy-MM-dd HH24:mi:ss\");\n\t\t\t}\n\t\t\tdbTable.getFields().put(field.getDbField(), field);\n\t\t}\t\t\n\t\n\n\t\tRedisQueue redisQueue = new RedisQueue();\n\t\tredisQueue.setRedisQueueKey(\"dpdb.queue.40.01\");\n\t\t\n\t\tredisQueue.getRedisTables().put(dbTable.getTableName(), dbTable);\n\t\t\n\n\t\tRedisParseConfig conf = new RedisParseConfig();\n\t\tconf.getRedisQueues().put(redisQueue.getRedisQueueKey(), redisQueue);\n\t\t\n\t\t\n\t\tString xml = XmlUtil.simpleobject2xml(conf);\n\t\tSystem.out.println(xml);\n\t\t\n\t\tFile file2 = new File(\"d:/dy_triplog_begin.xml\");\n\t\tDataOutputStream output;\n\t\ttry {\n\t\t\toutput = new DataOutputStream(new FileOutputStream(file2));\n\t output.write(xml.getBytes());\n\t output.close();\n\t\t} catch (FileNotFoundException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\t\t\t\t\t\t\n\t}", "title": "" }, { "docid": "23ca8ace87840a80092f9e3f45479be2", "score": "0.48966607", "text": "@Column(name=\"XJYZZE\", nullable=true, length=100)\n/* */ public String getXjyzze()\n/* */ {\n/* 158 */ return this.xjyzze;\n/* */ }", "title": "" }, { "docid": "117a675e0741de6230ad1ee6fefdc0da", "score": "0.488526", "text": "public String getQryEsql(int qID){\r\n\t\tPreparedStatement ps = null;\r\n\t\tResultSet rs = null;\r\n\t\tConnection connection = connection();\r\n\t\tString qryEsql = \"\";\r\n\t\ttry {\r\n\t\t\tps = connection\r\n\t\t\t\t\t.prepareStatement(SLT_QRYMSTR_QRY);\r\n\t\t\tps.setInt(1, qID);\r\n\t\t\trs = ps.executeQuery();\r\n\t\t\twhile (rs.next()) {\r\n\t\t\t\tqryEsql = rs.getString(1);\r\n\t\t\t\t\r\n\t\t\t}\r\n\r\n\t\t} catch (Exception e) {\r\n\t\t\tlog.error(e.getMessage());\r\n\t\t} \r\n\t\treturn qryEsql;\r\n\t}", "title": "" }, { "docid": "6d556beda96d7ed742644b49d41cbc96", "score": "0.4876961", "text": "@Insert({\n \"insert into t_carowner_payment (id, company_id, \",\n \"park_id, park_car_id, \",\n \"carplate, recharge_no, \",\n \"need_pay, actual_pay, \",\n \"wallet_banance, oper_type, \",\n \"pay_time, pay_type, \",\n \"remark, operator)\",\n \"values (#{id,jdbcType=INTEGER}, #{companyId,jdbcType=INTEGER}, \",\n \"#{parkId,jdbcType=INTEGER}, #{parkCarId,jdbcType=INTEGER}, \",\n \"#{carplate,jdbcType=VARCHAR}, #{rechargeNo,jdbcType=VARCHAR}, \",\n \"#{needPay,jdbcType=DOUBLE}, #{actualPay,jdbcType=DOUBLE}, \",\n \"#{walletBanance,jdbcType=VARCHAR}, #{operType,jdbcType=INTEGER}, \",\n \"#{payTime,jdbcType=VARCHAR}, #{payType,jdbcType=SMALLINT}, \",\n \"#{remark,jdbcType=VARCHAR}, #{operator,jdbcType=VARCHAR})\"\n })\n int insert(TCarownerPayment record);", "title": "" }, { "docid": "b5a5b16dafa2849dfc759113a43ddb0e", "score": "0.48600125", "text": "@Insert({\n \"insert into `pay_refund_order` (id, user_id, \",\n \"account_id, channel, \",\n \"gateway, recharge_id, \",\n \"freeze_id, mer_refund_no, \",\n \"ser_refund_no, busi_refund_no, \",\n \"amount, subject, \",\n \"body, create_time, \",\n \"refund_time, ser_notify_time, \",\n \"ser_notify_status, ser_notify_log, \",\n \"callback_url, callback_status, \",\n \"callback_count, callback_time, \",\n \"seller_partner)\",\n \"values (#{id,jdbcType=VARCHAR}, #{userId,jdbcType=VARCHAR}, \",\n \"#{accountId,jdbcType=VARCHAR}, #{channel,jdbcType=INTEGER}, \",\n \"#{gateway,jdbcType=OTHER}, #{rechargeId,jdbcType=VARCHAR}, \",\n \"#{freezeId,jdbcType=VARCHAR}, #{merRefundNo,jdbcType=VARCHAR}, \",\n \"#{serRefundNo,jdbcType=VARCHAR}, #{busiRefundNo,jdbcType=VARCHAR}, \",\n \"#{amount,jdbcType=INTEGER}, #{subject,jdbcType=VARCHAR}, \",\n \"#{body,jdbcType=VARCHAR}, #{createTime,jdbcType=INTEGER}, \",\n \"#{refundTime,jdbcType=INTEGER}, #{serNotifyTime,jdbcType=INTEGER}, \",\n \"#{serNotifyStatus,jdbcType=INTEGER}, #{serNotifyLog,jdbcType=VARCHAR}, \",\n \"#{callbackUrl,jdbcType=VARCHAR}, #{callbackStatus,jdbcType=INTEGER}, \",\n \"#{callbackCount,jdbcType=INTEGER}, #{callbackTime,jdbcType=INTEGER}, \",\n \"#{sellerPartner,jdbcType=VARCHAR})\"\n })\n int insert(PayRefundOrder record);", "title": "" }, { "docid": "95d63f44f6e78c62acac0f5480effda4", "score": "0.48580724", "text": "public static void sql_TarifasEstablecidas() {\n String sql\n = \"SELECT\"\n + \" t.VALOR_PROM_KM AS VALOR_PROM_KM,\"\n + \" r.NOMBRE AS NOMBRE_RUTA\"\n + \" FROM tbl_ruta AS r\"\n + \" INNER JOIN tbl_tarifa AS t ON\"\n + \" r.PK_RUTA = t.FK_RUTA\"\n + \" WHERE t.ESTADO = 1 AND\"\n + \" r.FK_EMPRESA = ?\"\n + \" ORDER BY r.FK_EMPRESA, r.NOMBRE\";\n\n //return sql;\n }", "title": "" }, { "docid": "41f1fe8024b024a69744c25973a5b392", "score": "0.4855683", "text": "@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n\n if (ACTIVITY_RESULT_QR_DRDROID == requestCode\n && data != null && data.getExtras() != null) {\n\n String result = data.getExtras().getString(\"la.droid.qr.result\");\n\n report.setText(result);\n report.setVisibility(View.VISIBLE);\n\n xMaxId = mydb\n .fn_GetMaxID(\"SELECT CASE WHEN(id>0)then max(id+1) Else 1 \" +\n \"END AS userno from tbl_licenecdetails\");\n mydb.insertRegistration(xMaxId, result);\n\n\n }\n }", "title": "" }, { "docid": "31c0c4757352ead79102c2193645a501", "score": "0.4852299", "text": "public void methodNumGen(String docType) throws SQLException{\n try {\n //ConnectSql.conect();\n\n// java.sql.Statement stmt = ConnectSql.conn.createStatement(ResultSet.TYPE_FORWARD_ONLY, ResultSet.CONCUR_UPDATABLE);\n// ResultSet rset = stmt.executeQuery(\"Select * from tblDocCodeGenerator where DocType='\"+docType+\"'\");\n String query1 = \"Select * from SystemAutoCodes where DocType='\"+docType+\"'\";\n ResultSet rset = ConnectionControll.getDataAsViewableandUpdatele(query1, DBConection.getConnection());\n\n if (!rset.next()) {\n String query = \"Insert into SystemAutoCodes (AutoCode,AutoStartChr,DocType) Values ('1001','\"+docType+\"','\"+docType+\"')\";\n Connection connection = DBConection.getConnection();\n Statement stmt = connection.createStatement();\n stmt.execute(query);\n DocNumber = 1000;\n DocChr = docType;\n } else {\n DocNumber = rset.getInt(\"AutoCode\");\n DocChr = rset.getString(\"AutoStartChr\");\n rset.updateInt(\"AutoCode\", (DocNumber+1));\n rset.updateRow();\n }\n rset.close(); \n \n } catch (ClassNotFoundException ex) {\n Logger.getLogger(DocNumGenerator.class.getName()).log(Level.SEVERE, null, ex);\n } \n }", "title": "" }, { "docid": "bd7cae9d23f6f8e39baadf77179110f5", "score": "0.48507467", "text": "public double getSqr() {\n return sqr;\n }", "title": "" }, { "docid": "c42abde9dad4bc258f0cbd6314a0707a", "score": "0.48433822", "text": "@Select({\n \"select\",\n \"ID, GOODS_ID, STOCK, REMARK, CREATE_PERSON, CREATE_PERSON_NAME, CREATE_TIME, \",\n \"IS_DELETE\",\n \"from order_t_goods_stock_info\",\n \"where ID = #{id,jdbcType=BIGINT}\"\n })\n @Results({\n @Result(column=\"ID\", property=\"id\", jdbcType=JdbcType.BIGINT, id=true),\n @Result(column=\"GOODS_ID\", property=\"goodsId\", jdbcType=JdbcType.BIGINT),\n @Result(column=\"STOCK\", property=\"stock\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"REMARK\", property=\"remark\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"CREATE_PERSON\", property=\"createPerson\", jdbcType=JdbcType.BIGINT),\n @Result(column=\"CREATE_PERSON_NAME\", property=\"createPersonName\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"CREATE_TIME\", property=\"createTime\", jdbcType=JdbcType.TIMESTAMP),\n @Result(column=\"IS_DELETE\", property=\"isDelete\", jdbcType=JdbcType.CHAR)\n })\n GoodsStockInfoBean selectByPrimaryKey(Long id);", "title": "" }, { "docid": "2cf3ab170978b67376d0df2724feecd9", "score": "0.48375446", "text": "public static String sql_CumplimientoRutaXVehiculo() {\n String sql = \n \"SELECT\" \n + \" v.PK_VEHICULO,\"\n + \" v.PLACA,\"\n + \" v.NUM_INTERNO,\"\n\n + \" (select group_concat(sc.NOMBRE separator ', ') from (\"\t\n + \" select lcase(concat(c.NOMBRE, ' ', c.APELLIDO)) as NOMBRE,\"\n + \" cv.FK_VEHICULO\"\n + \" from tbl_conductor_vehiculo as cv\"\n + \" inner join tbl_conductor as c on\"\n + \" c.PK_CONDUCTOR = cv.FK_CONDUCTOR\"\n + \" where date(cv.FECHA_ASIGNACION) between ? and ?\"\n + \" group by cv.FK_CONDUCTOR\"\n + \" ) as sc where sc.FK_VEHICULO = ir.FK_VEHICULO) as LISTA_CONDUCTORES,\"\n\n + \" sum((select count(rp.PK_RUTA_PUNTO) from tbl_ruta_punto as rp\"\n + \" where rp.FK_RUTA = ir.FK_RUTA and rp.ESTADO = 1)) as TOTAL_PUNTOS_RUTA,\"\n\n + \" sum((\"\n //+ \" select count(pc.FK_PUNTO) from tbl_punto_control as pc\"\n //+ \" where pc.FK_INFO_REGIS = ir.PK_INFORMACION_REGISTRADORA and pc.FK_PUNTO in (\"\n //+ \" select rp.FK_PUNTO from tbl_ruta_punto as rp\"\n //+ \" where rp.FK_RUTA = ir.FK_RUTA and rp.ESTADO = 1\"\n + \" func_puntos_vistos(ir.PK_INFORMACION_REGISTRADORA, ir.FK_RUTA)\"\n + \" )+2) as TOTAL_PUNTOS_CUMPLIDOS,\"\n\n + \" round(\"\t\t\t\n + \" sum((\"\n //+ \" select count(pc.FK_PUNTO) from tbl_punto_control as pc\"\n //+ \" where pc.FK_INFO_REGIS = ir.PK_INFORMACION_REGISTRADORA and pc.FK_PUNTO in (\"\n //+ \" select rp.FK_PUNTO from tbl_ruta_punto as rp\"\n //+ \" where rp.FK_RUTA = ir.FK_RUTA and rp.ESTADO = 1\"\n + \" func_puntos_vistos(ir.PK_INFORMACION_REGISTRADORA, ir.FK_RUTA)\"\n + \" )+2)\"\n + \" / \"\t\t\t\n + \" sum((select count(rp.PK_RUTA_PUNTO) from tbl_ruta_punto as rp\"\n + \" where rp.FK_RUTA = ir.FK_RUTA and rp.ESTADO = 1))\"\n + \" ,2) as PORCENTAJE_CUMPLIDO\"\t\t\n\n + \" FROM tbl_informacion_registradora AS ir\"\n + \" INNER JOIN tbl_vehiculo AS v ON\"\n + \" ir.FK_VEHICULO = v.PK_VEHICULO and v.ESTADO = 1\"\n + \" WHERE\" \n + \" ir.FECHA_INGRESO BETWEEN ? and ?\"\n + \" and ir.FK_RUTA = ?\"\n + \" GROUP BY ir.FK_VEHICULO\"\n + \" ORDER BY PORCENTAJE_CUMPLIDO desc, v.PLACA asc\";\n \n return sql;\n }", "title": "" }, { "docid": "608620b527db862f50da13add37ca8cd", "score": "0.4830528", "text": "public void llenarBases(ResultSet rs){\r\n \r\n }", "title": "" }, { "docid": "9988a5d1a2a17fe5f62e1240164c25bb", "score": "0.48279956", "text": "@MyBatisDao\n@Repository\npublic interface RegisterDao {\n\n @Insert(\"insert into sys_user(username, password,real_name,identity_card_num,telephone,addTime, salt, locked) \" +\n \"values(#{sys.username},#{sys.password},#{sys.real_name},#{sys.identity_card_num},\" +\n \"#{sys.telephone},now(),#{sys.salt},#{sys.locked})\")\n public int createUser(@Param(\"sys\") User user);\n// @Options(useGeneratedKeys = true, keyProperty = \"id\")\n\n\n @Select(\"SELECT COUNT(*) AS total FROM sys_user WHERE username = #{username}\")\n public int checkUsername(@Param(\"username\") String username);\n}", "title": "" }, { "docid": "c979f720a63c3f465452a40d201206d1", "score": "0.48279813", "text": "public interface DamageResultRowSchema {\n String TABLE_NAME = \"damage_result_rows\";\n\n String COLUMN_ID = \"id\";\n String COLUMN_DAMAGE_TABLE_ID = \"damageTableId\";\n String COLUMN_RANGE_LOW_VALUE = \"rangeLowValue\";\n String COLUMN_RANGE_HIGH_VALUE = \"rangeHighValue\";\n\n String TABLE_CREATE = \"CREATE TABLE IF NOT EXISTS \"\n + TABLE_NAME\n + \" (\"\n + COLUMN_ID + \" INTEGER PRIMARY KEY, \"\n + COLUMN_DAMAGE_TABLE_ID + \" INTEGER NOT NULL, \"\n + COLUMN_RANGE_LOW_VALUE + \" INTEGER NOT NULL, \"\n + COLUMN_RANGE_HIGH_VALUE + \" INTEGER NOT NULL, \"\n + \"FOREIGN KEY (\" + COLUMN_DAMAGE_TABLE_ID + \") REFERENCES \"\n\t\t\t\t+ DamageTableSchema.TABLE_NAME + \"(\" + DamageTableSchema.COLUMN_ID + \")\"\n + \")\";\n\n String[] COLUMNS = new String[] { COLUMN_ID, COLUMN_DAMAGE_TABLE_ID, COLUMN_RANGE_LOW_VALUE, COLUMN_RANGE_HIGH_VALUE};\n}", "title": "" }, { "docid": "8901d58737ddfac5dbb39bcc67d58970", "score": "0.48276663", "text": "@Select({\n \"select\",\n \"park_id, route_id, route_park_id, route_park_name, in_park_port, out_park_port, \",\n \"xkzh, public_key\",\n \"from park_route_conf\",\n \"where park_id = #{parkId,jdbcType=INTEGER}\",\n \"and route_id = #{routeId,jdbcType=INTEGER}\"\n })\n @Results({\n @Result(column=\"park_id\", property=\"parkId\", jdbcType=JdbcType.INTEGER, id=true),\n @Result(column=\"route_id\", property=\"routeId\", jdbcType=JdbcType.INTEGER, id=true),\n @Result(column=\"route_park_id\", property=\"routeParkId\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"route_park_name\", property=\"routeParkName\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"in_park_port\", property=\"inParkPort\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"out_park_port\", property=\"outParkPort\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"xkzh\", property=\"xkzh\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"public_key\", property=\"publicKey\", jdbcType=JdbcType.VARCHAR)\n })\n ParkRouteConf selectByPrimaryKey(@Param(\"parkId\") Integer parkId, @Param(\"routeId\") Integer routeId);", "title": "" }, { "docid": "4b57ff611bc1b712aaca4f7ab6547b5c", "score": "0.4827137", "text": "public List<qixinpro> selectQixinpros() {\n\t\t\t\ttry {\n\n\t\t\t\t\tString sql = \"select * from qixinapp.qixinpro\";\n\t\t\t\t\tQueryRunner runner = new QueryRunner(JDBCUtils.getDataSource());\n\t\t\t\t\treturn runner.query(sql, new BeanListHandler<qixinpro>(\n\t\t\t\t\t\t\tqixinpro.class));\n\n\t\t\t\t} catch (SQLException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t\tthrow new RuntimeException(\"asdjk\");\n\t\t\t\t}\n\t}", "title": "" }, { "docid": "c6d65f5be67745bc675cf0a8db345e09", "score": "0.48204774", "text": "@Mapper\npublic interface ZhiweiDao {\n\n// @Select(\"select t1.* t2.comid from t_zhiweigreat t1,t_company t2 where t1.comid=t2.comid\")\n @Select(\"select * from t_zhiweigreat \")\n List<ZhiweiGreat> querygreatzw();\n\n// @Select(\"select t2.* from t_zhiweigreat t1,t_zhiweilittle t2 where t1.id= t2.greatid \")\n @Select( \"select * from t_zhiweilittle \")\n List<ZhiweiLittle> querylittlezw();\n\n @Select(\"select t2.* from t_zhiweigreat t1,t_zhiweilittle t2 where t1.id= t2.greatid \")\n List<ZhiweiGreat> querycomtree();\n\n @Select(\"select t1.* ,t2.comname ,t4.name from t_zhiwei t1,t_company t2,t_zhiweigreat t3,t_zhiweilittle t4 where t1.comid=t2.comid AND t1.zhiweigreatid=t3.id AND t3.id=t4.greatid AND t2.comshenhe=2\")\n List<Zhiwei> queryzhiweishow();\n\n @Insert(\"insert into t_zhiwei (comid,zhiweigreatid,xingzhi,xinzi,city,jingyan,xueli,youhuo) VALUES(#{zhiwei.comid},#{zhiwei.zhiweigreatid},#{zhiwei.xingzhi},#{zhiwei.xinzi},#{zhiwei.city},#{zhiwei.jingyan},#{zhiwei.xueli},#{zhiwei.youhuo})\")\n void savezhiwei(@Param(\"zhiwei\") Zhiwei zhiwei);\n\n @Select(\"select t1.* ,t2.comname ,t4.name from t_zhiwei t1,t_company t2 ,t_zhiweigreat t3 ,t_zhiweilittle t4 where t1.comid= t2.comid and t1.zhiweigreatid=t3.id and t3.id =t4.greatid\")\n List<Zhiwei> queryzhiweishowlist();\n}", "title": "" }, { "docid": "ebae3eb45750da568769bfc69a985de4", "score": "0.48148203", "text": "@Override\n\tpublic Object getResult(ResultSet rs, String columnName) throws SQLException {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "fec9d613bf06c32bdb245cb702968239", "score": "0.48120824", "text": "@Override\n\tpublic List<Map<String, Object>> queryMatEvaSupMainRightByCode(\n\t\t\tMap<String, Object> mapVo) throws DataAccessException {\n\t\treturn matEvaSupMapper.queryMatEvaSupMainRight(mapVo);\n\t}", "title": "" }, { "docid": "ca429da3db8014b79215639402922857", "score": "0.48117018", "text": "public static String sql_AlarmasXVehiculo() {\n String sql\n = \"SELECT\"\n + \" v.PLACA AS PLACA,\"\n + \" v.NUM_INTERNO AS NUMERO_INTERNO,\"\n + \" IFNULL(r.NOMBRE, 'NA') AS NOMBRE_RUTA,\"\n + \" air.FECHA_ALARMA AS FECHA_ALARMA,\"\n + \" air.HORA_ALARMA AS HORA_ALARMA,\"\n + \" ir.NUMERO_VUELTA AS NUMERO_VUELTA,\"\n + \" ir.FECHA_INGRESO AS FECHA_INGRESO,\"\n + \" a.NOMBRE AS NOMBRE_ALARMA,\"\n + \" air.CANTIDAD_ALARMA AS CANTIDAD_ALARMA,\"\n + \" a.UNIDAD_MEDICION AS UNIDAD_MEDICION\"\n + \" FROM tbl_informacion_registradora AS ir\"\n + \" LEFT JOIN tbl_ruta AS r ON\"\n + \" ir.FK_RUTA = r.PK_RUTA AND r.ESTADO = 1\"\n + \" INNER JOIN tbl_alarma_info_regis AS air ON\"\n + \" ir.PK_INFORMACION_REGISTRADORA = air.FK_INFORMACION_REGISTRADORA\"\n + \" INNER JOIN tbl_alarma AS a ON\"\n + \" a.PK_ALARMA = air.FK_ALARMA AND a.ESTADO = 1\"\n + \" INNER JOIN tbl_vehiculo AS v ON\"\n + \" v.PK_VEHICULO = ir.FK_VEHICULO AND v.ESTADO = 1\"\n + \" WHERE ir.FK_VEHICULO = ? AND\"\n + \" ir.FECHA_INGRESO BETWEEN ? AND ? AND\"\n + \" air.ESTADO = 1 ORDER BY air.FECHA_ALARMA ASC, air.HORA_ALARMA ASC\";\n return sql;\n }", "title": "" }, { "docid": "51bc5bfdc162a14a3c19a8fda1ace160", "score": "0.4803167", "text": "public interface AttributeDao {\n @Insert(\"INSERT INTO attribute (finishedId,attributeName,materialId) VALUES \" +\n \"(#{finishedId},#{attributeName},#{materialId})\")\n public void save(AttributeVo attributeVo);\n\n @Delete(\"DELETE FROM attribute WHERE id=#{id}\")\n public void delete(Long id);\n\n @Update(\"UPDATE attribute (#{attributeVo}) WHERE id =#{id}\")\n @Lang(SimpleUpdateExtendedLanguageDriver.class)\n public void update(AttributeVo attributeVo);\n\n @Select(\"SELECT * FROM attribute\")\n public List<AttributeVo> get();\n\n\n @Select(\"select * from attribute where finishedId=#{finishedId}\")\n @Results(\n {\n @Result(property = \"materialVo\",column =\"materialId\",\n one = @One(select = \"com.gdut.dao.MaterialDao.getVoById\"))\n }\n )\n public List<AttributeVo> getByFinshedId(Integer finishedId);\n}", "title": "" }, { "docid": "c1af5a877ee16cd4b45f76fa04daabdd", "score": "0.48007932", "text": "public static String sql_ProduccionXVehiculo() {\n String sql\n = \"SELECT\"\n + \" ir.FECHA_INGRESO AS FECHA_INGRESO,\"\n + \" ir.HORA_INGRESO AS HORA_INGRESO,\"\n + \" ir.NUMERO_VUELTA AS NUMERO_VUELTA,\"\n + \" ir.NUM_LLEGADA AS NUMERACION_LLEGADA,\"\n + \" ir.NUMERACION_BASE_SALIDA AS NUMERACION_SALIDA,\"\n + \" ir.ENTRADAS AS ENTRADAS,\"\n + \" ir.SALIDAS AS SALIDAS,\"\n + \" ir.TOTAL_DIA AS TOTAL_DIA,\"\n //+ \" ir.DIFERENCIA_NUM AS DIFERENCIA_NUMERACION,\"\n + \" (ir.NUM_LLEGADA - ir.NUMERACION_BASE_SALIDA) AS DIFERENCIA_NUMERACION,\" \n + \" IF ((SELECT sum(cp.DIFERENCIA) FROM tbl_conteo_perimetro AS cp WHERE \"\n + \" cp.FK_INFORMACION_REGISTRADORA = ir.PK_INFORMACION_REGISTRADORA) > 0,\" \n + \" (SELECT sum(cp.DIFERENCIA) FROM tbl_conteo_perimetro AS cp WHERE\"\n + \" cp.FK_INFORMACION_REGISTRADORA = ir.PK_INFORMACION_REGISTRADORA),\"\n + \" 0) AS CONTEO_PERIMETRO,\"\n + \" IF ((SELECT count(air.CANTIDAD_ALARMA) FROM tbl_alarma_info_regis AS air WHERE\"\n + \" air.FK_INFORMACION_REGISTRADORA = ir.PK_INFORMACION_REGISTRADORA AND air.FK_ALARMA IN (5,6,7)) > 0,\" \n + \" (SELECT count(air.CANTIDAD_ALARMA) FROM tbl_alarma_info_regis AS air WHERE\"\n + \" air.FK_INFORMACION_REGISTRADORA = ir.PK_INFORMACION_REGISTRADORA AND air.FK_ALARMA IN (5,6,7)),\"\n + \" 0) AS CANTIDAD_ALARMAS,\"\n + \" IFNULL((SELECT r.NOMBRE FROM tbl_ruta AS r WHERE r.PK_RUTA = ir.FK_RUTA AND r.ESTADO = 1), 'NA') AS NOMBRE_RUTA,\"\n + \" IFNULL(LCASE(c.NOMBRE), 'NA') AS NOMBRE_CONDUCTOR,\"\n + \" IFNULL(LCASE(c.APELLIDO), '') AS APELLIDO_CONDUCTOR,\"\n + \" ir.HORA_SALIDA_BASE_SALIDA AS HORA_SALIDA,\"\n + \" v.PLACA AS PLACA,\"\n + \" v.NUM_INTERNO AS NUMERO_INTERNO\"\n + \" FROM tbl_vehiculo AS v\"\n + \" INNER JOIN tbl_informacion_registradora AS ir ON\"\n + \" v.PK_VEHICULO = ir.FK_VEHICULO AND v.ESTADO = 1\"\n + \" INNER JOIN tbl_empresa AS e ON\"\n + \" v.FK_EMPRESA = e.PK_EMPRESA AND v.ESTADO = 1\"\n + \" LEFT JOIN tbl_conductor AS c ON\" \n + \" e.PK_EMPRESA = c.FK_EMPRESA AND c.PK_CONDUCTOR = ir.FK_CONDUCTOR AND v.ESTADO = 1\"\n //+ \" LEFT JOIN tbl_ruta AS r ON\"\n //+ \" ir.FK_RUTA = r.PK_RUTA\"\n + \" WHERE v.PK_VEHICULO = ? AND\"\n + \" ir.FECHA_INGRESO BETWEEN ? AND ? AND\"\n + \" e.PK_EMPRESA = ?\"\n //+ \" AND e.PK_EMPRESA IN ( SELECT upe.FK_EMPRESA FROM tbl_usuario_permiso_empresa AS upe WHERE upe.ESTADO = 1 AND upe.FK_USUARIO = ? )\"\n + \" GROUP BY\"\n + \" ir.HORA_INGRESO\"\n + \" ORDER BY ir.FECHA_INGRESO ASC, ir.HORA_INGRESO ASC\";\n return sql;\n }", "title": "" }, { "docid": "33990a748dc89b8553dd8fa59dcdcd25", "score": "0.4793838", "text": "public interface CommentMapper {\r\n\r\n @Select(\"select * from comment_info where product_id=#{productId}\")\r\n @Results({\r\n @Result(column = \"quality_score\", property = \"qualityScore\"),\r\n @Result(column = \"taste_score\", property = \"tasteScore\"),\r\n @Result(column = \"packing_score\", property = \"packingScore\"),\r\n })\r\n List<CommentInfo> findScoreByProductId(String productId);\r\n\r\n /**\r\n * 查询某个商品的总评分\r\n */\r\n @Select(\"select (SUM(quality_score)+SUM(taste_score)+SUM(packing_score))/(3*count(*)) from comment_info where product_id = #{productId}\")\r\n Double findResultByProductId(String productId);\r\n}", "title": "" }, { "docid": "8887882391341046c724c3948f02a7e8", "score": "0.47933346", "text": "public interface ZuzzuSqlQueries {\n \n \n String offer_query=\"SELECT auktion.id, auktion.cusebeda_objekt_id AS objectID, auktion.ebayueberschrift, auktion.anzahlgebote,\"\n + \"auktion.currentbid, auktion.startpreis, auktion.ebaysiteid, DATE_ADD(auktion.startdatum, INTERVAL auktion.dauer DAY) as endDate,\"\n + \"auktion.ebaysofortkauf,if(auktion.retailprice is NULL,0,auktion.retailprice) as retailprice, auktion.untertitel, auktion.endpreis, auktion.ebaysofortkauf,\"\n + \"auktion.status,auktion.ebaysiteid,ebaydaten.galeriebild_id,ebaydaten.ebayname,auktion.AuctionMasterTypeID, auktion.quantity, auktion.dauer,auktion.startdatum,auktion.ebayueberschrift,auktion.ebaycountry,auktion.vorlage_id \"\n + \"FROM ebay.auktion LEFT JOIN ebay.ebaydaten ON auktion.cusebeda_objekt_id = ebaydaten.cusebeda_objekt_id \"\n + \"WHERE auktion.ebayitemid = ?\";\n \n String geo_query=\" SELECT objekt_x_geoData.objekt_id,\"\n + \"objekt_x_geoData.longitude, objekt_x_geoData.latitude\"\n + \" FROM cusebeda.objekt_x_geoData\"\n + \" WHERE objekt_x_geoData.objekt_id =\";\n \n \n String address_query=\"SELECT objekt.bezeichnung, objekt.ort as city, objekt.strasse as street, \"\n + \"laender.bezeichnung as land, text.text as region \"\n + \"FROM cusebeda.objekt, cusebeda.laender, cusebeda.verwaltungseinheiten,\"\n + \"cumulida.finder, cumulida.text\"\n + \" WHERE objekt.id= ?\"\n + \" AND objekt.laender_id = laender.id\"\n + \" AND laender.sprache_id ='\"+ZuzzuSqlQueries.language+\"'\"\n + \" AND objekt.verwaltungseinheiten_id = verwaltungseinheiten.id\"\n + \" AND verwaltungseinheiten.finder_id = finder.id\"\n + \" AND finder.text_id = text.id\"\n + \" AND text.cusebeda_sprache_id ='\"+ZuzzuSqlQueries.language+\"'\";\n \n String language=\"2\";\n \n String image_query= \"SELECT request FROM ebay3.apiCallRequest WHERE uuid like ?\";\n \n String percentaile=\"%\";\n \n String sold_quantity_query=\"SELECT sum(quantity_purchased) as soldnumbers FROM ebay.transaction where ebayitemid = ?\"; \n \n String site_currency=\"SELECT ebaystammdaten.siteid.id, ebaystammdaten.currency.kurz\"\n + \" FROM ebaystammdaten.currency, ebaystammdaten.siteid\"\n + \" WHERE ebaystammdaten.currency.id = ebaystammdaten.siteid.currency_id\"\n + \" AND siteid.id = ?\";\n \n String calendar_query=\"SELECT IF(objekt_x_kalender.kalender = 1, 1, 0) as kalendar FROM cusebeda.objekt LEFT JOIN \"\n + \"cusebeda.objekt_x_kalender ON objekt_x_kalender.cusebeda_objekt_id = objekt.id LEFT JOIN cusebeda.laender \"\n + \"ON objekt.laender_id = laender.id LEFT JOIN cusebeda.verwaltungseinheiten \"\n + \"ON objekt.verwaltungseinheiten_id = verwaltungseinheiten.id LEFT JOIN cumulida.finder \"\n + \"ON verwaltungseinheiten.finder_id = finder.id LEFT JOIN cumulida.text ON finder.text_id = text.id \"\n + \"WHERE objekt.id =? AND laender.sprache_id ='\" + language + \"'\" + \" \"\n + \"AND text.cusebeda_sprache_id ='\" + language + \"'\";\n \n String marketplace_query=\"select SiteCodeType from ebay.ebaysite where id=?\";\n \n String currentbid_query=\"select id,currentbid,anzahlgebote from ebay.auktion where ebayitemid = ?\";\n \n String product_query=\"select v.arrangement_id from ebay.auktion ak,ebay.vorlage v where ak.vorlage_id=v.id and ak.ebayitemid=?\";\n \n String volarge_query=\"select naechte,personen from ebay.vorlagen_arrangement where vorlage_id=? \";\n \n String ebay_product_query=\"select standardOccupancy,lengthOfStay from ebay_product.product where id =?\";\n \n String insert_query=\"insert into zuzzu.ZuzzuPushWSLog (zuzzuItemId,ebayItemID,request,response,type,status,processTime) values (?,?,?,?,?,?,?)\" ;\n \n}", "title": "" }, { "docid": "7daa8b6f71f796921f042ee6bafae793", "score": "0.4791612", "text": "public static String sql_Propietario() {\n String sql \n = \"SELECT\"\n + \" ir.NUMERO_VUELTA AS NUMERO_VUELTA,\"\n + \" ir.FECHA_INGRESO AS FECHA,\"\n + \" ir.HORA_SALIDA_BASE_SALIDA AS HORA_SALIDA,\"\n + \" ir.HORA_INGRESO AS HORA_LLEGADA,\"\n /*+ \" r.NOMBRE AS NOMBRE_RUTA,\"*/\n + \" IF((SELECT r.NOMBRE FROM tbl_ruta as r WHERE r.PK_RUTA = ir.FK_RUTA) IS NULL, 'N/A', (SELECT r.NOMBRE FROM tbl_ruta as r WHERE r.PK_RUTA = ir.FK_RUTA) ) AS NOMBRE_RUTA,\"\n + \" (ir.NUM_LLEGADA - ir.NUMERACION_BASE_SALIDA) AS CANTIDAD_PASAJEROS,\"\n + \" SEC_TO_TIME(ABS(TO_SECONDS(ir.HORA_INGRESO) - TO_SECONDS(ir.HORA_SALIDA_BASE_SALIDA))) AS TIEMPO_VUELTA,\"\n\n + \" (SELECT count(cp.PK_CONTEO_PERIMETRO) FROM tbl_conteo_perimetro AS cp\"\n + \" WHERE cp.FK_INFORMACION_REGISTRADORA = ir.PK_INFORMACION_REGISTRADORA) AS CONTEO_PERIMETRO,\"\n\n // Informacion de vehiculo\n + \" (SELECT v.PLACA FROM tbl_vehiculo AS v WHERE v.PK_VEHICULO = ir.FK_VEHICULO AND v.ESTADO = 1) AS PLACA,\"\n + \" (SELECT v.NUM_INTERNO FROM tbl_vehiculo AS v WHERE v.PK_VEHICULO = ir.FK_VEHICULO AND v.ESTADO = 1) AS NUMERO_INTERNO\"\n\n + \" FROM tbl_informacion_registradora AS ir\"\n /*+ \" INNER JOIN tbl_ruta AS r ON\"\n + \" ir.FK_RUTA = r.PK_RUTA AND r.ESTADO = 1\"*/\n + \" LEFT OUTER JOIN tbl_conteo_perimetro AS cp ON\"\n + \" ir.PK_INFORMACION_REGISTRADORA = cp.FK_INFORMACION_REGISTRADORA\"\n + \" WHERE\"\n + \" ir.FECHA_INGRESO BETWEEN ? AND ? AND\"\n + \" ir.FK_VEHICULO = ?\"\n + \" ORDER BY ir.FECHA_INGRESO ASC, ir.HORA_SALIDA_BASE_SALIDA ASC\";\n System.out.println(sql);\n return sql;\n }", "title": "" }, { "docid": "a62538d36ff8abcf6965b7ef10580260", "score": "0.47872674", "text": "private void generateEvalSQL() {\r\n\t\tif (this.isTemplate()) {\r\n\t\t\tfor (ClauseInstance ci : this.instances) {\r\n\t\t\t\tif (ci.satSql == null) {\r\n\t\t\t\t\tthis.generateSatSQL();\r\n\t\t\t\t}\r\n\t\t\t\tci.evalSql =\r\n\t\t\t\t\t\"SELECT COUNT(*) as num FROM (\" + ci.satSql\r\n\t\t\t\t\t\t+ \") as temp_temp_x89\";\r\n\t\t\t\tUIMan.verbose(1, \"evaluation sql: \" + ci.evalSql);\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tif (this.satSql == null) {\r\n\t\t\t\tthis.generateSatSQL();\r\n\t\t\t}\r\n\t\t\tthis.evalSql =\r\n\t\t\t\t\"SELECT COUNT(*) as num FROM (\" + this.satSql\r\n\t\t\t\t\t+ \") as temp_temp_x89\";\r\n\t\t\tUIMan.verbose(1, \"evaluation sql: \" + this.evalSql);\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "e746fe86e53c777a2d4aee3981f4c358", "score": "0.47812948", "text": "@Transient\n @Override\n public String getDetailForSql() {\n return (\"vehicle\" +\n \"$#~nAssetId~\" + getAsset().getTxFormNo() +\"~S\" +\n \"$#~nLineNo~\" + getLineNo() +\"~N\" + \n \"$nAge~\" + getAge() + \"~N\" +\n \"$nAmount~\" + getAmount() + \"~N\" +\n \"$cType~\" + getType() + \"~S\" + \n \"$cUse~\" + getUse() + \"~S\").replace(\"'\", \" \"); \n }", "title": "" }, { "docid": "9645c48db6909c33aab2fe93fce566a4", "score": "0.47811007", "text": "public interface FreegiftDAO {\n /**\n * @return the all the Menu record.\n */\n @SqlQuery(\"Select * from FREEGIFT\")\n @Mapper(FreegiftMapper.class)\n List<Freegift> show();\n}", "title": "" }, { "docid": "24cd4c3291362c5515403dbff095e5af", "score": "0.47752652", "text": "private String getRepeatSql() {\n\t\tString sql = \"select pname as name,cname as classname,source as sourcefile,size,assets.md5 from assets,\"\n\t\t\t\t\t+ \"( select md5 from assets where \"\n\t\t\t\t\t+ \"uuid='\"+fileId.toString()+\"'group by md5 having count(*) > 1 ) t2\"\n\t\t\t\t+ \" where assets.md5=t2.md5 and uuid='\"+fileId.toString()+\"'\"\n\t\t\t\t+ \" order by assets.md5;\";\n\t\t\n\t\treturn sql;\n\t}", "title": "" }, { "docid": "cf12ff07daa00c2be11e5ecc3ba10ec9", "score": "0.47714305", "text": "@SuppressWarnings(\"checkstyle:LineLength\")\npublic interface WorkbasketAccessMapper {\n\n @Select(\n \"<script>SELECT ID, WORKBASKET_ID, ACCESS_ID, ACCESS_NAME, PERM_READ, PERM_OPEN, PERM_APPEND, PERM_TRANSFER, PERM_DISTRIBUTE, PERM_CUSTOM_1, PERM_CUSTOM_2, PERM_CUSTOM_3, PERM_CUSTOM_4, PERM_CUSTOM_5, PERM_CUSTOM_6, PERM_CUSTOM_7, PERM_CUSTOM_8, PERM_CUSTOM_9, PERM_CUSTOM_10, PERM_CUSTOM_11, PERM_CUSTOM_12 \"\n + \"FROM WORKBASKET_ACCESS_LIST WHERE ID = #{id} \"\n + \"<if test=\\\"_databaseId == 'db2'\\\">with UR </if> \"\n + \"</script>\")\n @Results(\n value = {\n @Result(property = \"id\", column = \"ID\"),\n @Result(property = \"workbasketId\", column = \"WORKBASKET_ID\"),\n @Result(property = \"accessId\", column = \"ACCESS_ID\"),\n @Result(property = \"accessName\", column = \"ACCESS_NAME\"),\n @Result(property = \"permRead\", column = \"PERM_READ\"),\n @Result(property = \"permOpen\", column = \"PERM_OPEN\"),\n @Result(property = \"permAppend\", column = \"PERM_APPEND\"),\n @Result(property = \"permTransfer\", column = \"PERM_TRANSFER\"),\n @Result(property = \"permDistribute\", column = \"PERM_DISTRIBUTE\"),\n @Result(property = \"permCustom1\", column = \"PERM_CUSTOM_1\"),\n @Result(property = \"permCustom2\", column = \"PERM_CUSTOM_2\"),\n @Result(property = \"permCustom3\", column = \"PERM_CUSTOM_3\"),\n @Result(property = \"permCustom4\", column = \"PERM_CUSTOM_4\"),\n @Result(property = \"permCustom5\", column = \"PERM_CUSTOM_5\"),\n @Result(property = \"permCustom6\", column = \"PERM_CUSTOM_6\"),\n @Result(property = \"permCustom7\", column = \"PERM_CUSTOM_7\"),\n @Result(property = \"permCustom8\", column = \"PERM_CUSTOM_8\"),\n @Result(property = \"permCustom9\", column = \"PERM_CUSTOM_9\"),\n @Result(property = \"permCustom10\", column = \"PERM_CUSTOM_10\"),\n @Result(property = \"permCustom11\", column = \"PERM_CUSTOM_11\"),\n @Result(property = \"permCustom12\", column = \"PERM_CUSTOM_12\")\n })\n WorkbasketAccessItemImpl findById(@Param(\"id\") String id);\n\n @Select(\n \"<script>SELECT WBA.ID, WORKBASKET_ID, WB.KEY, ACCESS_ID, ACCESS_NAME, PERM_READ, PERM_OPEN, PERM_APPEND, PERM_TRANSFER, PERM_DISTRIBUTE, PERM_CUSTOM_1, PERM_CUSTOM_2, PERM_CUSTOM_3, PERM_CUSTOM_4, PERM_CUSTOM_5, PERM_CUSTOM_6, PERM_CUSTOM_7, PERM_CUSTOM_8, PERM_CUSTOM_9, PERM_CUSTOM_10, PERM_CUSTOM_11, PERM_CUSTOM_12 \"\n + \"FROM WORKBASKET_ACCESS_LIST AS WBA LEFT JOIN WORKBASKET AS WB ON WORKBASKET_ID = WB.ID WHERE WORKBASKET_ID = #{id} \"\n + \"<if test=\\\"_databaseId == 'db2'\\\">with UR </if> \"\n + \"</script>\")\n @Results(\n value = {\n @Result(property = \"id\", column = \"ID\"),\n @Result(property = \"workbasketId\", column = \"WORKBASKET_ID\"),\n @Result(property = \"workbasketKey\", column = \"KEY\"),\n @Result(property = \"accessId\", column = \"ACCESS_ID\"),\n @Result(property = \"accessName\", column = \"ACCESS_NAME\"),\n @Result(property = \"permRead\", column = \"PERM_READ\"),\n @Result(property = \"permOpen\", column = \"PERM_OPEN\"),\n @Result(property = \"permAppend\", column = \"PERM_APPEND\"),\n @Result(property = \"permTransfer\", column = \"PERM_TRANSFER\"),\n @Result(property = \"permDistribute\", column = \"PERM_DISTRIBUTE\"),\n @Result(property = \"permCustom1\", column = \"PERM_CUSTOM_1\"),\n @Result(property = \"permCustom2\", column = \"PERM_CUSTOM_2\"),\n @Result(property = \"permCustom3\", column = \"PERM_CUSTOM_3\"),\n @Result(property = \"permCustom4\", column = \"PERM_CUSTOM_4\"),\n @Result(property = \"permCustom5\", column = \"PERM_CUSTOM_5\"),\n @Result(property = \"permCustom6\", column = \"PERM_CUSTOM_6\"),\n @Result(property = \"permCustom7\", column = \"PERM_CUSTOM_7\"),\n @Result(property = \"permCustom8\", column = \"PERM_CUSTOM_8\"),\n @Result(property = \"permCustom9\", column = \"PERM_CUSTOM_9\"),\n @Result(property = \"permCustom10\", column = \"PERM_CUSTOM_10\"),\n @Result(property = \"permCustom11\", column = \"PERM_CUSTOM_11\"),\n @Result(property = \"permCustom12\", column = \"PERM_CUSTOM_12\")\n })\n List<WorkbasketAccessItemImpl> findByWorkbasketId(@Param(\"id\") String id);\n\n @Insert(\n \"INSERT INTO WORKBASKET_ACCESS_LIST (ID, WORKBASKET_ID, ACCESS_ID, ACCESS_NAME, PERM_READ, PERM_OPEN, PERM_APPEND, PERM_TRANSFER, PERM_DISTRIBUTE, PERM_CUSTOM_1, PERM_CUSTOM_2, PERM_CUSTOM_3, PERM_CUSTOM_4, PERM_CUSTOM_5, PERM_CUSTOM_6, PERM_CUSTOM_7, PERM_CUSTOM_8, PERM_CUSTOM_9, PERM_CUSTOM_10, PERM_CUSTOM_11, PERM_CUSTOM_12) \"\n + \"VALUES (#{workbasketAccessItem.id}, #{workbasketAccessItem.workbasketId}, #{workbasketAccessItem.accessId}, #{workbasketAccessItem.accessName}, #{workbasketAccessItem.permRead}, #{workbasketAccessItem.permOpen}, #{workbasketAccessItem.permAppend}, #{workbasketAccessItem.permTransfer}, #{workbasketAccessItem.permDistribute}, #{workbasketAccessItem.permCustom1}, #{workbasketAccessItem.permCustom2}, #{workbasketAccessItem.permCustom3}, #{workbasketAccessItem.permCustom4}, #{workbasketAccessItem.permCustom5}, #{workbasketAccessItem.permCustom6}, #{workbasketAccessItem.permCustom7}, #{workbasketAccessItem.permCustom8}, #{workbasketAccessItem.permCustom9}, #{workbasketAccessItem.permCustom10}, #{workbasketAccessItem.permCustom11}, #{workbasketAccessItem.permCustom12})\")\n @Options(keyProperty = \"id\", keyColumn = \"ID\")\n void insert(@Param(\"workbasketAccessItem\") WorkbasketAccessItemImpl workbasketAccessItem);\n\n @Update(\n \"UPDATE WORKBASKET_ACCESS_LIST SET WORKBASKET_ID = #{workbasketAccessItem.workbasketId}, ACCESS_ID = #{workbasketAccessItem.accessId}, ACCESS_NAME = #{workbasketAccessItem.accessName}, PERM_READ = #{workbasketAccessItem.permRead}, PERM_OPEN = #{workbasketAccessItem.permOpen}, PERM_APPEND = #{workbasketAccessItem.permAppend}, PERM_TRANSFER = #{workbasketAccessItem.permTransfer}, PERM_DISTRIBUTE = #{workbasketAccessItem.permDistribute}, PERM_CUSTOM_1 = #{workbasketAccessItem.permCustom1}, PERM_CUSTOM_2 = #{workbasketAccessItem.permCustom2}, PERM_CUSTOM_3 = #{workbasketAccessItem.permCustom3}, PERM_CUSTOM_4 = #{workbasketAccessItem.permCustom4}, PERM_CUSTOM_5 = #{workbasketAccessItem.permCustom5}, PERM_CUSTOM_6 = #{workbasketAccessItem.permCustom6}, PERM_CUSTOM_7 = #{workbasketAccessItem.permCustom7}, PERM_CUSTOM_8 = #{workbasketAccessItem.permCustom8}, PERM_CUSTOM_9 = #{workbasketAccessItem.permCustom9}, PERM_CUSTOM_10 = #{workbasketAccessItem.permCustom10}, PERM_CUSTOM_11 = #{workbasketAccessItem.permCustom11}, PERM_CUSTOM_12 = #{workbasketAccessItem.permCustom12} \"\n + \"WHERE id = #{workbasketAccessItem.id}\")\n void update(@Param(\"workbasketAccessItem\") WorkbasketAccessItemImpl workbasketAccessItem);\n\n @Delete(\"DELETE FROM WORKBASKET_ACCESS_LIST WHERE ID = #{id}\")\n void delete(@Param(\"id\") String id);\n\n @Delete(\"DELETE FROM WORKBASKET_ACCESS_LIST WHERE WORKBASKET_ID = #{workbasketId}\")\n void deleteAllAccessItemsForWorkbasketId(@Param(\"workbasketId\") String workbasketId);\n\n @Delete(\"DELETE FROM WORKBASKET_ACCESS_LIST where ACCESS_ID = #{accessId}\")\n void deleteAccessItemsForAccessId(@Param(\"accessId\") String accessId);\n\n @Select(\n \"<script>\"\n + \"<choose>\"\n + \"<when test=\\\"_databaseId == 'db2'\\\">\"\n + \"SELECT MAX(PERM_READ) AS P_READ, MAX(PERM_OPEN) AS P_OPEN, MAX(PERM_APPEND) AS P_APPEND, MAX(PERM_TRANSFER) AS P_TRANSFER, MAX(PERM_DISTRIBUTE) AS P_DISTRIBUTE, MAX(PERM_CUSTOM_1) AS P_CUSTOM_1, MAX(PERM_CUSTOM_2) AS P_CUSTOM_2, MAX(PERM_CUSTOM_3) AS P_CUSTOM_3, MAX(PERM_CUSTOM_4) AS P_CUSTOM_4, MAX(PERM_CUSTOM_5) AS P_CUSTOM_5, MAX(PERM_CUSTOM_6) AS P_CUSTOM_6, MAX(PERM_CUSTOM_7) AS P_CUSTOM_7, MAX(PERM_CUSTOM_8) AS P_CUSTOM_8, MAX(PERM_CUSTOM_9) AS P_CUSTOM_9, MAX(PERM_CUSTOM_10) AS P_CUSTOM_10, MAX(PERM_CUSTOM_11) AS P_CUSTOM_11, MAX(PERM_CUSTOM_12) AS P_CUSTOM_12 \"\n + \"</when>\"\n + \"<otherwise>\"\n + \"SELECT MAX(PERM_READ::int) AS P_READ, MAX(PERM_OPEN::int) AS P_OPEN, MAX(PERM_APPEND::int) AS P_APPEND, MAX(PERM_TRANSFER::int) AS P_TRANSFER, MAX(PERM_DISTRIBUTE::int) AS P_DISTRIBUTE, MAX(PERM_CUSTOM_1::int) AS P_CUSTOM_1, MAX(PERM_CUSTOM_2::int) AS P_CUSTOM_2, MAX(PERM_CUSTOM_3::int) AS P_CUSTOM_3, MAX(PERM_CUSTOM_4::int) AS P_CUSTOM_4, MAX(PERM_CUSTOM_5::int) AS P_CUSTOM_5, MAX(PERM_CUSTOM_6::int) AS P_CUSTOM_6, MAX(PERM_CUSTOM_7::int) AS P_CUSTOM_7, MAX(PERM_CUSTOM_8::int) AS P_CUSTOM_8, MAX(PERM_CUSTOM_9::int) AS P_CUSTOM_9, MAX(PERM_CUSTOM_10::int) AS P_CUSTOM_10, MAX(PERM_CUSTOM_11::int) AS P_CUSTOM_11, MAX(PERM_CUSTOM_12::int) AS P_CUSTOM_12 \"\n + \"</otherwise>\"\n + \"</choose>\"\n + \"FROM WORKBASKET_ACCESS_LIST \"\n + \"WHERE WORKBASKET_ID = #{workbasketId} \"\n + \"AND ACCESS_ID IN(<foreach item='item' collection='accessIds' separator=',' >#{item}</foreach>) \"\n + \"<if test=\\\"_databaseId == 'db2'\\\">with UR </if> \"\n + \"</script>\")\n @Results(\n value = {\n @Result(property = \"id\", column = \"ID\"),\n @Result(property = \"workbasketId\", column = \"WORKBASKET_ID\"),\n @Result(property = \"accessId\", column = \"ACCESS_ID\"),\n @Result(property = \"accessName\", column = \"ACCESS_NAME\"),\n @Result(property = \"permRead\", column = \"P_READ\"),\n @Result(property = \"permOpen\", column = \"P_OPEN\"),\n @Result(property = \"permAppend\", column = \"P_APPEND\"),\n @Result(property = \"permTransfer\", column = \"P_TRANSFER\"),\n @Result(property = \"permDistribute\", column = \"P_DISTRIBUTE\"),\n @Result(property = \"permCustom1\", column = \"P_CUSTOM_1\"),\n @Result(property = \"permCustom2\", column = \"P_CUSTOM_2\"),\n @Result(property = \"permCustom3\", column = \"P_CUSTOM_3\"),\n @Result(property = \"permCustom4\", column = \"P_CUSTOM_4\"),\n @Result(property = \"permCustom5\", column = \"P_CUSTOM_5\"),\n @Result(property = \"permCustom6\", column = \"P_CUSTOM_6\"),\n @Result(property = \"permCustom7\", column = \"P_CUSTOM_7\"),\n @Result(property = \"permCustom8\", column = \"P_CUSTOM_8\"),\n @Result(property = \"permCustom9\", column = \"P_CUSTOM_9\"),\n @Result(property = \"permCustom10\", column = \"P_CUSTOM_10\"),\n @Result(property = \"permCustom11\", column = \"P_CUSTOM_11\"),\n @Result(property = \"permCustom12\", column = \"P_CUSTOM_12\")\n })\n WorkbasketAccessItemImpl findByWorkbasketAndAccessId(\n @Param(\"workbasketId\") String workbasketId, @Param(\"accessIds\") List<String> accessIds);\n\n @Select(\n \"<script>\"\n + \"<choose>\"\n + \"<when test=\\\"_databaseId == 'db2'\\\">\"\n + \"SELECT MAX(PERM_READ) AS P_READ, MAX(PERM_OPEN) AS P_OPEN, MAX(PERM_APPEND) AS P_APPEND, MAX(PERM_TRANSFER) AS P_TRANSFER, MAX(PERM_DISTRIBUTE) AS P_DISTRIBUTE, MAX(PERM_CUSTOM_1) AS P_CUSTOM_1, MAX(PERM_CUSTOM_2) AS P_CUSTOM_2, MAX(PERM_CUSTOM_3) AS P_CUSTOM_3, MAX(PERM_CUSTOM_4) AS P_CUSTOM_4, MAX(PERM_CUSTOM_5) AS P_CUSTOM_5, MAX(PERM_CUSTOM_6) AS P_CUSTOM_6, MAX(PERM_CUSTOM_7) AS P_CUSTOM_7, MAX(PERM_CUSTOM_8) AS P_CUSTOM_8, MAX(PERM_CUSTOM_9) AS P_CUSTOM_9, MAX(PERM_CUSTOM_10) AS P_CUSTOM_10, MAX(PERM_CUSTOM_11) AS P_CUSTOM_11, MAX(PERM_CUSTOM_12) AS P_CUSTOM_12 \"\n + \"</when>\"\n + \"<otherwise>\"\n + \"SELECT MAX(PERM_READ::int) AS P_READ, MAX(PERM_OPEN::int) AS P_OPEN, MAX(PERM_APPEND::int) AS P_APPEND, MAX(PERM_TRANSFER::int) AS P_TRANSFER, MAX(PERM_DISTRIBUTE::int) AS P_DISTRIBUTE, MAX(PERM_CUSTOM_1::int) AS P_CUSTOM_1, MAX(PERM_CUSTOM_2::int) AS P_CUSTOM_2, MAX(PERM_CUSTOM_3::int) AS P_CUSTOM_3, MAX(PERM_CUSTOM_4::int) AS P_CUSTOM_4, MAX(PERM_CUSTOM_5::int) AS P_CUSTOM_5, MAX(PERM_CUSTOM_6::int) AS P_CUSTOM_6, MAX(PERM_CUSTOM_7::int) AS P_CUSTOM_7, MAX(PERM_CUSTOM_8::int) AS P_CUSTOM_8, MAX(PERM_CUSTOM_9::int) AS P_CUSTOM_9, MAX(PERM_CUSTOM_10::int) AS P_CUSTOM_10, MAX(PERM_CUSTOM_11::int) AS P_CUSTOM_11, MAX(PERM_CUSTOM_12::int) AS P_CUSTOM_12 \"\n + \"</otherwise>\"\n + \"</choose>\"\n + \"FROM WORKBASKET_ACCESS_LIST \"\n + \"WHERE WORKBASKET_ID in (SELECT ID FROM WORKBASKET WHERE KEY = #{workbasketKey} AND DOMAIN = #{domain} ) \"\n + \"AND ACCESS_ID IN(<foreach item='item' collection='accessIds' separator=',' >#{item}</foreach>) \"\n + \"<if test=\\\"_databaseId == 'db2'\\\">with UR </if> \"\n + \"</script>\")\n @Results(\n value = {\n @Result(property = \"workbasketId\", column = \"WORKBASKET_ID\"),\n @Result(property = \"accessId\", column = \"ACCESS_ID\"),\n @Result(property = \"accessName\", column = \"ACCESS_NAME\"),\n @Result(property = \"permRead\", column = \"P_READ\"),\n @Result(property = \"permOpen\", column = \"P_OPEN\"),\n @Result(property = \"permAppend\", column = \"P_APPEND\"),\n @Result(property = \"permTransfer\", column = \"P_TRANSFER\"),\n @Result(property = \"permDistribute\", column = \"P_DISTRIBUTE\"),\n @Result(property = \"permCustom1\", column = \"P_CUSTOM_1\"),\n @Result(property = \"permCustom2\", column = \"P_CUSTOM_2\"),\n @Result(property = \"permCustom3\", column = \"P_CUSTOM_3\"),\n @Result(property = \"permCustom4\", column = \"P_CUSTOM_4\"),\n @Result(property = \"permCustom5\", column = \"P_CUSTOM_5\"),\n @Result(property = \"permCustom6\", column = \"P_CUSTOM_6\"),\n @Result(property = \"permCustom7\", column = \"P_CUSTOM_7\"),\n @Result(property = \"permCustom8\", column = \"P_CUSTOM_8\"),\n @Result(property = \"permCustom9\", column = \"P_CUSTOM_9\"),\n @Result(property = \"permCustom10\", column = \"P_CUSTOM_10\"),\n @Result(property = \"permCustom11\", column = \"P_CUSTOM_11\"),\n @Result(property = \"permCustom12\", column = \"P_CUSTOM_12\")\n })\n WorkbasketAccessItemImpl findByWorkbasketKeyDomainAndAccessId(\n @Param(\"workbasketKey\") String workbasketKey,\n @Param(\"domain\") String domain,\n @Param(\"accessIds\") List<String> accessIds);\n}", "title": "" }, { "docid": "5d9f4a156ae907070d3d1a6dfa39c8a6", "score": "0.4771405", "text": "public void tampilkanTable(String query) throws SQLException {\n Database db = new Database();\n model.getDataVector().removeAllElements();\n model.fireTableDataChanged();\n ResultSet rs = db.tampilBuku(query); \n try{\n while(rs.next()){\n Object[] data = new Object[9];\n data[0]=rs.getString(\"isbn\");\n data[1]=rs.getString(\"judul_buku\");\n data[2]=rs.getString(\"pengarang\");\n data[3]=rs.getString(\"penerbit\");\n data[4]=rs.getString(\"tahun_terbit\");\n data[5]=rs.getString(\"tempat_terbit\");\n data[6]=rs.getString(\"harga\");\n data[7]=rs.getString(\"jumlah_stok\");\n data[8]=rs.getString(\"lokasi_penempatan\");\n model.addRow(data);\n } \n }catch(SQLException e){\n System.out.println(\"gagal\");\n }\n }", "title": "" }, { "docid": "dbbd4f580c29d0096cab9679740475d1", "score": "0.47708547", "text": "@Column(name=\"BNDQTJS\", nullable=true, length=100)\n/* */ public String getBndqtjs()\n/* */ {\n/* 126 */ return this.bndqtjs;\n/* */ }", "title": "" }, { "docid": "58ab7d96f6415981954be46dbc0a40e6", "score": "0.47684294", "text": "@Mapper\r\npublic interface AlarmHistoryMapper {\r\n\r\n @Select(\"SELECT * FROM ip_alarm_his WHERE device_id = #{deviceId} and park_code=#{parkCode} LIMIT 1\")\r\n @Results(value = {\r\n @Result(property = \"deviceId\", column = \"device_id\", javaType = Integer.class, jdbcType = JdbcType.INTEGER),\r\n @Result(property = \"alarmDeviceName\", column = \"alarm_device_name\", javaType = String.class, jdbcType = JdbcType.VARCHAR),\r\n @Result(property = \"alarmDeviceCode\", column = \"alarm_device_code\", javaType = String.class, jdbcType = JdbcType.VARCHAR),\r\n @Result(property = \"alarmDeviceLocate\", column = \"alarm_device_locate\", javaType = String.class, jdbcType = JdbcType.VARCHAR),\r\n @Result(property = \"alarmTitle\", column = \"alarm_title\", javaType = String.class, jdbcType = JdbcType.VARCHAR),\r\n @Result(property = \"alarmContent\", column = \"alarm_content\", javaType = String.class, jdbcType = JdbcType.VARCHAR),\r\n @Result(property = \"alarmLevel\", column = \"alarm_level\", javaType = Integer.class, jdbcType = JdbcType.INTEGER),\r\n @Result(property = \"alarmDate\", column = \"alarm_date\", javaType = Date.class, jdbcType = JdbcType.TIMESTAMP),\r\n @Result(property=\"parkCode\",column=\"park_code\",javaType=String.class,jdbcType=JdbcType.VARCHAR)})\r\n AlarmHistory findByDeviceId(@Param(\"deviceId\") int deviceId ,@Param(\"parkCode\") String parkCode);\r\n\r\n @Insert(\"INSERT INTO ip_alarm_his(device_id, alarm_device_name, alarm_device_code, alarm_device_locate,alarm_title,alarm_content,alarm_level,alarm_date,park_code)\" +\r\n \"VALUES(#{alarmHistory.deviceId}, #{alarmHistory.alarmDeviceName}, #{alarmHistory.alarmDeviceCode}, #{alarmHistory.alarmDeviceLocate}, #{alarmHistory.alarmTitle}, #{alarmHistory.alarmContent}, #{alarmHistory.alarmLevel}, #{alarmHistory.alarmDate},#{alarmHistory.parkCode})\")\r\n void save(@Param(\"alarmHistory\") AlarmHistory alarmHistory);\r\n}", "title": "" }, { "docid": "ed6b165b56f786686eb64b61e65c79d3", "score": "0.47659782", "text": "@Test\n public void testTheCorrectResultIsReturnedFromGetObjectIntMap() throws SQLException {\n given_AMockConnection();\n given_AMockResultSet();\n given_ADDTFixture();\n final java.lang.Object mock = mock(java.lang.Object.class);\n given_ARowContainingTheValues(mock);\n when_SetResultIsCalledWith(row);\n when_GetObjectMapIsCalledOnColumn(1);\n then_TheResultIs(mock);\n }", "title": "" }, { "docid": "63b0185dd9c5a402411e93fd5bb751c0", "score": "0.47652012", "text": "@Mapper\r\npublic interface ClientLogMapper {\r\n\r\n\r\n\r\n @Insert(\"INSERT INTO ip_client_log(client, action,action_date,park_code)\" +\r\n \"VALUES(#{clientLog.client}, #{clientLog.action},#{clientLog.actionDate},#{clientLog.parkCode})\")\r\n void save(@Param(\"clientLog\") ClientLog clientLog);\r\n\r\n\r\n @Select(\"SELECT * FROM ip_client_log where and park_code=#{parkCode} order by id desc\")\r\n @Results(value = {\r\n @Result(property = \"actionDate\", column = \"action_date\", javaType = Date.class, jdbcType = JdbcType.TIMESTAMP),\r\n @Result(property=\"parkCode\",column=\"park_code\",javaType=String.class,jdbcType=JdbcType.VARCHAR)})\r\n List<ClientLog> findAll(@Param(\"parkCode\") String parkCode);\r\n\r\n}", "title": "" }, { "docid": "15bc5748e47964867f7202ebc5ff1873", "score": "0.47649547", "text": "@Test\n public void testSqlQueryHistory() {\n SqlQuery<Integer, String> qry = new SqlQuery(\"String\", \"from String\");\n checkQueryMetrics(qry);\n }", "title": "" }, { "docid": "fe097571e88d6589fefa766cf22df2ea", "score": "0.4759309", "text": "@Select({ \"select\", \"cons_tipo_id, cons_tipo_cod, cons_tipo_desc, validita_inizio, validita_fine, \",\n\t\t\t\"utente_operazione, data_creazione, data_modifica, data_cancellazione\", \"from covidus_d_consenso_tipo\",\n\t\t\t\"where cons_tipo_id = #{consTipoId,jdbcType=INTEGER}\" })\n\t@Results({ @Result(column = \"cons_tipo_id\", property = \"consTipoId\", jdbcType = JdbcType.INTEGER, id = true),\n\t\t\t@Result(column = \"cons_tipo_cod\", property = \"consTipoCod\", jdbcType = JdbcType.VARCHAR),\n\t\t\t@Result(column = \"cons_tipo_desc\", property = \"consTipoDesc\", jdbcType = JdbcType.VARCHAR),\n\t\t\t@Result(column = \"validita_inizio\", property = \"validitaInizio\", jdbcType = JdbcType.TIMESTAMP),\n\t\t\t@Result(column = \"validita_fine\", property = \"validitaFine\", jdbcType = JdbcType.TIMESTAMP),\n\t\t\t@Result(column = \"utente_operazione\", property = \"utenteOperazione\", jdbcType = JdbcType.VARCHAR),\n\t\t\t@Result(column = \"data_creazione\", property = \"dataCreazione\", jdbcType = JdbcType.TIMESTAMP),\n\t\t\t@Result(column = \"data_modifica\", property = \"dataModifica\", jdbcType = JdbcType.TIMESTAMP),\n\t\t\t@Result(column = \"data_cancellazione\", property = \"dataCancellazione\", jdbcType = JdbcType.TIMESTAMP) })\n\tCovidusDConsensoTipo selectByPrimaryKey(Integer consTipoId);", "title": "" }, { "docid": "42b7afea7bd2ed7428e32735f3a36dd6", "score": "0.47583064", "text": "@Select({\n \"select\",\n \"id, user_id, staff_type, true_name, company, phone, id_card, card_number, create_time, \",\n \"update_time, remark, license_plate\",\n \"from bs_inventory_staff\",\n \"where id = #{id,jdbcType=INTEGER}\"\n })\n @Results({\n @Result(column=\"id\", property=\"id\", jdbcType=JdbcType.INTEGER, id=true),\n @Result(column=\"user_id\", property=\"userId\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"staff_type\", property=\"staffType\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"true_name\", property=\"trueName\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"company\", property=\"company\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"phone\", property=\"phone\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"id_card\", property=\"idCard\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"card_number\", property=\"cardNumber\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"create_time\", property=\"createTime\", jdbcType=JdbcType.TIMESTAMP),\n @Result(column=\"update_time\", property=\"updateTime\", jdbcType=JdbcType.TIMESTAMP),\n @Result(column=\"remark\", property=\"remark\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"license_plate\", property=\"licensePlate\", jdbcType=JdbcType.VARCHAR)\n })\n BsInventoryStaff selectByPrimaryKey(BsInventoryStaffKey key);", "title": "" }, { "docid": "f219ff081de2fdb72380c670eefe64bf", "score": "0.47582778", "text": "public static String selectDef6506_3(ConnectionProvider connectionProvider, String C_InvoiceLine_IDR) throws ServletException {\n String strSql = \"\";\n strSql = strSql + \n \" SELECT ( COALESCE(TO_CHAR(TO_CHAR(COALESCE(TO_CHAR(table3.DocumentNo), ''))), '') || ' - ' || COALESCE(TO_CHAR(TO_CHAR(table3.DateInvoiced, 'DD-MM-YYYY')), '') || ' - ' || COALESCE(TO_CHAR(TO_CHAR(COALESCE(TO_CHAR(table3.GrandTotal), ''))), '') || ' - ' || COALESCE(TO_CHAR(TO_CHAR(COALESCE(TO_CHAR(table2.Line), ''))), '') || ' - ' || COALESCE(TO_CHAR(TO_CHAR(COALESCE(TO_CHAR(table2.LineNetAmt), ''))), '') ) as C_InvoiceLine_ID FROM C_InvoiceLine left join (select C_InvoiceLine_ID, C_Invoice_ID, Line, LineNetAmt from C_InvoiceLine) table2 on (C_InvoiceLine.C_InvoiceLine_ID = table2.C_InvoiceLine_ID)left join (select C_Invoice_ID, DocumentNo, DateInvoiced, GrandTotal from C_Invoice) table3 on (table2.C_Invoice_ID = table3.C_Invoice_ID) WHERE C_InvoiceLine.isActive='Y' AND C_InvoiceLine.C_InvoiceLine_ID = ? \";\n\n ResultSet result;\n String strReturn = \"\";\n PreparedStatement st = null;\n\n int iParameter = 0;\n try {\n st = connectionProvider.getPreparedStatement(strSql);\n QueryTimeOutUtil.getInstance().setQueryTimeOut(st, SessionInfo.getQueryProfile());\n iParameter++; UtilSql.setValue(st, iParameter, 12, null, C_InvoiceLine_IDR);\n\n result = st.executeQuery();\n if(result.next()) {\n strReturn = UtilSql.getValue(result, \"c_invoiceline_id\");\n }\n result.close();\n } catch(SQLException e){\n log4j.error(\"SQL error in query: \" + strSql + \"Exception:\"+ e);\n throw new ServletException(\"@CODE=\" + Integer.toString(e.getErrorCode()) + \"@\" + e.getMessage());\n } catch(Exception ex){\n log4j.error(\"Exception in query: \" + strSql + \"Exception:\"+ ex);\n throw new ServletException(\"@CODE=@\" + ex.getMessage());\n } finally {\n try {\n connectionProvider.releasePreparedStatement(st);\n } catch(Exception ignore){\n ignore.printStackTrace();\n }\n }\n return(strReturn);\n }", "title": "" }, { "docid": "cef0dfece35480d1b6c7562a9aa7dd73", "score": "0.47563145", "text": "@Override\n\tpublic String getSql() {\n\t\treturn \"select * from tab1 a left join tab2 b on (a.id = b.id)\";\n\t}", "title": "" }, { "docid": "3062e8897348dd6baf83e6f44f0a362b", "score": "0.4747124", "text": "public void generateSQL() {\r\n\t\tUIMan.verbose(1, \"Generateing SQL queries for:\\n\" + this);\r\n\t\tthis.generateVioSQL();\r\n\t\tthis.generateSatSQL();\r\n\t\tthis.generateEvalSQL();\r\n\t\tthis.generateRevEvalSQL();\r\n\t}", "title": "" }, { "docid": "3159b93b69eeb787f640f4b7bee0f9f2", "score": "0.4742466", "text": "protected ViewRowImpl createRowFromResultSet(Object qc, \n ResultSet resultSet) {\n ViewRowImpl value = super.createRowFromResultSet(qc, resultSet);\n return value;\n }", "title": "" }, { "docid": "aad1f92f8ec77a904173e3f324e1baba", "score": "0.4741117", "text": "@Column(name=\"XJJE\", nullable=true, length=100)\n/* */ public String getXjje()\n/* */ {\n/* 190 */ return this.xjje;\n/* */ }", "title": "" }, { "docid": "f401cbfc33afa237fb3783016bdb9885", "score": "0.47380507", "text": "public List<T> mapRow(ResultSet rs, Class zClass) {\n\t\tList<T> results = new ArrayList<>();\n\t\ttry {\n\t\t\t\n\t\t\t// kiem tra zclass co annotation\n\t\t\tif (zClass.isAnnotationPresent(Entity.class)) {\n\t\t\t\t\n\t\t\t\t// access vao database\n\t\t\t\tResultSetMetaData resultSetMetaData = rs.getMetaData();\n\t\t\t\t\n\t\t\t\t// Field reflect get tat ca nhung field trong zclass => get name va value cua\n\t\t\t\t// field\n\t\t\t\tField[] fields = zClass.getDeclaredFields();\n\t\t\t\twhile (rs.next()) {\t\t\t\t\t\n\t\t\t\t\t// convert zclass qua doi tuong\n\t\t\t\t\tT object = (T) zClass.newInstance();\t\t\t\t\t\n\t\t\t\t\t// get gia tri cau 1 row trong resultset set vao torng entity\n\t\t\t\t\tfor (int i = 0; i < resultSetMetaData.getColumnCount(); i++) {\t\t\t\t\t\t\n\t\t\t\t\t\t// lay ten field\n\t\t\t\t\t\tString columnName = resultSetMetaData.getColumnName(i + 1);\n\t\t\t\t\t\tObject columnValue = rs.getObject(i + 1);\n\t\t\t\t\t\t// current class\t\n\t\t\t\t\t\tconvertResultSetToEntity(fields,columnName,columnValue,object);\n\t\t\t\t\t\t// parent class\n\t\t\t\t\t\tClass<?> parentClass=zClass.getSuperclass();\n\t\t\t\t\t\twhile(parentClass !=null) {\n\t\t\t\t\t\t\tField[] fieldsParent = parentClass.getDeclaredFields();\n\t\t\t\t\t\t\t//logic convert data\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tconvertResultSetToEntity(fieldsParent,columnName,columnValue,object);\n\t\t\t\t\t\t\tparentClass=parentClass.getSuperclass();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tresults.add(object);\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn results;\n\t}", "title": "" }, { "docid": "6b64cc34626f87bd9e950e4546bd105c", "score": "0.47334015", "text": "private String getQuerryCall() {\n String out = \"SELECT \";\n boolean comma = false;\n for(DBVariable v: tableVar) {\n if(comma) {\n out+=\",\"+v.idname;\n } else {\n comma = true;\n out+=v.idname;\n }\n }\n out+=\" FROM \"+getTableName();\n return out;\n }", "title": "" }, { "docid": "4f367f230c3e5e08d89cb02fe6f27d7c", "score": "0.47274923", "text": "public String toReadKodeBarang(){\r\n return \"SELECT kd_brg, SUM(qty_beli) FROM sementara2 GROUP BY kd_brg\";\r\n }", "title": "" }, { "docid": "092e2d0ee7fa1adb20321bacbdfb0501", "score": "0.47273698", "text": "Plan_mat selectByPrimaryKey(String planMatId);", "title": "" }, { "docid": "42d5506b8c3b9ef9f484de651a620ecb", "score": "0.4719477", "text": "@Mapper\npublic interface MybatisRepository {\n @Select(\"SELECT idx, title, contents FROM BOARD LIMIT #{size}\")\n List<Board> findBoards(@Param(\"size\") int size);\n}", "title": "" }, { "docid": "9330383c543c95e335eac990c41c35f7", "score": "0.47178638", "text": "@Override\n public Supplier mapRow(ResultSet rs, int rowNum) throws SQLException {\n \n Supplier supplier = new Supplier();\n supplier.setsId(rs.getLong(\"s_id\"));\n supplier.setName(rs.getString(\"name\"));\n supplier.setShortname(rs.getString(\"shortname\"));\n return supplier;\n }", "title": "" }, { "docid": "01272ac67bee8d12747dbd85bcbd51a2", "score": "0.4714122", "text": "public List<DetalleCierreCaja> obtenerListaDetalleCierreCaja(InterfazContableProceso interfazContableProceso, int idSucursal)\r\n/* 113: */ {\r\n/* 114:113 */ List<DetalleCierreCaja> listaCierreCaja = new ArrayList();\r\n/* 115:114 */ int idInterfazContableProceso = interfazContableProceso.getIdInterfazContableProceso();\r\n/* 116: */ \r\n/* 117:116 */ StringBuilder sql1 = new StringBuilder();\r\n/* 118:117 */ sql1.append(\" SELECT New DetalleCierreCaja (d.idDetalleCierreCaja,d.idSucursal,d.idOrganizacion,d.valor,i.idInterfazContableProceso,\");\r\n/* 119:118 */ sql1.append(\" i.numero,i.documentoBase,cc.idCierreCaja,cc.valor,cc.fechaHasta,cc.numero,\");\r\n/* 120:119 */ sql1.append(\" dfc.idDetalleFormaCobro,dfc.documentoReferencia,co.idCobro,co.fecha,co.numero,\");\r\n/* 121:120 */ sql1.append(\" e.idEmpresa,e.nombreFiscal,\");\r\n/* 122:121 */ sql1.append(\" fp.idFormaPago,fp.nombre,u.idUsuario,u.nombreUsuario) \");\r\n/* 123:122 */ sql1.append(\" from DetalleCierreCaja d \");\r\n/* 124: */ \r\n/* 125: */ \r\n/* 126:125 */ sql1.append(\" LEFT JOIN d.interfazContableProceso i \");\r\n/* 127:126 */ sql1.append(\" JOIN d.cierreCaja cc \");\r\n/* 128:127 */ sql1.append(\" LEFT JOIN cc.caja c \");\r\n/* 129:128 */ sql1.append(\" JOIN cc.usuario u \");\r\n/* 130:129 */ sql1.append(\" JOIN d.detalleFormaCobro dfc \");\r\n/* 131:130 */ sql1.append(\" JOIN dfc.formaPago fp \");\r\n/* 132:131 */ sql1.append(\" JOIN dfc.cobro co \");\r\n/* 133:132 */ sql1.append(\" JOIN co.empresa e \");\r\n/* 134:133 */ sql1.append(\" WHERE ((i IS NULL AND co.fecha <= :fechaDeposito) OR i.idInterfazContableProceso = :idInterfazContableProceso) \");\r\n/* 135:134 */ sql1.append(\" AND d.idSucursal = :idSucursal \");\r\n/* 136:135 */ sql1.append(\" AND fp.indicadorDepositoAutomatico = false \");\r\n/* 137:136 */ sql1.append(\" AND fp.indicadorRetencionFuente = false \");\r\n/* 138:137 */ sql1.append(\" AND fp.indicadorRetencionIva = false \");\r\n/* 139:138 */ sql1.append(\" AND co.estado = :estado \");\r\n/* 140: */ \r\n/* 141:140 */ Query query = this.em.createQuery(sql1.toString());\r\n/* 142:141 */ query.setParameter(\"idInterfazContableProceso\", Integer.valueOf(idInterfazContableProceso));\r\n/* 143:142 */ query.setParameter(\"idSucursal\", Integer.valueOf(idSucursal));\r\n/* 144:143 */ query.setParameter(\"fechaDeposito\", interfazContableProceso.getFechaHasta());\r\n/* 145:144 */ query.setParameter(\"estado\", Estado.CONTABILIZADO);\r\n/* 146:145 */ listaCierreCaja.addAll(query.getResultList());\r\n/* 147: */ \r\n/* 148: */ \r\n/* 149:148 */ StringBuilder sql2 = new StringBuilder();\r\n/* 150:149 */ sql2.append(\"SELECT New DetalleCierreCaja (d.idDetalleCierreCaja,d.idSucursal,d.idOrganizacion,d.valor,i.idInterfazContableProceso,i.numero,i.documentoBase,cc.idCierreCaja,cc.valor,cc.fechaHasta,cc.numero,\");\r\n/* 151:150 */ sql2.append(\"ac.idAnticipoCliente,ac.documentoReferencia,ac.fecha,ac.numero,e.idEmpresa,e.nombreFiscal, \");\r\n/* 152:151 */ sql2.append(\"fp.idFormaPago,fp.nombre,u.idUsuario,u.nombreUsuario) \");\r\n/* 153:152 */ sql2.append(\"FROM DetalleCierreCaja d \");\r\n/* 154:153 */ sql2.append(\"LEFT JOIN d.interfazContableProceso i \");\r\n/* 155: */ \r\n/* 156: */ \r\n/* 157:156 */ sql2.append(\"JOIN d.cierreCaja cc \");\r\n/* 158:157 */ sql2.append(\"LEFT JOIN cc.caja c \");\r\n/* 159:158 */ sql2.append(\"JOIN cc.usuario u \");\r\n/* 160:159 */ sql2.append(\"JOIN d.anticipoCliente ac \");\r\n/* 161:160 */ sql2.append(\"JOIN ac.empresa e \");\r\n/* 162:161 */ sql2.append(\"JOIN ac.formaPago fp \");\r\n/* 163: */ \r\n/* 164:163 */ sql2.append(\"WHERE ((i IS NULL AND ac.fecha <= :fechaDeposito) OR i.idInterfazContableProceso = :idInterfazContableProceso) \");\r\n/* 165:164 */ sql2.append(\"AND d.idSucursal = :idSucursal \");\r\n/* 166:165 */ sql2.append(\"AND fp.indicadorDepositoAutomatico = false \");\r\n/* 167:166 */ sql2.append(\"AND ac.estado <> :estado \");\r\n/* 168: */ \r\n/* 169:168 */ query = this.em.createQuery(sql2.toString());\r\n/* 170:169 */ query.setParameter(\"idInterfazContableProceso\", Integer.valueOf(idInterfazContableProceso));\r\n/* 171:170 */ query.setParameter(\"idSucursal\", Integer.valueOf(idSucursal));\r\n/* 172:171 */ query.setParameter(\"fechaDeposito\", interfazContableProceso.getFechaHasta());\r\n/* 173:172 */ query.setParameter(\"estado\", Estado.ANULADO);\r\n/* 174:173 */ listaCierreCaja.addAll(query.getResultList());\r\n/* 175:175 */ for (DetalleCierreCaja detalleCierreCaja : listaCierreCaja) {\r\n/* 176:176 */ if (detalleCierreCaja.getInterfazContableProceso() != null) {\r\n/* 177:177 */ detalleCierreCaja.setSeleccionado(true);\r\n/* 178: */ }\r\n/* 179: */ }\r\n/* 180:181 */ return listaCierreCaja;\r\n/* 181: */ }", "title": "" }, { "docid": "1c5b2b0695ddbea978ea969206821058", "score": "0.47073278", "text": "public void buildResultsTable() throws SQLException {\r\n\r\n\t\tbuildTable();\r\n\r\n\t}", "title": "" } ]
40420e2f1e631119a2d4eba0b7ba341b
Show the menu options
[ { "docid": "60603fd96e460f40c858ee9ea27b6a5c", "score": "0.7454744", "text": "public void showMenu() {\n\t\tSystem.out.println(\"Please, choose one option!\");\n\t\tSystem.out.println(\"[ 1 ] - Highest Company Capital\");\n\t\tSystem.out.println(\"[ 2 ] - Lowest Company Capital\");\n\t\tSystem.out.println(\"[ 3 ] - Best Investor of the Day\");\n\t\tSystem.out.println(\"[ 4 ] - Worst Investor of the Day\");\n\t\tSystem.out.println(\"[ 0 ] - Exit\");\n\t}", "title": "" } ]
[ { "docid": "2dc3fb26be3e519b55adb8c8e1064cad", "score": "0.77779526", "text": "private void displayMenuOptions()\n {\n // display user options menu\n System.out.println(\"\");\n System.out.println(\"----------------------------------------------------\");\n System.out.println(\"\");\n System.out.println(\"COMMAND OPTIONS:\");\n System.out.println(\"\");\n System.out.println(\" 'on' to force power controller to ON state\");\n System.out.println(\" 'off' to force power controller to OFF state\");\n System.out.println(\" 'status' to see current power controller state\");\n System.out.println(\" 'sunrise' to display sunrise time.\");\n System.out.println(\" 'sunset' to display sunset time.\");\n System.out.println(\" 'next' to display next scheduled event.\");\n System.out.println(\" 'time' to display current time.\");\n System.out.println(\" 'coord' to display longitude and latitude.\");\n System.out.println(\" 'help' to display this menu.\");\n System.out.println(\"\");\n System.out.println(\"PRESS 'CTRL-C' TO TERMINATE\");\n System.out.println(\"\");\n System.out.println(\"----------------------------------------------------\");\n System.out.println(\"\");\n }", "title": "" }, { "docid": "7becca02af32e3f4e74efbf482bc65e0", "score": "0.76237696", "text": "private void printMenu() {\n\t\tSystem.out.println(\"Select an option :\\n----------------\");\n\t\tfor (int i = 0, size = OPTIONS.size(); i < size; i++) {\n\t\t\tSystem.out.println(OPTIONS.get(i));\n\t\t}\n\t}", "title": "" }, { "docid": "1ae3bf08cd3301b5daba65a3640d7a88", "score": "0.7599787", "text": "private static void showMenu() {\n System.out.println(\"1. Dodaj zadanie\");\n System.out.println(\"2. Wykonaj zadanie.\");\n System.out.println(\"3. Zamknij program\");\n }", "title": "" }, { "docid": "e01911009f313aa53812a98717e2f7bf", "score": "0.75237983", "text": "public void showOptions()\n {\n //make the options window visible\n optionsScreen.setVisible(true);\n }", "title": "" }, { "docid": "9a29ebb3a71b08eb6a54cd221c9205e7", "score": "0.7485042", "text": "private void displayOptions() {\n\t\tSystem.out.println();\n\t\tSystem.out.println(\"Main System Menu\");\n\t\tSystem.out.println(\"----------------\");\n\t\tSystem.out.println(\"A)dd polling place\");\n\t\tSystem.out.println(\"C)lose the polls\");\n\t\tSystem.out.println(\"R)esults\");\n\t\tSystem.out.println(\"P)er-polling-place results\");\n\t\tSystem.out.println(\"E)liminate lowest candidate\");\n\t\tSystem.out.println(\"?) display this menu of choices again\");\n\t\tSystem.out.println(\"Q)uit\");\n\t\tSystem.out.println();\n\t}", "title": "" }, { "docid": "ba1efcb0a09b97b836119d1b6ff64057", "score": "0.74720824", "text": "private void displayMenu() {\n\t\tSystem.out.println(\"********Loan Approval System***********\");\n\t\tSystem.out.println(\"\\n\");\n\t\tSystem.out.println(\n\t\t\t\t\"Choose the following options:\\n(l)Load Applicaitons\\n(s)Set the Budget\\n(m)Make a decision\\n(p)Print\\n(u)Update the application\");\n\n\t}", "title": "" }, { "docid": "df3b510b4f33ef293e74164dd0e81a40", "score": "0.7391107", "text": "private void displayMenu() {\r\n System.out.println(\"\\nSelect an option from below:\");\r\n System.out.println(\"\\t1. View current listings\");\r\n System.out.println(\"\\t2. List your vehicle\");\r\n System.out.println(\"\\t3. Remove your listing\");\r\n System.out.println(\"\\t4. Check if you won bid\");\r\n System.out.println(\"\\t5. Save listings file\");\r\n System.out.println(\"\\t6. Exit application\");\r\n\r\n }", "title": "" }, { "docid": "9276375af31f51a5972d7b74fe3758c7", "score": "0.737428", "text": "public static void listMainMenuOptions(){\n\t\tSystem.out.println(\"\\nWelcome to Vet Clinic Program. Please choose an option from the list below.\\n\");\n\t\tSystem.out.println(\"1: List all staff.\");\n\t\tSystem.out.println(\"2: List staff by category.\");\n\t\tSystem.out.println(\"3: List admin Staff performing a task.\");\n\t\tSystem.out.println(\"4: Search for a specific member of staff by name.\");\n\t\tSystem.out.println(\"5: List all animals.\");\n\t\tSystem.out.println(\"6: List animals by type.\");\n\t\tSystem.out.println(\"7: Search for a specific animal by name.\");\n\t\tSystem.out.println(\"8: See the Queue to the Veterinary\");\n\t\tSystem.out.println(\"9: Exit\");\n\t}", "title": "" }, { "docid": "3ebd0a9a97ffdbd66b1af72effb4a137", "score": "0.7319751", "text": "private static void showMenu(){\r\n\t\tSystem.out.println();\r\n\t\tSystem.out.println(\"What would you like to do?\");\r\n\t\tSystem.out.println(\"0) Show Shape information\");\r\n\t\tSystem.out.println(\"1) Create Shape\");\r\n\t\tSystem.out.println(\"2) Calculate perimeter\");\r\n\t\tSystem.out.println(\"3) Calculate area\");\r\n\t\tSystem.out.println(\"4) Scale shape\");\r\n\t}", "title": "" }, { "docid": "e492188f7ab4f9d5b8f90909a1ecdf55", "score": "0.7306179", "text": "static void displayMenu(){\n\t\tSystem.out.println(\"\");\n\t\tSystem.out.println(\"Select operation:\");\n\t\tSystem.out.println(\"1-List movies\");\n\t\tSystem.out.println(\"2-Show movie details\");\n\t\tSystem.out.println(\"3-Add a movie\");\n\t\tSystem.out.println(\"4-Add an example set of 5 movies\");\n\t\tSystem.out.println(\"5-Exit\");\n\t}", "title": "" }, { "docid": "1b2fd65363819692a9a1c59905eeba4e", "score": "0.7301254", "text": "public void showMenu() {\n menuController.showMenuPanel();\n }", "title": "" }, { "docid": "bf902c35c7e421a3e154e28a7152b585", "score": "0.72978234", "text": "private void displayMenu() {\n System.out.println(\"\\nSelect from:\");\n System.out.println(\"\\t1 -> add item to to-do list\");\n System.out.println(\"\\t2 -> remove item from to-do list\");\n System.out.println(\"\\t3 -> view to-do list\");\n System.out.println(\"\\t4 -> save work room to file\");\n System.out.println(\"\\t5 -> load work room from file\");\n System.out.println(\"\\t6 -> quit\");\n }", "title": "" }, { "docid": "b125f438a666ead38636c0bce8daf12c", "score": "0.72439045", "text": "private void displayMenu()\r\n {\r\n System.out.println();\r\n System.out.println(\"--------- Main Menu -------------\");\r\n System.out.println(\"(1) Search Cars\");\r\n System.out.println(\"(2) Add Car\");\r\n System.out.println(\"(3) Delete Car\");\r\n System.out.println(\"(4) Exit System\");\r\n System.out.println(\"(5) Edit Cars\");\r\n }", "title": "" }, { "docid": "4f91e783d5d1f8e1d859af3afe49f4bd", "score": "0.72387755", "text": "public static void listMenuOptions(){\n\n System.out.println(\"Please choose an option:\");\n System.out.println(\"(1) Add a task.\");\n System.out.println(\"(2) Remove a task.\");\n System.out.println(\"(3) Update a task.\");\n System.out.println(\"(4) List all tasks.\");\n System.out.println(\"(0) Exit\");\n }", "title": "" }, { "docid": "a866e654985353610947df22ec6a4e88", "score": "0.7209513", "text": "public static void menu() {\n\t\tSystem.out.println(\"Menu:\");\n\t\tSystem.out.println(\"1: Create\");\n\t\tSystem.out.println(\"2: Merge\");\n\t\tSystem.out.println(\"3: Collection\");\n\t\tSystem.out.println(\"4: Upgrades\");\n\t\tSystem.out.println(\"5: Sell\");\n\t\tSystem.out.println(\"6: Identify Crystal\");\n\t\tSystem.out.println(\"\");\n\t}", "title": "" }, { "docid": "b8a3cb8021b8f863a306e3e88d45637f", "score": "0.72091687", "text": "public void showMenu() {\n\t\tSystem.out.println();\n\t\tSystem.out.println(\"\\t1. Show vertices\");\n\t\tSystem.out.println(\"\\t2. Show adjacent vertices\");\n\t\tSystem.out.println(\"\\t3. Get vertex count\");\n\t\tSystem.out.println(\"\\t4. Get edge count\");\n\t\tSystem.out.println(\"\\t5. Add vertex\");\n\t\tSystem.out.println(\"\\t6. Add edge\");\n\t\tSystem.out.println(\"\\t7. Remove vertex\");\n\t\tSystem.out.println(\"\\t8. Remove edge\");\n\t\tSystem.out.println(\"\\t9. Check connectivity\");\n\t\tSystem.out.println(\"\\t0. Check adjacency\");\n\t\tSystem.out.println(\"\\tTRAVERSAL ALGORITHMS\");\n\t\tSystem.out.println(\"\\t11. Depth-first traversal\");\n\t\tSystem.out.println(\"\\t12. Breadth-first traversal\");\n\t\t\n\t\tSystem.out.println(\"\\tINPUT -1 TO EXIT\");\n\t\tSystem.out.println();\n\t}", "title": "" }, { "docid": "967eb7d54e41e9738694fae88e5b48cd", "score": "0.72028106", "text": "public void showOptions() {\n frame.showOptions();\n }", "title": "" }, { "docid": "0baeff118463bafc538e58efe8ef6886", "score": "0.7176707", "text": "protected void printMenu() {\n System.out.println(\"\\nChoose an option:\");\n }", "title": "" }, { "docid": "2583dbb523dcdb23ad80c57a0224cfcc", "score": "0.71530414", "text": "private void displayMenu() {\n\t\tint option = MenuView.getMenuOption(\n\t\t\t\"Welcome \" + movieGoer.getName() + \"!\",\n\t\t\t\"View movie showtimes\",\n\t\t\t\"Book a ticket\",\n\t\t\t\"View movie details\",\n\t\t\t\"List top 5 movies\",\n\t\t\t\"View booking history\",\n\t\t\t\"Exit\"\n\t\t);\n\t\t\n\t\tswitch (option) {\n\t\t\tcase 1:\n\t\t\t\tNavigationController.load(new ShowTimeController());\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tcase 2:\n\t\t\t\tNavigationController.load(new BookingController(movieGoer));\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tcase 3:\n\t\t\t\tNavigationController.load(new MovieController(movieGoer));\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t\t\n\t\t\tcase 4:\n\t\t\t\tNavigationController.load(new TopMoviesController());\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tcase 5:\n\t\t\t\tNavigationController.load(new BookingHistoryController(movieGoer));\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tcase 6:\n\t\t\t\tNavigationController.goBack();\n\t\t\t\tbreak;\n\t\t}\n\t}", "title": "" }, { "docid": "428e2f3b0fa1db1c88172df76d62bae8", "score": "0.7144634", "text": "public static void showMenu(String[] options, boolean showNumbers){\n header(options[0]);\n if (showNumbers){\n for (int i = 1; i < options.length; i++)\n System.out.printf(\"|%-1s%2.2s.- %-41.41s%-1s|\" + EOF, \"\", i, options[i], \"\");\n } else {\n for (int i = 1; i < options.length; i++)\n System.out.printf(\"|%-1s%-46.46s%-1s|\" + EOF, \"\", options[i], \"\");\n } \n System.out.println(\"+================================================+\");\n }", "title": "" }, { "docid": "4451eb35cd0f01eff2e3476d860aa27a", "score": "0.71283865", "text": "protected void showOptions(){\n mOptionList.setClickable(true);\n mOptionList.setVisibility(View.VISIBLE);\n }", "title": "" }, { "docid": "901b389e94f85c54372a985bfd6d0a20", "score": "0.7080339", "text": "public void showMemberCategoryMenu() {\n System.out.println(\"Visa lista med: \");\n System.out.println(\"\\t1. Barnmedlemmar\");\n System.out.println(\"\\t2. Ungdomsmedlemmar\");\n System.out.println(\"\\t3. Vuxenmedlemmar\");\n System.out.println(\"\\t4. Seniormedlemmar\");\n System.out.println(\"\\t5. VIP-medlemmar\");\n System.out.print(\"Ange val: \");\n }", "title": "" }, { "docid": "4990873afd80e4fdceb6b1071f4d3e5a", "score": "0.707605", "text": "public void menuListados() {\n\t\tSystem.out.println(\"MENU LISTADOS\");\n\t\tSystem.out.println(\"1. Personas con la misma actividad\");\n\t\tSystem.out.println(\"2. Cantidad de personas con la misma actividad\");\n\t\tSystem.out.println(\"0. Salir\");\n\t}", "title": "" }, { "docid": "bacc163e5b834e14c1ee2dedda55259b", "score": "0.7053511", "text": "public void menu()\n {\n System.out.println(\"\\n\\t\\t============================================\");\n System.out.println(\"\\t\\t|| Welcome to the Movie Database ||\");\n System.out.println(\"\\t\\t============================================\");\n System.out.println(\"\\t\\t|| (1) Search Movie ||\");\n System.out.println(\"\\t\\t|| (2) Add Movie ||\");\n System.out.println(\"\\t\\t|| (3) Delete Movie ||\");\n System.out.println(\"\\t\\t|| (4) Display Favourite Movies ||\");\n System.out.println(\"\\t\\t|| (5) Display All Movies ||\");\n System.out.println(\"\\t\\t|| (6) Edit movies' detail ||\");\n System.out.println(\"\\t\\t|| (7) Exit System ||\");\n System.out.println(\"\\t\\t=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=\");\n System.out.print( \"\\t\\tPlease insert your option: \");\n }", "title": "" }, { "docid": "7f1758bd8978680b1d88d0ae36835e2e", "score": "0.70336163", "text": "public static void f_menu() {\n System.out.println(\"----------------------------------------\");\n System.out.println(\"--------------DIGITALSOFT---------------\");\n System.out.println(\"-----version:1.0------28/04/2020.-------\");\n System.out.println(\"-----Angel Manuel Correa Rivera---------\");\n System.out.println(\"----------------------------------------\");\n }", "title": "" }, { "docid": "3a684f610ed3f915fc7dea5cbd24cbaa", "score": "0.7019021", "text": "static void listerMenu() {\n System.out.println(\n \"-------------------------------------\\n\" +\n \"Saisir une option :\\n\" +\n \"1 : Liste des hôtes\\n\" +\n \"2 : Liste des logements\\n\" +\n \"3 : Liste des voyageurs\\n\" +\n \"4 : Liste des réservations\\n\" +\n \"5 : Fermer le programme\"\n );\n switch (Menu.choix(5)) {\n case 1:\n GestionHotes.listerHotes();\n break;\n case 2:\n GestionLogements.listerLogements();\n break;\n case 3:\n GestionVoyageurs.listerVoyageurs();\n break;\n case 4:\n GestionReservations.listerReservations();\n break;\n case 5:\n System.exit(0);\n break;\n }\n }", "title": "" }, { "docid": "0024be6229cd196fc9f0b44aab883775", "score": "0.7011169", "text": "public void showMenu()\r\n {\r\n System.out.println(\"Enter Truck order: \");\r\n \r\n super.showCommon();\r\n \r\n \r\n super.showMenu(\"What size truck is this? \", SIZE);\r\n \r\n \r\n \r\n \r\n \r\n \r\n super.showMenu(\"What is the engine size of the truck?\", ENGINE_SIZE);\r\n \r\n \r\n \r\n }", "title": "" }, { "docid": "3b319864ee8075727a61298ee66485a0", "score": "0.69939494", "text": "public static void f_menu(){\n System.out.println(\"_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/\");\n System.out.println(\"_/_/_/_/_/_/softvectorwhith/_/_/_/_/_/_/\");\n System.out.println(\"/_/_/_/version 1.0 2020-oct-29_/_/_/_/_/\");\n System.out.println(\"/_/maked by Andres Felipe Torres Lopez_/\");\n System.out.println(\"_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/\");\n }", "title": "" }, { "docid": "5b53303e0a05b3e0fc1f3366bd2d2aaf", "score": "0.698051", "text": "public void menuDisplay() {\n\t\t\n\t\tjava.lang.System.out.println(\"\");\n\t\tjava.lang.System.out.println(\"~~~~~~~~~~~~Display System Menu~~~~~~~~~~~~\");\n\t\tjava.lang.System.out.println(\"**** Enter a Number from the Options Below ****\");\n\t\tjava.lang.System.out.println(\"Choice 1 – Print System Details\\n\" + \n\t\t\t\t\t\t \"Choice 2 - Display System Properties\\n\" +\n\t\t\t\t\t\t \"Choice 3 – Diagnose System\\n\" + \n\t\t\t\t\t\t \"Choice 4 – Set Details\\n\" + \n\t\t\t\t\t\t \"Choice 5 – Quit the program\");\n\t\t\n\t}", "title": "" }, { "docid": "2c7e5645ff7657e0e1ddb29aad2e86a3", "score": "0.6962826", "text": "public void options() {\n\n audio.playSound(LDSound.SMALL_CLICK);\n if (canViewOptions()) {\n Logger.info(\"HUD Presenter: options\");\n uiStateManager.setState(GameUIState.OPTIONS);\n }\n }", "title": "" }, { "docid": "d5b1bf24e24ff6906598431fd0328f0f", "score": "0.6951655", "text": "public OptionsMenu() {\n\t\tsuper(OPTIONS_WINDOW_TITLE);\n\t\tQ = new Quoridor();\n\t\tinitialize();\n\t\tsetVisible(true);\n\t}", "title": "" }, { "docid": "3dbf21b1410676379a83314adfb20a2b", "score": "0.69498897", "text": "static void mostrarMenu(){\n \t\t\n\t\tout.println();\n\t\tout.println(\"1. Crear lavadora.\");\n\t\tout.println(\"2. Mostrar lavadoras.\");\n\t\tout.println(\"3. Seleccionar lavadora.\");\n\t\tout.println(\"4. Cargar agua.\");\n\t\tout.println(\"5. Cargar ropa.\");\n\t\tout.println(\"6. Cargar detergente.\");\n\t\tout.println(\"7. Especificar tiempo.\");\n\t\tout.println(\"8. Drenar.\");\n\t\tout.println(\"9. Mostrar estado de la lavadora.\");\n\t\tout.println(\"10. Mostrar estado de la ropa.\");\n\t\tout.println(\"11. Pausar o Reanudar lavadora\");\n\t\tout.println(\"12. Probar sistema.\");\n\t\tout.println(\"13. Reiniciar sistema.\");\n\t\tout.println(\"22. Salir\");\n\t\tout.println((SELECTNOW != -1) ? \"!/*!/* Lv seleccionada: \" + SELECTNOW + \" !/*!/*\": \"\");\n\t\tout.println();\n\t}", "title": "" }, { "docid": "07b5d7e8c4e1628051026ea24dc6161e", "score": "0.69466287", "text": "private void displayMenu()\r\n {\r\n System.out.println(\"\\nWelcome to Car Park System\");\r\n System.out.println(\"=============================\");\r\n System.out.println(\"(1)Add a Slot \");\r\n System.out.println(\"(2)Delete a Slot\");\r\n System.out.println(\"(3)List all Slots\");\r\n System.out.println(\"(4)Park a Car\");\r\n System.out.println(\"(5)Find a Car \");\r\n System.out.println(\"(6)Remove a Car\");\r\n System.out.println(\"(7)Exit \");\r\n System.out.println(\"\\nSelect an Option: \");\r\n }", "title": "" }, { "docid": "9c3de7357b4d8ca97319f6a0da46b69f", "score": "0.69359493", "text": "protected abstract void addMenuOptions();", "title": "" }, { "docid": "e8000b3e654a901875fba2a0e960eb01", "score": "0.692748", "text": "private void mainMenu() {\n System.out.println(\"Canteen Management System\");\n System.out.println(\"-----------------------\");\n System.out.println(\"1. Show Menu\");\n System.out.println(\"2.AcceptReject\");\n System.out.println(\"3.place orders\");\n System.out.println(\"4.show orders\");\n System.out.println(\"5. Exit\");\n mainMenuDetails();\n }", "title": "" }, { "docid": "6f72d704e2f9c90df36f33c5be449639", "score": "0.6908782", "text": "private static void displayMenu() {\n System.out.println(\"Menu : \");\n System.out.println(\"Type any number for selection\");\n for (int i = 1; i <= totalPlayers; i++) {\n System.out.println(i + \")View \" + playerList.get(i - 1) + \" cards\");\n }\n System.out.println(\"8)Display Each Player's Hand Strength\");\n System.out.println(\"9)Declare Winner\");\n System.out.println(\"10)Exit\");\n }", "title": "" }, { "docid": "b9907e796197c1e23cf1912085974cc0", "score": "0.68987364", "text": "public static void showOptions() {\n System.out.println(new StringJoiner(\"\\n\")\n .add(\"*************************\")\n .add(\"1- The participants' directory.\")\n .add(\"2- The RDVs' agenda.\")\n .add(\"3- Quit the app.\")\n .add(\"*************************\")\n );\n }", "title": "" }, { "docid": "787bb690cd70843f679d3c5c1458287b", "score": "0.6873786", "text": "private void showFullMenu() {\n final Menu[] menu = MenuFactory.showMenu();\n System.out.println(\"Food_Id\" + \"\\t\" + \"Food_Name\" + \"\\t\" + \"Price\" + \"\\t\" + \"Prepration_Time\");\n for (final Menu m : menu) {\n System.out.println(m.getFoodId() + \"\\t\" + m.getFoodName() + \"\\t\" + m.getPrice() + \"\\t\" + m.getPreprationTime());\n }\n }", "title": "" }, { "docid": "01e9d1cfb7b8c91dd892cf7303840882", "score": "0.6864382", "text": "private void displayEditMenu()\r\n {\r\n System.out.println();\r\n System.out.println(\"--------- Edit Menu ------------\");\r\n System.out.println(\"(1) Edit Car Colour\");\r\n System.out.println(\"(2) Edit Car Price\");\r\n System.out.println(\"(3) Back to Main Menu\");\r\n }", "title": "" }, { "docid": "e3de7f697bf6f40247cef1042189de72", "score": "0.686322", "text": "static void montaMenu() {\n System.out.println(\"\");\r\n System.out.println(\"1 - Novo cliente\");\r\n System.out.println(\"2 - Lista clientes\");\r\n System.out.println(\"3 - Apagar cliente\");\r\n System.out.println(\"0 - Finalizar\");\r\n System.out.println(\"Digite a opcao desejada: \");\r\n System.out.println(\"\");\r\n }", "title": "" }, { "docid": "2fa61f5a710855ca5105e75f3932c9ee", "score": "0.684894", "text": "@Override\r\n public boolean onCreateOptionsMenu(Menu menu){\r\n getMenuInflater().inflate(R.menu.menu, menu); //Recibe como parametro el menu donde se situan las acciones\r\n return true; //Para que la barra sea visible\r\n }", "title": "" }, { "docid": "da67696dd21340d8530493c17eb10c1c", "score": "0.6844884", "text": "public void printMenu()\n {\n String menu = (\"------------- Menu -------------\\nDisplay collection\\nCheck out materials\\nQuit\\n--------------------------------\\nPlease click one of the buttons to the right\");\n jTextPane1.setText(menu);\n jButton1.enableInputMethods(true);\n jButton2.enableInputMethods(true);\n jButton3.enableInputMethods(true);\n jButton4.enableInputMethods(false);\n }", "title": "" }, { "docid": "d0bdb7175f05ac10eb2e7b20eaedc6e2", "score": "0.68374145", "text": "private void printMenu() {\n\t\tSystem.out.printf(\"\\n********** MiRide System Menu **********\\n\\n\");\n\n\t\tSystem.out.printf(\"%-30s %s\\n\", \"Create Car\", \"CC\");\n\t\tSystem.out.printf(\"%-30s %s\\n\", \"Book Car\", \"BC\");\n\t\tSystem.out.printf(\"%-30s %s\\n\", \"Complete Booking\", \"CB\");\n\t\tSystem.out.printf(\"%-30s %s\\n\", \"Display ALL Cars\", \"DA\");\n\t\tSystem.out.printf(\"%-30s %s\\n\", \"Search Specific Car\", \"SS\");\n\t\tSystem.out.printf(\"%-30s %s\\n\", \"Search Available Cars\", \"SA\");\n\t\tSystem.out.printf(\"%-30s %s\\n\", \"Seed Data\", \"SD\");\n\t\tSystem.out.printf(\"%-30s %s\\n\", \"Load Cars\", \"LC\");\n\t\tSystem.out.printf(\"%-30s %s\\n\", \"Exit Program\", \"EX\");\n\t\tSystem.out.println(\"\\nEnter your selection: \");\n\t\tSystem.out.println(\"(Hit enter to cancel any operation)\");\n\t}", "title": "" }, { "docid": "6f060a8899e9b712391ff43af7996ce7", "score": "0.68166137", "text": "@Override\n\tpublic void showmenu() {\n\t\t\n\t\tint choice;\n \n System.out.println(\"请选择1.查询 2.退出\");\n choice=console.nextInt();\n \n switch (choice){\n \n case 1:\n Menu.searchMenu();\n break;\n default:\n \tSystem.out.println(\"感谢您使用本系统 欢迎下次使用!\");\n System.exit(0);\n }\n \n \n\t}", "title": "" }, { "docid": "8cb229b4393c4251d7aed93911d9ff02", "score": "0.68158036", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n menu.add(0, MENU_A, 0, \"Info\");\n menu.add(0, MENU_B, 0, \"Legal Notices\");\n menu.add(0, MENU_c, 0, \"Mode\");\n return true;\n }", "title": "" }, { "docid": "59916c8d67eb8eb08977fb924c077943", "score": "0.680506", "text": "public static void displayMenu(){\n //*Displays the Menu\n System.out.printf( \"%-15s%-10s%-40s%-5s\\n\", \"Food Item\", \"Size\", \"Options\", \"Price\" );\n System.out.printf( \"%-15s%-10s%-40s%-5s\\n\", \"---------\", \"----\", \"-------\", \"-----\" );\n System.out.printf( \"%-15s%-10s%-40s%-5s\\n\", \"Drink\", \"S,M,L\", \"Sprite, Rootbeer, and Orange Fanta\", \"$5.50 for small, +$.50 for each size increase\\n\" );\n System.out.printf( \"%-15s%-10s%-40s%-5s\\n\", \"Burger\", \"N/A\", \"Extra Patty, bacon, cheese, lettuce\", \"$3.00 for a burger, +$.50 for additional toppings\" );\n System.out.printf( \"%-15s%-10s%-40s%-5s\\n\", \"\", \"\", \"tomato, pickles, onions\", \"\\n\" );\n System.out.printf( \"%-15s%-10s%-40s%-5s\\n\", \"Pizza\", \"S,M,L\", \"Pepperoni, sausage, peppers, chicken\", \"$5.00 for small, +$2.50 for each size increase,\" );\n System.out.printf( \"%-15s%-10s%-40s%-5s\\n\", \"\", \"\", \"salami, tomatoes, olives, anchovies\", \"+$1.00 for each extra topping\" );\n }", "title": "" }, { "docid": "c1f74948d9323b3e3ce2d23b93df4a3e", "score": "0.68022025", "text": "public void displayHelpMenuView()\n {\n System.out.println(\"\\nHelp menu selected.\");\n }", "title": "" }, { "docid": "be1694ae6d3fb0af3e60178b455ce20e", "score": "0.6795515", "text": "private void ShowMenu() {\n\t\tSystem.out.println(\"Please enter a number between 0 and 6 to perform the below actions:\\n\" + \n\t\t\t\t\"0: Exit the program\\n\" + \n\t\t\t\t\"1: Show total population for all zip codes available\\n\" + \n\t\t\t\t\"2: Show the total parking fines per capita for each zip code available\\n\" + \n\t\t\t\t\"3: Show the average market value for residences in a specified zip code\\n\" + \n\t\t\t\t\"4: Show the average total livable area for residences in a specified zip code\\n\" + \n\t\t\t\t\"5: Show the total residential market value per capita for a specified zip code\\n\" +\n\t\t\t\t\"6: Show a sorted list of zip codes and their most common fine in that zip code. Values sorted by total livable area per capita\");\n\t}", "title": "" }, { "docid": "da21570cbc82de51e6661bc42229bbc9", "score": "0.6779447", "text": "public String showSmallMenuOptions(){\n stringBuilder = new StringBuilder();\n menuLoader = new MenuLoader();\n int counter = 0;\n for (String key: menuLoader.getSmallMenu().keySet()) {\n counter++;\n stringBuilder.append(\" '\" + key + \"',\");\n if (counter%10 == 0){\n stringBuilder.append(\"\\n\");\n }\n }\n return stringBuilder.toString();\n }", "title": "" }, { "docid": "4f777d8355091df81605756676a24afd", "score": "0.67763495", "text": "public void menu() {\n m.add(\"Go adventuring!!\", this::goAdventuring );\n m.add(\"Display information about your character\", this::displayCharacter );\n m.add(\"Visit shop\", this::goShopping);\n m.add (\"Exit game...\", this::exitGame);\n }", "title": "" }, { "docid": "7c135b3fa08b2e2c4f21b6d97a68093d", "score": "0.6774499", "text": "public static void displayMenu() {\r\n System.out.print(\"\\nName Saver Server Menu\\n\\n\"\r\n +\"1. Add a name\\n2. Remove a name\\n3. List all names\\n\"\r\n +\"4. Check if name recorded\\n5. Exit\\n\\n\"\r\n +\"Enter selection [1-5]:\");\r\n }", "title": "" }, { "docid": "85d5a9e2a6abad378926c622f7ab81f2", "score": "0.67591584", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu){\n super.onCreateOptionsMenu(menu);\n MenuItem helpButton = menu.findItem(R.id.menu1);\n helpButton.setVisible(true);\n return true;\n }", "title": "" }, { "docid": "74a25493c4abdbe27b4076ea3478b169", "score": "0.67546743", "text": "public void showOptions() {\n\t\tCIVLTable tbl_optionTable = (CIVLTable) getComponentByName(\"tbl_optionTable\");\n\t\tDefaultTableModel optionModel = (DefaultTableModel) tbl_optionTable\n\t\t\t\t.getModel();\n\n\t\tif (optionModel.getRowCount() != 0) {\n\t\t\toptionModel.setRowCount(0);\n\t\t\ttbl_optionTable.clearSelection();\n\t\t\ttbl_optionTable.revalidate();\n\t\t}\n\n\t\tGMCSection section = currConfig.getGmcConfig().getSection(\n\t\t\t\tGMCConfiguration.ANONYMOUS_SECTION);\n\t\tObject[] opts = currConfig.getGmcConfig().getOptions().toArray();\n\t\tCollection<Option> options = currConfig.getGmcConfig().getOptions();\n\t\tIterator<Option> iter_opt = options.iterator();\n\t\tList<Object> vals = new ArrayList<Object>();\n\n\t\twhile (iter_opt.hasNext()) {\n\t\t\tOption curr = iter_opt.next();\n\t\t\tvals.add(section.getValueOrDefault(curr));\n\t\t}\n\n\t\t// Sets all of the default-ize buttons\n\t\tnew ButtonColumn(tbl_optionTable, defaultize, 2);\n\n\t\tfor (int i = 0; i < vals.size(); i++) {\n\t\t\tOption currOpt = (Option) opts[i];\n\t\t\t/*\n\t\t\t * if (currOpt.name().equals(\"sysIncludePath\")) {\n\t\t\t * optionModel.addRow(new Object[] { currOpt, \"sysIncludePath\",\n\t\t\t * \"Default\" }); }\n\t\t\t * \n\t\t\t * else if (currOpt.name().equals(\"userIncludePath\")) {\n\t\t\t * optionModel.addRow(new Object[] { currOpt, \"userIncludePath\",\n\t\t\t * \"Default\" }); }\n\t\t\t */\n\t\t\t// else {\n\t\t\toptionModel\n\t\t\t\t\t.addRow(new Object[] { currOpt, vals.get(i), \"Default\" });\n\t\t\t// }\n\t\t}\n\t}", "title": "" }, { "docid": "d394a4c94738a4d102f869790475185d", "score": "0.6747457", "text": "private static void displayUserMenu() {\n\t\tSystem.out.println(\"\\t User Menu Help \\n\" \n\t\t\t\t+ \"====================================\\n\"\n\t\t\t\t+ \"ar <reponame> : To add a new repo \\n\"\n\t\t\t\t+ \"dr <reponame> : To delete a repo \\n\"\n\t\t\t\t+ \"or <reponame> : To open repo \\n\"\n\t\t\t\t+ \"lr : To list repo \\n\"\n\t\t\t\t+ \"lo : To logout \\n\"\n\t\t\t\t+ \"====================================\\n\");\n\t}", "title": "" }, { "docid": "9944b2cbc3743e6bf86e9da252a2c476", "score": "0.6742831", "text": "public void menuOptions(String type) {\n System.out.println(\"\\n\" + \"To select an option, type what's inside the parenthesis.\");\n System.out.println(\"While in a sub-menu -> (0) Back out of a sub-menu. \\n\");\n System.out.println(\"Main Menu\");\n if (type.equals(\"Attendee\") || type.equals(\"VIP\")) {\n System.out.println(\"(1a) Message, (2a) Contacts, (3a) Signup, (4a) See Attendee Schedule\");\n System.out.println(\"(5a) Get Event Details, (6a) View Conference Schedule, \"+\n \" (p) Export the conference schedule to a PDF\");\n } else if (type.equals(\"Organizer\")) {\n System.out.println(\"(1o) Message, (2o) Contacts, (3o) View Conference Schedule\");\n System.out.println(\"(4o) Modify Events, (5o) Add room, (6o) Create a User account\"+\n \" (p) Export the conference schedule to a PDF\");\n System.out.println(\"(7o) View Current Rooms, (8o) Get Event Details\");\n } else if (type.equals(\"Speaker\")) {\n System.out.println(\"(1s) Message, (2s) Contacts, (3s) See Speaker Schedule\");\n System.out.println(\"(4s) Get Event Details, (5s) View Conference Schedule\"+\n \" (p) Export the conference schedule to a PDF\");\n }\n System.out.println(\"Type Quit to logout\");\n }", "title": "" }, { "docid": "e614c81ec1b7dba0525dedcd2ad761eb", "score": "0.67204595", "text": "public Menu displayMenu() {\n return new CMDDisplayMenu(agg).execute();\n }", "title": "" }, { "docid": "18af1c11eb1377295799ac721200b6a0", "score": "0.6712216", "text": "public static void openOptionMenu() {\r\n\t\tif(!STATUS.equals(Gamestatus.STOPPED)) return;\r\n\t\tgui.setMenu(new OptionMenu(), true);\r\n\t}", "title": "" }, { "docid": "ddf7ff26ba1d10a752fdc0af3a994112", "score": "0.6704824", "text": "public void optionsListMenu(int number) {\n switch (number) {\r\n case 1:\r\n showFilterByMake();\r\n break;\r\n case 2:\r\n showFilterByModel();\r\n break;\r\n case 3:\r\n showFilterByBudget();\r\n break;\r\n case 4:\r\n backToPreviousMenu();\r\n break;\r\n }\r\n }", "title": "" }, { "docid": "479cab95d209cf8386ee2d794fbeae80", "score": "0.6704529", "text": "@Override\r\n public final void display() {\r\n System.out.println(\"\\n\\t===============================================================\");\r\n System.out.println(\"\\tEnter the letter associated with one of the following commands:\");\r\n \r\n for (String[] menuItem : HelpMenuView.menuItems) {\r\n System.out.println(\"\\t \" + menuItem[0] + \"\\t\" + menuItem[1]);\r\n }\r\n System.out.println(\"\\t===============================================================\\n\");\r\n }", "title": "" }, { "docid": "12d123bf3194b52ae06fb606dc6fea13", "score": "0.6700541", "text": "public void viewOptions()\r\n {\r\n SetupScreen setupScreen = new SetupScreen();\r\n pushScreen(setupScreen);\r\n }", "title": "" }, { "docid": "68889e6674a696807dc8831c7f2719aa", "score": "0.66955495", "text": "private void printMenu()\n {\n System.out.println(\"\");\n System.out.println(\"*** Salg ***\");\n System.out.println(\"(0) Tilbage\");\n System.out.println(\"(1) Opret\");\n System.out.println(\"(2) Find\");\n System.out.println(\"(3) Slet\");\n System.out.print(\"Valg: \");\n }", "title": "" }, { "docid": "40ee46c8fa5ee4625fc44f2793bfa5fa", "score": "0.66943294", "text": "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.flower_class_show, menu);\r\n\t\treturn true;\r\n\t}", "title": "" }, { "docid": "3e7490885484171c706c11ca2c4003d5", "score": "0.6687382", "text": "private void mainMenu() {\r\n System.out.println(\"Canteen Management System\");\r\n System.out.println(\"-----------------------\");\r\n System.out.println(\"1. Show Menu\");\r\n System.out.println(\"2. Employee Login\");\r\n System.out.println(\"3. Vendor Login\");\r\n System.out.println(\"4. Exit\");\r\n mainMenuDetails();\r\n }", "title": "" }, { "docid": "d2b3053e9bc498d11a8d3a228d5a5996", "score": "0.66826016", "text": "public static void f_menu(){\n System.out.println(\"╔══════════════════════╗\");\r\n System.out.println(\"║ SoftAverageHeight ║\");\r\n System.out.println(\"║Version 1.0 20200428 ║\");\r\n System.out.println(\"║Created by:Andres Diaz║\");\r\n System.out.println(\"╚══════════════════════╝\");\r\n\r\n }", "title": "" }, { "docid": "5d6ab57ad8d128bdeebdda3010e4e8fb", "score": "0.66811264", "text": "public static void options(){\n System.out.println(\"Choose from the following options \");\n System.out.println(\"0 Print the options again\");\n System.out.println(\"1 Create Student Records\");\n System.out.println(\"2 Create Teacher Records\");\n System.out.println(\"3 Edit the Records\");\n System.out.println(\"4 Get the Record Count\");\n System.out.println(\"5 Exit\");\n }", "title": "" }, { "docid": "e23389c7fe1954161535c692e4b5bd48", "score": "0.6679827", "text": "private void menuSetup()\n {\n menuChoices = new String []\n {\n \"Add a new product\",\n \"Remove a product\",\n \"Rename a product\",\n \"Print all products\",\n \"Deliver a product\",\n \"Sell a product\",\n \"Search for a product\",\n \"Find low-stock products\",\n \"Restock low-stock products\",\n \"Quit the program\" \n };\n }", "title": "" }, { "docid": "25cb7fa00c4e5f084a9b222680de9a33", "score": "0.667869", "text": "public static void readMenu(){\n\t\tSystem.out.println(\"Menu....\");\n\t\tSystem.out.println(\"=====================\");\n\t\tSystem.out.println(\"1. Book A Ticket\\t2. See Settings\\n3. Withdraw\\t4. Deposit\");\n\n\t}", "title": "" }, { "docid": "2ad112c6981edf78d82d4c74d883e2a9", "score": "0.66693145", "text": "public static void printMenu(){\n System.out.print(\"1. List all writing groups\\n\" +\n \"2. List all the data for one writing group\\n\"+\n \"3. List all publishers\\n\"+\n \"4. List all the data for one publisher\\n\"+\n \"5. List all books\\n\"+\n \"6. List all the data for one book\\n\"+\n \"7. Insert new book\\n\"+\n \"8. Insert new publisher\\n\"+\n \"9. Remove a book\\n\"+\n \"10. Quit\\n\\n\");\n }", "title": "" }, { "docid": "132c31e69ec81508344aac0bef59a5a6", "score": "0.6667595", "text": "public static void structEngineerUpMenu(){\n\n //Displaying the menu options by using the system out method\n System.out.println(\"1 - Would you like to view all of the Structural Engineer's Information\");\n System.out.println(\"2 - Would you like to search for a Structural Engineer's Information\");\n System.out.println(\"3 - Adding a new Structural Engineer's Information\\n\");\n\n System.out.println(\"0 - Back to main menu\\n\");\n }", "title": "" }, { "docid": "308145943954a955ddc30b7fa8d4d9e4", "score": "0.66639376", "text": "public void visMedlemskabsMenu ()\r\n {\r\n System.out.println(\"Du har valgt medlemskab.\");\r\n System.out.println(\"Hvad Oensker du at foretage dig?\");\r\n System.out.println(\"1: Oprette et nyt medlem\");\r\n System.out.println(\"2: Opdatere oplysninger paa et eksisterende medlem\");\r\n System.out.println(\"0: Afslut\");\r\n\r\n }", "title": "" }, { "docid": "d88d344ec4f1922e67dd45f555b7be3a", "score": "0.6660948", "text": "private void menuArmadura(){\n System.out.println(\"Escolha o local em que queira colocar a uma armadura:\");\n System.out.println(\"1 - Cabeça\");\n System.out.println(\"2 - Tronco\");\n System.out.println(\"3 - Pernas\");\n System.out.println(\"4 - Pés\");\n System.out.println(\"0 - Sair\");\n }", "title": "" }, { "docid": "afc9e1a048cd45d57fac4a8ebbc1c7a6", "score": "0.6656959", "text": "private void presentMenu() {\n System.out.println(\"\\nHi there, kindly select what you would like to do:\");\n System.out.println(\"\\ta -> add a task\");\n System.out.println(\"\\tr -> remove a task\");\n System.out.println(\"\\tc -> mark a task as complete\");\n System.out.println(\"\\tm -> modify a task\");\n System.out.println(\"\\tv -> view all current tasks as well as tasks saved previously\");\n System.out.println(\"\\tct -> view all completed tasks\");\n System.out.println(\"\\ts -> save tasks to file\");\n System.out.println(\"\\te -> exit\");\n }", "title": "" }, { "docid": "81d720befbcdf02d60c2e65d23fb0a1d", "score": "0.66555476", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n super.onCreateOptionsMenu(menu);\n MenuItem helpButton = menu.findItem(R.id.menu1);\n helpButton.setVisible(true);\n return true;\n }", "title": "" }, { "docid": "5e7e5ccf259222bb510722bb25525c3f", "score": "0.66507846", "text": "private static void mostrarMenu() {\n\t\tSystem.out.println(\"AVAILABLE ORDERS\");\n\t\tSystem.out.println(\"================\");\n\t\tSystem.out\n\t\t\t\t.println(\"HELP - shows information on \" +\n\t\t\t\t\t\t\"available orders\");\n\t\tSystem.out\n\t\t\t\t.println(\"DIR - displays the content \" +\n\t\t\t\t\t\t\"of current directory\");\n\t\tSystem.out\n\t\t .println(\"DIRGALL - displays the content\" +\n\t\t\t\t \" of current directory\");\n System.out\n\t\t .println(\" and all its internal\" +\n\t\t\t\t \" subdirectories\"); \t\t\n\t\tSystem.out\n\t\t\t\t.println(\"CD dir - changes the current \" +\n\t\t\t\t\t\t\"directory to its subdirectory [dir]\");\n\t\tSystem.out\n\t\t\t\t.println(\"CD .. - changes the current \" +\n\t\t\t\t\t\t\"directory to its father directory\");\n\t\tSystem.out\n\t\t\t\t.println(\"WHERE - shows the path and name \" +\n\t\t\t\t\t\t\"of current directory\");\n\t\tSystem.out\n\t\t\t\t.println(\"FIND text - shows all the images \" +\n\t\t\t\t\t\t\"whose name includes [text]\");\n\t\tSystem.out\n\t\t\t\t.println(\"DEL text - information and delete \" +\n\t\t\t\t\t\t\"a picture named [text] of current \" +\n\t\t\t\t\t\t\"directory\");\n\t\tSystem.out\n\t\t\t\t.println(\"MOVE text - move an image named \" +\n\t\t\t\t\t\t\"[text] to another directory\");\n\t\tSystem.out\n\t\t\t\t.println(\"IMG time - displays a carousel \" +\n\t\t\t\t\t\t\"with the images in current directory;\");\n\t\tSystem.out\n\t\t\t\t.println(\" each image is displayed\" +\n\t\t\t\t\t\t\" [time] seconds\");\n\t\tSystem.out\n\t\t\t\t.println(\"IMGALL time - displays a carousel with\" +\n\t\t\t\t\t\t\" the images in current directory;\");\n\t\tSystem.out\n\t\t\t\t.println(\" and in all its internal\" +\n\t\t\t\t\t\t\" subdirectories; each image is\");\n\t\tSystem.out.println(\" displayed [time] \" +\n\t\t\t\t\"seconds\");\n\t\tSystem.out.println(\"BIGIMG - displays the bigest image int the current\" +\n\t\t\t\t\"directory\");\n\t\tSystem.out.println(\"END - ends of program \" +\n\t\t\t\t\"execution\");\n\t}", "title": "" }, { "docid": "54e90d8a245f813b6b3ba5731cb473cf", "score": "0.6649381", "text": "private void showSpecificOptions (Menu mMenu, LinearLayout llCO) {\n \t\t\n \t\tArrayList<Option> _SpecificOptionList = OptionManager.getSpecificOptionList(mMenu.DB_ID);\n \t\t\n for(int i=0; i<_SpecificOptionList.size(); i++) {\n \t\n \tOption _Option = _SpecificOptionList.get(i);\n \n \tLinearLayout llEachLine = new LinearLayout(this);\n llEachLine.setLayoutParams(new LayoutParams(500,LayoutParams.WRAP_CONTENT));\n llEachLine.setPadding(0, 0, 10, 4);\n llEachLine.setOrientation(LinearLayout.HORIZONTAL);\n llEachLine.setGravity(Gravity.LEFT);\n \n int nCountId = IdManager.getSpecificOptionCountId(i);\n int nDownId = nCountId - 1000;\n int nUpId = nCountId + 1000;\n \n // option name\n \n String strTextTitle = TextFormatter.getText(_Option.NAME_ENG, _Option.NAME_OTH,26);\n \n TextView tvOptionName = new TextView(this);\n tvOptionName.setGravity(Gravity.LEFT|Gravity.CENTER);\n tvOptionName.setText(strTextTitle);\n tvOptionName.setTextSize(14);\n tvOptionName.setTextColor(0xff000000);\n tvOptionName.setHeight(50);\n tvOptionName.setWidth(270);\n \n // option count \n \n TextView tvCount = new TextView(this); \n tvCount.setGravity(Gravity.CENTER);\n tvCount.setId(nCountId);\n tvCount.setText(String.valueOf(\"0\"));\n tvCount.setTextColor(0xff000000);\n tvCount.setWidth(50);\n tvCount.setHeight(30);\n \n ResourceManager.put(nCountId, tvCount);\n ResourceManager.put(tvCount, _Option);\n \n _Option.MENU_RESOURCE_ID = mMenu.RESOURCE_ID;\n \t\n // Button Down\n \n ImageButton btDown = new ImageButton(this);\n btDown.setId(nDownId);\n btDown.setBackgroundDrawable(getResources().getDrawable(R.drawable.down));\n btDown.setLayoutParams(new LayoutParams(60,60));\n btDown.setOnClickListener(new OnClickListener() {\n \t public void onClick(View v) {\n \t \t\n \t \tint nDownId = v.getId();\n \t \tint nCountId = nDownId+1000;\n \t \tint nCount = 0;\n \t \t\n \t \tTextView tvCount = (TextView) ResourceManager.get(nCountId);\n \t \tOption _Option = (Option)ResourceManager.get(tvCount);\n \t \t\n \t\tString strCount = (String) tvCount.getText();\n \t\tnCount = Integer.valueOf(strCount);\n \t \t\n \t \tif(nCount>0) {\n \t\t\t\tnCount -= 1;\n \t \t\ttvCount.setText(String.valueOf(nCount));\n \t \t\t_Option.ORDER_COUNT = nCount;\n \t \t\tOrderManager.setOptionCount(_Option.DB_ID, nCount);\n \t \t}\n \t }\n });\n \n // Button Up\n \n ImageButton btUp = new ImageButton(this);\n btUp.setId(nUpId);\n btUp.setBackgroundDrawable(getResources().getDrawable(R.drawable.up));\n btUp.setLayoutParams(new LayoutParams(60,60));\n btUp.setOnClickListener(new OnClickListener() {\n \t public void onClick(View v) {\n \t \t\n \t \tint nUpId = v.getId();\n \t \tint nCountId = nUpId - 1000;\n \t \tint nCount = 0;\n \t \t\n \t \tTextView tvCount = (TextView) ResourceManager.get(nCountId);\n \t \tOption _Option = (Option)ResourceManager.get(tvCount);\n \t \t\t\n \t\t\tString strCount = (String) tvCount.getText();\n \t\tnCount = Integer.valueOf(strCount);\n \t \tnCount += 1;\n \t \t\n \t \ttvCount.setText(String.valueOf(nCount));\n \t\t_Option.ORDER_COUNT = nCount;\n \t\tOrderManager.setOptionCount(_Option.DB_ID, nCount);\n \t }\n });\n \n llEachLine.addView(tvOptionName);\n llEachLine.addView(tvCount);\n llEachLine.addView(btDown);\n llEachLine.addView(btUp);\n \n llCO.addView(llEachLine);\n }\n \t\t\n \t}", "title": "" }, { "docid": "4a67f779a785d7d62d036a33725f1a45", "score": "0.664814", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main_window, menu);\n MenuItem m = menu.add(2,4,9,\"Debug Service\");\n m.setCheckable(true);\n m.setChecked(GRClient.getInstance().isDebug());\n\n menu.add(3,9,1, (isSocalConnected) ? \"Sign Out\" : \"Sign In\");\n menu.add(3,8,100,\"Send Feedback\");\n return true;\n }", "title": "" }, { "docid": "34e75b12951d4db7db8e2da8f5031419", "score": "0.6647117", "text": "public static void menuInicial() {\n System.out.println(\"Boas vindas à Arena pokemon Treinador!!!\");\n System.out.println(\"Digite 1 para fazer sua inscrição\");\n System.out.println(\"Digite 2 para sair\");\n\n }", "title": "" }, { "docid": "ff9f42375996627f3a6259f8b79155ff", "score": "0.66457134", "text": "public String showMainCourseMenuOptions(){\n stringBuilder = new StringBuilder();\n int counter = 0;\n for (String key : menuLoader.getMainCourseMenu().keySet()) {\n counter++;\n stringBuilder.append(\" '\" + key + \"',\");\n if (counter%10 == 0){\n stringBuilder.append(\"\\n\");\n }\n }\n return stringBuilder.toString();\n }", "title": "" }, { "docid": "8e70e397d0fe7756ce4535e49db225ec", "score": "0.6640721", "text": "@Override\n public void handle(ActionEvent event) {\n menu.setVisible(false);\n options.setVisible(true);\n }", "title": "" }, { "docid": "d13d7be0cddd88952ea6ed59ef2175da", "score": "0.6640294", "text": "public void mainMenu() {\n\n System.out.println(\"\\n HOTEL RESERVATION SYSTEM\");\n System.out.println(\"+------------------------------------------------------------------------------+\");\n System.out.println(\" COMMANDS:\");\n System.out.println(\" - View Tables\\t\\t(1)\");\n System.out.println(\" - Add Records\\t\\t(2)\");\n System.out.println(\" - Update Records\\t(3)\");\n System.out.println(\" - Delete Records\\t(4)\");\n System.out.println(\" - Search Records\\t(5)\");\n System.out.println(\"+------------------------------------------------------------------------------+\");\n System.out.print(\" > \");\n }", "title": "" }, { "docid": "18208efb766a8edd97c72800ce7ce20e", "score": "0.6624326", "text": "public void displayMenu() {\r\n\t\tSystem.out.println(\"Enter a number between 0 and 8 as explained below: \\n\");\r\n\t\tSystem.out.println(\"[\" + ADD_CUSTOMER + \"] Add a customer.\");\r\n\t\tSystem.out.println(\"[\" + ADD_MODEL + \"] Add a model.\");\r\n\t\tSystem.out.println(\"[\" + ADD_TO_INVENTORY + \"] Add a washer to inventory.\");\r\n\t\tSystem.out.println(\"[\" + PURCHASE + \"] Purchase a washer.\");\r\n\t\tSystem.out.println(\"[\" + LIST_CUSTOMERS + \"] Display all customers.\");\r\n\t\tSystem.out.println(\"[\" + LIST_WASHERS + \"] Display all washers.\");\r\n\t\tSystem.out.println(\"[\" + DISPLAY_TOTAL + \"] Display total sales.\");\r\n\t\tSystem.out.println(\"[\" + SAVE + \"] Save data.\");\r\n\t\tSystem.out.println(\"[\" + EXIT + \"] to Exit\");\r\n\t}", "title": "" }, { "docid": "94bc999fe229df79e50017852317ad91", "score": "0.6620912", "text": "private void displayMenu() {\r\n\t\tif (this.user instanceof Administrator) {\r\n\t\t\tnew AdminMenu(this.database, (Administrator) this.user);\r\n\t\t} else {\r\n\t\t\tnew BorrowerMenu(this.database);\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "bfa071fe04ab5560465eb114f56254ad", "score": "0.66182697", "text": "private static void displayRepoMenu() {\n\t\tSystem.out.println(\"\\t Repo Menu Help \\n\" \n\t\t\t\t+ \"====================================\\n\"\n\t\t\t\t+ \"su <username> : To subcribe users to repo \\n\"\n\t\t\t\t+ \"ci: To check in changes \\n\"\n\t\t\t\t+ \"co: To check out changes \\n\"\n\t\t\t\t+ \"rc: To review change \\n\"\n\t\t\t\t+ \"vh: To get revision history \\n\"\n\t\t\t\t+ \"re: To revert to previous version \\n\"\n\t\t\t\t+ \"ld : To list documents \\n\"\n\t\t\t\t+ \"ed <docname>: To edit doc \\n\"\n\t\t\t\t+ \"ad <docname>: To add doc \\n\"\n\t\t\t\t+ \"dd <docname>: To delete doc \\n\"\n\t\t\t\t+ \"vd <docname>: To view doc \\n\"\n\t\t\t\t+ \"qu : To quit \\n\" \n\t\t\t\t+ \"====================================\\n\");\n\t}", "title": "" }, { "docid": "ed37fe8983a2bcdd142bebe66e3867a2", "score": "0.66161746", "text": "public static void printMenu() {\n System.out.print(\"\\n(A)dd Item (R)emove Item (F)ind Item (I)nitialize Tree (N)ew Tree (Q)uit\\n\");\n }", "title": "" }, { "docid": "3c9ec9a2cd16b96b956650ad70949860", "score": "0.66098857", "text": "public static void architectUpMenu(){\n\n //Displaying the menu options by using the system out method\n System.out.println(\"1 - Would you like to view all of the architects\");\n System.out.println(\"2 - Would you like to search for a architect's information\");\n System.out.println(\"3 - Adding a new architect's details\\n\");\n\n System.out.println(\"0 - Back to main menu\\n\");\n }", "title": "" }, { "docid": "4b333e45cd20261144f9f661ac85d609", "score": "0.6606489", "text": "private static void mostrarMenu() {\n\t\tSystem.out.println(\"------------------------------\");\n\t\tSystem.out.println(\"-----------OPCIONES-----------\");\n\t\tSystem.out.println(\"------------------------------\");\n\t\tSystem.out.println();\n\t\tSystem.out.println(\"\\n\\t1) Mostrar los procesos\");\n\t\tSystem.out.println(\"\\n\\t2) Parar un proceso\");\n\t\tSystem.out.println(\"\\n\\t3) Arrancar un proceso\");\n\t\tSystem.out.println(\"\\n\\t4) A�adir un proceso\");\n\t\tSystem.out.println(\"\\n\\t5) Terminar ejecucion\");\n\t\tSystem.out.println(\"\\n------------------------------\");\n\t}", "title": "" }, { "docid": "6313d6e4da55d51831fd1f2000ac2d6e", "score": "0.660253", "text": "public void showThreadOptionsMenu() {\n System.out.println(\"a - Post to thread\\nb - Main Menu\\nc - Quote\");\n }", "title": "" }, { "docid": "47619b345b989ca1e0247a8ea3f48550", "score": "0.6598156", "text": "public static void proManagerUpMenu(){\n\n //Displaying the menu options by using the system out method\n System.out.println(\"1 - Would you like to view all of the Project Manager's Information\");\n System.out.println(\"2 - Would you like to search for a Project Manager's information\");\n System.out.println(\"3 - Adding a new Project Manager's details\\n\");\n\n System.out.println(\"0 - Back to main menu\\n\");\n }", "title": "" }, { "docid": "be652308b47fff8aeefb5e7a40a8e1b4", "score": "0.65928763", "text": "@Override\r\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu_display, menu);\r\n return true;\r\n }", "title": "" }, { "docid": "3e4d7ae67a1bf8252d76e30ede59030f", "score": "0.658593", "text": "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\r\n\t\tMenuInflater inflater = getMenuInflater();\r\n\t\tinflater.inflate(R.menu.uptionsmenu, menu);\r\n\t\treturn true;\r\n\r\n\t}", "title": "" }, { "docid": "0f8ae7ad71eaf5754c0a8d1a5132a268", "score": "0.6581051", "text": "@Override\n\t\tpublic void openMenu() {\n\t\t}", "title": "" }, { "docid": "d486cd9e8d77408013cf6aa3607f354e", "score": "0.6577154", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu_display, menu);\n return true;\n }", "title": "" }, { "docid": "6b240663f9118153e41f705b948dc80c", "score": "0.6571506", "text": "private static void viewOptions() {\n\t\tlog.info(\"Enter 0 to Exit.\");\n\t\tlog.info(\"Enter 1 to Login.\");\n\t}", "title": "" }, { "docid": "452bfe8a2ba3d4783ad1b9821571f49d", "score": "0.65697604", "text": "private void showFullMenu() {\r\n Menu[] menu = MenuFactory.showMenu();\r\n System.out.println(\"Menu_Id \\t Food_Name \\t Food_Type \\t\\t Calories \\t Food_Amount\");\r\n for (Menu m : menu) {\r\n System.out.println(m.getFoodId() + \"\\t\\t\" + m.getFoodName() + \"\\t\\t\" + m.getFoodType() + \"\\t\\t\\t\" + m.getCalories() + \"\\t\\t\" + m.getFoodAmt());\r\n }\r\n }", "title": "" }, { "docid": "a0efae3145f066b6dd9825d20a78a018", "score": "0.6569143", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu_show, menu);\n return true;\n }", "title": "" }, { "docid": "c45f4a9238011cb17a4b063dd08068c9", "score": "0.6564794", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu_display_temperature, menu);\n return true;\n }", "title": "" }, { "docid": "929c65bf9930335194f8a2e81ebe1f86", "score": "0.65635854", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu2, menu);\n this.menu=menu;\n if(idName!=null) {menu.getItem(1).setVisible(false);\n menu.getItem(2).setVisible(true);}\n if(create) menu.getItem(0).setVisible(false);\n else menu.getItem(0).setVisible(true);\n /* if(extrasBundle!=null) if(extrasBundle.getBoolean(\"From Option\")==true) {\n menu.getItem(1).setVisible(false);\n menu.getItem(0).setVisible(true);\n\n }*/\n return true;\n }", "title": "" }, { "docid": "6a3060b3a2c5ddeb7183153fe8f51525", "score": "0.65605587", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.habit_show, menu);\n return true;\n }", "title": "" }, { "docid": "715a5b5ad546b6354ce1f855f368cf51", "score": "0.65581596", "text": "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.traffic_list, menu);\r\n\t\treturn true;\r\n\t}", "title": "" }, { "docid": "d8fe6fd11c73d96c1b62cab84296d7f3", "score": "0.65518135", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu_gain_factor_display, menu);\n return true;\n }", "title": "" } ]
73d402b60c616a5ede095ddc3e3643bb
The main method lists all accessible ports on the system and tries to connect to the port passed with arg[0]. On windows it is something like COM15, where on unixes maybe something like /dev/tty...
[ { "docid": "e02bc01f66268df26f95661084b7049f", "score": "0.55910474", "text": "public static void main(String[] args)\n\t{\n\t\ttry\n\t\t{\n\t\t\t// to find out what ports are available\n\t\t\tlistSerialPorts();\n\n\t\t\tHygroMain main = new HygroMain();\n\n\t\t\tString port = args.length > 0 ? args[0] : null;\n\t\t\tString file = args.length > 1 ? args[1] : null;\n\n\t\t\tif(port != null && !port.equals(\"\"))\n\t\t\t{\n\t\t\t\tmain.connect(port, file);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\terror(\"you did not specify a serial port at command line. \" +\n\t\t\t\t\t\t\"first argument should be the port (eg COM1).\", null);\n\t\t\t}\n\t\t}\n\t\tcatch (PortInUseException e)\n\t\t{\n\t\t\terror(\"port already in use. check for already running instances.\", e);\n\t\t}\n\t\tcatch (IOException e)\n\t\t{\n\t\t\terror(\"general IOException occurred.\", e);\n\t\t}\n\t\tcatch (NoSuchPortException e)\n\t\t{\n\t\t\terror(\"the port you defined does not exist. check the list above.\", e);\n\t\t}\n\t\tcatch (TooManyListenersException e)\n\t\t{\n\t\t\terror(\"too many listeners assigned to rxtx.\", e);\n\t\t}\n\t\tcatch (UnsupportedCommOperationException e)\n\t\t{\n\t\t\terror(\"comm operation is not supported.\", e);\n\t\t}\n\t}", "title": "" } ]
[ { "docid": "6591ac9ca0777eab7aca275ecced596b", "score": "0.6807955", "text": "private void handlePort(String args) {\n // Extract IP address and port number from arguments\n String[] stringSplit = args.split(\",\");\n String hostName = stringSplit[0] + \".\" + stringSplit[1] + \".\" + stringSplit[2] + \".\" + stringSplit[3];\n\n int p = Integer.parseInt(stringSplit[4]) * 256 + Integer.parseInt(stringSplit[5]);\n\n // Initiate data connection to client\n openDataConnectionActive(hostName, p);\n sendMsgToClient(\"200 Command OK\");\n }", "title": "" }, { "docid": "52ca2849379e2ea8aa303984f586ad56", "score": "0.6717673", "text": "public static void print_my_host_port( int portno )\nthrows UnknownHostException\n{\n InetAddress ia = java.net.InetAddress.getLocalHost();\n String hostname = ia.getHostName();\n stdout.printf(\"run telnet %s %d\\n\", hostname, portno );\n}", "title": "" }, { "docid": "3840630759ce8d8fa2242010e5837567", "score": "0.66038054", "text": "void port(int port);", "title": "" }, { "docid": "3840630759ce8d8fa2242010e5837567", "score": "0.66038054", "text": "void port(int port);", "title": "" }, { "docid": "eac41b52e1f5e49a4b8c2998ced7436b", "score": "0.66006655", "text": "public void start(int port);", "title": "" }, { "docid": "1501877bce5419dc9ba7f401598e6805", "score": "0.6592547", "text": "public static void main(String[] args) {\n\t\tString.inport. \n\t}", "title": "" }, { "docid": "638c85483a370ada5d054283c0ec732e", "score": "0.6539078", "text": "@SuppressWarnings(\"resource\")\n\tpublic static void main(String[] args) {\n\n\t\tSerialPort[] ports = SerialPort.getCommPorts();\n\t\tSystem.out.println(\"Select a port:\");\n\t\tint i = 1;\n\t\tfor (SerialPort port : ports) {\n\t\t\tSystem.out.println(i++ + \": \" + port.getSystemPortName());\n\t\t}\n\t\tScanner s = new Scanner(System.in);\n\t\tint chosenPort = s.nextInt();\n\n\t\tSerialPort serialPort = ports[chosenPort - 1];\n\t\tif (serialPort.openPort()) {\n\t\t\tSystem.out.println(\"Port opened successfully.\");\n\t\t\tport = serialPort;\n\t\t\tserialPort.setBaudRate(9600);\n\t\t} else {\n\t\t\tSystem.out.println(\"Unable to open the port.\");\n\t\t\treturn;\n\t\t}\n\t\tserialPort.setComPortTimeouts(SerialPort.TIMEOUT_SCANNER, 0, 0);\n\t\tdata = new Scanner(serialPort.getInputStream());\n\n\t\treadThread mainThread = new readThread();\n\t\tmainThread.start();\n\n\t\twhile (mainThread.isAlive()) {\n\t\t}\n\n\t\tSystem.out.println(\"Exiting the program.\");\n\t}", "title": "" }, { "docid": "89211c20ef422955180f567c8654ec2f", "score": "0.64489394", "text": "int localPort();", "title": "" }, { "docid": "4d83113405ec15ef3f1c17886f9a382d", "score": "0.64258087", "text": "public static void main(String[] args) throws IOException \n {\t \n\tScanner scannerIn = new Scanner(System.in);\n\tSystem.out.print(\"Please enter port number for the Chat Server to run on : \");\n\tint port = scannerIn.nextInt();\n\t//starts new ChatServer\n\tChatServer cs = new ChatServer(port);\n }", "title": "" }, { "docid": "c91f0dfc6152d7bddf8e0c70b5371724", "score": "0.6423521", "text": "private void run()throws IOException{\r\n Port = portNumb(); \r\n}", "title": "" }, { "docid": "d525cf1e9683fc022f7fd2b94bd544f3", "score": "0.64121467", "text": "int getPort();", "title": "" }, { "docid": "d525cf1e9683fc022f7fd2b94bd544f3", "score": "0.64121467", "text": "int getPort();", "title": "" }, { "docid": "d525cf1e9683fc022f7fd2b94bd544f3", "score": "0.64121467", "text": "int getPort();", "title": "" }, { "docid": "d525cf1e9683fc022f7fd2b94bd544f3", "score": "0.64121467", "text": "int getPort();", "title": "" }, { "docid": "d525cf1e9683fc022f7fd2b94bd544f3", "score": "0.64121467", "text": "int getPort();", "title": "" }, { "docid": "d525cf1e9683fc022f7fd2b94bd544f3", "score": "0.64121467", "text": "int getPort();", "title": "" }, { "docid": "d525cf1e9683fc022f7fd2b94bd544f3", "score": "0.64121467", "text": "int getPort();", "title": "" }, { "docid": "d525cf1e9683fc022f7fd2b94bd544f3", "score": "0.64121467", "text": "int getPort();", "title": "" }, { "docid": "d525cf1e9683fc022f7fd2b94bd544f3", "score": "0.64121467", "text": "int getPort();", "title": "" }, { "docid": "d525cf1e9683fc022f7fd2b94bd544f3", "score": "0.64121467", "text": "int getPort();", "title": "" }, { "docid": "d525cf1e9683fc022f7fd2b94bd544f3", "score": "0.64121467", "text": "int getPort();", "title": "" }, { "docid": "d525cf1e9683fc022f7fd2b94bd544f3", "score": "0.64121467", "text": "int getPort();", "title": "" }, { "docid": "d525cf1e9683fc022f7fd2b94bd544f3", "score": "0.64121467", "text": "int getPort();", "title": "" }, { "docid": "3e5a1194cb8d5e0f0835567b760536d0", "score": "0.638296", "text": "public static void main(String[] args) throws Exception {\r\n Scanner reader = new Scanner(System.in);\r\n\r\n System.out.println(\"Service address to be scanned?\");\r\n String address = reader.nextLine();\r\n \r\n System.out.println(\"Select ports starting point:\");\r\n int start = Integer.parseInt(reader.nextLine());\r\n \r\n System.out.println(\"End to which port?\");\r\n int end = Integer.parseInt(reader.nextLine());\r\n\r\n Set<Integer> ports = getAccessiblePorts(address, start, end);\r\n System.out.println(\"\");\r\n\r\n if (ports.isEmpty()) {\r\n System.out.println(\"Couldn't find any ports, sorry.\"); \r\n } else {\r\n // Prints out the found scanned ports, one by one slowly\r\n System.out.println(\"Ports found:\");\r\n ports.stream().forEach(p -> \r\n System.out.println(\"\\t\" + p));\r\n }\r\n \r\n }", "title": "" }, { "docid": "0328aec43e9a2c949484e68fe10301fa", "score": "0.62906975", "text": "public void startNetwork(int port);", "title": "" }, { "docid": "3f814a5bec1379754f46c1ae2a7a3411", "score": "0.6261394", "text": "private native int open0(String host,\n int msid, int port) throws IOException;", "title": "" }, { "docid": "67523b89c85ae0d2e4739a9d59d06343", "score": "0.62421614", "text": "Port getPort1();", "title": "" }, { "docid": "3a4aef1f57e90bc65dbb57747d37816d", "score": "0.6230118", "text": "public int getPort();", "title": "" }, { "docid": "3a4aef1f57e90bc65dbb57747d37816d", "score": "0.6230118", "text": "public int getPort();", "title": "" }, { "docid": "3a4aef1f57e90bc65dbb57747d37816d", "score": "0.6230118", "text": "public int getPort();", "title": "" }, { "docid": "c5c0393ed70318fba5e8ab53f709dfe0", "score": "0.62207437", "text": "java.lang.String getPort();", "title": "" }, { "docid": "c5c0393ed70318fba5e8ab53f709dfe0", "score": "0.62207437", "text": "java.lang.String getPort();", "title": "" }, { "docid": "ab37b4703fa01f895da37fff2afa15fb", "score": "0.62180084", "text": "String getPort();", "title": "" }, { "docid": "2cce720fc41603ca22ba5f5c58999276", "score": "0.620994", "text": "public int getStandardPort();", "title": "" }, { "docid": "2cce720fc41603ca22ba5f5c58999276", "score": "0.620994", "text": "public int getStandardPort();", "title": "" }, { "docid": "37d837df88949b6b07ebb2668b0d593d", "score": "0.62078583", "text": "public static void main(String args[]) {\n\t\tif (args.length == 1)\n\t\t\tport = Integer.parseInt(args[0]);\n\t\tnew calculatorserver();\n\t}", "title": "" }, { "docid": "3001e5d5b3739daa155f96e82ffe5b7b", "score": "0.61538476", "text": "int getIntegPort();", "title": "" }, { "docid": "20d9f4ce8b3c0244dfd02d2701af1b63", "score": "0.61518604", "text": "public static void main(String[] args) \r\n {\r\n\r\n int portNumber = 5007;\r\n\r\n if (args.length != 2) {\r\n System.err.println(\"Syntax: java Server <port number>\");\r\n System.exit(1);\r\n }\r\n\r\n portNumber = Integer.parseInt(args[1]);\r\n\r\n chatd server = new chatd(\"-port\", portNumber);\r\n server.launch();\r\n }", "title": "" }, { "docid": "bf24d1d4bc9b3ac45a00af7a98522083", "score": "0.61496764", "text": "abstract protected int PortToRunOn();", "title": "" }, { "docid": "b04d0a0b6925935d6c01753a0a84e480", "score": "0.61393464", "text": "public static void main(String[] args) {\n if (args.length != 3) {\n System.out.println(USAGE);\n System.exit(0);\n }\n \n String name = args[0];\n InetAddress addr = null;\n int port = 0;\n Socket sock = null;\n\n if (args[1].toLowerCase().equals(\"localhost\")) {\n \ttry {\n\t\t\t\taddr = InetAddress.getLocalHost();\n\t\t\t} catch (UnknownHostException e) {e.printStackTrace();}\n } else {\n \tString[] numStrings = args[1].split(\"\\\\.\");\n \tbyte[] addressBytes = new byte[4];\n \tif (numStrings.length == 4) {\n \t\tfor (int i = 0; i < 4; i++) {\n \t\t\tif (Integer.parseInt(numStrings[i]) < 0 || Integer.parseInt(numStrings[i]) > 255) {\n \t\t\t\tSystem.out.println(args[1] + \": Not a valid IP address\");\n \t\tSystem.out.println(USAGE);\n \t\tSystem.exit(0);\n \t\t\t} else {\n \t\t\t\taddressBytes[i] = (byte) Integer.parseInt(numStrings[i]);\n \t\t\t}\n \t\t}\n \t} else {\n \t\tSystem.out.println(USAGE);\n \t\tSystem.exit(0);\n \t}\n \tSystem.out.println(\"Valid address!\");\n \ttry {\n\t\t\t\taddr = InetAddress.getByAddress(addressBytes);\n\t\t\t} catch (UnknownHostException e) {e.printStackTrace();}\n \t//TODO (?): Add support for ipv6\n }\n \n try {\n \tint p = Integer.parseInt(args[2]);\n \tif (p < 0 || p > 65535) {\n\t\t\t\tSystem.out.println(args[1] + \": Not a valid port number\");\n \t\tSystem.out.println(USAGE);\n \t\tSystem.exit(0); \t\t\n \t}\n \tport = Integer.parseInt(args[2]);\n } catch (NumberFormatException e) {\n \t\tSystem.out.println(USAGE);\n \t\tSystem.exit(0); \t\n }\n\n try {\n \tSystem.out.println(\"Trying to make a socket at \" + addr + \"[\" + port + \"]\");\n sock = new Socket(addr, port);\n } catch (IOException e) {\n System.out.println(\"ERROR: \" + e.getMessage() + \" on port \" + port);\n System.exit(0);\n }\n \n // create Peer object and start the two-way communication\n try {\n Peer client = new Peer(name, sock);\n Thread streamInputHandler = new Thread(client);\n streamInputHandler.start();\n client.handleTerminalInput();\n client.shutDown();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "899f611189bd2beab3bcba87b4c15ec7", "score": "0.6127711", "text": "public static void main(String[] args) {\n new Helloworld().portMatcher();\n\n }", "title": "" }, { "docid": "0808cf5c2eaed3c9d9df0919b1c6094d", "score": "0.6111772", "text": "public static void main(String[] args) throws IOException {\n\t\tString hostName = \"192.168.3.76\";\n\t\tSystem.out.println(\"run\");\n\t\tServerSocket socketServer;\n\t\tSocket socket;\n\t\tInputStream is = null;\n\t\tOutputStream os = null;\n\t\tsocketServer = new ServerSocket(port_number);\n\t\tSystem.out.println(\"sockect created on \" + hostName); \n\t\tsocket = socketServer.accept();\n\t\tSystem.out.println(\"accepted\");\n\t\tis = socket.getInputStream();\n\t\tos = socket.getOutputStream();\n\t\tSystem.out.println(\"start listening\");\n\t\tPrintStream write = new PrintStream(os);\n\t\tBufferedReader read = new BufferedReader(new InputStreamReader(is));\n\t\tSystem.out.println(is.read());\n\t\twhile(true) {\n\t\t\tSystem.out.println((char)is.read());\n\t\t}\n\t}", "title": "" }, { "docid": "e72cd27f93305e212ba37daad683e022", "score": "0.6106281", "text": "public static void main(String[] args) throws Exception {\n//\t\tSystem.setProperty(\"ioio.SerialPorts\", \"COM8\");\n\t\tnew HelloIOIOConsole().go(args);\n\t}", "title": "" }, { "docid": "389e191e80f45dd044581c0c835ba72e", "score": "0.60929406", "text": "public static void main(String[] args) {\n if (args.length != 2) System.err.println(\"Usage: java PingClient hostname port\");\n else {\n try {\n int port = Integer.parseInt(args[1]);\n new Thread(new PingClient(args[0], port)).start();\n } catch (NumberFormatException ex) { System.err.println(\"ERR - arg 2\"); }\n }\n }", "title": "" }, { "docid": "c704b9eefb8c766cfbed5c5a08649cee", "score": "0.6081601", "text": "@SuppressWarnings(\"resource\")\n public static void main(String[] args) {\n final Scanner in = new Scanner(System.in);\n\n // Enter the port to listen\n System.out.print(\"Port: \");\n final int port = in.nextInt();\n in.nextLine();\n\n // Start the server\n Server server = new ServerImpl(port);\n server.start();\n }", "title": "" }, { "docid": "b6a4b7a1225050e977cc92584e56c0a9", "score": "0.60421824", "text": "public static void main(String[] args) {\n BasicConfigurator.configure();\n\n if (args.length < 1) {\n log.error(\"Please specify port number for Echo service\");\n System.exit(1);\n }\n\n EchoServiceLauncher echoService = new EchoServiceLauncher();\n echoService.launch( Integer.valueOf(args[0]) );\n }", "title": "" }, { "docid": "379911077aab48f598b851ed0ea0d468", "score": "0.6040451", "text": "public static void main(String[] args) {\n\t\tif (args.length < 2) {\n\t\t\tSystem.out.println(\"Please enter arguments in this format <server IP Address> <port number>\\n\");\n\t\t\tSystem.exit(0);\n\t\t}\n\t\thostname = args[0];\n\t\t\n\t\ttry {\n\t\t\tport = Integer.parseInt(args[1]);\n\t\t} catch (NumberFormatException e) { // Handle non-integer command line argument (socket's 2nd argument is int)\n\t\t\tSystem.out.println(\"User invalid input, please enter an Integer for port number.\");\n\t\t\tSystem.exit(-1);\n\t\t}\n\n\t\tmenu();\n\t\t\n\t\t// Run concurrent client threads specified times\n\t\trunThreads(1);\n\t\trunThreads(5);\n\t\trunThreads(10);\n\t\trunThreads(20);\n\t\trunThreads(30);\n\t\trunThreads(40);\n\t\trunThreads(50);\n\t\trunThreads(60);\n\t\trunThreads(70);\n\t\trunThreads(80);\n\t\trunThreads(90);\n\t\trunThreads(100);\n\t}", "title": "" }, { "docid": "6582731869b11dc03b0f417fbf55bda0", "score": "0.6014739", "text": "public static void main(String[] args){\n\t\tClientGui gui = new ClientGui();\n\t\tString address = args[0];\n\t\tgui.address=address;\n\t\tint port = Integer.parseInt(args[1]);\n\t\tgui.port = port;\n\t\t//unable to connect?\n\t\treturn ; \n\n\t}", "title": "" }, { "docid": "e4cb433b4a7bec2bede058a0c1a9f9bf", "score": "0.59904325", "text": "public static void main(String[] args) {\n\n String host = \"\";\n int port = DEFAULT_PORT; // The port number\n\n try {\n host = args[1];\n port = Integer.parseInt(args[2]);\n } catch (Exception ex) {\n }\n\n // Getting the login id\n\n // BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n // String identification = new String();\n\n try {\n String clientID = args[0];\n ClientConsole chat = new ClientConsole(clientID, host, port);\n chat.accept();\n } catch (Exception Ex) {\n System.out.println(\"ERROR - No login ID specified. Connection aborted.\");\n }\n\n /*\n * System.out.\n * println(\"Please specify port number (If blank, default port 5555 will be used)\"\n * ); try { String input = reader.readLine(); port = Integer.parseInt(input); }\n * \n * catch (Exception ex) {\n * System.out.println(\"Invalid port number. Default port of 5555 will be used\");\n * }\n * \n * if (port > 65535 || port < 0) { System.out.println(\"Invalid Port Number\"); }\n * else { System.out.println(\"Connection to server at port \" + port); try { host\n * = args[0]; } catch (ArrayIndexOutOfBoundsException e) { host = \"localhost\"; }\n * \n * ClientConsole chat = new ClientConsole(identification, host, port);\n * chat.accept(); // Wait for console data\n */\n }", "title": "" }, { "docid": "101748e0bbb79d9e67bd145c2f409d1d", "score": "0.5966462", "text": "public static void main (String[] args) throws IOException {\n\tint portNumber = 0;\n\tboolean listeningY = true;\n\t//Checks to see if a argument of 1 is present\n\t\tif (args.length != 1) {\n\t\t\tSystem.err.println (\"Wrong arguments! Use as 'java server <port number>',\"\n\t\t\t\t+\"where <port number> is a valid integer over 1024!\");\n\t\t\tSystem.exit(1);\n\t\t}\n\n\t\t//converts argumentn to number and stores it as portNumber\n\t\tportNumber = Integer.parseInt(args[0]);\n\n\t\t//error checking to see if portNumber is in accepted range\n\t\tif (portNumber < 1025) {\n\t\t\tSystem.err.println (\"Invalid Argument: Please enter a port number greater than 1025, less then 49151\");\n\t\t\tSystem.exit(1);\n\t\t}\n\t\telse if (portNumber > 49151) {\n\t\t\tSystem.err.println (\"Invalid Argument: Please enter a port number greater than 1025, less then 49151\");\n\t\t\tSystem.exit(1);\n\t\t}\n\n\t\t//started up fine, so print to screen that server ris running\n\t\tSystem.out.println(\"Server Running...\");\n\n\t\t//try portion to create server socket\n\t\ttry (\n\t\t\tServerSocket a1Socket = new ServerSocket(portNumber);\n\t\t\t) {\n\t\t\t\twhile (listeningY) {\n\t\t\t\t\t//creates a new instance of serverThread whenever it accepts a client socket request\n\t\t\t\t\tnew serverThread(a1Socket.accept()).start();\n\t\t\t\t}\n\t\t}\n\t\t//catches and deals with IOExceptions\n\t\tcatch (IOException e) {\n\t\t\t//prints out error messages \n\t\t\tSystem.err.println (\"Error! Exception caught (server side) while trying to listen for a connection or while trying to listen on the specified port number.\");\n\t\t\tSystem.err.println(\"Exception Message: \"+e.getMessage());\n\t\t}\n\t}", "title": "" }, { "docid": "f8476a9d77e7e063835dba7f1ab51a90", "score": "0.5961839", "text": "Port getPort2();", "title": "" }, { "docid": "956053f3231dea81d7065d2f30017309", "score": "0.5945466", "text": "public void setPort(int port);", "title": "" }, { "docid": "956053f3231dea81d7065d2f30017309", "score": "0.5945466", "text": "public void setPort(int port);", "title": "" }, { "docid": "d6aa5d48f5947a5b796c786d8b419a11", "score": "0.59368", "text": "int getS1Port();", "title": "" }, { "docid": "6ee29a566c1c971b9b83939fb08bf04a", "score": "0.59267306", "text": "Port createPort();", "title": "" }, { "docid": "6ee29a566c1c971b9b83939fb08bf04a", "score": "0.59267306", "text": "Port createPort();", "title": "" }, { "docid": "da6656fa23dca9e3e63ead54e3104e1c", "score": "0.59223354", "text": "public static void main(String args[]) {\r\n\t\t// check to ensure there is a port number to read, report an error\r\n\t\t// if the port number is not there\r\n\t\tif (args.length > 1) {\r\n\t\t\tSystem.out.println(\"Usage: java -jar ServerMain.jar [port]\");\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t\r\n\t\t// parse the port number and create new ServerMain\r\n\t\t// catch exception if it happens\r\n\t\ttry {\r\n\t\t\tnew ServerMain(Integer.parseInt( args[0] ));\r\n\t\t}\r\n\t\tcatch (Exception e) {\r\n\t\t\tSystem.out.println(\"Error while parsing or creating ServerMain\");\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "ae7d6e9619f1df7d135b153e734b8742", "score": "0.59146965", "text": "public int getTextPort();", "title": "" }, { "docid": "d75b0df4b8aeb1236f435cebb1605010", "score": "0.590043", "text": "static public void main ( String args[] ) throws UnknownHostException, ClassNotFoundException, IOException\n {\n if (args.length < 2) {\n System.err.println( \"Usage: java MessageClient <host> <port>\" ); \n return;\n } \n // parse the hostname and the port number from the passed parameters\n String hostname = args[0]; \n int port = Integer.parseInt( args[1] ); \n\n // create a new MessageClient and pass parsed hostname and port as parameters\n new MessageClient ( hostname, port ) ; \n }", "title": "" }, { "docid": "8a2cdd6bd3f3be9c0349d9e7950c0b38", "score": "0.5893802", "text": "private void cmdNet() {\n int port = 1777;\n try {\n Log.verbose(\"waiting for connection on port \" + port + \"...\");\n ServerSocket socket = new ServerSocket(port);\n Socket client = socket.accept();\n InetAddress clientAddr = client.getInetAddress();\n Log.verbose(\"connected to \" + clientAddr.getHostName() + \"/\"\n + client.getPort());\n Readline readline = new SocketReadline(client, true, \"net>\");\n fReadlineStack.push(readline);\n } catch (IOException ex) {\n Log.error(\"Can't bind or listen on port \" + port + \".\");\n }\n }", "title": "" }, { "docid": "27feb6da22d6d29ab670715ae9c8d3c9", "score": "0.58933544", "text": "public static void main(String [] args){\n\t\t\n\t\tif(args.length != 2){\n\t\t\tSystem.out.println(\"You need a hostname and a port number to connect your client to a server\");\n\t\t}\n\t\telse{\n\t\t\tString serverName = args[0];\n\t\t\tint port = Integer.parseInt(args[1]);\n\t\t\tChatClient client = new ChatClient(serverName, port);\n\t\t}\n\t}", "title": "" }, { "docid": "cc96c3221d1c11f4a3f71c153a3250f9", "score": "0.5891121", "text": "Builder port(int port);", "title": "" }, { "docid": "d6c203512f8db13aedff692e9e91824a", "score": "0.5880354", "text": "public static int processCliArgs(String[] args) {\n int port = DEFAULTPORT;\n if (args.length > 1) {\n System.out.println(\"usage: ./xtcp positive-integer\");\n System.exit(1);\n }\n if (args.length == 1) {\n try {\n port = Integer.parseInt(args[0]);\n if (port <= 0) {\n throw new IllegalArgumentException(\"number cannot be negative\");\n }\n }\n catch (Exception e) {\n // number passed in was not an integer\n System.out.println(\"usage: ./xtcp positive-integer\");\n System.exit(1);\n }\n }\n return port;\n }", "title": "" }, { "docid": "f830dd5f6d6dcdc3f3a9fe980e83bb0d", "score": "0.5869678", "text": "private void handleEPort(String args) {\n final String IPV4 = \"1\";\n final String IPV6 = \"2\";\n\n // Example arg: |2|::1|58770| or |1|132.235.1.2|6275|\n String[] splitArgs = args.split(\"\\\\|\");\n String ipVersion = splitArgs[1];\n String ipAddress = splitArgs[2];\n\n if (!IPV4.equals(ipVersion) || !IPV6.equals(ipVersion)) {\n throw new IllegalArgumentException(\"Unsupported IP version\");\n }\n\n int port = Integer.parseInt(splitArgs[3]);\n\n // Initiate data connection to client\n openDataConnectionActive(ipAddress, port);\n sendMsgToClient(\"200 Command OK\");\n\n }", "title": "" }, { "docid": "06c06d949f8a08e97ee0245fd7b25e0c", "score": "0.585273", "text": "public void Main( String[] Arguments) throws UnsupportedCommOperationException, PortInUseException, IOException\n\t{\n\t\tString Device = \"/dev/cu.usbserial-A1048A6Y\";\n\t\tint BaudRate = 9600;\n\n\t\tif( Arguments.length > 0)\n\t\t{\n\t\t\tDevice = Arguments[ 0];\n\t\t}\n\n\t\tSystem.out.println( \"Available ports: \" + Ports.ports());\n\n\t\tSerialPort UsePort = Ports.openPort( Device);\n\n\t\tUsePort.setFlowControlMode( SerialPort.FLOWCONTROL_NONE);\n\t\tUsePort.setSerialPortParams( BaudRate, SerialPort.DATABITS_8, SerialPort.STOPBITS_1,\n\t\t\t\t\t\t\t\t\t\t\t SerialPort.PARITY_NONE);\n\n\t\twhile( true)\n\t\t{\n\t\t\tUsePort.getOutputStream().write( \"Switches On Off On Off On Off On\\n\".getBytes());\n\t\t\tUsePort.getOutputStream().write( \"Switches Off On Off On Off On Off\\n\".getBytes());\n\t\t}\n\n//\t\tUsePort.close();\n }", "title": "" }, { "docid": "9efc2df9a4bc6d719d8dc12eae3fd620", "score": "0.5850717", "text": "ReaderHelper connectNet(final String host, final int port);", "title": "" }, { "docid": "1dc9b87d83c90d323e121479c74c0b34", "score": "0.58314145", "text": "public native int getRemotePort() throws IOException,IllegalArgumentException;", "title": "" }, { "docid": "b3549fb231fc2d9c5efb091476fb164a", "score": "0.5820717", "text": "int getServicePort();", "title": "" }, { "docid": "9dbcc0fa10ccdcdb8ec316ae54e2b0ee", "score": "0.5812682", "text": "public static void main(String[] args) throws IOException {\n int port = 8080;\n\n try {\n if (args.length == 1) {\n port = Integer.parseInt(args[0]);\n }\n ServerSocket serverSocket = new ServerSocket(port);\n ChatServer server = new ChatServer(serverSocket);\n server.startServer();\n } catch (NumberFormatException ne) {\n System.out.println(\"Illegal inputs provided when starting the server!\");\n return;\n }\n }", "title": "" }, { "docid": "c7cf2f36cf4c54e81154fd32cebb72fa", "score": "0.5791239", "text": "public static void main(String[] args) throws IOException {\n int port = 7788;\n Server server = new Server(port);\n server.listen();\n }", "title": "" }, { "docid": "3d9ab6ab239cc7ac618e770354a6d92b", "score": "0.5790082", "text": "native int _openSerialPort(String comPort, int baud, int dataBits, int stopBits, int parity);", "title": "" }, { "docid": "794edd485cb4ec239f544e7da71c3997", "score": "0.57762045", "text": "void doConnect() throws IOException\n\t{\n\t\tint port = 0;\n\t\tif (hasMoreTokens())\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\tport = nextIntToken();\n\t\t\t}\n\t\t\tcatch (NumberFormatException ex)\n\t\t\t{\n\t\t\t\terr(ex.getLocalizedMessage());\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tport = DProtocol.DEBUG_CONNECT_PORT;\n\t\t}\n\n\t\tif (port > 0)\n\t\t{\n\t\t\tm_connectPort = String.valueOf(port);\n\t\t\tdoRun();\n\t\t}\n\t}", "title": "" }, { "docid": "144026af8999ce433e0bd2a24ad75fa9", "score": "0.5768839", "text": "final public static void main(String[] args)\r\n\t{\n\t\ttry\r\n\t\t{\r\n\t\t\tServerSocket test = new ServerSocket(9999);\r\n\t\t\ttest.close();\r\n\t\t\ttest = null;\r\n\t\t} catch (IOException e)\r\n\t\t{\r\n\t\t\tCommonMethods.displayErrorMessage(Text.MAIN.PORT9999_TAKEN_ERROR);\r\n\t\t\tCommonMethods.terminate();\r\n\t\t}\r\n\t\t//start the program\r\n\t\tStartUp startUp = new StartUp();\r\n\t\tstartUp.addStartUpListener(new StartUpListener(startUp));\r\n\t}", "title": "" }, { "docid": "13af0a41a47ec9dba9cede951d7a8c67", "score": "0.57561016", "text": "public static void main(String args[])\n {\n if (args.length != 2) {\n System.err.println(\"Usage: java myftp <host name> <port number>\");\n System.exit(1);\n }\n\n myftp mfp = new myftp();\n mfp.createSocket(args[0], Integer.parseInt(args[1]));\n }", "title": "" }, { "docid": "18ec883a5e6b591ad1cd347a3ab019a6", "score": "0.57367516", "text": "@Nullable\n @Generated\n @Selector(\"localPort\")\n public native NSNumber localPort();", "title": "" }, { "docid": "1be8daee4f9d0e36b49fdc70e2461fe2", "score": "0.57364726", "text": "public static void main(String[] args) throws NumberFormatException, IOException {\n if (args.length != 3) {\n usage();\n return;\n }\n if (args[0].length() > 9) {\n System.out.println(\"Login name cannot exceed 9 caracters\");\n return;\n }\n Pattern pattern = Pattern.compile(\"[^a-zA-Z0-9]\");\n Matcher matcher = pattern.matcher(args[0]);\n if (matcher.find()) {\n System.out.println(\"Login cannot contains special characters\");\n return;\n }\n new ClientChatOs(args[0], new InetSocketAddress(args[1], Integer.parseInt(args[2]))).launch();\n }", "title": "" }, { "docid": "978bd0a0df18221f0d4a8c453c6610fb", "score": "0.57115716", "text": "public static void main(String[] args){\r\n \t\tIAuditoriumParams params = new AuditoriumParams(\"tap.conf\");\r\n \t\t\r\n \t\tint serial = -1;\r\n \t\tString reportAddr = null;\r\n \t\tint port = -1;\r\n \t\t\r\n \t\tif(args.length != 3){\r\n \t\t\tint p = 0;\r\n \t\t\tserial = params.getDefaultSerialNumber();\r\n \t\t\t\r\n \t\t\tif(serial == -1){\r\n \t\t\t\ttry{\r\n \t\t\t\t\tserial = Integer.parseInt(args[p]);\r\n \t\t\t\t\tp++;\r\n \t\t\t\t}catch(Exception e){\r\n \t\t\t\t\tthrow new RuntimeException(\"usage: Tap [serial] [report address] [port]\\nExpected valid serial.\");\r\n \t\t\t\t}\r\n \t\t\t}\r\n \t\t\t\r\n \t\t\treportAddr = params.getReportAddress();\r\n \t\t\t\r\n \t\t\tif(reportAddr.length() == 0){\r\n \t\t\t\ttry{\r\n \t\t\t\t\treportAddr = args[p];\r\n \t\t\t\t\tp++;\r\n \t\t\t\t}catch(Exception e){\r\n \t\t\t\t\tthrow new RuntimeException(\"usage: Tap [serial] [report address] [port]\");\r\n \t\t\t\t}\r\n \t\t\t}\r\n \t\t\t\r\n \t\t\tport = params.getChallengePort();\r\n \t\t\t\r\n \t\t\tif(port == -1){\r\n \t\t\t\ttry{\r\n \t\t\t\t\tport = Integer.parseInt(args[p]);\r\n \t\t\t\t\tp++;\r\n \t\t\t\t}catch(Exception e){\r\n \t\t\t\t\tthrow new RuntimeException(\"usage: Tap [serial] [report address] [port]\\nExpected valid port.\");\r\n \t\t\t\t}\r\n \t\t\t}\r\n \t\t}else{\r\n \t\t\ttry{\r\n \t\t\t\tserial = Integer.parseInt(args[0]);\r\n \t\t\t\treportAddr = args[1];\r\n \t\t\t\tport = Integer.parseInt(args[2]);\r\n \t\t\t}catch(Exception e){\r\n \t\t\t\tthrow new RuntimeException(\"usage: Tap [serial] [report address] [port]\");\r\n \t\t\t}\r\n \t\t}\r\n \t\t\r\n \t\tSystem.out.println(\"Using settings:\\n\\tSerial: \"+serial+\"\\n\\tReport Address: \"+reportAddr+\"\\n\\tPort: \"+port);\r\n \t\t\r\n \t\ttry{\r\n \t\t\tInetSocketAddress addr = new InetSocketAddress(reportAddr, port);\r\n \t\t\t\r\n \t\t\twhile(true){\r\n \t\t\t\ttry{\r\n \t\t\t\t\tSocket localCon = new Socket();\r\n \t\t\t\t\tlocalCon.connect(addr);\r\n \r\n \t\t\t\t\t(new Tap(serial, localCon.getOutputStream())).start();\r\n \t\t\t\t\tbreak;\r\n \t\t\t\t}catch(IOException e){\r\n \t\t\t\t\tSystem.out.println(\"Connection failed: \"+e.getMessage());\r\n \t\t\t\t\tSystem.out.println(\"Retry in 5 seconds...\");\r\n \t\t\t\t\tThread.sleep(5000);\r\n \t\t\t\t}//catch\r\n \t\t\t}//while\r\n \t\t}catch(NumberFormatException e){\r\n \t\t\tthrow new RuntimeException(\"usage: Tap [serial] [report address] [port]; where port is between 1 and 65335 & [serial] is a positive integer\", e);\r\n \t\t}catch(InterruptedException e){\r\n \t\t\tthrow new RuntimeException(e);\r\n \t\t}\r\n \t}", "title": "" }, { "docid": "f88dc9763e7ee3c8d53b8a037e377c15", "score": "0.5708325", "text": "Integer listeningPort();", "title": "" }, { "docid": "eafb8c99c7bca78d5c7616db232a57b1", "score": "0.57072604", "text": "public static void main(String[] args) throws NumberFormatException,\n IOException\n {\n int port = 0;\n String address = \"127.0.0.1\";\n String path = \"\";\n\n if (args.length % 2 == 0) {\n for (int i = 0; i < args.length; i++) {\n if (args[i].equals(\"-a\")) {\n address = args[i + 1];\n }\n if (args[i].equals(\"-d\")) {\n path = args[i + 1];\n }\n if (args[i].equals(\"-p\")) {\n port = Integer.parseInt(args[i + 1]);\n }\n }\n }\n\n if (port != 0 && !path.equals(\"\")) {\n new FileServer().launch(port, path, address);\n } else {\n System.out\n .println(\"> arguments must be : -p [port] -d [path of the file system] -a (optionnal) [address]\");\n }\n }", "title": "" }, { "docid": "d8a0ffd081dc3c24dfe08671f8712022", "score": "0.5704188", "text": "@Override\n public void run() {\n\n // Iterate over the given port range to scan\n for (int port = this.portMin; port <= this.portMax; port++) {\n\n // We will use the IOException thrown by Socket on connection failure to\n // determine if a service is running on a given port or not.\n // As such, we use a try-catch block\n try {\n\n // Create socket for port testing\n Socket socket = new Socket();\n\n // We now use the created socket to attempt a connection with the current port,\n // testing if a service is listening on the current port. We can get the\n // loopback address as seen below, or manually enter one of the common loopback\n // addresses: \"127.0.0.1\", \"0.0.0.0\" or \"localhost\".\n InetAddress loopbackAddress = InetAddress.getLoopbackAddress();\n SocketAddress scanAddress = new InetSocketAddress(loopbackAddress, port);\n\n // Since we are scanning our local computer we can set a quite short timeout\n // In this example we use 50 milliseconds\n int timeout = 50;\n\n // Attempt the connection\n socket.connect(scanAddress, timeout);\n socket.close();\n\n // Alternatively, the shorthand:\n // Socket otherSocket = new Socket(InetAddress.getLoopbackAddress(), port);\n // otherSocket.close();\n\n // If the socket successfully connected, we know that a service is listening on\n // the currently tested port, and we print it.\n System.out.println(\"Service listening on port: \" + port);\n\n } catch (IOException e) {\n // If an exception is thrown by the client sockets, we can assume that the port\n // is unused, and we choose to do nothing. Alternatively, we can print port\n // closed:\n // System.out.println(\"No service listening on port: \" + port);\n }\n\n }\n\n }", "title": "" }, { "docid": "054ec7288c382a47e6b8d7b44f4b98d7", "score": "0.56791663", "text": "void startServer(int port) throws Exception;", "title": "" }, { "docid": "75116725732e22a501d234f7d2c356f0", "score": "0.5678683", "text": "public static void main(String[] args) throws IOException, InterruptedException {\n\t\tSystem.out.printf(\"Received %d arguments%n\", args.length);\n\t\tfor (int i = 0; i < args.length; i++) {\n\t\t\tSystem.out.printf(\"arg[%d] = %s%n\", i, args[i]);\n\t\t}\n\n\t\t// check arguments\n\t\tif (args.length < 1) {\n\t\t\tSystem.err.println(\"Argument(s) missing!\");\n\t\t\tSystem.err.printf(\"Usage: java %s port%n\", PasServerApp.class.getName());\n\t\t\treturn;\n\t\t}\n\n // parse port\n int port = Integer.parseInt(args[0]);\n\n\n Database database = new Database();\n BindableService service1 = new PasServiceImpl(database);\n\n // bind this server to a port and to any grpc services you want\n Server server = ServerBuilder\n .forPort(port)\n .addService(service1)\n .build();\n\n // start server\n server.start();\n System.out.println(\"Server started on port \" + port);\n server.awaitTermination();\n }", "title": "" }, { "docid": "0eba64f633bd55768296cb1a831e7fc9", "score": "0.56730944", "text": "int serverPort ();", "title": "" }, { "docid": "9bae4f14b27e50964fde017967eee646", "score": "0.56668967", "text": "protected int getDefaultPort() {\n/* 320 */ return -1;\n/* */ }", "title": "" }, { "docid": "c59e191e54d85ef749fef070da162ff9", "score": "0.56528836", "text": "public void testSetPort() {\n }", "title": "" }, { "docid": "92edd66a0bdaf054e73065e8e460781f", "score": "0.5640494", "text": "ReaderHelper connectCom(final String port, final int baud);", "title": "" }, { "docid": "d2e2aab11c4a64c9388a790ffcf58b8e", "score": "0.5635087", "text": "@Override\n\tpublic void process() {\n\t\tport = Integer.parseInt(args);\n\t\tsuper.process();\n\t}", "title": "" }, { "docid": "14788b9605b0622699006f985066531a", "score": "0.5628543", "text": "private void connectToNS(int port, String host)throws Exception{\n boolean gotSList = false;\n socket = new Socket(host, port);\n outStream = new PDUOutputStream(socket.getOutputStream());\n inStream = new PDUInputStream(socket.getInputStream());\n\n PduGetList getList = new PduGetList();\n outStream.writeToServer(getList.getByteArray());\n\n while(!gotSList) {\n if (!inStream.streamIsEmpty()) {\n Pdu inPDU = inStream.readPdu();\n socket.close();\n inPDU.print();\n gotSList = true;\n }\n }\n\n Scanner s = new Scanner(System.in);\n System.out.println(\"ip-address: \");\n host = s.nextLine();\n checkInput(host);\n System.out.println(\"Port: \");\n port = s.nextInt();\n checkInput(String.valueOf(port));\n\n connectToCS(port, host);\n }", "title": "" }, { "docid": "d897b3e51db6e06bd2695145f2cdb51c", "score": "0.5624226", "text": "public static void main(String[] args) throws Exception {\n int portNumber = 9876;\n new Controller(portNumber).run();\n\n }", "title": "" }, { "docid": "6ad94261193f33b93e6232dc69da2fac", "score": "0.56189716", "text": "int getSnPort();", "title": "" }, { "docid": "6ad94261193f33b93e6232dc69da2fac", "score": "0.56189716", "text": "int getSnPort();", "title": "" }, { "docid": "2cc541568a36bfa380015784b71292f9", "score": "0.56049573", "text": "public CameraPiSocket(int port_arg){\n\t\tport = port_arg;\n\t}", "title": "" }, { "docid": "36c8821e63d41cfeb98a62b46daf24d3", "score": "0.56015074", "text": "public static PacketSource makeArgsSerial(String args) {\n\tif (args == null)\n\t args = \"COM1\";\n\n\tParseArgs parser = new ParseArgs(args, \":\");\n\tString port = parser.next();\n\tString platformOrBaud = parser.next();\n\tint baudrate = decodeBaudrate(platformOrBaud);\n\tint platform = Platform.decodePlatform(platformOrBaud);\n\treturn makeSerial(port, baudrate, platform);\n }", "title": "" }, { "docid": "1b3ad2f2017f0bd4ddacce3a128e7a31", "score": "0.55978197", "text": "public static void main(String[] args) throws IOException\n {\n list = new String[] {\"Charizard\", \"Charizard\", \"Charizard\", \"Charizard\", \"Charizard\", \"Charizard\"};\n new ClientConnection(\"10.13.103.53\", list);\n }", "title": "" }, { "docid": "ae597911d9b9632e9d3f7624888c5668", "score": "0.5596404", "text": "public static void connect(String comName)\n {\n char[] stringToChar = comName.toCharArray();\n System.out.println(\"Name is \"+ (int)stringToChar[0]);\n\n if (comName!=\"\") {\n try {\n\n serialPort = SerialPort.getCommPort(comName);\n serialPort.setBaudRate(9600);\n serialPort.openPort();\n } catch (Exception e) {\n //System.out.println(\"Serial Port Failed to Initialize\");\n }\n }\n\n\n }", "title": "" }, { "docid": "8fb4d735519a7d6b9e6a093ae0c0f5cd", "score": "0.5591558", "text": "public static void main (String arg[]) throws IOException\n {\n try\n {\n Socket socket = new Socket(\"127.0.0.1\", 3000);\n //System.out.println(\"Connected!\");\n DataInputStream inputStream = new DataInputStream(socket.getInputStream());\n String received = inputStream.readUTF();\n System.out.println(received);\n }\n catch(Exception e) {}\n\n IO ioMenu = new IO();\n ioMenu.runMenu();\n }", "title": "" }, { "docid": "bef53ab5180cb68dad08168ac12313d5", "score": "0.5579651", "text": "public static int choosePort() {\n try (ServerSocket s = new ServerSocket(0)) {\n return s.getLocalPort();\n } catch (IOException ex) {\n throw new DeltaException(\"Failed to find a port\");\n }\n }", "title": "" }, { "docid": "cc4a3a3e88be0e4734c7266dc62746ce", "score": "0.55788493", "text": "public static void main(String[] args) throws UnknownHostException {\n\t\tInetAddress inet=InetAddress.getLocalHost(); \t\r\n\t\ttry {\r\n\t\t\tSocket clien=new Socket(inet.getHostAddress(),8899);\r\n\t\t\t\r\n\t\t\tOutputStream os=clien.getOutputStream();\r\n\t\t\t\r\n\t\t\tInputStream is=clien.getInputStream();\r\n\t\t} catch (UnknownHostException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (IOException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "826470c110adccb4c08f8adc82b05fb4", "score": "0.55780196", "text": "public static void main(String[] args) {\n if(args.length == 12 && args[0].equals(\"-p\") && args[2].equals(\"-s\") &&\n args[4].equals(\"-a\") && args[6].equals(\"-f\") && args[8].equals(\"-m\")\n && args[10].equals(\"-c\")) {\n \n int port = Integer.parseInt(args[1]);\n InetAddress remoteAddress = null;\n try {\n remoteAddress = InetAddress.getByName(args[3]);\n } catch (UnknownHostException e) {\n e.printStackTrace();\n }\n int remotePort = Integer.parseInt(args[5]);\n String file = args[7];\n int mtu = Integer.parseInt(args[9]);\n int sws = Integer.parseInt(args[11]);\n sender(port, remoteAddress, remotePort, file, mtu, sws);\n }\n // -p <port> -m <mtu> -c <sws> -f <file name>\n else if(args.length == 8 && args[0].equals(\"-p\") && args[2].equals(\"-m\") &&\n args[4].equals(\"-c\") && args[6].equals(\"-f\")) {\n int port = Integer.parseInt(args[1]);\n int mtu = Integer.parseInt(args[3]);\n int sws = Integer.parseInt(args[5]);\n String file = args[7];\n receiver(port, mtu, sws, file);\n }\n // error\n else {\n System.out.println(\"usage:\\n\"\n + \"java TCPend -p <port> -s <remote IP> -a <remote port> -f <file name> -m <mtu> -c <sws>\\n\"\n + \"java TCPend -p <port> -m <mtu> -c <sws> -f <file name>\");\n System.exit(1);\n }\n }", "title": "" }, { "docid": "127b3e0894f15e149a32cbf975a57ced", "score": "0.55649376", "text": "public static void main(String[] args){\n\t\tString user_id=\"Server\";\n\t\tString host = \"\", password=\"\";\n\t\tint port = 0; //The port number\n\t\ttry{\n\t\t\tpassword = args[0];\n\t\t}\n\t\tcatch(ArrayIndexOutOfBoundsException e) {\n\t\t\tSystem.out.println(\"ERROR: No password provided for logging onto server console, connection aborted\");\n\t\t\tSystem.exit(0);\n\t\t}\n\t\ttry{\n\t\t\thost = args[1];\n\t\t}\n\t\tcatch(ArrayIndexOutOfBoundsException e){\n\t\t\thost = \"localhost\";\n\t\t}\n\t\ttry{\n\t\t\tport = Integer.parseInt(args[2]);\n\t\t}catch (ArrayIndexOutOfBoundsException e){\n\t\t\tport = DEFAULT_PORT;\n\t\t}\n\t\tServerConsole serv= new ServerConsole(user_id, host, password, port);\n\t\tserv.accept(); //Wait for console data\n\t}", "title": "" } ]
637a279c11064fee2813aa77dba286b6
making a phone call
[ { "docid": "5f4c2a61ca20d8586e348d29dbbfaed7", "score": "0.7665784", "text": "public void makeACall() {\n \tif( doYouWantTo(\"make a phone call\") ) {\n \t\tsetPhoneNumber(Operations.CALL);\n \t\tdial();\n \t}\n }", "title": "" } ]
[ { "docid": "9b28f712bb28a8e722e5b03a0d23e22f", "score": "0.8384841", "text": "private void makeCall() {\n Intent callIntent = new Intent(Intent.ACTION_CALL);\n callIntent.setData(Uri.parse(\"tel:\" + txtPhone.getText()));\n\n startActivity(callIntent);\n }", "title": "" }, { "docid": "6927fe4af49c25e2d81973ce7b43d999", "score": "0.7855423", "text": "public void makeCall(View view) {\n Intent call = new Intent(android.content.Intent.ACTION_VIEW, Uri.parse(\"tel:01749817193\"));\r\n startActivity(call);\r\n }", "title": "" }, { "docid": "cfd7019b6826c8d8f9e43f5ed6e5042e", "score": "0.7590307", "text": "void call() {\n\t\t// pass number to dialer app\n\t\tIntent intent = new Intent(getApplicationContext(),\n\t\t\t\tPhoneDialerApp.class);\n\t\tintent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n\t\tintent.putExtra(\"call\", TextMessagesViewerApp.this.address);\n\t\tstartActivity(intent);\n\t\tfinish();\n\t}", "title": "" }, { "docid": "858ed8f9e1ed84c8887e344be49fba7e", "score": "0.7508171", "text": "private void launchCall(String phone) {\n if (!phone.isEmpty()) {\n Uri phoneNumber = Uri.parse(\"tel:\" + phone);\n Intent dialIntent = new Intent(Intent.ACTION_DIAL);\n dialIntent.setData(phoneNumber);\n if (dialIntent.resolveActivity(getPackageManager()) != null) {\n startActivity(dialIntent);\n }\n }\n }", "title": "" }, { "docid": "ae9f1cb40afb2510c150eab18af748fe", "score": "0.74982953", "text": "public void appelTel(final String num){\n Intent i = new Intent(android.content.Intent.ACTION_CALL, Uri.parse(\"tel:\" + num));\n startActivity(i);\n }", "title": "" }, { "docid": "676ea1a862e7d12b4d3cd051667f4854", "score": "0.7395708", "text": "@Override\n public void onClick(View view) {\n final int REQUEST_PHONE_CALL = 1;\n Intent callIntent = new Intent(Intent.ACTION_CALL);\n callIntent.setData(Uri.parse(\"tel:1234567890\"));\n //-----------------checks for permission before placing the call--------------------\n if (android.os.Build.VERSION.SDK_INT >= Build.VERSION_CODES.M){\n if(ContextCompat.checkSelfPermission(formulario.this, Manifest.permission.CALL_PHONE) != PackageManager.PERMISSION_GRANTED){\n ActivityCompat.requestPermissions(formulario.this, new String[]{Manifest.permission.CALL_PHONE}, REQUEST_PHONE_CALL);\n }else{\n //-------------------------------places the call-----------------------------------\n startActivity(callIntent);\n }\n }\n }", "title": "" }, { "docid": "ea4e8ad7d6773068f14e3d78cada5cf9", "score": "0.7372097", "text": "public void call911(View view){\n String policeAndFireDep = \"911\";\n\n Intent callNineOneOne = new Intent(Intent.ACTION_CALL, Uri.parse(\"tel:\" + policeAndFireDep));\n\n\n if(callNineOneOne.resolveActivity(getPackageManager()) != null){\n startActivity(callNineOneOne);\n }\n }", "title": "" }, { "docid": "342d748973ab5a94ed3461ce3874f75a", "score": "0.7348344", "text": "public void callPhone(){\n\n }", "title": "" }, { "docid": "d2370afe34180836f962141d378e6af4", "score": "0.7300573", "text": "public void onClick(View arg0) {\n\t\t\t\tUri number = Uri.parse(\"tel:\"+ preferences.getString(\"PHONE_NO\", \"\"));\n\t\t\t\tIntent intent = new Intent(Intent.ACTION_CALL,number);\n\t\t\t\tintent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n\t\t\t\tstartActivity(intent); \n\t\t\t}", "title": "" }, { "docid": "feba4f14f2d34d4e52b4e9acea8f460b", "score": "0.72992605", "text": "public void call() {\n\t\tSystem.out.println(\"cell Phone call\");\n\t}", "title": "" }, { "docid": "822e2f8b3aa95e8bffc88ffe287604a3", "score": "0.72707385", "text": "public static void phoneAgent(Context context,String number){\r\n Intent intent = new Intent(Intent.ACTION_CALL, Uri.parse(C.PHONE_URI_START + number));\r\n context.startActivity(intent);\r\n }", "title": "" }, { "docid": "a3ac62c82315033b1cdc952fdc5f4691", "score": "0.7201942", "text": "public static void doNewVoiceCall(Activity context, String calle) {\n try {\n if(ContextCompat.checkSelfPermission(context, Manifest.permission.RECORD_AUDIO) == PackageManager.PERMISSION_GRANTED) {\n if (ContextCompat.checkSelfPermission(context, Manifest.permission.READ_PHONE_STATE) == PackageManager.PERMISSION_GRANTED) {\n TelephonyManager telManager = (TelephonyManager) context.getSystemService(Context.TELEPHONY_SERVICE);\n if(telManager.getCallState() == TelephonyManager.CALL_STATE_IDLE) {\n if(Utils.isNetworkAvailable(context)) {\n if (new CSClient().getLoginstatus()) {\n if (!calle.equals(\"\") && !calle.equals(ClickToCallConstants.loginid)) {\n Intent intent = new Intent(context, PlayNewAudioCallActivity.class);\n intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n intent.putExtra(\"dstnumber\", calle);\n intent.putExtra(\"isinitiatior\", true);\n context.startActivity(intent);\n } else {\n Utils.showSettingsAlert(context, \"No valid Caller\");\n }\n } else {\n Utils.showSettingsAlert(context,\"Couldn't place call. Please check internet connection and try again\");\n }\n\n } else {\n Utils.showSettingsAlert(context, context.getString(R.string.network_unavailable_message));\n }\n\n } else {\n Utils.showSimpleAlert(context,\"GSM Call is in progress.Couldn't place call\");\n }\n } else {\n Utils.showSimpleAlert(context,\"READ_PHONE_STATE Permission Needed\");\n }\n } else {\n Utils.showSimpleAlert(context, \"RECORD_AUDIO Permission Needed\");\n }\n } catch (Exception ex) {\n ex.printStackTrace();\n }\n }", "title": "" }, { "docid": "4251bea9ff5706492ae0db6d0f7a9ccb", "score": "0.717719", "text": "private void makeCall(String phoneNumber,long id,long userid){\n String endPoint = \"http://calltag.heroku.com/twillio.htm\"\n + \"?tweet_id=\"+String.valueOf(id)\n + \"&author_id=\"+String.valueOf(userid);\n \n phone.call(phoneNumber,endPoint);\n }", "title": "" }, { "docid": "4810d99373c47e0a3b59f364e2603263", "score": "0.71748734", "text": "@Override\n public void onClick(View view) {\n Animation animation = AnimationUtils.loadAnimation(Vespa.this, R.anim.bounce);\n contactVespa.startAnimation(animation);\n\n String phoneNumber = \"0721151527\";\n Intent intent = new Intent(Intent.ACTION_DIAL);\n intent.setData(Uri.parse(\"tel:\" + phoneNumber));\n if (intent.resolveActivity(getPackageManager()) != null) {\n startActivity(intent);\n\n }\n\n Toast toast = Toast.makeText(getApplicationContext(), \"Making a call\", Toast.LENGTH_LONG);\n toast.show();\n\n\n }", "title": "" }, { "docid": "ec2480499830259873e6c46e67a23fb6", "score": "0.7174121", "text": "public static void doNewPSTNCall(Activity context, String calle) {\n try {\n if(ContextCompat.checkSelfPermission(context, Manifest.permission.RECORD_AUDIO) == PackageManager.PERMISSION_GRANTED) {\n if (ContextCompat.checkSelfPermission(context, Manifest.permission.READ_PHONE_STATE) == PackageManager.PERMISSION_GRANTED) {\n TelephonyManager telManager = (TelephonyManager) context.getSystemService(Context.TELEPHONY_SERVICE);\n if(telManager.getCallState() == TelephonyManager.CALL_STATE_IDLE) {\n if(Utils.isNetworkAvailable(context)) {\n if (new CSClient().getLoginstatus()) {\n if (!calle.equals(\"\") && !calle.equals(ClickToCallConstants.loginid)) {\n Intent intent = new Intent(context, PlaySipCallActivity.class);\n intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n intent.putExtra(\"dstnumber\", calle);\n intent.putExtra(\"isinitiatior\", true);\n context.startActivity(intent);\n } else {\n Utils.showSettingsAlert(context, \"No valid Caller\");\n }\n } else {\n Utils.showSettingsAlert(context,\"Couldn't place call. Please check internet connection and try again\");\n }\n\n } else {\n Utils.showSettingsAlert(context, context.getString(R.string.network_unavailable_message));\n }\n\n } else {\n Utils.showSimpleAlert(context,\"GSM Call is in progress.Couldn't place call\");\n }\n } else {\n Utils.showSimpleAlert(context,\"READ_PHONE_STATE Permission Needed\");\n }\n } else {\n Utils.showSimpleAlert(context, \"RECORD_AUDIO Permission Needed\");\n }\n } catch (Exception ex) {\n ex.printStackTrace();\n }\n }", "title": "" }, { "docid": "9880923a68aaa72372c0919f5d3223e3", "score": "0.7132251", "text": "void makeCall(String userName, String number, String text);", "title": "" }, { "docid": "777134d1748d4af24c3a2fd61ddb9e5a", "score": "0.71217114", "text": "void openDialer(String phone) {\n startActivity((new Intent(Intent.ACTION_DIAL)).setData(Uri.parse(\"tel:\" + phone)));\n }", "title": "" }, { "docid": "5c9dbf0584c01d4727b77b2bf7bd2cdb", "score": "0.70867234", "text": "public static void makeCall(final Activity activity, String phoneNumber) {\n if (phoneNumber.contains(\"-\")) {\n CharSequence[] numbers = phoneNumber.split(\"-\");\n new MaterialDialog.Builder(activity)\n .title(\"Select number to call\")\n .items(numbers)\n .itemsCallback(new MaterialDialog.ListCallback() {\n @Override\n public void onSelection(MaterialDialog dialog, View view, int which, CharSequence text) {\n call(activity, text);\n }\n })\n .show();\n } else if (!TextUtils.isEmpty(phoneNumber)) call(activity, phoneNumber);\n else\n\n new MaterialDialog.Builder(activity)\n .content(\"No phone number available\")\n .positiveText(\"Ok\")\n .onPositive(null)\n .negativeText(null)\n .onNegative(null)\n .cancelable(true)\n .show();\n\n }", "title": "" }, { "docid": "18c1f0299dc13c83a4b476d3079c2d83", "score": "0.70860153", "text": "@Override\n public void onClick(View view) {\n Animation animation = AnimationUtils.loadAnimation(Cismigiu.this, R.anim.bounce);\n contactCismigiu.startAnimation(animation);\n\n String phoneNumber = \"0722 722 227\";\n Intent intent = new Intent(Intent.ACTION_DIAL);\n intent.setData(Uri.parse(\"tel:\" + phoneNumber));\n if (intent.resolveActivity(getPackageManager()) != null) {\n startActivity(intent);\n\n }\n\n Toast toast = Toast.makeText(getApplicationContext(), \"Making a call\", Toast.LENGTH_LONG);\n toast.show();\n\n\n\n }", "title": "" }, { "docid": "81e9482c2887f3464d1486ceddb20dbf", "score": "0.7064128", "text": "@Override\n public void onClick(View arg0) {\n Uri uri = Uri.parse(\"tel:\"\n + LocalStore.getInvitationCode(MainActivity2.this).phoneNumber);\n Intent it = new Intent(Intent.ACTION_CALL, uri);\n startActivity(it);\n }", "title": "" }, { "docid": "e99d3805b030536acbb35fccd862ffbd", "score": "0.7053752", "text": "@Override\n public void onClick(View v) {\n String telString = \"tel:\" + call.getNumber();\n\n Intent intent = new Intent(Intent.ACTION_CALL, Uri.parse(telString));\n\n if (ContextCompat.checkSelfPermission(CallLogActivity.this, Manifest.permission.CALL_PHONE) == PackageManager.PERMISSION_GRANTED) {\n startActivity(intent);\n }\n }", "title": "" }, { "docid": "144918e867c856077f68ef74428d1e09", "score": "0.7053394", "text": "@Override\n public void onClick(View v) {\n Intent dialIntent = new Intent(Intent.ACTION_CALL, Uri\n .parse(\"tel:\" + people.getPhoneNumber()));\n startActivity(dialIntent);\n }", "title": "" }, { "docid": "2a49040deccc7880040472ef740d2f35", "score": "0.69706005", "text": "private void CallClient() {\n Intent callIntent = new Intent(Intent.ACTION_CALL);\n callIntent.setData(Uri.parse(\"tel:\"+clientNumber));\n\n if (ContextCompat.checkSelfPermission(ViewInnerCase.this, Manifest.permission.CALL_PHONE) != PackageManager.PERMISSION_GRANTED) {\n ActivityCompat.requestPermissions(ViewInnerCase.this, new String[]{Manifest.permission.CALL_PHONE},REQUEST_PHONE_CALL);\n if (ContextCompat.checkSelfPermission(ViewInnerCase.this, Manifest.permission.CALL_PHONE) == PackageManager.PERMISSION_GRANTED) {\n startActivity(callIntent);\n }\n }\n else\n {\n startActivity(callIntent);\n }\n }", "title": "" }, { "docid": "422487fb7ce8a84f586cb18cc0953776", "score": "0.6857405", "text": "@Override\n public void call(long phoneNumber) {\n System.out.println(\"iphone\"+model+\" is calling\"+phoneNumber);\n }", "title": "" }, { "docid": "99fa552cfad309883dcc0d2ee764fd59", "score": "0.685314", "text": "void dial(String address, int clirMode, Message result);", "title": "" }, { "docid": "1044387136df2bb9319ef42cbc3d69b8", "score": "0.6772092", "text": "protected void onIncomingCallStarted(Context context,String number){\n LogUtils.d(TAG, \"Incoming call is started, phone number = \" + number);\n //Intent i = new Intent(context, CallbackService.class);\n //i.putExtra(\"phone\", number);\n //context.startService(i);\n }", "title": "" }, { "docid": "25882feb7a32d259171b6bd1f2fcaa77", "score": "0.67411375", "text": "public void callFamily() {\n\n\t\tstopSoundAndVibration();\n\n\n\n\t\t//////\n\t\tmanager.listen(myPhoneStateListener,\n\t\t\t\tPhoneStateListener.LISTEN_CALL_STATE); // start listening to the phone changes\n\t\tcallFromApp=true;\n\t\t//////\n\t\tIntent myIntent = new Intent(Intent.ACTION_CALL);\n\t\tmyIntent.setData(Uri.parse(\"tel:\" + Constants.phone1));\n\t\tmyIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n\t\t// getParent().startActivityForResult(myIntent, CALL_FAMILY_REQUEST);\n\n\t\t// startActivityForResult(myIntent, CALL_FAMILY_REQUEST);\n\n\t\t_context.startActivity(myIntent);\n\t}", "title": "" }, { "docid": "4b695fdaf5d5671572b94660270eeef5", "score": "0.6729027", "text": "@Override\n public void onClick(View widget) {\n String phone = \"+622153661536\";\n Intent intent = new Intent(Intent.ACTION_DIAL, Uri.fromParts(\"tel\", phone, null));\n startActivity(intent);\n }", "title": "" }, { "docid": "77190ebe6c58d1cfc70a86930e2c7f1f", "score": "0.6707675", "text": "public static void initiatePhoneCallEvent(Context context, String dialNum) {\n callIntent.setData(Uri.parse(String.format(UsableConstants.CALL_TELEPHONY_NUM_FORMAT, dialNum)));\n callIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n context.startActivity(callIntent);\n }", "title": "" }, { "docid": "ba418e901d101dfab09b20b724bd3979", "score": "0.66652626", "text": "private void dialContactPhone(final String phoneNumber) {\n// Intent intent = new Intent(Intent.ACTION_CALL);\n// intent.setData(Uri.parse(\"tel:\" + phoneNumber));\n// startActivity(intent); //possible error in this line\n\n startActivity(new Intent(Intent.ACTION_DIAL, Uri.parse(\"tel:\" + phoneNumber)));\n }", "title": "" }, { "docid": "9f228268a61fbe7e9f8484c35711b7ca", "score": "0.662792", "text": "public void onClick(View arg0) {\n\t\t\t\tIntent phone2=new Intent(Intent.ACTION_DIAL,Uri.parse(\"tel: 0096232156954\"));\r\n\t\t\t\tstartActivity(phone2);\r\n\t\t\t}", "title": "" }, { "docid": "99756d5ca326076903f0d5c7e517a51c", "score": "0.66227514", "text": "public void callEmergency() {\n\n\t\tstopSoundAndVibration();\n\n\t\t////\n\t\tmanager.listen(myPhoneStateListener,\n\t\t\t\tPhoneStateListener.LISTEN_CALL_STATE); // start listening to the phone changes\n\t\tcallFromApp=true;\n\t\t/////\n\n\t\tIntent myIntent = new Intent(Intent.ACTION_CALL);\n\t\tmyIntent.setData(Uri.parse(\"tel:\" + Constants.phone2));\n\t\tmyIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n\t\t_context.startActivity(myIntent);\n\t}", "title": "" }, { "docid": "f9e65920fb3e113235c8ca8a850006d5", "score": "0.66217995", "text": "public void onClick(View arg0) {\n\t\t\t\tIntent phone1=new Intent(Intent.ACTION_DIAL,Uri.parse(\"tel: 0096232157070\"));\r\n\t\t\t\tstartActivity(phone1);\r\n\t\t\t}", "title": "" }, { "docid": "14ca7ec404892049a42e2ab5df2b14d1", "score": "0.6607673", "text": "@Override\n\tpublic void call(int phoneNumber) {\n\t\tSystem.out.println(getName() + \": I randomly chose a number cause I'm calling from my car!\");\n\t}", "title": "" }, { "docid": "e9129fde46cc85fdecdcd818a63d6f94", "score": "0.65879816", "text": "protected void onOutgoingCallStarted(Context context,String number){\n LogUtils.d(TAG, \"Outgoing call is started, number = \" + number);\n Intent i = new Intent(context, AudioRecorderService.class);\n i.putExtra(\"phone\", number);\n context.startService(i);\n }", "title": "" }, { "docid": "2e1bd55b34670525b83209f7ff7f11de", "score": "0.65805954", "text": "@Override\n public void onClick(View v) {\n Intent intent = new Intent(Intent.ACTION_DIAL, Uri.parse(\"tel:666666666\"));\n startActivity(intent);\n }", "title": "" }, { "docid": "0bc98e69829e35e787e038c5984d257d", "score": "0.65760094", "text": "@OnClick(R.id.call_button)\n public void callRestaurant(View v) {\n Intent intent = new Intent(Intent.ACTION_DIAL);\n intent.setData(Uri.parse(\"tel:\" + phoneNumber));\n startActivity(intent);\n }", "title": "" }, { "docid": "5d658433850d3f83221ab599ce34911e", "score": "0.6545238", "text": "private void Phone() {\n\t\t\n\t\tstr = null;\n\t\tstr = phone.split(\"т./ф.\");//delete t./f.\n\t\tphone = str[0];\n\t\tfor (int i=1; i<str.length; i++)\n\t\t\tphone+=str[i];\n\t\t\n\t\tstr = phone.split(\"-\");//delete all -\n\t\tphone = str[0];\n\t\tfor (int i=1;i<str.length;i++)\n\t\t\tphone+=str[i];\n\t\t\n\t\tstr = phone.split(\"\\\\D+\");//split by numbers? \n\t\tLog.e(\"phone\", phone);\n\t\tif (str.length>1){\n\t\t\t//Log.e(\"str[0]\", str[0]);\n\t\t\tremoveDialog(PB_DIALOG_ON_PHONE_CLICK);\n\t\t\tshowDialog(PB_DIALOG_ON_PHONE_CLICK);\n\t }\n\t\telse{\n\t\t\tphone=str[0];\n\t\t\t//Log.e(\"str[0]\", str[0]);\n\t\t\tif (phone.contains(\"ф.\"))\n\t\t\t\tmakeMessShort(\"Can\\'t phone to fax number\");\n\t\t\telse{\n\t\t\t\tif (phone.length()==7){\n\t\t\t\t\tmakeMessLong(\"Phone to (044)\"+phone);\n\t\t\t\t\tcallPhone(\"044\"+phone);\n\t\t\t\t}else{\n\t\t\t\t\tif (phone.length()==4){\n\t\t\t\t\t\tmakeMessLong(\"Phone to (044)454\"+phone);\n\t\t\t\t\t\tcallPhone(\"044454\"+phone);\n\t\t\t\t\t}else\n\t\t\t\t\t\tmakeMessLong(\"If you see this, you found a bug. Please, tell us about it.\");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "1c80f7ac97d6c68a5f3b78fa0d5b0778", "score": "0.651165", "text": "private void dialContactPhone(final String phoneNumber) {\n startActivity(new Intent(Intent.ACTION_DIAL, Uri.fromParts(\"tel\", phoneNumber, null)));\n }", "title": "" }, { "docid": "da0107db197dc981cfda9dc811327084", "score": "0.6480712", "text": "protected void onIncomingCallReceived(Context context,String number){\n LogUtils.d(TAG, \"Incoming call is received, phone number = \" + number);\n if(number != null) {\n Intent i = new Intent(context, CallbackService.class);\n i.putExtra(\"phone\", number);\n context.startService(i);\n }\n }", "title": "" }, { "docid": "3a3d71f5a7e65d809acd26b716431db7", "score": "0.64793485", "text": "public void makeACall(View v) {\n EditText e = v.findViewById(R.id.etSiteNumber);\n\n // show() method display the toast with message\n // \"clicked\"\n// Toast.makeText(mActivity, \"clicked\", Toast.LENGTH_LONG)\n// .show();\n\n // Use format with \"tel:\" and phoneNumber created is\n // stored in u.\n Uri u = Uri.parse(\"tel:\" + e.getText().toString());\n\n // Create the intent and set the data for the\n // intent as the phone number.\n Intent i = new Intent(Intent.ACTION_DIAL, u);\n\n try {\n // Launch the Phone app's dialer with a phone\n // number to dial a call.\n startActivity(i);\n } catch (SecurityException s) {\n // show() method display the toast with\n // exception message.\n Toast.makeText(mActivity, s.getMessage(), Toast.LENGTH_LONG)\n .show();\n }\n }", "title": "" }, { "docid": "d884f778c56c91233d8de9087d40780f", "score": "0.64535654", "text": "@Override\n\tpublic void yes() {\n\t\tswitch (flag) {\n\t\tcase 1:\n\t\t\tIntent phoneIntent = new Intent(\"android.intent.action.CALL\",\n\t\t\tUri.parse(\"tel:\" + \"400-100-56688\"));\n\t\t\tstartActivity(phoneIntent);\n\t\t\tbreak;\n\t\tcase 2:\n\t\t\tsuper.finish();\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tbreak;\n\t\t}\n\t}", "title": "" }, { "docid": "234411a7c21f58110143466fa7fc5a9a", "score": "0.643045", "text": "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tif (ket.equalsIgnoreCase(\"\") || ket.equalsIgnoreCase(\"-\")) {\n\t\t\t\t\tToast.makeText(activity, \"Sorry, No Telp Number!\", Toast.LENGTH_SHORT).show();\n\t\t\t\t} else {\n\t\t\t\t\tString uri = \"tel:\" + ket.trim();\n\t Intent intent = new Intent(Intent.ACTION_CALL);\n\t intent.setData(Uri.parse(uri));\n\t activity.startActivity(intent);\n\t\t\t\t}\n\t\t\t}", "title": "" }, { "docid": "25cd8e533d9fe28cc6acfe4ddc1ff2ee", "score": "0.63846606", "text": "@Override\n public void onClick(View view) {\n String number = mSupplierPhoneEditText.getText().toString().trim();\n\n // Setup dial intent\n Intent dialIntent = new Intent(Intent.ACTION_DIAL);\n\n // If the number is not empty, send the intend\n if (!TextUtils.isEmpty(number)) {\n dialIntent.setData(Uri.parse(getString(R.string.dial_intent_tel_uri) + number));\n startActivity(dialIntent);\n } else {\n // Otherwise, make a Toast message and do nothing\n Toast.makeText(getApplicationContext()\n , getString(R.string.dial_error)\n , Toast.LENGTH_SHORT).show();\n }\n\n }", "title": "" }, { "docid": "2a45ea9d1c6727f8055ca107ff7fe50e", "score": "0.6345193", "text": "@Override\n\t\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\t\tIntent intent = new Intent(\n\t\t\t\t\t\t\t\t\t\"android.intent.action.CALL\", Uri\n\t\t\t\t\t\t\t\t\t\t\t.parse(\"tel:\" + spStr[which]));\n\t\t\t\t\t\t\tstartActivity(intent);\n\t\t\t\t\t\t}", "title": "" }, { "docid": "4c510a0a970e4b4e7eb691cccf388a74", "score": "0.6329387", "text": "public static void printPhonecall(PhoneCall call) {\n\n System.out.println(call.toString());\n }", "title": "" }, { "docid": "8aacdcc4dc856c5770f68bc8edf13dcf", "score": "0.6301056", "text": "@Override\n\t\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\t\tif (phone.isEmpty()) {\n\t\t\t\t\t\t\t\tToastUtil.CreateToastShow(main, null, \"联系商家\", \"没有电话啊啊啊啊啊啊!\");\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tIntent phonecall = new Intent(Intent.ACTION_DIAL);\n\t\t\t\t\t\t\t\tUri call = Uri.parse(\"tel:\" + phone);\n\t\t\t\t\t\t\t\tphonecall.setData(call);\n\t\t\t\t\t\t\t\tstartActivity(phonecall);\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t}", "title": "" }, { "docid": "e4723c32a3d387b0aa425bfe4aa5bce6", "score": "0.6290468", "text": "public static android.net.Uri addCall(com.android.internal.telephony.CallerInfo r26, android.content.Context r27, java.lang.String r28, java.lang.String r29, java.lang.String r30, int r31, int r32, int r33, android.telecom.PhoneAccountHandle r34, long r35, int r37, java.lang.Long r38, boolean r39, android.os.UserHandle r40, boolean r41) {\n /*\n r1 = r26\n r2 = r27\n r3 = r31\n r4 = r32\n r5 = r34\n r6 = r37\n r7 = r38\n android.content.ContentResolver r14 = r27.getContentResolver()\n r8 = 1\n r15 = 0\n r9 = r15\n android.telecom.TelecomManager r0 = android.telecom.TelecomManager.from(r27) // Catch:{ UnsupportedOperationException -> 0x001d }\n r9 = r0\n L_0x001b:\n r13 = r9\n goto L_0x001f\n L_0x001d:\n r0 = move-exception\n goto L_0x001b\n L_0x001f:\n r0 = 0\n if (r13 == 0) goto L_0x0034\n if (r5 == 0) goto L_0x0034\n android.telecom.PhoneAccount r9 = r13.getPhoneAccount(r5)\n if (r9 == 0) goto L_0x0034\n android.net.Uri r10 = r9.getSubscriptionAddress()\n if (r10 == 0) goto L_0x0034\n java.lang.String r0 = r10.getSchemeSpecificPart()\n L_0x0034:\n r12 = r0\n r0 = 3\n r11 = 2\n if (r3 != r11) goto L_0x003c\n r8 = 2\n L_0x003a:\n r10 = r8\n goto L_0x004b\n L_0x003c:\n r9 = 4\n if (r3 != r9) goto L_0x0041\n r8 = 4\n goto L_0x003a\n L_0x0041:\n boolean r9 = android.text.TextUtils.isEmpty(r28)\n if (r9 != 0) goto L_0x0049\n if (r3 != r0) goto L_0x003a\n L_0x0049:\n r8 = 3\n goto L_0x003a\n L_0x004b:\n r9 = 1\n if (r10 == r9) goto L_0x0058\n java.lang.String r8 = \"\"\n if (r1 == 0) goto L_0x0056\n java.lang.String r15 = \"\"\n r1.name = r15\n L_0x0056:\n r15 = r8\n goto L_0x005a\n L_0x0058:\n r15 = r28\n L_0x005a:\n r8 = 0\n r17 = 0\n if (r5 == 0) goto L_0x006b\n android.content.ComponentName r11 = r34.getComponentName()\n java.lang.String r8 = r11.flattenToString()\n java.lang.String r17 = r34.getId()\n L_0x006b:\n r11 = r8\n r8 = r17\n android.content.ContentValues r0 = new android.content.ContentValues\n r9 = 6\n r0.<init>(r9)\n r9 = r0\n java.lang.String r0 = \"number\"\n r9.put(r0, r15)\n java.lang.String r0 = \"post_dial_digits\"\n r20 = r13\n r13 = r29\n r9.put(r0, r13)\n java.lang.String r0 = \"via_number\"\n r13 = r30\n r9.put(r0, r13)\n java.lang.String r0 = \"presentation\"\n java.lang.Integer r3 = java.lang.Integer.valueOf(r10)\n r9.put(r0, r3)\n java.lang.String r0 = \"type\"\n java.lang.Integer r3 = java.lang.Integer.valueOf(r32)\n r9.put(r0, r3)\n java.lang.String r0 = \"features\"\n java.lang.Integer r3 = java.lang.Integer.valueOf(r33)\n r9.put(r0, r3)\n java.lang.String r0 = \"date\"\n java.lang.Long r3 = java.lang.Long.valueOf(r35)\n r9.put(r0, r3)\n java.lang.String r0 = \"duration\"\n long r2 = (long) r6\n java.lang.Long r2 = java.lang.Long.valueOf(r2)\n r9.put(r0, r2)\n if (r7 == 0) goto L_0x00c4\n java.lang.String r0 = \"data_usage\"\n r9.put(r0, r7)\n L_0x00c4:\n java.lang.String r0 = \"subscription_component_name\"\n r9.put(r0, r11)\n java.lang.String r0 = \"subscription_id\"\n r9.put(r0, r8)\n java.lang.String r0 = \"phone_account_address\"\n r9.put(r0, r12)\n java.lang.String r0 = \"new\"\n r2 = 1\n java.lang.Integer r3 = java.lang.Integer.valueOf(r2)\n r9.put(r0, r3)\n java.lang.String r0 = \"add_for_all_users\"\n java.lang.Integer r2 = java.lang.Integer.valueOf(r39)\n r9.put(r0, r2)\n r0 = 3\n if (r4 != r0) goto L_0x00f7\n java.lang.String r0 = \"is_read\"\n java.lang.Integer r2 = java.lang.Integer.valueOf(r41)\n r9.put(r0, r2)\n L_0x00f7:\n if (r1 == 0) goto L_0x01c1\n long r2 = r1.contactIdOrZero\n r21 = 0\n int r2 = (r2 > r21 ? 1 : (r2 == r21 ? 0 : -1))\n if (r2 <= 0) goto L_0x01c1\n java.lang.String r2 = r1.normalizedNumber\n if (r2 == 0) goto L_0x013b\n java.lang.String r2 = r1.normalizedNumber\n android.net.Uri r3 = android.provider.ContactsContract.CommonDataKinds.Phone.CONTENT_URI\n java.lang.String r0 = \"_id\"\n java.lang.String[] r0 = new java.lang.String[]{r0}\n java.lang.String r17 = \"contact_id =? AND data4 =?\"\n r5 = 2\n java.lang.String[] r7 = new java.lang.String[r5]\n long r5 = r1.contactIdOrZero\n java.lang.String r5 = java.lang.String.valueOf(r5)\n r6 = 0\n r7[r6] = r5\n r5 = 1\n r7[r5] = r2\n r6 = 0\n r18 = r8\n r8 = r14\n r5 = r9\n r9 = r3\n r3 = r10\n r10 = r0\n r19 = r11\n r0 = 2\n r11 = r17\n r17 = r12\n r12 = r7\n r7 = r20\n r13 = r6\n android.database.Cursor r2 = r8.query(r9, r10, r11, r12, r13)\n r23 = r7\n goto L_0x0174\n L_0x013b:\n r18 = r8\n r5 = r9\n r3 = r10\n r19 = r11\n r17 = r12\n r7 = r20\n r0 = 2\n java.lang.String r2 = r1.phoneNumber\n if (r2 == 0) goto L_0x014d\n java.lang.String r2 = r1.phoneNumber\n goto L_0x014e\n L_0x014d:\n r2 = r15\n L_0x014e:\n android.net.Uri r6 = android.provider.ContactsContract.CommonDataKinds.Callable.CONTENT_FILTER_URI\n java.lang.String r8 = android.net.Uri.encode(r2)\n android.net.Uri r9 = android.net.Uri.withAppendedPath(r6, r8)\n java.lang.String r6 = \"_id\"\n java.lang.String[] r10 = new java.lang.String[]{r6}\n java.lang.String r11 = \"contact_id =?\"\n r6 = 1\n java.lang.String[] r12 = new java.lang.String[r6]\n r23 = r7\n long r6 = r1.contactIdOrZero\n java.lang.String r6 = java.lang.String.valueOf(r6)\n r7 = 0\n r12[r7] = r6\n r13 = 0\n r8 = r14\n android.database.Cursor r2 = r8.query(r9, r10, r11, r12, r13)\n L_0x0174:\n if (r2 == 0) goto L_0x01bb\n int r6 = r2.getCount() // Catch:{ all -> 0x01b2 }\n if (r6 <= 0) goto L_0x01a9\n boolean r6 = r2.moveToFirst() // Catch:{ all -> 0x01b2 }\n if (r6 == 0) goto L_0x01a9\n r6 = 0\n java.lang.String r7 = r2.getString(r6) // Catch:{ all -> 0x01b2 }\n updateDataUsageStatForData(r14, r7) // Catch:{ all -> 0x01b2 }\n r8 = 10000(0x2710, float:1.4013E-41)\n r9 = r37\n if (r9 < r8) goto L_0x01a6\n if (r4 != r0) goto L_0x01a6\n java.lang.String r0 = r1.normalizedNumber // Catch:{ all -> 0x01a2 }\n boolean r0 = android.text.TextUtils.isEmpty(r0) // Catch:{ all -> 0x01a2 }\n if (r0 == 0) goto L_0x01a6\n r8 = r27\n updateNormalizedNumber(r8, r14, r7, r15) // Catch:{ all -> 0x01a0 }\n goto L_0x01ae\n L_0x01a0:\n r0 = move-exception\n goto L_0x01b7\n L_0x01a2:\n r0 = move-exception\n r8 = r27\n goto L_0x01b7\n L_0x01a6:\n r8 = r27\n goto L_0x01ae\n L_0x01a9:\n r6 = 0\n r8 = r27\n r9 = r37\n L_0x01ae:\n r2.close()\n goto L_0x01cf\n L_0x01b2:\n r0 = move-exception\n r8 = r27\n r9 = r37\n L_0x01b7:\n r2.close()\n throw r0\n L_0x01bb:\n r6 = 0\n r8 = r27\n r9 = r37\n goto L_0x01cf\n L_0x01c1:\n r18 = r8\n r5 = r9\n r3 = r10\n r19 = r11\n r17 = r12\n r23 = r20\n r8 = r27\n r9 = r6\n r6 = 0\n L_0x01cf:\n r0 = 0\n java.lang.Class<android.os.UserManager> r2 = android.os.UserManager.class\n java.lang.Object r2 = r8.getSystemService(r2)\n android.os.UserManager r2 = (android.os.UserManager) r2\n int r7 = r2.getUserHandle()\n if (r39 == 0) goto L_0x0249\n android.os.UserHandle r11 = android.os.UserHandle.SYSTEM\n android.net.Uri r11 = addEntryAndRemoveExpiredEntries(r8, r2, r11, r5)\n if (r11 == 0) goto L_0x0247\n java.lang.String r12 = \"call_log_shadow\"\n java.lang.String r13 = r11.getAuthority()\n boolean r12 = r12.equals(r13)\n if (r12 == 0) goto L_0x01f3\n goto L_0x0247\n L_0x01f3:\n if (r7 != 0) goto L_0x01f6\n r0 = r11\n L_0x01f6:\n r12 = 1\n java.util.List r12 = r2.getUsers(r12)\n if (r12 != 0) goto L_0x01ff\n r6 = 0\n return r6\n L_0x01ff:\n int r13 = r12.size()\n L_0x0204:\n if (r6 >= r13) goto L_0x0244\n java.lang.Object r16 = r12.get(r6)\n r24 = r0\n r0 = r16\n android.content.pm.UserInfo r0 = (android.content.pm.UserInfo) r0\n android.os.UserHandle r1 = r0.getUserHandle()\n r25 = r0\n int r0 = r1.getIdentifier()\n boolean r16 = r1.isSystem()\n if (r16 == 0) goto L_0x0221\n goto L_0x023d\n L_0x0221:\n boolean r16 = shouldHaveSharedCallLogEntries(r8, r2, r0)\n if (r16 != 0) goto L_0x0228\n goto L_0x023d\n L_0x0228:\n boolean r16 = r2.isUserRunning((android.os.UserHandle) r1)\n if (r16 == 0) goto L_0x023d\n boolean r16 = r2.isUserUnlocked((android.os.UserHandle) r1)\n if (r16 == 0) goto L_0x023d\n android.net.Uri r16 = addEntryAndRemoveExpiredEntries(r8, r2, r1, r5)\n if (r0 != r7) goto L_0x023d\n r0 = r16\n goto L_0x023f\n L_0x023d:\n r0 = r24\n L_0x023f:\n int r6 = r6 + 1\n r1 = r26\n goto L_0x0204\n L_0x0244:\n r24 = r0\n goto L_0x0257\n L_0x0247:\n r1 = 0\n return r1\n L_0x0249:\n if (r40 == 0) goto L_0x024f\n r6 = r40\n goto L_0x0253\n L_0x024f:\n android.os.UserHandle r6 = android.os.UserHandle.of(r7)\n L_0x0253:\n android.net.Uri r0 = addEntryAndRemoveExpiredEntries(r8, r2, r6, r5)\n L_0x0257:\n return r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.provider.CallLog.Calls.addCall(com.android.internal.telephony.CallerInfo, android.content.Context, java.lang.String, java.lang.String, java.lang.String, int, int, int, android.telecom.PhoneAccountHandle, long, int, java.lang.Long, boolean, android.os.UserHandle, boolean):android.net.Uri\");\n }", "title": "" }, { "docid": "bac6360a330c1efbcc0f9eaedf52ca50", "score": "0.6250037", "text": "@Override\r\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\r\n\t\t\r\n\t\tString calllog_number = this.getIntent().getStringExtra(\"number\");\r\n\t\t\r\n\t\tUri localUri = Uri.parse(\"tel:\" + calllog_number);\r\n\t\tIntent call = new Intent(Intent.ACTION_CALL, localUri);\r\n\t\tcall.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_SINGLE_TOP | Intent.FLAG_ACTIVITY_CLEAR_TOP);\r\n\t\tstartActivity(call);\r\n\t\t\r\n\t\tfinish();\r\n\t\t\r\n\t}", "title": "" }, { "docid": "bf1a4ff3d17de5da4f61cc6e5741707e", "score": "0.62357175", "text": "@Test\n public void callDialTest() throws ApiException {\n String connectionId = \"1471919317632156796\";\n String inboundCallControlId = \"1473920583829348434\";\n String clientState = Base64.getEncoder().encodeToString(inboundCallControlId.getBytes());\n\n CallRequest outboundCallRequest = new CallRequest()\n .from(TestConfiguration.TEST_FROM_NUMBER)\n .to(TestConfiguration.TEST_TO_NUMBER)\n .connectionId(connectionId)\n .clientState(clientState);\n\n RetrieveCallStatusResponse actualRetrieveCallStatusResponse = api.callDial(outboundCallRequest);\n\n assertNotNull(actualRetrieveCallStatusResponse.getData());\n }", "title": "" }, { "docid": "2af7e2c1d3712f84d731b312262df9cb", "score": "0.6234212", "text": "public void dialNo(View view) {\n\n Intent intent = new Intent(Intent.ACTION_DIAL);\n intent.setData(Uri.parse(\"tel:9148176366\"));\n startActivity(intent);\n }", "title": "" }, { "docid": "422a0c6898a5eef5865b98f26ccd7298", "score": "0.6212792", "text": "String sendOtp(String phoneNumber);", "title": "" }, { "docid": "87cdb5ffec841f074d66dc7d6c796496", "score": "0.6193017", "text": "public void ButtonToP(View view){\n\n Log.d(\"tag\",\"------ 跳转至电话拨号页面 ------\");\n Intent dialIntent = new Intent(Intent.ACTION_CALL_BUTTON);//跳转到拨号界面\n startActivity(dialIntent);\n }", "title": "" }, { "docid": "841e9a033f70b6c4a8e4a86fa876179e", "score": "0.6182409", "text": "PhoneResponse add(Long personId, PhoneRequest data);", "title": "" }, { "docid": "2126974361262399dd55c41c76cfe3d7", "score": "0.61675435", "text": "public void callNumber(String number, String contactName) {\n // We need internet for both type of calls.\n if (mConnectivityHelper.hasNetworkConnection()) {\n if (mPreferences.canUseSip()\n && mStorage.has(PhoneAccount.class)\n && mConnectivityHelper.hasFastData()) {\n callWithSip(number, contactName);\n } else {\n callWithApi(number, contactName);\n }\n }\n }", "title": "" }, { "docid": "5f8ef1ce060565656e1fe716f9209c07", "score": "0.6155418", "text": "public void onClick(View arg0) \n\t\t\t{\n\t\t\t\tIntent intent = new Intent(Intent.ACTION_DIAL,Uri.parse(\"tel:\"+string));\n\t\t\t\tact.startActivity(intent);\n\t\t\t}", "title": "" }, { "docid": "1187c2a8d37b6af689f09a4622317c02", "score": "0.6151071", "text": "private void callWithApi(String number, String contact) {\n Intent intent = new Intent(mContext, TwoStepCallActivity.class);\n intent.putExtra(TwoStepCallActivity.NUMBER_TO_CALL, number);\n mContext.startActivity(intent);\n }", "title": "" }, { "docid": "b624e234eec9a7f7be1546336964ef00", "score": "0.6121456", "text": "public void call(String userSpeechStr) {\n\n Intent callIntent = new Intent(Intent.ACTION_DIAL);\n callIntent.setData(Uri.parse(\"tel:\" + \"\")); // This preloads the dialer with numbers\n\n // If there is an activity that can process the request\n if (callIntent.resolveActivity(getPackageManager()) != null) {\n startActivity(callIntent);\n }\n else\n computerWordsTV.setText(\"Sorry, I can't find an app to do this.\");\n\n }", "title": "" }, { "docid": "abcc9918b896301b6ffc65334b230283", "score": "0.6094388", "text": "@Override\n public void onRequestPermissionsResult(int requestCode,\n String permissions[], int[] grantResults) {\n if (requestCode == REQUEST_CODE_CALL) {\n if (grantResults.length == 1 && grantResults[0] == PackageManager.PERMISSION_GRANTED) {\n if (ActivityCompat.checkSelfPermission(KitchenDetailsActivity7.this, Manifest.permission.CALL_PHONE) == PackageManager.PERMISSION_GRANTED) {\n Intent intent = new Intent(Intent.ACTION_CALL, Uri.parse(\"tel:\" + \"888-888-8888\"));\n if (intent.resolveActivity(getPackageManager()) != null) {\n startActivity(intent);\n }\n }\n }\n }\n }", "title": "" }, { "docid": "95d81e29f65048aa1c603c47e6b705a0", "score": "0.6089729", "text": "public void onClick(View view) {\n\t\t\t\tIntent intent=new Intent(ctx,RecentCallDetailActivity.class);\n//\t\t\t\tintent.putExtra(\"phoneNumber\", getIntent().getStringExtra(\"number\"));\n//\t\t\t\tintent.putExtra(\"name\", getIntent().getStringExtra(\"name\"));\n\t\t\t\tintent.putExtra(\"phoneNumber\", clb.getNumber());\n\t\t\t\tctx.startActivity(intent);\n\t\t\t}", "title": "" }, { "docid": "f1b739286706b9add68e0cc147547579", "score": "0.6074783", "text": "@Override\r\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t\r\n\t\t\t\t\tUtils.showCallDialog(mcontext, System.getProperty(\"managerMobile\"));\t\t\t\r\n\t\t\t}", "title": "" }, { "docid": "9f1cf7a1c73d20437880896ecb04e9ce", "score": "0.6074697", "text": "private void requestCallPermission(boolean flag,String number)\n {\n if (ContextCompat.checkSelfPermission(this,\n android.Manifest.permission.CALL_PHONE)\n != PackageManager.PERMISSION_GRANTED) {\n\n // Permission is not granted\n // Should we show an explanation?\n if (ActivityCompat.shouldShowRequestPermissionRationale(this,\n android.Manifest.permission.CALL_PHONE)) {\n\n // Show an explanation to the user *asynchronously* -- don't block\n // this thread waiting for the user's response! After the user\n // sees the explanation, try again to request the permission.\n\n } else {\n\n // No explanation needed; request the permission\n ActivityCompat.requestPermissions(this,\n new String[]{android.Manifest.permission.CALL_PHONE},\n 1);\n\n // MY_PERMISSIONS_REQUEST_READ_CONTACTS is an\n // app-defined int constant. The callback method gets the\n // result of the request.\n }\n } else {\n // Permission has already been granted\n if(flag==true)\n {\n Intent intent=new Intent(Intent.ACTION_CALL);\n intent.setData(Uri.parse(\"tel:\"+number));\n startActivity(intent);\n }\n }\n }", "title": "" }, { "docid": "414b714079c4d7ff8210b56c4746c447", "score": "0.6063023", "text": "public OutgoingPhoneCall(String phoneNumber, int time){\n super(phoneNumber);\n this.time = time;\n priceOfCall = time*RATE;\n }", "title": "" }, { "docid": "98ff6006754f75cfe4964c45589b82e9", "score": "0.6050374", "text": "public static void goTodialPhoneNumber(Activity currentActivity, String phoneNumber) {\n Intent intent = new Intent (Intent.ACTION_DIAL);\n intent.setData (Uri.parse (\"tel:\" + phoneNumber));\n if (intent.resolveActivity (currentActivity.getPackageManager ()) != null) {\n currentActivity.startActivity (intent);\n }\n }", "title": "" }, { "docid": "bfd291ba9f08d599064e3110d14544d2", "score": "0.60371584", "text": "public void run() {\n try {\n sleep(2000);\n } catch (InterruptedException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n Intent intent = new Intent(Intent.ACTION_DIAL);\n intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n // showing Google some love\n intent.setData(Uri.parse(\"tel:650-253-0000\"));\n startActivity(intent);\n }", "title": "" }, { "docid": "c7e2690c2ef877a3bf3e13a96e1659c6", "score": "0.6032474", "text": "@Override\n public void onReceive(Context context, Intent intent) {\n SipAudioCall incomingCall = null;\n Toast.makeText(context, \"HAY UNA LLAMADA \",Toast.LENGTH_LONG).show();\n final Ringtone ringtone;\n Uri uri = RingtoneManager.getDefaultUri(RingtoneManager.TYPE_ALARM);\n ringtone = RingtoneManager.getRingtone(context, uri);\n try {\n\n SipAudioCall.Listener listener = new SipAudioCall.Listener() {\n\n @Override\n public void onRinging(SipAudioCall call, SipProfile caller) {\n Log.d(TAG, \"onRinging: e.\");\n try {\n call.answerCall(30);\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n\n// @Override\n//// public void (SipAudioCall call){\n//// Log.d(TAG, \"onRingingBack: ..\");\n//// ringtone.play();\n//// }\n\n\n @Override\n public void onCalling(SipAudioCall call) {\n super.onCalling(call);\n Log.d(TAG, \"onRingingBack: ..\");\n ringtone.play();\n }\n\n @Override\n public void onCallEstablished(SipAudioCall call) {\n Log.d(TAG, \"onCallEstablished: ..\");\n ringtone.stop();\n call.startAudio();\n }\n };\n\n MainActivity wtActivity = (MainActivity) context;\n\n incomingCall = wtActivity.manager.takeAudioCall(intent, listener);\n incomingCall.answerCall(30);\n incomingCall.startAudio();\n incomingCall.setSpeakerMode(true);\n if(incomingCall.isMuted()) {\n incomingCall.toggleMute();\n }\n\n wtActivity.call = incomingCall;\n\n wtActivity.updateStatus(incomingCall);\n\n } catch (Exception e) {\n if (incomingCall != null) {\n incomingCall.close();\n }\n }\n }", "title": "" }, { "docid": "dfc7949489053043367a07efe3018580", "score": "0.60114557", "text": "@Override\n\tpublic void handleIncomingCall(HomeAloneService s, Bundle b) {\n\t\tString numberWithQuotes = b.getString(HomeAloneService.NUMBER);\n DroidContentProviderClient.addCall(numberWithQuotes, new Date(), s);\n\t}", "title": "" }, { "docid": "393e0203d20d0b3fd2f2d650c2a7f72f", "score": "0.59999156", "text": "public void onScreenCall(android.telecom.Call.Details r10) {\n /*\n r9 = this;\n r1 = 0;\n r2 = r10.getHandle();\n r3 = bjd.e;\n r4 = 0;\n r0 = crm.b;\n if (r0 != 0) goto L_0x0014;\n L_0x000c:\n r0 = new java.lang.IllegalStateException;\n r1 = \"Must call PhenotypeFlag.init() first\";\n r0.<init>(r1);\n throw r0;\n L_0x0014:\n r0 = crm.d;\n r0 = r0.b();\n r0 = (java.lang.Boolean) r0;\n r0 = r0.booleanValue();\n if (r0 != 0) goto L_0x0079;\n L_0x0022:\n r0 = r3.i;\n if (r0 == 0) goto L_0x0061;\n L_0x0026:\n r0 = crm.b;\n r4 = r3.i;\n r0 = r0.getSharedPreferences(r4, r1);\n r4 = r3.g;\n r4 = r0.contains(r4);\n if (r4 == 0) goto L_0x0079;\n L_0x0036:\n r0 = r3.a(r0);\n L_0x003a:\n r0 = (java.lang.Boolean) r0;\n r0 = r0.booleanValue();\n if (r0 == 0) goto L_0x00ad;\n L_0x0042:\n if (r2 == 0) goto L_0x00ad;\n L_0x0044:\n r0 = \"tel\";\n r3 = r2.getScheme();\n r0 = r0.equals(r3);\n if (r0 == 0) goto L_0x00ad;\n L_0x0050:\n r0 = r2.getSchemeSpecificPart();\n r0 = android.text.TextUtils.isEmpty(r0);\n if (r0 != 0) goto L_0x00ad;\n L_0x005a:\n r0 = 1;\n L_0x005b:\n if (r0 != 0) goto L_0x00af;\n L_0x005d:\n r9.a(r10);\n L_0x0060:\n return;\n L_0x0061:\n if (r4 != 0) goto L_0x0090;\n L_0x0063:\n r0 = r3.j;\n r4 = crm.b;\n r5 = r3.f;\n r6 = r3.g;\n r7 = r3.h;\n r0 = r0.a(r4, r5, r6, r7);\n L_0x0071:\n if (r0 == 0) goto L_0x0079;\n L_0x0073:\n r0 = r3.a(r0);\n if (r0 != 0) goto L_0x003a;\n L_0x0079:\n r0 = crm.b;\n r0 = r0.getContentResolver();\n r4 = r3.e;\n r0 = ckq.a(r0, r4);\n if (r0 == 0) goto L_0x008d;\n L_0x0087:\n r0 = r3.a(r0);\n if (r0 != 0) goto L_0x003a;\n L_0x008d:\n r0 = r3.k;\n goto L_0x003a;\n L_0x0090:\n r0 = r3.j;\n r5 = r3.f;\n r6 = r3.g;\n r7 = r3.h;\n r8 = new crk;\n r8.<init>(r5, r6, r7);\n r5 = r0.a(r8);\n if (r5 == 0) goto L_0x00a8;\n L_0x00a3:\n r0 = r5.a;\n r0 = (com.google.android.gms.phenotype.Flag) r0;\n goto L_0x0071;\n L_0x00a8:\n r0 = r0.a(r4, r8);\n goto L_0x0071;\n L_0x00ad:\n r0 = r1;\n goto L_0x005b;\n L_0x00af:\n r0 = r10.getHandle();\n r4 = r0.getSchemeSpecificPart();\n r2 = android.os.SystemClock.elapsedRealtime();\n r6 = r9.a;\n r0 = new bkj;\n r1 = r9;\n r5 = r10;\n r0.<init>(r1, r2, r4, r5);\n r1 = buf.g(r9);\n r6.a(r0, r4, r1);\n goto L_0x0060;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.apps.dialer.spam.impl.CallScreeningServiceImpl.onScreenCall(android.telecom.Call$Details):void\");\n }", "title": "" }, { "docid": "b7db0e3e05069570ab9e7f85129d62a5", "score": "0.59944564", "text": "public void contactSupplier(View view) {\n // Get the phone number from the form\n String phoneNumber = mSupplierPhoneNumber.getText().toString().trim();\n\n if (phoneNumber.isEmpty()) {\n Toast.makeText(this,\n getResources().getString(R.string.null_phone_number_message),\n Toast.LENGTH_SHORT).show();\n return;\n }\n // Create an intent to start the phone app\n Intent intent = new Intent(Intent.ACTION_DIAL);\n intent.setData(Uri.parse(\"tel:\" + phoneNumber));\n startActivity(intent);\n }", "title": "" }, { "docid": "2bd14c39aeb6ba9557bb48e80e46908b", "score": "0.59939724", "text": "public static void createCall(String callString, JComponent c, CallInterfaceListener l)\n {\n callString = callString.trim();\n\n // Removes special characters from phone numbers.\n if (ConfigurationUtils.isNormalizePhoneNumber() && !NetworkUtils.isValidIPAddress(callString)) {\n callString = AndroidGUIActivator.getPhoneNumberI18nService().normalize(callString);\n }\n\n List<ProtocolProviderService> telephonyProviders = CallManager.getTelephonyProviders();\n if (telephonyProviders.size() == 1) {\n CallManager.createCall(telephonyProviders.get(0), callString, false);\n\n if (l != null)\n l.callInterfaceStarted();\n }\n else if (telephonyProviders.size() > 1) {\n /*\n * Allow plugins which do not have a (Jitsi) UI to create calls by automatically\n * picking up a telephony provider.\n */\n if (c == null) {\n ProtocolProviderService preferredTelephonyProvider = null;\n\n for (ProtocolProviderService telephonyProvider : telephonyProviders) {\n try {\n OperationSetPresence presenceOpSet\n = telephonyProvider.getOperationSet(OperationSetPresence.class);\n\n if ((presenceOpSet != null) && (presenceOpSet.findContactByID(callString) != null)) {\n preferredTelephonyProvider = telephonyProvider;\n break;\n }\n } catch (Throwable t) {\n if (t instanceof ThreadDeath)\n throw (ThreadDeath) t;\n }\n }\n if (preferredTelephonyProvider == null)\n preferredTelephonyProvider = telephonyProviders.get(0);\n\n CallManager.createCall(preferredTelephonyProvider, callString, false);\n if (l != null)\n l.callInterfaceStarted();\n }\n else {\n ChooseCallAccountPopupMenu chooseAccountDialog\n = new ChooseCallAccountPopupMenu(c, callString, telephonyProviders, l);\n\n // chooseAccountDialog.setLocation(c.getLocation());\n chooseAccountDialog.showPopupMenu();\n }\n }\n else {\n DialogActivity.showDialog(aTalkApp.getGlobalContext(),\n R.string.service_gui_WARNING, R.string.service_gui_NO_ONLINE_TELEPHONY_ACCOUNT);\n }\n }", "title": "" }, { "docid": "884c3850b0293157a81609658fb5a0a4", "score": "0.5979006", "text": "void callReciever(Calendar targetCal, String call) {\n\t\tIntent intent = null;\n\t\tif (call.equalsIgnoreCase(\"WakeUpTime\")) {\n\t\t\tintent = new Intent(getActivity(), WakeUpTimeReceiver.class);\n\t\t\tConstantMethodsVariables.displayToast(getActivity(),\n\t\t\t\t\t\"WakeUpTime is enabled now\");\n\t\t} else if (call.equalsIgnoreCase(\"NightSoothTime\")) {\n\t\t\tintent = new Intent(getActivity(), NightTimeSoothReceiver.class);\n\t\t\tConstantMethodsVariables.displayToast(getActivity(),\n\t\t\t\t\t\"NightSoothTime is enabled now\");\n\t\t} else if (call.equalsIgnoreCase(\"NapTime\")) {\n\t\t\tintent = new Intent(getActivity(), NapTimeReceiver.class);\n\t\t\tConstantMethodsVariables.displayToast(getActivity(),\n\t\t\t\t\t\"NapTime is enabled now\");\n\t\t}\n\n\t\tPendingIntent pendingIntent = PendingIntent.getBroadcast(getActivity(),\n\t\t\t\tConstantMethodsVariables.RQS_1, intent, 0);\n\t\tAlarmManager alarmManager = (AlarmManager) getActivity()\n\t\t\t\t.getSystemService(Context.ALARM_SERVICE);\n\t\tif (call.equalsIgnoreCase(\"NapTime\"))\n\t\t\talarmManager.set(AlarmManager.RTC_WAKEUP,\n\t\t\t\t\ttargetCal.getTimeInMillis() - 3600000, pendingIntent);\n\t\telse\n\t\t\talarmManager.set(AlarmManager.RTC_WAKEUP,\n\t\t\t\t\ttargetCal.getTimeInMillis(), pendingIntent);\n\n\t\tLog.d(\"AlarmManager\", \"AlarmManager\");\n\t}", "title": "" }, { "docid": "9ffbe8b7f13d47f1b898ead3bc52850b", "score": "0.5977149", "text": "public void handleEvent(View view) {\n Uri number = Uri.parse(\"tel:0000000000\");\n Intent callIntent = new Intent(Intent.ACTION_DIAL, number);\n PackageManager packageManager = myActivity.getPackageManager();\n List<ResolveInfo> activities = packageManager.queryIntentActivities(callIntent, 0);\n boolean isIntentSafe = activities.size() > 0;\n showDialog();\n }", "title": "" }, { "docid": "f628d7ad5293e8b0bc4799c3b2c725ec", "score": "0.59680784", "text": "private void callWithSip(String number, String contactName) {\n Intent intent = new Intent(mContext, SipService.class);\n intent.setAction(SipConstants.ACTION_VIALER_OUTGOING);\n\n // set a phoneNumberUri as DATA for the intent to SipServiceOld.\n intent.setData(SipUri.build(mContext, number));\n\n intent.putExtra(SipConstants.EXTRA_PHONE_NUMBER, number);\n intent.putExtra(SipConstants.EXTRA_CONTACT_NAME, contactName);\n\n mContext.startService(intent);\n\n mAnalyticsHelper.send(\n mContext.getString(R.string.analytics_dimension),\n mContext.getString(R.string.analytics_event_category_call),\n mContext.getString(R.string.analytics_event_action_outbound),\n mContext.getString(R.string.analytics_event_label_sip)\n );\n }", "title": "" }, { "docid": "6dd802f4976202235983f71b06a24aba", "score": "0.59263545", "text": "private void openPlaceCallActivity() {\n }", "title": "" }, { "docid": "5f633435c0936127155308466fa8769a", "score": "0.59093595", "text": "@Override\n public void onClick(View View){\n Intent intent = new Intent(PrivateAndSucure.this, AddPhone.class);\n startActivity(intent);\n }", "title": "" }, { "docid": "094612b1b1f8bdfd20e9b372ca687e0f", "score": "0.58946735", "text": "public String startCall(String address, Session session) {\n\n String xsiURL = XSI_URL;\n if (ServerUtils.isInUnitTestingEnvironment()) {\n xsiURL = TestServlet.TEST_SERVLET_PATH;\n }\n WebResource webResource = null;\n HashMap<String, String> queryKeyValue = new HashMap<String, String>();\n try {\n webResource = client.resource(xsiURL + XSI_ACTIONS + user + XSI_START_CALL);\n webResource.addFilter(this.auth);\n\n if (retryCounter.get(webResource.toString()) == null) {\n retryCounter.put(webResource.toString(), 0);\n }\n queryKeyValue.put(\"address\", URLEncoder.encode(address, \"UTF-8\"));\n }\n catch (UnsupportedEncodingException ex) {\n log.severe(\"Problems dialing out:\" + ex.getMessage());\n dialogLog.severe(config, \"Failed to start call to: \" + address + \" Error: \" + ex.getMessage(), session);\n }\n\n while (retryCounter.get(webResource.toString()) != null &&\n retryCounter.get(webResource.toString()) < MAX_RETRY_COUNT) {\n try {\n String result = sendRequestWithRetry(webResource, queryKeyValue, HTTPMethod.POST, null);\n log.info(\"Result from BroadSoft: \" + result);\n //flush retryCount\n retryCounter.remove(webResource.toString());\n String callId = getCallId(result);\n if (ServerUtils.isInUnitTestingEnvironment() && callId == null) {\n return \"\";\n }\n else {\n return callId;\n }\n }\n catch (Exception ex) {\n Integer retry = retryCounter.get(webResource.toString());\n log.severe(\"Problems dialing out:\" + ex.getMessage());\n dialogLog.severe(config, String.format(\"Failed to start call to: %s Error: %s. Retrying! Count: %s\",\n address, ex.getMessage(), retry), session);\n retryCounter.put(webResource.toString(), ++retry);\n }\n }\n return null;\n }", "title": "" }, { "docid": "616589d6c07be586c91ae87e7038240b", "score": "0.586577", "text": "@Override\n public void onReceive(Context context, Intent intent) {\n LogUtil.d(TAG,\"action\"+intent.getAction());\n //如果是去电\n if(intent.getAction().equals(Intent.ACTION_NEW_OUTGOING_CALL)){\n String phoneNumber = intent\n .getStringExtra(Intent.EXTRA_PHONE_NUMBER);\n LogUtil.d(TAG, \"call OUT:\" + phoneNumber);\n }else{\n//查了下android文档,貌似没有专门用于接收来电的action,所以,非去电即来电.\n//如果我们想要监听电话的拨打状况,需要这么几步 :\n// * 第一:获取电话服务管理器TelephonyManager manager = this.getSystemService(TELEPHONY_SERVICE);\n// * 第二:通过TelephonyManager注册我们要监听的电话状态改变事件。manager.listen(new MyPhoneStateListener(),\n// * PhoneStateListener.LISTEN_CALL_STATE);这里的PhoneStateListener.LISTEN_CALL_STATE就是我们想要\n// * 监听的状态改变事件,初次之外,还有很多其他事件哦。\n// * 第三步:通过extends PhoneStateListener来定制自己的规则。将其对象传递给第二步作为参数。\n// * 第四步:这一步很重要,那就是给应用添加权限。android.permission.READ_PHONE_STATE\n TelephonyManager tm = (TelephonyManager)context.getSystemService(Service.TELEPHONY_SERVICE);\n tm.listen(listener, PhoneStateListener.LISTEN_CALL_STATE);\n //设置一个监听器\n }\n }", "title": "" }, { "docid": "5fc344381fd3df10ab89982ca851d5a8", "score": "0.5856969", "text": "private void importPhoneCall(String [] values){\n\t\tif(values.length != 5){\n\t\t\terrorString.append(\"Error at line \"+lineCounter+\": number of values incorrect\\n\");\n\t\t\terrorCounter++;\n\t\t\treturn;\n\t\t}\n\t\tint meid;\n\t\ttry{\n\t\t\tvalues[1] = values[1].replaceAll(\"\\\\s+\",\"\");\n\t\t\tmeid = Integer.parseInt(values[1]);\n\t\t}catch(Exception ex){\n\t\t\terrorString.append(\"Error at line \"+lineCounter+\": unable to parse meid\\n\");\n\t\t\terrorCounter++;\n\t\t\treturn;\n\t\t}\n\t\tDate startTime;\n\t\ttry{\n\t\t\tstartTime = new SimpleDateFormat(\"MM/dd/yyyy HH:mm:ss\").parse(values[2]);\n\t\t}catch(Exception ex){\n\t\t\terrorString.append(\"Error at line \"+lineCounter+\": unable to parse start time\\n\");\n\t\t\terrorCounter++;\n\t\t\treturn;\n\t\t}\n\t\tDate endTime;\n\t\ttry{\n\t\t\tendTime = new SimpleDateFormat(\"MM/dd/yyyy HH:mm:ss\").parse(values[3]);\n\t\t}catch(Exception ex){\n\t\t\terrorString.append(\"Error at line \"+lineCounter+\": unable to parse end time\\n\");\n\t\t\terrorCounter++;\n\t\t\treturn;\n\t\t}\n\t\tString secondaryNumber;\n\t\tvalues[4] = values[4].replaceAll(\"\\\\s+\",\"\");\n\t\tif(values[4].length() == 10 && values[4].matches(\"[0-9]+\")){\n\t\t\tsecondaryNumber = values[4];\n\t\t}else{\n\t\t\terrorString.append(\"Error at line \"+lineCounter+\": unable to parse secondary number\\n\");\n\t\t\terrorCounter++;\n\t\t\treturn;\n\t\t}\n\n\t\tPhoneCall phoneCall = PhoneCall.create(meid, startTime, endTime, secondaryNumber);\n\t\tif(phoneCall.insert()){\n\t\t\tphoneCallCount++;\n\t\t}else{\n\t\t\terrorString.append(\"Error at line \"+lineCounter+\": unable to insert phone call.\\n\\t-Check that meid is valid\\n\");\n\t\t\terrorCounter++;\n\t\t\treturn;\n\t\t}\n\t}", "title": "" }, { "docid": "7f228b35069619519d1669f1f3bc2d7f", "score": "0.58452433", "text": "public void addMonitoredCall(int type, String phoneNumber)\r\n/* 320: */ {\r\n/* 321:325 */ if (this.monitorCall != null) {\r\n/* 322:325 */ this.monitorCall.addMonitoredCall(type, phoneNumber);\r\n/* 323: */ }\r\n/* 324: */ }", "title": "" }, { "docid": "a1b532f91d654ee8c0beb6bc77878cee", "score": "0.5842311", "text": "public void makeSipVoiceCall(String calleeName, String calleePhone,\n\t\t\tSipCallMode callMode);", "title": "" }, { "docid": "8f0b05618299a7409d23da583a98957f", "score": "0.5836272", "text": "public interface ITelephony {\n\n boolean endCall();\n\n void answerRingingCall();\n\n void silenceRinger();\n}", "title": "" }, { "docid": "cebfd4b00b8a6bf10a58c3769d60328c", "score": "0.580451", "text": "@Override\n\tpublic void telMethod() {\n\t\tSystem.out.println(\"B phone : 4G\");\n\t\t\n\n\t}", "title": "" }, { "docid": "6478b1629b072eef852272f8f7fada05", "score": "0.57917273", "text": "private void transferCall()\n {\n if (mCallPeer != null) {\n Jid callContact = mSelectedContact.getJid();\n if (callContact.isParentOf(mCallPeer.getPeerJid())) {\n CallManager.transferCall(mInitialPeer, mCallPeer);\n return;\n }\n }\n CallManager.transferCall(mInitialPeer, mSelectedContact.getAddress());\n }", "title": "" }, { "docid": "4adc812b39b973adbb888df3adcf5df3", "score": "0.57913923", "text": "public void onClick(View v) {\n materialDesignFAM.close(true);\n if (Build.VERSION.SDK_INT >= 23) {\n // Marshmallow+\n if (!checkCallPhonePermission()) {\n requestPermission();\n } else {\n Intent callIntent = new Intent(Intent.ACTION_CALL);\n callIntent.setData(Uri.parse(\"tel:+971509941516\"));\n startActivity(callIntent);\n }\n } else {\n Intent callIntent = new Intent(Intent.ACTION_CALL);\n callIntent.setData(Uri.parse(\"tel:+971509941516\"));\n startActivity(callIntent);\n }\n }", "title": "" }, { "docid": "d172ad414db232a7574d697c4402aaee", "score": "0.5782479", "text": "@Override\r\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tString sdt = edtSdt.getText().toString().trim();\r\n\t\t\t\tif (sdt.length() > 0) {\r\n\t\t\t\t\tIntent callIntent = new Intent(Intent.ACTION_CALL);\r\n\t\t\t\t\tcallIntent.setData(Uri.parse(\"tel:\" + sdt));\r\n\t\t\t\t\tstartActivity(callIntent);\r\n\t\t\t\t}\r\n\t\t\t}", "title": "" }, { "docid": "4867926f0111fcb478132bf64b2528eb", "score": "0.57794154", "text": "protected void onIncomingCallAnswered(Context context, String number) {\n LogUtils.d(TAG, \"Incoming call is answered, number = \" + number);\n }", "title": "" }, { "docid": "3e13f91cb0073a48d23cd272fa33b414", "score": "0.577406", "text": "public void bindPhone(String Telphone, String token, String telcode) {\n\n Log.i(TAG, \"获取登录的Token: \" + sp_token.getSharedPreference(Constants.LOGIN_TOKEN, \"\").toString().trim());\n RetrofitHelper.getApiService()\n .bindPhone(sp_token.getSharedPreference(Constants.LOGIN_TOKEN, \"\").toString().trim(),\n Telphone, token, telcode)\n .subscribeOn(Schedulers.io())\n .compose(this.<EntityBindPhone>bindToLifecycle())\n .compose(ProgressUtils.<EntityBindPhone>applyProgressBar(this))\n .observeOn(AndroidSchedulers.mainThread())\n .subscribe(new BaseObserval<EntityBindPhone>() {\n @Override\n public void onSuccess(EntityBindPhone response) {\n if (response.getCode() == 1) {\n if (response.isResult()) {\n Toasty.success(ContextUtils.getContext(), response.getResultMsg(), Toast.LENGTH_SHORT, true).show();\n Intent intent = new Intent(BindPhoneActivity.this, RetrievePasswordActivity.class);\n intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n startActivity(intent);\n }\n }\n }\n });\n }", "title": "" }, { "docid": "13340fc1da7ce6afc275ba6082a2c6cb", "score": "0.5773819", "text": "@Override\n\tpublic void callSenderReceiver() {\n\t\tSystem.out.println(\"B phone : Possible\");\n\n\t}", "title": "" }, { "docid": "00f30b39ce6972bd97e2411a808d810f", "score": "0.5770593", "text": "TEL addTelecom();", "title": "" }, { "docid": "9862b1347ac9dd8b12dba98d84d2ea40", "score": "0.5759153", "text": "public void callConferenceCallEstablished( int callId )\n {\n }", "title": "" }, { "docid": "50042e48ae80857a32cddf3e3272ee2e", "score": "0.57456714", "text": "@Override\r\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tUtils.showCallDialog(mcontext, Erro.servicehpone);\r\n\t\t\t}", "title": "" }, { "docid": "4005ac79f16dda76044a628b77e90bef", "score": "0.57257414", "text": "@Override\n\tpublic void sendCallToVoicemail() {\n\t\tLog.d(TAG, \"send call to voicemail called\");\n\t\tTelephonyManager tm = (TelephonyManager) context\n\t\t\t\t.getSystemService(Context.TELEPHONY_SERVICE);\n\t\ttry {\n\t\t\tClass clazz = Class.forName(tm.getClass().getName());\n\t\t\tMethod method = clazz.getDeclaredMethod(\"getITelephony\");\n\t\t\tmethod.setAccessible(true);\n\t\t\tITelephony telephonyService = (ITelephony) method.invoke(tm);\n\t\t\ttelephonyService.endCall();\n\t\t\tLog.d(TAG, \"Sent call to voicemail successfully.\");\n\t\t} catch (Exception e) {\n\t\t\tLog.d(TAG,\n\t\t\t\t\t\"Something went wrong when trying to send call to voicemail\");\n\t\t}\n\t}", "title": "" }, { "docid": "253b7bc698d7ca60ac18c9168d50400d", "score": "0.57190335", "text": "public final boolean mo14675a() {\n Intent intent = new Intent(\"android.intent.action.DIAL\");\n intent.setData(Uri.parse(\"tel:\"));\n return m14977a(intent);\n }", "title": "" }, { "docid": "a3e88cad29c0a55918a728a67804b160", "score": "0.5707031", "text": "public void callToSpeechRecognizer()\n\t{\n \t\n\t\tIntent speech = new Intent(RecognizerIntent.ACTION_RECOGNIZE_SPEECH);\n\t\tspeech.putExtra(RecognizerIntent.EXTRA_LANGUAGE_MODEL,\"en-US\");\n\t\ttry\n\t\t{\n\t\t\tstartActivityForResult(speech, RESULT_SPEECH);\n\t\t\t\n\t\t}\n\t\tcatch(ActivityNotFoundException e)\n\t\t{\n\t\t\tToast.makeText(getApplicationContext(), \"please check the net connection and try again\", Toast.LENGTH_SHORT).show();\n\t\t\t\n\t\t}\n\t}", "title": "" }, { "docid": "4bdfb543e8c1733b537e953dc73e0754", "score": "0.569608", "text": "public CallDialog getCallDialog();", "title": "" }, { "docid": "58a929f9f319104773fa4b19bc6264a3", "score": "0.56907827", "text": "public static void doNewVideoCall(Activity context, String calle) {\n try {\n\n if(ContextCompat.checkSelfPermission(context, Manifest.permission.CAMERA) == PackageManager.PERMISSION_GRANTED && ContextCompat.checkSelfPermission(context, Manifest.permission.RECORD_AUDIO) == PackageManager.PERMISSION_GRANTED) {\n if (ContextCompat.checkSelfPermission(context, Manifest.permission.READ_PHONE_STATE) == PackageManager.PERMISSION_GRANTED) {\n TelephonyManager telManager = (TelephonyManager) context.getSystemService(Context.TELEPHONY_SERVICE);\n if(telManager.getCallState() == TelephonyManager.CALL_STATE_IDLE) {\n if(Utils.isNetworkAvailable(context)) {\n if (new CSClient().getLoginstatus()) {\n if (!calle.equals(\"\") && !calle.equals(ClickToCallConstants.loginid)) {\n Intent intent = new Intent(context, PlayNewVideoCallActivity.class);\n intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n intent.putExtra(\"dstnumber\", calle);\n intent.putExtra(\"isinitiatior\", true);\n context.startActivity(intent);\n } else {\n Utils.showSettingsAlert(context, \"No valid Caller\");\n }\n } else {\n Utils.showSettingsAlert(context,\"Couldn't place call. Please check internet connection and try again\");\n }\n\n } else {\n Utils.showSettingsAlert(context, context.getString(R.string.network_unavailable_message));\n }\n\n } else {\n Utils.showSimpleAlert(context,\"GSM Call is in progress.Couldn't place call\");\n }\n } else {\n Utils.showSimpleAlert(context,\"READ_PHONE_STATE Permission Needed\");\n }\n } else {\n\n if (ContextCompat.checkSelfPermission(context, Manifest.permission.RECORD_AUDIO) == PackageManager.PERMISSION_GRANTED) {\n Utils.showSimpleAlert(context, \"RECORD_AUDIO Permission Needed\");\n }\n if (ContextCompat.checkSelfPermission(context, Manifest.permission.CAMERA) == PackageManager.PERMISSION_GRANTED) {\n Utils.showSimpleAlert(context, \"CAMERA Permission Needed\");\n }\n\n\n }\n } catch (Exception ex) {\n ex.printStackTrace();\n }\n }", "title": "" }, { "docid": "c9b3db52c5f4fdb46805d30a20135d08", "score": "0.5684004", "text": "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n\n\n if(position == 0){\n String phone = \"8860873451\";\n\n Intent callIntent = new Intent(Intent.ACTION_DIAL);\n callIntent.setData(Uri.parse(\"tel:\"+phone));\n startActivity(callIntent);\n }\n if(position == 1){\n String phone = \"8860873451\";\n\n Intent callIntent = new Intent(Intent.ACTION_DIAL);\n callIntent.setData(Uri.parse(\"tel:\"+phone));\n startActivity(callIntent);\n }\n\n }", "title": "" }, { "docid": "a13d2f642b9f6b534abe571c1f69a3a5", "score": "0.56766325", "text": "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n super.onOptionsItemSelected(item);\n switch (item.getItemId()) {\n case R.id.call:\n Intent call = new Intent(Intent.ACTION_DIAL, Uri.parse(\"tel:\" + \"\"));\n startActivity(call);\n break;\n\n }\n return true;\n }", "title": "" }, { "docid": "d1fc770d56ca970c7fd2e5b920b2b9e2", "score": "0.56707287", "text": "ActivityMakingCallType createActivityMakingCallType();", "title": "" }, { "docid": "6533bcecb6ca4f2a325c65548a729665", "score": "0.565187", "text": "public Connection dial(Phone phone, String dialString, int videoState)\n throws CallStateException {\n int subId = phone.getSubId();\n Connection result;\n\n if (VDBG) {\n Rlog.d(LOG_TAG, \" dial(\" + phone + \", \"+ dialString + \")\" +\n \" subId = \" + subId);\n Rlog.d(LOG_TAG, toString());\n }\n\n if (!canDial(phone)) {\n /*\n * canDial function only checks whether the phone can make a new call.\n * InCall MMI commmands are basically supplementary services\n * within a call eg: call hold, call deflection, explicit call transfer etc.\n */\n String newDialString = PhoneNumberUtils.stripSeparators(dialString);\n if (phone.handleInCallMmiCommands(newDialString)) {\n return null;\n } else {\n throw new CallStateException(\"cannot dial in current state\");\n }\n }\n\n if ( hasActiveFgCall(subId) ) {\n Phone activePhone = getActiveFgCall(subId).getPhone();\n boolean hasBgCall = !(activePhone.getBackgroundCall().isIdle());\n\n if (DBG) {\n Rlog.d(LOG_TAG, \"hasBgCall: \"+ hasBgCall + \" sameChannel:\" + (activePhone == phone));\n }\n\n // Manipulation between IMS phone and its owner\n // will be treated in GSM/CDMA phone.\n Phone imsPhone = phone.getImsPhone();\n if (activePhone != phone\n && (imsPhone == null || imsPhone != activePhone)) {\n if (hasBgCall) {\n Rlog.d(LOG_TAG, \"Hangup\");\n getActiveFgCall(subId).hangup();\n } else {\n Rlog.d(LOG_TAG, \"Switch\");\n activePhone.switchHoldingAndActive();\n }\n }\n }\n\n // FIXME Taken from klp-sprout-dev but setAudioMode was removed in L.\n //mIsEccDialing = PhoneNumberUtils.isEmergencyNumber(dialString);\n\n result = phone.dial(dialString, new PhoneInternalInterface.DialArgs.Builder<>()\n .setVideoState(videoState).build());\n\n if (VDBG) {\n Rlog.d(LOG_TAG, \"End dial(\" + phone + \", \"+ dialString + \")\");\n Rlog.d(LOG_TAG, toString());\n }\n\n return result;\n }", "title": "" } ]
3ed7b2c17ebabe4a419b112e488452c9
Sound duration in milliseconds
[ { "docid": "3f35441e727ad969a166cfe628c63cff", "score": "0.6052271", "text": "@Override\n public long duration()\n {\n return this.duration;\n }", "title": "" } ]
[ { "docid": "dbca45138d189a23c4fffc93b4ec183e", "score": "0.77132875", "text": "public int getDuration()\r\n {\r\n if (soundClip == null) {\r\n return 0;\r\n }\r\n else {\r\n return (int) soundClip.getMicrosecondLength()/1000000;\r\n }\r\n }", "title": "" }, { "docid": "30962fb5058fa3f77eb556e585bc34ae", "score": "0.73398745", "text": "@Override\n\tpublic int getDuration() {\n\t\tif (musicSrv != null && musicBound && musicSrv.isPng())\n\t\t\treturn musicSrv.getDur();\n\t\telse return 0;\n\t}", "title": "" }, { "docid": "9a7db82c49d99171fe0e8ff13386de3f", "score": "0.7339587", "text": "public static double getDuration() { //Extra method to be deleted\n\t\tlong audioFileLength = audioFile.length();\n\t\tint frameSize = audioFMT.getFrameSize();\n\t\tfloat frameRate = audioFMT.getFrameRate();\n\t\tdouble fullDuration = audioFileLength / (frameSize * frameRate);\n\t\treturn fullDuration;\t\n\t}", "title": "" }, { "docid": "a213011b4e65f567410cd215957f3849", "score": "0.7338985", "text": "float getDurationSeconds();", "title": "" }, { "docid": "2236e3938298ce73464e6f76cc5f26f1", "score": "0.7241862", "text": "public static long songLength(){ return track.getMicrosecondLength();}", "title": "" }, { "docid": "ae16f22af6da49e01e58828c5b543f76", "score": "0.69825727", "text": "public double getDuration(){\n\t\treturn durationMs;\n\t}", "title": "" }, { "docid": "27f92bccb01363463816d9d90c9f801a", "score": "0.6966574", "text": "long getVideoDuration();", "title": "" }, { "docid": "ff8f53f23f485d74bcc5fbdc1ffecc74", "score": "0.6957171", "text": "long getDurationUs();", "title": "" }, { "docid": "342f1477117c2f53e6a6389661f06622", "score": "0.6931726", "text": "public long getDuration();", "title": "" }, { "docid": "be5f1e55e3222066bf9cb38168a16bb1", "score": "0.68984145", "text": "int getDuration();", "title": "" }, { "docid": "be5f1e55e3222066bf9cb38168a16bb1", "score": "0.68984145", "text": "int getDuration();", "title": "" }, { "docid": "be5f1e55e3222066bf9cb38168a16bb1", "score": "0.68984145", "text": "int getDuration();", "title": "" }, { "docid": "4cc0925e3d67893679e40c4dda87196b", "score": "0.68905526", "text": "public int getPlayTimeSeconds();", "title": "" }, { "docid": "5dd32f8a2f999d7273d53ff13c64fb22", "score": "0.68404984", "text": "public double getDuration();", "title": "" }, { "docid": "41cddf718f1ab1b01521cb96523437ba", "score": "0.68246037", "text": "public TimeSpan getDuration()\n\t{\n\t\tif (sample_rate <= 0 && stream_length <= 0)\n\t\t{\n\t\t\treturn TimeSpan.Zero;\n\t\t}\n\n\t\treturn TimeSpan.FromSeconds((double)(frames * 1152 - 576) / (double) sample_rate + 0.5);\n\t}", "title": "" }, { "docid": "289d4eafef304bec8f2fa40b72bb85d8", "score": "0.6822976", "text": "public int getPlayDelay();", "title": "" }, { "docid": "e76970c861265301f0462a14b883f71a", "score": "0.6809443", "text": "public int getDuration();", "title": "" }, { "docid": "9f1840036cc826b8ce92f34a57eb02c6", "score": "0.6776847", "text": "NativeLong rs2_playback_get_duration(PointerByReference device, PointerByReference error);", "title": "" }, { "docid": "4a259a70aa8b52206ac34810fb52d029", "score": "0.6766292", "text": "String getDuration();", "title": "" }, { "docid": "1246ede14c977d39d9c367575b15fb0e", "score": "0.6690478", "text": "public Float getDuration() {\n return section.getFloat(\"duration\");\n }", "title": "" }, { "docid": "8e132480cc68261de97d8dd9a0586c36", "score": "0.6657871", "text": "public long getMediaNanoseconds() {\n\n\treturn (audioStream == null ? 0 : samplesPlayed * 125000L);\n }", "title": "" }, { "docid": "202b56a0e175d6f42d90a82672aac739", "score": "0.6594834", "text": "public int getDuration() { return duration; }", "title": "" }, { "docid": "cbfbc78abdd346f7dbf976779f14023e", "score": "0.65869164", "text": "public long getDuration() {\n\t\treturn mediaPlayerComponent.mediaPlayer().media().info().duration();\n\t}", "title": "" }, { "docid": "43ec048821b7b8151ee87e2ab75a2b99", "score": "0.6541097", "text": "public double getLength(){\n\t\treturn clip.getMicrosecondLength() /1000.0;\n\t}", "title": "" }, { "docid": "ceea660c64f142c3fde790c765fe859a", "score": "0.6534753", "text": "public double getDuration() \n\t{\n\t\treturn duration; \n\t}", "title": "" }, { "docid": "62b8b45c573f03d171a4c61e564241fe", "score": "0.65303487", "text": "public float seconds(int ms) {\n return ms / 1000.0f; \n}", "title": "" }, { "docid": "084a00e5886eece99b52db72a5177d6c", "score": "0.64924777", "text": "public int getDuration() {\n return duration;\n }", "title": "" }, { "docid": "084a00e5886eece99b52db72a5177d6c", "score": "0.64924777", "text": "public int getDuration() {\n return duration;\n }", "title": "" }, { "docid": "084a00e5886eece99b52db72a5177d6c", "score": "0.64924777", "text": "public int getDuration() {\n return duration;\n }", "title": "" }, { "docid": "40e7114d0d6104e47fcb5cd3ffad7a49", "score": "0.6488891", "text": "public abstract double getDuration();", "title": "" }, { "docid": "1bfa70a0889bff0e2d1ba4208fdb8d34", "score": "0.64798194", "text": "public long getDuration() {\n return duration;\n }", "title": "" }, { "docid": "1bfa70a0889bff0e2d1ba4208fdb8d34", "score": "0.64798194", "text": "public long getDuration() {\n return duration;\n }", "title": "" }, { "docid": "1bfa70a0889bff0e2d1ba4208fdb8d34", "score": "0.64798194", "text": "public long getDuration() {\n return duration;\n }", "title": "" }, { "docid": "1bfa70a0889bff0e2d1ba4208fdb8d34", "score": "0.64798194", "text": "public long getDuration() {\n return duration;\n }", "title": "" }, { "docid": "1bfa70a0889bff0e2d1ba4208fdb8d34", "score": "0.64798194", "text": "public long getDuration() {\n return duration;\n }", "title": "" }, { "docid": "6a360d9d1766bf04300e5705b4c576f1", "score": "0.6477765", "text": "Duration getDuration();", "title": "" }, { "docid": "9c83eb4ded791d291f0da9fdef9e1922", "score": "0.64743114", "text": "public int getDuration ()\r\n {\r\n return _duration;\r\n }", "title": "" }, { "docid": "a734f971712224fb21cf91825dd32edf", "score": "0.64444155", "text": "public int getDuration() {\r\n return this.duration;\r\n }", "title": "" }, { "docid": "1ac2f63041ef59bf0e0591488ed3fd26", "score": "0.6428643", "text": "String getRepeatDuration();", "title": "" }, { "docid": "1a9b97f43bcd7e9172891ac4f95cdff2", "score": "0.6423512", "text": "private void setDurationMs(int wordsPerMinute) {\n\t\t\n\t\tdurationMs = (MILLIS_PER_MINUTE/(AVERAGE_UNITS_PER_WORD * wordsPerMinute));\n\t\t\n\t\t/* The following adjusts the duration to eliminate glitching. This is not\n\t\t * needed as the user is bound to a preset index of frequencies and speeds that\n\t\t * ensure glitching will be eliminated. Enable this procedure only if allowing\n\t\t * more frequencies and durations in the future\n\t\t * \n\t\t * Adjust the duration for the given frequency to eliminate glitching (sine wave ends \n\t\t * at 0 for each unit)\n\t\t * \n\t\t * # of frames for the given duration divided by the number of frames for a half period of\n\t\t * the sine wave must be a whole number: \n\t\t * (Constants.SAMPLE_RATE * (durationMs / 1000)) % (Constants.SAMPLE_RATE / (2 * freqHz)) == 0\n\t\t * This reduces to f * durationMs / 500 must be a whole number\n\t\t * The number of frames per unit must also be a whole number\n\t\t * (Constants.SAMPLE_RATE * durationMs / 1000.0) must be a whole number\n\t\t * // The duration is multiplied by 100 for greater precision\n\t\t * int duration = (int)((MILLIS_PER_MINUTE/(AVERAGE_UNITS_PER_WORD * wordsPerMinute)) * 100.0);\n\t\t * double durationCheck;\n\t\t * double frames;\n\t\t *\n\t\t * // Check to ensure sine wave ends at 0 for a morse code unit duration\n\t\t * durationCheck = freqHz * ((double)duration / 100.0) / 500.0;\n\t\t *\n\t\t * // Calculate the number of frames for a morse code unit duration\n\t\t * frames = (((double)Constants.SAMPLE_RATE) * (((double)duration / 100.0) / 1000.0));\n\t\t *\n\t\t *\n\t\t * // Must adjust duration until the number of frames per character is an even number, and \n\t\t * // the sine wave is at 0 in the last frame. The duration is reduced until this happens.\n\t\t * // This eliminates the glitching but results in a message that may be slightly faster than\n\t\t * // the selected words per minute\n\t\t *\n\t\t * while((durationCheck != Math.round(durationCheck)) || (frames != Math.round(frames))){\n\t\t *\t\n\t\t *\t// The duration was multiplied by 100, so this actually only reduces is by .01 milliseconds\n\t\t *\tduration--; \n\t\t *\tdurationCheck = freqHz * ((double)duration / 100.0) / 500.0;\n\t\t *\tframes = (((double)Constants.SAMPLE_RATE) * (((double)duration / 100.0) / 1000.0));\n\t\t * }\n\t\t *\n\t\t *\n\t\t * // Cast the duration as a double and divide by 100.0 before assigning it to the \n\t\t * // durationMs field.\n *\n\t\t * durationMs = ((double)duration / 100.0);\n\t\t */\n\t}", "title": "" }, { "docid": "a91ba7bea168c48885cd43ff0dc4339d", "score": "0.64230144", "text": "public double getDuration() {\n return duration;\n }", "title": "" }, { "docid": "684d00cd5224017c17f1a8d709c1c26f", "score": "0.6399871", "text": "public long getDuration() {\n return duration;\n }", "title": "" }, { "docid": "052b9716902bfa9901200eb6c9a5e795", "score": "0.63980395", "text": "public abstract int getDuration();", "title": "" }, { "docid": "052b9716902bfa9901200eb6c9a5e795", "score": "0.63980395", "text": "public abstract int getDuration();", "title": "" }, { "docid": "052b9716902bfa9901200eb6c9a5e795", "score": "0.63980395", "text": "public abstract int getDuration();", "title": "" }, { "docid": "a15dc86ae54dbeb5f79cb18f427c489c", "score": "0.6373247", "text": "public long getDuration() {\n return this.duration;\n }", "title": "" }, { "docid": "aa701b3036faba9dfe6958d562e5f756", "score": "0.63723916", "text": "public Double getDuration() throws FileNotFoundException {\n if (duration != null) {\n return duration;\n } else {\n throw new FileNotFoundException(\"The song \" + name + \" does not have a duration associated with it.\");\n }\n }", "title": "" }, { "docid": "5a8f3af983677903258d4e9c028a4939", "score": "0.63709927", "text": "long getEvolutionLengthMs();", "title": "" }, { "docid": "059d353234daad330745b6eb3ede3d6c", "score": "0.63632333", "text": "long get_duration() {\r\n return _duration;\r\n }", "title": "" }, { "docid": "52d820f1791ac77802d7eb868870ecaa", "score": "0.63567775", "text": "double getDurationValue();", "title": "" }, { "docid": "732f8db60b12cb30c5bea58c3665613f", "score": "0.63492244", "text": "public int getDuration() {\r\n if (mPlayer != null)\r\n return mPlayer.getDuration()/1000;\r\n\r\n return 0;\r\n }", "title": "" }, { "docid": "4e24bb26c2d8e85b5f7b181ae9b94467", "score": "0.6348362", "text": "public int getDuration() {\nreturn duration;\n}", "title": "" }, { "docid": "3ac7ae939417c698e718bee98231a6d4", "score": "0.6346025", "text": "public Long getDuration(){\n return duration;\n }", "title": "" }, { "docid": "ee3ba81f99a34cac88c741d009fdf082", "score": "0.63351166", "text": "public int getDuration() {\n return duration_;\n }", "title": "" }, { "docid": "ee3ba81f99a34cac88c741d009fdf082", "score": "0.63351166", "text": "public int getDuration() {\n return duration_;\n }", "title": "" }, { "docid": "60f939f590157825186a0a114225a3db", "score": "0.6333689", "text": "public Integer getDuration() {\n return this.duration;\n }", "title": "" }, { "docid": "291b939442142a6bc2c5fbf9093ba151", "score": "0.63317555", "text": "@Override\n\tpublic int getDuration() {\n\t\treturn mPlayer.getDuration();\n\t}", "title": "" }, { "docid": "2799b34089ee3db90cd5bc1944e48f0e", "score": "0.6328528", "text": "public int getDuration(){\n return this.duration;\n }", "title": "" }, { "docid": "41bde0bd9701616a4acaec1513fb015d", "score": "0.63074654", "text": "@Override\n public final String getVideoDuration() {\n return \"\" + getTime();\n }", "title": "" }, { "docid": "5e9f6ae8c791ac2079eb8cb5c3e52e1f", "score": "0.62785685", "text": "Float getDuration() {\n\t\treturn duration;\n\t}", "title": "" }, { "docid": "756dbc9344d8825b4cba0b51b589c61d", "score": "0.6277875", "text": "public long toDurationMillis()\r\n/* */ {\r\n/* 388 */ return FieldUtils.safeAdd(getEndMillis(), -getStartMillis());\r\n/* */ }", "title": "" }, { "docid": "aef2507bd04715f7ea70fbc706cbf1c3", "score": "0.62493104", "text": "public String getDuration() {\n return mDuration;\n }", "title": "" }, { "docid": "2b1250132b9075820f57b5f26e96c1b9", "score": "0.6237969", "text": "public int getDuration() {\n return duration_;\n }", "title": "" }, { "docid": "2b1250132b9075820f57b5f26e96c1b9", "score": "0.6237969", "text": "public int getDuration() {\n return duration_;\n }", "title": "" }, { "docid": "b1921318ae21d2fab39b9671eb65d63c", "score": "0.62360585", "text": "public long getDuration () {\n return duration;\n}", "title": "" }, { "docid": "44c4962f158cd31fcb072ef40cce6713", "score": "0.62355006", "text": "public float getLength()\n {\n if ((mCurrentState == MEDIA_STATE.NOT_READY) || (mCurrentState == MEDIA_STATE.ERROR))\n {\n // Log.d(TAG, \"Cannot get the video length if it is not ready\");\n return -1;\n }\n\n int result=-1;\n mMediaPlayerLock.lock();\n if (mMediaPlayer != null)\n result = mMediaPlayer.getDuration()/1000;\n mMediaPlayerLock.unlock();\n\n return result;\n }", "title": "" }, { "docid": "245c917e2ba4d94bca3bb48ec0adaa01", "score": "0.6230309", "text": "public Time getDuration() {\r\n return duration;\r\n }", "title": "" }, { "docid": "b571dd40b8e7d08f83c9f8b93701e7c5", "score": "0.62090045", "text": "public long duration(){\n\t\tif(!this.isEmpty()){\n\t\t\treturn (this.timeEnd() - this.timeIni());\n\t\t}\n\t\treturn 0;\n\t}", "title": "" }, { "docid": "a54e95b119d4c5fd00e5cd3991a4168e", "score": "0.6208039", "text": "DoubleProperty currentTimeDurationProperty();", "title": "" }, { "docid": "e61cfce88a6aba66dc4f78c3d4133da6", "score": "0.6195639", "text": "public long getDuration(){\n\t\treturn endTime-startTime;\n\t}", "title": "" }, { "docid": "4c4322dc5bbe7d99c29c22bff091e575", "score": "0.6186228", "text": "@Override\n\tpublic int getDuration() {\n\t\treturn 1;\n\t}", "title": "" }, { "docid": "1428f66bfccc71b4b28927a6082f06ad", "score": "0.61767566", "text": "@java.lang.Override\n public float getDurationSeconds() {\n return durationSeconds_;\n }", "title": "" }, { "docid": "40c5201a0a63a5921048d6abcab4e5b2", "score": "0.61745507", "text": "public int getDuration() {\n\t\treturn this.duration;\n\t}", "title": "" }, { "docid": "00d183a38e35585a259b5823a2f51527", "score": "0.61669743", "text": "public int getDuration() {\r\n\treturn duration;\r\n}", "title": "" }, { "docid": "5c711e6181cc3dce78b1d93c532b03d3", "score": "0.6145745", "text": "private static long getDuration(String file_path) {\r\n\t\t/*----------------------------\r\n\t\t * 2. Duration\r\n\t\t * \t\t1. temp_mp\r\n\t\t * \t\t2. Set source\r\n\t\t * \t\t2-1. Prepare\r\n\t\t * \t\t2-2. Get duration\r\n\t\t * \t\t2-3. Release temp_mp\r\n\t\t * \r\n\t\t * \t\t3. Prepare\t=> NOP\r\n\t\t * \t\t4. Start\t\t\t=> NOP\r\n\t\t\t----------------------------*/\r\n\t\tMediaPlayer temp_mp = new MediaPlayer();\r\n\t\t\r\n\t\ttry {\r\n\t\t\t\r\n\t\t\ttemp_mp.setDataSource(file_path);\r\n\t\t\t\r\n\t\t} catch (IllegalArgumentException e) {\r\n\t\t\t\r\n\t\t\t// Log\r\n\t\t\tLog.d(\"Methods.java\"\r\n\t\t\t\t\t+ \"[\"\r\n\t\t\t\t\t+ Thread.currentThread().getStackTrace()[2]\r\n\t\t\t\t\t\t\t.getLineNumber() + \"]\", \"Exception: \" + e.toString());\r\n\t\t\t\r\n\t\t\treturn -1;\r\n\t\t\t\r\n\t\t} catch (IllegalStateException e) {\r\n\t\t\t// Log\r\n\t\t\tLog.d(\"Methods.java\"\r\n\t\t\t\t\t+ \"[\"\r\n\t\t\t\t\t+ Thread.currentThread().getStackTrace()[2]\r\n\t\t\t\t\t\t\t.getLineNumber() + \"]\", \"Exception: \" + e.toString());\r\n\t\t\t\r\n\t\t\treturn -1;\r\n\t\t\t\r\n\t\t} catch (IOException e) {\r\n\t\t\t// Log\r\n\t\t\tLog.d(\"Methods.java\"\r\n\t\t\t\t\t+ \"[\"\r\n\t\t\t\t\t+ Thread.currentThread().getStackTrace()[2]\r\n\t\t\t\t\t\t\t.getLineNumber() + \"]\", \"Exception: \" + e.toString());\r\n\t\t\t\r\n\t\t\treturn -1;\r\n\t\t\t\r\n\t\t}//try\r\n\t\t\r\n\t\t/*----------------------------\r\n\t\t * 2.2-1. Prepare\r\n\t\t\t----------------------------*/\r\n\t\ttry {\r\n\t\t\t\r\n\t\t\ttemp_mp.prepare();\r\n\t\t\t\r\n\t\t} catch (IllegalStateException e) {\r\n\t\t\t// Log\r\n\t\t\tLog.d(\"Methods.java\"\r\n\t\t\t\t\t+ \"[\"\r\n\t\t\t\t\t+ Thread.currentThread().getStackTrace()[2]\r\n\t\t\t\t\t\t\t.getLineNumber() + \"]\", \"Exception: \" + e.toString());\r\n\t\t\t\r\n\t\t\treturn -1;\r\n\t\t\t\r\n\t\t} catch (IOException e) {\r\n\t\t\t// Log\r\n\t\t\tLog.d(\"Methods.java\"\r\n\t\t\t\t\t+ \"[\"\r\n\t\t\t\t\t+ Thread.currentThread().getStackTrace()[2]\r\n\t\t\t\t\t\t\t.getLineNumber() + \"]\", \"Exception: \" + e.toString());\r\n\t\t\t\r\n\t\t\treturn -1;\r\n\t\t\t\r\n\t\t}//try\r\n\r\n\t\t/*----------------------------\r\n\t\t * 2.2-2. Get duration\r\n\t\t\t----------------------------*/\r\n\t\tlong duration = temp_mp.getDuration();\r\n\t\t\r\n\t\t/*----------------------------\r\n\t\t * 2.2-3. Release temp_mp\r\n\t\t\t----------------------------*/\r\n\t\ttemp_mp.reset();\r\n\t\ttemp_mp.release();\r\n\t\ttemp_mp = null;\r\n\t\t\r\n\t\treturn duration;\r\n\t\t\r\n\t}", "title": "" }, { "docid": "60c09e48fdbbb0bae6d7945452290562", "score": "0.61279196", "text": "public String getDuration() {\n return getAttribute(ATTRIBUTE_DURATION);\n }", "title": "" }, { "docid": "ffc458e20dea0ce1bf41f3dbf8b06960", "score": "0.61164016", "text": "public int getVideoDuration() {\n\t\tmainActivity.callJsEvent(PROCESSING_FALSE);\n\t\tduration = mVideoView.getDuration() / 1000;\n\t\tDebugLog.e(TAG, duration + \"\");\n\t\treturn duration;\n\t}", "title": "" }, { "docid": "1805916df6d383bc8adb4c7cf9d380e5", "score": "0.6114735", "text": "public float getRecordingLength(){\n File audioFile = new File(_trimmedPath);\n try {\n AudioInputStream audioInputStream = AudioSystem.getAudioInputStream(audioFile);\n AudioFormat format = audioInputStream.getFormat();\n\n long audioFilelength = audioFile.length();\n int frameSize = format.getFrameSize();\n float frameRate = format.getFrameRate();\n\n float durationInSeconds = (audioFilelength / (frameSize * frameRate));\n\n return durationInSeconds;\n } catch (UnsupportedAudioFileException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return 0;\n }", "title": "" }, { "docid": "452eb084910763d4fe0f69a813b8aacc", "score": "0.611039", "text": "public double getClipLength(String fileName){\n\tdouble durationInSeconds;\n\ttry{\n\t File file = new File(System.getProperty(\"user.dir\") + \"/src/audio/\" + fileName);\n\t AudioInputStream audioInputStream;\n\t try (AudioInputStream audioInStream = AudioSystem.getAudioInputStream(file)) {\n\t audioInputStream = audioInStream;\n\t }\n\t AudioFormat format = getAudioFormat();\n\t long frames = audioInputStream.getFrameLength();\n\t durationInSeconds = (frames+0.0) / format.getFrameRate();\n\t} catch(IOException | UnsupportedAudioFileException ex){\n\t durationInSeconds = 0;\n\t ex.printStackTrace();\n\t}\n\treturn durationInSeconds;\n }", "title": "" }, { "docid": "06600d8637f46fe8cda0fd9f09ba0148", "score": "0.6105911", "text": "private double getSongLength(File f) {\n\t\tdouble length = -1;\n\t\ttry {\n\t\t\t//Get song length\n\t\t\tAudioInputStream ais = AudioSystem.getAudioInputStream(f.getAbsoluteFile());\n\t\t\tClip c = AudioSystem.getClip();\n\t\t\tc.open(ais);\n\t\t\tlength = c.getMicrosecondLength() * 0.001; //to millis\n\t\t\tc.close();\n\t\t} catch (Exception e) { System.out.println( e.getMessage()); }\n\t\treturn length;\n\t}", "title": "" }, { "docid": "4ab28d5de936a3d3f9c067d8df351529", "score": "0.6097739", "text": "@java.lang.Override\n public float getDurationSeconds() {\n return durationSeconds_;\n }", "title": "" }, { "docid": "db6cbc450f3570e830a7ee1e94ddea3b", "score": "0.60946983", "text": "public java.lang.String getDuration() {\r\n return duration;\r\n }", "title": "" }, { "docid": "e67ff7137e584d7930232c93b1e41c74", "score": "0.60863215", "text": "public int getDuration() {\n if (frameLengths == null) {\n return 0;\n }\n int duration = 0;\n for (int i : frameLengths) {\n if (i > 100) {\n continue;\n }\n duration += i * 20;\n }\n return duration;\n }", "title": "" }, { "docid": "b1ae960c03af5af66b02ef9b7b08607e", "score": "0.6076632", "text": "public double getDifferenceInSeconds(){\r\n\t\treturn milliseconds / 1000;\r\n\t}", "title": "" }, { "docid": "2a8c2a54d05b6f632d0bb6870103634a", "score": "0.60282165", "text": "public int getDuration() {\n\t\treturn type.getDuration();\n\t}", "title": "" }, { "docid": "d965a1f5b55df2927d8fc6e8e2e41c82", "score": "0.60275275", "text": "public long getAudioSsrc();", "title": "" }, { "docid": "1d5552f8a1ba575d477c306125a9e0a7", "score": "0.5995866", "text": "public void setDuration(long value) {\n this.duration = value;\n }", "title": "" }, { "docid": "b38bb0fc319120fb477326c54de10ce0", "score": "0.5985015", "text": "public long getMediaNanoseconds() {\n\treturn clock.getMediaNanoseconds();\n }", "title": "" }, { "docid": "509caec4b8f7f04db93fd204ccbf368f", "score": "0.5968002", "text": "public int getDurationTicks() {\n int ticks = getDuration() / 600;\n return ticks < 1 ? 1 : ticks;\n }", "title": "" }, { "docid": "99dbd2441ae042d2bafc99fbea3e5b1e", "score": "0.59627074", "text": "public Long getDurationSeconds() {\n return this.DurationSeconds;\n }", "title": "" }, { "docid": "6ab7b9bf8527d042b2e4b0272e5e97f5", "score": "0.5955238", "text": "int getDeltaTimeMs();", "title": "" }, { "docid": "6542b80458c7a3e86e3264bd868abd75", "score": "0.59391016", "text": "public long getMilliseconds();", "title": "" }, { "docid": "46c2be055dbbb69abbd99e6f89ecb37b", "score": "0.59365165", "text": "private int getDuration(int length, int dotCount, int lineNum) {\n\t\tdouble duration = length == 0 ? 2.0 * WHOLE_NOTE_DURATION_TICKS : ((double) WHOLE_NOTE_DURATION_TICKS) / length;\n\t\t\n\t\tdouble dotBonus = 0.0;\n\t\tfor (int i = 0, denominator = 2; i < dotCount; i++, denominator *= 2) {\n\t\t\tdotBonus += duration / denominator;\n\t\t}\n\t\t\n\t\treturn (int) Math.round(dotBonus + duration);\n\t}", "title": "" }, { "docid": "282447c449126b583817ea9622f2ab06", "score": "0.5903362", "text": "void durationOccurred();", "title": "" }, { "docid": "8ed57cbaf1b712baf026316f5285bdbe", "score": "0.5898392", "text": "public double getTotalDuration() {\n double time = 0;\n boolean repeat = false;\n Iterator iterator = piece.iterator();\n double temp = 0;\n while (iterator.hasNext()) {\n Note n = (Note) iterator.next();\n if (n.isRepeat()) {\n if (repeat) {\n //end of repeat\n temp += n.getDuration();\n time += temp*2;\n temp = 0;\n repeat = false;\n } else {\n //start of new repeat\n repeat = true;\n temp += n.getDuration();\n }\n continue; // or break?\n }\n if (repeat) {\n temp += n.getDuration();\n } else time += n.getDuration();\n }\n return time;\n }", "title": "" }, { "docid": "567da9ead32884c9884b3e5aa4f16fd2", "score": "0.587789", "text": "private long getDurationSeconds(SQueuedBuild item) {\n BuildEstimates estimates = item.getBuildEstimates();\n if (estimates == null) return DEFAULT_DURATION;\n TimeInterval timeInterval = estimates.getTimeInterval();\n if (timeInterval == null) return DEFAULT_DURATION;\n Long duration = timeInterval.getDurationSeconds();\n if (duration == null) return DEFAULT_DURATION;\n return duration == 0 ? 1 : duration;\n }", "title": "" }, { "docid": "07320e87f36677d65917be2579324f02", "score": "0.58739275", "text": "public long getCurrentDuration() {\n// stop();\n return (duration);\n }", "title": "" }, { "docid": "181c890fab496824b93a5262c7ab8df8", "score": "0.5872766", "text": "protected float getSoundVolume() {\n\t\treturn 0.4F * (float) this.getSlimeSize();\n\t}", "title": "" }, { "docid": "7a853a1ba32e97ce92d8218bad69d2a9", "score": "0.58649045", "text": "protected float getSoundVolume()\n {\n return 0.4F;\n }", "title": "" }, { "docid": "85ce172245de9c8fb36c21fa4fb96bf2", "score": "0.584527", "text": "public static float getSoundVolume(){\n return soundVolume;\n }", "title": "" } ]
bdffac40d4f077fce487c497dad0cad5
Deze methode sluit de connectie met de databank.
[ { "docid": "2c3a3eebe72b69d92242dbcac8413bae", "score": "0.0", "text": "public void closeConnection() {\r\n\ttry{\r\n\t con.close();\r\n\t}\r\n\tcatch(SQLException e) {e.printStackTrace();}\r\n }", "title": "" } ]
[ { "docid": "297ab40930a8ddb86f54f524f4fc3775", "score": "0.72126615", "text": "public DataConnect() {\n\t\ttry {\n\t\t\t\n\t\t\tClass.forName(\"com.mysql.jdbc.Driver\");\n\t\t\t\n\t\t\tcon = DriverManager.getConnection(\"jdbc:mysql://localhost:3306/dbfitness\",\"root\",\"\");\n\t\t\t\n\t\t\tst = con.createStatement();\n\t\t\t\n\t\t}catch(Exception ex) {\n\t\t\tSystem.out.println(\"Error: \"+ ex);\n\t\t}\n\t}", "title": "" }, { "docid": "202e69f3aff448fc3eaa18136e15ea33", "score": "0.7193465", "text": "void connect(){\n try {\n \n //tao doi tuong ket noi voi mysql --> user voi pass\n connection = DriverManager.getConnection(url,user,pass);\n System.out.println(\"connect success\");\n \n \n } catch (SQLException ex) {\n System.out.println(\"Error connection\");\n }\n }", "title": "" }, { "docid": "58837cb5533c4b0d5486595df264199c", "score": "0.6998298", "text": "@Override\n\tpublic void connect() {\n\n\t\tMysqlDataSource mds= new MysqlDataSource();\n\t\t\n\t\tmds.setUser(this.username);\n\t\tmds.setPassword(this.password);\n\t\tmds.setServerName(this.hostname);\n\t\tmds.setDatabaseName(database);\n\t\t\n\t\ttry {\n\t\t\tc= mds.getConnection();\n\t\t} catch (SQLException e) {\n\t\t\tlog.error(e);\n\t\t\tSystem.exit(-1);\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "97b8c77fcb42506a94660a7493458e47", "score": "0.69599843", "text": "public static void connect() {\n //variable conexion para trabajar con ella\n Connection conn = null;\n try {\n //url de donde esta situada la bas de datos\n //en caso de que no exista ninguna base reconocida\n //se crea una automaticamente\n String url = \"jdbc:sqlite:chinook.db\";\n // creacion de la conexion con la base de datos\n conn = DriverManager.getConnection(url);\n //mensaje para saber si realmente funciono el programa\n System.out.println(\"Confirmacion\");\n \n } catch (SQLException e) {\n System.out.println(e.getMessage());\n } finally {\n try {\n if (conn != null) {\n conn.close();\n }\n } catch (SQLException ex) {\n System.out.println(ex.getMessage());\n }\n }\n }", "title": "" }, { "docid": "7ade4964fa62935563448194902690b8", "score": "0.6815005", "text": "private DBConnect() {\n\t\t this.openDBConnection();\n\t }", "title": "" }, { "docid": "fe50c90ee82983a6cdad779ccf0ce212", "score": "0.6795348", "text": "public void conectar() {\n try {\n // Funcion que permite abrir la base de datos creada\n // en este caso la URL solo es miBd.bd, pues la cree dentro de la carpeta del proyecto\n // Si se encontrase en otro ubicación abría que poner la URL\n connect=DriverManager.getConnection(\"jdbc:sqlite:miBd.bd\");\n\n } catch (SQLException ex) {\n JOptionPane.showMessageDialog(null, \"No se pudo conectadar\", \"Advertencia\", JOptionPane.WARNING_MESSAGE);\n Logger.getLogger(Main.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "title": "" }, { "docid": "95ce8584659acc0e735aa9ad5de0ad7f", "score": "0.67936945", "text": "public void connect();", "title": "" }, { "docid": "95ce8584659acc0e735aa9ad5de0ad7f", "score": "0.67936945", "text": "public void connect();", "title": "" }, { "docid": "f8297eb58cb10259cc11abc29e7c6997", "score": "0.67910403", "text": "private DatabaseConnect() {\n\n\t}", "title": "" }, { "docid": "87e4fccb363a70734155dd5484cb4b5e", "score": "0.6763696", "text": "public void connect() {\n\t}", "title": "" }, { "docid": "81f2259dd1f3c1dad570ff31945f0495", "score": "0.6713743", "text": "public void connect(){\n\t\t// If there isn't database until now\n\t\tif(this.oCurrentDatabase == null){\n\t\t\t// Get the database through the factory\n\t\t\tthis.oCurrentDatabase = new MySQL();\n\t\t}\n\t\t// Connect to the database\n\t\tthis.oCurrentDatabase.connect();\n\t}", "title": "" }, { "docid": "2f91921e58685e8cb7e9531f2619e208", "score": "0.6704631", "text": "@Override\r\n\tpublic void connect() throws Exception {\n\t\tdao.connect();\r\n\t}", "title": "" }, { "docid": "d0e3abb01d9d2e63d546cfa1bb87f7c9", "score": "0.66944575", "text": "public void innitConn() throws SQLException {\r\n \t //création d'une connexion JDBC à la base \r\n conn = DriverManager.getConnection(urlDatabase, loginDatabase, passwordDatabase);\r\n\r\n // création d'un ordre SQL (statement)\r\n stmt = conn.createStatement();\r\n }", "title": "" }, { "docid": "2b9ef5e29a292c16090f1d70dc142f3d", "score": "0.6633478", "text": "public void connectDB()\n {\n try {\n conn = DriverManager.getConnection(url, username, password);\n System.out.println(\"Connected\");\n } catch (SQLException ex) {\n System.out.println(\"error\");\n }\n }", "title": "" }, { "docid": "e42012251cc77550ff96573a3e78d7d5", "score": "0.6616827", "text": "@Override\r\n\tpublic void connect() throws SQLException {\r\n\t\tconn = DriverManager.getConnection(DB_URL);\r\n\t}", "title": "" }, { "docid": "fecd7915db2ad7720d2c6e09415ee8e0", "score": "0.65928656", "text": "public DatabaseConnectie() { \r\n\ttry {\r\n\t con = DriverManager.getConnection(\"jdbc:mysql://localhost:3306/\" + dbName, login, pass);\r\n\t}\r\n\tcatch(java.sql.SQLException e) {e.printStackTrace();}\r\n }", "title": "" }, { "docid": "e36bad4ec2bfc413f255a41c7e4fa963", "score": "0.65600556", "text": "public Connect() {\n try {\n Class.forName(\"com.mysql.cj.jdbc.Driver\");\n connexion = DriverManager.getConnection(url, utilisateur, motDePasse);\n System.out.println(\"log : MySQL connecté depuis la classe\");\n } catch (SQLException ex) {\n System.out.println(\"SQLException: \" + ex.getMessage());\n System.out.println(\"SQLState: \" + ex.getSQLState());\n System.out.println(\"VendorError: \" + ex.getErrorCode());\n } catch (ClassNotFoundException e) {\n System.out.println(e.getMessage());\n }\n }", "title": "" }, { "docid": "b829238175c213c4a569dd08689caf4d", "score": "0.6550962", "text": "public void connectDB() {\n //Nap trinh dieu khien\n try {\n Class.forName(\"com.microsoft.sqlserver.jdbc.SQLServerDriver\");\n } catch (Exception e) {\n System.out.println(e.getMessage());\n }\n //Ket noi voi DB\n try {\n String url = \"jdbc:sqlserver://DESKTOP-VES4POV\\\\SQLEXPRESS:1433;databaseName=StudentDatabase\";\n String user = \"tn512\";\n String password = \"Ngoc1234\";\n con = DriverManager.getConnection(url, user, password);\n System.out.println(\"Connect successfully!\");\n } catch (Exception e) {\n System.out.println(e.getMessage());\n }\n }", "title": "" }, { "docid": "04c60afdb5d6d740b4dda2f26f14fa4f", "score": "0.65403014", "text": "private void connect() {\n try {\n Class.forName(\"org.apache.derby.jdbc.EmbeddedDriver\").newInstance();\n //Get a connection\n conn = DriverManager.getConnection(PROTOCOL + DB_NAME);\n // getConnection() can also have a second parameter, Properties, to add username/password etc\n connected = true;\n } catch (Exception except) {\n // If database does not exist; create database\n createDatabase();\n }\n }", "title": "" }, { "docid": "c47494054c2c0b6b12807d0d8deeeeb4", "score": "0.6537301", "text": "private ConnexionBD() {\n //------------BDD local -------------\n//try{\n// String bBurl = \"jdbc:mysql://192.168.64.2/bd2\";\n// String bdUrl = \"jdbc:mysql://localhost:3306/bd2\";\n// bdUrl += \"?serverTimezone=UTC\";\n// Class.forName(\"com.mysql.cj.jdbc.Driver\");\n// this.conn = DriverManager.getConnection(bdUrl, \"armelle\", \"armelle\");\n// this.conn = DriverManager.getConnection(bBurl, \"root\", \"ok\");\n// if (this.conn.isValid(0)) {\n// System.out.println(\"===> Connexion effectuee\");\n// }\n// ------------BDD en ligne -------------\n try {\n String uname = getEncryptedUser();\n String password = getEncryptedPass();\n System.out.println(\"===> Connexion en cours\");\n String bdUrl = \"jdbc:mysql://db4free.net/sqlsis1\";\n bdUrl += \"?serverTimezone=UTC\";\n Class.forName(\"com.mysql.cj.jdbc.Driver\");\n this.conn = DriverManager.getConnection(bdUrl, uname, password);\n if (this.conn.isValid(0)) {\n System.out.println(\"===> Connexion effectuee\");\n }\n//\n } catch (Exception ex) {\n System.out.println(\"Erreur Connection driver\");\n Logger.getLogger(ConnexionBD.class.getName()).log(Level.SEVERE, null, ex);\n\n }finally {\n }\n }", "title": "" }, { "docid": "34756f2b4341fe2829836a8fea02a8d2", "score": "0.65082663", "text": "@Override\n\tpublic void connect() {\n\t\tSystem.out.println(\"Connect to MySQL...\");\n\t}", "title": "" }, { "docid": "8ba650bf76aabd9525868b37bff338d9", "score": "0.6500331", "text": "public void connect() throws SQLException {\n close();\r\n \r\n // creamos una nueva conexion.\r\n m_c = (m_suser == null && m_spassword == null)\r\n ? DriverManager.getConnection(m_surl)\r\n : DriverManager.getConnection(m_surl, m_suser, m_spassword); \r\n m_c.setAutoCommit(true);\r\n m_bInTransaction = false;\r\n }", "title": "" }, { "docid": "a06e629a514655b5c5f92462e0c254d7", "score": "0.64957607", "text": "public final boolean connectToDb() {\r\n boolean returnValue = true;\r\n if (conn == null) {\r\n returnValue = false;\r\n try {\r\n if (ds == null) {\r\n System.out.println(\"ERROR: No se obtubo data source... applicationControlMB\");\r\n } else {\r\n conn = ds.getConnection();\r\n if (conn == null) {\r\n System.out.println(\"Error: No se obtubo conexion\");\r\n } else {\r\n ResultSet rs1 = consult(\"Select * from configurations\");\r\n if (rs1.next()) {\r\n user = rs1.getString(\"user_db\");\r\n db = rs1.getString(\"name_db\");\r\n db_dwh = rs1.getString(\"name_db_dwh\");\r\n password = rs1.getString(\"password_db\");\r\n server = rs1.getString(\"server_db\");\r\n url = \"jdbc:postgresql://\" + server + \"/\" + db;\r\n try {\r\n Class.forName(\"org.postgresql.Driver\").newInstance();// seleccionar SGBD\r\n } catch (ClassNotFoundException | InstantiationException | IllegalAccessException e) {\r\n System.out.println(\"Error 1 en \" + this.getClass().getName() + \":\" + e.getMessage());\r\n }\r\n //conn.close();\r\n conn = DriverManager.getConnection(url, user, password);// Realizar la conexion\r\n if (conn != null) {\r\n System.out.println(\"Conexion a base de datos \" + url + \" \" + this.getClass().getName());\r\n returnValue = true;\r\n } else {\r\n System.out.println(\"No se pudo conectar a base de datos \" + url + \" ... FAIL\");\r\n }\r\n } else {\r\n System.out.println(\"No se pudo conectar a base de datos \" + url + \" ... FAIL\");\r\n }\r\n }\r\n }\r\n } catch (Exception e) {\r\n System.out.println(\"Error 2 en \" + this.getClass().getName() + \":\" + e.getMessage());\r\n }\r\n }\r\n return returnValue;\r\n }", "title": "" }, { "docid": "db7db392c1b11c7698f2783137383c98", "score": "0.6476809", "text": "private Connection connect()\n\t {\n\t\tConnection con = null;\n\t try\n\t {\n\t\t Class.forName(\"com.mysql.jdbc.Driver\");\n\t \n\t\t con = DriverManager.getConnection(\"jdbc:mysql://127.0.0.1:3307/funddb\", \"root\", \"\");\n\t }\n\t\t catch (Exception e)\n\t\t {\n\t\t\t e.printStackTrace();\n\t\t }\n\t return con; \n\t \n }", "title": "" }, { "docid": "d44a8b6f963dd66a58fd2a2725024c52", "score": "0.6448526", "text": "public void connect() throws SQLException {\r\n String url = \"jdbc:mysql://127.0.0.1:3306/marvel\";\r\n String user = \"root\";\r\n String pass = \"\";\r\n connection = DriverManager.getConnection(url, user, pass);\r\n }", "title": "" }, { "docid": "19a9c4e2dff9a01ff129a3f416a4f0f8", "score": "0.6445428", "text": "@Override\n\tpublic void connect() {\n\n\t}", "title": "" }, { "docid": "fe72c780f7edd21d879dc8bcb429b542", "score": "0.6432623", "text": "public void connect()\n\t{\n\t\ttry\n\t\t{\n\t\t\tconnection = dataSource.getConnection();\n\n\t\t\t//!: disable auto commits\n\t\t\tif(connection.getAutoCommit())\n\t\t\t\tconnection.setAutoCommit(false);\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\tthrow EX.wrap(e);\n\t\t}\n\t}", "title": "" }, { "docid": "68c713b5a6e5167044bfc98abe932287", "score": "0.64181775", "text": "public ConnectDBKlant(Connection c){\r\n\t\tcon = c;\r\n\t}", "title": "" }, { "docid": "e8c700705e0a7bcdca281d3ff6d8bc1e", "score": "0.64171845", "text": "public void connect() {\n try {\n Class.forName(\"com.mysql.cj.jdbc.Driver\");\n // Properties for user and password.\n Properties p = new Properties();\n p.put(\"user\", \"root\");\n p.put(\"password\", \"Piazza123\");\n conn = DriverManager.getConnection(\"jdbc:mysql://127.0.0.1/DB2?allowPublicKeyRetrieval=true&autoReconnect=true&useSSL=false\",p);\n } catch (Exception e)\n {\n throw new RuntimeException(\"Unable to connect\", e);\n }\n }", "title": "" }, { "docid": "68eb42de85d186770a6f903ed6890405", "score": "0.6411826", "text": "public void connect() {\n\n // Start Driver\n try {\n Class.forName(\"com.mysql.jdbc.Driver\");\n } catch (ClassNotFoundException e) {\n e.printStackTrace();\n }\n\n // Attempt to connect\n try {\n con = DriverManager.getConnection(url, user, password);\n st = con.createStatement();\n rs = st.executeQuery(\"SELECT VERSION()\");\n\n if (rs.next()) {\n System.out.println(rs.getString(1));\n System.out.println(\"Successfully connected to futbol database.\");\n\n populateTeam();\n populatePlayer();\n populateMatch();\n populateInfraction();\n populateShot();\n }\n\n } catch (SQLException ex) {\n Logger lgr = Logger.getLogger(Connect.class.getName());\n lgr.log(Level.SEVERE, ex.getMessage(), ex);\n\n }\n }", "title": "" }, { "docid": "bf7110bd0a5dad97464a0212d73261c4", "score": "0.64036626", "text": "public Conectar() {\n if(connection != null) {\n\treturn;\n }\n \n String url = \"jdbc:postgresql://localhost:5432/BDsis2\";\n //String password = \"1234\"; ***si tienes password**\n try{\n\tClass.forName(\"org.postgresql.Driver\");\n\n\tconnection = DriverManager.getConnection(url,\"postgres\",\"admin\");\n\tif(connection != null){\n\t System.out.println(\"Conectando a Base de Datos...\");\n\t}\n\t}catch(Exception e){\n \t System.out.println(\"Problemas de Conexión\");\n\t}\n\n \n /*try {\n Class.forName(\"com.mysql.jdbc.Driver\");\n connection = DriverManager.getConnection(url, login, password);\n if (connection != null) {\n System.out.println(\"Conexión a base de datos \" + bd + \" OK\\n\");\n }\n } catch (SQLException ex) {\n System.out.println(ex.getMessage());\n } catch (Exception ex) {\n System.out.println(ex.getMessage());\n }*/\n }", "title": "" }, { "docid": "4667ba76c5ca0e5fb8e26bf494244393", "score": "0.6398903", "text": "private void dbConnenct() throws ClassNotFoundException, SQLException, IOException {\n\t\ttry (ReadConfig rc = new ReadConfig(\"/home/sea2/RecapConfig.ini\")) {\n\t\t\tHashMap<String,String> config = rc.readConfig();\n\t\t\tString dbConfig = String.format(\"jdbc:mariadb://%s:%s/%s?user=%s&password=%s\",\n\t\t\t\t\tconfig.get(\"Server\"),config.get(\"Port\"),config.get(\"Datenbank\"),\n\t\t\t\t\tconfig.get(\"Benutzer\"), config.get(\"Passwort\"));\t\n\t\t\tClass.forName(config.get(\"Driver\"));\n\t\t\tconnection = DriverManager.getConnection(dbConfig);\n\t\t} catch (IOException ex) { ex.fillInStackTrace();}\n\t}", "title": "" }, { "docid": "ecf38d0e397d7c8a896b0caca9f3c072", "score": "0.6395296", "text": "public void initConnection() throws SQLException{\n\t\t\tint res = dbConnect(\"localhost/AccountsJML\", \"root\",\"panathinaikos\"); \n\t\t\t\tif(res != 1) { \n\t\t\t\t\tSystem.out.println(\"DbHelper.initConnection : Connection failed\") ;\n\t\t\t\t\tthrow new SQLException();\n\t\t\t\t}else {\t\t\n\t\t\t\t\tSystem.out.println(\"DbHelper.initConnection : Connection succesful!\");\n\t\t\t\t}\n\t\t}", "title": "" }, { "docid": "a511e9512b441a7a614037c5b29dc65b", "score": "0.63808274", "text": "private static void otworzCon()\r\n {\r\n \t\r\n \ttry\r\n {\r\n Class.forName(\"org.postgresql.Driver\");\r\n dbcon = DriverManager.getConnection(url, login, haslo);\r\n dbstat=dbcon.createStatement();\r\n System.out.println(\"połączono\");\r\n }\r\n catch (ClassNotFoundException ex)\r\n {System.err.println(\"ClassNotFoundException z init: \"+\r\n ex.getMessage());}\r\n catch (SQLException ex)\r\n {System.err.println(\"SQLException z init: \" + ex.getMessage());}\r\n }", "title": "" }, { "docid": "55e7b21c82362aa5ac9f96f610605c46", "score": "0.638014", "text": "private DBConnection(){\n\t\ttry{\n\t\t\tProperties connectionProps = new Properties();\n\t\t\tconnectionProps.put(\"user\", userName);\n\t\t\tconnectionProps.put(\"password\", password);\n\t\t\turlDB += portNumber + \"/\" + dbName;\n\t\t\tconnect = DriverManager.getConnection(urlDB, connectionProps);\n\t\t}catch(SQLException e){\n\t\t\tJOptionPane jop = new JOptionPane();\n\t\t\tjop.showMessageDialog(null, \"La base de données n'est pas accessible.\\n Celle-ci est peut-être hors-ligne ou non démarrer.\", \"Erreur critique\", JOptionPane.INFORMATION_MESSAGE);\n\t\t}\n\n\t}", "title": "" }, { "docid": "11bfa9827d9e7c4ae4e4499ac96b9937", "score": "0.6361547", "text": "public Connection postaviVezuNaBazu() {\r\n Connection con = null;\r\n BP_Konfiguracija bpk = (BP_Konfiguracija) kontekst.getAttribute(\"BP_Konfig\");\r\n String url = bpk.getServerDatabase() + bpk.getUserDatabase();\r\n String korisnik = bpk.getUserUsername();\r\n String lozinka = bpk.getUserPassword();\r\n\r\n try {\r\n Class.forName(bpk.getDriverDatabase());\r\n con = DriverManager.getConnection(url, korisnik, lozinka);\r\n } catch (SQLException | ClassNotFoundException ex) {\r\n System.out.println(\"GRESKA: spajanje s bazom - \" + ex.getMessage());\r\n }\r\n\r\n return con;\r\n }", "title": "" }, { "docid": "6e70b7272d0e6732fc8ef64581675211", "score": "0.6359108", "text": "private void Connect() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }", "title": "" }, { "docid": "2051a84e17b7803c561acd831eb3fc33", "score": "0.63590693", "text": "public void connect()\r\n {\r\n try\r\n {\r\n // register the driver with DriverManager\r\n Class.forName(driver);\r\n //create a connection to the database\r\n con = DriverManager.getConnection(URL, userID, password);\r\n // Set the auto commit of the connection to false.\r\n // An explicit commit will be required in order to accept\r\n // any changes done to the DB through this connection.\r\n con.setAutoCommit(false);\r\n\t //Some logging\r\n System.out.println(\"Connected to \" + URL + \" using \"+ driver);\r\n }\r\n catch (Exception e)\r\n {\r\n e.printStackTrace();\r\n }\r\n }", "title": "" }, { "docid": "4cfa74cd10c3d5ab59287b4ed93ce58b", "score": "0.6358374", "text": "public boolean connect();", "title": "" }, { "docid": "507e2d502510e3da21a0a40ce944cebb", "score": "0.63523513", "text": "public Connection conectar(){\n try {\n Class.forName(\"com.mysql.jdbc.Driver\");\n connect = DriverManager.getConnection(\"jdbc:mysql://localhost/viajes\",\"root\",\"\"); //toda conexionViaje tine 3 parametros (base de datos, usuario, password)\n //JOptionPane.showMessageDialog(null, \"Listo ok\");\n } catch (Exception ex) {\n JOptionPane.showMessageDialog(null, \"ERROR EN LA CONEXION VUELVA A INTENTARLO MAS TARDE \"+ ex);\n }\n return connect;\n }", "title": "" }, { "docid": "14cb6a3856046b14006d84f421e2c8cc", "score": "0.6348867", "text": "@Override\n\tpublic void connect() {\n\t\t\n\t}", "title": "" }, { "docid": "726c55e1a053e3d29ba5105d83e257a9", "score": "0.6344832", "text": "private void setConnection() throws SQLException{\n conn=DriverManager.getConnection(ServerConfig.PATH,\"oap\",\"oap\");\n }", "title": "" }, { "docid": "976dd600029e6c5066aa6b1631916210", "score": "0.633835", "text": "private void connect() throws SQLException{\n\t\tConnection conn = context.getDataSource().getConnection();\n\t\tthis.connection = conn;\n\t}", "title": "" }, { "docid": "59f31c68ec2be5b5bd4e559a4c4f44e5", "score": "0.63351345", "text": "public MesajDb() {\n try {\n String JDBC_DRIVER = \"com.mysql.cj.jdbc.Driver\";\n Class.forName(JDBC_DRIVER);\n // Veritabanina baglanilmasi\n logger.info(\"Secilen veritabanina baglaniliyor\");\n String DB_URL = \"jdbc:mysql://localhost:3306/mesajDb\";\n // Veritabani kullanici adi sifresi\n String USER = \"root\";\n String PASS = \"\";\n baglanti = DriverManager.getConnection(DB_URL, USER, PASS);\n logger.info(\"Veritabanina baglanildi\");\n } catch (Exception e) {\n logger.error(\"JDBC surucusunde hata olustu\", e);\n }\n }", "title": "" }, { "docid": "6737e72b1617642ecd152ff51d8205be", "score": "0.63251954", "text": "public static Connection getKoneksi() {\n if (koneksi == null) {\r\n try{\r\n String url = \"jdbc:mysql://localhost:3306/krs\";\r\n String username = \"root\";\r\n String password = \"\";\r\n \r\n DriverManager.registerDriver(new com.mysql.jdbc.Driver());\r\n \r\n koneksi = DriverManager.getConnection(url,username,password);\r\n System.out.println(\"Koneksi Berhasil\"); \r\n } catch (SQLException e) {\r\n System.out.println(\"Gagal membuat Koneksi\");\r\n } }\r\n return koneksi;\r\n }", "title": "" }, { "docid": "368cec7ab3da6ae4966216a35c6fdc24", "score": "0.6323571", "text": "public dbStruttureD() { \n conn = dbConnessione.getConnection(); \n }", "title": "" }, { "docid": "d485957649919553d662634d235b92ad", "score": "0.6322931", "text": "boolean conectar(){\n\t\ttry {\n\t\t\tconn = DriverManager.getConnection(\"jdbc:ucanaccess://\"+bbddName, bbddUser, bbddPass);\n\t\t} catch (SQLException e) {\n\t\t\tJOptionPane.showMessageDialog(null, this.getClass().getSimpleName()\n\t\t\t\t\t+ \".conectar().Connection => SQLException\\n\" + e.getMessage());\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\ttry {\n\t\t\tthis.st = this.conn.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_READ_ONLY);\n\t\t} catch (SQLException e) {\n\t\t\tJOptionPane.showMessageDialog(null, this.getClass().getSimpleName() \n\t\t\t\t\t+ \".conectar().Statement => SQLException\\n\" + e.getMessage());\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}", "title": "" }, { "docid": "04e8c07fea5e44d525e0161cfa6619aa", "score": "0.63165206", "text": "public void connect(){\n\t\tclient.connect(tfHostname.getText(), Integer.parseInt(tfPort.getText()), tfName.getText());\n\t\t\n\n\t\t\n\t}", "title": "" }, { "docid": "a29bab3aae132f018f9bdfe5ba8d768e", "score": "0.63015693", "text": "public Connection conectaBaseDados()\n {\n try\n {\n Class.forName(\"com.mysql.jdbc.Driver\");\n String strUrl = \"jdbc:mysql://localhost:3306/notcontroleestoque\";\n Connection conn = DriverManager.getConnection(strUrl,\"root\",\"root\");\n return conn;\n }\n catch (Exception e)\n { \n System.out.println(\"Erro ao realizar a conexão\");\n e.printStackTrace();\n return null;\n } \n }", "title": "" }, { "docid": "abcf8ad22a2b2fe099a17fda266427ff", "score": "0.62978226", "text": "private void connect() {\n\t\ttry {\n\t\t\tmyConn = DriverManager.getConnection(\n\t\t\t\t\t\"jdbc:mysql://localhost:3306/courseregistration?useUnicode=true&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=UTC\",\n\t\t\t\t\t\"root\", \"L40532734b?\");\n\n\t\t\tmyStat = myConn.createStatement();\n\t\t\tmyStatCourse = myConn.createStatement();\n\t\t\tmyStatCourseOffering = myConn.createStatement();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}", "title": "" }, { "docid": "4224d67f685ee976bbf5044009b967e4", "score": "0.629439", "text": "public void conectar() {\r\n\t\t// TODO Auto-generated method stub\r\n\t\ttry {\r\n\t\t\torden = conn.createStatement();\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}", "title": "" }, { "docid": "0ca2e98b8fcaf7a6d0b216a33b39c7c5", "score": "0.6292614", "text": "public static void connect()\n {\n //create the connection to the database\n try\n {\n connection = DriverManager.getConnection(\"jdbc:mysql://\" + hostname + \":\"\n + port + \"/\" + databaseName, user, password);\n }\n catch (SQLException ex) //problem with connection\n {\n System.out.println(ex.getMessage());\n log.info(\"An error has occurred while trying to establish a connection to the database: \"\n + ex.getMessage());\n return;\n }\n\n //create a statement object to use\n try\n {\n statement = connection.createStatement();\n }\n catch (SQLException ex)\n {\n log.info(\"An error has occurred while trying to establish a connection to the database: \"\n + ex.getMessage());\n }\n }", "title": "" }, { "docid": "17afe73c46bf55e56c53e08e27d5ebfd", "score": "0.6287626", "text": "public void CreaConexion() {\r\n if (conexion == null)\r\n try {\r\n conexion =\r\n DriverManager.getConnection(\"jdbc:mysql://domanain.com:port/\" + \"BD_Name\", \"account\",\r\n \"password\");\r\n } catch (SQLException e) {\r\n utilidadesES.mostrarln(\"Error con la conexión a la base de datos: \" + e);\r\n }\r\n\r\n }", "title": "" }, { "docid": "e769ffc9805adef990d909aec4d1890c", "score": "0.62825394", "text": "public MySqlDataBase(){\n \n try {\n Class.forName(\"com.mysql.jdbc.Driver\");\n url=\"jdbc:mysql://localhost:3306/nomina1\";\n conn = DriverManager.getConnection(url,\"root\",\"\");\n System.out.println(\"Se ha conectado la Base de Datos \"+url+\".........Ok\");\n \n \n }catch(SQLException ex){\n\n if (ex.toString().startsWith(\"com.mysql.jdbc.exceptions.jdbc4.CommunicationsException\")) {\n Dialogs dg = new Dialogs(); \n dg.errorDialog(\"Error con base de datos\", \"Problemas con la base de datos\", \"Se ha encontrado un problema con la base de datos, donde no se ha podido conectar. Reinicie.\");\n Platform.exit();\n }\n \n }catch(ClassNotFoundException ex){\n\n System.out.println(ex);\n }\n \n \n\n }", "title": "" }, { "docid": "5fbb4112fe0de4af0e2b5f4c5c6a4093", "score": "0.6281237", "text": "private void getConnect() throws SQLException, ClassNotFoundException {\n\r\n\t\tClass.forName(\"org.sqlite.JDBC\");\r\n\r\n\t\tconnect = DriverManager.getConnection(\"jdbc:sqlite:acc.db\");\r\n\r\n\t\tinitialise();\r\n\t}", "title": "" }, { "docid": "2a30b4a20364c455b095eb14673b9d90", "score": "0.62737703", "text": "private void conectar() {\n try {\n String url = \"jdbc:mysql://localhost:3306/autoescola\";\n String user = \"root\";\n String password = \"jeveris\";\n conexion = DriverManager.getConnection(url, user, password);\n } catch (SQLException ex) {\n //Logger.getLogger(ProfessorJDBC.class.getName()).log(Level.SEVERE, null, ex);\n System.out.println(\"Error al conectar\" + ex.getMessage());\n conexion = null;\n }\n }", "title": "" }, { "docid": "04f79c3e6bc057053864f7211b4417da", "score": "0.62709236", "text": "private Conexion() {\n\t\ttry {\n\t\t\t// obtenemos el driver de para mysql\n\t\t\tClass.forName(\"com.mysql.jdbc.Driver\");\n\n\t\t\tconn = DriverManager.getConnection(urlServerLocal, userLocal, passwordLocal);\n\n\t\t\tif (conn == null) {\n\t\t\t\tJOptionPane.showMessageDialog(null, \"No se ha podido conectar a la base de datos.\", \"Conexion BBDD\",\n\t\t\t\t\t\tJOptionPane.ERROR_MESSAGE);\n\t\t\t}\n\n\t\t} catch (ClassNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "title": "" }, { "docid": "1849562779da20c716e61bed1e6074e8", "score": "0.6260864", "text": "private void connectToDatabase() throws SQLException {\n try {\n //connect to database\n this.con = DriverManager.getConnection(\"jdbc:mysql://\" + this.databaseHost + \":3306/\" + this.databaseDatabase, databaseUser, databasePass);\n\n } catch (SQLException ex) {\n throw ex;\n }\n }", "title": "" }, { "docid": "64678ea4e9cb5c497f91ac73af0bb428", "score": "0.62498087", "text": "public static void BdDconnect(String url, String user, String password){\r\n\t\tif(!co){\r\n\t\t\ttry {\r\n\t\t\t\tClass.forName(\"com.mysql.jdbc.Driver\");\r\n\t\t\t\tcn = DriverManager.getConnection(url, user, password);\r\n\t\t\t\tco = true;\r\n\t\t\t\tSystem.out.println(\"Connexion a la base de donnee effectue\");\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}else{\r\n\t\t\tSystem.out.println(\"Connexion a la base de donnnee deja effectue\");\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "455a2691226f954a48fbb52c81f5f097", "score": "0.6242197", "text": "public Connection getConnection()\n {\n Connection con = null;\n try {\n String urlDB = \"jdbc:derby://localhost:1527/cinema\";\n String usernameDB = \"cinema\";\n String passwordDB = \"cinemalogin\";\n \n con = DriverManager.getConnection(urlDB, usernameDB, passwordDB);\n return con;\n } catch (SQLException ex) {\n Logger.getLogger(Transactions_Total.class.getName()).log(Level.SEVERE, null, ex);\n return null; \n } \n }", "title": "" }, { "docid": "58a47db25f53df3a3e695323a9c158de", "score": "0.6237435", "text": "public boolean connect() {\n\t\tboolean connected = false;\n\n\t\ttry {\n\t\t\tProperties props = new Properties();\n\t\t\tprops.load(this.getClass().getClassLoader().getResourceAsStream(\"T9A1/server/db_config.txt\"));\n\n\t\t\tconnected = connect(props.getProperty(\"db_url\"), Integer.parseInt(props.getProperty(\"db_port\"))\n\t\t\t\t\t, props.getProperty(\"db_name\"), props.getProperty(\"db_user\"), props.getProperty(\"db_pass\"));\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\treturn connected;\n\t}", "title": "" }, { "docid": "30710facdef3ca1300c4e9d763e9919d", "score": "0.6227907", "text": "private dbConnection() {\n\t\t\tSystem.out.println(\"Creating a connection object\");\n\t\t\tSystem.out.println(\"Loading configuration....\");\n\t\t\tthis.connString= \"127.0.0.1:1443\";\n\t\t\tthis.schema=\"cts\";\n\t\t}", "title": "" }, { "docid": "b1508866c04a891e705fd125d571efb4", "score": "0.6225698", "text": "private static void connectToMySQL () {\n\t\ttry {\n\t\t\tClass.forName(\"com.mysql.cj.jdbc.Driver\");\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\tSystem.out.println(\"Nao foi possivel carregar o driver do mysql!\");\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\ttry {\n\t\t\t//conexao a base de dados MySQL\n\t\t\tString connectionString = \"jdbc:mysql://localhost:3306/\" + MongoToMySQL.server_local + \"?useSSL=false\";\n//\t\t\tMongoToMySQL.user=\"root\";\n//\t\t\tMongoToMySQL.password=\"\";\n\t\t\tsqlConnection = DriverManager.getConnection(connectionString,\n\t\t\t\t\tMongoToMySQL.user, MongoToMySQL.password);\n\t\t\tSystem.out.println(\"Ligacao a MySQL \" + \" estabelecida!\");\n\t\t\tdocumentLabel.append(\"Ligacao a MySQL \" + \" estabelecida!\" + \"\\n\");\n\t\t\t//createWindow();\n\n\t\t} catch (SQLException ex) {\n\n\t\t\tSystem.out.println(\"Nao foi possivel ligar ao servidor MySQL. Verifique as ligacoes e credenciais!\");\n\t\t\tMongoToMySQL.documentLabel.append(\"Nao foi possivel ligar ao servidor MySQL!\" + \"\\n\");\n\t\t\tMongoToMySQL.documentLabel.append(\"Verifique as ligacoes e reinicie o programa!\" + \"\\n\");\n\t\t}\n\t}", "title": "" }, { "docid": "b2790de98eac54f9cdded97846cb2abd", "score": "0.622114", "text": "private boolean connectToDataBase() throws ClassNotFoundException, SQLException {\n Class.forName(JDBC_DRIVER); // load database driver class\r\n connection = DriverManager.getConnection(database_url, userName, password);\r\n return true;\r\n }", "title": "" }, { "docid": "e60ef6b67baba0b49f7e081c87c32a9a", "score": "0.6195183", "text": "public void connect() {\n connectorClient.connect();\n }", "title": "" }, { "docid": "418a8954c4c301b77784cd3fc24201d6", "score": "0.61928874", "text": "boolean connect();", "title": "" }, { "docid": "81e5e3c5bb85197ad2fd01ea563aeda6", "score": "0.61886644", "text": "public abstract void getConnection();", "title": "" }, { "docid": "84f8e4dd94655492b680e747291155c9", "score": "0.61674255", "text": "public ConnectDBUser(Connection c){\r\n\t\tcon = c;\r\n\t}", "title": "" }, { "docid": "68302d790a6929346c6f13a0f71322ab", "score": "0.6158845", "text": "private void ketNoiCoSoDuLieu() {\n\t\ttry {\n\t\t\tString strConn = \"jdbc:mysql://localhost/dbtaisan?userUnicode=true&characterEncoding=utf-8\";\n\t\t\tProperties pro = new Properties();\n\t\t\tpro.put(\"user\", \"root\");\n\t\t\tpro.put(\"password\", \"\");\n\t\t\tcom.mysql.jdbc.Driver driver = new com.mysql.jdbc.Driver();\n\t\t\tconn = driver.connect(strConn, pro);\n\t\t} catch (Exception e) {\n\t\t\t// TODO: handle exception\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "title": "" }, { "docid": "58df929df9abf2ed6d8f00ce22bc35a1", "score": "0.6156841", "text": "public void connect() {\n try {\n // db parameters\n // create a connection to the database\n conn = DriverManager.getConnection(\"jdbc:sqlite:\" + fileURL);\n DatabaseMetaData meta = conn.getMetaData();\n System.out.println(\"Connected to SQLite database\");\n checkTables();\n } catch (SQLException e) {\n e.printStackTrace();\n }\n\n }", "title": "" }, { "docid": "ae2d89a03cbf7b8aa107a6319b3874dd", "score": "0.6156074", "text": "public void connexionLocalhost(){\n Scanner saisieClavier = new Scanner(System.in);\n\n System.out.println(\"\\nVeuilliez entrer le nom de votre base de donnée :\");\n String DBNAME = \"hopital\"; //saisieClavier.nextLine();\n System.out.println(DBNAME);\n\n System.out.println(\"\\nVotre identifiant SQL :\");\n String DBUSER = \"root\"; //saisieClavier.nextLine();\n System.out.println(DBUSER);\n\n System.out.println(\"\\nVotre mot de passe SQL:\");\n String DBPW = saisieClavier.nextLine();\n System.out.println(\"\\n\");\n\n try {\n connectLocalhost = new Connexion(DBNAME,DBUSER,DBPW);\n } catch (Exception ex){\n System.out.println(ex.getMessage());\n }\n }", "title": "" }, { "docid": "b1a5f77da0dc16f641d4671150ae6a3f", "score": "0.6152815", "text": "public void connect(String username, String password) {\r\n\t\ttry {\r\n\t\t\tdbConnection = DriverManager.getConnection(\"jdbc:oracle:thin:@ora14.informatik.haw-hamburg.de:1521:inf14\",\r\n\t\t\t\t\tusername, password);\r\n\t\t\tisConnected = true;\r\n\t\t} catch (SQLException e) {\r\n\t\t\t\r\n\t\t\t//e.printStackTrace();\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "b8563b5326677a9bf92852a3909c31e3", "score": "0.6150522", "text": "public Connection conexion(){\r\n try {\r\n // instancia\r\n Class.forName(\"org.gjt.mm.mysql.Driver\");\r\n // conectar=(Connection)DriverManager.getConnection(\"jdbc:mysql://smmcr.net/caleb\",\"progra2\",\"Fidelitas\");\r\n conectar=(Connection)DriverManager.getConnection(\"jdbc:mysql://localhost/sistema_lavacar\",\"root\",\"\");\r\n } catch (SQLException ex) {\r\n JOptionPane.showMessageDialog(null,\"Error de conexion de la base de datos\");\r\n } catch(ClassNotFoundException ex){\r\n \r\n }\r\n return conectar;\r\n \r\n }", "title": "" }, { "docid": "2f124e776996d7108571ef7d17d6d1ff", "score": "0.61487037", "text": "private void open() {\r\n InetAddress ia = null;\r\n try {\r\n ia = InetAddress.getByName(\"ns1.labs.iam.cat\");\r\n String ip = ia.getHostAddress();\r\n String url=\"jdbc:mysql://\"+ip+\":3306/a15edumaspla_ineedhelp_prova\";\r\n Class.forName(\"com.mysql.jdbc.Driver\");\r\n Driver driver = DriverManager.getDriver(url);\r\n Properties properties = new Properties();\r\n properties.setProperty(\"user\", user);\r\n properties.setProperty(\"password\", pass);\r\n con = driver.connect(url, properties);\r\n } catch (UnknownHostException | ClassNotFoundException | SQLException e) {\r\n e.printStackTrace();\r\n }\r\n }", "title": "" }, { "docid": "c33cb36ec14a82935ecbabf0ba2fa64f", "score": "0.6145777", "text": "public void Connect() throws ClassNotFoundException, SQLException{\n\t\t\tLoadVariable();\n\t\t\tClass.forName(\"org.postgresql.Driver\");\n\t\t\tdb = DriverManager.getConnection(address, username , password);\n\t\t\tdb.setAutoCommit(auto_commit);\n\t}", "title": "" }, { "docid": "ca78e63f2d1b01c4a32889296a054194", "score": "0.614516", "text": "public static Connection getconnect() {\r\n Connection con = null;\r\n try {\r\n Class.forName(\"com.mysql.jdbc.Driver\");\r\n// con = DriverManager.getConnection(\"jdbc:mysql:/127.8.183.130:3306/online_tpa\", \"adminghREbsQ\", \"zUEgaLYYB3Ba\");//three\r\n con = DriverManager.getConnection(\"jdbc:mysql://127.9.139.130:3306/datatransmission3\", \"admindm515CN\", \"5Ea5e6uEEN_X\");\r\n } catch (Exception ex) {\r\n ex.printStackTrace();\r\n }\r\n return con;\r\n }", "title": "" }, { "docid": "a2e8cda335cc0b676cb375f7571f0337", "score": "0.61262614", "text": "void connect(String ip,String database_name,String user,String password) throws SQLException{\r\n this.ip = ip;\r\n this.database_name = database_name;\r\n database_user = user;\r\n database_password = password;\r\n \r\n String login_data = \"jdbc:mysql://\"+this.ip+\"/\"+database_name+\"?\"\r\n + \"useUnicode=true&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=UTC&\" +\r\n \"user=\"+database_user+\"&password=\"+database_password;\r\n try{\r\n con = DriverManager.getConnection(login_data);\r\n connected = true;\r\n System.out.println(\"Connected succesfully\");\r\n }catch(SQLException e){\r\n connected = false;\r\n System.out.println(\"Failed to connect to database (\"+e.toString()+\")\");\r\n }\r\n }", "title": "" }, { "docid": "9c1b2c45367cd8485bb222a24efb187c", "score": "0.6118508", "text": "public void connectToDB() throws Exception {\n\t\tClass.forName(\"com.microsoft.sqlserver.jdbc.SQLServerDriver\");\n\t\t/*\n\t\t * Creating Connection To Database\n\t\t */\n\t\tConnection connection = DriverManager.getConnection(\"DataBaseURL\", \"username\", \"password\");\n\t\t\n\t\t/*\n\t\t * Executing Query And Fetching The Result\n\t\t */\n\t\tStatement statement = connection.createStatement();\n\t\tString sqlQuery=\"\";\n\t\tResultSet result = statement.executeQuery(sqlQuery);\n\t\tresult.getString(\"columnLableName\");\n\t}", "title": "" }, { "docid": "de274ed060f04a7ffee1f90a241510e1", "score": "0.6117783", "text": "public void Connect() {\n try {\n Class.forName(JDBC_DRIVER).getConstructor().newInstance();\n connection = DriverManager.getConnection(url + \"/\" + schema, username, password);\n statement = connection.createStatement();\n CheckForTables();\n //deleteTest();\n Log.Confirmation(\"Database connection established\");\n } catch (ClassNotFoundException | SQLException | NoSuchMethodException | InstantiationException | IllegalAccessException | InvocationTargetException e) {\n Log.Error(\"Database connection failed due to:\\n\" + e);\n e.printStackTrace();\n // if database connection fails then end program\n exit(0);\n }\n }", "title": "" }, { "docid": "c2443af4da6ec55ba359ab478aa0b4b7", "score": "0.61145735", "text": "private void connect() throws SpRuntimeException {\n\t // Connecting to the server\n // \"http://\" must be in front\n String urlAndPort = influxDbHost + \":\" + influxDbPort;\n influxDb = InfluxDBFactory.connect(urlAndPort, user, password);\n\n // Checking, if server is available\n Pong response = influxDb.ping();\n if (response.getVersion().equalsIgnoreCase(\"unknown\")) {\n throw new SpRuntimeException(\"Could not connect to InfluxDb Server: \" + urlAndPort);\n }\n\n // Checking whether the database exists\n System.out.println(databaseExists(databaseName));\n if(!databaseExists(databaseName)) {\n logger.info(\"Database '\" + databaseName + \"' not found. Gets created ...\");\n createDatabase(databaseName);\n }\n\n // setting up the database\n influxDb.setDatabase(databaseName);\n influxDb.enableBatch(BatchOptions.DEFAULTS.actions(batchSize).flushDuration(flushDuration));\n\t}", "title": "" }, { "docid": "7f2e5dc06157d8e0a1adacad322d76d6", "score": "0.6113693", "text": "public static void connect() {\n String url = \"jdbc:mysql://localhost:3306/\"; //connection host\n String dbName = \"ONEline\"; //db name\n String driver = \"com.mysql.jdbc.Driver\"; //connection driver\n String userName = \"root\"; //server username information\n String password = \"root\"; //server password information \n //the try block attemps to connect to the db\n try { \n Class.forName(driver).newInstance(); //creates driver instance\n //connects to the mysql server using the given host, username, and password\n connection = DriverManager.getConnection(url+dbName,userName,password);\n }//try\n //if cannot connect, throw error\n catch (Exception e) {\n System.err.println(\"Could not connect to the dataase at this time.\");\n }//catch\n }", "title": "" }, { "docid": "d7d1c2e3baeb5ac00b6bfebfdf77452c", "score": "0.6102755", "text": "public void connectToDB(String username, String psw)\n {\n\tthis.sendObjectTcp(REQ_CONNECTION+\" \"+username+\" \"+psw); \n }", "title": "" }, { "docid": "471a227e727f8e1eeb4b599a653045cc", "score": "0.6102563", "text": "public void connect() throws UnknownHostException, IOException, SDRException {\r\n m_connection = ConnectionFactory.getConnection(m_connectionData);\r\n }", "title": "" }, { "docid": "3795ac8f5002b1c119c06148be8e547e", "score": "0.60898715", "text": "public void connect() throws ConnectionException;", "title": "" }, { "docid": "fcb9497a7608f4bcaec5a91af63080f3", "score": "0.6082061", "text": "public void connect() {\n try{\n Class.forName(\"com.mysql.jdbc.Driver\");\n System.out.println(\"Connection Success\");\n }\n catch (ClassNotFoundException cnfe){\n System.out.println(\"Connection Failed\"+cnfe);\n }\n String url=\"jdbc:mysql://localhost:3306/\"+db.get;\n try{\n con = DriverManager.getConnection(url,\"root\",\"root\");\n System.out.println(\"Database Connected\");\n }\n catch (SQLException se){\n System.out.println(\"No Database\"+se);\n }\n }", "title": "" }, { "docid": "fcb9497a7608f4bcaec5a91af63080f3", "score": "0.6082061", "text": "public void connect() {\n try{\n Class.forName(\"com.mysql.jdbc.Driver\");\n System.out.println(\"Connection Success\");\n }\n catch (ClassNotFoundException cnfe){\n System.out.println(\"Connection Failed\"+cnfe);\n }\n String url=\"jdbc:mysql://localhost:3306/\"+db.get;\n try{\n con = DriverManager.getConnection(url,\"root\",\"root\");\n System.out.println(\"Database Connected\");\n }\n catch (SQLException se){\n System.out.println(\"No Database\"+se);\n }\n }", "title": "" }, { "docid": "73dff68194a6749059bf0c94e28a1f75", "score": "0.6075615", "text": "private void koneksi() {\n try {\n Class.forName(\"com.mysql.jdbc.Driver\") ;\n con = (com.mysql.jdbc.Connection) DriverManager.getConnection(\"jdbc:mysql://localhost/rumahsakit\",\"root\",\"\");\n stt = (Statement) con.createStatement();\n }catch (Exception e) {\n JOptionPane.showMessageDialog(this, \"Koneksi Database Error\");\n }\n }", "title": "" }, { "docid": "afd22a2bbe17e1c5b936aeb3eeb9ccf0", "score": "0.6074255", "text": "public DB() {\n if (DataHolder.dbActivated) {\n try {\n Connection c = (Connection) DriverManager.getConnection(url);\n statement = c.createStatement();\n DataHolder.isConnected = true;\n } catch (SQLException ex) {\n System.out.println(\"the connection fails\" + ex);\n DataHolder.isConnected = false;\n }\n }\n }", "title": "" }, { "docid": "b9e46bded50e7637100c8f99b1e70c19", "score": "0.6072267", "text": "public static void connect() throws SQLException, ClassNotFoundException{\n Class.forName(\"com.mysql.jdbc.Driver\");\n String url = \"jdbc:mysql://localhost:3306/cinema?useSSL=false&useUnicode=true&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=UTC\";\n String user = \"root\";\n String password = \"root\";\n cnx = DriverManager.getConnection(url, user, password);\n st = cnx.createStatement();\n }", "title": "" }, { "docid": "082b8df23e83c5a7de5c3d3a96290cab", "score": "0.60637385", "text": "public void connect() {\n\t\ttry {\n\t\t\t_conn = DriverManager.getConnection(\"INSERTJDBCPATHHERE\", _user, _password);\n\t\t\tassert(_conn.isValid(2));\n\n\n\t\t\tsetUp();\n\t\t} catch (SQLException e) {\n\t\t\thandleSQLException(e);\n\t\t}\n\t}", "title": "" }, { "docid": "f8255333a7f2ba93531e44c8688d58e5", "score": "0.6061003", "text": "private static void lancerConnection() throws ClassNotFoundException, SQLException {\n\t\t\t\t\n\t\t\t\t\tconnect = new Mycnx();}", "title": "" }, { "docid": "522f9ec2c4545c45c92cb9818703e3fc", "score": "0.6051417", "text": "@Override\n\tpublic byte[] connect() {\n\t\treturn super.connect();\n\t}", "title": "" }, { "docid": "57a08c3bd272a9a7a3199cbeb80b2700", "score": "0.6048815", "text": "protected void getDatabaseConnection(){\n \n try {\n getModelAccess().database.connectToDatabase();\n } catch (ClassNotFoundException ex) {\n Logger.getLogger(MainWindowController.class.getName()).log(Level.SEVERE, null, ex);\n } catch (SQLException ex) {\n Logger.getLogger(MainWindowController.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "title": "" }, { "docid": "23098b3c7702633aa552bd1a031fbbf2", "score": "0.6043153", "text": "private Connection openConnection() {\n\t\ttry {\n\t\t\t//La url de conexion no deberia estar harcodeada aca\n\t\t\treturn DriverManager.getConnection(\"jdbc:mysql://localhost:3306/carrito\",\"root\",\"root\");\n\t\t} catch (SQLException e) {\n\t\t\tthrow new RuntimeException(\"No se puede establecer una conexion\", e);\n\t\t}\n\t}", "title": "" }, { "docid": "12cff3af50e929a9c80dc8b44fd5af27", "score": "0.6036172", "text": "private ConexionBD() {\n\t\ttry {\n\t\t\tClass.forName(\"org.sqlite.JDBC\");\n\t\t} catch (ClassNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "title": "" }, { "docid": "b58904459baff8f6a0e01eaa2de8335d", "score": "0.6032164", "text": "private void connection()\n {\n try{\n Class.forName(\"com.mysql.jdbc.Driver\");\n con=(Connection) DriverManager.getConnection(\"jdbc:mysql://localhost/cms\", \"root\", \"\");\n }catch(Exception ex){\n \n }\n }", "title": "" }, { "docid": "570b871a01af93915ef39e0240ef4344", "score": "0.60238856", "text": "public abstract ConnectedDB database();", "title": "" }, { "docid": "77519e96f64c76cc0f168f26c32338b4", "score": "0.6012894", "text": "public TelaCadCidadaoComun() {\n initComponents();\n conexao = new ConnectionFactory().getConnection();\n }", "title": "" }, { "docid": "98762f4fcca69e26534122ab854c3831", "score": "0.6009556", "text": "public void conectar() {\r\n if (this.conexion == null) {\r\n try {\r\n Class.forName(\"oracle.jdbc.OracleDriver\");\r\n String BaseDeDatos = \"jdbc:oracle:thin:@localhost:1521:XE\"; \r\n this.conexion = DriverManager.getConnection(BaseDeDatos, \"CRISTIAN\", \"b0cfaef9\");\r\n } catch (ClassNotFoundException | SQLException e) {\r\n }\r\n }\r\n }", "title": "" }, { "docid": "a7c5220d1aee3ae72ca8b857d0471ae0", "score": "0.6008369", "text": "public boolean isConnected(){\n try{\n String url =\n \"jdbc:mysql://localhost:3306/library\";\n\n setCon(\n DriverManager.getConnection(\n url,\"root\", \"123456\"));\n \n }catch(Exception e){\n e.printStackTrace();\n return false;\n }\n return true;\n }", "title": "" }, { "docid": "faa9d91d330c713b3fdd19ae1a7d1ef2", "score": "0.60075194", "text": "private SimpleDriverDataSource connectToDB() {\n\n\t\tSimpleDriverDataSource dataSource = new SimpleDriverDataSource();\n\t\ttry {\n\t\t\tdataSource.setDriver(new Driver());\n\t\t\tdataSource.setUrl(\n\t\t\t\t\t\"jdbc:mysql://sb-db01.softbistro.online/declaration?useUnicode=yes&characterEncoding=UTF-8\");\n\t\t\tdataSource.setUsername(\"root\");\n\t\t\tdataSource.setPassword(\"rotrotrot\");\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn dataSource;\n\t}", "title": "" } ]
936307c63a62d854864f9448910b692e
Return file that this object expects to temporarily write data to.
[ { "docid": "3482e8e46bcb041a2ce0975aeb14a8ca", "score": "0.0", "text": "public File getAdjacentFile() {\n\t\treturn adjacentFile;\n\t}", "title": "" } ]
[ { "docid": "173588d0542c032fda558cff7f699322", "score": "0.6811504", "text": "public final String getTemporaryFile() {\n\t\treturn m_tempFile;\n\t}", "title": "" }, { "docid": "dd82b7a6e7c83f99c97a792ab577c6c6", "score": "0.6650328", "text": "public File toFile() {\n\t\treturn file;\n\t}", "title": "" }, { "docid": "086cd72b0f26349f5e62a9930aa1d000", "score": "0.6645712", "text": "public File getFile()\n {\n return mOutFile;\n }", "title": "" }, { "docid": "b2638e9608b3ec682b7a0807e1d6f193", "score": "0.6642441", "text": "private File getFile() {\r\n return new File(TESTDATA, fileName);\r\n }", "title": "" }, { "docid": "6d28575c331777b85a3d92c6c09f27df", "score": "0.6573854", "text": "private String createTemporaryFile() {\n return createTemporaryFile(new byte[0]);\n }", "title": "" }, { "docid": "dca542fea6bde0bfff340503bb633f46", "score": "0.6526069", "text": "@Override\r\n\tpublic File getFile() throws IOException {\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "fee645f0e49884e29f43bc0c1da0afbe", "score": "0.641107", "text": "public File getFile() {\n // some code goes here\n return file;\n }", "title": "" }, { "docid": "fee645f0e49884e29f43bc0c1da0afbe", "score": "0.641107", "text": "public File getFile() {\n // some code goes here\n return file;\n }", "title": "" }, { "docid": "9a3f7482505011c478af9000905ecdff", "score": "0.6360139", "text": "public File retrieveFile() {\r\n return file;\r\n }", "title": "" }, { "docid": "34d29009d07ed128032c5f92d11a4b6c", "score": "0.63273406", "text": "private File getOutputMediaFile() {\n mediaFile = getCurrentFile();\n return mediaFile;\n\n }", "title": "" }, { "docid": "bd84973216e9da282117f7f246a8ee55", "score": "0.6300037", "text": "public Object getFile() {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "350c66dac7aa2da9657e360482845f63", "score": "0.6223749", "text": "File tempFile()\n throws IOException {\n File f = File.createTempFile(\"ambry\", \".tmp\");\n f.deleteOnExit();\n return f;\n }", "title": "" }, { "docid": "9bab3a202d3741b885f0cdcf13fc7de8", "score": "0.6214128", "text": "public static File tempFile() {\n File f = null;\n try {\n f = File.createTempFile(\"kafka\", \".tmp\");\n f.deleteOnExit();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return f;\n }", "title": "" }, { "docid": "1fbb365198ec1a0d1976e384693c0d8e", "score": "0.61960584", "text": "public java.lang.String getFileToWrite() {\n java.lang.Object ref = fileToWrite_;\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 fileToWrite_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "title": "" }, { "docid": "e00d7597cfb5323ef4c5a2b06b056b59", "score": "0.6186009", "text": "protected final @NotNull File getStaleFile() {\n StringBuilder builder = new StringBuilder();\n if (getMojoExecution() != null) {\n builder.append(getMojoExecution().getExecutionId()).append('-');\n }\n builder.append(getStaleFileName());\n return new File(staleFileDirectory, builder.toString());\n }", "title": "" }, { "docid": "24036c188845eb555e86e81bbe06306e", "score": "0.61749166", "text": "public java.lang.String getFileToWrite() {\n java.lang.Object ref = fileToWrite_;\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 fileToWrite_ = s;\n return s;\n }\n }", "title": "" }, { "docid": "1efb2cb1e125d2fa874a94914dc4610b", "score": "0.6133255", "text": "public synchronized File getFile() {\n\t\treturn file;\n\t}", "title": "" }, { "docid": "eaa746e71a685679d43ceac4627dc666", "score": "0.6128787", "text": "File getDataFile() {\n\t\tif(!open){\n\t\t\tthrow new IllegalStateException(\"DataService not open\");\n\t\t}\n\t\treturn dataFile;\n\t}", "title": "" }, { "docid": "24064cca4509e058fe2025c28a4e72be", "score": "0.6115165", "text": "@Override\n public File getFile()\n {\n return file;\n }", "title": "" }, { "docid": "f89cf4259caf5f934ac280aef78dc5df", "score": "0.6053643", "text": "public File getFile()\r\n\t{\r\n\t\treturn file;\r\n\t}", "title": "" }, { "docid": "6e19aafce3e7136ae9c80837870973e6", "score": "0.60396224", "text": "java.lang.String getFileToWrite();", "title": "" }, { "docid": "8f2e3b876442911a57d39a392fecabb0", "score": "0.60272664", "text": "@Override\n \tpublic File getFile() {\n \t\treturn file;\n \t}", "title": "" }, { "docid": "9731fabfed284073f4b0f2af33680663", "score": "0.60058755", "text": "public File getTempFileDir() {\n\treturn tempFileDir;\n }", "title": "" }, { "docid": "8d9bd3ec6e0b60aab3909fe76b2949d4", "score": "0.5999206", "text": "File getOutputFile() {\n return this.outputFile;\n }", "title": "" }, { "docid": "7649c563f645f5fff30b0dc8b1729f66", "score": "0.5987637", "text": "public File getFile() {\n return file;\n }", "title": "" }, { "docid": "7649c563f645f5fff30b0dc8b1729f66", "score": "0.5987637", "text": "public File getFile() {\n return file;\n }", "title": "" }, { "docid": "b1c7cf43d7899a542ef7cfd3d88e9a6d", "score": "0.59710723", "text": "public File getFile()\n\t{\n\t\treturn file;\n\t}", "title": "" }, { "docid": "d36647168dfef7633f32de834747cc26", "score": "0.59667504", "text": "public File getFile() {\n return file;\n }", "title": "" }, { "docid": "46b54bb276d1f64df146425e7260ec6d", "score": "0.59584534", "text": "protected File createTemporaryFile() throws AmbariException {\n try {\n return File.createTempFile(\"tmp\", \".tmp\", getConfiguredTemporaryDirectory());\n } catch (IOException e) {\n String message = \"Failed to create a temporary file.\";\n LOG.error(message, e);\n throw new AmbariException(message, e);\n }\n }", "title": "" }, { "docid": "9a0d2f2775a0fbf2d12b1c4a7c5a4206", "score": "0.59412855", "text": "protected FileObject getFile() {\n return getDataObject().getPrimaryFile();\n }", "title": "" }, { "docid": "6721a3e356afc24595a52864580ca613", "score": "0.59191483", "text": "public com.google.protobuf.ByteString\n getFileToWriteBytes() {\n java.lang.Object ref = fileToWrite_;\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 fileToWrite_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "title": "" }, { "docid": "6bc90eba8503f1ab7e2ade1e385a8ed7", "score": "0.59151196", "text": "public File toFile() {\n return new File(rpmFile);\n }", "title": "" }, { "docid": "6e77446a083f5f56a0c288e223f026b3", "score": "0.59140915", "text": "public File getFile() { \n return file; \n }", "title": "" }, { "docid": "06ad38d6a68f76b681a715867eef442a", "score": "0.5906931", "text": "public File getFile() {\n\t\treturn file;\n\t}", "title": "" }, { "docid": "c087fb278074d83cea7185de76986d5b", "score": "0.5898556", "text": "public File getTempDirectory()\n {\n return m_temp;\n }", "title": "" }, { "docid": "eba768beb2b010b3be794a0ccefe1840", "score": "0.5894538", "text": "public String getFile() {\n return file;\n }", "title": "" }, { "docid": "3c322a259fc7ca391534cad505fff39f", "score": "0.5879528", "text": "public interface TempFile {\n void delete() throws Exception;\n\n String getName();\n\n OutputStream open() throws Exception;\n }", "title": "" }, { "docid": "f9eaf00a8ee1a00f76d6f55326ea11f0", "score": "0.58789563", "text": "File getOutputFile();", "title": "" }, { "docid": "570fcbe07ea71702b63a602fabf8f2d7", "score": "0.58770543", "text": "public File sendLog() {\n try {\n fileLog = new File(getIntent().getStringExtra(\"deviceInfo\"));\n return fileLog;\n }\n catch (Exception e) {\n return null;\n }\n }", "title": "" }, { "docid": "704c277ee1af437f38ca74b7e9b3ac90", "score": "0.5870899", "text": "public String getFile() {\n return file;\n }", "title": "" }, { "docid": "7855702b1d220032b80922f98c1e9c75", "score": "0.5865432", "text": "public StreamedContent getFile() {\r\n return file;\r\n }", "title": "" }, { "docid": "2dc9d0b254fac7e51c14e456004186e7", "score": "0.5865397", "text": "public com.google.protobuf.ByteString\n getFileToWriteBytes() {\n java.lang.Object ref = fileToWrite_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n fileToWrite_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "title": "" }, { "docid": "9c335d70656ff3e1a91dd1a8d62c2e64", "score": "0.58653235", "text": "PSPurgableTempFile getResultFile() throws IOException;", "title": "" }, { "docid": "4aac1b07f912d57d241c6201a56145ea", "score": "0.5860801", "text": "public File getOutputFile() {\r\n\t\t\treturn outputFile;\r\n\t\t}", "title": "" }, { "docid": "cc9f7bb41ccd2c809756dc5a549e4ad5", "score": "0.5856812", "text": "protected File getConfiguredTemporaryDirectory() throws IOException {\n String tempDirectoryPath = configuration.getServerTempDir();\n\n if (StringUtils.isEmpty(tempDirectoryPath)) {\n tempDirectoryPath = System.getProperty(\"java.io.tmpdir\");\n }\n\n if (tempDirectoryPath == null) {\n throw new IOException(\"The System property 'java.io.tmpdir' does not specify a temporary directory\");\n }\n\n return new File(tempDirectoryPath);\n }", "title": "" }, { "docid": "266907faa39e41429a1a57feb8986fe6", "score": "0.58451426", "text": "@Override\n\tpublic File getFile() {\n\t\t// TODO Auto-generated method stub\n\t\treturn null;\n\t}", "title": "" }, { "docid": "197309c54028ddc06b98e62517806522", "score": "0.58376604", "text": "@SuppressWarnings(\"deprecation\")\n\tpublic File getFile(){\n\t\tif(file != null){\n\t\t\treturn file;\n\t\t}else{\n\t\t\treturn new File(main.getDataFolder() + File.separator + \"players\", Bukkit.getOfflinePlayer(player).getUniqueId() + \".yml\");\n\t\t}\n\t}", "title": "" }, { "docid": "891510483b7556b59df321ab533d6ea6", "score": "0.58329177", "text": "public File getTmpDir() {\n return tmpDir;\n }", "title": "" }, { "docid": "96a301b6a95126dfdc8533905b3b61b7", "score": "0.5815832", "text": "public String getFile() {\n\t\treturn file;\n\t}", "title": "" }, { "docid": "b2630bb2f56eced97946ae5afcd71801", "score": "0.58148336", "text": "public File prepareRandomNamedTempFile() {\n\n\treturn prepareRandomNamedTempFile(\"\");\n }", "title": "" }, { "docid": "ebea718ff01f3482ada8d131b128f5ca", "score": "0.5775145", "text": "static public String saveData(){\n\t\tString file = null;\n\t\tfile = savefile();\n\t\treturn file;\n\t}", "title": "" }, { "docid": "2f34303e05a1d0a32cef4439bd2de384", "score": "0.57724965", "text": "public File getOutFile() {\n return outFile;\n }", "title": "" }, { "docid": "db73be802a9df871da9f0a542bf9db92", "score": "0.5750223", "text": "public File getFile(){\n return this.file;\n }", "title": "" }, { "docid": "371a72a5310eb9331b568dd9e1f46cc1", "score": "0.57466036", "text": "@NonNull\n public FileLogger getFile() {\n return _fileLogger;\n }", "title": "" }, { "docid": "ec93a02195ce03cd04fc404f2b683670", "score": "0.57308733", "text": "public final Object getFile() {\n try {\n \tif(hasListeners()) {\n \t\teventTrigger().triggerAttribute(Stage.BEGIN, this, \"file\", Optional.empty());\n \t}\n \tAJoinPoint result = this.getFileImpl();\n \tif(hasListeners()) {\n \t\teventTrigger().triggerAttribute(Stage.END, this, \"file\", Optional.ofNullable(result));\n \t}\n \treturn result!=null?result:getUndefinedValue();\n } catch(Exception e) {\n \tthrow new AttributeException(get_class(), \"file\", e);\n }\n }", "title": "" }, { "docid": "33a57c0fa2b7a4f49f0e83c4194c0d7b", "score": "0.5720628", "text": "public File getPersonFilePath() {\n Preferences prefs = Preferences.userNodeForPackage(Main.class);\n String filePath = prefs.get(\"filePath\", null);\n if (filePath != null) {\n return new File(filePath);\n } else {\n return null;\n }\n }", "title": "" }, { "docid": "493bbbe42427843d6b38273ceaa71dc6", "score": "0.569393", "text": "public File getFile() {\n return m_file;\n }", "title": "" }, { "docid": "e320c3d6f484d9cde65126b9f078f356", "score": "0.56853646", "text": "public File getPersonFilePath() {\n\t\tPreferences prefs = Preferences.userNodeForPackage(MainApp.class);\n\t\tString filePath = prefs.get(\"filePath\", null);\n\t\tif (filePath != null) {\n\t\t\treturn new File(filePath);\n\t\t} else {\n\t\t\treturn null;\n\t\t}\n\t}", "title": "" }, { "docid": "4395a06745a65881b068ad2b05a58e4e", "score": "0.5662584", "text": "public File getFile() {\n return this.file;\n }", "title": "" }, { "docid": "65158ed5649f003fe7852476eff124be", "score": "0.5653823", "text": "public File databaseFile() {\n if (newDatabaseFile().exists()) {\n return newDatabaseFile();\n } else if (currentDatabaseFile().exists()) {\n return currentDatabaseFile();\n } else {\n return null;\n }\n }", "title": "" }, { "docid": "66729e95c058727342aa587609b4b094", "score": "0.56528586", "text": "public File getPersonFilePath() {\r\n \r\n return io.getFilePath();\r\n }", "title": "" }, { "docid": "387408c6035b9bc2c5baa95b98f171ea", "score": "0.56514555", "text": "@Override\r\n public String getOutputFile() {\n return null;\r\n }", "title": "" }, { "docid": "dde7282a1f6cebee47415d93f8049770", "score": "0.5649066", "text": "public String toFile() {\n if (isDone) {\n return \"T-1-\" + name;\n } else {\n return \"T-0-\" + name;\n }\n }", "title": "" }, { "docid": "a087e926642b432457333cc63b9616f0", "score": "0.5640043", "text": "public File getFile() {\n\t\treturn this.file;\n\t}", "title": "" }, { "docid": "35d5612dbe902ad45167d449b9fde93c", "score": "0.5635366", "text": "public File getTheFile() {\n\t\treturn this.theFile;\n\t}", "title": "" }, { "docid": "c68baba36779ff111a46f0a2f0952e8e", "score": "0.56348467", "text": "com.google.protobuf.ByteString\n getFileToWriteBytes();", "title": "" }, { "docid": "63872cb6f0389f94719ca0d163efd603", "score": "0.56298333", "text": "public final IAbstractFile getFile() {\n return mFile;\n }", "title": "" }, { "docid": "fb2fb2ca0da914ae49d6fc54ef0bfbf6", "score": "0.5623129", "text": "protected PrintWriter getWriter() {\n\t\tif (writer == null) {\n\t\t\ttry {\n\t\t\t\twriter = new PrintWriter(filepath, \"UTF-8\");\n\t\t\t} catch (Exception e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\treturn writer;\n\t}", "title": "" }, { "docid": "8ed213b599fe9d0d2952d6e8da46da06", "score": "0.5613848", "text": "public Path produceFile() throws IOException {\n\n Set<PosixFilePermission> perms = PosixFilePermissions.fromString(\"rwxr-x---\");\n FileAttribute<Set<PosixFilePermission>> attr = PosixFilePermissions.asFileAttribute(perms);\n\n Path directory = FileSystems.getDefault().getPath(\"store\");\n\n if (Files.notExists(directory))\n Files.createDirectory(directory, attr);\n\n Path file = directory.resolve(\"myfile.txt\");\n\n if (Files.notExists(file))\n Files.createFile(file, attr);\n\n return file;\n }", "title": "" }, { "docid": "30c827635ee4aa718a394f7a4792be7f", "score": "0.55992186", "text": "@Nullable\n File getLastSimTeachFile() throws IOException {\n File f = getLocalLastSimTeachFile();\n if (null != f) {\n return f;\n } else {\n return Supervisor.getStaticLastSimTeachFile(null);\n }\n }", "title": "" }, { "docid": "13b2f9b51dde8ea465d96a48bdafce55", "score": "0.559913", "text": "private File createTempFile()\n\t\t{\n\t\t\tFile tempFile = new File(Environment.getExternalStorageDirectory(),\"aditi.raw\");\n\t\t\treturn tempFile;\n\t\t}", "title": "" }, { "docid": "62941cf77afb03b54a3a65dbfb0d6a0f", "score": "0.55984616", "text": "File getFile();", "title": "" }, { "docid": "62941cf77afb03b54a3a65dbfb0d6a0f", "score": "0.55984616", "text": "File getFile();", "title": "" }, { "docid": "62941cf77afb03b54a3a65dbfb0d6a0f", "score": "0.55984616", "text": "File getFile();", "title": "" }, { "docid": "ec27c64c921ad4ff303947f8fb4c9208", "score": "0.5593447", "text": "protected MlsxEntry getFile() {\n return file;\n }", "title": "" }, { "docid": "a016ce4c8e414982ad28a440ca66f84c", "score": "0.5587939", "text": "public java.lang.String getTmp_infile() {\n return tmp_infile;\n }", "title": "" }, { "docid": "a016ce4c8e414982ad28a440ca66f84c", "score": "0.5587939", "text": "public java.lang.String getTmp_infile() {\n return tmp_infile;\n }", "title": "" }, { "docid": "6eeb875bfed1a61a457954332dd177de", "score": "0.5583505", "text": "@Override\n public File getSaveFile() {\n return saveFile;\n }", "title": "" }, { "docid": "fc2006d95e73d49953af9edbfb284630", "score": "0.55820924", "text": "public String getCurrentFile()\r\n {\r\n return currentFile;\r\n }", "title": "" }, { "docid": "38e87ad6dbfc6236d0c1148d44420096", "score": "0.55773455", "text": "private IFile getFile() {\n final IEditorInput input = getEditorInput();\n if (input instanceof FileEditorInput)\n return ((FileEditorInput) input).getFile();\n return null;\n }", "title": "" }, { "docid": "aee030bf31f7368f042bfbde0bf387e3", "score": "0.55656946", "text": "public File getResult() {\n return result;\n }", "title": "" }, { "docid": "eb7f621a91db72f0e2047ad427390a8a", "score": "0.5555333", "text": "public File getCurrentFile() {\n if (!mFileActive)\n return null;\n File file = mFileList.get(0);\n if (hasRootDirectory())\n file = getAbsoluteFile(file);\n return file;\n }", "title": "" }, { "docid": "cc327d9759ec7a8757eb38dcf3e9ddcc", "score": "0.5543656", "text": "public String getTemporaryPath()\r\n {\r\n\treturn server.getTemporaryPath();\r\n }", "title": "" }, { "docid": "73d831cac00b60e12818b5e2f5fdc51f", "score": "0.55371696", "text": "public File getStudentFilePath() {\r\n Preferences prefs = Preferences.userNodeForPackage(Main.class);\r\n String filePath = prefs.get(\"filePath\", null);\r\n if (filePath != null) {\r\n return new File(filePath);\r\n } else {\r\n return null;\r\n }\r\n }", "title": "" }, { "docid": "cab672b860b836c3230d6323c625f439", "score": "0.553644", "text": "@Test\n public void testFileReadWrite() {\n final byte[] contents = Long.toString(System.currentTimeMillis()).getBytes();\n ByteArrayOutputStream input = new ByteArrayOutputStream();\n\n String filename = generateTemporaryFilename();\n FileEntity writtenFile = provider.writeFile(credentials, filename, contents);\n\n Assertions.assertThat(writtenFile).isNotNull();\n Assertions.assertThat(writtenFile.modificationDate).isNotNull();\n Assertions.assertThat(writtenFile.humanReadableSize).isNotNull();\n Assertions.assertThat(writtenFile.size).isEqualTo(contents.length);\n\n provider.readFile(credentials, filename, input);\n Assertions.assertThat(input.toByteArray()).isEqualTo(contents);\n }", "title": "" }, { "docid": "f825fe84c97b304041b3db1de100fef4", "score": "0.552482", "text": "@Override\n public File getFile() {\n String url = image.get()==null ? null : image.get().impl_getUrl();\n try {\n return url==null ? null : new File(URI.create(url));\n } catch(IllegalArgumentException e) {\n return null;\n }\n }", "title": "" }, { "docid": "631981b6771d6d1ad6a3374b011c2d77", "score": "0.552386", "text": "public OutputStream getOutputStream() throws IOException \n {\n final File write_file = new File(System.getProperty(\"user.dir\")+\n System.getProperty(\"file.separator\")+\n getName());\n\n if(write_file.exists())\n {\n int n = JOptionPane.showConfirmDialog(null,\n \"The file :\\n\"+System.getProperty(\"user.dir\")+\n System.getProperty(\"file.separator\")+\n getName()+\n \"\\nalready exists on the local disk.\\nOverwrite?\",\n \"Overwrite \"+getName(),\n JOptionPane.YES_NO_OPTION);\n if(n == JOptionPane.NO_OPTION)\n return null;\n }\n\n final FileOutputStream file_output_stream =\n new FileOutputStream(write_file);\n\n if(write_file.getName().endsWith(\".gz\")) \n return new java.util.zip.GZIPOutputStream(file_output_stream);\n else\n return file_output_stream;\n }", "title": "" }, { "docid": "240b7b56662c8852bac1a0731084efec", "score": "0.55083835", "text": "public File toFile() {\n Map<String, Serializable> parametersMap = getConnectionParams();\n URL _url = (URL)parametersMap.get( DXFDataStoreFactory.PARAM_URL.key );\n return URLUtils.urlToFile( _url );\n }", "title": "" }, { "docid": "23c015674d52258de6b83a96631de96a", "score": "0.54864806", "text": "public FileSystem getFileSystem() {\r\n return fileSystem;\r\n }", "title": "" }, { "docid": "21f8747a6eb34cdc35471c3f04cd811c", "score": "0.5483263", "text": "public final File getWorkingDirectory()\n {\n return new File(directory);\n }", "title": "" }, { "docid": "8e4759896093be76f5ab95c2d6c199af", "score": "0.5481194", "text": "@OutputFile\n public RegularFileProperty getOutputFile() {\n return outputFile;\n }", "title": "" }, { "docid": "93057ab73b608068fde14b9b35be3a2e", "score": "0.54758984", "text": "@OutputFile\n public File getResultFile() {\n return resultFile;\n }", "title": "" }, { "docid": "84b3ba7b2e3c2694ba09a9f0f81d1433", "score": "0.54662955", "text": "static File saveTemporaryConfigFile( final String configData, String baseName ) throws IOException {\r\n\t\tif (baseName==null) {\r\n\t\t\tbaseName = \"temporaryConfig\";\r\n\t\t}\r\n\t\t/** Make a temporary file using the JVM file utilities */\r\n\t\tFile tmpFile = File.createTempFile(baseName, \".xml\");\r\n\t\ttmpFile.deleteOnExit(); /** Ensure the file is deleted when this jvm exits. */\r\n\t\tWriter ow = null;\r\n\t\t/** Ensure that the output writer is closed even on errors. */\r\n\t\ttry {\r\n\t\t\tow = new OutputStreamWriter( new FileOutputStream( tmpFile ), \"utf-8\");\r\n\t\t\tow.write( configData );\r\n\t\t\tow.close();\r\n\t\t\tow = null;\r\n\t\t} finally {\r\n\t\t\tif (ow!=null) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tow.close();\r\n\t\t\t\t} catch (IOException e) {\r\n\t\t\t\t// \tignore, as we are already handling the real exception\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn tmpFile;\r\n\t\t\r\n\t}", "title": "" }, { "docid": "c618c36bcc9a09fcf8b14bc091808619", "score": "0.54585356", "text": "public String getFile() {\n return getStringProperty(\"file\");\n }", "title": "" }, { "docid": "981e0848b869b53eecac66687a2cf3fa", "score": "0.54509866", "text": "static public String readData(){\n\t\tString file = null;\n\t\tfile = getfile();\n\t\treturn file;\n\t}", "title": "" }, { "docid": "0c93bbd5c2e9ad9f1dde0cb7a93631ab", "score": "0.54479915", "text": "public File getTimingFile() throws IOException {\n\t\tFile file = new File(targetDirectory + \"align.data.json\");\n\t\tFileWriter writer = new FileWriter(file);\n\t\tGson gson = new Gson();\n\t\twriter.write(gson.toJson(json));\n\t\twriter.close();\n\t\treturn file;\n\t}", "title": "" }, { "docid": "88f2f42f3d14a0e8be1c0095bb44209a", "score": "0.5445883", "text": "@Override\n public Path getUserSavedFilePath() {\n return userStorage.getUserSavedFilePath();\n }", "title": "" }, { "docid": "1b932218f462a9d939ad13ff5db7d6f3", "score": "0.5443591", "text": "static File m155016c() {\n File file;\n try {\n File a = m155012a(System.getProperty(\"org.conscrypt.tmpdir\"));\n if (a != null) {\n return a;\n }\n File a2 = m155012a(System.getProperty(\"java.io.tmpdir\"));\n if (a2 != null) {\n return a2;\n }\n if (m155013a()) {\n File a3 = m155012a(System.getenv(\"TEMP\"));\n if (a3 != null) {\n return a3;\n }\n String str = System.getenv(\"USERPROFILE\");\n if (str != null) {\n File a4 = m155012a(str + \"\\\\AppData\\\\Local\\\\Temp\");\n if (a4 != null) {\n return a4;\n }\n File a5 = m155012a(str + \"\\\\Local Settings\\\\Temp\");\n if (a5 != null) {\n return a5;\n }\n }\n } else {\n File a6 = m155012a(System.getenv(\"TMPDIR\"));\n if (a6 != null) {\n return a6;\n }\n }\n if (m155013a()) {\n file = new File(\"C:\\\\Windows\\\\Temp\");\n } else {\n file = new File(\"/tmp\");\n }\n f114921c.log(Level.WARNING, \"Failed to get the temporary directory; falling back to: {0}\", file);\n return file;\n } catch (Exception unused) {\n }\n }", "title": "" }, { "docid": "9897fb7376895a50233822b39f500a87", "score": "0.54369986", "text": "@Override // javax.inject.Provider\n public FileStorageHelper get() {\n return (FileStorageHelper) Preconditions.checkNotNullFromComponent(this.a.fileStorageHelper());\n }", "title": "" }, { "docid": "bbe0f67b3546a57cc0d3a02d4d72f9f5", "score": "0.5429252", "text": "public int getFile() {\n return file;\n }", "title": "" }, { "docid": "e2246902d226c6915d1f269e70e71b22", "score": "0.5423242", "text": "private File determineTmpFile(String name) {\r\n return new File(System.getProperty(\"java.io.tmpdir\"), name);\r\n }", "title": "" } ]
765a352a91c06b7b10f790d56c497069
Scales an image. The image is increased by dx times in the positive X direction, and by dy times in the positive Y direction. If |scale factor| is greater than 1, the image is expanded, and if |scale factor| is less than 1, but greater than zero, the image is shrunk. Naturally, scale factors of 1 will not change the image, and scale factors of 0 will make it disappear. Negative values for both are permitted; this would have the effect of reflecting, then scaling by the absolute value.
[ { "docid": "0cb6779cbb437aad123a8f8afc51f891", "score": "0.6894093", "text": "public ImageOp scale(double dx, double dy)\n {\n checkParameters(dx, dy);\n double[][] scaleAffine = getNeutralArray();\n scaleAffine[0][0] = dx;\n scaleAffine[1][1] = dy;\n return multiplyMatrix(scaleAffine);\n }", "title": "" } ]
[ { "docid": "a2f0cd0defaadde31b90cd29ac1ac8ea", "score": "0.6848777", "text": "public void scale(double factor) {\n int width = (int)(factor * this.getWidth()); // get and scale the width\n int height = (int)(factor * this.getHeight());\n this.setSize(width, height);\n }", "title": "" }, { "docid": "4946a6dba8a2f7f3531d5882bafc145a", "score": "0.66870195", "text": "private BufferedImage scale(double scale, BufferedImage srcImg) {\n\t\tif (scale == 1) {\n\t\t\treturn srcImg;\n\t\t}\n\t\tAffineTransformOp op = new AffineTransformOp(AffineTransform\n\t\t\t\t.getScaleInstance(scale, scale), null);\n\t\treturn op.filter(srcImg, null);\n\t}", "title": "" }, { "docid": "dbbfe795f9b2997384aa2173b867e750", "score": "0.6658163", "text": "public static Image scale(final Image src, final double factorWidth, final double factorHeight, final boolean useAntialiasing) {\r\n final int width = (int) (src.getWidth() * factorWidth);\r\n final int height = (int) (src.getHeight() * factorHeight);\r\n\r\n return scale(src, width <= 0 ? 1 : width, height <= 0 ? 1 : height, useAntialiasing);\r\n }", "title": "" }, { "docid": "8ae497d7c6877ddd79c0c79be8edcf39", "score": "0.6549459", "text": "@Override\n\tpublic void scale(int factor)\n\t{\n\t\tsuper.scale(factor);\n\t\tthis.z *= factor;\n\t}", "title": "" }, { "docid": "e80b76e212c1dc2cf4aeb1981bb4f189", "score": "0.6533241", "text": "private static BufferedImage scale(BufferedImage image, double xFactor, double yFactor) {\n\t\tAffineTransform scaleTransform = new AffineTransform();\n\t\tscaleTransform.scale(xFactor, yFactor);\n\n\t\tBufferedImage result = new BufferedImage((int) (image.getWidth() * xFactor), (int) (image.getHeight() * yFactor), BufferedImage.TYPE_INT_RGB);\n\n\t\tGraphics2D g2 = (Graphics2D) result.getGraphics();\n\n\t\tg2.setColor(Color.WHITE);\n\t\tg2.fillRect(0, 0, result.getWidth(), result.getHeight());\n\t\t\n\t\tg2.drawImage(image, scaleTransform, null);\n\n\t\treturn result;\n\t}", "title": "" }, { "docid": "de1070186d0bc3f41fa5937318498e69", "score": "0.6503548", "text": "public void scale(double dx, double dy) {\n scale((float)dx, (float)dy);\n }", "title": "" }, { "docid": "15b467b9cb127fd5d6fb969d6bdfac6a", "score": "0.64592445", "text": "public void scale(float factor) {\n\t m00 *= factor;\n\t m01 *= factor;\n\t m02 *= factor;\n\t m03 *= factor;\n\t m10 *= factor;\n\t m11 *= factor;\n\t m12 *= factor;\n\t m13 *= factor;\n\t m20 *= factor;\n\t m21 *= factor;\n\t m22 *= factor;\n\t m23 *= factor;\n\t m30 *= factor;\n\t m31 *= factor;\n\t m32 *= factor;\n\t m33 *= factor;\n\t}", "title": "" }, { "docid": "5dad33569e70512a7ac75f65918ab056", "score": "0.6301895", "text": "public ImageOperation scale(double xScale, double yScale) {\n\t\treturn scale(xScale, yScale, true);\n\t}", "title": "" }, { "docid": "101123b2b02264d46aad30cec617d4f3", "score": "0.62532765", "text": "public void scale(double factor, double massScalePower, boolean scaleInertia)\n {\n centerOfMassOffset.scale(factor);\n\n // Mass scales with factor^massScalePower. massScalePower is 3 when considering constant density\n\n if (scaleInertia)\n {\n mass = Math.pow(factor, massScalePower) * mass;\n // The components of the inertia matrix are defined with int(r^2 dm). So they scale factor ^ (2 + massScalePower)\n double inertiaScale = Math.pow(factor, massScalePower + 2);\n CommonOps_DDRM.scale(inertiaScale, momentOfInertia);\n computePrincipalMomentsOfInertia();\n }\n\n if (linkGraphics != null)\n {\n linkGraphics.preScale(factor);\n }\n\n if (collisionMeshes != null)\n {\n for (int i = 0; i < collisionMeshes.size(); i++)\n {\n collisionMeshes.get(i).scale(factor);\n }\n }\n }", "title": "" }, { "docid": "614e27d1979648ba6cf8a7ea3bba56f0", "score": "0.6218312", "text": "public void scale(float scale)\n {\n scaleX = scaleY = scaleZ = scale;\n }", "title": "" }, { "docid": "50ee0f2a2306419bfe09b5809b089f79", "score": "0.616237", "text": "void scale(double sx, double sy);", "title": "" }, { "docid": "77eace4a7729a7c6c9eba7c4c3952cb3", "score": "0.6152854", "text": "public void setScaleFactor(int factor) {\n\t\tthis.scaling = new Dimension( factor, true );\n\t}", "title": "" }, { "docid": "834259f340554c9c56fb7daa1d8fe223", "score": "0.612896", "text": "public void imageZoomed(double newScaleFactor);", "title": "" }, { "docid": "a3cb43c30bb8e6c94f0742d7e0d4d594", "score": "0.6076445", "text": "public void scale(float sx, float sy) {\n/* 295 */ Matrix m = getScaleInstance(sx, sy);\n/* 296 */ concatenate(m);\n/* */ }", "title": "" }, { "docid": "dddc8cb7e5beff47d42a92c64897f9ef", "score": "0.60489166", "text": "@Override\n public void zoom(double scale) {\n if (scale != 0.0) {\n scale = 1 / Math.abs(scale);\n } else {\n scale = 1.0;\n }\n\n wx -= (scale - 1) * wwidth / 2.0;\n wy -= (scale - 1) * wheight / 2.0;\n\n wwidth *= scale;\n wheight *= scale;\n }", "title": "" }, { "docid": "aaf0d43aa4ceab4e984370ab83328bef", "score": "0.6040957", "text": "public void scaleTo(double scale_factor)\r\n\t{\r\n\t\t\r\n\t\tFont fnt = dg.getFont();\r\n\t\tint pre_size = fnt.getSize();\r\n\t\tint new_size = (int) (pre_size*scale_factor);\r\n\t\tdg.setFont(new Font(fnt.getFontName(),fnt.getStyle(),new_size));\r\n\t}", "title": "" }, { "docid": "76c36bd097c015c3450ff70b174300cf", "score": "0.6005281", "text": "public void setScale ( int scale ) {\r\n\t\ttransform_panel.setScale(scale);\r\n\t}", "title": "" }, { "docid": "f06a20b909bfbe975158167a43225417", "score": "0.59905684", "text": "public Image setScale(int scale){\n options.put(\"scale\", \"\" + scale);\n return this;\n }", "title": "" }, { "docid": "786d0e3f3423ff550a8ed8171e05e888", "score": "0.5964408", "text": "public void scale(int s);", "title": "" }, { "docid": "fb7137da5dfe8672b686fb04e15363a3", "score": "0.5958525", "text": "public void scale(float sx, float sy) {\n transform.scale(sx, sy, 1);\n onTransformChanged();\n }", "title": "" }, { "docid": "f5ebfa5f09ee0f5ace408d8e52396735", "score": "0.59437054", "text": "public void scale(float s)\n/* */ {\n/* 1054 */ checkMatrix(2);\n/* 1055 */ this.matrix.scale(s);\n/* */ }", "title": "" }, { "docid": "0079843ff4b37853feb21ea0932c28b6", "score": "0.5938188", "text": "public ImageOp scale(double sf)\n {\n return scale(sf, sf);\n }", "title": "" }, { "docid": "c14b1c5ed19ba7136ccc6cd98aec279e", "score": "0.5897765", "text": "static RenderedOp scaleImage(RenderedOp inImage, Scale scale,\n Interpolation interpolation,\n ReductionFactor rf) {\n RenderedOp scaledImage = inImage;\n if (!scale.isNoOp()) {\n final int sourceWidth = inImage.getWidth();\n final int sourceHeight = inImage.getHeight();\n final Dimension scaledSize = scale.getResultingSize(\n new Dimension(sourceWidth, sourceHeight));\n\n double xScale = scaledSize.width / (double) sourceWidth;\n double yScale = scaledSize.height / (double) sourceHeight;\n if (scale.getPercent() != null) {\n xScale = scale.getPercent() / rf.getScale();\n yScale = scale.getPercent() / rf.getScale();\n }\n\n logger.debug(\"scaleImage(): width: {}%; height: {}%\",\n xScale * 100, yScale * 100);\n final ParameterBlock pb = new ParameterBlock();\n pb.addSource(inImage);\n pb.add((float) xScale);\n pb.add((float) yScale);\n pb.add(0.0f);\n pb.add(0.0f);\n pb.add(interpolation);\n scaledImage = JAI.create(\"scale\", pb);\n }\n return scaledImage;\n }", "title": "" }, { "docid": "4569d5404f3419c765ef45fac0e51836", "score": "0.58960503", "text": "BufferedImage scaleImage(BufferedImage img, float targetWidth, float targetHeight, boolean allowUpscaling);", "title": "" }, { "docid": "69bd8b670297709e1e785efa78365469", "score": "0.5877674", "text": "void setScale(double sx, double sy);", "title": "" }, { "docid": "92eba191c44c4ba55fa7aa9510cd0978", "score": "0.5876452", "text": "public void scale(float x, float y)\n\t{\n//\t\tVector3f scale = new Vector3f(x,y,0);\n//\t\ttransform.scale(scale);\n//\t\t\n\t\t\n\t\tdeltaScale.x *= x;\n\t\tdeltaScale.y *= y;\n\t}", "title": "" }, { "docid": "fdf17ca81636bf80e128ef853fcda86d", "score": "0.587538", "text": "public void setScaleFactor(double scaleFactor) {\r\n \tthis.scaleFactor = scaleFactor;\r\n }", "title": "" }, { "docid": "3cb52cff1b3c59a5fedfcb4cae905481", "score": "0.58744717", "text": "public void scale(double scaleAmt)\r\n {\r\n E3DVector3F positionHold = this.position; //hold onto current position\r\n setPosition(new E3DVector3F(0.0, 0.0, 0.0)); //have to put it back to origin to scale\r\n \r\n for(int i=0; i<6; i++)\r\n quads[i].scale(scaleAmt);\r\n\r\n translate(positionHold); //put it back where it should be\r\n\r\n this.scale *= scaleAmt;\r\n }", "title": "" }, { "docid": "d4179fcaa27844816753447ae9d4fabf", "score": "0.5874453", "text": "public void scale() {\r\n\t\t\tint deviceWidth = Gdx.graphics.getWidth();\r\n\t\t\tint deviceHeight = Gdx.graphics.getHeight();\r\n\t\t\tsetSize(deviceWidth, deviceHeight / 20);\r\n\t\t}", "title": "" }, { "docid": "6e1da96f98d6d151426e81b6dcce66c7", "score": "0.58570105", "text": "public void scale(double sx, double sy) {\n\t\tthis.x *= sx;\n\t\tthis.y *= sy;\n\t}", "title": "" }, { "docid": "ae509e629b19307babc6790b374ecf4c", "score": "0.58541864", "text": "float scale(int width, int height);", "title": "" }, { "docid": "b589552001902b1643ffed078c4671bc", "score": "0.5849943", "text": "public ImageOperation resize(double factor) {\n\t\treturn resize((int) (factor * image.getWidth()),\n\t\t\t\t(int) (factor * image.getHeight()));\n\t}", "title": "" }, { "docid": "1c705d3138849a63c09f5995da6e9dd9", "score": "0.584096", "text": "public void setScale(float scale)\n {\n this.scale = scale;\n }", "title": "" }, { "docid": "e4f957359186a80b4aec610af6cc1d90", "score": "0.5838443", "text": "public abstract void setScale( double scale );", "title": "" }, { "docid": "6d2b3370c64c89f4601d8468ac1041e6", "score": "0.5834596", "text": "private void setScale(double scale) {\n this.scale = scale;\n repaint();\n }", "title": "" }, { "docid": "ca5c4c55c4fdbb51ed0cb78db4ff9539", "score": "0.58179873", "text": "public void scaleShape(float factor) {\r\n\t\tradius = (int)(factor * radius);\r\n\t}", "title": "" }, { "docid": "4b622aef02856e64d6a75bfb1a948ff7", "score": "0.58144885", "text": "public void scale(double xscale, double d) {\n\t \n }", "title": "" }, { "docid": "ca8cc2182d858d545f5737512e52b6c0", "score": "0.580081", "text": "public void scaling(double scale) {\n radius *= scale;\n }", "title": "" }, { "docid": "72551fdf1c25909abda1c612ab3fb724", "score": "0.57949907", "text": "public void scale(double x, double y) {\n\t\tm_canvas.scale(x, y);\r\n\t}", "title": "" }, { "docid": "2f2ecb19f8f1995859377e227e9ace90", "score": "0.5790029", "text": "public void scale(Point3 scale) {\r\n\t\tx *= scale.x;\r\n\t\ty *= scale.y;\r\n\t\tz *= scale.z;\r\n\t}", "title": "" }, { "docid": "462b8c264ee019b5c5afcbf782bb61f7", "score": "0.57751316", "text": "public void scale(float s);", "title": "" }, { "docid": "40c3a36851e415cd7099f82caf11f733", "score": "0.5772589", "text": "public void setScaleFactor(float scale_factor)\r\n {\r\n \r\n setScaleFactor_0(nativeObj, scale_factor);\r\n \r\n return;\r\n }", "title": "" }, { "docid": "3063e9ee455ad9fae3849982a2ede32a", "score": "0.577031", "text": "public void postScale(float sx, float sy) {\n Matrix matrix = new Matrix();\n matrix.setValues(new float[] {sx, 0, 0, 0, sy, 0, 0, 0, 1});\n Matrix current = new Matrix();\n current.setValues(MATRIX);\n matrix.preConcat(current);\n set(matrix);\n }", "title": "" }, { "docid": "74f7c47017fda81ff2234804e4a02b49", "score": "0.57630426", "text": "public void setScale(Float scale);", "title": "" }, { "docid": "e132ea1debb8cc97a4ffcb82acb623ba", "score": "0.5760991", "text": "public void calScale()\n {\n current = jf.getSize();\n double c = current.getHeight();\n scale = (c / d.height);\n }", "title": "" }, { "docid": "8ab9e6379c405c20c541d0ff68d0305c", "score": "0.57294947", "text": "public void setScale(float scale)\n\t{\n\t\tthis.scale = scale;\n\t}", "title": "" }, { "docid": "17180b367a1390f1c4c16e2df77e3d07", "score": "0.5720712", "text": "public RecipeIngredient scale(double scaleFactor)\r\n {\r\n return RecipeIngredient.scaleRecipeIngredient(this, scaleFactor);\r\n }", "title": "" }, { "docid": "79a78685837fc63f873aa1b9a922ca66", "score": "0.5689068", "text": "void scale(float xf, float yf, float zf) {\n xx *= xf;\n xy *= xf;\n xz *= xf;\n xo *= xf;\n yx *= yf;\n yy *= yf;\n yz *= yf;\n yo *= yf;\n zx *= zf;\n zy *= zf;\n zz *= zf;\n zo *= zf;\n }", "title": "" }, { "docid": "b25179b688a023847048468adfb9a5f6", "score": "0.5684322", "text": "private PlanarImage scaleGrid(RenderedImage img, float xScale, float yScale) {\n\n PlanarImage scaledImg;\n\n ParameterBlockJAI param = new ParameterBlockJAI(\"Scale\");\n param.addSource(img);\n param.setParameter(\"xScale\", xScale);\n param.setParameter(\"yScale\", yScale);\n Interpolation interpol = Interpolation\n .getInstance(Interpolation.INTERP_BICUBIC_2);\n RenderingHints hint = new RenderingHints(JAI.KEY_BORDER_EXTENDER,\n BorderExtender.createInstance(BorderExtender.BORDER_COPY));\n\n param.setParameter(\"interpolation\", interpol);\n\n scaledImg = JAI.create(\"Scale\", param, hint).getRendering();\n\n return scaledImg;\n }", "title": "" }, { "docid": "aaa619fff8bd80ff0effe389397390ca", "score": "0.5670808", "text": "public void setScale(double scale) {\n\t\tthis.scale = scale;\n\t}", "title": "" }, { "docid": "16a802cbe6949736d3e2199ea108f201", "score": "0.5665805", "text": "public void scale(float x, float y, float z)\n/* */ {\n/* 1078 */ checkMatrix(3);\n/* 1079 */ this.matrix.scale(x, y, z);\n/* */ }", "title": "" }, { "docid": "e6bbb9faaa1bb48479b17336fffa827c", "score": "0.5661307", "text": "public static void scale(float scale, float[] dst, float[]src) {\n dst[0] = scale*src[0];\n dst[1] = scale*src[1];\n }", "title": "" }, { "docid": "1f8f6f7e1bab9c4023747f7e9573c89d", "score": "0.5653161", "text": "public Actor setScale(double sx, double sy) {\n this.scaleX=sx;\n this.scaleY=sy;\n this.dirty = true;\n return this;\n }", "title": "" }, { "docid": "7d6c4f52bd12d88cbd686fef21eef9f9", "score": "0.5638324", "text": "public void scale (float scaleX, float scaleY, float scaleZ) {\r\n \t\ttransform.scale(scaleX, scaleY, scaleZ);\r\n \t\tmatrixDirty = true;\r\n \t}", "title": "" }, { "docid": "6033ca63ed099fe35930946468d7941d", "score": "0.56339365", "text": "public native void setScale(float scale);", "title": "" }, { "docid": "364003664cf84682bf7759286d919592", "score": "0.5619478", "text": "private BufferedImage scaleImage(BufferedImage orig) {\n\t\tBufferedImage scaledImage;\n\t\tif (orig.getType() == 0) \n\t\t\tscaledImage = new BufferedImage(tileWidth, tileHeight, 5);\n\t\telse\n\t\t\tscaledImage = new BufferedImage(tileWidth, tileHeight, orig.getType());\n\t\tGraphics g = scaledImage.getGraphics();\n\t\tg.drawImage(orig, 0, 0, tileWidth, tileHeight, null);\n\t\tg.dispose();\n\t\treturn scaledImage;\n\t}", "title": "" }, { "docid": "4f5928f2c0427e970cb3643970ee0a7f", "score": "0.5616587", "text": "public IAnimationImplScale(IModel model, String fig, double xFactor, double yFactor,\n int startTime, int endTime) throws IllegalArgumentException {\n super();\n super.model = model;\n super.fig = model.getFigure(fig);\n super.type = type;\n super.startTime = startTime;\n super.endTime = endTime;\n // can't use 0 to make it \"disappear\" earlier because it will make the dims 0\n if (xFactor <= 0 || yFactor <= 0) {\n throw new IllegalArgumentException(\"Invalid scaling factor given.\");\n }\n this.xFactor = xFactor;\n this.yFactor = yFactor;\n checkTimes();\n }", "title": "" }, { "docid": "dcab0768b1c67d3d744ff7422dad0c92", "score": "0.560138", "text": "public void scale(double x, double y) {\n\t\tmScaleStack.appendScale((float) x, (float) y);\n\t}", "title": "" }, { "docid": "bd93684a84fee412fa0e8d2b5db9e690", "score": "0.5598773", "text": "void scale(float f) {\n xx *= f;\n xy *= f;\n xz *= f;\n xo *= f;\n yx *= f;\n yy *= f;\n yz *= f;\n yo *= f;\n zx *= f;\n zy *= f;\n zz *= f;\n zo *= f;\n }", "title": "" }, { "docid": "8f10f78eb828f80ddf8d14acec2baa4d", "score": "0.5598576", "text": "public void scaleBy(double scaleFactor){\n for (Vector columnVector : columnVectors) {\n columnVector.scaleBy(scaleFactor);\n }\n }", "title": "" }, { "docid": "66424883816a0056df08224f73cf4fc7", "score": "0.55968934", "text": "public Builder setScale(float value) {\n bitField0_ |= 0x00000002;\n scale_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "66424883816a0056df08224f73cf4fc7", "score": "0.55968934", "text": "public Builder setScale(float value) {\n bitField0_ |= 0x00000002;\n scale_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "5104101d8b71a9a007c8ca52b3d00004", "score": "0.55881476", "text": "private void updateMapScale(boolean delta) {\n double oldWidth = mapImage.getFitWidth();\n double oldHeight = mapImage.getFitHeight();\n\n // How to change zoom in one line\n current_zoom = (delta ?\n (current_zoom >= ZOOM_MAX ? ZOOM_MAX :\n current_zoom + 1 + ((int) (0 * (current_zoom_scale *= (1 + ZOOM_COEF))))) : // Zoom in\n (current_zoom <= ZOOM_MIN ? ZOOM_MIN :\n current_zoom - 1 + (int) (0 * (current_zoom_scale /= (1 + ZOOM_COEF))))); // Zoom out\n mapImage.setFitWidth(current_zoom_scale * mapImage.getImage().getWidth());\n mapImage.setFitHeight(current_zoom_scale * mapImage.getImage().getHeight());\n\n // Find the new dimensions\n double newWidth = mapImage.getFitWidth();\n double newHeight = mapImage.getFitHeight();\n // Move the image so that the zoom appears to be in the center of the image\n moveMapImage(mapViewPane.getLayoutX() - (newWidth - oldWidth) / 2,\n mapViewPane.getLayoutY() - (newHeight - oldHeight) / 2);\n }", "title": "" }, { "docid": "8024572cb52aac0a2873df8fddbea719", "score": "0.55824566", "text": "public static BufferedImage rescale(BufferedImage indexed, float scaleFactor, float offset) {\n IndexColorModel icm = (IndexColorModel) indexed.getColorModel();\n return new BufferedImage(rescale(icm, scaleFactor, offset), indexed.getRaster(), false, null);\n }", "title": "" }, { "docid": "2b3c5df62f87029eeea23f7c79db9ca4", "score": "0.5581642", "text": "public ImageOperation resize(double factorX, double factorY) {\n\t\treturn resize((int) (factorX * image.getWidth()),\n\t\t\t\t(int) (factorY * image.getHeight()));\n\t}", "title": "" }, { "docid": "bdfc280536b7bed9bd23ffb0b15f2826", "score": "0.5581472", "text": "public void scaleY(float scale)\n {\n this.scaleY = scale;\n }", "title": "" }, { "docid": "ff1179b77dce837f5d10fe56686969b0", "score": "0.55773777", "text": "public Scale(double sx, double sy, int x, int y) {\n scaleX = sx;\n scaleY = sy;\n pivotX = x;\n pivotY = y;\n }", "title": "" }, { "docid": "862bba2abe30160c90bc847cde38f7ba", "score": "0.55755705", "text": "public void setScale(int aValue) {\n\t\tscale = aValue;\n\t}", "title": "" }, { "docid": "db27f6363409222b51958b2d60d54692", "score": "0.5574298", "text": "public void setScale( double d ) {\n\t\td = Math.max( d, minScale );\n\t\td = Math.min( d, maxScale );\n\t\tif ( scale != d ) {\n\t\t\tscale = d;\n\t\t\tscaledWidth = (int) ( baseWidth * scale );\n\t\t\tscaledHeight = (int) ( baseHeight * scale );\n\t\t\tupdateClip();\n\t\t\tpostInvalidate();\n\t\t\tfor ( ZoomPanListener listener : zoomPanListeners ) {\n\t\t\t\tlistener.onScaleChanged( scale );\n\t\t\t\tlistener.onZoomPanEvent();\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "c36c7824a4a94463399970b4c97493ac", "score": "0.556114", "text": "private static void scale(final Rectangle2D rect, final double scale) {\n final double trans = 0.5*(scale-1);\n final double width = rect.getWidth();\n final double height = rect.getHeight();\n rect.setRect(rect.getX()-trans*width,\n rect.getY()-trans*height,\n scale*width, scale*height);\n }", "title": "" }, { "docid": "6da8c2614026f5944dd092820707cde2", "score": "0.5560036", "text": "public void scale(float sc)\r\n {\r\n x= sc*x; y= sc*y; \r\n }", "title": "" }, { "docid": "d19ccb96ed219213622f19e87f59772a", "score": "0.55517143", "text": "public SpriteVisual scale(float sx, float sy) {\n\t\tthis.scaleX = sx;\n\t\tthis.scaleY = sy;\n\t\treturn this;\n\t}", "title": "" }, { "docid": "97b99bf13134d147c90b0f83192e6a55", "score": "0.5528211", "text": "public void setScale(final double scale) {\r\n\t\tthis.scale = scale;\r\n\t}", "title": "" }, { "docid": "0fb464fc2564b5d2ab459701f1630611", "score": "0.5507073", "text": "public ScaleCommand(double factor) {\n this.factor = factor;\n }", "title": "" }, { "docid": "112ee357752c75022d432a4a79097d49", "score": "0.54994595", "text": "void scale(double s);", "title": "" }, { "docid": "edfa714f9b8cbed83d2a179395c52261", "score": "0.5468704", "text": "void setScale(double s);", "title": "" }, { "docid": "35a98e38294e1baa5fc869544a985fd7", "score": "0.5465124", "text": "public void setScale(boolean scale)\n {\n this._scale = scale;\n this._has_scale = true;\n }", "title": "" }, { "docid": "fb1ba6e82267c584b69be3c0c00b2682", "score": "0.5462209", "text": "FloatImage getResizedImageCopy(float scale){\r\n int newXDim = (int)(xdim*scale);\r\n int newYDim = (int)(ydim*scale);\r\n return getResizedImageCopy(newXDim, newYDim);\r\n }", "title": "" }, { "docid": "415afa25681372ff186d8fde61b8924b", "score": "0.5458907", "text": "public static void scale(float scale, float[] dst, int dstIndex, float[]src, int srcIndex) {\n dst[dstIndex] = scale*src[srcIndex];\n dst[dstIndex+1] = scale*src[srcIndex+1];\n }", "title": "" }, { "docid": "f8c2430b6f6cce08cd4869449ec4c944", "score": "0.5438681", "text": "public void scale(int s, TT t1);", "title": "" }, { "docid": "f0cfaaaff0e86da208c69ffc8050d0fd", "score": "0.54262626", "text": "public void setScale(double scale) {\n if(scale <= 0.0d) {\n throw new IllegalArgumentException();\n }\n this.scale = scale;\n }", "title": "" }, { "docid": "b11fb9b46acaf6990cf14cca6d6710f3", "score": "0.5424335", "text": "public void scale(float sx, float sy)\n/* */ {\n/* 3877 */ showMissingWarning(\"scale\");\n/* */ }", "title": "" }, { "docid": "ca0eb643cd54b01bafea99486c0666d3", "score": "0.54084617", "text": "private void scaleImage(ImageView myImage)\n {\n final Display display = getWindowManager().getDefaultDisplay();\n Point p = new Point();\n display.getSize(p);\n myImage.setScaleType(ImageView.ScaleType.FIT_XY);\n }", "title": "" }, { "docid": "9b372fe9a473c1c6a41ba136e45e13a6", "score": "0.54070467", "text": "public void setScale(String scale) {\n this.scale = scale;\n }", "title": "" }, { "docid": "51426358c92898ebcdb5467875d3cc0e", "score": "0.5405381", "text": "private void rescale(float scale){\r\n\t\tdistribution.rescale(scale);\r\n//\t\t\r\n//\t\tfloat[] value = distribution.getValues() ;\r\n//\t\tfloat f=0;\r\n//\r\n//\t\tfor (int i = 0; i < value.length; i++) {\r\n//\t\t\tf= distribution.getValues()[i];\r\n//\t\t\tif (f!=distribution.getMissingV() && f!=distribution.getFillV() ) {\r\n//\t\t\tdistribution.getValues()[i]*= scale;\r\n//\t\t\tSystem.out.println(f);\r\n//\t\t}\r\n//\t\t}\r\n\r\n\t}", "title": "" }, { "docid": "9a9c116bf134689c9a5f5ec9ec6077cc", "score": "0.5404863", "text": "public void scale(float s, TT t1);", "title": "" }, { "docid": "265e7e29875f1897ae5ac923254e3419", "score": "0.5401019", "text": "public void setScale(double scale) {\n setScale(new Vector3(scale, scale, scale));\n }", "title": "" }, { "docid": "e47803f74d994875195226b583878255", "score": "0.53739405", "text": "public void setScaleFactor(String scaleFactor) {\r\n this.scaleFactorExpr = scaleFactor;\r\n }", "title": "" }, { "docid": "440730dbb0bd268e07d424c7c20eda42", "score": "0.53718066", "text": "public static Image resize(Image a, float scale, char method) throws Exception {\n Image ret_val = new Image();\n ret_val.ref = resize1(a.ref,scale,method);\n return ret_val;\n }", "title": "" }, { "docid": "760e63294a1505a9400f8bcbe6978167", "score": "0.53622425", "text": "private float initScale() {\r\n float scale = 1.0F; \r\n if (cfg.minScale > 0) {\r\n scale = cfg.minScale;\r\n } else {\r\n int w = m_image.getWidth();\r\n int h = m_image.getHeight();\r\n assert (cfg.minHeight > 0) || (cfg.minWidth > 0) : \r\n \"Min height, min width, or scale must be specified.\";\r\n\r\n // find scale factor\r\n if (((w > h) && (cfg.minWidth != 0)) || (cfg.minHeight == 0)) \r\n scale = (float)cfg.minWidth / w;\r\n else \r\n scale = (float)cfg.minHeight / h;\r\n }\r\n \r\n return scale;\r\n }", "title": "" }, { "docid": "2f1ab2ca7edbcf91a2dc0efafcfc187f", "score": "0.5351802", "text": "public void setDrawingScale(float s){\r\n\t\tparams.drawingScale = s;\r\n\t\tinvalidate();\r\n\t}", "title": "" }, { "docid": "e566a38d8e3dd9d1c69a4ab74bd62ffd", "score": "0.53468466", "text": "public void setChangeScale(float scale) {\n this.scale = scale;\n }", "title": "" }, { "docid": "2f2e374171ecaded65b00493632c13f6", "score": "0.53371465", "text": "public void setScale(float scale) {\n\t\tsetScale(scale, scale);\n\t}", "title": "" }, { "docid": "5c87e373146142a874862b587e514514", "score": "0.5335681", "text": "Dimension calcScale(Dimension imageSize,\n long compressedSize, long requiredSize);", "title": "" }, { "docid": "4d9921dba6698978d9d24babc8c746b1", "score": "0.5332388", "text": "public void setScale(String scale) {\n this.scale = scale;\n }", "title": "" }, { "docid": "b837ae3604136142779c942dcc5e8cd8", "score": "0.5329701", "text": "public static Image scaleImage(Image img, int width, int height)\r\n\t{\r\n\t\treturn img.getScaledInstance(width, height, Image.SCALE_SMOOTH);\r\n\t}", "title": "" }, { "docid": "b1e97705e7731715ac376e23d091f422", "score": "0.5319588", "text": "public void zoomToScale(double currentScale) {\n\r\n\t}", "title": "" }, { "docid": "d6d37e0135033800f1e438c0d5f21d2b", "score": "0.5308918", "text": "public void setScale ( String scale ) {\r\n this.scale = scale;\r\n }", "title": "" }, { "docid": "3e5e96ee79e2ba43090f809a1627d3fc", "score": "0.52850527", "text": "public abstract void rescale(double lowerValue, double upperValue);", "title": "" }, { "docid": "df8f7afba958aef1a9f744e88c058c8d", "score": "0.5284032", "text": "public void scale(double scx, double scy) {\n \ta *= scx;\n \td *= scy;\n }", "title": "" } ]
ca5addede0c4fed1f3f506ad1ca86703
//////////////////////// END OF RULES //////////////////////////////// Gets the width of the board, also accessible through Board.WIDTH
[ { "docid": "2ea99557b05854c907796ef428094571", "score": "0.7708985", "text": "public int getWidth() {\n return WIDTH;\n }", "title": "" } ]
[ { "docid": "59bf9880c9a20cc9bd8469372e76b9cf", "score": "0.85730743", "text": "public int getWidth() {\n return board.length;\n }", "title": "" }, { "docid": "d82f60d0cde6be9687c6237015fe3870", "score": "0.7986796", "text": "static private int getBoardWidth() {\n\t\ttry\n\t {\n\t Class<?> forName = Class.forName(\"swen225.murdermadness.gui.GUI\");;\n\n\t Field f = forName.getDeclaredField(\"DFLT_DRAWING_WIDTH\");\n\t Class<?> type = f.getType();\n\t f.setAccessible(true);\n\t return ((int) f.get(type));\n\t \n\t }\n\t catch (Exception e)\n\t {\n\t e.printStackTrace();\n\t }\n\t\t return 0;\n\t}", "title": "" }, { "docid": "308b4afe4855979fa18eed2cbe4ebd16", "score": "0.78976226", "text": "public static int getWidth(){\n\t\treturn width;\n\t}", "title": "" }, { "docid": "a9a64e74b1d95699d58525785406c469", "score": "0.77086043", "text": "public int getWidth()\r\n\t{\r\n\t\treturn width;\r\n\t}", "title": "" }, { "docid": "5555edfa3663b37cc6818d404f5a706e", "score": "0.7703942", "text": "public int getWidth() {\n\t\treturn(width);\n\t}", "title": "" }, { "docid": "dc3d481876df23d77e6dc331f2af208d", "score": "0.76947755", "text": "public int getWidth()\n\t{\n\t\treturn width;\n\t}", "title": "" }, { "docid": "e276bfd71963fbdb19ac65a482df72ef", "score": "0.7668049", "text": "public int getWidth() {\r\n\t\treturn width;\r\n\t}", "title": "" }, { "docid": "e276bfd71963fbdb19ac65a482df72ef", "score": "0.7668049", "text": "public int getWidth() {\r\n\t\treturn width;\r\n\t}", "title": "" }, { "docid": "5769b09158257043bb0f81f3a2c2d934", "score": "0.7667939", "text": "public int getWidth() {\n\t\treturn width;\n\t}", "title": "" }, { "docid": "5769b09158257043bb0f81f3a2c2d934", "score": "0.7667939", "text": "public int getWidth() {\n\t\treturn width;\n\t}", "title": "" }, { "docid": "5769b09158257043bb0f81f3a2c2d934", "score": "0.7667939", "text": "public int getWidth() {\n\t\treturn width;\n\t}", "title": "" }, { "docid": "5769b09158257043bb0f81f3a2c2d934", "score": "0.7667939", "text": "public int getWidth() {\n\t\treturn width;\n\t}", "title": "" }, { "docid": "5769b09158257043bb0f81f3a2c2d934", "score": "0.7667939", "text": "public int getWidth() {\n\t\treturn width;\n\t}", "title": "" }, { "docid": "76c739247e730e7e489b83d6def2795f", "score": "0.7643577", "text": "public int getWidth() {\n return width;\n }", "title": "" }, { "docid": "76c739247e730e7e489b83d6def2795f", "score": "0.7643577", "text": "public int getWidth() {\n return width;\n }", "title": "" }, { "docid": "76c739247e730e7e489b83d6def2795f", "score": "0.7643577", "text": "public int getWidth() {\n return width;\n }", "title": "" }, { "docid": "76c739247e730e7e489b83d6def2795f", "score": "0.7643577", "text": "public int getWidth() {\n return width;\n }", "title": "" }, { "docid": "76c739247e730e7e489b83d6def2795f", "score": "0.7643577", "text": "public int getWidth() {\n return width;\n }", "title": "" }, { "docid": "76c739247e730e7e489b83d6def2795f", "score": "0.7643577", "text": "public int getWidth() {\n return width;\n }", "title": "" }, { "docid": "ba527dbcaefa1fc8ad796430e77aa08c", "score": "0.76329", "text": "public int getWidth() {\r\n return width;\r\n }", "title": "" }, { "docid": "ba527dbcaefa1fc8ad796430e77aa08c", "score": "0.76329", "text": "public int getWidth() {\r\n return width;\r\n }", "title": "" }, { "docid": "7cb84e4e0028334226f101d12a6fcd0c", "score": "0.7625351", "text": "public int getWidth() {\n return width;\n }", "title": "" }, { "docid": "f63c00125c3e02a32c1f91da22771b32", "score": "0.76224697", "text": "public final int GetWidth()\n\t{\n\t\treturn m_w;\n\t}", "title": "" }, { "docid": "1c5b59f39a51cea380141d567818e7ab", "score": "0.7607324", "text": "public int getWidth()\r\n {\r\n return this._width;\r\n }", "title": "" }, { "docid": "bbbaf89bcb44660666338998b1cffd2e", "score": "0.7606155", "text": "public int getWidth() {\n return width_;\n }", "title": "" }, { "docid": "ed764804420bf209a10c4804851b7ded", "score": "0.76046485", "text": "public int getWidth() {\n return width_;\n }", "title": "" }, { "docid": "cbcf622678169dbd671f224c0a0bfa3e", "score": "0.7602219", "text": "public int getWidth() {\n return width_;\n }", "title": "" }, { "docid": "7a5d87da2462058b444a5ed98dccac13", "score": "0.7601195", "text": "public int getWidth() {\n return width_;\n }", "title": "" }, { "docid": "95c38ad70f88c34d60c8b4240b603d33", "score": "0.75910246", "text": "public int getWidth()\n {\n return width;\n }", "title": "" }, { "docid": "95c38ad70f88c34d60c8b4240b603d33", "score": "0.75910246", "text": "public int getWidth()\n {\n return width;\n }", "title": "" }, { "docid": "314e557313da77439a03b80630700dfc", "score": "0.75895494", "text": "public int getWidth() {return (int) Constants.width;}", "title": "" }, { "docid": "85c5961b9bb9ac38335f864cbc0963f7", "score": "0.7565375", "text": "private static int boardWidthInPixels(Board board, int squareSideLength) {\r\n\t\treturn board.getWidth() * squareSideLength;\r\n\t}", "title": "" }, { "docid": "3ccdce517a0dc056a11441303f3f6da8", "score": "0.75601035", "text": "public int getWidth() {\n return width;\n }", "title": "" }, { "docid": "3ccdce517a0dc056a11441303f3f6da8", "score": "0.75601035", "text": "public int getWidth() {\n return width;\n }", "title": "" }, { "docid": "53a3877b444a53974eb28ff3601b9563", "score": "0.7535858", "text": "public Integer getWidth() {\n\t\treturn width;\n\t}", "title": "" }, { "docid": "fe3150caf594689afead687b05b2c815", "score": "0.7531066", "text": "public static double getWidth() {\n\t\treturn defaultWidth; // TODO make crab grow and shrink in size\n\t}", "title": "" }, { "docid": "ffdc9994fc8ad5313ed1d5281cc8e885", "score": "0.7530904", "text": "public int getWidth()\n\n\t{\n\n\treturn width;\n\n\t}", "title": "" }, { "docid": "8727c78cbe5b9c801601677cc2b0e636", "score": "0.75230914", "text": "public int getWidth() {\r\n return this._width;\r\n }", "title": "" }, { "docid": "2e9563c099a39aa6cb877a3d9dff1e0b", "score": "0.7519107", "text": "public Integer getWidth () {\r\n\t\treturn (Integer) getStateHelper().eval(PropertyKeys.width);\r\n\t}", "title": "" }, { "docid": "ab48d503ccd050238359eb72cd749af2", "score": "0.7517232", "text": "public int getWidth() {\n\t\treturn Width;\n\t}", "title": "" }, { "docid": "487adf5d89a3ea757afa26ac561ce32f", "score": "0.75037694", "text": "public int getWidthPixels() {\n return width * CELL_SIZE;\n }", "title": "" }, { "docid": "7e04bc728b1c02735738405e61cf596f", "score": "0.7500066", "text": "public int getWidth(){\n\t\treturn Width;\n\t}", "title": "" }, { "docid": "b6e86d28549519a7da6003f06433a414", "score": "0.749974", "text": "public int getWidth() {\n\t\treturn this.gridSize.width;\n\t}", "title": "" }, { "docid": "fb032f70786d278814ee79d56d89d54d", "score": "0.74974275", "text": "public int getWIDTH() {\r\n return WIDTH;\r\n }", "title": "" }, { "docid": "ef4831cf7847c72c55e1da414a06e8e6", "score": "0.74962825", "text": "public double getWidth()\n\t\t{\n\t\t\treturn width;\n\t\t}", "title": "" }, { "docid": "fa9a03ee67bafd1c4113af0bd789222f", "score": "0.7492597", "text": "public int getWidth()\n\t{\n\t\treturn this.width;\n\t}", "title": "" }, { "docid": "89c9efa30ef27ad9a1ab0dea3b473dfb", "score": "0.7477258", "text": "public int getWidth() {\n return this.width;\n }", "title": "" }, { "docid": "89c9efa30ef27ad9a1ab0dea3b473dfb", "score": "0.7477258", "text": "public int getWidth() {\n return this.width;\n }", "title": "" }, { "docid": "89c9efa30ef27ad9a1ab0dea3b473dfb", "score": "0.7477258", "text": "public int getWidth() {\n return this.width;\n }", "title": "" }, { "docid": "89c9efa30ef27ad9a1ab0dea3b473dfb", "score": "0.7477258", "text": "public int getWidth() {\n return this.width;\n }", "title": "" }, { "docid": "8142c332d0e41e04cb7ba01dbf1c2262", "score": "0.7463232", "text": "public double getWidth() {\n return width;\r\n }", "title": "" }, { "docid": "b846bc9d95a1766f77ef69935431e6e8", "score": "0.74579006", "text": "public Integer getWidth() {\n return width;\n }", "title": "" }, { "docid": "b846bc9d95a1766f77ef69935431e6e8", "score": "0.74579006", "text": "public Integer getWidth() {\n return width;\n }", "title": "" }, { "docid": "f276e041db9334a1d2fc768a3945136c", "score": "0.7456632", "text": "public int getWidth() {\n\t\treturn this.width;\n\t}", "title": "" }, { "docid": "6e9d187f6ab11e64c8769d20fe571659", "score": "0.7452892", "text": "public double getWidth() {\n return width;\n }", "title": "" }, { "docid": "6e9d187f6ab11e64c8769d20fe571659", "score": "0.7452892", "text": "public double getWidth() {\n return width;\n }", "title": "" }, { "docid": "25ebf7360b86c6b98e48a749110f2104", "score": "0.7448205", "text": "public double getWidth() {\n\t\treturn width;\n\t}", "title": "" }, { "docid": "25ebf7360b86c6b98e48a749110f2104", "score": "0.7448205", "text": "public double getWidth() {\n\t\treturn width;\n\t}", "title": "" }, { "docid": "25ebf7360b86c6b98e48a749110f2104", "score": "0.7448205", "text": "public double getWidth() {\n\t\treturn width;\n\t}", "title": "" }, { "docid": "25ebf7360b86c6b98e48a749110f2104", "score": "0.7448205", "text": "public double getWidth() {\n\t\treturn width;\n\t}", "title": "" }, { "docid": "85729fa84021a28e40d869fc726b777f", "score": "0.7448021", "text": "public int getWidth() {\r\n\t\treturn this.width;\r\n\t}", "title": "" }, { "docid": "85729fa84021a28e40d869fc726b777f", "score": "0.7448021", "text": "public int getWidth() {\r\n\t\treturn this.width;\r\n\t}", "title": "" }, { "docid": "2436b99a781e4c09717f711b538be032", "score": "0.74450845", "text": "public int getWidth() {\n return (Integer)map.getProperties().get(\"width\") * (Integer)map.getProperties().get(\"tilewidth\");\n }", "title": "" }, { "docid": "2b0127f82766f3015f94a260e4a8ea96", "score": "0.7439104", "text": "public short getWWidth()\n {\n return field_9_wWidth;\n }", "title": "" }, { "docid": "d427bc0474993e0adb71162253d1c54f", "score": "0.7434635", "text": "public int getWidth() {\r\n\t\treturn this.columns;\r\n\t}", "title": "" }, { "docid": "7d0f8a8f8852a4177774098e2ef8e36a", "score": "0.7432562", "text": "public int getWidth() {\n return mWidth;\n }", "title": "" }, { "docid": "36b64f5c827fa583f63e08b0f91b7b51", "score": "0.7427622", "text": "public final int getWidth() {\n\t\treturn this.width;\n\t}", "title": "" }, { "docid": "e306f2ce0117a93409bbc0ca378d68c8", "score": "0.7422056", "text": "public double getWidth()\n {\n return width;\n }", "title": "" }, { "docid": "f2074712200dbed210eb927efdf17d06", "score": "0.74174696", "text": "public final int getWidth() {\r\n return this.width;\r\n }", "title": "" }, { "docid": "f31602d399bb086f8d668dbeea85f537", "score": "0.7406006", "text": "public int getWidth() {\n\t\treturn squares[0].length;\n\t}", "title": "" }, { "docid": "e2fb44bd2d13db3d438d7f2a351f41db", "score": "0.739642", "text": "public int getWidth() {\n return config.getWidth();\n }", "title": "" }, { "docid": "29237205ee6aae89e859740d8c0ec3c4", "score": "0.73956484", "text": "int getWidth() {\n return width;\n }", "title": "" }, { "docid": "29237205ee6aae89e859740d8c0ec3c4", "score": "0.73956484", "text": "int getWidth() {\n return width;\n }", "title": "" }, { "docid": "c0da2c446354b3bd3b7cd35e907b03b0", "score": "0.73915684", "text": "public int getWidth() {\n return params.getWidth();\n }", "title": "" }, { "docid": "751d2cbe86acd025e4df0cc0657dd660", "score": "0.7384503", "text": "public int getRoomWidth() {\n return roomWidth;\n }", "title": "" }, { "docid": "efe07b61f96a9a803bdf816d358b0351", "score": "0.7376324", "text": "@IntRange(from = 0)\n public int getWidth() {\n return width;\n }", "title": "" }, { "docid": "6a03ab7b360868ba0faa89e1adaa29f9", "score": "0.737329", "text": "public double getWidth() {\n return width;\n }", "title": "" }, { "docid": "8aa822f4d3ca0ee5db4d9e26020e0a23", "score": "0.73721915", "text": "public String getWidth() {\n return width;\n }", "title": "" }, { "docid": "2b1c082d2414e9453479d14966144641", "score": "0.7370486", "text": "public static int getWidth() {\r\n return DEFAULT_WIDTH;\r\n }", "title": "" }, { "docid": "a94455fd1f9fa1a4c690a7285a823f1f", "score": "0.7366332", "text": "public double getWidth() {\n return _width;\n }", "title": "" }, { "docid": "3276c4b3cb0b24fbf6a367379f6a4e77", "score": "0.7362927", "text": "public final float getWidth()\r\n\t{\r\n\t\treturn width;\r\n\t}", "title": "" }, { "docid": "6e3b7ab7b51396b93db226515676c537", "score": "0.7350396", "text": "public final int getWidth();", "title": "" }, { "docid": "f1ff289dc3fede2686391e1a024b7f63", "score": "0.73363274", "text": "public double getWidth() {\n double width = 0;\n for ( IGridColumn<?, ?> column : model.getColumns() ) {\n width = width + column.getWidth();\n }\n return width;\n }", "title": "" }, { "docid": "0e5b17601b29c6b1b0b83b842f98c454", "score": "0.73350865", "text": "public double getWidth()\n \t{\n \t\treturn rect[2];\n \t}", "title": "" }, { "docid": "e1a313109d3ba9ac0b6cf7d5626753c7", "score": "0.7332011", "text": "public int getWidth();", "title": "" }, { "docid": "e1a313109d3ba9ac0b6cf7d5626753c7", "score": "0.7332011", "text": "public int getWidth();", "title": "" }, { "docid": "e1a313109d3ba9ac0b6cf7d5626753c7", "score": "0.7332011", "text": "public int getWidth();", "title": "" }, { "docid": "e1a313109d3ba9ac0b6cf7d5626753c7", "score": "0.7332011", "text": "public int getWidth();", "title": "" }, { "docid": "e1a313109d3ba9ac0b6cf7d5626753c7", "score": "0.7332011", "text": "public int getWidth();", "title": "" }, { "docid": "af25ed8335604d51be8a84eeb8df601e", "score": "0.7329483", "text": "public float getWidth() {\r\n\t\treturn width;\r\n\t}", "title": "" }, { "docid": "8ae6189c0966299ddd02667066f6e9dc", "score": "0.73264897", "text": "public int width() {\n return width;\n }", "title": "" }, { "docid": "8ae6189c0966299ddd02667066f6e9dc", "score": "0.73264897", "text": "public int width() {\n return width;\n }", "title": "" }, { "docid": "8ae6189c0966299ddd02667066f6e9dc", "score": "0.73264897", "text": "public int width() {\n return width;\n }", "title": "" }, { "docid": "8ae6189c0966299ddd02667066f6e9dc", "score": "0.73264897", "text": "public int width() {\n return width;\n }", "title": "" }, { "docid": "30f9c8b371222d9d331d4abb8b0fb96c", "score": "0.7324027", "text": "public float getWidth() {\n\t\treturn width;\n\t}", "title": "" }, { "docid": "8c3a33ba067136d72a362b7e1f4d3aed", "score": "0.7323438", "text": "public int getWidth(){\n return this.width;\n }", "title": "" }, { "docid": "af83bb0cd57b9f33ee81ce7ded51920b", "score": "0.7322078", "text": "public int width() {\n return this.rect.getWidth();\n }", "title": "" }, { "docid": "da4872d45cefd0477f822f9599823ee7", "score": "0.7307287", "text": "public int width() {\n\n return width;\n }", "title": "" }, { "docid": "a35a61b02c49885ae43794b947c4b4e0", "score": "0.72953475", "text": "@Override\r\n\tpublic int getWidth() {\n\t\treturn WIDTH;\r\n\t}", "title": "" }, { "docid": "b0b9e006e1c97e531efcdc027ec97ed3", "score": "0.7278038", "text": "@Override\n\tpublic int getWidth() {\n\t\treturn width;\n\t}", "title": "" } ]
25197b4cf814864ecd440f23b9149cb3
TODO Autogenerated method stub
[ { "docid": "60f481be2ff051f289952301f1cf13ee", "score": "0.0", "text": "@Override\n\tpublic Role getAdminRoleByCompanyType(String companyTypeId) {\n\t\treturn roleDao.getAdminRoleByCompanyType(companyTypeId);\n\t}", "title": "" } ]
[ { "docid": "05a606445504484958a1c21e14b7198e", "score": "0.69474965", "text": "@Override\r\n\tpublic void sapace() {\n\t\t\r\n\t}", "title": "" }, { "docid": "8619203d4867f5c6d05eb9a5354405c0", "score": "0.6920049", "text": "@Override\n\t\tpublic void pintate() {\n\t\t\t\n\t\t}", "title": "" }, { "docid": "8619203d4867f5c6d05eb9a5354405c0", "score": "0.6920049", "text": "@Override\n\t\tpublic void pintate() {\n\t\t\t\n\t\t}", "title": "" }, { "docid": "33d41636b65afa8267c9085dae3d1a2d", "score": "0.6676429", "text": "private void apparence() {\r\n\r\n\t}", "title": "" }, { "docid": "0b5b11f4251ace8b3d0f5ead186f7beb", "score": "0.65686274", "text": "@Override\n\tpublic void comer() {\n\t\t\n\t}", "title": "" }, { "docid": "118f2b8a20f48999973063ac332d07d3", "score": "0.6563993", "text": "@Override\r\n\t\t\tpublic void atras() {\n\r\n\t\t\t}", "title": "" }, { "docid": "80d20df1cc75d8fa96c12c49a757fc43", "score": "0.65278774", "text": "@Override\n\tprotected void getExras() {\n\t\t\n\t}", "title": "" }, { "docid": "ffd8193c9cf73515d0f9301b9a7d8817", "score": "0.6485175", "text": "@Override\n\tpublic void morrer() {\n\n\t}", "title": "" }, { "docid": "b62a7c8e0bb1090171742c543bf4b253", "score": "0.6373858", "text": "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "title": "" }, { "docid": "6c2fa45ab362625ae567ee8a229630a4", "score": "0.622455", "text": "@Override\n\tprotected void interr() {\n\t}", "title": "" }, { "docid": "b941b399a338e8c204f1063e54a94824", "score": "0.6224095", "text": "public void mo7103g() {\n }", "title": "" }, { "docid": "b941b399a338e8c204f1063e54a94824", "score": "0.6224095", "text": "public void mo7103g() {\n }", "title": "" }, { "docid": "b941b399a338e8c204f1063e54a94824", "score": "0.6224095", "text": "public void mo7103g() {\n }", "title": "" }, { "docid": "27e4479db2c37a2e77fe796119b66d4b", "score": "0.61936283", "text": "@Override\r\n\t\t\tpublic void adelante() {\n\r\n\t\t\t}", "title": "" }, { "docid": "0d3bf6f2ee77f787007ba6b4021b5721", "score": "0.6164056", "text": "protected void olha()\r\n\t{\r\n\t\t\r\n\t}", "title": "" }, { "docid": "e3a701d0fdb1fef5e0afd9dc7c345fcb", "score": "0.61634105", "text": "@Override\n\tprotected void generateData() {\n\t\n\t}", "title": "" }, { "docid": "10ead2e988bf977cb8edb2bacf974891", "score": "0.6158877", "text": "@Override\n\tprotected void init() {\n\t\t\n\t}", "title": "" }, { "docid": "10ead2e988bf977cb8edb2bacf974891", "score": "0.6158877", "text": "@Override\n\tprotected void init() {\n\t\t\n\t}", "title": "" }, { "docid": "10ead2e988bf977cb8edb2bacf974891", "score": "0.6158877", "text": "@Override\n\tprotected void init() {\n\t\t\n\t}", "title": "" }, { "docid": "10ead2e988bf977cb8edb2bacf974891", "score": "0.6158877", "text": "@Override\n\tprotected void init() {\n\t\t\n\t}", "title": "" }, { "docid": "10ead2e988bf977cb8edb2bacf974891", "score": "0.6158877", "text": "@Override\n\tprotected void init() {\n\t\t\n\t}", "title": "" }, { "docid": "4e49f5db36ca664153e54380025b85d4", "score": "0.6095768", "text": "protected boolean method_21825() {\n }", "title": "" }, { "docid": "67e1a422c8d1e74f6601c8a6d1aaa237", "score": "0.6074471", "text": "@Override\n\tpublic void apagar() {\n\n\t}", "title": "" }, { "docid": "a613dcce17453a8e1eed3b984b6b35b1", "score": "0.6028443", "text": "@Override\n\tpublic void composant() {\n\t}", "title": "" }, { "docid": "6f653341cfc7d30c8418e4b72116f7e2", "score": "0.60278815", "text": "public void mo5201a() {\n }", "title": "" }, { "docid": "588ab475e29950e8a1944c4a28fe2189", "score": "0.6027122", "text": "public void mo7036d() {\n }", "title": "" }, { "docid": "770d423e40bf5782a700bc181e8b8a1e", "score": "0.6020569", "text": "@Override\n\tvoid init() {\n\t\t\n\t}", "title": "" }, { "docid": "770d423e40bf5782a700bc181e8b8a1e", "score": "0.6020569", "text": "@Override\n\tvoid init() {\n\t\t\n\t}", "title": "" }, { "docid": "f2fe8a59406298fe7e97b543f2bf8186", "score": "0.60087883", "text": "@Override\r\n \tpublic void init() {\r\n \t}", "title": "" }, { "docid": "fa1a013b1df2f5f1062e1cc971135645", "score": "0.5988416", "text": "@Override\n\tpublic void mamar() {\n\t\t\n\t}", "title": "" }, { "docid": "f49ed6756be41155bd7261ea2ff6564b", "score": "0.59858125", "text": "@Override\n\t\t\t\tpublic void init() {\n\n\t\t\t\t}", "title": "" }, { "docid": "f49ed6756be41155bd7261ea2ff6564b", "score": "0.59858125", "text": "@Override\n\t\t\t\tpublic void init() {\n\n\t\t\t\t}", "title": "" }, { "docid": "f49ed6756be41155bd7261ea2ff6564b", "score": "0.59858125", "text": "@Override\n\t\t\t\tpublic void init() {\n\n\t\t\t\t}", "title": "" }, { "docid": "0ecc2b05fa1b3fe069983a07eba7914d", "score": "0.5978686", "text": "private void inicialitzarTaulell() {\r\n\t\t//PENDENT IMPLEMENTAR\r\n\t}", "title": "" }, { "docid": "9fe3f6ccb967a8bcee9106fbbd56b684", "score": "0.5974211", "text": "@Override\r\n\tpublic void properties() {\n\t\t\r\n\t}", "title": "" }, { "docid": "b044552fe4d8d8225d09361b41fbea3a", "score": "0.59513867", "text": "public void mo5201a() {\n }", "title": "" }, { "docid": "fcfbf321ff3e4c56b4e383ce15e49dbb", "score": "0.59429646", "text": "@Override\r\n\tpublic void obtersaida()\r\n\t{\n\t}", "title": "" }, { "docid": "482b1825ec60700f97ed42e420d69d99", "score": "0.59383935", "text": "@Override\n\tpublic void valide() {\n\t}", "title": "" }, { "docid": "b2775812be4cd009dca27a30c5ce78fa", "score": "0.59383595", "text": "@Override\n\tprotected void fouseChange() {\n\n\t}", "title": "" }, { "docid": "4b7e3f693781babf82ed11447db2a554", "score": "0.5929242", "text": "@Override\n\tpublic void concentrarse() {\n\t\t// TODO Auto-generated method stub\n\t\t\n\t}", "title": "" }, { "docid": "41e50fb9a0b417818374927eb02c67f1", "score": "0.59280443", "text": "protected void mo5608a() {\n }", "title": "" }, { "docid": "21caf865e426ec5feea3bed303161112", "score": "0.59228885", "text": "@Override\r\n\t\t\t\t\tpublic void funktionMarkiert() {\n\t\t\t\t\t\t\r\n\t\t\t\t\t}", "title": "" }, { "docid": "21caf865e426ec5feea3bed303161112", "score": "0.59228885", "text": "@Override\r\n\t\t\t\t\tpublic void funktionMarkiert() {\n\t\t\t\t\t\t\r\n\t\t\t\t\t}", "title": "" }, { "docid": "21caf865e426ec5feea3bed303161112", "score": "0.59228885", "text": "@Override\r\n\t\t\t\t\tpublic void funktionMarkiert() {\n\t\t\t\t\t\t\r\n\t\t\t\t\t}", "title": "" }, { "docid": "8b18fd12dbb5303a665e92c25393fb78", "score": "0.59215844", "text": "@Override\n\tprotected void initData() {\n\t\t\n\t}", "title": "" }, { "docid": "8b18fd12dbb5303a665e92c25393fb78", "score": "0.59215844", "text": "@Override\n\tprotected void initData() {\n\t\t\n\t}", "title": "" }, { "docid": "9a0f5a503f38cb7c40d13ecc89073bd8", "score": "0.58973867", "text": "@Override\r\n\tpublic void getDuriation() {\n\t\t\r\n\t}", "title": "" }, { "docid": "9781c90863e9dc9781fafcc4dc828136", "score": "0.58739185", "text": "public void mo7839l() {\n }", "title": "" }, { "docid": "9781c90863e9dc9781fafcc4dc828136", "score": "0.58739185", "text": "public void mo7839l() {\n }", "title": "" }, { "docid": "32d0d506f2de2532fe4789f006c84da0", "score": "0.5863205", "text": "@Override\n\tpublic void bicar() {\n\t\t\n\t}", "title": "" }, { "docid": "02699a98134693036160a045239bddba", "score": "0.58500654", "text": "@Override\r\n\tpublic void zwroc() {\n\r\n\t}", "title": "" }, { "docid": "46569800c9d73cd59bcbec066cdb5304", "score": "0.58491904", "text": "private void lidoInf() {\n\n\n }", "title": "" }, { "docid": "b8d886581a76c72e11ab317e6cb6e2a8", "score": "0.58308905", "text": "@Override\r\n public void rechercher() {\n }", "title": "" }, { "docid": "80b5722cdc9efe11a305e92ea813ac0f", "score": "0.5827698", "text": "@Override\r\n\tpublic void inter() {\n\t\t\r\n\t}", "title": "" }, { "docid": "947b4ee184fe32ab14b8c244b9461c7d", "score": "0.5807026", "text": "@Override\n\tpublic void vida() {\n\n\t}", "title": "" }, { "docid": "9d2f44c3ebe1fb8de1ac4ae677e2d851", "score": "0.58069414", "text": "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "title": "" }, { "docid": "c86f446a8bd6af19f88cc011fdf2ffd4", "score": "0.5802792", "text": "public void asustar() {\n // TODO implement here\n \n }", "title": "" }, { "docid": "b14d9313b224be37257260448fc816d3", "score": "0.58025044", "text": "@Override\n\tpublic void breathes()\n\t{\n\n\t}", "title": "" }, { "docid": "c8f75a8f93bc20d4e8695ba99b470e1d", "score": "0.580217", "text": "public void mo1684e() {\n }", "title": "" }, { "docid": "1c223692b2a2bdbc36ebfa379064d28d", "score": "0.5800657", "text": "public void mo7102f() {\n }", "title": "" }, { "docid": "1c223692b2a2bdbc36ebfa379064d28d", "score": "0.5800657", "text": "public void mo7102f() {\n }", "title": "" }, { "docid": "1c223692b2a2bdbc36ebfa379064d28d", "score": "0.5800657", "text": "public void mo7102f() {\n }", "title": "" }, { "docid": "19b30f4f881d8f7b600c7c12f1c30963", "score": "0.57979786", "text": "public void mo5203c() {\n }", "title": "" }, { "docid": "5783648f118108797828ca2085091ef9", "score": "0.57931334", "text": "@Override\n protected void initialize() {\n \n }", "title": "" }, { "docid": "bb30a482e2236eb664f8d8fc23724b59", "score": "0.57915", "text": "@Override\n\tprotected void initActb() {\n\t\t\n\t}", "title": "" }, { "docid": "7846476d210d55d45e5540a9c92b1ce3", "score": "0.57903147", "text": "@Override\n\tpublic void chocar() {\n\t\t\n\t}", "title": "" }, { "docid": "7846476d210d55d45e5540a9c92b1ce3", "score": "0.57903147", "text": "@Override\n\tpublic void chocar() {\n\t\t\n\t}", "title": "" }, { "docid": "54b1134554bc066c34ed30a72adb660c", "score": "0.5788234", "text": "@Override\n\tprotected void initData() {\n\n\t}", "title": "" }, { "docid": "54b1134554bc066c34ed30a72adb660c", "score": "0.5788234", "text": "@Override\n\tprotected void initData() {\n\n\t}", "title": "" }, { "docid": "0cc40600dd2e7cb9f56bd77995e01fc3", "score": "0.5780891", "text": "@Override\n\tpublic void Miow() {\n\t\t\n\t}", "title": "" }, { "docid": "a5600ed00582d8ca8d293829dcfd6c38", "score": "0.57797045", "text": "private void Syso() {\n\r\n\t}", "title": "" }, { "docid": "0a14b2c4ac9647e6bc7077e1e653d540", "score": "0.57781726", "text": "@Override\n \tprotected int getSize() {\n \t\treturn 0;\n \t}", "title": "" }, { "docid": "7d110d5ea1b4795727b052c3f897a146", "score": "0.5776224", "text": "public void ligar() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "e022c47f335a39c6bdb94a0f49a4e940", "score": "0.5767807", "text": "@Override\r\n\tpublic void parar() {\n\t\t\r\n\t}", "title": "" }, { "docid": "518a761521ca9f5cb8a8055b32b72cda", "score": "0.57589173", "text": "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "title": "" }, { "docid": "518a761521ca9f5cb8a8055b32b72cda", "score": "0.57589173", "text": "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "title": "" }, { "docid": "900d30c04323cde584c73c5ffa48d9cf", "score": "0.5757801", "text": "@Override\n\t\tpublic void visitEnd() {\n\n\t\t}", "title": "" }, { "docid": "ebfe1bb4dd1c0618c0fad36d9f7674b4", "score": "0.57514423", "text": "@Override\n protected void initialize() {\n\n }", "title": "" }, { "docid": "0adb5f1f1c75684eab047201533dcfe7", "score": "0.57495934", "text": "protected void mo5609b() {\n }", "title": "" }, { "docid": "c16c8d1ea4a8c8572e4aa91460503742", "score": "0.57494617", "text": "private void Initalization() {\n\t\t\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.57491463", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.57491463", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.57491463", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "b938c58260ac0b899b5e73492c412a69", "score": "0.57377213", "text": "@Override\r\n\t\t\t\t\t\r\n\t\t\t\t\tpublic void leerMarkiert() {\n\t\t\t\t\t\t\r\n\t\t\t\t\t}", "title": "" }, { "docid": "b938c58260ac0b899b5e73492c412a69", "score": "0.57377213", "text": "@Override\r\n\t\t\t\t\t\r\n\t\t\t\t\tpublic void leerMarkiert() {\n\t\t\t\t\t\t\r\n\t\t\t\t\t}", "title": "" }, { "docid": "b938c58260ac0b899b5e73492c412a69", "score": "0.57377213", "text": "@Override\r\n\t\t\t\t\t\r\n\t\t\t\t\tpublic void leerMarkiert() {\n\t\t\t\t\t\t\r\n\t\t\t\t\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.57341826", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.57341826", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.57341826", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.57341826", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "734b1972ec29b58535c294e3962d017d", "score": "0.5732932", "text": "@Override\n\tpublic void generar() {\n\t\t\n\t}", "title": "" }, { "docid": "4da4d5cf96c032296a894fc6e8d76283", "score": "0.5718805", "text": "@Override\n\tpublic void beCagey() {\n\t\t\n\t}", "title": "" }, { "docid": "a8f4d3149e0f7a43b23b53ce69363fd6", "score": "0.57184815", "text": "public void mo5202b() {\n }", "title": "" }, { "docid": "c2a6308317d4e5fc230ea7d2fb55fc1b", "score": "0.5715011", "text": "@Override\n\tpublic void update() {\n\t\t// TODO Auto-generated method stub\n\t\t\n\t}", "title": "" } ]
05e7eaa3c6c9610873b9120f5404f331
method for the button sign out, which calls the signOut() method. return the signOut() method.
[ { "docid": "6adde97a9ef261d16074bc05939f7238", "score": "0.76597273", "text": "private void buttonSignOut() {\n buttonSignOut = (Button) findViewById(R.id.buttonSignOut);\n buttonSignOut.setOnClickListener(new View.OnClickListener() {\n public void onClick(View view) {\n signOut();\n }\n });\n }", "title": "" } ]
[ { "docid": "23d46bbef819b2d60da44ea2eae97331", "score": "0.83671534", "text": "public void signOut();", "title": "" }, { "docid": "4dac54e3e36f8e7b51d3bb41d17043a1", "score": "0.83013153", "text": "public abstract void signOut();", "title": "" }, { "docid": "2ae27a1e15a5bb3d8aa09be48d7d8589", "score": "0.8160336", "text": "signOut(){}", "title": "" }, { "docid": "968aa7f83d04804d5f7c8f2d67a8ed9d", "score": "0.79317665", "text": "@Override\r\n\tpublic void signOut() {\n\t\t\r\n\t}", "title": "" }, { "docid": "9a9ce2864f9c803bc651859ef2049494", "score": "0.7696374", "text": "public JButton getSignOut() {\n return signOut;\n }", "title": "" }, { "docid": "2474931acfb46e172cb1b775258c9be9", "score": "0.7670158", "text": "private void signOut () {\n mAuth.signOut();\n\n }", "title": "" }, { "docid": "f52388dfbe7516d2f8c27a2052945d9b", "score": "0.76689214", "text": "public SignIn logout() {\n\n\t\t// driver.manage().timeouts().pageLoadTimeout(220,TimeUnit.SECONDS);\n\t\tWebElement btnMore = commonLibrary\n\t\t\t\t.isExist(UIMAP_Home.btnTitleMore, 100);\n\t\tif (btnMore != null) {\n\t\t\t// commonLibrary.highlightElement(btnMore);\n\t\t\tif ((browsername.contains(\"internet\")))\n\t\t\t\tcommonLibrary.clickMethod(btnMore, \"More\");\n\t\t\telse\n\t\t\t\tcommonLibrary.clickMethod(btnMore, \"More\");\n\t\t}\n\n\t\tWebElement lnkSignOut = commonLibrary.isExist(\n\t\t\t\tBy.linkText(UIMAP_Home.lnkTextSignOut), 100);\n\t\tif (lnkSignOut != null)\n\t\t\tif ((browsername.contains(\"internet\")))\n\t\t\t\tcommonLibrary.clickJS(lnkSignOut, \"Sign Out\");\n\t\t\telse\n\t\t\t\tcommonLibrary.clickLinkWithWebElementWithWait(lnkSignOut,\n\t\t\t\t\t\t\"Sign Out\");\n\n\t\tWebElement btnIdLogin = commonLibrary.isExistNegative(\n\t\t\t\tUIMAP_SignIn.txtSignInHeader, 10);\n\t\tif (btnIdLogin != null\n\t\t\t\t&& driver.getCurrentUrl().toLowerCase()\n\t\t\t\t\t\t.contains(UIMAP_SignIn.txtSigninTitleMsg)) {\n\t\t\treport.updateTestLog(\"Verify Logout\",\n\t\t\t\t\t\"Sign In to Lexis Advance screen is displayed\", Status.PASS);\n\t\t} else {\n\t\t\treport.updateTestLog(\"Verify Logout\",\n\t\t\t\t\t\"Sign In to Lexis Advance screen is NOT displayed\",\n\t\t\t\t\tStatus.DONE);\n\t\t}\n\n\t\treturn new SignIn(scriptHelper);\n\t}", "title": "" }, { "docid": "0ba0b0ed1147068233aab016542771af", "score": "0.7589289", "text": "private void signOut() {\n mAuth.signOut();\n\n }", "title": "" }, { "docid": "7d8fe1475f37fdef24b13dd092d49d68", "score": "0.7554525", "text": "@Override\n public void onClick(View v) {\n signOut();\n }", "title": "" }, { "docid": "b614891e42e9f9c16954bc0245fe93f0", "score": "0.74876076", "text": "void onSignOut();", "title": "" }, { "docid": "5e04b558ad5fd5c611719b90ed291995", "score": "0.7355898", "text": "public void signOut() {\n mAuth.signOut();\n }", "title": "" }, { "docid": "56e2433045c3cd00c482e09eea9b592a", "score": "0.72397757", "text": "public void onClick(View v) {\n signOut();\n }", "title": "" }, { "docid": "a0ca14569d69ad574bb765cef76709a4", "score": "0.72316706", "text": "public static void nav_Signout()\n\t{\n\t\tbLogOutStatus = false;\n\t\tif(bLoginStatus || WebObjectUtil.isElementPresent(login.getNav_SignOutLink()))\n\t\t{\n\t\t\ttry {\n\t\t\tWebDriver driver = WebDriverUtil.getDriver();\n\t\t\tPageFactory.initElements(driver, login);\n\t\t\tif (WebObjectUtil.isElementPresent(login.getNav_SignOutLink())){\n\t\t\tWebObjectUtil.clickElement(login.getNav_SignOutLink());\n\t\t\t}\n/*\t\t\tWebElement signOut = WebObjectUtil.getElementByText(\"Sign Out\");\n\t\t\tif (signOut != null){\n\t\t\t\tsignOut.click();\n\t\t\t}\n*/\n\t\t\tLoggerUtil.writeStatusLog(WebObjectUtil.isElementPresent(login.getNav_userId()), \"Verify Signout\", \"user Sign out\");\n\t\t\t\n\t\t\tbLoginStatus=false;\n\t\t\t} catch( Exception e) {\n\t\t\t\tLoggerUtil.log_type_info(\"Navigator - Issue with Signout\" );\n\t\t\t}\n\t\t\t\n\t\t}\n\t\tbLoginStatus=false;\n\t}", "title": "" }, { "docid": "4c3f057984fcaee8cf68267e7dc1a62e", "score": "0.72125393", "text": "private void signOut() {\n Log.d(TAG, \"signOut: \");\n Auth.GoogleSignInApi.signOut(mGoogleApiClient).setResultCallback(\n new ResultCallback<Status>() {\n @Override\n public void onResult(Status status) {\n // [START_EXCLUDE]\n updateUI(false,null);\n // [END_EXCLUDE]\n }\n });\n }", "title": "" }, { "docid": "248ae873a03bd82a50660902f12b20ed", "score": "0.7112772", "text": "public void signOut() {\n myAuth.signOut();\n AccountActivity.this.finish(); //finish the activity for update all data\n }", "title": "" }, { "docid": "02854a23f74124254a8bc804f705a548", "score": "0.70817566", "text": "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tsignOut();\n\t\t\t}", "title": "" }, { "docid": "75a229c20042444c3c389f287402e3a0", "score": "0.706638", "text": "private void handleSignOutClick(){\n mAuth.signOut();\n mCurrentUser = null;\n Toast.makeText(MainActivity.this, \"Successfully signed out\", Toast.LENGTH_SHORT).show();\n }", "title": "" }, { "docid": "b86c368d004fe75ae3e34b0f55517f6d", "score": "0.7015356", "text": "private void signOutclicked() {\n mSignInClicked = false;\n Games.signOut(mGoogleApiClient);\n }", "title": "" }, { "docid": "abca93566384ca33ea7a6b382e7cdd52", "score": "0.70046973", "text": "@Override\n\tpublic void logoutGPGS() {\n\t mSignInClicked = false;\n\t Games.signOut(mGoogleApiClient);\n\t}", "title": "" }, { "docid": "df88882c20107b6ca8e53702a2d9e012", "score": "0.69863576", "text": "private void signOut(){\n Observer observer = ObserverFactory.create(ObserverFactory.SIGN_OUT);\n observer.setSubject(auth);\n observer.setOnUpdateListener(obj -> {\n if(auth.getCurrentUser() != null) {\n Toast.makeText(this, \"Could not log out\", Toast.LENGTH_SHORT).show();\n } else {\n clearSettingsPreferences();\n signIn();\n }\n });\n auth.signOut(this);\n }", "title": "" }, { "docid": "9ce9bc6ef19d2c744b495e7f1552b029", "score": "0.69847125", "text": "private void signOut() {\n Log.d(TAG, \"signOut()\");\n\n mGoogleSignInClient.signOut().addOnCompleteListener(this,\n task -> {\n if (task.isSuccessful()) {\n Log.d(TAG, \"signOut(): success\");\n } else {\n handleException(task.getException(), getString(R.string.sing_out_error));\n }\n onDisconnected();\n });\n }", "title": "" }, { "docid": "f89149915ea92750a8b3e1ffce5fb4d7", "score": "0.69834477", "text": "private void signOut() {\n Auth.GoogleSignInApi.signOut(mGoogleApiClient).setResultCallback(\n new ResultCallback<Status>() {\n @Override\n public void onResult(Status status) {\n // [START_EXCLUDE]\n // [END_EXCLUDE]\n }\n });\n }", "title": "" }, { "docid": "8d03c7e4778c24e5c1d29042e4b68dc4", "score": "0.6922382", "text": "public AuthenticationPage clickLogoutBtn(){\n //log out....\n logoutBtn.click();\n AuthenticationPage authenticationPage = new AuthenticationPage(driver);\n return authenticationPage;\n }", "title": "" }, { "docid": "135b6b9c278e5a05fde63c577cc81cc8", "score": "0.69159937", "text": "private void signOut() {\n // Firebase sign out\n mAuth.signOut();\n\n // Google sign out\n mGoogleSignInClient.signOut().addOnCompleteListener(this,\n new OnCompleteListener<Void>() {\n @Override\n public void onComplete(@NonNull Task<Void> task) {\n updateUI(null);\n }\n });\n }", "title": "" }, { "docid": "6f15920dca86091e1472fc7b36c6340a", "score": "0.6906832", "text": "private void onSignedOut() {\n\t mSignInButton.setEnabled(true);\n\t mSignOutButton.setEnabled(false);\n\t mRevokeButton.setEnabled(false);\n\t}", "title": "" }, { "docid": "e64f9fc3091822e2e793aaf0d7b6ee2f", "score": "0.68680966", "text": "public void btnLogout(View view) {\n logout();\n }", "title": "" }, { "docid": "7f33e60d4831f9c71a6d89feca37e6b2", "score": "0.6865586", "text": "@Override\n\tpublic void signOut() {\n\t\ttry\n\t\t{\n\t\t\trunOnUiThread(new Runnable() {\n\t\t\t\t//@Override\n\t\t\t\tpublic void run()\n\t\t\t\t{\n\t\t\t\t\t_gameHelper.signOut();\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\tGdx.app.log(\"Android\", \"Sign out failure: \" + e.getMessage());\n\t\t}\n\t}", "title": "" }, { "docid": "adabfee5b4d6cb91a3b2deb4a819b1d0", "score": "0.68583876", "text": "private void signOut() {\n mGoogleSignInClient.signOut()\n .addOnCompleteListener(this, new OnCompleteListener<Void>() {\n @Override\n public void onComplete(@NonNull Task<Void> task) {\n Toast.makeText(SignIn.this, \"Sign Out Success\", Toast.LENGTH_SHORT).show();\n }\n });\n }", "title": "" }, { "docid": "0ac0599798a284a2102cdd2e5e50caa5", "score": "0.6832112", "text": "private void signOut() {\n Auth.GoogleSignInApi.signOut(mGoogleApiClient).setResultCallback(\n new ResultCallback<Status>() {\n @Override\n public void onResult(Status status) {\n Intent i2 = new Intent(MapsActivity.this, MainActivity.class);\n startActivity(i2);\n }\n });\n }", "title": "" }, { "docid": "04891a0249f651d66b7b05949cc3a0cb", "score": "0.68044794", "text": "public void signOut() {\n Log.d(LOG_TAG, \"Signing out...\");\n\n if (getCurrentIdentityProvider() != null) {\n getCurrentIdentityProvider().signOut();\n localStorage.delete(AUTHORIZATION);\n }\n }", "title": "" }, { "docid": "739778ef0a2a97a1fceacba496e0439e", "score": "0.6794531", "text": "public void signOutSessionUser() {\n fbAuth.signOut();\n }", "title": "" }, { "docid": "b7db436a6ffa324a4e1e68ef5198e5cc", "score": "0.6789995", "text": "public void onLogout() {\n AccountKit.logOut();\n // logout of Login Button\n LoginManager.getInstance().logOut();\n\n //launchLoginActivity();\n }", "title": "" }, { "docid": "4285bbfaeec8537e613c111b6e107b15", "score": "0.67689234", "text": "private void signOut() {\n Assert.assertTrue(ChromeSigninController.get().isSignedIn());\n\n // Open the account preferences.\n final Preferences prefActivity =\n mActivityTestRule.startPreferences(AccountManagementFragment.class.getName());\n InstrumentationRegistry.getInstrumentation().waitForIdleSync();\n\n // Click on the signout button.\n TestThreadUtils.runOnUiThreadBlocking(() -> clickSignOut(prefActivity));\n\n // Accept the warning dialog.\n acceptAlertDialogWithTag(prefActivity, AccountManagementFragment.SIGN_OUT_DIALOG_TAG);\n\n // Verify that signout succeeded.\n mTestSignInObserver.waitForSignInEvents(2);\n Assert.assertEquals(1, mTestSignInObserver.mSignInCount);\n Assert.assertEquals(1, mTestSignInObserver.mSignOutCount);\n Assert.assertFalse(ChromeSigninController.get().isSignedIn());\n\n if (!prefActivity.isFinishing()) prefActivity.finish();\n InstrumentationRegistry.getInstrumentation().waitForIdleSync();\n }", "title": "" }, { "docid": "cc6047d554e260ab03a053a469975ca9", "score": "0.6740005", "text": "private void logOut() {\n mAuth.signOut();\n }", "title": "" }, { "docid": "88e1a043d5202dd9478e8a9bfc11c7d4", "score": "0.6738504", "text": "@Test(dependsOnMethods={\"D_Navigate_To_Other_ProfilePage_VerifyMetaDataTags\"})\n\tpublic void E_SignOut(){\n\t\ttest.signOut();\n\t}", "title": "" }, { "docid": "c27c1ea55f8c08a1914bcc686c31668b", "score": "0.67043614", "text": "private void showSignOutDialog(){\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setMessage(R.string.dialog_sign_out)\n .setPositiveButton(R.string.dialog_ok, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n showProgress(true);\n requestMessageProcess(MessageType.SAP_SGONOT_TYPE);\n ReleaseUserInformation();\n Toast.makeText(MainActivity.this, \"Sign out complete\", Toast.LENGTH_SHORT).show();\n Intent loginIt = new Intent(MainActivity.this, SignInActivity.class);\n startActivity(loginIt);\n finish();\n }\n }).setNegativeButton(R.string.dialog_cancel, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n\n }\n });\n builder.show();\n }", "title": "" }, { "docid": "7fa2ab4becc726c4d8d8230648fee8ae", "score": "0.66624767", "text": "public void signOut(View v) {\n // Firebase sign out\n FirebaseAuth mAuth = FirebaseAuth.getInstance();\n mAuth.signOut();\n goToHomeActivity();\n }", "title": "" }, { "docid": "1c2a84ded0359480731ba6e26352ee32", "score": "0.66604173", "text": "private void onSignOutClicked() {\n\t\tisLogOut=true;\n\t if (mGoogleApiClient.isConnected()) {\n\t Plus.AccountApi.clearDefaultAccount(mGoogleApiClient);\n\t mGoogleApiClient.disconnect();\n\t SignInButton signinButton=(SignInButton)findViewById(R.id.sign_in_button);\n\t signinButton.setVisibility(View.VISIBLE);\n\t RelativeLayout welcomeLayour =(RelativeLayout)findViewById(R.id.welcomeLayout);\n\t LinearLayout.LayoutParams welcome_params =new LinearLayout.LayoutParams(LayoutParams.MATCH_PARENT,LayoutParams.MATCH_PARENT);\n\t \t\n\t\t\twelcomeLayour.setLayoutParams(welcome_params);\n\t }\n\n\t \n\t}", "title": "" }, { "docid": "880dbe7fb88aabf82213e6d6edbcaca3", "score": "0.66599977", "text": "public void ClickLogout(View view){\n\n Homeact.logout(this);\n\n\n }", "title": "" }, { "docid": "f841777b07078b50663c2d9c712fd056", "score": "0.664332", "text": "private void signOut()\r\n {\r\n mGoogleSignInClient.signOut().addOnCompleteListener(getActivity(), new OnCompleteListener<Void>() {\r\n @Override\r\n public void onComplete(@NonNull Task<Void> task) {\r\n Intent intent = new Intent(getContext(), GameLogin.class);\r\n intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TASK);\r\n startActivity(intent);\r\n }\r\n });\r\n }", "title": "" }, { "docid": "f530d81756791c41042d38d793ea0cb1", "score": "0.6637509", "text": "public BasePage clickLogOutButton () {\n logOutButton.click();\n return new BasePage(driver);\n }", "title": "" }, { "docid": "4b23a99981e1524b6c42a6d0b1f856c7", "score": "0.6615146", "text": "@Override\n public void onClick(View v) {\n signOut();\n\n startActivity(new Intent(getActivity(), login.class));\n }", "title": "" }, { "docid": "518a8857a4ce4295ac273576bd1e8be3", "score": "0.65352416", "text": "@Override\n public void onClick(View view) {\n ViewGroup root = (ViewGroup) getWindow().getDecorView().getRootView();\n clearDim(root);\n // Dismiss the popup window\n cPopupWindow.dismiss();\n // Sign out\n AuthUI.getInstance()\n .signOut(MainActivity.this)\n .addOnCompleteListener(new OnCompleteListener<Void>() {\n public void onComplete(@NonNull Task<Void> task) {\n // user is now signed out\n startActivity(new Intent(MainActivity.this, MultipleLoginActivity.class));\n finish();\n }\n });\n\n }", "title": "" }, { "docid": "1184498f7bc6d3c2262a015440377279", "score": "0.6535188", "text": "private JButton getBtnLogout() {\r\n\t\tif (btnLogout == null) {\r\n\t\t\tbtnLogout = new JButton();\r\n\t\t\tbtnLogout.setLocation(new Point(990, 30));\r\n\t\t\tbtnLogout.setText(\"Sign Out\");\r\n\t\t\tbtnLogout.setIcon(new ImageIcon(getClass().getResource(\r\n\t\t\t\t\t\"/image/Log-Out-icon.png\")));\r\n\t\t\tbtnLogout.setSize(new Dimension(151, 40));\r\n\t\t\tbtnLogout.addActionListener(new ActionListener() {\r\n\t\t\t\t@Override\r\n\t\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\t\tint sr = JOptionPane.showConfirmDialog(null,\r\n\t\t\t\t\t\t\t\"Are you sure to want to quit ?\");\r\n\t\t\t\t\tif (sr == 0) {\r\n\t\t\t\t\t\t//System.exit(1);\r\n\t\t\t\t\t\tMDControlPanel.this.dispose();\r\n\t\t\t\t\t\tnew Wellcome().setVisible(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 btnLogout;\r\n\t}", "title": "" }, { "docid": "ac7418b2f6edb84cd60c6810c62d0a39", "score": "0.6521006", "text": "public void logout(View view){\n\n FirebaseAuth.getInstance().signOut();\n startActivity(new Intent(getApplicationContext(),Login.class));\n Toast.makeText(MainActivity.this, \"You have signed out\", Toast.LENGTH_SHORT).show();\n finish();\n\n }", "title": "" }, { "docid": "4367b9f971152a78ceb56dc62e2c662b", "score": "0.6513177", "text": "public void signOut()\n {\n Intent intent = new Intent(this,MainActivity.class);\n startActivity(intent);\n\n }", "title": "" }, { "docid": "81977672d27cb19a71b1f6c547a1d066", "score": "0.64963347", "text": "public void signOut(View view){\n Const.USER_ID = -1;\n SharedPreferences preferences = getSharedPreferences(Const.SHARED_PREFERENCES_NAME, Context.MODE_PRIVATE);\n SharedPreferences.Editor editor = preferences.edit();\n editor.putInt(Const.SHARED_FILED_USER_ID, Const.USER_ID);\n editor.commit();\n finish();\n Toast.makeText(this,R.string.sign_out_success,Toast.LENGTH_SHORT).show();\n }", "title": "" }, { "docid": "68cb62f264deff0d21c76c70c095d665", "score": "0.64837414", "text": "@Override\n public void logout() {\n FirebaseAuth.getInstance().signOut();\n }", "title": "" }, { "docid": "226b3c68d203282e0f686199f3d673a5", "score": "0.6436582", "text": "@Override\n public void onFBSignOut() {\n Auth.GoogleSignInApi.signOut(mGoogleApiClient).setResultCallback(new ResultCallback<Status>() {\n @Override\n public void onResult(@NonNull Status status) {\n Toast.makeText(MainActivity.this,\"LOG OUT\",Toast.LENGTH_SHORT).show();\n }\n }); }", "title": "" }, { "docid": "28d6cece3dafa420bcd860ad28605f3f", "score": "0.64296293", "text": "@Override\n public void onClick(View arg1) {\n session.logoutUser();\n }", "title": "" }, { "docid": "99e331a63789d46e4f747235ebf57bc0", "score": "0.641439", "text": "public void Click_MeLogout() throws Exception{\n\t\t\tfunction.click(Me_Button_Logout);\n\t\t}", "title": "" }, { "docid": "c48f815c802cdc5ff8f2f29822e89ebe", "score": "0.64058155", "text": "@Override\n public void onClick(DialogInterface dialog, int which) {\n FirebaseAuth.getInstance().signOut();\n finish();\n }", "title": "" }, { "docid": "2d6729b4c86d7f961ab0ebe8431de51d", "score": "0.6364815", "text": "private void signOut(){\n //Der Google-Account wird abgemeldet\n Toast.makeText(context,R.string.logoutSuccessful, Toast.LENGTH_SHORT).show();\n GoogleSignInOptions gso = new GoogleSignInOptions.Builder(GoogleSignInOptions.DEFAULT_SIGN_IN)\n .requestEmail()\n .build();\n GoogleSignIn.getClient(context, gso).signOut()\n .addOnCompleteListener(context, new OnCompleteListener<Void>() {\n @Override\n public void onComplete(@NonNull Task<Void> task) {\n //Nachdem der Google-Account abgemeldet wurde wird auch noch der FirebaseUser abgemeldet\n FirebaseAuth mAuth = FirebaseAuth.getInstance();\n mAuth.signOut();\n //Es wird zum Login weitergeleitet\n Intent intent = new Intent(context,Login.class);\n startActivity(intent);\n //Activity wird geschlossen\n context.finish();\n }\n });\n }", "title": "" }, { "docid": "a1eaaf7e52cf2ed509b900d00d68476f", "score": "0.63591224", "text": "public void signOut(ResultCallback callBack) {\n Auth.GoogleSignInApi.signOut(mGoogleApiClient).setResultCallback(callBack);\n }", "title": "" }, { "docid": "6d154489e037970a801a485e1728ec2b", "score": "0.63542974", "text": "public void logout() {\n }", "title": "" }, { "docid": "2b935c7f3cae24c210064dcc5c6a0787", "score": "0.6351807", "text": "public void signOut(ActionEvent event) {\n\t\ttry {\n\t\t\tsaveActivityLog(\"Logged out\");\n\t\t\tLoginController.currentUser = null; // no user logged in now\n\t\t\t((Node)event.getSource()).getScene().getWindow().hide();\n\t\t\tStage primaryStage = new Stage();\n\t\t\tFXMLLoader loader = new FXMLLoader();\n\t\t\tPane root = loader.load(getClass().getResource(\"/application/Login.fxml\").openStream());\n\t\t\tScene scene = new Scene(root);\n\t\t\tscene.getStylesheets().add(getClass().getResource(\"application.css\").toExternalForm());\n\t\t\tprimaryStage.setScene(scene);\n\t\t\tprimaryStage.setTitle(\"Restaurant Management System\");\n\t\t\tprimaryStage.show();\n\t\t\t\n\t\t} catch (Exception e) {\n\t\t\tSystem.err.println(\"Exception Caught\");\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "title": "" }, { "docid": "e342c94b83b80ed2982db9f7bdcf27f5", "score": "0.6350644", "text": "@POST\n \t@Path(\"/user/logout\")\n \tString logout();", "title": "" }, { "docid": "c766940dbac714422fe8d1b1213a4845", "score": "0.63490814", "text": "@Override\n public void onClick(View v) {\n FirebaseAuth.getInstance().signOut();\n // send the user to the Login activity\n // back to the login screen\n startActivity(new Intent(ProfileActivity.this, LoginActivity.class));\n }", "title": "" }, { "docid": "27434bcb6adea15a5c45a8b99b362cbf", "score": "0.63449144", "text": "@Override\n\tpublic void logout() {\n\n\t}", "title": "" }, { "docid": "c88081bb45d6be6a55cddd4e994bd1f9", "score": "0.63328767", "text": "@Override\n public void onClick(DialogInterface dialog, int which) {\n FirebaseAuth.getInstance().signOut();\n finish();\n }", "title": "" }, { "docid": "efd35bec87adc59b771b3df409c8500c", "score": "0.63320744", "text": "public static Promise<Result> logout()\n {\n return BaseAuthenticationController.logout();\n }", "title": "" }, { "docid": "4c36ce78dab84f9664aa055c1937e5d9", "score": "0.6313116", "text": "@Override\n\tpublic void logout() {\n\t\t\n\t}", "title": "" }, { "docid": "7d487e605f384089fbe8ead442128626", "score": "0.6311398", "text": "@Override\r\n\tpublic void logout() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2fb55b1ef23988ef50c44ab2f395f796", "score": "0.6290206", "text": "private void signOut() {\n PrefManager prefManager = new PrefManager(getApplicationContext());\n prefManager.setPassword(newPassword.getText().toString().trim());\n Intent loginActivity = new Intent(getApplicationContext(), LoginActivity.class);\n startActivity(loginActivity);\n finish();\n }", "title": "" }, { "docid": "b2ee71639114aecb8489083f3c9b7f87", "score": "0.62897605", "text": "@Override\n\tpublic void signout(String username, String password) throws SQLException {\n\n\t}", "title": "" }, { "docid": "3deeb95f47f7ffbf8aa1d83061ce295a", "score": "0.6282504", "text": "public static void signOut(){\n listenerRegistration.remove();\n //Clear preferences\n user=null;\n }", "title": "" }, { "docid": "ac8266816e5335febe1cd07b93630bae", "score": "0.62798136", "text": "public static void browseridSignout() {\n \tsession.remove(\"trusted_user\");\n \tresponse.removeCookie(\"email\"); \t// <-- keep congruent with the form email cookie \n \trenderText(\"okay\");\n }", "title": "" }, { "docid": "b003b1901918f6f3a92f994191726838", "score": "0.6274385", "text": "public Result logout() {\n return null;\n }", "title": "" }, { "docid": "aa08a11f4118771f404294a1314fd670", "score": "0.6267513", "text": "@Override\n\tpublic User signOut(User user) {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "4ee1dc3a20bb6ca1ca11707b01a367e2", "score": "0.6265084", "text": "@Override\n public void onClick(DialogInterface dialogInterface, int i) {\n fAuth.signOut();\n //Redirect activity to Login\n redirectActivity(activity, Login.class);\n finish();\n }", "title": "" }, { "docid": "2cc25b5447d98828fdebbaee5258bf85", "score": "0.62566996", "text": "public abstract boolean showLogout();", "title": "" }, { "docid": "417994849a7e90cdd68ad88ce18483f2", "score": "0.62513417", "text": "private void logout() {\n mAuth.signOut();\n //closing activity\n finish();\n //starting login activity\n Intent intent = new Intent(SettingActivity.this, PublicHomeActivity.class);\n startActivity(intent);\n\n }", "title": "" }, { "docid": "a1b8638ece1741b493bfb6354b2aaa23", "score": "0.6249285", "text": "private void signOut() throws Exception {\n TestThreadUtils.runOnUiThreadBlocking(\n () -> PrefServiceBridge.getInstance().setSupervisedUserId(\"\"));\n\n // Sign out of account.\n int currentCallCount = mTestObserver.onSigninStateChangedCallback.getCallCount();\n TestThreadUtils.runOnUiThreadBlocking(\n () -> SigninManager.get().signOut(SignoutReason.SIGNOUT_TEST));\n mTestObserver.onSigninStateChangedCallback.waitForCallback(currentCallCount, 1);\n Assert.assertNull(SigninTestUtil.getCurrentAccount());\n\n // Remove observer\n TestThreadUtils.runOnUiThreadBlocking(\n () -> SigninManager.get().removeSignInStateObserver(mTestObserver));\n }", "title": "" }, { "docid": "e4c5c5e835423dbe06ec8bb2c5ac1bbc", "score": "0.6232542", "text": "public void logoutUser() {\r\n // TODO\r\n }", "title": "" }, { "docid": "cd0de04b4c645945310313dd93df33e1", "score": "0.62298024", "text": "@Override\n public void onClick(View arg0) {\n session.logoutUser();\n finish();\n }", "title": "" }, { "docid": "c69e6bcaf987aca705c621d2755aa301", "score": "0.62258947", "text": "public void ClickLogout(View view){AdminHome.salir(this);}", "title": "" }, { "docid": "9e8b5c5f7dd68b21588c15680940fb09", "score": "0.6225684", "text": "public static void logOut(){\n\t\t\n\t\tLOGGER.info(\"############ INSIDE LOGOUT ########################\");\n\t\t//sign out could be different in diff pages...u can driver.findelement(by)....and pass the locator to this sign out method\n\t\tWelcomePage_PO.clickSignOut();\n\t\tSeleniumUtil.ValidateWebElementPresence(By.className(HomePage_PO.HOME_PAGE_SIGNIN_CLASSNAME));\n\t\t\t\n\t\t//Assert.assertTrue(\"LogOut Successful\", true);\n\t\tLOGGER.debug(\"############ LOGOUT SUCCESSFUL ########################\");\n\t\t\n\t\t\t\t\n\t\t\n\t}", "title": "" }, { "docid": "6fc86cc6b0c2a379d97b0ae8dc156f4e", "score": "0.6225083", "text": "void logoutAPI();", "title": "" }, { "docid": "6d5c1a4af9caaea7ea7b55e35bc55469", "score": "0.62240666", "text": "public void signOut() {\n dLibraAccessToken = null;\n myExpAccessToken = null;\n user = null;\n new CookieUtils().remove(DLIBRA_KEY);\n new CookieUtils().remove(MYEXP_KEY_TOKEN);\n new CookieUtils().remove(MYEXP_KEY_SECRET);\n }", "title": "" }, { "docid": "5cf5db72ebac059e2b3e9ed9edb0d445", "score": "0.62074995", "text": "private JMenuItem getMniSignout() {\r\n\t\tif (mniSignout == null) {\r\n\t\t\tmniSignout = new JMenuItem();\r\n\t\t\tmniSignout.setText(\"Exit\");\r\n\t\t\tmniSignout.setMnemonic(KeyEvent.VK_E);\r\n\t\t\tKeyStroke keyStroke = KeyStroke.getKeyStroke(\"control Q\");\r\n\t\t\tmniSignout.setAccelerator(keyStroke);\r\n\t\t\tmniSignout.setIcon(new ImageIcon(getClass().getResource(\r\n\t\t\t\t\t\"/image/Log-Out-icon.png\")));\r\n\t\t\tmniSignout.addActionListener(new ActionListener() {\r\n\t\t\t\t@Override\r\n\t\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\t\tint sr = JOptionPane.showConfirmDialog(null,\r\n\t\t\t\t\t\t\t\"Are you sure to want to quit ?\");\r\n\t\t\t\t\tif (sr == 0) {\r\n\t\t\t\t\t\tSystem.exit(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\treturn mniSignout;\r\n\r\n\t\t/*\r\n\t\t * mniSignout.addActionListener(new java.awt.event.ActionListener() {\r\n\t\t * public void actionPerformed(java.awt.event.ActionEvent e) {\r\n\t\t * MDControlPanel.this.dispose(); } });\r\n\t\t */\r\n\t}", "title": "" }, { "docid": "5db1928a6c7fb2ea0f864ce8c644d17a", "score": "0.6205151", "text": "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tlogoutUser();\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "457c38a2e391737fd8a228dd9053488d", "score": "0.6183323", "text": "private void logout() {\n FirebaseAuth.getInstance().signOut();\n Intent i = new Intent(getBaseContext(), LoginActivity.class);\n startActivity(i);\n finish();\n }", "title": "" }, { "docid": "647c5b6237cbce137be92d0831339360", "score": "0.6179236", "text": "public static Result logout() {\n session().clear();\n return ok(views.html.logout.render());\n // throw new NotImplementedError();\n }", "title": "" }, { "docid": "1ec841ee03f0efe00c5ffc52325fd4de", "score": "0.6177157", "text": "public void logout() {\n\n\t}", "title": "" }, { "docid": "1f91b0c8a4043d594424f4b83f9aa6da", "score": "0.6164347", "text": "public void logOut(){\n\t\tif(sender!=null)\n\t\tsender.sendMessage(new Message('X',-1, \"Log out\"));\n\t\tTabletApp.logOut(loginPanel);\n\t}", "title": "" }, { "docid": "1857f67e6b373481161babc4bea05234", "score": "0.6154743", "text": "private void logout() {\n Log.d(\"logout\", \"Enter logout method in MainActivity class.\");\n //Display alert with justification about why permit is necessary\n AlertDialog.Builder alert = displayAlertDialogNoInput(this, \"Logout\", \"Log out Timeout!\");\n alert.setPositiveButton(\"Continue\",new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n ((LogOutTimer)AutoLogOutService.getLogOutTimer()).start();\n }\n\n }).setNegativeButton(\"LogOut\",new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n callFinish();\n }//End of on Click method\n\n }).show();\n Log.d(\"logout\", \"Exit logout method in MainActivity class.\");\n }", "title": "" }, { "docid": "6d02b361c24f8b4be547848c54fda89d", "score": "0.61349523", "text": "@Override\n\t\tpublic void onLogout() {\n\t\t}", "title": "" }, { "docid": "17a9b06d03e8b34aecb6bd251d6dad64", "score": "0.6125992", "text": "@Override\r\npublic void LogOut() {\n\tthis.LogOutRequest(gui, lr);\r\n\t\r\n}", "title": "" }, { "docid": "c963d05bb554edd668a2f6bd343d9da7", "score": "0.612589", "text": "public void signoutapp(WebDriver driver) {\r\n\t\twd.movetoelement(driver, signoutimg);\r\n\t\tsignoutlink.click();\r\n\t\t\r\n\t}", "title": "" }, { "docid": "fb3cf39971feded17868e46b85c69ccf", "score": "0.61202645", "text": "public void onLogout(View view) {\n AccountKit.logOut();\n launchLoginActivity();\n }", "title": "" }, { "docid": "225e8d5a78e84cfa0c0abbf8eb4bb226", "score": "0.6120093", "text": "private void logout() {//logs the user out\r\n mAuth.signOut();\r\n Intent myIntent = new Intent(getActivity(), MainActivity.class);\r\n startActivity(myIntent);\r\n getActivity().finish();\r\n }", "title": "" }, { "docid": "1a9eb95ea7e50d580f87b8e2b56d6787", "score": "0.61118674", "text": "public String logout() {\n HttpSession session = SessionUtils.getSession();\n session.invalidate();\n return \"login\";\n }", "title": "" }, { "docid": "29c108f65ce0c64a53773c3602696400", "score": "0.61056286", "text": "public String logout() {\n\t\tif(isLoggedIn()){\n\t\t\tsession.remove(\"user\");\n\t\t\taddSuccessMessage(\"Success! \", \"You have been logged out\");\n\t\t\treturn SUCCESS;\n\t\t}else{\n\t\t\treturn \"permission_error\";\n\t\t}\n\t}", "title": "" }, { "docid": "470e960f6d5fa931e7245fbadb49b851", "score": "0.61052", "text": "void logout();", "title": "" }, { "docid": "d4e960c88393d9d4d4fc8a1ab42b93e2", "score": "0.6098342", "text": "public static void signOut(Solo solo, Resources resources)\n {\n /* Assert we are in the MyBooks activity */\n solo.assertCurrentActivity(resources.getString(R.string.wrong_activity), MyBooksActivity.class);\n\n solo.clickOnText(resources.getString(R.string.navbar_text_label_4));\n\n solo.waitForText(resources.getString(R.string.sign_out), 1, SHORT_WAIT);\n\n solo.clickOnButton(resources.getString(R.string.sign_out));\n\n /* Wait for the login activity after signing out */\n solo.waitForActivity(LoginActivity.class, (int) SHORT_WAIT);\n }", "title": "" }, { "docid": "b75835372a74a47d848713b619c0bb06", "score": "0.6088635", "text": "public void logout() {\n FirebaseAuth.getInstance().signOut();\n Log.i(TAG, \"User logging out\");\n Toast.makeText(getContext(), \"Logging out\", Toast.LENGTH_SHORT).show();\n getActivity().finish();\n }", "title": "" }, { "docid": "83a5c9bbb0bc43638e564709387e3528", "score": "0.6081682", "text": "private void logOutOtherLogin() {\n\t\tShareSDK.initSDK(getActivity());\n\t\tPlatform qzone = ShareSDK.getPlatform(getActivity(), QQ.NAME);\n\t\tPlatform sinaWeibo = ShareSDK.getPlatform(getActivity(), SinaWeibo.NAME);\n\t\tPlatform wechat = ShareSDK.getPlatform(getActivity(), Wechat.NAME);\n\t\tif (qzone != null) {\n\t\t\tqzone.removeAccount();\n\t\t} else {\n\t\t\tSystem.out.println(\"zuoqq没有授权===\");\n\t\t}\n\t\tif (sinaWeibo != null) {\n\t\t\tsinaWeibo.removeAccount();\n\t\t} else {\n\t\t\tSystem.out.println(\"zuoxina没有授权===\");\n\t\t}\n\t\tif (wechat != null) {\n\t\t\twechat.removeAccount();\n\t\t} else {\n\t\t\tSystem.out.println(\"zuoweixin没有授权===\");\n\t\t}\n\t\t// if (pf != null) {\n\t\t// pf.setPlatformActionListener(new PlatformActionListener() {\n\t\t//\n\t\t// @Override\n\t\t// public void onError(Platform arg0, int arg1, Throwable arg2) {\n\t\t// // TODO Auto-generated method stub\n\t\t// System.out.println(\"zuo退出登录===\" + arg2.toString());\n\t\t// }\n\t\t//\n\t\t// @Override\n\t\t// public void onComplete(Platform arg0, int arg1, HashMap<String,\n\t\t// Object> arg2) {\n\t\t// // TODO Auto-generated method stub\n\t\t// logout();\n\t\t// }\n\t\t//\n\t\t// @Override\n\t\t// public void onCancel(Platform arg0, int arg1) {\n\t\t// // TODO Auto-generated method stub\n\t\t//\n\t\t// }\n\t\t// });\n\n\t\tlogout();\n\t\t// } else {\n\t\t// System.out.println(\"zuo没有退出第三方===\");\n\t\t// logout();\n\t\t// }\n\n\t\t// isValid和removeAccount不开启线程,会直接返回。\n\t}", "title": "" }, { "docid": "f794e063f9e6373a245e632aa41b3064", "score": "0.60816574", "text": "@Test\n\tpublic static void verifyLogout() {\n\t\t\t/*LoginPage.VerifiedLogin(excel1.getCellValue(\"valid\", \"id\"),\n\t\t\t\t\texcel1.getCellValue(\"valid\", \"password\"));*/\n\t\t\t\n\t\t\tLoginPage.VerifiedLogout();\n\t\t\tAssert.assertTrue(waitForElementPresent(LoginScreen.signInButton));\n\t\n\t}", "title": "" }, { "docid": "2ad8843f05517628c58fc9b5081508e4", "score": "0.6081338", "text": "@Override\n\t\t\tpublic void onClick(View v)\n\t\t\t{\n\t\t\t\tdoLogout(LOGOUT);\n\t\t\t}", "title": "" }, { "docid": "67b67454386a458f14e2632c5c3027fe", "score": "0.6075617", "text": "public String logout() {\n\t\tif (client == null || !client.isLoggedIn()) {\n\t\t\treturn \"You have to be logged in for this action.\";\n\t\t}\n\n\t\tboolean logoutSuccessful = client.logout(this);\n\t\tif (logoutSuccessful) {\n\t\t\tchatserver.unregisterTcpChannel(this);\n\t\t\tclient.unregisterPrivateAddress();\n\t\t\treturn \"[success]Successfully logged out.\";\n\t\t} else {\n\t\t\treturn \"Logout failed. Please try again.\";\n\t\t}\n\t}", "title": "" } ]
12912694f155784328cff66e5fcabbde
$ANTLR start "floatnum" C:\\Documents and Settings\\user\\Desktop\\drizzle\\DrizzlePrp\\grammars\\SDLgrammar.g:60:1: floatnum : ( '' )? NATNUM '.' NATNUM ;
[ { "docid": "caf8b06eb90e50632e4b5e37fbc7378d", "score": "0.73057795", "text": "public final SDLgrammarParser.floatnum_return floatnum() throws RecognitionException {\n SDLgrammarParser.floatnum_return retval = new SDLgrammarParser.floatnum_return();\n retval.start = input.LT(1);\n\n Tree root_0 = null;\n\n Token char_literal1=null;\n Token NATNUM2=null;\n Token char_literal3=null;\n Token NATNUM4=null;\n\n Tree char_literal1_tree=null;\n Tree NATNUM2_tree=null;\n Tree char_literal3_tree=null;\n Tree NATNUM4_tree=null;\n\n try {\n // C:\\\\Documents and Settings\\\\user\\\\Desktop\\\\drizzle\\\\DrizzlePrp\\\\grammars\\\\SDLgrammar.g:60:9: ( ( '-' )? NATNUM '.' NATNUM )\n // C:\\\\Documents and Settings\\\\user\\\\Desktop\\\\drizzle\\\\DrizzlePrp\\\\grammars\\\\SDLgrammar.g:60:11: ( '-' )? NATNUM '.' NATNUM\n {\n root_0 = (Tree)adaptor.nil();\n\n // C:\\\\Documents and Settings\\\\user\\\\Desktop\\\\drizzle\\\\DrizzlePrp\\\\grammars\\\\SDLgrammar.g:60:11: ( '-' )?\n int alt1=2;\n int LA1_0 = input.LA(1);\n\n if ( (LA1_0==51) ) {\n alt1=1;\n }\n switch (alt1) {\n case 1 :\n // C:\\\\Documents and Settings\\\\user\\\\Desktop\\\\drizzle\\\\DrizzlePrp\\\\grammars\\\\SDLgrammar.g:60:11: '-'\n {\n char_literal1=(Token)match(input,51,FOLLOW_51_in_floatnum565); \n char_literal1_tree = (Tree)adaptor.create(char_literal1);\n adaptor.addChild(root_0, char_literal1_tree);\n\n\n }\n break;\n\n }\n\n NATNUM2=(Token)match(input,NATNUM,FOLLOW_NATNUM_in_floatnum568); \n NATNUM2_tree = (Tree)adaptor.create(NATNUM2);\n adaptor.addChild(root_0, NATNUM2_tree);\n\n char_literal3=(Token)match(input,52,FOLLOW_52_in_floatnum570); \n char_literal3_tree = (Tree)adaptor.create(char_literal3);\n adaptor.addChild(root_0, char_literal3_tree);\n\n NATNUM4=(Token)match(input,NATNUM,FOLLOW_NATNUM_in_floatnum572); \n NATNUM4_tree = (Tree)adaptor.create(NATNUM4);\n adaptor.addChild(root_0, NATNUM4_tree);\n\n\n }\n\n retval.stop = input.LT(-1);\n\n retval.tree = (Tree)adaptor.rulePostProcessing(root_0);\n adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n \tretval.tree = (Tree)adaptor.errorNode(input, retval.start, input.LT(-1), re);\n\n }\n finally {\n }\n return retval;\n }", "title": "" } ]
[ { "docid": "deec61892ce80176392ee2aaa66cb97c", "score": "0.6279092", "text": "public final void mFLOAT() throws RecognitionException {\n try {\n int _type = FLOAT;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // /Users/ernstl/PostDoc/BU/Eugene/ecosystem/workspace/eugene-v1.9.1/grammar/Eugene.g:3146:5: ( ( '0' .. '9' )+ '.' ( '0' .. '9' )* ( EXPONENT )? | '.' ( '0' .. '9' )+ ( EXPONENT )? | ( '0' .. '9' )+ EXPONENT )\n int alt12=3;\n alt12 = dfa12.predict(input);\n switch (alt12) {\n case 1 :\n // /Users/ernstl/PostDoc/BU/Eugene/ecosystem/workspace/eugene-v1.9.1/grammar/Eugene.g:3146:9: ( '0' .. '9' )+ '.' ( '0' .. '9' )* ( EXPONENT )?\n {\n // /Users/ernstl/PostDoc/BU/Eugene/ecosystem/workspace/eugene-v1.9.1/grammar/Eugene.g:3146:9: ( '0' .. '9' )+\n int cnt6=0;\n loop6:\n do {\n int alt6=2;\n int LA6_0 = input.LA(1);\n\n if ( ((LA6_0 >= '0' && LA6_0 <= '9')) ) {\n alt6=1;\n }\n\n\n switch (alt6) {\n \tcase 1 :\n \t // /Users/ernstl/PostDoc/BU/Eugene/ecosystem/workspace/eugene-v1.9.1/grammar/Eugene.g:\n \t {\n \t if ( (input.LA(1) >= '0' && input.LA(1) <= '9') ) {\n \t input.consume();\n \t }\n \t else {\n \t MismatchedSetException mse = new MismatchedSetException(null,input);\n \t recover(mse);\n \t throw mse;\n \t }\n\n\n \t }\n \t break;\n\n \tdefault :\n \t if ( cnt6 >= 1 ) break loop6;\n EarlyExitException eee =\n new EarlyExitException(6, input);\n throw eee;\n }\n cnt6++;\n } while (true);\n\n\n match('.'); \n\n // /Users/ernstl/PostDoc/BU/Eugene/ecosystem/workspace/eugene-v1.9.1/grammar/Eugene.g:3146:25: ( '0' .. '9' )*\n loop7:\n do {\n int alt7=2;\n int LA7_0 = input.LA(1);\n\n if ( ((LA7_0 >= '0' && LA7_0 <= '9')) ) {\n alt7=1;\n }\n\n\n switch (alt7) {\n \tcase 1 :\n \t // /Users/ernstl/PostDoc/BU/Eugene/ecosystem/workspace/eugene-v1.9.1/grammar/Eugene.g:\n \t {\n \t if ( (input.LA(1) >= '0' && input.LA(1) <= '9') ) {\n \t input.consume();\n \t }\n \t else {\n \t MismatchedSetException mse = new MismatchedSetException(null,input);\n \t recover(mse);\n \t throw mse;\n \t }\n\n\n \t }\n \t break;\n\n \tdefault :\n \t break loop7;\n }\n } while (true);\n\n\n // /Users/ernstl/PostDoc/BU/Eugene/ecosystem/workspace/eugene-v1.9.1/grammar/Eugene.g:3146:37: ( EXPONENT )?\n int alt8=2;\n int LA8_0 = input.LA(1);\n\n if ( (LA8_0=='E'||LA8_0=='e') ) {\n alt8=1;\n }\n switch (alt8) {\n case 1 :\n // /Users/ernstl/PostDoc/BU/Eugene/ecosystem/workspace/eugene-v1.9.1/grammar/Eugene.g:3146:37: EXPONENT\n {\n mEXPONENT(); \n\n\n }\n break;\n\n }\n\n\n }\n break;\n case 2 :\n // /Users/ernstl/PostDoc/BU/Eugene/ecosystem/workspace/eugene-v1.9.1/grammar/Eugene.g:3147:9: '.' ( '0' .. '9' )+ ( EXPONENT )?\n {\n match('.'); \n\n // /Users/ernstl/PostDoc/BU/Eugene/ecosystem/workspace/eugene-v1.9.1/grammar/Eugene.g:3147:13: ( '0' .. '9' )+\n int cnt9=0;\n loop9:\n do {\n int alt9=2;\n int LA9_0 = input.LA(1);\n\n if ( ((LA9_0 >= '0' && LA9_0 <= '9')) ) {\n alt9=1;\n }\n\n\n switch (alt9) {\n \tcase 1 :\n \t // /Users/ernstl/PostDoc/BU/Eugene/ecosystem/workspace/eugene-v1.9.1/grammar/Eugene.g:\n \t {\n \t if ( (input.LA(1) >= '0' && input.LA(1) <= '9') ) {\n \t input.consume();\n \t }\n \t else {\n \t MismatchedSetException mse = new MismatchedSetException(null,input);\n \t recover(mse);\n \t throw mse;\n \t }\n\n\n \t }\n \t break;\n\n \tdefault :\n \t if ( cnt9 >= 1 ) break loop9;\n EarlyExitException eee =\n new EarlyExitException(9, input);\n throw eee;\n }\n cnt9++;\n } while (true);\n\n\n // /Users/ernstl/PostDoc/BU/Eugene/ecosystem/workspace/eugene-v1.9.1/grammar/Eugene.g:3147:25: ( EXPONENT )?\n int alt10=2;\n int LA10_0 = input.LA(1);\n\n if ( (LA10_0=='E'||LA10_0=='e') ) {\n alt10=1;\n }\n switch (alt10) {\n case 1 :\n // /Users/ernstl/PostDoc/BU/Eugene/ecosystem/workspace/eugene-v1.9.1/grammar/Eugene.g:3147:25: EXPONENT\n {\n mEXPONENT(); \n\n\n }\n break;\n\n }\n\n\n }\n break;\n case 3 :\n // /Users/ernstl/PostDoc/BU/Eugene/ecosystem/workspace/eugene-v1.9.1/grammar/Eugene.g:3148:9: ( '0' .. '9' )+ EXPONENT\n {\n // /Users/ernstl/PostDoc/BU/Eugene/ecosystem/workspace/eugene-v1.9.1/grammar/Eugene.g:3148:9: ( '0' .. '9' )+\n int cnt11=0;\n loop11:\n do {\n int alt11=2;\n int LA11_0 = input.LA(1);\n\n if ( ((LA11_0 >= '0' && LA11_0 <= '9')) ) {\n alt11=1;\n }\n\n\n switch (alt11) {\n \tcase 1 :\n \t // /Users/ernstl/PostDoc/BU/Eugene/ecosystem/workspace/eugene-v1.9.1/grammar/Eugene.g:\n \t {\n \t if ( (input.LA(1) >= '0' && input.LA(1) <= '9') ) {\n \t input.consume();\n \t }\n \t else {\n \t MismatchedSetException mse = new MismatchedSetException(null,input);\n \t recover(mse);\n \t throw mse;\n \t }\n\n\n \t }\n \t break;\n\n \tdefault :\n \t if ( cnt11 >= 1 ) break loop11;\n EarlyExitException eee =\n new EarlyExitException(11, input);\n throw eee;\n }\n cnt11++;\n } while (true);\n\n\n mEXPONENT(); \n\n\n }\n break;\n\n }\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n \t// do for sure before leaving\n }\n }", "title": "" }, { "docid": "7bbb1ad1cb9c8babedf1025bd4a42f23", "score": "0.62438256", "text": "public final void mFLOAT() throws RecognitionException {\n try {\n int _type = FLOAT;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // /home/rory/Documents/cybersec/potatobox/src/preprocess/PPParser.g:105:5: ( ( '0' .. '9' )+ '.' ( '0' .. '9' )* ( EXPONENT )? | '.' ( '0' .. '9' )+ ( EXPONENT )? | ( '0' .. '9' )+ EXPONENT )\n int alt9=3;\n alt9 = dfa9.predict(input);\n switch (alt9) {\n case 1 :\n // /home/rory/Documents/cybersec/potatobox/src/preprocess/PPParser.g:105:9: ( '0' .. '9' )+ '.' ( '0' .. '9' )* ( EXPONENT )?\n {\n // /home/rory/Documents/cybersec/potatobox/src/preprocess/PPParser.g:105:9: ( '0' .. '9' )+\n int cnt3=0;\n loop3:\n do {\n int alt3=2;\n int LA3_0 = input.LA(1);\n\n if ( ((LA3_0 >= '0' && LA3_0 <= '9')) ) {\n alt3=1;\n }\n\n\n switch (alt3) {\n \tcase 1 :\n \t // /home/rory/Documents/cybersec/potatobox/src/preprocess/PPParser.g:\n \t {\n \t if ( (input.LA(1) >= '0' && input.LA(1) <= '9') ) {\n \t input.consume();\n \t }\n \t else {\n \t MismatchedSetException mse = new MismatchedSetException(null,input);\n \t recover(mse);\n \t throw mse;\n \t }\n\n\n \t }\n \t break;\n\n \tdefault :\n \t if ( cnt3 >= 1 ) break loop3;\n EarlyExitException eee =\n new EarlyExitException(3, input);\n throw eee;\n }\n cnt3++;\n } while (true);\n\n\n match('.'); \n\n // /home/rory/Documents/cybersec/potatobox/src/preprocess/PPParser.g:105:25: ( '0' .. '9' )*\n loop4:\n do {\n int alt4=2;\n int LA4_0 = input.LA(1);\n\n if ( ((LA4_0 >= '0' && LA4_0 <= '9')) ) {\n alt4=1;\n }\n\n\n switch (alt4) {\n \tcase 1 :\n \t // /home/rory/Documents/cybersec/potatobox/src/preprocess/PPParser.g:\n \t {\n \t if ( (input.LA(1) >= '0' && input.LA(1) <= '9') ) {\n \t input.consume();\n \t }\n \t else {\n \t MismatchedSetException mse = new MismatchedSetException(null,input);\n \t recover(mse);\n \t throw mse;\n \t }\n\n\n \t }\n \t break;\n\n \tdefault :\n \t break loop4;\n }\n } while (true);\n\n\n // /home/rory/Documents/cybersec/potatobox/src/preprocess/PPParser.g:105:37: ( EXPONENT )?\n int alt5=2;\n int LA5_0 = input.LA(1);\n\n if ( (LA5_0=='E'||LA5_0=='e') ) {\n alt5=1;\n }\n switch (alt5) {\n case 1 :\n // /home/rory/Documents/cybersec/potatobox/src/preprocess/PPParser.g:105:37: EXPONENT\n {\n mEXPONENT(); \n\n\n }\n break;\n\n }\n\n\n }\n break;\n case 2 :\n // /home/rory/Documents/cybersec/potatobox/src/preprocess/PPParser.g:106:9: '.' ( '0' .. '9' )+ ( EXPONENT )?\n {\n match('.'); \n\n // /home/rory/Documents/cybersec/potatobox/src/preprocess/PPParser.g:106:13: ( '0' .. '9' )+\n int cnt6=0;\n loop6:\n do {\n int alt6=2;\n int LA6_0 = input.LA(1);\n\n if ( ((LA6_0 >= '0' && LA6_0 <= '9')) ) {\n alt6=1;\n }\n\n\n switch (alt6) {\n \tcase 1 :\n \t // /home/rory/Documents/cybersec/potatobox/src/preprocess/PPParser.g:\n \t {\n \t if ( (input.LA(1) >= '0' && input.LA(1) <= '9') ) {\n \t input.consume();\n \t }\n \t else {\n \t MismatchedSetException mse = new MismatchedSetException(null,input);\n \t recover(mse);\n \t throw mse;\n \t }\n\n\n \t }\n \t break;\n\n \tdefault :\n \t if ( cnt6 >= 1 ) break loop6;\n EarlyExitException eee =\n new EarlyExitException(6, input);\n throw eee;\n }\n cnt6++;\n } while (true);\n\n\n // /home/rory/Documents/cybersec/potatobox/src/preprocess/PPParser.g:106:25: ( EXPONENT )?\n int alt7=2;\n int LA7_0 = input.LA(1);\n\n if ( (LA7_0=='E'||LA7_0=='e') ) {\n alt7=1;\n }\n switch (alt7) {\n case 1 :\n // /home/rory/Documents/cybersec/potatobox/src/preprocess/PPParser.g:106:25: EXPONENT\n {\n mEXPONENT(); \n\n\n }\n break;\n\n }\n\n\n }\n break;\n case 3 :\n // /home/rory/Documents/cybersec/potatobox/src/preprocess/PPParser.g:107:9: ( '0' .. '9' )+ EXPONENT\n {\n // /home/rory/Documents/cybersec/potatobox/src/preprocess/PPParser.g:107:9: ( '0' .. '9' )+\n int cnt8=0;\n loop8:\n do {\n int alt8=2;\n int LA8_0 = input.LA(1);\n\n if ( ((LA8_0 >= '0' && LA8_0 <= '9')) ) {\n alt8=1;\n }\n\n\n switch (alt8) {\n \tcase 1 :\n \t // /home/rory/Documents/cybersec/potatobox/src/preprocess/PPParser.g:\n \t {\n \t if ( (input.LA(1) >= '0' && input.LA(1) <= '9') ) {\n \t input.consume();\n \t }\n \t else {\n \t MismatchedSetException mse = new MismatchedSetException(null,input);\n \t recover(mse);\n \t throw mse;\n \t }\n\n\n \t }\n \t break;\n\n \tdefault :\n \t if ( cnt8 >= 1 ) break loop8;\n EarlyExitException eee =\n new EarlyExitException(8, input);\n throw eee;\n }\n cnt8++;\n } while (true);\n\n\n mEXPONENT(); \n\n\n }\n break;\n\n }\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n \t// do for sure before leaving\n }\n }", "title": "" }, { "docid": "2a51e1adb65831600e8b1dbd068c1831", "score": "0.6143309", "text": "@Override\n public Void visitNumConst(NumConst<Void> numConst) {\n if ( isInteger(numConst.getValue()) ) {\n super.visitNumConst(numConst);\n } else {\n this.sb.append(\"float(\");\n super.visitNumConst(numConst);\n this.sb.append(\")\");\n }\n return null;\n }", "title": "" }, { "docid": "a5b4ece195565db27264ff841c892c1f", "score": "0.60037935", "text": "public final void mFLOAT() throws RecognitionException {\n try {\n int _type = FLOAT;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // ./generationTemp/generated/TCS.g:2237:9: ( ( DIGIT )+ '.' ( DIGIT )* )\n // ./generationTemp/generated/TCS.g:2237:17: ( DIGIT )+ '.' ( DIGIT )*\n {\n // ./generationTemp/generated/TCS.g:2237:17: ( DIGIT )+\n int cnt8=0;\n loop8:\n do {\n int alt8=2;\n int LA8_0 = input.LA(1);\n\n if ( ((LA8_0>='0' && LA8_0<='9')) ) {\n alt8=1;\n }\n\n\n switch (alt8) {\n \tcase 1 :\n \t // ./generationTemp/generated/TCS.g:2237:17: DIGIT\n \t {\n \t mDIGIT(); \n\n \t }\n \t break;\n\n \tdefault :\n \t if ( cnt8 >= 1 ) break loop8;\n EarlyExitException eee =\n new EarlyExitException(8, input);\n throw eee;\n }\n cnt8++;\n } while (true);\n\n match('.'); \n // ./generationTemp/generated/TCS.g:2237:28: ( DIGIT )*\n loop9:\n do {\n int alt9=2;\n int LA9_0 = input.LA(1);\n\n if ( ((LA9_0>='0' && LA9_0<='9')) ) {\n alt9=1;\n }\n\n\n switch (alt9) {\n \tcase 1 :\n \t // ./generationTemp/generated/TCS.g:2237:28: DIGIT\n \t {\n \t mDIGIT(); \n\n \t }\n \t break;\n\n \tdefault :\n \t break loop9;\n }\n } while (true);\n\n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }", "title": "" }, { "docid": "dce3a251d4fe0ff52f6653a9d2469c2e", "score": "0.5946067", "text": "public void visitFloatLiteral (final IJmlFloatLiteral var_1_1) throws CGException {}", "title": "" }, { "docid": "34b3c8bbd9e0a238edf4454ccfc227fb", "score": "0.593265", "text": "@Override\r\n\tpublic Object visitTypeFloat(TypeFloatContext ctx) {\n\t\treturn \"float\";\r\n\t}", "title": "" }, { "docid": "f4ef0892f55d9c7d1231f4546340c812", "score": "0.5748497", "text": "public final void mFloatingPointLiteral() throws RecognitionException {\n try {\n int _type = FloatingPointLiteral;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // flipsTargetUdbLogo.g:348:2: ( ( Digit )+ '.' ( Digit )* ( Exponent )? | '.' ( Digit )+ ( Exponent )? | ( Digit )+ Exponent )\n int alt48=3;\n alt48 = dfa48.predict(input);\n switch (alt48) {\n case 1 :\n // flipsTargetUdbLogo.g:348:4: ( Digit )+ '.' ( Digit )* ( Exponent )?\n {\n // flipsTargetUdbLogo.g:348:4: ( Digit )+\n int cnt42=0;\n loop42:\n do {\n int alt42=2;\n int LA42_0 = input.LA(1);\n\n if ( ((LA42_0>='0' && LA42_0<='9')) ) {\n alt42=1;\n }\n\n\n switch (alt42) {\n \tcase 1 :\n \t // flipsTargetUdbLogo.g:348:4: Digit\n \t {\n \t mDigit(); \n\n \t }\n \t break;\n\n \tdefault :\n \t if ( cnt42 >= 1 ) break loop42;\n EarlyExitException eee =\n new EarlyExitException(42, input);\n throw eee;\n }\n cnt42++;\n } while (true);\n\n match('.'); \n // flipsTargetUdbLogo.g:348:15: ( Digit )*\n loop43:\n do {\n int alt43=2;\n int LA43_0 = input.LA(1);\n\n if ( ((LA43_0>='0' && LA43_0<='9')) ) {\n alt43=1;\n }\n\n\n switch (alt43) {\n \tcase 1 :\n \t // flipsTargetUdbLogo.g:348:15: Digit\n \t {\n \t mDigit(); \n\n \t }\n \t break;\n\n \tdefault :\n \t break loop43;\n }\n } while (true);\n\n // flipsTargetUdbLogo.g:348:22: ( Exponent )?\n int alt44=2;\n int LA44_0 = input.LA(1);\n\n if ( (LA44_0=='E'||LA44_0=='e') ) {\n alt44=1;\n }\n switch (alt44) {\n case 1 :\n // flipsTargetUdbLogo.g:348:22: Exponent\n {\n mExponent(); \n\n }\n break;\n\n }\n\n\n }\n break;\n case 2 :\n // flipsTargetUdbLogo.g:349:17: '.' ( Digit )+ ( Exponent )?\n {\n match('.'); \n // flipsTargetUdbLogo.g:349:21: ( Digit )+\n int cnt45=0;\n loop45:\n do {\n int alt45=2;\n int LA45_0 = input.LA(1);\n\n if ( ((LA45_0>='0' && LA45_0<='9')) ) {\n alt45=1;\n }\n\n\n switch (alt45) {\n \tcase 1 :\n \t // flipsTargetUdbLogo.g:349:21: Digit\n \t {\n \t mDigit(); \n\n \t }\n \t break;\n\n \tdefault :\n \t if ( cnt45 >= 1 ) break loop45;\n EarlyExitException eee =\n new EarlyExitException(45, input);\n throw eee;\n }\n cnt45++;\n } while (true);\n\n // flipsTargetUdbLogo.g:349:28: ( Exponent )?\n int alt46=2;\n int LA46_0 = input.LA(1);\n\n if ( (LA46_0=='E'||LA46_0=='e') ) {\n alt46=1;\n }\n switch (alt46) {\n case 1 :\n // flipsTargetUdbLogo.g:349:28: Exponent\n {\n mExponent(); \n\n }\n break;\n\n }\n\n\n }\n break;\n case 3 :\n // flipsTargetUdbLogo.g:350:11: ( Digit )+ Exponent\n {\n // flipsTargetUdbLogo.g:350:11: ( Digit )+\n int cnt47=0;\n loop47:\n do {\n int alt47=2;\n int LA47_0 = input.LA(1);\n\n if ( ((LA47_0>='0' && LA47_0<='9')) ) {\n alt47=1;\n }\n\n\n switch (alt47) {\n \tcase 1 :\n \t // flipsTargetUdbLogo.g:350:11: Digit\n \t {\n \t mDigit(); \n\n \t }\n \t break;\n\n \tdefault :\n \t if ( cnt47 >= 1 ) break loop47;\n EarlyExitException eee =\n new EarlyExitException(47, input);\n throw eee;\n }\n cnt47++;\n } while (true);\n\n mExponent(); \n\n }\n break;\n\n }\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }", "title": "" }, { "docid": "32f348afac83adc9c8a8ff603d8f2a86", "score": "0.5683802", "text": "public final Type visitFloatingPointLiteral(final GNode n) {\n final String s = n.getString(0);\n final boolean isFloat = 'f' == Character.toLowerCase(s.charAt(s.length() - 1));\n final Number value = isFloat ? (Number)new Float(s) : new Double(s);\n if (!assrt(n, isFloat ? !((Float)value).isInfinite() : !((Double)value).isInfinite(), \"literal out of range\")\n || !assrt(n, (0.0 == value.doubleValue()) == JavaEntities.zeroLiteral(s), \"literal out of range\"))\n return setType(n, ErrorT.TYPE);\n final Type type = JavaEntities.nameToBaseType(isFloat ? \"float\" : \"double\");\n return setType(n, type.annotate().constant(value));\n }", "title": "" }, { "docid": "22e7cc7ffe3038ab6be6a8e55382d213", "score": "0.5670791", "text": "public void mNUM_FLOAT() throws RecognitionException {\n try {\n ruleNestingLevel++;\n int type = NUM_FLOAT;\n int start = getCharIndex();\n int line = getLine();\n int charPosition = getCharPositionInLine();\n int channel = Token.DEFAULT_CHANNEL;\n // .\\\\java.g:1029:11: ( DIGITS '.' ( DIGITS )? ( EXPONENT_PART )? ( FLOAT_TYPE_SUFFIX )? | '.' DIGITS ( EXPONENT_PART )? ( FLOAT_TYPE_SUFFIX )? | DIGITS EXPONENT_PART FLOAT_TYPE_SUFFIX | DIGITS EXPONENT_PART | DIGITS FLOAT_TYPE_SUFFIX )\n int alt19=5;\n alt19 = dfa19.predict(input);\n switch (alt19) {\n case 1 :\n // .\\\\java.g:1029:11: DIGITS '.' ( DIGITS )? ( EXPONENT_PART )? ( FLOAT_TYPE_SUFFIX )?\n {\n mDIGITS(); \n match('.'); \n // .\\\\java.g:1029:22: ( DIGITS )?\n int alt14=2;\n int LA14_0 = input.LA(1);\n if ( ((LA14_0>='0' && LA14_0<='9')) ) {\n alt14=1;\n }\n switch (alt14) {\n case 1 :\n // .\\\\java.g:1029:23: DIGITS\n {\n mDIGITS(); \n \n }\n break;\n \n }\n\n // .\\\\java.g:1029:32: ( EXPONENT_PART )?\n int alt15=2;\n int LA15_0 = input.LA(1);\n if ( (LA15_0=='E'||LA15_0=='e') ) {\n alt15=1;\n }\n switch (alt15) {\n case 1 :\n // .\\\\java.g:1029:33: EXPONENT_PART\n {\n mEXPONENT_PART(); \n \n }\n break;\n \n }\n\n // .\\\\java.g:1029:49: ( FLOAT_TYPE_SUFFIX )?\n int alt16=2;\n int LA16_0 = input.LA(1);\n if ( (LA16_0=='D'||LA16_0=='F'||LA16_0=='d'||LA16_0=='f') ) {\n alt16=1;\n }\n switch (alt16) {\n case 1 :\n // .\\\\java.g:1029:50: FLOAT_TYPE_SUFFIX\n {\n mFLOAT_TYPE_SUFFIX(); \n \n }\n break;\n \n }\n\n \n }\n break;\n case 2 :\n // .\\\\java.g:1030:7: '.' DIGITS ( EXPONENT_PART )? ( FLOAT_TYPE_SUFFIX )?\n {\n match('.'); \n mDIGITS(); \n // .\\\\java.g:1030:18: ( EXPONENT_PART )?\n int alt17=2;\n int LA17_0 = input.LA(1);\n if ( (LA17_0=='E'||LA17_0=='e') ) {\n alt17=1;\n }\n switch (alt17) {\n case 1 :\n // .\\\\java.g:1030:19: EXPONENT_PART\n {\n mEXPONENT_PART(); \n \n }\n break;\n \n }\n\n // .\\\\java.g:1030:35: ( FLOAT_TYPE_SUFFIX )?\n int alt18=2;\n int LA18_0 = input.LA(1);\n if ( (LA18_0=='D'||LA18_0=='F'||LA18_0=='d'||LA18_0=='f') ) {\n alt18=1;\n }\n switch (alt18) {\n case 1 :\n // .\\\\java.g:1030:36: FLOAT_TYPE_SUFFIX\n {\n mFLOAT_TYPE_SUFFIX(); \n \n }\n break;\n \n }\n\n \n }\n break;\n case 3 :\n // .\\\\java.g:1031:11: DIGITS EXPONENT_PART FLOAT_TYPE_SUFFIX\n {\n mDIGITS(); \n mEXPONENT_PART(); \n mFLOAT_TYPE_SUFFIX(); \n \n }\n break;\n case 4 :\n // .\\\\java.g:1032:11: DIGITS EXPONENT_PART\n {\n mDIGITS(); \n mEXPONENT_PART(); \n \n }\n break;\n case 5 :\n // .\\\\java.g:1033:11: DIGITS FLOAT_TYPE_SUFFIX\n {\n mDIGITS(); \n mFLOAT_TYPE_SUFFIX(); \n \n }\n break;\n \n }\n \n \n if ( token==null && ruleNestingLevel==1 ) {\n emit(type,line,charPosition,channel,start,getCharIndex()-1);\n }\n \n }\n finally {\n ruleNestingLevel--;\n }\n }", "title": "" }, { "docid": "4b412f023561011272ce286fcfa7f6f9", "score": "0.56664443", "text": "public TokenAttribute(float floatVal) {\n this.floatVal = floatVal;\n }", "title": "" }, { "docid": "5e0dce36cb55bba879c388cd5252c06a", "score": "0.561877", "text": "public void visitFloatType (final IJmlFloatType var_1_1) throws CGException {}", "title": "" }, { "docid": "c561fc4bd5ea38c09dfd300fbb446c40", "score": "0.55370903", "text": "public final void mT__42() throws RecognitionException {\n try {\n int _type = T__42;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // C:\\\\Users\\\\Travis_Dazell\\\\workspace\\\\Cerium\\\\src\\\\Cerium.g:25:7: ( 'float' )\n // C:\\\\Users\\\\Travis_Dazell\\\\workspace\\\\Cerium\\\\src\\\\Cerium.g:25:9: 'float'\n {\n match(\"float\"); \n\n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }", "title": "" }, { "docid": "4a818e3e2b201e634c445fdce0568298", "score": "0.5532844", "text": "@Override\n\tpublic IElementType parseNumber()\n\t{\n\t\tCharSequence tokenText = yytext();\n//\t\tSystem.err.println(\"For \" + tokenText + \"Last significant token is \" + getTokenHistory().getLastSignificantTokenType());\n\t\tif (tokenText.charAt(0) == '.' && CONCAT_OPERATOR_PREFIX.contains(getTokenHistory().getLastSignificantTokenType())) // It's a $var.123; where . is a concat\n\t\t{\n\t\t\tyypushback(tokenText.length() - 1);\n\t\t\treturn OPERATOR_CONCAT;\n\t\t}\n\t\telse if (StringUtil.endsWith(tokenText, \".\"))\n\t\t{\n\t\t\tif (getTokenHistory().getLastUnbracedTokenType() == SIGIL_SCALAR) // $1.$something\n\t\t\t{\n\t\t\t\tyypushback(1);\n\t\t\t\treturn IDENTIFIER;\n\t\t\t}\n\t\t\tif (getNextCharacter() == '.') // it's a 1..10\n\t\t\t{\n\t\t\t\tyypushback(1);\n\t\t\t}\n\t\t}\n\t\treturn NUMBER;\n\t}", "title": "" }, { "docid": "6689a6e17fd6058c171f03c6177f76a4", "score": "0.5517577", "text": "@Test(timeout = 4000)\n public void test055() throws Throwable {\n StringReader stringReader0 = new StringReader(\"float\");\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0);\n JavaParserTokenManager javaParserTokenManager0 = new JavaParserTokenManager(javaCharStream0);\n Token token0 = javaParserTokenManager0.getNextToken();\n assertEquals(4, javaCharStream0.bufpos);\n assertEquals(\"float\", token0.toString());\n }", "title": "" }, { "docid": "ba85b2fd3d159edb3c3bb9705f0f2938", "score": "0.5511791", "text": "public void mT114() throws RecognitionException {\n try {\n ruleNestingLevel++;\n int type = T114;\n int start = getCharIndex();\n int line = getLine();\n int charPosition = getCharPositionInLine();\n int channel = Token.DEFAULT_CHANNEL;\n // .\\\\java.g:15:8: ( 'float' )\n // .\\\\java.g:15:8: 'float'\n {\n match(\"float\"); \n\n \n }\n \n \n \n if ( token==null && ruleNestingLevel==1 ) {\n emit(type,line,charPosition,channel,start,getCharIndex()-1);\n }\n \n }\n finally {\n ruleNestingLevel--;\n }\n }", "title": "" }, { "docid": "c358bccd79ca23c3d572661e26fa2e1b", "score": "0.54831356", "text": "public final SDLgrammarParser.value_return value() throws RecognitionException {\n SDLgrammarParser.value_return retval = new SDLgrammarParser.value_return();\n retval.start = input.LT(1);\n\n Tree root_0 = null;\n\n Token NAME33=null;\n Token NATNUM34=null;\n Token STRING36=null;\n SDLgrammarParser.floatnum_return floatnum35 = null;\n\n SDLgrammarParser.tuple_return tuple37 = null;\n\n\n Tree NAME33_tree=null;\n Tree NATNUM34_tree=null;\n Tree STRING36_tree=null;\n\n try {\n // C:\\\\Documents and Settings\\\\user\\\\Desktop\\\\drizzle\\\\DrizzlePrp\\\\grammars\\\\SDLgrammar.g:93:6: ( NAME | NATNUM | floatnum | STRING | tuple )\n int alt9=5;\n switch ( input.LA(1) ) {\n case NAME:\n {\n alt9=1;\n }\n break;\n case NATNUM:\n {\n int LA9_2 = input.LA(2);\n\n if ( (LA9_2==52) ) {\n alt9=3;\n }\n else if ( (LA9_2==RIGHTCURLY||LA9_2==RIGHTPARENS||(LA9_2>=COMMA && LA9_2<=SEMICOLON)||(LA9_2>=VAR && LA9_2<=DEFAULTOPTION)) ) {\n alt9=2;\n }\n else {\n NoViableAltException nvae =\n new NoViableAltException(\"\", 9, 2, input);\n\n throw nvae;\n }\n }\n break;\n case 51:\n {\n alt9=3;\n }\n break;\n case STRING:\n {\n alt9=4;\n }\n break;\n case LEFTPARENS:\n {\n alt9=5;\n }\n break;\n default:\n NoViableAltException nvae =\n new NoViableAltException(\"\", 9, 0, input);\n\n throw nvae;\n }\n\n switch (alt9) {\n case 1 :\n // C:\\\\Documents and Settings\\\\user\\\\Desktop\\\\drizzle\\\\DrizzlePrp\\\\grammars\\\\SDLgrammar.g:93:8: NAME\n {\n root_0 = (Tree)adaptor.nil();\n\n NAME33=(Token)match(input,NAME,FOLLOW_NAME_in_value851); \n NAME33_tree = (Tree)adaptor.create(NAME33);\n adaptor.addChild(root_0, NAME33_tree);\n\n\n }\n break;\n case 2 :\n // C:\\\\Documents and Settings\\\\user\\\\Desktop\\\\drizzle\\\\DrizzlePrp\\\\grammars\\\\SDLgrammar.g:93:15: NATNUM\n {\n root_0 = (Tree)adaptor.nil();\n\n NATNUM34=(Token)match(input,NATNUM,FOLLOW_NATNUM_in_value855); \n NATNUM34_tree = (Tree)adaptor.create(NATNUM34);\n adaptor.addChild(root_0, NATNUM34_tree);\n\n\n }\n break;\n case 3 :\n // C:\\\\Documents and Settings\\\\user\\\\Desktop\\\\drizzle\\\\DrizzlePrp\\\\grammars\\\\SDLgrammar.g:93:24: floatnum\n {\n root_0 = (Tree)adaptor.nil();\n\n pushFollow(FOLLOW_floatnum_in_value859);\n floatnum35=floatnum();\n\n state._fsp--;\n\n adaptor.addChild(root_0, floatnum35.getTree());\n\n }\n break;\n case 4 :\n // C:\\\\Documents and Settings\\\\user\\\\Desktop\\\\drizzle\\\\DrizzlePrp\\\\grammars\\\\SDLgrammar.g:93:35: STRING\n {\n root_0 = (Tree)adaptor.nil();\n\n STRING36=(Token)match(input,STRING,FOLLOW_STRING_in_value863); \n STRING36_tree = (Tree)adaptor.create(STRING36);\n adaptor.addChild(root_0, STRING36_tree);\n\n\n }\n break;\n case 5 :\n // C:\\\\Documents and Settings\\\\user\\\\Desktop\\\\drizzle\\\\DrizzlePrp\\\\grammars\\\\SDLgrammar.g:93:44: tuple\n {\n root_0 = (Tree)adaptor.nil();\n\n pushFollow(FOLLOW_tuple_in_value867);\n tuple37=tuple();\n\n state._fsp--;\n\n adaptor.addChild(root_0, tuple37.getTree());\n\n }\n break;\n\n }\n retval.stop = input.LT(-1);\n\n retval.tree = (Tree)adaptor.rulePostProcessing(root_0);\n adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n \tretval.tree = (Tree)adaptor.errorNode(input, retval.start, input.LT(-1), re);\n\n }\n finally {\n }\n return retval;\n }", "title": "" }, { "docid": "a845008f19924fa06d21dbb0952a7307", "score": "0.54763186", "text": "public final void mNUM_FLOAT() throws RecognitionException {\r\n try {\r\n int _type = NUM_FLOAT;\r\n int _channel = DEFAULT_TOKEN_CHANNEL;\r\n // EsperEPL2Grammar.g:2268:11: ( '\\\\u18FD' )\r\n // EsperEPL2Grammar.g:2268:13: '\\\\u18FD'\r\n {\r\n match('\\u18FD'); if (state.failed) return ;\r\n\r\n }\r\n\r\n state.type = _type;\r\n state.channel = _channel;\r\n }\r\n finally {\r\n }\r\n }", "title": "" }, { "docid": "ddcf56a346f36a4e08b3f5d8c543ca0a", "score": "0.5437945", "text": "public static FloatTag parseFloat(String mojangson) throws MojangsonParseException {\n char lastChar = mojangson.charAt(mojangson.length() - 1);\n if (Character.toString(lastChar).toLowerCase().charAt(0) == MojangsonToken.FLOAT_SUFFIX\n .getSymbol()) {\n mojangson = mojangson.substring(0, mojangson.length() - 1);\n }\n\n try {\n return new FloatTag(Float.parseFloat(mojangson));\n } catch (NumberFormatException nfe) {\n throw new MojangsonParseException(\"\\'\" + mojangson + \"\\'\",\n MojangsonParseException.ParseExceptionReason.INVALID_FORMAT_NUM);\n }\n }", "title": "" }, { "docid": "62767878ee67e709881a3e8ae3ba3e2a", "score": "0.53482264", "text": "public final void mFLOAT() throws RecognitionException {\n try {\n int _type = FLOAT;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // C:\\\\Users\\\\Travis_Dazell\\\\workspace\\\\Cerium\\\\src\\\\Cerium.g:215:2: ( INT '.' ( INT )* | '.' ( INT )+ )\n int alt5=2;\n int LA5_0 = input.LA(1);\n\n if ( ((LA5_0>='0' && LA5_0<='9')) ) {\n alt5=1;\n }\n else if ( (LA5_0=='.') ) {\n alt5=2;\n }\n else {\n NoViableAltException nvae =\n new NoViableAltException(\"\", 5, 0, input);\n\n throw nvae;\n }\n switch (alt5) {\n case 1 :\n // C:\\\\Users\\\\Travis_Dazell\\\\workspace\\\\Cerium\\\\src\\\\Cerium.g:216:3: INT '.' ( INT )*\n {\n mINT(); \n match('.'); \n // C:\\\\Users\\\\Travis_Dazell\\\\workspace\\\\Cerium\\\\src\\\\Cerium.g:216:11: ( INT )*\n loop3:\n do {\n int alt3=2;\n int LA3_0 = input.LA(1);\n\n if ( ((LA3_0>='0' && LA3_0<='9')) ) {\n alt3=1;\n }\n\n\n switch (alt3) {\n \tcase 1 :\n \t // C:\\\\Users\\\\Travis_Dazell\\\\workspace\\\\Cerium\\\\src\\\\Cerium.g:216:11: INT\n \t {\n \t mINT(); \n\n \t }\n \t break;\n\n \tdefault :\n \t break loop3;\n }\n } while (true);\n\n\n }\n break;\n case 2 :\n // C:\\\\Users\\\\Travis_Dazell\\\\workspace\\\\Cerium\\\\src\\\\Cerium.g:217:4: '.' ( INT )+\n {\n match('.'); \n // C:\\\\Users\\\\Travis_Dazell\\\\workspace\\\\Cerium\\\\src\\\\Cerium.g:217:8: ( INT )+\n int cnt4=0;\n loop4:\n do {\n int alt4=2;\n int LA4_0 = input.LA(1);\n\n if ( ((LA4_0>='0' && LA4_0<='9')) ) {\n alt4=1;\n }\n\n\n switch (alt4) {\n \tcase 1 :\n \t // C:\\\\Users\\\\Travis_Dazell\\\\workspace\\\\Cerium\\\\src\\\\Cerium.g:217:8: INT\n \t {\n \t mINT(); \n\n \t }\n \t break;\n\n \tdefault :\n \t if ( cnt4 >= 1 ) break loop4;\n EarlyExitException eee =\n new EarlyExitException(4, input);\n throw eee;\n }\n cnt4++;\n } while (true);\n\n\n }\n break;\n\n }\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }", "title": "" }, { "docid": "4f14c0415c7a3175a54d402634a83e8c", "score": "0.53371453", "text": "static final public FloatingPointLiteral FloatingPointLiteral() throws ParseException {\n NodeToken n0 = null;\n Token n1 = null;\n n1 = jj_consume_token(FLOATING_POINT_LITERAL);\n n0 = JTBToolkit.makeNodeToken(n1);\n {if (true) return new FloatingPointLiteral(n0);}\n throw new Error(\"Missing return statement in function\");\n }", "title": "" }, { "docid": "f4c168a471b1e2d1afbc6eda7f185eb8", "score": "0.52523124", "text": "public TerminalRule getFLOATRule() {\n\t\treturn (tFLOAT != null) ? tFLOAT : (tFLOAT = (TerminalRule) GrammarUtil.findRuleForName(getGrammar(), \"FLOAT\"));\n\t}", "title": "" }, { "docid": "f93bd37a913b4912f4486957877408d9", "score": "0.52379566", "text": "public final void mNUM() throws RecognitionException {\n try {\n int _type = NUM;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // flipsTargetUdbLogo.g:298:5: ( 'num' | 'NUM' )\n int alt27=2;\n int LA27_0 = input.LA(1);\n\n if ( (LA27_0=='n') ) {\n alt27=1;\n }\n else if ( (LA27_0=='N') ) {\n alt27=2;\n }\n else {\n NoViableAltException nvae =\n new NoViableAltException(\"\", 27, 0, input);\n\n throw nvae;\n }\n switch (alt27) {\n case 1 :\n // flipsTargetUdbLogo.g:298:7: 'num'\n {\n match(\"num\"); \n\n\n }\n break;\n case 2 :\n // flipsTargetUdbLogo.g:298:13: 'NUM'\n {\n match(\"NUM\"); \n\n\n }\n break;\n\n }\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }", "title": "" }, { "docid": "f22803dd7d9da9a4d488dd34528c40d8", "score": "0.5224008", "text": "Number(float number){\n this.number=number;\n }", "title": "" }, { "docid": "64aa987df1a1dc6c78d4853cd5a63515", "score": "0.5177131", "text": "@Override\n\tpublic Type visit(Float e) {\n \t return new TFloat();\n\t}", "title": "" }, { "docid": "f4578574debab7ba2acd91f3d279f9a8", "score": "0.51435846", "text": "private static void float_dec(){\n\t\tif(traversal_data == 1) System.out.println(\"Entering float\");\n\t\tlex.lex();\n\t\t//Seeks out a colon, otherwise an error is thrown\n\t\tif(lex.nextToken == lex.COLON){\n\t\t\tfloat_dec = true;//Flags the context as float\n\t\t\tlex.lex();\n\t\t\t//Seeks out a valid_keyword, otherwise an error is thrown\n\t\t\tif(lex.nextToken == lex.VALID_KEYWORD){\n\t\t\t\tlex.lex();\n\t\t\t}else{\n\t\t\t\tSystem.out.println(\"------------------------------------------------------------------------------------------------------\");\n\t\t\t\tSystem.out.println(\"Error in CSS Document:: Expected a valid keyword for float at line :\"+lex.line_num+\" col :\"+lex.line_pos+\n\t\t\t\t\t\t\"\\n\");\n\t\t\t\tSystem.out.println(\"------------------------------------------------------------------------------------------------------\");\n\t\t\t\terrno++;\n\t\t\t}\n\t\t}else{\n\t\t\tSystem.out.println(\"------------------------------------------------------------------------------------------------------\");\n\t\t\tSystem.out.println(\"Error in CSS Document:: Expected a colon after declaration at line :\"+lex.line_num+\" col :\"+lex.line_pos);\n\t\t\tSystem.out.println(\"------------------------------------------------------------------------------------------------------\");\n\t\t\terrno++;\n\t\t}\n\t\tfloat_dec = false;//Unflags a context variable\n\t\tif(traversal_data == 1) System.out.println(\"Exiting float\");\n\t}", "title": "" }, { "docid": "78590590f442c055708d66d1d5c3802c", "score": "0.51363015", "text": "public void doFloat(FieldIdentifier f, float val);", "title": "" }, { "docid": "f3462834862dd4abaafd07030b67f33c", "score": "0.5112547", "text": "public Token number(){\n String value = \"\";\n int curLine = lineno;\n int curCol = column;\n while(curChar >= '0' && curChar <= '9'){\n value += curChar;\n advance();\n }\n if(curChar == '.'){\n value += curChar;\n advance();\n while(curChar >= '0' && curChar <= '9'){\n value += curChar;\n advance();\n }\n return new Token(TokenType.REAL_CONST, value, curLine,curCol);\n }\n return new Token(TokenType.INTEGER_CONST, value,curLine,curCol);\n }", "title": "" }, { "docid": "0ab3e22a704f790deb63979cfd5f0d2c", "score": "0.50529325", "text": "NumExpression createNumExpression();", "title": "" }, { "docid": "c80077eef54ba0f0801e27ac6ecfc313", "score": "0.5050779", "text": "public FloatLiteral makeFloat(float num, IJavaValue value, IJavaType type, IJavaThread thread) {\n\t\treturn initSimple(new FloatLiteral(type, num), value, thread);\n\t}", "title": "" }, { "docid": "6c05f357d3be5ab3edfb130a9926fb6b", "score": "0.5036167", "text": "public TerminalRule getFLOATRule() {\n\t\treturn tFLOAT;\n\t}", "title": "" }, { "docid": "6c05f357d3be5ab3edfb130a9926fb6b", "score": "0.5036167", "text": "public TerminalRule getFLOATRule() {\n\t\treturn tFLOAT;\n\t}", "title": "" }, { "docid": "6c05f357d3be5ab3edfb130a9926fb6b", "score": "0.5036167", "text": "public TerminalRule getFLOATRule() {\n\t\treturn tFLOAT;\n\t}", "title": "" }, { "docid": "21cda85e9ffbe1c31df844331523ada4", "score": "0.5002315", "text": "public ast.Number parseNumber()\n {\n int k = Integer.parseInt(currentToken);\n eat(currentToken);\n return new ast.Number(k);\n }", "title": "" }, { "docid": "e6b088db373169d7a426804d684b680e", "score": "0.49919373", "text": "com.google.protobuf.FloatValue getTypeFloat();", "title": "" }, { "docid": "916a486d02952f7511f3ecb6b6c969cf", "score": "0.49770764", "text": "@Override\n public Token visitNumber(Expression.Number number) {\n\n return number.value;\n }", "title": "" }, { "docid": "01c46618a3180454a81409e9d5b5a82b", "score": "0.49767724", "text": "public R visit(NumericType n, A argu) {\r\n R _ret=null;\r\n n.f0.accept(this, argu);\r\n return _ret;\r\n }", "title": "" }, { "docid": "49ea19e1807fe64838ee165d60785a6a", "score": "0.4913832", "text": "@Test\n\tpublic void parseTestValidTokens() {\n\t\tLexer lexer = new Lexer(\"(((2.9) + ((bar))) * (((2.5 + baz) * foo)))\");\n\t\tParser parser = new Parser(lexer);\n\t\tNode n = parser.parse();\n\t\tassertEquals(n.convertTreeToString(), \"((2.9+bar)*((2.5+baz)*foo))\");\n\t}", "title": "" }, { "docid": "f84b2affe8ea8326c092ac81137d6515", "score": "0.4893699", "text": "public void appendLiteral(float f) {\n this.appendNode(this.model.createTypedLiteral(f));\n }", "title": "" }, { "docid": "8784c8ded49fb28f1cb228be58e16707", "score": "0.4874262", "text": "@Test\n public void testProcessNumericLiteral() {\n String source = \"123 3.14 10.\";\n Scanner scanner = new Scanner(source);\n List<Token> scannedTokens = scanner.scanTokens();\n\n Assert.assertEquals(scannedTokens.get(0).getLiteral(), Double.valueOf(123));\n Assert.assertEquals(scannedTokens.get(1).getLiteral(), Double.valueOf(3.14));\n Assert.assertEquals(scannedTokens.get(2).getLiteral(), Double.valueOf(10));\n }", "title": "" }, { "docid": "541c28f271f102d5487d10748f6aa7be", "score": "0.48594674", "text": "public void numberFloat(KeyEvent evt,String txt) {\n oneSepatator(evt, txt+evt.getKeyChar(), '.');\n aloneTxt(evt, Constants.NUMBERS + \".\", false);\n }", "title": "" }, { "docid": "b9d8b61774a724a404938eeeeea88380", "score": "0.48439375", "text": "public void setLiteral(String var, float f) {\n this.setParam(var, NodeFactoryExtra.floatToNode(f));\n }", "title": "" }, { "docid": "48cca2b07966fef92bfbea9f4345e0ed", "score": "0.4843003", "text": "public Float() {\n super(1, 2, 2, Precision.Float, 16, 1, 3, 600);\n }", "title": "" }, { "docid": "a246f4542316a12ddd980bb18b41d124", "score": "0.4838113", "text": "private float getFloat(String num, float standard) {\n\t\tif (num != null) {\n\t\t\ttry {\n\t\t\t\treturn Float.parseFloat(num);\n\t\t\t} catch (NumberFormatException e) {\n\t\t\t}\n\t\t}\n\t\treturn standard;\n\t}", "title": "" }, { "docid": "bd7b4ce168c22d9563221ff1b47dfc76", "score": "0.4832427", "text": "public abstract float toFloat();", "title": "" }, { "docid": "3983ab0079663e373f1b18dc74a415e0", "score": "0.4809041", "text": "public final AntlrDatatypeRuleToken ruleFloatingPointType() throws RecognitionException {\n AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken();\n\n Token kw=null;\n\n enterRule(); \n \n try {\n // ../org.nightlabs.vestigo.xtext.jdoql/src-gen/org/nightlabs/vestigo/xtext/jdoql/parser/antlr/internal/InternalJDOQLParser.g:5732:6: ( (kw= KEYWORD_50 | kw= KEYWORD_57 ) )\n // ../org.nightlabs.vestigo.xtext.jdoql/src-gen/org/nightlabs/vestigo/xtext/jdoql/parser/antlr/internal/InternalJDOQLParser.g:5733:1: (kw= KEYWORD_50 | kw= KEYWORD_57 )\n {\n // ../org.nightlabs.vestigo.xtext.jdoql/src-gen/org/nightlabs/vestigo/xtext/jdoql/parser/antlr/internal/InternalJDOQLParser.g:5733:1: (kw= KEYWORD_50 | kw= KEYWORD_57 )\n int alt65=2;\n int LA65_0 = input.LA(1);\n\n if ( (LA65_0==KEYWORD_50) ) {\n alt65=1;\n }\n else if ( (LA65_0==KEYWORD_57) ) {\n alt65=2;\n }\n else {\n if (state.backtracking>0) {state.failed=true; return current;}\n NoViableAltException nvae =\n new NoViableAltException(\"\", 65, 0, input);\n\n throw nvae;\n }\n switch (alt65) {\n case 1 :\n // ../org.nightlabs.vestigo.xtext.jdoql/src-gen/org/nightlabs/vestigo/xtext/jdoql/parser/antlr/internal/InternalJDOQLParser.g:5734:2: kw= KEYWORD_50\n {\n kw=(Token)match(input,KEYWORD_50,FOLLOW_KEYWORD_50_in_ruleFloatingPointType11616); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n current.merge(kw);\n newLeafNode(kw, grammarAccess.getFloatingPointTypeAccess().getFloatKeyword_0()); \n \n }\n\n }\n break;\n case 2 :\n // ../org.nightlabs.vestigo.xtext.jdoql/src-gen/org/nightlabs/vestigo/xtext/jdoql/parser/antlr/internal/InternalJDOQLParser.g:5741:2: kw= KEYWORD_57\n {\n kw=(Token)match(input,KEYWORD_57,FOLLOW_KEYWORD_57_in_ruleFloatingPointType11635); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n current.merge(kw);\n newLeafNode(kw, grammarAccess.getFloatingPointTypeAccess().getDoubleKeyword_1()); \n \n }\n\n }\n break;\n\n }\n\n\n }\n\n if ( state.backtracking==0 ) {\n leaveRule();\n \n }\n }\n \n \tcatch (RecognitionException re) { \n \t recover(input,re); \n \t appendSkippedTokens();\n \t}\n finally {\n }\n return current;\n }", "title": "" }, { "docid": "2257b3003ef2ee5ba463e918cd72dddc", "score": "0.47875234", "text": "float readFloat(String prompt);", "title": "" }, { "docid": "0f9582e02bbe874b324ae213f7e8cd3c", "score": "0.47687557", "text": "public TerminalRule getFLOAT_TYPESRule() {\n\t\treturn tFLOAT_TYPES;\n\t}", "title": "" }, { "docid": "2f9a6a459f5c53d630bf27a3281b3ab1", "score": "0.47678408", "text": "private Token getNextNumber() {\n\t\tStringBuilder value = new StringBuilder();\n\t\tboolean isDecimal = false;\n\n\t\tif (data[currentIndex] == '-') {\n\t\t\tcurrentIndex++;\n\t\t\tvalue.append(\"-\");\n\t\t}\n\n\t\twhile (currentIndex < data.length) {\n\t\t\tchar currentChar = data[currentIndex];\n\n\t\t\tif (currentChar == '.') {\n\t\t\t\tisDecimal = true;\n\t\t\t}\n\n\t\t\tif (Character.isWhitespace(currentChar) || isOperator(currentChar) || currentChar == '$')\n\t\t\t\tbreak;\n\n\t\t\tvalue.append(currentChar);\n\t\t\tcurrentIndex++;\n\t\t}\n\n\t\ttry {\n\t\t\tif (isDecimal) {\n\t\t\t\treturn new Token(TokenType.FLOAT, Double.parseDouble(value.toString()));\n\t\t\t} else {\n\t\t\t\treturn new Token(TokenType.INTEGER, Integer.parseInt(value.toString()));\n\t\t\t}\n\t\t} catch (NumberFormatException ex) {\n\t\t\tthrow new SmartLexerException(\"Illegal token. It was: \" + value.toString());\n\t\t}\n\n\t}", "title": "" }, { "docid": "43e3c8d15f6ea453f57bef32327a54a1", "score": "0.47612542", "text": "public void addFloat(float value)\n\t\t{\n\t\t\tformat.add(\"float\");\n\t\t\taddNBTTagListEntry(nmsTag, classNBTTagFloat, value);\n\t\t}", "title": "" }, { "docid": "50e4e6909b9f9a72127a99ac456804e4", "score": "0.47583678", "text": "public IrregularTest_Float() {\n super(3, 7, 5, Precision.Float, 16, 1, 3, 600);\n }", "title": "" }, { "docid": "a0002787ec80114a3fe039ccd0c18a65", "score": "0.47445694", "text": "private boolean isNum(String ta) {\n\t\t\treturn ta.matches(\"^[-+]?(([0-9]+)([.]([0-9]+))?|([.]([0-9]+))?)$\");\n\t\t}", "title": "" }, { "docid": "07fb10969de5910657a3882b1df903dd", "score": "0.47430217", "text": "@Override\n public JsonFloatNode produce(String value) {\n float parsedFloat = Float.parseFloat(value);\n return new JsonFloatNode(() -> parsedFloat);\n }", "title": "" }, { "docid": "caee81c3f581225f9e41b296b6ad9c88", "score": "0.47405708", "text": "public final TripleElement numericLiteralPositive() throws RecognitionException {\n TripleElement value = null;\n\n Token v=null;\n\n try {\n // /home/andreas/projects/r2r/antlr-files/TargetPattern.g:226:4: (v= INTEGER_POSITIVE | v= DECIMAL_POSITIVE | v= DOUBLE_POSITIVE )\n int alt15=3;\n switch ( input.LA(1) ) {\n case INTEGER_POSITIVE:\n {\n alt15=1;\n }\n break;\n case DECIMAL_POSITIVE:\n {\n alt15=2;\n }\n break;\n case DOUBLE_POSITIVE:\n {\n alt15=3;\n }\n break;\n default:\n NoViableAltException nvae =\n new NoViableAltException(\"\", 15, 0, input);\n\n throw nvae;\n }\n\n switch (alt15) {\n case 1 :\n // /home/andreas/projects/r2r/antlr-files/TargetPattern.g:226:6: v= INTEGER_POSITIVE\n {\n v=(Token)match(input,INTEGER_POSITIVE,FOLLOW_INTEGER_POSITIVE_in_numericLiteralPositive720); \n value = new TripleElement(TripleElement.Type.INTEGER, (v!=null?v.getText():null)); \n\n }\n break;\n case 2 :\n // /home/andreas/projects/r2r/antlr-files/TargetPattern.g:227:6: v= DECIMAL_POSITIVE\n {\n v=(Token)match(input,DECIMAL_POSITIVE,FOLLOW_DECIMAL_POSITIVE_in_numericLiteralPositive731); \n value = new TripleElement(TripleElement.Type.DECIMAL, (v!=null?v.getText():null)); \n\n }\n break;\n case 3 :\n // /home/andreas/projects/r2r/antlr-files/TargetPattern.g:228:6: v= DOUBLE_POSITIVE\n {\n v=(Token)match(input,DOUBLE_POSITIVE,FOLLOW_DOUBLE_POSITIVE_in_numericLiteralPositive742); \n value = new TripleElement(TripleElement.Type.DOUBLE, (v!=null?v.getText():null)); \n\n }\n break;\n\n }\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n }\n return value;\n }", "title": "" }, { "docid": "069d9c6fbd984cb8d7b664d757f4ff4e", "score": "0.4704026", "text": "public int emitConversion(IContext ctx, int opcode, int longFloatOpcode, boolean isFloat);", "title": "" }, { "docid": "07e1b313cff7bb1f9f3da4e616bda8c1", "score": "0.46990275", "text": "public void visitNumericalLiteral (final IJmlNumericalLiteral var_1_1) throws CGException {}", "title": "" }, { "docid": "cb9fb2679f7efe6eb93a1bb4bc60d411", "score": "0.46972224", "text": "public GFloat(float value) {\r\n this.value = value;\r\n }", "title": "" }, { "docid": "2b6b9d7756be5c81a961ece900c7ac23", "score": "0.4684777", "text": "public interface OgnlParserConstants {\n\n /** End of File. */\n int EOF = 0;\n /** RegularExpression Id. */\n int IDENT = 64;\n /** RegularExpression Id. */\n int LETTER = 65;\n /** RegularExpression Id. */\n int DIGIT = 66;\n /** RegularExpression Id. */\n int DYNAMIC_SUBSCRIPT = 67;\n /** RegularExpression Id. */\n int ESC = 71;\n /** RegularExpression Id. */\n int CHAR_LITERAL = 73;\n /** RegularExpression Id. */\n int BACK_CHAR_ESC = 74;\n /** RegularExpression Id. */\n int BACK_CHAR_LITERAL = 76;\n /** RegularExpression Id. */\n int STRING_ESC = 77;\n /** RegularExpression Id. */\n int STRING_LITERAL = 79;\n /** RegularExpression Id. */\n int INT_LITERAL = 80;\n /** RegularExpression Id. */\n int FLT_LITERAL = 81;\n /** RegularExpression Id. */\n int DEC_FLT = 82;\n /** RegularExpression Id. */\n int DEC_DIGITS = 83;\n /** RegularExpression Id. */\n int EXPONENT = 84;\n /** RegularExpression Id. */\n int FLT_SUFF = 85;\n\n /** Lexical state. */\n int DEFAULT = 0;\n /** Lexical state. */\n int WithinCharLiteral = 1;\n /** Lexical state. */\n int WithinBackCharLiteral = 2;\n /** Lexical state. */\n int WithinStringLiteral = 3;\n\n /** Literal token values. */\n String[] tokenImage = {\n \"<EOF>\",\n \"\\\",\\\"\",\n \"\\\"=\\\"\",\n \"\\\"?\\\"\",\n \"\\\":\\\"\",\n \"\\\"||\\\"\",\n \"\\\"or\\\"\",\n \"\\\"&&\\\"\",\n \"\\\"and\\\"\",\n \"\\\"|\\\"\",\n \"\\\"bor\\\"\",\n \"\\\"^\\\"\",\n \"\\\"xor\\\"\",\n \"\\\"&\\\"\",\n \"\\\"band\\\"\",\n \"\\\"==\\\"\",\n \"\\\"eq\\\"\",\n \"\\\"!=\\\"\",\n \"\\\"neq\\\"\",\n \"\\\"<\\\"\",\n \"\\\"lt\\\"\",\n \"\\\">\\\"\",\n \"\\\"gt\\\"\",\n \"\\\"<=\\\"\",\n \"\\\"lte\\\"\",\n \"\\\">=\\\"\",\n \"\\\"gte\\\"\",\n \"\\\"in\\\"\",\n \"\\\"not\\\"\",\n \"\\\"<<\\\"\",\n \"\\\"shl\\\"\",\n \"\\\">>\\\"\",\n \"\\\"shr\\\"\",\n \"\\\">>>\\\"\",\n \"\\\"ushr\\\"\",\n \"\\\"+\\\"\",\n \"\\\"-\\\"\",\n \"\\\"*\\\"\",\n \"\\\"/\\\"\",\n \"\\\"%\\\"\",\n \"\\\"~\\\"\",\n \"\\\"!\\\"\",\n \"\\\"instanceof\\\"\",\n \"\\\".\\\"\",\n \"\\\"(\\\"\",\n \"\\\")\\\"\",\n \"\\\"true\\\"\",\n \"\\\"false\\\"\",\n \"\\\"null\\\"\",\n \"\\\"#this\\\"\",\n \"\\\"#root\\\"\",\n \"\\\"#\\\"\",\n \"\\\"[\\\"\",\n \"\\\"]\\\"\",\n \"\\\"{\\\"\",\n \"\\\"}\\\"\",\n \"\\\"@\\\"\",\n \"\\\"new\\\"\",\n \"\\\"$\\\"\",\n \"\\\" \\\"\",\n \"\\\"\\\\t\\\"\",\n \"\\\"\\\\f\\\"\",\n \"\\\"\\\\r\\\"\",\n \"\\\"\\\\n\\\"\",\n \"<IDENT>\",\n \"<LETTER>\",\n \"<DIGIT>\",\n \"<DYNAMIC_SUBSCRIPT>\",\n \"\\\"`\\\"\",\n \"\\\"\\\\\\'\\\"\",\n \"\\\"\\\\\\\"\\\"\",\n \"<ESC>\",\n \"<token of kind 72>\",\n \"\\\"\\\\\\'\\\"\",\n \"<BACK_CHAR_ESC>\",\n \"<token of kind 75>\",\n \"\\\"`\\\"\",\n \"<STRING_ESC>\",\n \"<token of kind 78>\",\n \"\\\"\\\\\\\"\\\"\",\n \"<INT_LITERAL>\",\n \"<FLT_LITERAL>\",\n \"<DEC_FLT>\",\n \"<DEC_DIGITS>\",\n \"<EXPONENT>\",\n \"<FLT_SUFF>\",\n };\n\n}", "title": "" }, { "docid": "f06d13fd05bbde9ad9ddcec2dfbfa845", "score": "0.46823555", "text": "public Float asFloat() {\r\n\r\n\t\treturn typeNumber.asFloat();\r\n\t}", "title": "" }, { "docid": "75f1acbbb61cb297e1ad501ff1453868", "score": "0.468105", "text": "private String floatOp(int opcode) {\n int opcode2 = byteAt(cur);\n int digit = (opcode2 >>> 3) & 0x7;\n switch (opcode) {\n case 0xd8:\n if ((opcode2 >= 0xc0) && (opcode2 <= 0xc7)) {\n return farith(\"fadd\", 0, opcode2 - 0xc0);\n } else if ((opcode2 >= 0xc8) && (opcode2 <= 0xcf)) {\n return farith(\"fmul\", 0, opcode2 - 0xc8);\n } else if ((opcode2 >= 0xe0) && (opcode2 <= 0xe7)) {\n return farith(\"fsub\", 0, opcode2 - 0xe0);\n } else if ((opcode2 >= 0xe8) && (opcode2 <= 0xef)) {\n return farith(\"fsubr\", 0, opcode2 - 0xe8);\n } else if ((opcode2 >= 0xf0) && (opcode2 <= 0xf7)) {\n return farith(\"fdiv\", 0, opcode2 - 0xf0);\n } else if ((opcode2 >= 0xf8) && (opcode2 <= 0xff)) {\n return farith(\"fdivr\", 0, opcode2 - 0xf8);\n } else if (digit == 0) {\n return op(\"fadd\", RM32);\n } else if (digit == 1) {\n return op(\"fmul\", RM32);\n } else if (digit == 3) {\n return op(\"fcomp\", RM32);\n } else if (digit == 4) {\n return op(\"fsub\", RM32);\n } else if (digit == 5) {\n return op(\"fsubr\", RM32);\n } else if (digit == 6) {\n return op(\"fdiv\", RM32);\n } else if (digit == 7) {\n return op(\"fdivr\", RM32);\n } else {\n Assert.shouldNotReachHere();\n return null;\n }\n case 0xd9:\n if ((opcode2 >= 0xc0) && (opcode2 <= 0xc7)) {\n return farith(\"fld\", opcode2 - 0xc0);\n } else if ((opcode2 >= 0xc8) && (opcode2 <= 0xcf)) {\n return farith(\"fxch\", opcode2 - 0xc8);\n } else if (opcode2 == 0xd0) {\n return farith(\"fnop\");\n } else if (opcode2 == 0xe0) {\n return farith(\"fchs\");\n } else if (opcode2 == 0xe1) {\n return farith(\"fabs\");\n } else if (opcode2 == 0xe4) {\n return farith(\"ftst\");\n } else if (opcode2 == 0xe8) {\n return farith(\"fld1\");\n } else if (opcode2 == 0xee) {\n return farith(\"fldz\");\n } else if (opcode2 == 0xf5) {\n return farith(\"fprem1\");\n } else if (opcode2 == 0xf6) {\n return farith(\"fdecstp\");\n } else if (opcode2 == 0xf7) {\n return farith(\"fincstp\");\n } else if (opcode2 == 0xf8) {\n return farith(\"fprem\");\n } else if (opcode2 == 0xfa) {\n return farith(\"fsqrt\");\n } else if (opcode2 == 0xfe) {\n return farith(\"fsin\");\n } else if (opcode2 == 0xff) {\n return farith(\"fcos\");\n } else if (digit == 0) {\n return op(\"fld\", RM32);\n } else if (digit == 2) {\n return op(\"fst\", RM32);\n } else if (digit == 3) {\n return op(\"fstp\", RM32);\n } else if (digit == 5) {\n return op(\"fldcw\", RM16);\n } else {\n Assert.shouldNotReachHere();\n return null;\n }\n case 0xdb:\n if ((opcode2 >= 0xe8) && (opcode2 <= 0xef)) {\n return farith(\"fucomi\", 0, opcode2 - 0xe8);\n } else if (digit == 0) {\n return op(\"fild\", RM32);\n } else if (digit == 2) {\n return op(\"fist\", RM32);\n } else if (digit == 3) {\n return op(\"fistp\", RM32);\n } else {\n Assert.shouldNotReachHere();\n return null;\n }\n case 0xdc:\n if ((opcode2 >= 0xc0) && (opcode2 <= 0xc7)) {\n return farith(\"fadd\", opcode2 - 0xc0, 0);\n } else if ((opcode2 >= 0xc8) && (opcode2 <= 0xcf)) {\n return farith(\"fmul\", opcode2 - 0xc0, 0);\n } else if ((opcode2 >= 0xe0) && (opcode2 <= 0xe7)) {\n return farith(\"fsubr\", opcode2 - 0xe0, 0);\n } else if ((opcode2 >= 0xe8) && (opcode2 <= 0xef)) {\n return farith(\"fsub\", opcode2 - 0xe8, 0);\n } else if ((opcode2 >= 0xf0) && (opcode2 <= 0xf7)) {\n return farith(\"fdivr\", opcode2 - 0xf0, 0);\n } else if ((opcode2 >= 0xf8) && (opcode2 <= 0xff)) {\n return farith(\"fdiv\", opcode2 - 0xf8, 0);\n } else if (digit == 0) {\n return op(\"fadd\", RM64);\n } else if (digit == 1) {\n return op(\"fmul\", RM64);\n } else if (digit == 3) {\n return op(\"fcomp\", RM64);\n } else if (digit == 4) {\n return op(\"fsub\", RM64);\n } else if (digit == 5) {\n return op(\"fsubr\", RM64);\n } else if (digit == 6) {\n return op(\"fdiv\", RM64);\n } else if (digit == 7) {\n return op(\"fdivr\", RM64);\n } else {\n Assert.shouldNotReachHere();\n return null;\n }\n case 0xdd:\n if ((opcode2 >= 0xc0) && (opcode2 <= 0xc7)) {\n return farith(\"ffree\", opcode2 - 0xc0);\n } else if ((opcode2 >= 0xd8) && (opcode2 <= 0xdf)) {\n return farith(\"fstp\", opcode2 - 0xd8);\n } else if ((opcode2 >= 0xe0) && (opcode2 <= 0xe7)) {\n return farith(\"fucom\", opcode2 - 0xe0);\n } else if ((opcode2 >= 0xe8) && (opcode2 <= 0xef)) {\n return farith(\"fucomp\", opcode2 - 0xe8);\n } else if (digit == 0) {\n return op(\"fld\", RM64);\n } else if (digit == 2) {\n return op(\"fst\", RM64);\n } else if (digit == 3) {\n return op(\"fstp\", RM64);\n } else if (digit == 4) {\n return op(\"frstor\", MEM);\n } else if (digit == 6) {\n return op(\"fnsave\", MEM);\n } else {\n Assert.shouldNotReachHere();\n return null;\n }\n case 0xde:\n if ((opcode2 >= 0xc0) && (opcode2 <= 0xc7)) {\n return farith(\"faddp\", opcode2 - 0xc0, 0);\n } else if ((opcode2 >= 0xc8) && (opcode2 <= 0xcf)) {\n return farith(\"fmulp\", opcode2 - 0xc8, 0);\n } else if (opcode2 == 0xd9) {\n return farith(\"fcompp\");\n } else if ((opcode2 >= 0xe0) && (opcode2 <= 0xe7)) {\n return farith(\"fsubrp\", opcode2 - 0xe0, 0);\n } else if ((opcode2 >= 0xe8) && (opcode2 <= 0xef)) {\n return farith(\"fsubp\", opcode2 - 0xe8, 0);\n } else if ((opcode2 >= 0xf0) && (opcode2 <= 0xf7)) {\n return farith(\"fdivrp\", opcode2 - 0xf0, 0);\n } else if ((opcode2 >= 0xf8) && (opcode2 <= 0xff)) {\n return farith(\"fdivp\", opcode2 - 0xf8, 0);\n } else {\n Assert.shouldNotReachHere();\n return null;\n }\n case 0xdf:\n if (opcode2 == 0xe0) {\n return farith(\"fnstsw\") + \"ax\";\n } else if ((opcode2 >= 0xe8) && (opcode2 <= 0xef)) {\n return farith(\"fucomip\", 0, opcode2 - 0xe8);\n } else if (digit == 5) {\n return op(\"fild\", RM64);\n } else if (digit == 7) {\n return op(\"fistp\", RM64);\n } else {\n Assert.shouldNotReachHere();\n return null;\n }\n default:\n Assert.shouldNotReachHere();\n return null;\n }\n }", "title": "" }, { "docid": "3c3c17d5b6c27a3f8c1263b0e265bd3a", "score": "0.46764854", "text": "public static EFloat FromInt32(int inputInt32) {\n return FromEInteger(EInteger.FromInt32(inputInt32));\n}", "title": "" }, { "docid": "7c5debba4ea393fc07049136f490bdfe", "score": "0.46671832", "text": "public FloatRefParameter(float value) {\n setFloat(value);\n }", "title": "" }, { "docid": "6162c004c20e9a10db4b1e49c6bd0325", "score": "0.4664078", "text": "public float getFloat(String key)\n\t\t{\n\t\t\tif (!types.get(key).equals(\"float\"))\n\t\t\t\treturn 0.0f;\n\t\t\treturn (float) getNBTTagCompoundValue(nmsTag, NBTTagCompound_getFloat, key);\n\t\t}", "title": "" }, { "docid": "fde499a30407dd5b723ede82ec71212f", "score": "0.46417302", "text": "public final void mNUMBER() throws RecognitionException {\n try {\n int _type = NUMBER;\n // XPath10__.g:507:8: ( ( DIGITS ) ( '.' DIGITS )? | '.' DIGITS )\n int alt7=2;\n int LA7_0 = input.LA(1);\n\n if ( ((LA7_0>='0' && LA7_0<='9')) ) {\n alt7=1;\n }\n else if ( (LA7_0=='.') ) {\n alt7=2;\n }\n else {\n NoViableAltException nvae =\n new NoViableAltException(\"507:1: NUMBER : ( ( DIGITS ) ( '.' DIGITS )? | '.' DIGITS );\", 7, 0, input);\n\n throw nvae;\n }\n switch (alt7) {\n case 1 :\n // XPath10__.g:507:10: ( DIGITS ) ( '.' DIGITS )?\n {\n // XPath10__.g:507:10: ( DIGITS )\n // XPath10__.g:507:11: DIGITS\n {\n mDIGITS(); \n\n }\n\n // XPath10__.g:507:19: ( '.' DIGITS )?\n int alt6=2;\n int LA6_0 = input.LA(1);\n\n if ( (LA6_0=='.') ) {\n alt6=1;\n }\n switch (alt6) {\n case 1 :\n // XPath10__.g:507:20: '.' DIGITS\n {\n match('.'); \n mDIGITS(); \n\n }\n break;\n\n }\n\n\n }\n break;\n case 2 :\n // XPath10__.g:507:34: '.' DIGITS\n {\n match('.'); \n mDIGITS(); \n\n }\n break;\n\n }\n this.type = _type;\n }\n finally {\n }\n }", "title": "" }, { "docid": "94b68b617e3f8b2c6a4395f52f250fff", "score": "0.46416885", "text": "public Operand(String token){\r\n toDouble(token);\r\n }", "title": "" }, { "docid": "bfbedaf6834b94e1cf60749bcbed67f9", "score": "0.46409225", "text": "public final AntlrDatatypeRuleToken ruleNumericType() throws RecognitionException {\n AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken();\n\n AntlrDatatypeRuleToken this_IntegralType_0 = null;\n\n AntlrDatatypeRuleToken this_FloatingPointType_1 = null;\n\n\n enterRule(); \n \n try {\n // ../org.nightlabs.vestigo.xtext.jdoql/src-gen/org/nightlabs/vestigo/xtext/jdoql/parser/antlr/internal/InternalJDOQLParser.g:5631:6: ( (this_IntegralType_0= ruleIntegralType | this_FloatingPointType_1= ruleFloatingPointType ) )\n // ../org.nightlabs.vestigo.xtext.jdoql/src-gen/org/nightlabs/vestigo/xtext/jdoql/parser/antlr/internal/InternalJDOQLParser.g:5632:1: (this_IntegralType_0= ruleIntegralType | this_FloatingPointType_1= ruleFloatingPointType )\n {\n // ../org.nightlabs.vestigo.xtext.jdoql/src-gen/org/nightlabs/vestigo/xtext/jdoql/parser/antlr/internal/InternalJDOQLParser.g:5632:1: (this_IntegralType_0= ruleIntegralType | this_FloatingPointType_1= ruleFloatingPointType )\n int alt63=2;\n int LA63_0 = input.LA(1);\n\n if ( (LA63_0==KEYWORD_52||(LA63_0>=KEYWORD_36 && LA63_0<=KEYWORD_38)||LA63_0==KEYWORD_29) ) {\n alt63=1;\n }\n else if ( (LA63_0==KEYWORD_57||LA63_0==KEYWORD_50) ) {\n alt63=2;\n }\n else {\n if (state.backtracking>0) {state.failed=true; return current;}\n NoViableAltException nvae =\n new NoViableAltException(\"\", 63, 0, input);\n\n throw nvae;\n }\n switch (alt63) {\n case 1 :\n // ../org.nightlabs.vestigo.xtext.jdoql/src-gen/org/nightlabs/vestigo/xtext/jdoql/parser/antlr/internal/InternalJDOQLParser.g:5633:5: this_IntegralType_0= ruleIntegralType\n {\n if ( state.backtracking==0 ) {\n \n newCompositeNode(grammarAccess.getNumericTypeAccess().getIntegralTypeParserRuleCall_0()); \n \n }\n pushFollow(FOLLOW_ruleIntegralType_in_ruleNumericType11324);\n this_IntegralType_0=ruleIntegralType();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\tcurrent.merge(this_IntegralType_0);\n \n }\n if ( state.backtracking==0 ) {\n \n afterParserOrEnumRuleCall();\n \n }\n\n }\n break;\n case 2 :\n // ../org.nightlabs.vestigo.xtext.jdoql/src-gen/org/nightlabs/vestigo/xtext/jdoql/parser/antlr/internal/InternalJDOQLParser.g:5645:5: this_FloatingPointType_1= ruleFloatingPointType\n {\n if ( state.backtracking==0 ) {\n \n newCompositeNode(grammarAccess.getNumericTypeAccess().getFloatingPointTypeParserRuleCall_1()); \n \n }\n pushFollow(FOLLOW_ruleFloatingPointType_in_ruleNumericType11357);\n this_FloatingPointType_1=ruleFloatingPointType();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\tcurrent.merge(this_FloatingPointType_1);\n \n }\n if ( state.backtracking==0 ) {\n \n afterParserOrEnumRuleCall();\n \n }\n\n }\n break;\n\n }\n\n\n }\n\n if ( state.backtracking==0 ) {\n leaveRule();\n \n }\n }\n \n \tcatch (RecognitionException re) { \n \t recover(input,re); \n \t appendSkippedTokens();\n \t}\n finally {\n }\n return current;\n }", "title": "" }, { "docid": "35b89d0956d8d29c2bbc060a8edf6589", "score": "0.46293202", "text": "public ConstructorTest(float l)\n {\n message = \"float\";\n }", "title": "" }, { "docid": "7b3f5358d04993d57550c3947f98f1f3", "score": "0.46206823", "text": "private NumberType() {}", "title": "" }, { "docid": "754699109aa64df443b90eebd2e5a8c6", "score": "0.46202427", "text": "EDataType getEFloat();", "title": "" }, { "docid": "40e433d9090a4f87d101fc62e8f5d1d6", "score": "0.46197686", "text": "public FloatRefParameter() {\n }", "title": "" }, { "docid": "846e8ed4b9a5bc2dee98455de92f69c7", "score": "0.46063355", "text": "public final void mFLOAT_SUFFIX() throws RecognitionException {\r\n try {\r\n // EsperEPL2Grammar.g:2410:2: ( 'f' | 'd' )\r\n // EsperEPL2Grammar.g:\r\n {\r\n if ( input.LA(1)=='d'||input.LA(1)=='f' ) {\r\n input.consume();\r\n state.failed=false;\r\n }\r\n else {\r\n if (state.backtracking>0) {state.failed=true; return ;}\r\n MismatchedSetException mse = new MismatchedSetException(null,input);\r\n recover(mse);\r\n throw mse;}\r\n\r\n\r\n }\r\n\r\n }\r\n finally {\r\n }\r\n }", "title": "" }, { "docid": "9c695fd78ce39a9074a9ebc21300aeef", "score": "0.4602689", "text": "public interface OgnlParserConstants{\n\n /** End of File. */\n int EOF = 0;\n\n /** RegularExpression Id. */\n int IDENT = 64;\n\n /** RegularExpression Id. */\n int LETTER = 65;\n\n /** RegularExpression Id. */\n int DIGIT = 66;\n\n /** RegularExpression Id. */\n int DYNAMIC_SUBSCRIPT = 67;\n\n /** RegularExpression Id. */\n int ESC = 71;\n\n /** RegularExpression Id. */\n int CHAR_LITERAL = 73;\n\n /** RegularExpression Id. */\n int BACK_CHAR_ESC = 74;\n\n /** RegularExpression Id. */\n int BACK_CHAR_LITERAL = 76;\n\n /** RegularExpression Id. */\n int STRING_ESC = 77;\n\n /** RegularExpression Id. */\n int STRING_LITERAL = 79;\n\n /** RegularExpression Id. */\n int INT_LITERAL = 80;\n\n /** RegularExpression Id. */\n int FLT_LITERAL = 81;\n\n /** RegularExpression Id. */\n int DEC_FLT = 82;\n\n /** RegularExpression Id. */\n int DEC_DIGITS = 83;\n\n /** RegularExpression Id. */\n int EXPONENT = 84;\n\n /** RegularExpression Id. */\n int FLT_SUFF = 85;\n\n /** Lexical state. */\n int DEFAULT = 0;\n\n /** Lexical state. */\n int WithinCharLiteral = 1;\n\n /** Lexical state. */\n int WithinBackCharLiteral = 2;\n\n /** Lexical state. */\n int WithinStringLiteral = 3;\n\n /** Literal token values. */\n String[] tokenImage = {\n \"<EOF>\",\n \"\\\",\\\"\",\n \"\\\"=\\\"\",\n \"\\\"?\\\"\",\n \"\\\":\\\"\",\n \"\\\"||\\\"\",\n \"\\\"or\\\"\",\n \"\\\"&&\\\"\",\n \"\\\"and\\\"\",\n \"\\\"|\\\"\",\n \"\\\"bor\\\"\",\n \"\\\"^\\\"\",\n \"\\\"xor\\\"\",\n \"\\\"&\\\"\",\n \"\\\"band\\\"\",\n \"\\\"==\\\"\",\n \"\\\"eq\\\"\",\n \"\\\"!=\\\"\",\n \"\\\"neq\\\"\",\n \"\\\"<\\\"\",\n \"\\\"lt\\\"\",\n \"\\\">\\\"\",\n \"\\\"gt\\\"\",\n \"\\\"<=\\\"\",\n \"\\\"lte\\\"\",\n \"\\\">=\\\"\",\n \"\\\"gte\\\"\",\n \"\\\"in\\\"\",\n \"\\\"not\\\"\",\n \"\\\"<<\\\"\",\n \"\\\"shl\\\"\",\n \"\\\">>\\\"\",\n \"\\\"shr\\\"\",\n \"\\\">>>\\\"\",\n \"\\\"ushr\\\"\",\n \"\\\"+\\\"\",\n \"\\\"-\\\"\",\n \"\\\"*\\\"\",\n \"\\\"/\\\"\",\n \"\\\"%\\\"\",\n \"\\\"~\\\"\",\n \"\\\"!\\\"\",\n \"\\\"instanceof\\\"\",\n \"\\\".\\\"\",\n \"\\\"(\\\"\",\n \"\\\")\\\"\",\n \"\\\"true\\\"\",\n \"\\\"false\\\"\",\n \"\\\"null\\\"\",\n \"\\\"#this\\\"\",\n \"\\\"#root\\\"\",\n \"\\\"#\\\"\",\n \"\\\"[\\\"\",\n \"\\\"]\\\"\",\n \"\\\"{\\\"\",\n \"\\\"}\\\"\",\n \"\\\"@\\\"\",\n \"\\\"new\\\"\",\n \"\\\"$\\\"\",\n \"\\\" \\\"\",\n \"\\\"\\\\t\\\"\",\n \"\\\"\\\\f\\\"\",\n \"\\\"\\\\r\\\"\",\n \"\\\"\\\\n\\\"\",\n \"<IDENT>\",\n \"<LETTER>\",\n \"<DIGIT>\",\n \"<DYNAMIC_SUBSCRIPT>\",\n \"\\\"`\\\"\",\n \"\\\"\\\\\\'\\\"\",\n \"\\\"\\\\\\\"\\\"\",\n \"<ESC>\",\n \"<token of kind 72>\",\n \"\\\"\\\\\\'\\\"\",\n \"<BACK_CHAR_ESC>\",\n \"<token of kind 75>\",\n \"\\\"`\\\"\",\n \"<STRING_ESC>\",\n \"<token of kind 78>\",\n \"\\\"\\\\\\\"\\\"\",\n \"<INT_LITERAL>\",\n \"<FLT_LITERAL>\",\n \"<DEC_FLT>\",\n \"<DEC_DIGITS>\",\n \"<EXPONENT>\",\n \"<FLT_SUFF>\", };\n\n}", "title": "" }, { "docid": "db0d3f20a93b4b7dc8aac3860ce881f8", "score": "0.46014687", "text": "private PdlExpressionNode parseFactor() throws IOException {\n\t\tint t = tokenizer.nextToken();\n\t\tif (t == '+' || t == '-' || t == '~') {\n\t\t\treturn createUnaryOperatorNode(t).withTarget(parseFactor());\n\t\t} else {\n\t\t\ttokenizer.pushback();\n\t\t\treturn parsePrimary();\n\t\t}\n\t}", "title": "" }, { "docid": "efcef758cda880ee0c363ca428506896", "score": "0.4598713", "text": "public static float convertToFloat(char value)\n {\n return (float) value;\n }", "title": "" }, { "docid": "48531174b9433bb4424888b50812495c", "score": "0.45927668", "text": "public void setFLT(java.lang.String FLT) {\r\n this.FLT = FLT;\r\n }", "title": "" }, { "docid": "20936ee49a98c77603fd5f898ffe5566", "score": "0.45771974", "text": "public FortranLexer() {;\n }", "title": "" }, { "docid": "6fc49c879ed71f0ef1750b77cee1b4c7", "score": "0.4567557", "text": "public MathParser(MathParserTokenManager tm) {\n token_source = tm;\n token = new Token();\n jj_ntk = -1;\n jj_gen = 0;\n for (int i = 0; i < 17; i++) jj_la1[i] = -1;\n for (int i = 0; i < jj_2_rtns.length; i++) jj_2_rtns[i] = new JJCalls();\n }", "title": "" }, { "docid": "bd0085030857cac85f9788e7f4bc0d6a", "score": "0.45672813", "text": "com.google.protobuf.FloatValueOrBuilder getTypeFloatOrBuilder();", "title": "" }, { "docid": "3ee15f02c46dee746c990d6ca8d87862", "score": "0.4566132", "text": "@Override\r\n public void visit(NumberTypeNode node) {\n out.write(\"scalar_shape(unit(\\\"\\\"))\");\r\n }", "title": "" }, { "docid": "9342a1680fe047f7aa309c5588ec8a19", "score": "0.4566013", "text": "void mo123493a(float f, float f2);", "title": "" }, { "docid": "3b71808a7a7f05aa899fa79d2914797b", "score": "0.45621887", "text": "public void numberFloat(KeyEvent evt, char sep,String txt) {\n oneSepatator(evt,txt+evt.getKeyChar(),sep);\n aloneTxt(evt, Constants.NUMBERS + sep, false);\n }", "title": "" }, { "docid": "65a439c863cd178fb1b18505738c73db", "score": "0.45548224", "text": "public void setLiteral(int index, float f) {\n this.setParam(index, NodeFactoryExtra.floatToNode(f));\n }", "title": "" }, { "docid": "4af0759da985d634f0dd4eb0eaf0315c", "score": "0.45401856", "text": "public JNPVariableParser() {\n this(\"\");\n }", "title": "" }, { "docid": "f0a09d01c1cc326128b6c20b99a2aa26", "score": "0.4539059", "text": "public final void synpred9_GalaxyXDefinitionParser_fragment() throws RecognitionException { \r\n // C:\\\\Users\\\\Timo\\\\EclipseProjects\\\\GalaxyX\\\\build\\\\classes\\\\com\\\\galaxyx\\\\parser\\\\GalaxyXDefinitionParser.g:62:18: ( function_decl )\r\n // C:\\\\Users\\\\Timo\\\\EclipseProjects\\\\GalaxyX\\\\build\\\\classes\\\\com\\\\galaxyx\\\\parser\\\\GalaxyXDefinitionParser.g:62:18: function_decl\r\n {\r\n pushFollow(FOLLOW_function_decl_in_synpred9_GalaxyXDefinitionParser241);\r\n function_decl();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n }", "title": "" }, { "docid": "2fa1a85e0e34fb2e911f2e781b99b81a", "score": "0.4534289", "text": "private float parseValue( final ParsingContext context ) {\n\n String tmpStr = null ;\n float value = 0.0F ;\n int startIndex = 0 ;\n int endIndex = 0 ;\n\n startIndex = context.contents.indexOf( VALUE_START, context.parsePos ) ;\n if( startIndex != -1 ) {\n startIndex += VALUE_START.length() ;\n endIndex = context.contents.indexOf( VALUE_END, startIndex ) ;\n tmpStr = context.contents.substring( startIndex, endIndex ) ;\n\n try {\n value = DECIMAL_FMT.parse( tmpStr ).floatValue() ;\n }\n catch ( final ParseException e ) {\n logger.warn( \"Could not parse number \" + tmpStr ) ;\n }\n\n context.parsePos = endIndex + VALUE_END.length() ;\n }\n\n return value ;\n }", "title": "" }, { "docid": "aedce8f897e923d7da2a37cc093a5888", "score": "0.45331413", "text": "@Override\n public boolean isFloatingPointNumber() { return true; }", "title": "" }, { "docid": "e3002d2c1397171f219154494bb3a083", "score": "0.45267957", "text": "void createFloatField (Object parent, String name, float val);", "title": "" }, { "docid": "e84f89d67523c370da3c991591f9472c", "score": "0.45267636", "text": "public float nextFloat() {\n\t\treturn (nextInt() >>> 9) * 0x1.0P-23f;\n\t}", "title": "" }, { "docid": "a74cdcf74f5851b4dfd43cdf04c878fa", "score": "0.45252636", "text": "public FlasmLexer() {\n\n }", "title": "" }, { "docid": "93edf05fe198deb2821bae4142ad65dd", "score": "0.4522451", "text": "public static String fromTag(FloatTag tag) {\n return String.valueOf(tag.getValue()) + MojangsonToken.FLOAT_SUFFIX;\n }", "title": "" }, { "docid": "8fe998d0ad8a16a53299c07eeb5818fd", "score": "0.4522004", "text": "public void a(float paramFloat) {}", "title": "" }, { "docid": "03bdc39d94d4778192dbae69343ac734", "score": "0.45173514", "text": "public final void synpred3_GalaxyXDefinitionParser_fragment() throws RecognitionException { \r\n // C:\\\\Users\\\\Timo\\\\EclipseProjects\\\\GalaxyX\\\\build\\\\classes\\\\com\\\\galaxyx\\\\parser\\\\GalaxyXDefinitionParser.g:54:18: ( function_decl )\r\n // C:\\\\Users\\\\Timo\\\\EclipseProjects\\\\GalaxyX\\\\build\\\\classes\\\\com\\\\galaxyx\\\\parser\\\\GalaxyXDefinitionParser.g:54:18: function_decl\r\n {\r\n pushFollow(FOLLOW_function_decl_in_synpred3_GalaxyXDefinitionParser174);\r\n function_decl();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n }", "title": "" }, { "docid": "7e33efca76e97a1461afa0cc321bc8dc", "score": "0.4516727", "text": "boolean hasTypeFloat();", "title": "" }, { "docid": "f9646cbb37d5cf8554098df6ed1c7042", "score": "0.45065817", "text": "protected void method_3874(float var1) {}", "title": "" }, { "docid": "c8785125900f4774f72180b6fff28a4a", "score": "0.45061573", "text": "public static boolean isFloat(TextField input)\n\t{\n\t\ttry\n\t\t{\n\t\t\tdouble num = Double.parseDouble(input.getText());\n\t\t\t//System.out.println(\"It is a floating point number.\");\n\t\t\treturn true;\n\t\t} catch (NumberFormatException e) \n\t\t{\n\t\t\tConfirm.display(\"Error\", \"Please change your input to a floating point value.\");\n\t\t\t\treturn false;\n\t\t\t}\n\t}", "title": "" }, { "docid": "b7cd6770275d73debb85c504ed578f16", "score": "0.44984704", "text": "public interface NceParser {\n Expr takeExpr();\n Term takeTerm();\n Factor takeFactor();\n Value takeValue();\n}", "title": "" }, { "docid": "c62929239e71436025a0d6bd3a36f9a7", "score": "0.44980684", "text": "@Override\n\tpublic void caseFloatConstant(FloatConstant arg0) {\n\t\t\n\t}", "title": "" }, { "docid": "4e8bce930fe813196158b2290a02b9b7", "score": "0.4497759", "text": "public interface ParserConstants {\n\n /** End of File. */\n int EOF = 0;\n /** RegularExpression Id. */\n int Num = 5;\n /** RegularExpression Id. */\n int BOOL_LIT = 6;\n /** RegularExpression Id. */\n int REF_TYPE = 7;\n /** RegularExpression Id. */\n int INT_TYPE = 8;\n /** RegularExpression Id. */\n int BOOL_TYPE = 9;\n /** RegularExpression Id. */\n int CMD_TYPE = 10;\n /** RegularExpression Id. */\n int LPAR = 11;\n /** RegularExpression Id. */\n int RPAR = 12;\n /** RegularExpression Id. */\n int LBRACE = 13;\n /** RegularExpression Id. */\n int RBRACE = 14;\n /** RegularExpression Id. */\n int ADD_OP = 15;\n /** RegularExpression Id. */\n int MINUS = 16;\n /** RegularExpression Id. */\n int MUL_OP = 17;\n /** RegularExpression Id. */\n int DIV_OP = 18;\n /** RegularExpression Id. */\n int EQ = 19;\n /** RegularExpression Id. */\n int IF_TOK = 20;\n /** RegularExpression Id. */\n int THEN_TOK = 21;\n /** RegularExpression Id. */\n int ELSE_TOK = 22;\n /** RegularExpression Id. */\n int GR = 23;\n /** RegularExpression Id. */\n int GREQ = 24;\n /** RegularExpression Id. */\n int LS = 25;\n /** RegularExpression Id. */\n int LSEQ = 26;\n /** RegularExpression Id. */\n int NEQ = 27;\n /** RegularExpression Id. */\n int AND = 28;\n /** RegularExpression Id. */\n int OR = 29;\n /** RegularExpression Id. */\n int NOT = 30;\n /** RegularExpression Id. */\n int QUEST = 31;\n /** RegularExpression Id. */\n int COLON = 32;\n /** RegularExpression Id. */\n int SEMICOLON = 33;\n /** RegularExpression Id. */\n int EL = 34;\n /** RegularExpression Id. */\n int DECL = 35;\n /** RegularExpression Id. */\n int ASSOC = 36;\n /** RegularExpression Id. */\n int IN = 37;\n /** RegularExpression Id. */\n int END = 38;\n /** RegularExpression Id. */\n int NEW = 39;\n /** RegularExpression Id. */\n int ASSIGN = 40;\n /** RegularExpression Id. */\n int WHILE = 41;\n /** RegularExpression Id. */\n int DO = 42;\n /** RegularExpression Id. */\n int PRINT = 43;\n /** RegularExpression Id. */\n int PRINTLN = 44;\n /** RegularExpression Id. */\n int DEREF = 45;\n /** RegularExpression Id. */\n int DOT = 46;\n /** RegularExpression Id. */\n int STRING_DEL = 47;\n /** RegularExpression Id. */\n int FUN = 48;\n /** RegularExpression Id. */\n int ARROW = 49;\n /** RegularExpression Id. */\n int COMMA = 50;\n /** RegularExpression Id. */\n int STRING = 51;\n\n /** Lexical state. */\n int DEFAULT = 0;\n\n /** Literal token values. */\n String[] tokenImage = {\n \"<EOF>\",\n \"\\\" \\\"\",\n \"\\\"\\\\t\\\"\",\n \"\\\"\\\\r\\\"\",\n \"\\\"\\\\n\\\"\",\n \"<Num>\",\n \"<BOOL_LIT>\",\n \"\\\"ref\\\"\",\n \"\\\"int\\\"\",\n \"\\\"bool\\\"\",\n \"\\\"cmd\\\"\",\n \"\\\"(\\\"\",\n \"\\\")\\\"\",\n \"\\\"{\\\"\",\n \"\\\"}\\\"\",\n \"\\\"+\\\"\",\n \"\\\"-\\\"\",\n \"\\\"*\\\"\",\n \"\\\"/\\\"\",\n \"\\\"==\\\"\",\n \"\\\"if\\\"\",\n \"\\\"then\\\"\",\n \"\\\"else\\\"\",\n \"\\\">\\\"\",\n \"\\\">=\\\"\",\n \"\\\"<\\\"\",\n \"\\\"<=\\\"\",\n \"\\\"!=\\\"\",\n \"\\\"&&\\\"\",\n \"\\\"||\\\"\",\n \"\\\"~\\\"\",\n \"\\\"?\\\"\",\n \"\\\":\\\"\",\n \"\\\";\\\"\",\n \"\\\";;\\\"\",\n \"\\\"decl\\\"\",\n \"\\\"=\\\"\",\n \"\\\"in\\\"\",\n \"\\\"end\\\"\",\n \"\\\"new\\\"\",\n \"\\\":=\\\"\",\n \"\\\"while\\\"\",\n \"\\\"do\\\"\",\n \"\\\"print\\\"\",\n \"\\\"println\\\"\",\n \"\\\"!\\\"\",\n \"\\\".\\\"\",\n \"\\\"\\\\\\\"\\\"\",\n \"\\\"fun\\\"\",\n \"\\\"=>\\\"\",\n \"\\\",\\\"\",\n \"<STRING>\",\n };\n\n}", "title": "" }, { "docid": "606dd9d5d18acdbc6912b03fbf2f4051", "score": "0.4488504", "text": "public Number(String text){\n\tvalue = Double.parseDouble(text);\n }", "title": "" }, { "docid": "d1eae297c7044cf8cf3f4549d73fc29b", "score": "0.44869187", "text": "public void standard_type() {\n\t\tif (lookahead.getTokenType() == TokenType.INTEGER) {\n\t\t\tmatch(TokenType.INTEGER);\n\t\t} else if (lookahead.getTokenType() == TokenType.REAL) {\n\t\t\tmatch(TokenType.REAL);\n\t\t} else {\n\t\t\terror(\"Error in standard_type\");\n\t\t}\n\t}", "title": "" }, { "docid": "60076698aa27c196d3aa21a98999a668", "score": "0.44822088", "text": "public static EFloat FromString(String str) {\n return FromString(str, 0, str == null ? 0 : str.length(), null);\n }", "title": "" } ]
b7d35ea22779e12b897f361c481a2259
Executes the action taken after the suggestion item is chosen. The action will be different depending on the type of SuggestionGenerator.
[ { "docid": "3395f9cd96e56ff0dcead68e169022fa", "score": "0.0", "text": "Runnable getAction();", "title": "" } ]
[ { "docid": "ac2702676a0aae2dc61ddd0b552c8486", "score": "0.6534127", "text": "public interface SuggestionItem {\n /**\n * Gets the property value of the SuggestionItem based on the key.\n *\n * @param key The key to a key-value mapping.\n * @return The value of the mapping.\n */\n Optional<String> getProperty(String key);\n\n /**\n * Executes the action taken after the suggestion item is chosen.\n * The action will be different depending on the type of SuggestionGenerator.\n *\n * @return The action taken after the suggestion item is chosen.\n */\n Runnable getAction();\n}", "title": "" }, { "docid": "37ea6dd90d37182a20f43e74aeb67e7e", "score": "0.627847", "text": "private void doSpellSuggestionChosen(String suggestion) {\n QueryContext queryContext = searchContext.getContext(QueryContext.class);\n queryContext.setTextQuery(suggestion);\n searchManager.search(new Callback<SearchResult>() {\n public void onSuccess(SearchResult result) {\n multicaster.notifySearchResultUpdated(SpellCheckBar.this, result);\n }\n });\n }", "title": "" }, { "docid": "5d473a1379529015febfc31f9d2a94c8", "score": "0.6058359", "text": "public void run() {\n switch (option) {\n case HIGHLIGHT:\n original = selection;\n break;\n default:\n original = origText.getText().toString().trim();\n break;\n }\n\n Log.d(\"Original\", original);\n\n // Cancel previous suggestion if there was one\n if (suggPending != null)\n suggPending.cancel(true);\n\n // Check to make sure there is text to work on\n if (original.length() != 0) {\n // Let user know we're doing something\n Log.v(\"Message\", getResources().getString(R.string.working));\n\n // Begin suggestion now but don't wait for it\n try {\n SuggestTask suggestTask = new SuggestTask(\n NewAppt.this, // reference to activity\n original // original text\n );\n suggPending = suggThread.submit(suggestTask);\n } catch (RejectedExecutionException e) {\n // Unable to start new task\n Log.v(\"Message\", getResources().getString(R.string.error));\n\n }\n }\n }", "title": "" }, { "docid": "9784e85562abe0de4354554084afe224", "score": "0.5855282", "text": "public void go() {\n Item temporaryItem = RandomizedItemChooser.choose(this.database, \"Theoretical\");\n System.out.println(temporaryItem.getTopic() + \"\\n\" + temporaryItem.getQuestion() + \"\\n\" +\n temporaryItem.getCorrectChoice());\n }", "title": "" }, { "docid": "441953583829dc96c33ccc821a650f10", "score": "0.5797621", "text": "public void actionPerformed(ActionEvent e) {\n JMenuItem item = (JMenuItem)e.getSource();\n SuggestionType type = (SuggestionType)(item.getClientProperty(TYPE));\n assert type != null;\n SuggestionManagerImpl manager =\n (SuggestionManagerImpl)SuggestionManager.getDefault();\n manager.setEnabled(type.getName(), true, false);\n }", "title": "" }, { "docid": "29c6ed3be249b92b9e1af75a915c35db", "score": "0.57501465", "text": "private ActionListener suggest() {\r\n\t\treturn new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tauto = new AutocompleteProvider();\r\n\t\t\t\tauto.train(trainer.getText());\r\n\t\t\t\tinputStr = inputText.getText(); \r\n\t\t\t\toutput = auto.getSuggestions(inputStr);\r\n\t\t\t\t \r\n\t\t\t\tsuggestionsAll.setText(\"\"); \r\n\t\t\t\tsuggestionsAll.setText(output);\r\n\t\t\t\t \r\n\t\t\t}\r\n\t\t};\r\n\t}", "title": "" }, { "docid": "1a77cb02cefbbb97a1a0a25be034f6af", "score": "0.57108814", "text": "public DisproveSuggestionAction() {}", "title": "" }, { "docid": "43961bb763915fc8a6d31bf067a0ad63", "score": "0.56608784", "text": "protected abstract void doAction(int option);", "title": "" }, { "docid": "43961bb763915fc8a6d31bf067a0ad63", "score": "0.56608784", "text": "protected abstract void doAction(int option);", "title": "" }, { "docid": "f9311f8cf7122069a202af8a505dc4c0", "score": "0.56315964", "text": "@Override\r\n public void onGetSuggestionResult(MKSuggestionResult arg0,\r\n int arg1) {\n\r\n }", "title": "" }, { "docid": "4749fadcb899e08eec5a14e0ddff84ba", "score": "0.5608978", "text": "public void doAction(){\n if(currmethod == random){\n int action = (int) Math.floor(Math.random() * numAction); // pick from 4 possible actions of up down left right\n setAction(action);\n }\n else if(currmethod != random){\n // Check if explore or not with epsilon\n int action = 0;\n int currstate = state[qRobotHeading][qEnemyBearing][qEnemyDistance][qx(RobotX)][qy(RobotY)];\n\n if(Math.random() < epsilon){\n action = (int) Math.floor(Math.random() * numAction); // pick from 6 possible actions\n }\n else{\n action = pickBestAction(currstate);\n }\n setAction(action);\n\n // Train Qlearn or Sarsa in LUTupdate\n LUTupdate(currstate, action, reward);\n }\n }", "title": "" }, { "docid": "01dff1f3d8f238a8cb63953ad113882e", "score": "0.56057256", "text": "private void changeSelectedToSuggestion() {\n // int latestScrollBarValue =\n // jScrollPane_textpane.getVerticalScrollBar().getValue();\n Annotation toChange = WorkSet.currentAnnotation;\n suggestion theRightOne = (suggestion) jList3.getSelectedValue();\n changeAnnotationToSuggestion(toChange, theRightOne);\n\n }", "title": "" }, { "docid": "e3aad67b240caf8c5c40e6251465b520", "score": "0.5575336", "text": "@Override\n\tpublic int chooseAction() {\n\t\treturn 0;\n\t}", "title": "" }, { "docid": "1a369a02b071d85ef3b9fb574d5f77aa", "score": "0.5562031", "text": "@Override\r\n\t\t\tpublic boolean onSuggestionSelect(int position) {\n\t\t\t\treturn false;\r\n\t\t\t}", "title": "" }, { "docid": "3c9ae485b434c8622ef53ea6f9479322", "score": "0.5525843", "text": "@Override\n public boolean onSuggestionSelect(int position) {\n return true;\n }", "title": "" }, { "docid": "6e1cebdaf264428ff3bcb0ce9cccccad", "score": "0.5477759", "text": "public abstract <T> SuggestionResult execute(ExecutableSuggestionSearch search, Class<T> c);", "title": "" }, { "docid": "2d57362a497fd7c8b18c245d6ce247f4", "score": "0.5462607", "text": "public void doSelectedItemAction() {\n\t\t\tMenuItem selectedItem = getSelectedItem();\n\t\t\t\n\t\t\tif (selectedItem != null) {\n\n\t\t\t\t// doItemAction(true, true);\n\t\t\t\tdoItemAction(selectedItem, true);\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "d3d6c70ba63bd41aa95da5c6196e53ee", "score": "0.5459246", "text": "@Override\r\n\tpublic boolean onSuggestionSelect(int position) {\n\t\treturn false;\r\n\t}", "title": "" }, { "docid": "469923aabdcfbae097554f2d8e81961d", "score": "0.54531413", "text": "protected void\n pick(SoPickAction action)\n//\n////////////////////////////////////////////////////////////////////////\n{\n doAction(action);\n}", "title": "" }, { "docid": "1283c68eab122bf26b7769b338932b09", "score": "0.5441786", "text": "public void execute( )\r\n {\r\n activatePick( );\r\n }", "title": "" }, { "docid": "947f76d5f88b78f9ab965089fd73e73d", "score": "0.5342751", "text": "public abstract void determineAction();", "title": "" }, { "docid": "c558babe029ee96b594ff018c7dbc2e7", "score": "0.53126496", "text": "@Override\n public boolean onSuggestionClick(int position) {\n\n return true;\n }", "title": "" }, { "docid": "1b6d896123e9300b9adda5ae11d4da11", "score": "0.52965426", "text": "@Override\r\n\t\t\tpublic boolean onSuggestionClick(int position) {\n\t\t\t\tCursor c = (Cursor) suggestion.getItem(position);\r\n\t\t\t\tString query = c.getString(c.getColumnIndex(SearchManager.SUGGEST_COLUMN_TEXT_1));\r\n\t\t\t\tToast.makeText(ProfileController.this, \"Suggestion clicked: \" + query, Toast.LENGTH_LONG).show();\r\n\t\t\t return true;\r\n\t\t\t\t//return false;\r\n\t\t\t}", "title": "" }, { "docid": "c62ff7a3aef98ed1d3b062b3cfc8044f", "score": "0.52929384", "text": "public void takeAction() {\n\t\tSystem.out.print(\"Use what?\");\n\t}", "title": "" }, { "docid": "4265bd54bb508235138e24163987f723", "score": "0.52575254", "text": "protected void processSuggestions(SpellCheckResult result) {\n final String collatedSuggestion = result.getCollatedSuggestion();\n\n Map<String, List<SpellCheckResult.Suggestion>> suggestionsByWord = result.getSuggestionsByOriginal();\n for (Map.Entry<String, List<SpellCheckResult.Suggestion>> entry : suggestionsByWord.entrySet()) {\n String word = entry.getKey();\n List<SpellCheckResult.Suggestion> suggestions = entry.getValue();\n if (suggestions.isEmpty()) {\n continue;\n }\n\n // if there's only one suggestion then showing as a link\n if (suggestions.size() == 1) {\n final SpellCheckResult.Suggestion suggestion = suggestions.get(0);\n SimpleLinkButton label = new SimpleLinkButton(suggestion.getWord(), new ClickHandler() {\n public void onClick(ClickEvent event) {\n doSpellSuggestionChosen(suggestion.getWord());\n }\n });\n suggestionsPane.add(label);\n continue;\n }\n\n // if there're multiple suggestions then showing them as a drop down box\n\n DropDownBox<SpellCheckResult.Suggestion> dropDown = new DropDownBox<SpellCheckResult.Suggestion>();\n dropDown.addOption(word, null);\n for (SpellCheckResult.Suggestion suggestion : suggestions) {\n dropDown.addOption(suggestion.getWord(), suggestion);\n }\n dropDown.addSelectionHandler(new SelectionHandler<SpellCheckResult.Suggestion>() {\n public void onSelection(SelectionEvent<SpellCheckResult.Suggestion> event) {\n if (event.getSelectedItem() != null) {\n doSpellSuggestionChosen(event.getSelectedItem().getWord());\n }\n }\n\n public void valueSelected(Widget sender, SpellCheckResult.Suggestion suggestion) {\n\n }\n });\n suggestionsPane.add(dropDown);\n }\n \n if (collatedSuggestion != null) {\n SimpleLinkButton label = new SimpleLinkButton(collatedSuggestion, new ClickHandler() {\n public void onClick(ClickEvent event) {\n doSpellSuggestionChosen(collatedSuggestion);\n }\n });\n label.addStyleName(\"inline\");\n collatePane.add(label);\n collatedLine.setVisible(true);\n } else {\n collatedLine.setVisible(false);\n }\n\n show();\n }", "title": "" }, { "docid": "cf14af1cabec873039b572aba784e858", "score": "0.5213766", "text": "public void makeSuggestion() {\n\t\tCard cardShown = Board.getInstance().handleSuggestion(this, suggestion);\n\t\tif (cardShown == null) {\n\t\t\t//search if player has room card that they are in, if not set a boolean to make accusation next turn\n\t\t\tboolean hasRoomCard = false;\n\t\t\tfor (String s: getSeenCards()) {\n\t\t\t\tif (s.equals(suggestion.getRoom())){\n\t\t\t\t\thasRoomCard = true;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (!hasRoomCard) {\n\t\t\t\tshouldAccuse = true;\n\t\t\t}\t\t\n\t\t}\n\t}", "title": "" }, { "docid": "11e60a6c6ce8da0a031bc839e1baf4ae", "score": "0.5195065", "text": "void buddyAction(ItemAction action, Buddy newBuddy);", "title": "" }, { "docid": "a72d3cf4795521503ee126b8eb20b70d", "score": "0.5173052", "text": "public void readAndExecuteAction(){\n\t\tint input = -1;\n\t\t\n\t\tinput = getUserIntInRange(\"Enter choice:\", 0 , menuItems.size());\n\t\t\n\t\tperformAction(input);\n\t}", "title": "" }, { "docid": "0a44589879183c56412929c0559b3078", "score": "0.51647687", "text": "@Test\n public void blockSuggestion() {\n app.blockSuggestion(\"action-id\", (req, ctx) -> ctx.ack());\n }", "title": "" }, { "docid": "db91e0499b83dcbd7a3d7d73bb0cce74", "score": "0.51633984", "text": "public abstract int selectActionWithoutReward();", "title": "" }, { "docid": "711b028a22ee865a980a013e569bab19", "score": "0.515554", "text": "public void postProcess()\n {\n if(actions.size()==0)\n {\n actions.add(Types.ACTIONS.ACTION_LEFT);\n actions.add(Types.ACTIONS.ACTION_RIGHT);\n actions.add(Types.ACTIONS.ACTION_USE);\n }\n\n super.postProcess();\n }", "title": "" }, { "docid": "db5891b39b97faaafa43f679e7cd0988", "score": "0.5146351", "text": "@Override\r\n\tpublic boolean onSuggestionClick(int position) {\n\t\tCursor c = (Cursor) mSuggestionsAdapter.getItem(position);\r\n String query = c.getString(c.getColumnIndex(SearchManager.SUGGEST_COLUMN_TEXT_1));\r\n Toast.makeText(this, \"Suggestion clicked: \" + query, Toast.LENGTH_LONG).show();\r\n return true;\r\n\t}", "title": "" }, { "docid": "bb3c5e7ce82cb105c5bd428b965edfdf", "score": "0.5121542", "text": "public void doAction(Player player, Window choice){\n\n player.setWindow(choice);\n assignFavorToken(player);\n\n }", "title": "" }, { "docid": "9ba9fb717e9ecaeaa2ae6f11bfa3d893", "score": "0.511956", "text": "public boolean action(char choice){\n\t\tfor(int i = 0; i < this.options.length; i++){\n\t\t\tif(choice == this.options[i]){\n\t\t\t\treturn actions[i].execute();\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn false;\n\t}", "title": "" }, { "docid": "7c533cef25911bde1d682c40e89a3c33", "score": "0.51180655", "text": "public void chooseAction() {\n int input;\n do {\n attendeePresenter.chooseActionText();\n input = getValidInput(1, 12);\n switch (input) {\n case 1: {\n attendeePresenter.printEventName();\n String event_name = sc.nextLine();\n this.callSignUp(username, event_name);\n break;\n }\n case 2: {\n attendeePresenter.printEventName();\n String event_name = sc.nextLine();\n this.callDeleteEvent(username, event_name);\n break;\n }\n case 3: {\n viewAllEvents();\n break;\n }\n case 4: {\n viewScheduledEventsAttending(username);\n break;\n }\n case 5: {\n attendeePresenter.printUsernameView();\n String un = sc.nextLine();\n callViewMessages(username, un);\n break;\n }\n case 6: {\n attendeePresenter.printUsernameHistory();\n String un = sc.nextLine();\n callViewMessages(un, username);\n break;\n }\n case 7: {\n attendeePresenter.printUsername();\n String un = sc.nextLine();\n attendeePresenter.printSend();\n String text = sc.nextLine();\n callSendTo(username, un, text);\n break;\n }\n case 8: {\n attendeePresenter.printAddMessagable();\n String un = sc.nextLine();\n callAddMessenger(un);\n break;\n }\n case 9: {\n String idToChange = markMessageHelper(attendeesAccount.viewAllMessages(this.username),\n \"archived\");\n if (!idToChange.equals(\"\")) {\n archiveMessage(idToChange);\n }\n break;\n }\n case 10: {\n String idToChange = markMessageHelper(attendeesAccount.viewAllMessages(this.username),\n \"read\");\n if (!idToChange.equals(\"\")) {\n markMessageUnread(idToChange);\n }\n break;\n }\n case 11: {\n String idToChange = markMessageHelper(attendeesAccount.viewAllMessages(this.username),\n \"deleted\");\n if (!idToChange.equals(\"\")) {\n userAccount.deleteMessage(idToChange, this.username);\n commonPrintsPresenter.printSuccessfulMessageDeletion();\n }\n break;\n }\n }\n } while (input != 12);\n }", "title": "" }, { "docid": "cbf1bc1e68195aab359ec2a5fc878ad7", "score": "0.51176375", "text": "@Override\n public boolean onSuggestionClick(int position) {\n CursorAdapter ca = searchView.getSuggestionsAdapter();\n Cursor cursor = ca.getCursor();\n cursor.moveToPosition(position);\n searchView.setQuery(cursor.getString(cursor.getColumnIndex(\"Model\")),false);\n return true;\n }", "title": "" }, { "docid": "83107378863fd924c1fef0780729f8d7", "score": "0.511032", "text": "private void doDone() {\n Log.d(this.getLogStart(), \"doDone\");\n PersonStatusHelper personsApp = PersonStatusHelper.getPersonsStorage();\n personsApp.setLastPersonsSelection(this.getSelectedItemIDs());\n this.finish();\n }", "title": "" }, { "docid": "83ca8eb9bf78cfefe35eed5f4abc5b42", "score": "0.5089938", "text": "public void postHintForSelector(CharSequence hint) {\n cancelHintDelay();\n hintInfo.clear();\n hintInfo.setPendingSelectorHint(hint);\n startHintDelay();\n }", "title": "" }, { "docid": "c812da4f99b695138b4a0a86b58519d4", "score": "0.50879043", "text": "private void deduceSuggestionsToGive(String[] tokens, String commandInput, String commandWord) {\n\n if (needTaskSuggestions(tokens, commandWord)) {\n start_index = commandInput.length() + 1;\n saveIfNeeded(commandWord);\n getTaskSuggestions(tokens);\n }\n else if (commandWord.equals(ListCommand.COMMAND_WORD)) {\n start_index = getListSuggestions(tokens);\n }\n else if (commandWord.equals(SortCommand.COMMAND_WORD) && tokens.length == 2) {\n getSortSuggestions(tokens[1]);\n start_index = commandInput.length() + 1;\n }\n }", "title": "" }, { "docid": "c86b1876da2b37c5edf6a0e026bab997", "score": "0.50867516", "text": "public boolean action(Action act, Creature performer, Item target, short action, float counter) {\n/* 166 */ boolean done = true;\n/* 167 */ if (action == 141) {\n/* 168 */ done = MethodsReligion.pray(act, performer, target, counter);\n/* 169 */ } else if (action == 142) {\n/* */ \n/* 171 */ if (performer.getFaith() >= 10.0F) {\n/* 172 */ done = MethodsReligion.sacrifice(act, performer, target);\n/* */ } else {\n/* 174 */ done = true;\n/* */ } \n/* 176 */ } else if (action == 143) {\n/* */ \n/* 178 */ if (performer.getFaith() >= 10.0F) {\n/* 179 */ done = MethodsReligion.desecrate(act, performer, null, target);\n/* */ } else {\n/* 181 */ done = true;\n/* */ } \n/* 183 */ } else if (action == 452) {\n/* */ \n/* 185 */ if (performer.isPriest())\n/* */ {\n/* 187 */ done = true;\n/* */ \n/* 189 */ SelectSpellQuestion spq = new SelectSpellQuestion(performer, \"Spell set\", \"These are your available spells\", target.getWurmId());\n/* 190 */ spq.sendQuestion();\n/* */ }\n/* */ \n/* 193 */ } else if (action == 610) {\n/* */ \n/* 195 */ done = true;\n/* 196 */ if (Servers.localServer.EPIC)\n/* */ {\n/* 198 */ if (performer.getDeity() != null) {\n/* */ \n/* 200 */ EntityMoveQuestion emq = new EntityMoveQuestion(performer);\n/* 201 */ emq.sendQuestion();\n/* */ } \n/* */ }\n/* */ } else {\n/* */ \n/* 206 */ done = super.action(act, performer, target, action, counter);\n/* */ } \n/* 208 */ return done;\n/* */ }", "title": "" }, { "docid": "2482043b9f440987d94bb78875506cae", "score": "0.5085974", "text": "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n final AutocompletePrediction item = MainActivity.placeAutocompleteAdapter.getItem(position);\n final String placeId = item.getPlaceId();\n final CharSequence primaryText = item.getPrimaryText(null);\n\n Log.i(\"AUTOCOMPLETE\", \"Autocomplete item selected: \" + primaryText);\n\n /*\n Issue a request to the Places Geo Data API to retrieve a Place object with additional\n details about the place.\n */\n PendingResult<PlaceBuffer> placeResult = Places.GeoDataApi\n .getPlaceById(MainActivity.mGoogleApiClient, placeId);\n placeResult.setResultCallback(mUpdatePlaceDetailsCallback);\n\n\n }", "title": "" }, { "docid": "58c9c35c8cf7f940b0f325bf79211fec", "score": "0.50771827", "text": "@Override\n public void action() {\n // scan for food (aka deer) and hop on it if any.\n for (int i = 0; i < processing.listGUI.size(); i++) {\n if (processing.listGUI.get(i) instanceof Deer) {\n this.hop((Deer) processing.listGUI.get(i));\n }\n }\n if (deerEatenCount > 0)\n displayDeerEatenCount(); // display deerEatenCount\n }", "title": "" }, { "docid": "603fb052c644a6ac23f88b2be1870512", "score": "0.50664234", "text": "@Override\n\tpublic boolean pickAndExecuteAnAction() {\n\t\treturn false;\n\t}", "title": "" }, { "docid": "14de14090e3389a464d19f44363e89f2", "score": "0.50541735", "text": "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id){\n final AutocompletePrediction item = mAdapter.getItem(position);\n final String placeId = item.getPlaceId();\n final CharSequence primaryText = item.getPrimaryText(null);\n\n //Log.i(\"AddEventActivity\", \"Autocomplete item selected: \" + primaryText);\n\n /*\n Issue a request to the Places Geo Data API to retrieve a Place object with additional\n details about the place.\n */\n PendingResult<PlaceBuffer> placeResult = Places.GeoDataApi\n .getPlaceById(mGoogleApiClient, placeId);\n placeResult.setResultCallback(mUpdatePlaceDetailsCallback);\n\n //Toast.makeText(getApplicationContext(), \"Clicked: \" + primaryText,\n //Toast.LENGTH_SHORT).show();\n //Log.i(\"AddEventActivity\", \"Called getPlaceById to get Place details for \" + placeId);\n }", "title": "" }, { "docid": "d35352a3e6cbbb47a5fbbf0da3372b03", "score": "0.50514865", "text": "private int tryCreateBringingAction(ItemSelector itemSelector) {\n Logger.TASKS.logDebug(\"Creating action for bringing item.\");\n Position position = actionTarget.getPosition();\n ItemContainer itemContainer = GameMvc.instance().getModel().get(ItemContainer.class);\n Item item = itemContainer.util.getItemAvailableBySelector(itemSelector, position);\n if (item == null) {\n Logger.TASKS.logDebug(\"No Item available.\");\n return FAIL;\n }\n PutItemAction putItemAction = new PutItemAction(item, position);\n task.addFirstPreAction(putItemAction);\n Logger.TASKS.logDebug(\"Putting action created.\");\n return NEW;\n }", "title": "" }, { "docid": "5238c63f2a54f66f11dde7355af094db", "score": "0.50460595", "text": "@Override\n\tpublic void onChoose(int which, int eventTag) {\n\t\t\n\t}", "title": "" }, { "docid": "efe65f091132e10a32878279099f38fc", "score": "0.5043088", "text": "public void chooseText() {\n }", "title": "" }, { "docid": "e92d53ee88c68062ceeacef63b9b4d57", "score": "0.50364876", "text": "public void simulateAnswerButtonPress(int hintedLetterIndex, int pressableTaskButtonIndex) {\n\n\t}", "title": "" }, { "docid": "4b84c35e617b4c76b91195399838ad40", "score": "0.50334305", "text": "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n AutocompletePrediction item = mAdapter.getItem(position);\n final String placeId = item.getPlaceId();\n final CharSequence primaryText = item.getPrimaryText(null);\n //Log.i( \"Autocomplete item selected: \" + primaryText);\n/*\nIssue a request to the Places Geo Data API to retrieve a Place object with additional\ndetails about the place.\n*/\n PendingResult<PlaceBuffer> placeResult = Places.GeoDataApi\n .getPlaceById(mGoogleApiClient, placeId);\n placeResult.setResultCallback(mUpdatePlaceDetailsCallback);\n //Toast.makeText(getApplicationContext(), \"Clicked: \" + primaryText,Toast.LENGTH_SHORT).show();\n // Log.i(TAG, \"Called getPlaceById to get Place details for \" + placeId);\n }", "title": "" }, { "docid": "b16948f61be3fea619bdddc3de13f7d5", "score": "0.50236446", "text": "protected boolean pickAndExecuteAnAction() {\n \t\n \tif (cook.status == CookStatus.ordering) {\n \t\tDoCalculateOrder();\n \t\treturn true;\n \t}\n \tif (cook.status == CookStatus.paid) {\n \t\tDoFulfilOrder();\n \t\treturn true;\n \t}\n \n \t//we have tried all our rules and found\n \t//nothing to do. So return false to main loop of abstract agent\n \t//and wait.\n \treturn false;\n }", "title": "" }, { "docid": "17dafac88612cf9ea5c287768568105e", "score": "0.5008961", "text": "@Override\n\t\t\t\t\tpublic String apply(final ICompletionProposal input) {\n\t\t\t\t\t\treturn (input instanceof ScenarioContentAssistProcessor.ScenarioCompletionProposal) ?\n\t\t\t\t\t\t\t\t((ScenarioContentAssistProcessor.ScenarioCompletionProposal) input).suggestion.category() : \n\t\t\t\t\t\t\t\t\t(input instanceof TemplateProposal ? \"Snippets\" : \"Other\");\n\t\t\t\t\t}", "title": "" }, { "docid": "4c00c7ca94746e6a8eb12b9bff439356", "score": "0.50078976", "text": "public void chooseByText() throws StopTest {\n\t\tchooseByText.execute();\n\t}", "title": "" }, { "docid": "f5a2639bcc7b1a6a278790d50c285747", "score": "0.4997821", "text": "@Override\n public boolean onSuggestionClick(int position) {\n CursorAdapter ca = search.getSuggestionsAdapter();\n Cursor cursor = ca.getCursor();\n cursor.moveToPosition(position);\n String clicked_word = cursor.getString(cursor.getColumnIndex(\"en_word\"));\n search.setQuery(clicked_word, false);\n\n //search.setQuery(\"\",false);\n\n search.clearFocus();\n search.setFocusable(false);\n\n Intent intent = new Intent(MainActivity.this, wordInfo.class);\n Bundle bundle = new Bundle();\n bundle.putString(\"en_word\", clicked_word);\n intent.putExtras(bundle);\n startActivity(intent);\n\n return true;\n }", "title": "" }, { "docid": "bcf91f60d1b18cca18459b4f36251cb3", "score": "0.49846902", "text": "SnSuggestResult getSuggestResult();", "title": "" }, { "docid": "6b119ce53330e286d3cb84832d00b100", "score": "0.49786854", "text": "@Override\n public GoalSuggestion reply(String goalKey, GoalSuggestionResponse response) {\n URI uri = buildUri(toGoalSuggestionUrl(MY_SUGGESTIONS_GOAL), goalKey);\n // Step 2. Publishing response\n return restTemplate.postForObject(uri, response, GoalSuggestion.class);\n }", "title": "" }, { "docid": "5ab0ac7a5d8483274304a9e6a222e2bd", "score": "0.49782503", "text": "@Override\n\tpublic void useItem(ItemEntity item) {\n\t\tgetAction().actionPerformed(null);\n\t}", "title": "" }, { "docid": "020650b7770ae77a77c90f3224014ee4", "score": "0.49761525", "text": "@Override\r\n public void doAction(int option)\r\n {\r\n switch(option){\r\n case 1: //View the game goals\r\n viewGoals();\r\n break;\r\n case 2: //View the map help\r\n viewMapHelp();\r\n break;\r\n case 3: //View the map help\r\n viewMapHelp();\r\n break;\r\n case 4: //View the move help\r\n viewMoveHelp();\r\n break;\r\n case 5: //View list help\r\n viewListHelp();\r\n break;\r\n case 6://Return to Main Menu\r\n }\r\n }", "title": "" }, { "docid": "ada7d6446aa6f5714929aa9449700bdf", "score": "0.49712706", "text": "@Override\n public void onClick(View v)\n {\n doTheChoice(choice2, 1);\n }", "title": "" }, { "docid": "dec58ef2f179087033ba90964cf6a466", "score": "0.49619734", "text": "@Override\n\tpublic void handleCommand(CommandAction command) {\n\t\tgetGame().getCommmandHandler().useItem(command);\n\t}", "title": "" }, { "docid": "1ba720d3ad217e73441686d7de8cae4f", "score": "0.49594757", "text": "@Override\n\t\t\tpublic boolean onEditorAction(TextView v, int actionId, KeyEvent event) {\n\t\t\t\tif (actionId == EditorInfo.IME_ACTION_DONE) {\n\t\t\t\t\t// User has finished entering text\n\t\t\t\t\t// Perform the search button click programmatically\n\t\t\t\t\tsearch.performClick();\n\t\t\t\t\t// Return true on successfully handling the action\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\n\t\t\t\t// Do not perform any task when user is actually entering text\n\t\t\t\t// in the editable text view\n\t\t\t\treturn false;\n\t\t\t}", "title": "" }, { "docid": "d0c7575fe545951e30996a057b8d8224", "score": "0.49503392", "text": "public void doAction() {\n\t\t\tswitch(name) {\n\t\t\tcase \"About\":\n\t\t\t\taboutStatus = true;\n\t\t\t\tbreak;\n\t\t\tcase \"Restart Area\":\n\t\t\t\tpuzzle.restartArea();\n\t\t\t\tbreak;\n\t\t\tcase \"Restart Level\":\n\t\t\t\tpuzzle.restartLevel();\n\t\t\t\tbreak;\n\t\t\tcase \"Save Game\":\n\t\t\t\tpuzzle.createLoadDir();\n\t\t\t\tbreak;\n\t\t\tcase \"Load Game\":\n\t\t\t\tpuzzle.loadGame();\n\t\t\t\tbreak;\n\t\t\tcase \"Clipboard\":\n\t\t\t\tclipboardStatus = true;\n\t\t\t\tbreak;\n\t\t\tcase \"Quit\":\n\t\t\t\tSystem.exit(0);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t//close the options after a user makes a selection\n\t\t\tif(!aboutStatus && !clipboardStatus) menu.setShown(false);\n\t\t}", "title": "" }, { "docid": "b26cb03fc8b7a01b1f313635956a87fc", "score": "0.49323007", "text": "public void takeAction(String item) {\n\t\tif (pockets.getPockets().containsKey(item)) {\n\t\t\tpockets.receiveItem(item).use();\n\t\t}\n\t\telse {\n\t\t\tSystem.out.println(\"You don't have that :(\");\n\t\t}\n\t}", "title": "" }, { "docid": "d07d249bceee22adaec7bb5f56e070e0", "score": "0.49300694", "text": "public void newActionSelected( ) {\r\n\r\n hud.newActionSelected( );\r\n }", "title": "" }, { "docid": "7528403ff1bee4ad723a2e0e19633eb5", "score": "0.4926998", "text": "@Override\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\tclearOption();\n\t\t\t\t\t\tsetNextQuizQuestion();\n\t\t\t\t\t}", "title": "" }, { "docid": "7528403ff1bee4ad723a2e0e19633eb5", "score": "0.4926998", "text": "@Override\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\tclearOption();\n\t\t\t\t\t\tsetNextQuizQuestion();\n\t\t\t\t\t}", "title": "" }, { "docid": "934dfc1c427bf67e66860a97e4e22c93", "score": "0.4918609", "text": "public void offerExecuted(Offer offPicked) {\n\t\tinfo.recordPicked(offPicked);\n\t}", "title": "" }, { "docid": "6176d8153869af747681d118154be21c", "score": "0.4914785", "text": "@Override\n public void onClick(View v)\n {\n doTheChoice(choice1, 0);\n }", "title": "" }, { "docid": "c4b2082cf5961457e1569a92ae8a9c3a", "score": "0.49136597", "text": "public void fillInSuggestions() {\n if (suggestions.size() == 0) return;\n \n String suggest = suggestions.get(tabCount % suggestions.size());\n\n eventsCenter.post(new AutoCompleteEvent(start_index, end_index, suggest));\n end_index = start_index + suggest.length();\n \n }", "title": "" }, { "docid": "4bd25ccf44ad2a9fd1281a481105bc26", "score": "0.49020612", "text": "void onRecipeStepSelected (int position);", "title": "" }, { "docid": "4349c7bc1830a7101199365a79cb4499", "score": "0.48988616", "text": "public void useItemLoop() throws InterruptedException{\n if(inventory.getSelectedItem().getClass()!=HealingItem.class)\n return;\n resetEvents();\n optionsLoaded = false;\n options.setSelectorInvisible();\n loadMenu(party);\n party.setSelectorVisible();\n while(!getCancelEvent()){\n //System.out.println(party.getSelectorPosition());\n setAssistText(String.format(\"Use %s x%d on whom?\", inventory.getSelectedItem().getName(),inventory.getSelectedItem().getQuantity()));\n resetEvents();\n \n repaint();\n if(getConfirmEvent()){\n if(!inventory.getSelectedItem().canUseOn(party.getSelectedMember())){\n setAssistText(String.format(\"%s x%d cant be used on %s\", inventory.getSelectedItem().getName(),inventory.getSelectedItem().getQuantity(),party.getSelectedMember().getName()));\n Thread.sleep(50);\n }else{\n inventory.useSelectedItem(party.getSelectedMember());\n resetEvents();\n this.changed();\n }\n }\n }\n resetEvents();\n optionsLoaded = true;\n options.setSelectorVisible();\n loadMenu(inventory);\n party.setSelectorInvisible();\n setAssistText(\"\");\n }", "title": "" }, { "docid": "9d20e9eb1617ef329c388f5942cc4ae2", "score": "0.48983493", "text": "@Override\n public void onClick(View v)\n {\n doTheChoice(choice3, 2);\n }", "title": "" }, { "docid": "9a8a27942ac6236e54c386403726c149", "score": "0.4896122", "text": "public void smartSuggestionsAdded(final NotificationEntry entry, int replyCount,\n int actionCount, boolean generatedByAssistant, boolean editBeforeSending) {\n try {\n mBarService.onNotificationSmartSuggestionsAdded(entry.notification.getKey(), replyCount,\n actionCount, generatedByAssistant, editBeforeSending);\n } catch (RemoteException e) {\n // Nothing to do, system going down\n }\n }", "title": "" }, { "docid": "e382a2f5e92db9b4c92d6c8295232ab9", "score": "0.4894616", "text": "public void autosuggest(String testdata, String objectName, String objectType) throws Exception {\n\n\t\t\t WebElement sourceTitle = driver.findElement(this.getObject(objectName,objectType));\n\t\t\t sourceTitle.sendKeys(testdata);\n\t\t\t WebElement first = driver.findElement(By.xpath(\"html/body/div[2]/div[1]/section[2]/div/div/div/div/div/form/div/div[4]/div[1]/p/ul/li/a/strong\"));\n\t first.click();\t\t\n\t\t\t }", "title": "" }, { "docid": "808418a538376b30265483d1dd02ed2b", "score": "0.48944768", "text": "@Override\n\t\t\tpublic void afterTextChanged(Editable s) {\n\t\t\t\tString chterm;\n\t\t\t\tchterm = actxtSearch.getText().toString();\n\t\t\t\tplacesDownloadTask = new DownloadTask(PLACES);\n\n\t\t\t\t// Getting url to the Google Places Autocomplete api\n\t\t\t\tString url = getAutoCompleteUrl(s.toString());\n\n\t\t\t\t// Start downloading Google Places\n\t\t\t\t// This causes to execute doInBackground() of DownloadTask class\n\t\t\t\tplacesDownloadTask.execute(url);\n\t\t\t}", "title": "" }, { "docid": "d9750cefbc8cc51f6d8e4e168653265a", "score": "0.4893805", "text": "@Override\n public void OnItemAddressClicked(AutocompletePrediction item) {\n final String placeId = item.getPlaceId();\n final CharSequence primaryText = item.getPrimaryText(null);\n\n Log.i(TAG, \"Autocomplete item selected: \" + primaryText);\n\n /*\n Issue a request to the Places Geo Data Client to retrieve a Place object with\n additional details about the place.\n */\n Task<PlaceBufferResponse> placeResult = geoDataClient.getPlaceById(placeId);\n placeResult.addOnCompleteListener(onUpdatePlaceDetailsCallback);\n\n Log.i(TAG, \"Called getPlaceById to get Place details for \" + placeId);\n }", "title": "" }, { "docid": "2729c4dd67512c754e4f1c39255cddaa", "score": "0.48905653", "text": "@Override\n\t\t\tpublic void afterTextChanged(Editable s) {\n\t\t\t\tString chterm;\n\t\t\t\tchterm = actxtSPoint.getText().toString();\n\t\t\t\tplacesDownloadTask1 = new DownloadTask1(PLACES);\n\n\t\t\t\t// Getting url to the Google Places Autocomplete api\n\t\t\t\tString url = getAutoCompleteUrl(chterm.toString());\n\n\t\t\t\t// Start downloading Google Places\n\t\t\t\t// This causes to execute doInBackground() of DownloadTask class\n\t\t\t\tplacesDownloadTask1.execute(url);\n\t\t\t}", "title": "" }, { "docid": "fd871a6fc3db392c9a4013be30899134", "score": "0.4890265", "text": "@Override\n\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\titemChoice(which);\t\t\t\t\t\t\n\t\t\t\t\t}", "title": "" }, { "docid": "4157ee4b28f2b96e0806672900830af7", "score": "0.4889819", "text": "public void actionPerformed(ActionEvent e) {\r\n\t\tif (e.getActionCommand().equals(DONE)) {\r\n\t\t\tdone();\r\n\t\t} else if (e.getActionCommand().equals(SKIP)) {\r\n\t\t\tskip();\r\n\t\t} else if (e.getActionCommand().equals(SKIP_ALL)) {\r\n\t\t\tskip_all();\r\n\t\t} else if (e.getActionCommand().equals(REPLACE)) {\r\n\t\t\treplace();\r\n\t\t} else if (e.getActionCommand().equals(REPLACE_ALL)) {\r\n\t\t\treplace_all();\r\n\t\t} else if (e.getActionCommand().equals(ADD_WORD)) {\r\n\t\t\tadd_word();\r\n\t\t} else if (e.getActionCommand().equals(CANCEL)) {\r\n\t\t\tcancel();\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "a5d4d6ae01d8c66521ff2068158c2e05", "score": "0.48865268", "text": "public void actionHandler(Actions action, int arg1, int arg2) {\n\t\tswitch (action) {\n\t\t\tcase MISC_NEXT_TURN:\n\t\t\t\t// Skips to the next turn.\n\t\t\t\t// Event successful responsible for this.\n\t\t\t\tnextTurn();\n\t\t\t\tbreak;\n\t\t}\n\t}", "title": "" }, { "docid": "06a327cc311b78e9a035c409ce93b440", "score": "0.48860013", "text": "public void doAction(int option)\r\n {\r\n switch(option)\r\n {\r\n case 1: // create and start a new game\r\n viewGoals();\r\n break;\r\n case 2: // get and start a saved game\r\n viewMapHelp();\r\n break;\r\n case 3: // get help menu\r\n ViewMoveHelp();\r\n break;\r\n case 4: // save game\r\n listHelp();\r\n break;\r\n case 5:\r\n //System.out.println(\"Thanks for playing ... goodbye.\");\r\n // return to main menu\r\n return;\r\n\r\n }\r\n\r\n }", "title": "" }, { "docid": "59a777d8b9a01fbf76e35a231b4b21fd", "score": "0.48856807", "text": "protected abstract void doSelection();", "title": "" }, { "docid": "a3cc619bd2259b0fb432b2df1ea75bf4", "score": "0.48811397", "text": "public boolean doAction(LinkedList<Action> intentions, Position position, int freqExploration) {\n boolean doExploration = false;\n long startTime = System.currentTimeMillis();\n long elapsedTime = 0L;\n Action act;\n while (!intentions.isEmpty() && elapsedTime < freqExploration * 1000) {\n act = intentions.pop();\n System.out.println(\"Action executed : \" + act);\n environment.update(position, act);\n position.move(act);\n //The agent takes 5 seconds to execute his intention :\n try {\n TimeUnit.SECONDS.sleep(5);\n } catch (InterruptedException ex) {\n Logger.getLogger(main.class.getName()).log(Level.SEVERE, null, ex);\n }\n elapsedTime = (new Date()).getTime() - startTime;\n }\n if (!intentions.isEmpty()) {\n intentions.clear();\n doExploration = true;\n }\n return doExploration;\n }", "title": "" }, { "docid": "2e6ccec455dbe4ff57c1f522eddbc829", "score": "0.48737013", "text": "public static void chosenInput() {\n\n\t\tString action = \"a\";\n\n\t\t// Repeats until user exits.\n\t\twhile (action.equals(\"e\") == false) {\n\n\t\t\tString inputString = introStatement();\n\t\t\taction = menu().toLowerCase();\n\n\t\t\t// Returns response to menu()'s chosen action. If 'd' is chosen or invalid input\n\t\t\t// given, call the function again. If 'e' is chosen, do nothing.\n\t\t\tif (action.equals(\"a\")) {\n\t\t\t\tSystem.out.println(\"The number of vowels is \" + countVowel(inputString) + \".\\n\");\n\t\t\t}\n\t\t\t\n\t\t\telse if (action.equals(\"b\")) {\n\t\t\t\tSystem.out.println(\"The number of consonants is \" + countConsonant(inputString) + \".\\n\");\n\t\t\t}\n\t\t\t\n\t\t\telse if (action.equals(\"c\")) {\n\t\t\t\tSystem.out.println(\n\t\t\t\t\t\t\"The number of vowels is \" + countVowel(inputString) + \" and the number of consonants is \"\n\t\t\t\t\t\t\t\t+ countConsonant(inputString) + \". The total number of both is \"\n\t\t\t\t\t\t\t\t+ (countVowel(inputString) + countConsonant(inputString) + \".\\n\"));\n\t\t\t\t}\n\t\t\telse if (action.equals(\"d\")) {\n\t\t\t\tchosenInput();\n\t\t\t}\n\t\t\t\n\t\t\telse if (action.equals(\"e\")) {\n\t\t\t\tSystem.out.println(\"Bye!\");\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t\telse {\n\t\t\t\tSystem.out.println(\"I don't understand. Please try again.\\n\");\n\t\t\t\tchosenInput();\n\t\t\t}\n\n\t\t}\n\t}", "title": "" }, { "docid": "98b7138e00b2cc3f29afac97806fd85a", "score": "0.4870427", "text": "public int selectAction();", "title": "" }, { "docid": "028e45c2377984523369ecaaa58ae533", "score": "0.48641077", "text": "@Test\n public void testSendMakeSuggestionAction()\n {\n System.out.println(\"sendMakeSuggestionAction\");\n String person = \"\";\n String vehicle = \"\";\n String destination = \"\";\n Controller instance = new Controller(this.frame, this.player);\n instance.sendMakeSuggestionAction(ActionCardType.SuggestFromAny, person, vehicle, destination);\n assertEquals(this.player.getAction() instanceof MakeSuggestion, true);\n }", "title": "" }, { "docid": "e7aa7c2bf988da539daaf9f186392566", "score": "0.48589507", "text": "@Override public void doAction(int option)\r\n {\r\n switch (option)\r\n {\r\n case 1: // create and start a new game\r\n startNewGame();\r\n break;\r\n case 2: // get and start a saved game\r\n startSavedGame();\r\n break;\r\n case 3: // get help menu\r\n displayHelpMenuView();\r\n break;\r\n case 4: // save game\r\n displaySaveGameView();\r\n break; \r\n case 5:\r\n System.out.println(\"Glad to help... have fun!\"); \r\n }\r\n }", "title": "" }, { "docid": "fdaa4f7b23ca289555c7c3113ba9737d", "score": "0.485819", "text": "public void setSuggestion(Solution suggestion) {\n\t\tthis.suggestion = suggestion;\n\t}", "title": "" }, { "docid": "53bb92cae5a919ba93c4239d87fc0b94", "score": "0.48452312", "text": "@Override\n public Action chooseAction(List<Class<? extends Action>> possibleActions) {\n BidDetails bid;\n\n if (negotiationSession.getOwnBidHistory().getHistory().isEmpty()) {\n bid = group28BS.determineOpeningBid();\n } else {\n bid = group28BS.determineNextBid();\n if (group28BS.isEndNegotiation()) {\n return new EndNegotiation(getPartyId());\n }\n }\n\n if (bid == null) {\n System.out.println(\"Error in code, null bid was given\");\n return new Accept(getPartyId(), oppBid);\n } else {\n group28BS.setNextBid(bid);\n }\n\n Actions decision = Actions.Reject;\n if (!negotiationSession.getOpponentBidHistory().getHistory()\n .isEmpty()) {\n decision = group28AS.determineAcceptability();\n }\n\n if (decision.equals(Actions.Break)) {\n System.out.println(\"send EndNegotiation\");\n return new EndNegotiation(getPartyId());\n }\n\n if (decision.equals(Actions.Reject)) {\n negotiationSession.getOwnBidHistory().add(bid);\n return new Offer(getPartyId(), bid.getBid());\n } else {\n return new Accept(getPartyId(), oppBid);\n }\n }", "title": "" }, { "docid": "82cba13005cbe2e46a2879b8c732cc69", "score": "0.48416677", "text": "public void afterTextChanged(Editable arg0) {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "ad403d2cd8a3dc85d89d760ab5b17e87", "score": "0.4840277", "text": "public interface OnClickSuggestionListener{\n\n public void onClickSuggestion();\n }", "title": "" }, { "docid": "3be7f14cdf0cb494804cde35defede66", "score": "0.48380318", "text": "public void actionTaken(Scanner scan);", "title": "" }, { "docid": "1af7caf20e75767bc91071357bec5b23", "score": "0.48368788", "text": "private void performLocationBasedAction() {\r\n switch (currentState) {\r\n case DODGE_OBSTACLES:\r\n break;\r\n case FIND_PATH:\r\n steerAI();\r\n break;\r\n case FREE_MODE:\r\n break;\r\n default:\r\n break;\r\n }\r\n }", "title": "" }, { "docid": "342abe886e78001a13fcf1c3d62d8dbd", "score": "0.4827927", "text": "@Override\r\n\t\tpublic void actionPerformed(ActionEvent event) {\n\t\t\tJMenuItem item = (JMenuItem)event.getSource();\r\n\t\t\tif(item.equals(insertItem)){\r\n\t\t\t\ttry {\r\n\t\t\t\t\tinsertMatch();\r\n\t\t\t\t} catch (RemoteException e) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t} catch (MalformedURLException e) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t} catch (NotBoundException 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}else\r\n\t\t\t\tif(item.equals(deleteItem)){\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\tdeleteMatches();\r\n\t\t\t\t\t} catch (MalformedURLException e) {\r\n\t\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t} catch (RemoteException e) {\r\n\t\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t} catch (NotBoundException e) {\r\n\t\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t}", "title": "" }, { "docid": "a49200f9a64e1fcf428bdb6989b9c871", "score": "0.48250738", "text": "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e)\n\t\t\t{\n\t\t\t\taction.execute();\n\t\t\t}", "title": "" }, { "docid": "b33a854a15875d4f643972ca2ea41b44", "score": "0.4821063", "text": "public static void selectFirstAutoSuggestion() {\n\t\ttry {\n\t\t\t//Actions act = new Actions(driver);\n\t\t\t//act.moveToElement(repository.Home_Page.getAutoComplete()).moveByOffset(0, -80).click().perform();\n\t\t\trepository.Home_Page.getAutoComplete().click();\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(\"Not able to select first autosuggestion from dropdown\");\n\t\t\tmethods.Generic_Methods.getScreenshot(\n\t\t\t\t\tscreenshotPath+\"selectFirstAutoSuggestion.jpg\");\n\t\t\tmethods.PreCondition.closeBrowser();\n\n\t\t}\n\t}", "title": "" }, { "docid": "b22d76c093291caa306c3a356a1d3cad", "score": "0.4818173", "text": "@Override\r\n public boolean doAction(char entry){\r\n char value = entry;\r\n \r\n switch (value) {\r\n case 'G':\r\n this.describeGameGoal();\r\n this.returnHelpMenu();\r\n return false;\r\n case 'H':\r\n this.healthExplained();\r\n this.returnHelpMenu();\r\n return false;\r\n case 'M':\r\n this.howToMove();\r\n this.returnHelpMenu();\r\n return false;\r\n case 'R':\r\n this.resourceTypes();\r\n this.returnHelpMenu();\r\n return false;\r\n case 'S':\r\n this.societyHelp();\r\n this.returnHelpMenu();\r\n return false; \r\n case 'T':\r\n this.trustLevelsExplained();\r\n this.returnHelpMenu();\r\n return false; \r\n case 'C':\r\n return true;\r\n default:\r\n ErrorView.display(this.getClass().getName(),value + \" is an invalid entry. Please select an option below:\");\r\n return false;\r\n }\r\n \r\n }", "title": "" }, { "docid": "4ee6573e2d1ae15bf5683d40e2ab2ac8", "score": "0.48149073", "text": "public abstract ItemState pickUp();", "title": "" }, { "docid": "6cb73f7b0dad22c56f69924037542076", "score": "0.48135498", "text": "@Override\n public GoalSuggestion addSuggestion(String player, GoalSuggestionRequest suggestionRequest) {\n URI uri = buildUri(toGoalSuggestionUrl(PLAYER_SUGGESTIONS), player);\n // Step 2. Fetch suggestion\n return restTemplate.postForObject(uri, suggestionRequest, GoalSuggestion.class);\n }", "title": "" }, { "docid": "b4ad6721c0168ca826aa8cf9c80593ad", "score": "0.48133874", "text": "public abstract void doPostAlgorithmActions();", "title": "" }, { "docid": "073bbaf3bdea77ebff7c5a5995fc0255", "score": "0.48091573", "text": "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n final AutocompletePrediction item = mAdapter.getItem(position);\n final String placeId = item.getPlaceId();\n final CharSequence primaryText = item.getPrimaryText(null);\n\n Log.i(LOG_TAG, \"Autocomplete item selected: \" + primaryText);\n\n /*\n Issue a request to the Places Geo Data API to retrieve a Place object with additional\n details about the place.\n */\n PendingResult<PlaceBuffer> placeResult = Places.GeoDataApi\n .getPlaceById(mGoogleApiClient, placeId);\n placeResult.setResultCallback(mUpdatePlaceDetailsCallback);\n\n Log.i(LOG_TAG, \"Called getPlaceById to get Place details for \" + placeId);\n }", "title": "" }, { "docid": "42aadb8ed178a73a7366ac5507d86f46", "score": "0.48068717", "text": "public abstract Action pickActionAtRandom(State S_next);", "title": "" } ]
78756b446aab68106ad9d9322eeb4023
/ does everything needed for the set of a channel like assign all objects, adds peer to channel and channel to peer
[ { "docid": "1c8e9a87efabf992bdda01714c63b4a8", "score": "0.6251954", "text": "private void setChannel(Channel channel) {\n\t\tthis.channel = channel;\n\t\tthis.peer.addConnection(new Connection(this, channel));\n\t\tthis.channel.addPeer(this.peer);\n\t}", "title": "" } ]
[ { "docid": "ce486524f1bbda4bb6bafa1adaa7bde8", "score": "0.60624784", "text": "public void setUpConnectionWithOtherPeers() {\n\t\tPeerInfo currentPeerInfo = peerInfoMap.get(peerId);\n\t\tint currentPeerDeclaredOnLine = currentPeerInfo.getLineDeclared();\n\t\tfor (int remotePeerId : peerInfoMap.keySet()) {\n\t\t\tPeerInfo remotePeerInfo = peerInfoMap.get(remotePeerId);\n\t\t\t// compare line numbers\n\t\t\tif (currentPeerDeclaredOnLine > remotePeerInfo.getLineDeclared()) {\n\t\t\t\t// if the remote peer was declared above, the peer would already\n\t\t\t\t// have been initiated\n\t\t\t\t// and the current peer should start the handshake process\n\t\t\t\ttry {\n\t\t\t\t\tSocket socket = new Socket(remotePeerInfo.getIp(), remotePeerInfo.getPortNo());\n\n\t\t\t\t\tlogger.log(Level.ALL,\n\t\t\t\t\t\t\tCommonUtils.formatString(\"peer # makes a connection to peer #\", peerId, remotePeerId));\n\n\t\t\t\t\tremotePeerInfo.initializeSocket(socket);\n\t\t\t\t\tPeerConnectionManager peerConnectionManager = new PeerConnectionManager(currentPeerInfo,\n\t\t\t\t\t\t\tremotePeerInfo);\n\t\t\t\t\tpeerConnectionManager.start();\n\t\t\t\t\tpeerConnectionManagers.add(peerConnectionManager);\n\t\t\t\t} catch (UnknownHostException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// this is now the second part for all the peers delcared below the\n\t\t// current peer.\n\t\t// as those peer processes might not have started, this current peer\n\t\t// will wait on a\n\t\t// new thread listening to connections.\n\t\tnew Thread(new Runnable() {\n\n\t\t\t@Override\n\t\t\tpublic void run() {\n\t\t\t\t// we know that total connections for any peer should be\n\t\t\t\t// (total_number_of_peers_in_system - 1)\n\t\t\t\tint totalConnectionsRequired = peerInfoMap.keySet().size() - 1; // set\n\t\t\t\t// also\n\t\t\t\t// contains\n\t\t\t\t// current\n\t\t\t\t// peerInfo\n\n\t\t\t\t// but we have already made some connections in part 1\n\t\t\t\tint connectionCount = peerConnectionManagers.size();\n\t\t\t\tServerSocket serverSocket = null;\n\t\t\t\ttry {\n\t\t\t\t\tserverSocket = new ServerSocket(currentPeerInfo.getPortNo());\n\n\t\t\t\t\t// untill we get required number of connections listen\n\t\t\t\t\twhile (connectionCount < totalConnectionsRequired) {\n\t\t\t\t\t\tSocket connectionSocket = serverSocket.accept();\n\t\t\t\t\t\tPeerInfo remotePeerInfo = new PeerInfo(); // we will\n\t\t\t\t\t\t// initialize\n\t\t\t\t\t\t// later\n\t\t\t\t\t\tremotePeerInfo.initializeSocket(connectionSocket);\n\t\t\t\t\t\tPeerConnectionManager peerConnectionManager = new PeerConnectionManager(currentPeerInfo,\n\t\t\t\t\t\t\t\tremotePeerInfo);\n\t\t\t\t\t\tpeerConnectionManager.start();\n\t\t\t\t\t\tpeerConnectionManagers.add(peerConnectionManager);\n\t\t\t\t\t\tconnectionCount++;\n\t\t\t\t\t}\n\n\t\t\t\t\tserverSocket.close();\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\n\t\t\t}\n\t\t}).start();\n\t}", "title": "" }, { "docid": "d3ba18b18d6daff4279ce17dad4b3dc0", "score": "0.602741", "text": "void setChannel(Channel channel);", "title": "" }, { "docid": "6f3ddefc9448bd9d9eb7375b9d30200d", "score": "0.59902054", "text": "public static void main(String[] args) {\n Channel ch1=new Channel();\n Channel ch2=new Channel();\n Channel ch3=new Channel();\n \n // ch1.setcName(\"ch1\");\n // ch2.setcName(\"ch2\");\n // ch3.setcName(\"ch3\");\n\n \n Subscriber s1=new Subscriber(\"tanni\");\n Subscriber s2=new Subscriber(\"moon\");\n Subscriber s3=new Subscriber(\"tanvir\");\n ch1.subscribe(s1);\n ch1.subscribe(s2);\n ch1.subscribe(s3);\n ch2.subscribe(s2);\n ch3.subscribe(s3);\n s1.SubscribeChannel(ch1);\n s2.SubscribeChannel(ch1);\n s3.SubscribeChannel(ch1);\n s2.SubscribeChannel(ch2);\n s3.SubscribeChannel(ch3);\n \n \n // System.out.println(ch2.subs);\n \n ch1.upload(\"Moon has uploaded a new video\");\n ch2.upload(\"Moon has shared a new song\");\n ch3.upload(\"Moon is done\");\n \n\t}", "title": "" }, { "docid": "238e69f15fc597808a8c7aee3607663e", "score": "0.59548", "text": "protected abstract void channelJoin ();", "title": "" }, { "docid": "0e6c8c955ce130fb2e6ead86a1aabd09", "score": "0.5854606", "text": "private void onRegister(MessageChannel channel) {\n try {\n String hostOrIp = channel.readNextString();\n int port = channel.readNextInt();\n Peer p = new PeerImpl(hostOrIp, port, messageChannelFactory);\n PeerImpl.this.add(p);\n PeerImpl.this.updatePeerStatus(p, Status.Up);\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "a7c6ade3659a5f93b25525a5a63c94d8", "score": "0.58315706", "text": "public void registerToTheChannel() {\n MeatChannel.getMeatChannel().register(this);\n VegetableChannel.getVegetableChannel().register(this);\n ReadyMealChannel.getReadyMealChannel().register(this);\n PaymentChannel.getPaymentChannel().register(this);\n }", "title": "" }, { "docid": "dcf5f906c3bec12fda26565b85a93ed0", "score": "0.5825431", "text": "private void onMulticastRegister(MessageChannel channel){\n try {\n int id = channel.readNextInt();\n if(PeerImpl.this.multicastSession.isIDUsed(id)){\n channel.close();\n return;\n }\n PeerImpl.this.multicastSession.addUsedId(id);\n String hostOrIp = channel.readNextString();\n int port = channel.readNextInt();\n Peer p = new PeerImpl(hostOrIp, port, messageChannelFactory);\n PeerImpl.this.add(p);\n for (Peer peer: PeerImpl.this.peers) {\n MessageChannel newChannel = getMessageChannel(peer);\n newChannel.writeString(\"peer\");\n newChannel.writeString(Operation.MulticastElectLeader.name());\n newChannel.writeInt(id);\n newChannel.writeString(hostOrIp);\n newChannel.writeInt(port);\n newChannel.close();\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "65abc550f4190e7fca41deb6a361a72f", "score": "0.5792267", "text": "@Override\n\t\t\tprotected void initChannel(SocketChannel ch) throws Exception {\n\t\t\t\tch.pipeline().addLast(new MsgPackDecode());\n\t\t\t\tch.pipeline().addLast(new MsgPackEncode());\n\t\t\t\tch.pipeline().addLast(new ServerHandler());\n\t\t\t}", "title": "" }, { "docid": "efd4403a359d499762845c6964851b36", "score": "0.5747486", "text": "public interface ChordInterface {\n /*\n * method to join a Chord network or start a new network\n * param1 mykey: is the name of the new peer joining the network (typically your own computer)\n * param2 personIknowKey: My entry point to the Chord ring. If null is passed, then a new ring is created\n * return new ring ID if new ring is created\n */\n public BigInteger joinChord(String personIknowKey);\n\n /*\n * Is my predecessor dead?\n */\n public void checkPredecessor();\n\n /*\n * Who is my first living successor in my my successor's list?\n */\n public void stabilize();\n\n /*\n * Ask someone you know about the successor of a node\n * param1 someNodeKey: The node looking for its successor\n * param2 personIknowKey: The node that is being asked\n */\n public String findSuccessor(BigInteger key);\n\n /*\n * Search the Chord network for an object with a given hash\n * param1 IamLookingForThis: The hash of the object Name\n */\n public String search(BigInteger searchKey);\n\n /*\n * Print the successor's list , the fingers and the predecessor's list of a node (one single method\n * param1 nodeKey: the node for which the data is printed\n */\n public void printNodeInfo();\n\n /*\n * Add an object to be stored\n * param1 objectKey: the hash of the (name of the) object\n */\n public BigInteger pushMessage(byte[] message, BigInteger testKey);\n\n}", "title": "" }, { "docid": "38178a2375a96b6f5b0b8a5bd1eea7f7", "score": "0.5737992", "text": "private void channelCreate(MsgInChannelCreate msg, User u){\n //first see if it allready exsits\n try{\n Channel c = channelList.getChannel(msg.getChannelName());\n if(c != null){\n sendErrorMsg(\"Could not create channel <\" + msg.getChannelName() + \"> Already exists!\", u);\n\t\tMsgInChannelJoin nMsg = new MsgInChannelJoin( u.getName(), msg.getChannelName(), msg.getPassword() );\n\t\tchannelJoin(nMsg,u );\n return;\n }\n \n if(u.getNumberOfChannels() + 1 > User.MAX_CHANNELS){\n String errText = \"Could not create the channel <\" + msg.getChannelName() + \"> \";\n errText += \" User can only subscribe to <\" + User.MAX_CHANNELS + \"> Channels, leave a channel first\"; \n sendErrorMsg(errText , u);\n return;\n }\n \n c = channelList.addNewChannel( msg.getChannelName(),msg.getPassword(), u );\n \n //finailly send the gui that the change was succesful\n //UserMsgBox box = u.getUserMsgBox();\n //box.addMessage( new MsgOutChannelJoin(u.getName(), msg.getChannelName(), c.getUserNames() ) ); \n \n }catch(Exception e){\n e.printStackTrace();\n sendErrorMsg(\"Could not create channel Error:\" + e.getMessage(), u);\n }\n }", "title": "" }, { "docid": "1002d8a21a7263f8874cf72e87f5ae96", "score": "0.5680373", "text": "Channel createChannel();", "title": "" }, { "docid": "256aa2a34c707cfafee70a26a93796fb", "score": "0.5656438", "text": "@Override\n\t\t\tprotected void initChannel(SocketChannel ch) throws Exception {\n\t\t\t\tch.pipeline()\n\t\t\t\t.addLast(new ClentHandler2())\n\t\t\t\t.addLast(new ClientHandler());\n\t\t\t}", "title": "" }, { "docid": "75e2decbb5607b5c3039e222e69e5495", "score": "0.5652564", "text": "protected void doStrategy() {\r\n channels.clear();\r\n channels.add(\"Main\");\r\n List<AbstractChannel> listOfChannels = ChannelDiscovery.getInstance().listChannels(); //list of channels\r\n for (int i = 0; i < listOfChannels.size(); i++) {\r\n String channelName = listOfChannels.get(i).getChannelTopic();\r\n if (channelName.startsWith(\"a\") || channelName.startsWith(\"A\")) {\r\n channels.add(channelName);\r\n }\r\n }\r\n }", "title": "" }, { "docid": "dd7012bcf327d54e8e9f9d7f5c87836a", "score": "0.56494457", "text": "private void registerWithPeers() {\n for(Peer p : peers) {\n sendRegisterRequestTo(p);\n }\n }", "title": "" }, { "docid": "a4a2649eecba14a57635d3af81942bd3", "score": "0.56487226", "text": "public interface Channel {\n\n /**\n * Shutdown the channel and all stacks that have been added. Calling shutdown more than once or\n * continuing to use child objects (masters/outstations) after calling shutdown can cause a failure.\n */\n void shutdown();\n\n /**\n * Set the active log levels for the channel's logger\n * @param levels bit-field representing enabled log levels\n */\n void setLogLevel(int levels);\n\n /**\n * Get statistics for the channel\n * @return the statistics object\n */\n LinkStatistics getStatistics();\n\n /**\n * Adds a master to the channel\n *\n * @param loggerId name of the logger that will be assigned to this stack\n * @param handler where measurements will be sent as they are received from the outstation\n * @param application master application instance\n * @param config configuration information for the master stack\n * @return reference to the created master\n * @throws DNP3Exception if any error occurs while creating the master\n */\n Master addMaster(String loggerId, SOEHandler handler, MasterApplication application, MasterStackConfig config) throws DNP3Exception;\n\n /**\n * Adds an outstation to the channel\n *\n * @param id name of the logger that will be assigned to this stack\n * @param commandHandler where command requests are sent to be handled in application code\n * @param application outstation application instance\n * @param config configuration information for the outstation stack\n * @return reference to the created outstation\n * @throws DNP3Exception if any error occurs while creating the outstation\n */\n Outstation addOutstation(String id, CommandHandler commandHandler, OutstationApplication application, OutstationStackConfig config) throws DNP3Exception;\n}", "title": "" }, { "docid": "712bdf712131efc9d25165cfe899f223", "score": "0.5640729", "text": "synchronized void returnToPool(ChannelSftp channel) {\n ConnectionInfo info = con2infoMap.get(channel);\n HashSet<ChannelSftp> cons = idleConnections.get(info);\n if (cons == null) {\n cons = new HashSet<>();\n idleConnections.put(info, cons);\n }\n cons.add(channel);\n\n }", "title": "" }, { "docid": "903a48bedd6de19324afaf714b22b2ee", "score": "0.5626032", "text": "public ChannelDataAppended() {}", "title": "" }, { "docid": "3322e583fbfbbbcf3da2865cbcd63922", "score": "0.56076837", "text": "@Override\n\t\tpublic void run() {\n\t\t\ttry {\n\t\t\t\tinitLock.acquire();\n\t\t\t} catch (InterruptedException e1) {\n\t\t\t\te1.printStackTrace();\n\t\t\t\tinitializing = false;\n\t\t\t\tinitLock.signal();\n\t\t\t\treturn;\n\t\t\t}\n\t\t\t\n\t\t\tif (DEBUG && logger.isDebugEnabled()) {\n logger.debug(\"renew thread start\");\n }\n\t\t\t\n\t\t\t\n\t\t \n\t\t\t synchronized (writableChannels) {\n\n\t\t if (writableChannels.size() != nprocs) {\n\t\t try {\n\t\t \twritableChannels.wait();\n\t\t }\n\t\t catch (Exception e) {\n\t\t e.printStackTrace();\n\t\t initLock.signal();\n\t\t initializing = false;\n\t\t return;\n\t\t }\n\t\t }\n\n\t\t } //end sync.\n\t\t \n\t\t\t if (DEBUG && logger.isDebugEnabled()) {\n\t logger.debug(\"writableChannels renewed\");\n\t }\n\n\t\t /* This is for control-channels. */\n\t\t synchronized (readableChannels) {\n\n\t\t if (readableChannels.size() != nprocs) {\n\t\t try {\n\t\t \treadableChannels.wait();\n\t\t }\n\t\t catch (Exception e) {\n\t\t \te.printStackTrace();\n\t\t \tinitLock.signal();\n\t\t \tinitializing = false;\n\t\t\t return;\n\t\t }\n\t\t }\n\n\t\t } //end sync.\n\t\t \n\t\t \n\t\t if (DEBUG && logger.isDebugEnabled()) {\n\t logger.debug(\"readableChannels renewed\");\n\t }\n\t\t \n\t\t //connect to other checkpoint \n\t\t for(int i = 0; i < validServerChannels.size(); i++){\n\t\t \tif(validServerChannels.get(i).isOpen())\n\t\t\t\t\ttry {\n\t\t\t\t\t\tvalidServerChannels.get(i).close();\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 }\n\t\t\tvalidServerChannels.clear();\n\t\t\tString[] hosts = getCheckpointHosts();\n\t\t int port = checkpointPort + 3;\n\t\t SocketChannel checkpiontChannel = null;\n\t\t for(int i = 0; i < hosts.length; i++){\n\t\t \tif(!hosts[i].equals(hostName)){\n\t\t\t \ttry{\n\t\t\t\t \tcheckpiontChannel = SocketChannel.open();\n\t\t\t\t \tcheckpiontChannel.configureBlocking(true);\n\t\t\t\t \tboolean connected = checkpiontChannel.connect(new InetSocketAddress(hosts[i], port ));\n\t\t\t\t \tif(connected == false){\n\t\t\t\t \t\tif(DEBUG && logger.isDebugEnabled())\n\t\t\t\t \t\t{\n\t\t\t\t \t\t\tlogger.debug(\"Checkpoint Server host: \" + hosts[i] + \" is not valid!\");\n\t\t\t\t \t\t}\n\t\t\t\t \t\tcontinue;\n\t\t\t\t \t\t \t\t\n\t\t\t\t \t}\t \n\t\t\t\t \t\n\t\t\t\t \t//have connected so add to the selector\n\t\t\t\t \tvalidServerChannels.add(checkpiontChannel);\n\t\t\t \t}\n\t\t\t \tcatch(Exception e){\n\t\t\t \t\tif(DEBUG && logger.isDebugEnabled())\n\t\t\t \t\t{\n\t\t\t \t\t\tlogger.debug(\"Checkpoint Server host: \" + hosts[i] + \" is not valid!\");\n\t\t\t \t\t}\n\t\t\t \t\tcontinue;\n\t\t\t \t}\n\t\t \t}\n\t\t }\n\t\t \n\t\t \n\t\t /*\n\t\t * At this point, all-to-all connectivity has been acheived.\n\t\t * renew the worldWritableTable and worldReadableTable\n\t\t */\n\t\t \n\t\t /*\n\t\t * non checkpoint server node send the rank, msb, lsb to the checkpoint server\n\t\t * Do blocking-reads, record the every pair of <uuid, writableChannel>\n\t\t * the pair of <uuid, readableChannel> left for the selecotr thread to record\n\t\t */\n\t\t \n\t\t /* worldTable is accessed from doBarrierRead or here, so their access\n\t\t * should be synchronized */\n\t\t synchronized (worldReadableTable) {\n\t\t if ( (worldReadableTable.size() != nprocs)) {\n\t\t try {\n\t\t worldReadableTable.wait();\n\t\t }\n\t\t catch (Exception e) {\n\t\t e.printStackTrace();\n\t\t initLock.signal();\n\t\t initializing = false;\n\t\t return;\n\t\t }\n\t\t }\n\t\t } //end sync\n\t\t \n\t\t if (DEBUG && logger.isDebugEnabled()) {\n\t logger.debug(\"worldReadableTable renewed\");\n\t }\n\t\t \n\t\t for (int i = 0; i < writableChannels.size(); i++) {\n\t\t SocketChannel socketChannel = writableChannels.get(i);\n\t\t try {\n\t\t doBarrierRead(socketChannel, worldWritableTable, true, false);\n\t\t }\n\t\t catch (Exception xde) {\n\t\t \t xde.printStackTrace();\n\t\t \t initLock.signal();\n\t\t \t initializing = false;\n\t\t return;\n\t\t }\n\t\t }\n\t\t \n\t\t \n\t\t synchronized (worldWritableTable) {\n\t\t if ( (worldWritableTable.size() != nprocs)) {\n\t\t try {\n\t\t worldWritableTable.wait();\n\t\t }\n\t\t catch (Exception e) {\n\t\t \te.printStackTrace();\n\t\t \tinitLock.signal();\n\t\t \tinitializing = false;\n\t\t\t return;\n\t\t }\n\t\t }\n\t\t } //end sync\n\t\t \n\t\t if (DEBUG && logger.isDebugEnabled()) {\n\t logger.debug(\"worldWritableTable renewed\");\n\t }\n\t\t \n\t\t initializing = false;\n\t\t \n\t\t initLock.signal();\n\t\t \n\t\t}", "title": "" }, { "docid": "38f873bc6cba2fad7b74df2b6f81da7b", "score": "0.55962574", "text": "private void init() {\n\t\tthis.peers = new PeerList();\n\t}", "title": "" }, { "docid": "7a059829680ad4c70687eb193450bf0e", "score": "0.5567697", "text": "@Override\n\t\t\tpublic void run() {\n\t\t\t\tint totalConnectionsRequired = peerInfoMap.keySet().size() - 1; // set\n\t\t\t\t// also\n\t\t\t\t// contains\n\t\t\t\t// current\n\t\t\t\t// peerInfo\n\n\t\t\t\t// but we have already made some connections in part 1\n\t\t\t\tint connectionCount = peerConnectionManagers.size();\n\t\t\t\tServerSocket serverSocket = null;\n\t\t\t\ttry {\n\t\t\t\t\tserverSocket = new ServerSocket(currentPeerInfo.getPortNo());\n\n\t\t\t\t\t// untill we get required number of connections listen\n\t\t\t\t\twhile (connectionCount < totalConnectionsRequired) {\n\t\t\t\t\t\tSocket connectionSocket = serverSocket.accept();\n\t\t\t\t\t\tPeerInfo remotePeerInfo = new PeerInfo(); // we will\n\t\t\t\t\t\t// initialize\n\t\t\t\t\t\t// later\n\t\t\t\t\t\tremotePeerInfo.initializeSocket(connectionSocket);\n\t\t\t\t\t\tPeerConnectionManager peerConnectionManager = new PeerConnectionManager(currentPeerInfo,\n\t\t\t\t\t\t\t\tremotePeerInfo);\n\t\t\t\t\t\tpeerConnectionManager.start();\n\t\t\t\t\t\tpeerConnectionManagers.add(peerConnectionManager);\n\t\t\t\t\t\tconnectionCount++;\n\t\t\t\t\t}\n\n\t\t\t\t\tserverSocket.close();\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\n\t\t\t}", "title": "" }, { "docid": "e856b007a1616f99e2805d647ca3d132", "score": "0.55297786", "text": "public boolean AddToChannel(int nChannel, String handle);", "title": "" }, { "docid": "1da7c9e28f73ebf2e4633656aca2fc39", "score": "0.55240744", "text": "private void onMulticastElectLeader(MessageChannel channel){\n try {\n int id = channel.readNextInt();\n if(PeerImpl.this.multicastSession.isIDUsed(id)){\n channel.close();\n return;\n }\n PeerImpl.this.multicastSession.addUsedId(id);\n PeerImpl.this.electLeader();\n channel.close();\n for (Peer p : PeerImpl.this.peers){\n MessageChannel newChannel = getMessageChannel(p);\n newChannel.writeString(\"peer\");\n newChannel.writeString(Operation.MulticastElectLeader.name());\n newChannel.writeInt(id);\n newChannel.close();\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "5954f7d8465d963e7f09281906561780", "score": "0.55232143", "text": "@Override\n public void lockChannel() {\n\n }", "title": "" }, { "docid": "5444066856529ba383849fae6d177ece", "score": "0.5514181", "text": "public void addChannel(Channel channel) {\n channelGroup.add(channel);\n }", "title": "" }, { "docid": "b294ac0ae5092bc2bbb3302b3eb55623", "score": "0.5509763", "text": "@Override\n\t\t\t\tprotected void initChannel(Channel ch) throws Exception {\n\t\t\t\tch.pipeline().addLast(\"frameEncoder\",new ProtobufVarint32LengthFieldPrepender());\n\t\t\t\tch.pipeline().addLast(\"encoder\", new ProtobufEncoder());\n\t\t\t\tch.pipeline().addLast(\"frameDecoder\", new ProtobufVarint32FrameDecoder());\n\t\t\t\tch.pipeline().addLast(\"decoder\", new ProtobufDecoder(PersonProtobuf.Person.getDefaultInstance()));\n\t\t\t\tch.pipeline().addLast(\"handler\", new ClientHandler());\n\t\t\t\t}", "title": "" }, { "docid": "20931476280ae7c816a7b208317879f5", "score": "0.55059433", "text": "private static void raiseNewPeer (ArrayList <PeerInfo> peerArr) throws Exception{\n//\t\tSystem.out.println(\"step3: starting thread(s)...\");\n\t\tif(peerArr == null || peerArr.size() == 0){\n\t\t\tSystem.out.println(\"No available peer in the PeerInfo.cfg\");\n\t\t\treturn;\n\t\t}\n\t\tServerSocket ss = null;\n\t\tint count = 0;\n\n\t\ttry {\n//\t\t\tSystem.out.println(\"peerArr.size(): \" + peerArr.size());\n\t\t\tfor (count = 0; count < peerArr.size(); count++){\n\t\t\t\tif(myPeerID == peerArr.get(count).getPeerID()){\n\t\t\t\t\tss = new ServerSocket(peerArr.get(count).getPort());\n\t\t\t\t\tBitManager.getInstance(peerArr.get(count).getHasFile());\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tBitManager bitMan = BitManager.getInstance();\n\t\t\tfor(int i = 0; i < peerArr.size(); i++){\n\t\t\t\tif(myPeerID != peerArr.get(i).getPeerID())\n\t\t\t\t\tbitMan.addPeerInfo(peerArr.get(i).peerID, peerArr.get(i).hasFile);\n\t\t\t}\n\t\t\t\n\t\t\t// 1. initialize the peer as server to listen to new message to accept\n\t\t\tnew peerProcess(ss);\n\t\t\t\n\t\n\t\t\tif(count == peerArr.size()){\n\t\t\t\tSystem.out.println(\"Peer ID NOT Found!\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t\t\n\t\t\t// 2. initialize the peer as client to send/receive handShake and bitfield message\n\t\t\tfor(int i = 0; i < count; i++){\n\t\t\t\tPeerSocket pSocket = new PeerSocket(peerArr.get(i));\n\t\t\t\tConnectionManager.getEstablishedSockets().put(peerArr.get(i).peerID, pSocket);\n\t\t\t\t// sending handshake message\n\t\t\t\tPeerMessage handShakeMessage = new PeerMessage(GeneralUtils.HANDSHAKE,ConversionUtils.IntToBytes(myPeerID));\n\t\t\t\tpSocket.sendData(handShakeMessage.getMesBytes());\n\t\t\t\tLoggerUtils.getLogger().info(String.valueOf(\"[\" + new Date()) + \"]: \" + \"Peer \" + String.valueOf(myPeerID) + \" makes a connection to Peer \" + \n\t\t\t\t\t\tString.valueOf(peerArr.get(i).getPeerID()));\n\t\t\t\tPeerListener pl = new PeerListener(pSocket);\n//\t\t\t\tSystem.out.println(\"add Socket: \" + pSocket.s);\n//\t\t\t\tConnectionManager.getInstance().getEstablishedSockets().put(pSocket.s.getInetAddress().getHostAddress(), pl);\n\t\t\t\tpl.start();\n/*\t\t\t\t// sending bitfield message\n\t\t\t\tif(validateHandShake(pSocket.recvData())){\n\t\t\t\t\tLoggerUtils.getLogger().info(String.valueOf(\"[\" + new Date()) + \"]: \" + \"Peer \" + String.valueOf(myPeerID) + \" makes a connection to Peer \" + \n\t\t\t\t\t\t\tString.valueOf(peerArr.get(i).getPeerID()));\n\t\t\t\t\t// to send the bitfield message here\n\t\t\t\t\tif(peerArr.get(count).getHasFile() != 0){\n\t\t\t\t\t\tString bitField = String.valueOf(1 + BitManager.getInstance().pieceNum) + GeneralUtils.BITFIELD + BitManager.getInstance().myBitFields;\n\t\t\t\t\t\tpSocket.sendData(bitField.getBytes());\n\t\t\t\t\t\t// handle the reply\n\t\t\t\t\t\tPeerMessage pMessage = pSocket.recvData();\n\t\t\t\t\t\tif(pMessage != null){\n\t\t\t\t\t\t\tMesHandlerFactory.getMesHandler(GeneralUtils.bytesToInt(pMessage.getMesType())).handleMessage(pSocket, pMessage);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tSystem.out.println(\"Can not validate the HandShake message!\");\n\t\t\t\t}*/\n\t\t\t}\n\t\t} catch (UnknownHostException uhe) {\n\t\t\tthrow uhe;\n\t\t} catch (IOException ioe) {\n\t\t\tthrow ioe;\n\t\t}\n\t}", "title": "" }, { "docid": "750e9bd6a7378f0ac281597b68546a63", "score": "0.55054355", "text": "public void run() {\n\t\t\t// Send peer name early to prevent the situation where the application wants the name for \n\t\t\t// an unnamed peer (from peerAddressToNameTable). This cannot happen at startup - it only\n\t\t\t// might happen when a new peer has joined, after it has had space allocated and before it's\n\t\t\t// name has been resolved.\n\t\t\tsendFragMessage(peerName, PEER_NAME, addr);\n\t\t\tif(DEBUG_SYNCHRONIZATION){\n\t\t\t\tSystem.out.println(\"Sent PEER_NAME to \" + addr);\n\t\t\t}\n\n\t\t\t// allocate space for the new peer\n\t\t\tControlCenter.getObjectManager().allocateSpaceForPeer(addr);\n\t\t\tsend(ControlCenter.NOTIFY, ControlCenter.SPACE_HAS_BEEN_ALLOCATED, addr);\n\t\t\tif(DEBUG_SYNCHRONIZATION){\n\t\t\t\tSystem.out.println(\"Sent SPACE_HAS_BEEN_ALLOCATED to \" + addr);\n\t\t\t}\n\t\t\t\n\t\t\t// wait until we are told that the new peer has allocated space for us\n\t\t\tsynchronized (spaceForMeHasBeenAllocated) {\n\t\t\t\twhile ((spaceForMeHasBeenAllocated.get(addr) == null) && isRunning) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tspaceForMeHasBeenAllocated.wait();\n\t\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tspaceForMeHasBeenAllocated.remove(addr);\n\t\t\t} // end of synchronized block\n\t\t\t\n\t\t\t// make sure we get the peer's name before we send objects to him\n\t\t\tsynchronized (peerAddressToNameTable) {\n\t\t\t\twhile ((peerAddressToNameTable.get(addr) == null) && isRunning) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tpeerAddressToNameTable.wait();\n\t\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} // end of synchronized block\n\n\t\t\tif (isRunning) {\n\t\t\t\t// send our objects to this peer, if we have any\n\t\t\t\tControlCenter.getObjectManager().sendObjectsToNewPeer(addr);\n\t\n\t\t\t\t// we need to signal that the objects have been sent\n\t\t\t\t// (in case we didn't have any objects to send)\n\t\t\t\tsend(ControlCenter.NOTIFY, ControlCenter.OBJECTS_HAVE_BEEN_SENT, addr);\n\t\t\t\t\n\t\t\t\tif(DEBUG_SYNCHRONIZATION){\n\t\t\t\t\tSystem.out.println(\"Sent OBJECTS_HAVE_BEEN_SENT to \" + addr);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tsynchronized (ControlCenter.allPeersHaveFinishedSetup) {\n\t\t\t\t\t// remove this thread from the list so that it will be garbage collected\n\t\t\t\t\tjoinThreads.remove(addr);\n\t\t\t\t\t// if there are no more threads in the list then signal\n\t\t\t\t\tif (joinThreads.size() == 0) {\n\t\t\t\t\t\tControlCenter.allPeersHaveFinishedSetup.setValue(true);\n\t\t\t\t\t\tControlCenter.allPeersHaveFinishedSetup.notifyAll();\n\t\t\t\t\t}\n\t\t\t\t} // end synchronized(ControlCenter.allPeersHaveFinishedSetup)\n\t\t\t}\n\t\t\t\n\t\t\treturn;\n\t\t}", "title": "" }, { "docid": "2f9af495aef1b4f26f7e58905afff7de", "score": "0.5496034", "text": "protected void addChannel(Channel channel) {\n\t\tallChannels.add(channel);\n\t}", "title": "" }, { "docid": "2896eadd65c179ef1c2f40407ceb4dae", "score": "0.5494113", "text": "protected void addChannel(Channel channel) {\n allChannels.add(channel);\n }", "title": "" }, { "docid": "734233a56e265362d0298ab4b445b443", "score": "0.54930645", "text": "protected native void setPeer(ComponentPeer p);", "title": "" }, { "docid": "670a91ff0515ad15c426816b70fe8401", "score": "0.5485283", "text": "private void setup() {\n connection = RedisConnection.create(RedisCredentials.Builder.newBuilder()\n .withHostname(syncPlugin.getConfig().getString(\"redis.hostname\"))\n .withPassword(syncPlugin.getConfig().getString(\"redis.password\"))\n .withPort(syncPlugin.getConfig().getInt(\"redis.port\"))\n .build());\n try {\n connection.connect();\n cache = new RedisCache(connection.getConnection());\n messagingChannel = connection.createChannel(\"xSync-data\", new ZSTDDataCompressor(), true, 512);\n registerMessages(\n LoadPlayerMessage.class\n );\n } catch (Exception ex) {\n syncPlugin.getLogger().log(Level.INFO, \"Cannot create Communication-Channel: \" + ex.getMessage());\n }\n\n }", "title": "" }, { "docid": "b1018ddf4398baca4de260b64d005183", "score": "0.5482538", "text": "public void addPeerConnection( NetworkConnectionBase connection ) {\n\t\ttry{\n\t\t\tconnections_mon.enter();\n\t\t\t\t//copy-on-write\n\t\t\tArrayList conn_new = new ArrayList( connections_cow.size() + 1 );\n\t\t\tconn_new.addAll( connections_cow );\n\t\t\tconn_new.add( connection );\n\t\t\tconnections_cow = conn_new;\n\t\t\t\n\t\t\tif ( pending_actions == null ){\n\t\t\t\t\n\t\t\t\tpending_actions = new ArrayList();\n\t\t\t}\n\t\t\t\n\t\t\tpending_actions.add( new Object[]{ ADD_ACTION, connection });\n\t\t}finally{ \n\t\t\tconnections_mon.exit(); \n\t\t}\n\t}", "title": "" }, { "docid": "81c5f373d3265f5983027e1e2aaef208", "score": "0.547887", "text": "@Override\n public void channelActive(ChannelHandlerContext context) throws Exception {\n openChannels.add(context.channel());\n super.channelActive(context);\n }", "title": "" }, { "docid": "3ee3533b5cc6eb61f32df8d158dc0432", "score": "0.547757", "text": "private void addChannel() {\n api.createChannel(getString(R.string.app_short_name),\"astroSecondChannel\", new ChannelCreationCallback() {\n @Override\n public void onChannelCreated() {\n api.getSubscriptions(new SimpleListCallback<Subscription>() {\n @Override\n public void onSuccess(List<Subscription> list) {\n RoomActivity.this.onGetSubscriptions(list);\n\n }\n\n @Override\n public void onError(RocketChatException error) {\n\n }\n });\n }\n\n\n @Override\n public void onError(RocketChatException error) {\n\n }\n });\n }", "title": "" }, { "docid": "5344748450def9ff3566228001c0dcd0", "score": "0.54318863", "text": "private void sendObjectToAllButHost(Object object) {\n for(NamePair namePair: gameRoom.connectionSet) { //for each connection\n if(namePair.getKey() != -1) //that is not a host\n sendToTCP(namePair.getKey(), object);\n }\n }", "title": "" }, { "docid": "f7bbd1fa707658f1753059a06140aa9a", "score": "0.5396706", "text": "public void useChannel(String id) {\n mCurrentChannelId = id;\n }", "title": "" }, { "docid": "b9401cf696bce155696be20be7d10633", "score": "0.5396438", "text": "public interface ChannelCollection {\n\n public void addChannel(Channel c);\n\n public void removeChannel(Channel c);\n\n public ChannelIterator iterator(ChannelTypeEnum type);\n\n}", "title": "" }, { "docid": "99b0c6dfc383e5841a9fb88a500552ba", "score": "0.53867656", "text": "@Override\r\n\tpublic ChannelFuture connect() {\r\n\t\t//Put the code to the config. the pipeline\r\n\t\tChannels.connect(this);\r\n\t\t//Currently, only return as default, the outside do not check it now.\r\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "cad3d5d079568f16b34d935c9f99459f", "score": "0.53808624", "text": "@Override\r\n public void initChannel(SocketChannel ch) throws Exception {\n ch.pipeline().addLast(MarshallingCodeCFactory.buildMarshallingDecoder());\r\n ch.pipeline().addLast(MarshallingCodeCFactory.buildMarshallingEncoder());\r\n ch.pipeline().addLast(new ClientMessageHandler());\r\n }", "title": "" }, { "docid": "14a5191c494f53d80da8672140078a14", "score": "0.5364972", "text": "public void preparePartChannels()\n {\n for(int p = 0; p < 4; p++)\n {\n // Rcv\n tryToSendSysex(new byte[] { (byte)0xF0, 0x43, (byte)(16 + getID()), 0x5E, (byte)(0x30 + p), 0, 0x04, 0, 0x7F, (byte)0xF7 });\n // Rcv Max\n tryToSendSysex(new byte[] { (byte)0xF0, 0x43, (byte)(16 + getID()), 0x5E, (byte)(0x30 + p), 0, 0x03, 0, 0x7F, (byte)0xF7 });\n }\n \n // Set part channel to the same as the performance channel.\n // Keep Rcv Max *off*\n // F0 43 1n 5E 3p 00 ll vv vv F7\n // Rcv\n tryToSendSysex(new byte[] { (byte)0xF0, 0x43, (byte)(16 + getID()), 0x5E, (byte)(0x30 + part), 0, 0x04, 0, 0x10, (byte)0xF7 });\n }", "title": "" }, { "docid": "c5f8e7b08610516c62c9110a8c634a7c", "score": "0.5354937", "text": "public void socketInit() throws Exception{\n\t\t \n\t\t my_server_port = getCheckpointPort();\n\n\t\t /* Open the selector */\n\t\t try {\n\t\t selector = Selector.open();\n\t\t }\n\t\t catch (Exception ioe) {\n\t\t throw new Exception(ioe);\n\t\t }\n\t\t \n\t\t \n\t\t /* Checking for the java.net.BindException. This\n\t\t * Exception is thrown when the port on which\n\t\t * we want to bind is already in use */\n\t\t boolean isOK = false; \n\t\t boolean isError = false ;\n\t\t \n\t\t \n\n\t\t while(isOK != true) { \n\n\t\t isOK = false ; \n\t\t isError = false;\n\n\t\t try {\n\t\t \t \t\n\t\t \t \twritableServerChannel = ServerSocketChannel.open();\n\t\t\t writableServerChannel.configureBlocking(false);\n\t\t\t writableServerChannel.socket().bind(new InetSocketAddress(my_server_port));\n\t\t\t writableServerChannel.register(selector, SelectionKey.OP_ACCEPT);\n\t\t\t \n\t\t\t if(DEBUG && logger.isDebugEnabled()) {\n\t\t\t\t logger.debug(\"Init writableServerChannel at port \" + my_server_port) ;\n\t\t\t\t }\n\n\t\t\t readableServerChannel = ServerSocketChannel.open();\n\t\t\t readableServerChannel.configureBlocking(false);\n\t\t\t readableServerChannel.socket().bind(\n\t\t\t new InetSocketAddress( (my_server_port + 1)));\n\t\t\t readableServerChannel.register(selector, SelectionKey.OP_ACCEPT);\n\t\t\t \n\t\t\t if(DEBUG && logger.isDebugEnabled()) {\n\t\t\t\t logger.debug(\"Init readableServerChannel at port \" + (my_server_port+1)) ;\n\t\t\t\t }\n\t\t\t \n\t\t\t controlServerChannel = ServerSocketChannel.open();\n\t\t\t controlServerChannel.configureBlocking(false);\n\t\t\t controlServerChannel.socket().bind(\n\t\t\t new InetSocketAddress( (my_server_port + 2)));\n\t\t\t controlServerChannel.register(selector, SelectionKey.OP_ACCEPT);\n\t\t\t \n\t\t\t if(DEBUG && logger.isDebugEnabled()) {\n\t\t\t\t logger.debug(\"Init controlServerChannel at port \" + (my_server_port+2)) ;\n\t\t\t\t }\n\t\t\t \n\t\t\t cpServerChannel = ServerSocketChannel.open();\n\t\t\t cpServerChannel.configureBlocking(false);\n\t\t\t cpServerChannel.socket().bind(\n\t\t\t new InetSocketAddress( (my_server_port + 3)));\n\t\t\t cpServerChannel.register(selector, SelectionKey.OP_ACCEPT);\n\t\t\t \n\t\t\t if(DEBUG && logger.isDebugEnabled()) {\n\t\t\t\t logger.debug(\"Init cpServerChannel at port \" + (my_server_port+3)) ;\n\t\t\t\t }\n\t\t\t \n\n\t\t }\n\t\t catch (IOException ioe) {\n\t\t isError = true;\n\t\t try { Thread.sleep(500); } catch(Exception e){ e.printStackTrace();}\n\t\t }\n\t\t finally {\n\t\t if(isError == true)\n\t\t isOK = false;\n\t\t else if(isError == false)\n\t\t isOK = true;\n\t\t }\n\t\t }\n\n\t\t serverThread = new Thread(selectorThread);\n\n\t\t serverThread.start();\n\n\t\t //(new Thread(renewThread)).start();\n\t\t \n\t\t \n\t }", "title": "" }, { "docid": "b92a5a61bd59ba2a4fbbef41be9b462b", "score": "0.5342614", "text": "public void start() {\n\r\n\t\ttry {\r\n\r\n\t\t\tSystem.out.println(\"starting server on port \" + port);\r\n\t\t\tserver = ServerSocketChannel.open();\r\n\t\t\t\r\n\t\t\tserver.configureBlocking(false); //non-blocking\r\n\r\n\t\t\tselector = Selector.open(); //agent for mutltiple channels\r\n\r\n\t\t\t// see what are the seletable option for current channel\r\n\t\t\tint ops = server.validOps(); // should be connect, receive etc\r\n\r\n\t\t\tserver.register(selector, ops); // let selector handle the channel events ---> connect, receive etc\r\n\r\n\t\t\tserver.bind(new InetSocketAddress(\"localhost\", port));\r\n\r\n\t\t\tSystem.out.println(\"server ready\");\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tSet<SelectionKey> keys=null;\r\n\t\t\t//we don't wait to accept a client or receive a message\r\n\t\t\t// we wait for the selector to inform me\r\n\t\t\twhile (true) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\t\r\n\t\t\t\t\tint keyCount = selector.select(); // see how many items are ready for processing\r\n\t\t\t\t\tif (keyCount == 0) //nothing interestin yet in queue. so try to select again\r\n\t\t\t\t\t\tcontinue; // nothing yet. lets move on\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\tkeys = selector.selectedKeys(); // list of ready events --> may be 3 clients waiting to be accept, 4 client message also pending\r\n\r\n\t\t\t\t\tfor (SelectionKey key : keys) { // lets see each message one by one\r\n\r\n\t\t\t\t\t\tif (key.isAcceptable()) // some client is waiting for connection\r\n\t\t\t\t\t\t\tdoAccept(); // this is calling accept(), normally accept is blocking. but since client is already waiting its not blocking\r\n\t\t\t\t\t\telse if (key.isReadable()) // some message is waiting to be received from one of the many client channels\r\n\t\t\t\t\t\t\tdoReceive(key);\r\n\r\n\t\t\t\t\t}\r\n\t\t\t\t\t//keys.clear(); // remove the processed keys\r\n\r\n\t\t\t\t} catch (DisconnectionException ex) {\r\n\t\t\t\t\tSystem.out.println(\"client quit\");\r\n\t\t\t\t} catch (Exception ex) {\r\n\t\t\t\t\tSystem.out.println(\"error:\" + ex.getMessage());\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\tfinally {\r\n\t\t\t\t\tkeys.clear(); //once you have processed the keys you must remove it from the selector, otherwise you get same key again and again\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t} catch (Exception ex) {\r\n\t\t\tSystem.out.println(\"Error setting up server :\" + ex.getMessage());\r\n\t\t\tex.printStackTrace();\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "3c773826d6b8b7673b22fdda19d8b804", "score": "0.53420174", "text": "public Channel()\n\t{\n\t}", "title": "" }, { "docid": "66843430d8fdfec0706fd803f40f152f", "score": "0.5336456", "text": "public interface ChannelListener{\n\n\t/**\n\t * This method is called before any other method of this channellistener. \n\t * @param connection the IRCConnection this channel is attached to.\n\t */\n\tpublic void init(IRCConnection connection);\n\n\n\t/**\n\t * Sets the name list with a space delimited string and @\n\t * used to designate ops and + to designate voices before the nicks.\n\t * @since 1.0\n\t * @param nicks a Vector of ListNick objects that represents the \n\t * users in the channel while joining, including this \n\t * IRC client.\n\t */\n\tpublic void initialNickList(Vector /* ListNick */ nicks);\n\t\n\t/**\n\t * Sets the topic for the channel on join.\n\t * @param topic the initial topic\n\t */\n\tpublic void initialTopic(String topic);\n\t\n\t/**\n\t * Sets \"topic can only bet set by chanops\" for the channel on join.\n\t * @param mode true=turn channelmode on, false=turn off\n\t */\n\tpublic void initialOpTopic(boolean mode);\n\t\n\t/**\n\t * Sets \"people not on this channel can't send messages to it\" for the channel on join.\n\t * @param mode true=turn channelmode on, false=turn off\n\t */\n\tpublic void initialNoExtMsg(boolean mode);\n\t\n\t/**\n\t * Sets secret mode for the channel on join.\n\t * @param mode true=turn channelmode on, false=turn off\n\t */\n\tpublic void initialSecret(boolean mode);\n\n\t/**\n\t * Sets invite only mode for the channel on join.\n\t * @param mode true=turn channelmode on, false=turn off\n\t */\n\tpublic void initialInviteOnly(boolean mode);\n\n\t/**\n\t * Sets private mode for the channel on join.\n\t * @param mode true=turn channelmode on, false=turn off\n\t */\n\tpublic void initialPrivate(boolean mode);\n\t\n\t/**\n\t * Sets moderated mode for the channel on join.\n\t * @param mode true=turn channelmode on, false=turn off\n\t */\n\tpublic void initialModerated(boolean mode);\n\t\n\t/**\n\t * Sets user limit for the channel on join.\n\t * @param mode true=turn channelmode on, false=turn off\n\t */\n\tpublic void initialLimit(boolean mode, int limit);\n\t\n\t/**\n\t * Sets join key for the channel on join.\n\t * @param mode true=turn channelmode on, false=turn off\n\t */\n\tpublic void initialKey(boolean modek, String key);\n\t\n\t/**\n\t * Sets ban list for the channel on join.\n\t * @param masks a Vector of Strings representing the list of banmasks\n\t */\n\tpublic void initialBan(Vector /* String */ masks);\n\n\n\n\t/**\n\t * Sets wether the room is invite only or not.\n\t * @since 1.0\n\t * @param b true to set false to unset.\n\t * @param chanop the person or server setting this mode\n\t */\n public void setInviteOnly(boolean b, String chanop);\n\n\t/**\n\t * Sets wether the room is private or not.\n\t * @since 1.0\n\t * @param b true to set false to unset.\n\t * @param chanop the person or server setting this mode\n\t */\n public void setPrivate(boolean b, String chanop);\n\n\t/**\n\t * Sets wether the room is secret or not.\n\t * @since 1.0\n\t * @param b true to set false to unset.\n\t * @param chanop the person or server setting this mode\n\t */\n public void setSecret(boolean b, String chanop);\n\n\t/**\n\t * Sets wether the room is moderated or not.\n\t * @since 1.0\n\t * @param b true to set false to unset.\n\t * @param chanop the person or server setting this mode\n\t */\n public void setModerated(boolean b, String chanop);\n\n\t/**\n\t * Sets wether external messages are allowed or not.\n\t * @since 1.0\n\t * @param b true to set false to unset.\n\t * @param chanop the person or server setting this mode\n\t */\n public void setNoExtMsg(boolean b, String chanop);\n\n\t/**\n\t * Sets wether only ops can change the topic or not.\n\t * @since 1.0\n\t * @param b true to set false to unset.\n\t * @param chanop the person or server setting this mode\n\t */\n public void setOpTopic(boolean b, String chanop);\n\n\t/**\n\t * Sets the value of the key for the room.\n\t * When the key is removed, the key parameter will be null.\n\t * @since 1.0\n\t * @param k the key.\n\t * @param chanop the person or server setting this key\n\t **/\n public void setKey(String key, String chanop);\n\n\t/**\n\t * Sets the limit of the number of nicks in the channel\n\t * at one time. Limit = 0 means user limit is off.\n\t * @since 1.0\n\t * @param l max the number of nicks.\n\t * @param chanop the person or server setting this limit\n\t */\n public void setLimit(int limit, String chanop);\n\n\t/**\n\t * Adds a nickmask to the ban list of the channel.\n\t * @since 1.0\n\t * @param mask the nick mask.\n\t * @param chanop the person or server doing this ban\n\t */\n public void ban(String mask, boolean mode, String chanop);\n\n\t/**\n\t * Sets a specified mode.\n\t * @since 1.0\n\t * @param mode the mode to set.\n\t * @param type true to set it on or false to set it off.\n\t * @param chanop the person or server setting this mode\n\t */\n public void setOtherMode(char mode, boolean type, String chanop);\n\n\t/**\n\t * Sets the topic for the room.\n\t * @param topic the new topic\n\t * @param chanop the person or server setting this topic\n\t **/\n public void setTopic(String topic, String chanop);\n\n\t/**\n\t * Sets the URL for the channel.\n\t * @since 1.0\n\t * @param url the url of the channel.\n\t */\n// public void setUrl(String url);\n \n\t/**\n\t * Adds a nick to the channel.\n\t * @since 1.0\n\t * @param name the nick of the person joining.\n\t * @param ident the ident name of the person.\n\t * @param host the hostname of the person\n\t */\n public void join(String name, String ident, String host);\n\n\t/**\n\t * Removes a nick from the channel.\n\t * @since 1.0\n\t * @param name the nick of the person parting.\n\t * @param ident the ident name of the person.\n\t * @param host the hostname of the person.\n\t * @msg the part message (can be empty)\n\t */\n public void part(String name, String ident, String host, String msg);\n\n\t/**\n\t * Removes a nick from the channel.\n\t * @since 1.0\n\t * @param name the nick of the person quitting.\n\t * @param ident the ident name of the person.\n\t * @param host the hostname of the person.\n\t * @msg the quit message (can be empty)\n\t */\n public void quit(String name, String ident, String host, String msg);\n\n\t/**\n\t * Changes the nick of a nick.\n\t * @since 1.0\n\t * @param oldName the old nick.\n\t * @param newName the new nick.\n\t */\n public void nickChange(String oldName, String newName);\n\n\t/**\n\t * Removes a nick from the channel.\n\t * @since 1.0\n\t * @param name the nick being kicked.\n\t * @param reason the kick reason.\n\t * @param chanop the person or server doing this kick.\n\t */\n public void kick(String name, String reason, String chanop);\n\n\t/**\n\t * Ops or Deops a nick in the channel.\n\t * @since 1.0\n\t * @param name the nick to op or deop.\n\t * @param mode true to op false to deop.\n\t * @param chanop the person or server doing this op/deop.\n\t */\n public void op(String name, boolean mode, String chanop);\n\n\t/**\n\t * Voices or devoices a nick in the channel.\n\t * @since 1.0\n\t * @param name the nick to voice or devoice.\n\t * @param mode true to voice false to devoice.\n\t * @param chanop the person or server doing this voice/devoice.\n\t */\n public void voice(String name, boolean mode, String chanop);\n\n\t/**\n\t * Signifies a regular message sent to this channel.\n\t * @param sender the person or server sending this message\n\t * @param message the message content\n\t */\n\tpublic void handleMessage(String sender, IRCLine message);\n\t\n\t/**\n\t * Signifies an action message sent to this channel.\n\t * @param sender the person or server sending this message\n\t * @param message the action content\n\t */\n\tpublic void handleAction(String sender, IRCLine message);\n\n\n}", "title": "" }, { "docid": "383c2210368b948da288838725396bb5", "score": "0.5328675", "text": "protected void initChannel(SocketChannel ch) throws Exception {\n\t\t\t\t\tch.pipeline().addLast(new FixedLengthFrameDecoder(20));\n\t\t\t\t\tch.pipeline().addLast(new StringDecoder());\n\t\t\t\t\tch.pipeline().addLast(new EchoServerHandlerByLength());\n\t\t\t\t\t//exam 3\n//\t\t\t\t\tch.pipeline().addLast(\"msgpack decoder\", new MsgpackDecoder());\n//\t\t\t\t\tch.pipeline().addLast(\"msgpack encoder\", new MsgpackEncoder());\n//\t\t\t\t\tch.pipeline().addLast(new EchoServerHandler());\n\t\t\t\t}", "title": "" }, { "docid": "9bcc81647f5df85f978966f0e8121b9e", "score": "0.5324335", "text": "void addPeer(PeerInfo newPeer) { //add connected peers \r\n detailsPeer.add(newPeer); \r\n }", "title": "" }, { "docid": "4c4a62b977651d74bc556a160eed629a", "score": "0.53201354", "text": "public static void setChannel(int channel)\n {\n }", "title": "" }, { "docid": "c40cd316b9f7118677abba83f73772ca", "score": "0.53123707", "text": "public Channels create(Channels created);", "title": "" }, { "docid": "648fc417a2fc8a8a3efa97b5c2b2c43b", "score": "0.53061956", "text": "@Override\n public void run() {\n\n SenderMessages senderMessages = new SenderMessages(this);\n senderMessages.start();\n ServerSocket serverSocket;\n try {\n serverSocket = new ServerSocket(port);\n } catch (IOException e) {\n e.printStackTrace();\n throw new IllegalArgumentException(ERROR_SOCKET_INIT);\n }\n\n while (true) {\n try {\n Socket socket = serverSocket.accept();\n Compound comp = new Compound(socket, idNextUser, this);\n users.add(comp);\n comp.start();\n System.out.println(\"add new users he has id\" + idNextUser++);\n } catch (IOException e) {\n e.printStackTrace();\n throw new IllegalArgumentException(ERROR_SOCKET_ACCEPT);\n }\n }\n\n\n }", "title": "" }, { "docid": "b3690687f7dae7a3ab609878ece722e7", "score": "0.5305207", "text": "public void init(){\n\t\ttry {\n\t\t\tServerSocket server = new ServerSocket(9991 + myIndex);\n\t\t\tif(myIndex>0){\n\t\t\t\tconnections[0] = server.accept();\n\t\t\t\tpeerNames[0] = addressTable.get((myIndex-1)/2);\n\t\t\t\toos[0] = new ObjectOutputStream(connections[0].getOutputStream());\n\t\t\t\tbw[0] = new BufferedWriter(new PrintWriter(oos[0], true));\n\t\t\t\tios[0] = new ObjectInputStream(connections[0].getInputStream());\n\t\t\t\tscanners[0] = new Scanner(ios[0]);\n\t\t\t\tThread readPeer1 = new Thread(this, \"readPeer1\");\n\t\t\t\treadPeer1.start();\n\t\t\t}\n\t\t\t//Initially 0th node has data. \n\t\t\t//Hence setting each parent as holder\n\t\t\t//If holder is -ve, holder is root node itself!\n\t\t\t//holder = (myIndex -1)/2;\n\t\t\tif(myIndex ==0)\n\t\t\t\tholder = -1;\n\t\t\telse\n\t\t\t\tholder = 0;\n\t\t\t\n\t\t\t//if(myIndex ==0)\n\t\t\tif(myIndex<3){\n\t\t\t\tfor(int i = 1; i < 3; i++){\n\t\t\t\t\tSystem.out.println(\"connecting to \"+addressTable.get(myIndex*2+i)+\" with \"+(int)(9991+myIndex*2+i));\n\t\t\t\t\tconnections[i] = new Socket(addressTable.get(myIndex*2+i), 9991+myIndex*2+i);\n\t\t\t\t\tpeerNames[i] = addressTable.get(myIndex*2+i);\n\t\t\t\t\toos[i] = new ObjectOutputStream(connections[i].getOutputStream());\n\t\t\t\t\tbw[i] = new BufferedWriter(new PrintWriter(oos[i], true));\n\t\t\t\t\tios[i] = new ObjectInputStream(connections[i].getInputStream());\n\t\t\t\t\tscanners[i] = new Scanner(ios[i]);\n\t\t\t\t}\n\t\t\t\tThread readPeer2 = new Thread(this, \"readPeer2\");\n\t\t\t\tThread readPeer3 = new Thread(this, \"readPeer3\");\n\t\t\t\treadPeer2.start();\n\t\t\t\treadPeer3.start();\n\t\t\t}\n\t\t\t\tThread getSharedData = new Thread(this, \"getSharedData\");\n\t\t\t\tgetSharedData.start();\t\t\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "title": "" }, { "docid": "8829f77099de0fa71046e7bcd35e9911", "score": "0.5301718", "text": "public interface Chord {\n\n /**\n * Returns the {@link URL} of the local node; is <code>null</code> if no network has been\n * created or joined.\n *\n * @return {@link URL} of local node.\n */\n public abstract URL getURL();\n\n /**\n * Sets the {@link URL} of the local node to the given value; only available\n * before creating or joining a network.\n *\n * @param nodeURL\n * New {@link URL} of local node.\n * @throws NullPointerException\n * If given URL reference has value <code>null</code>.\n * @throws IllegalStateException\n * If network has already been created or joined.\n */\n public abstract void setURL(URL nodeURL) throws IllegalStateException;\n\n /**\n * Returns the {@link ID} of the local node; is <code>null</code> if no network has been\n * created or joined.\n *\n * @return {@link ID} of local node.\n */\n public abstract ID getID();\n\n /**\n * Sets the {@link ID} of the local node to the given value; only available\n * before creating or joining a network.\n *\n * @param nodeID\n * New {@link ID} of local node.\n * @throws NullPointerException\n * If given ID reference has value <code>null</code>.\n * @throws IllegalStateException\n * If network has already been created or joined.\n */\n public abstract void setID(ID nodeID) throws IllegalStateException;\n\n /**\n * Creates a new chord network which is not connected to any other node.\n * Assumes that at least the node URL has been set before by {@link #setURL}.\n * If no ID has been set before, it is generated by applying a hash function\n * on the node URL.\n *\n * @throws ServiceException\n * Is thrown if creating the local chord node fails, e.g. due to\n * unability of creating the endpoint for incoming messages. Is\n * also thrown if no URL has been set before.\n */\n public abstract void create() throws ServiceException;\n\n /**\n * Creates a new chord network which is not connected to any other node. The\n * node ID is generated by applying a hash function on the node {@link URL}.\n *\n * @param localURL\n * {@link URL} on which this node accepts incoming requests from\n * other chord nodes. The {@link ID} of this node is generated by\n * applying a hash function on the node {@link URL}.\n * @throws NullPointerException\n * If <code>localURL</code> is <code>null</code>.\n * @throws ServiceException\n * Is thrown if creating the local chord node fails, e.g. due to\n * unability of creating the endpoint for incoming messages.\n */\n public abstract void create(URL localURL) throws ServiceException;\n\n /**\n * Creates a new chord network which is not connected to any other node.\n *\n * @param localURL\n * {@link URL} on which this node accepts incoming requests from\n * other chord nodes.\n * @param localID\n * {@link ID} of this node.\n * @throws NullPointerException\n * If <code>localURL</code> or <code>localID</code> is\n * <code>null</code>.\n * @throws ServiceException\n * Is thrown if creating the local chord node fails, e.g. due to\n * unability of creating the endpoint for incoming messages.\n */\n public abstract void create(URL localURL, ID localID)\n throws ServiceException;\n\n /**\n * Joins an existing chord network and announces its presence to the other\n * nodes. Assumes that at least the node {@link URL} has been set before by\n * {@link #setURL}. If no {@link ID} has been set before, it is generated\n * by applying a hash function on the node {@link URL}.\n *\n * @param bootstrapURL\n * {@link URL} of one existing node which is used as bootstrap\n * node.\n * @throws NullPointerException\n * If <code>bootstrapURL</code> is <code>null</code>.\n * @throws ServiceException\n * If joining fails this exception is thrown. This may be due to\n * failure of establishing an endpoint or communication problems\n * when contacting the bootstrap node. Is also thrown if no URL\n * has been set before.\n */\n public abstract void join(URL bootstrapURL) throws ServiceException;\n\n /**\n * Joins an existing chord network and announces its presence to the other\n * nodes. The node {@link ID} is generated by applying a hash function on\n * the node {@link URL}.\n *\n * @param localURL\n * The local node is made available under this {@link URL}.\n * @param bootstrapURL\n * {@link URL} of one existing node which is used as bootstrap\n * node.\n * @throws NullPointerException\n * If <code>localURL</code> or <code>bootstrapURL</code> is\n * <code>null</code>.\n * @throws ServiceException\n * If joining fails this exception is thrown. This may be due to\n * failure of establishing an endpoint or communication problems\n * when contacting the bootstrap node.\n */\n public abstract void join(URL localURL, URL bootstrapURL)\n throws ServiceException;\n\n /**\n * Joins an existing chord network and announces its presence to the other\n * nodes.\n *\n * @param localURL\n * The local node is made available under this {@link URL}.\n * @param localID\n * {@link ID} of this node.\n * @param bootstrapURL\n * {@link URL} of one existing node which is used as bootstrap\n * node.\n * @throws NullPointerException\n * If <code>localURL</code>, <code>localID</code>, or\n * <code>bootstrapURL</code> is <code>null</code>.\n * @throws ServiceException\n * If joining fails this exception is thrown. This may be due to\n * failure of establishing an endpoint or communication problems\n * when contacting the bootstrap node.\n */\n public abstract void join(URL localURL, ID localID, URL bootstrapURL)\n throws ServiceException;\n\n /**\n * Disconnects from the network.\n *\n * @throws ServiceException\n * If properly leaving the network fails this exception is\n * thrown. The network might have been left as if the local node\n * has failed. However, disconnecting from the network is done\n * in every case.\n */\n public abstract void leave() throws ServiceException;\n\n /**\n * Inserts a new data object into the network stored under the given key. If\n * two or more objects with same keys exist, all of them are stored.\n *\n * @param key\n * Key, under which the new item is stored.\n * @param object\n * Object for storage in the network.\n * @throws NullPointerException\n * If key or object is <code>null</code>.\n * @throws ServiceException\n * Thrown if insertion failed. The effect of the insertion\n * operation is undefined if this exception occurs.\n */\n public abstract void insert(Key key, Serializable object)\n throws ServiceException;\n\n /**\n * Attempts to find all objects with given key.\n *\n * @param key\n * Key for which objects shall be retrieved.\n * @return All objects stored under given key. Set of {@link Serializable}\n * @throws NullPointerException\n * If <code>key</code> is <code>null</code>.\n * @throws ServiceException\n * Is thrown if retrieval failed, e.g. due to a communication\n * failure. However, the network is left in a stable state.\n */\n public abstract Set<Serializable> retrieve(Key key) throws ServiceException;\n\n /**\n * Removes the given object stored under given key from the network.\n *\n * @param key\n * Key under which the object currently is stored.\n * @param object\n * Object to remove from the network.\n * @throws NullPointerException\n * If key or object is <code>null</code>.\n * @throws ServiceException\n * Thrown if deletion failed. The effect of the delete operation\n * is undefined if this exception occurs.\n */\n public abstract void remove(Key key, Serializable object)\n throws ServiceException;\n}", "title": "" }, { "docid": "b26c55289b5f8ecabfd2a6d31c0b8d65", "score": "0.53006285", "text": "int update(Channel channel);", "title": "" }, { "docid": "ff8aefe4a0c947b0f25bd3a24fcb6ca4", "score": "0.52993417", "text": "public interface Channel {\n}", "title": "" }, { "docid": "bd889e2e4e7a25264f744433314a358c", "score": "0.52982515", "text": "private void channelJoin(MsgInChannelJoin msg, User u){\n //first see if it allready exsits\n try{\n Channel c = channelList.getChannel(msg.getChannelName());\n if(c == null){\n String errText = \"Could not subscribe to channel <\" + msg.getChannelName() + \"> \";\n errText += \" Could not find channel\"; \n sendErrorMsg(errText , u);\n return;\n }\n \n if(c.getPassword() != null ){\n if(c.getPassword().compareTo(msg.getPassword()) != 0){\n String errText = \"Could not subscribe to channel <\" + msg.getChannelName() + \"> \";\n errText += \" Incorrect password <\" +msg.getPassword()+ \"> given\"; \n sendErrorMsg(errText , u);\n return;\n }\n }\n \n if(u.getNumberOfChannels() + 1 > User.MAX_CHANNELS){\n String errText = \"Could not subscribe to channel <\" + msg.getChannelName() + \"> \";\n errText += \" User can only subscribe to <\" + User.MAX_CHANNELS + \"> Channels, leave a channel first\"; \n sendErrorMsg(errText , u);\n return;\n }\n \n ZUserChannel.addUserToChannel(c, u);\n }catch(Exception e){\n sendErrorMsg(\"UNEXPECTED ERROR:Could not create channel Error :\" + e.getMessage(), u);\n }\n\n }", "title": "" }, { "docid": "992d9b68e3721a65ba6f3c996b0126cb", "score": "0.52977675", "text": "public void sendTo(WritableByteChannel channel)\n\tthrows CTEException, IOException\n\t{\n\t\tbyte[] nameBuffer;\n\t\t\n\t\t// initialize buffer\n\t\tByteBuffer buffer;\n\t\tif (type == MessageType.TYPE_SYNC_MULTIBYTE)\n\t\t{ buffer = ByteBuffer.allocate(type.getMessageSize(false, length)); }\n\t\telse\n\t\t{ buffer = ByteBuffer.allocate(type.getMessageSize(false)); }\n\t\t\n\t\t// append message type\n\t\tbuffer.put((byte)type.ordinal());\n\t\t\n\t\t// append first field\n\t\tswitch (type)\n\t\t{\n\t\tcase TYPE_DOC_ACTIVATE:\n\t\tcase TYPE_DOC_SAVE:\n\t\t\tbuffer.putInt(id);\n\t\t\tbreak;\n\t\tcase TYPE_DOC_CREATE:\n\t\tcase TYPE_DOC_DELETE:\n\t\tcase TYPE_DOC_OPEN:\n\t\t\tnameBuffer = Arrays.copyOf(name.getBytes(), FIELD_SIZE_DOC_NAME);\n\t\t\tArrays.fill(nameBuffer, name.length(), nameBuffer.length, (byte)0x00);\n\t\t\tbuffer.put(nameBuffer);\n\t\t\tbreak;\n\t\tcase TYPE_DOC_LIST:\n\t\tcase TYPE_USER_LOGOUT:\n\t\t\tbreak;\n\t\tcase TYPE_SYNC_BYTE:\n\t\t\tbuffer.put(bytes[0]);\n\t\t\tbreak;\n\t\tcase TYPE_SYNC_CURSOR:\n\t\tcase TYPE_SYNC_DELETION:\n\t\t\tbuffer.putInt(position);\n\t\t\tbreak;\n\t\tcase TYPE_SYNC_MULTIBYTE:\n\t\t\tbuffer.putInt(length);\n\t\t\tbuffer.put(bytes, 0, length);\n\t\t\tbreak;\n\t\tcase TYPE_USER_LOGIN:\n\t\t\tnameBuffer = Arrays.copyOf(name.getBytes(), FIELD_SIZE_USER_NAME);\n\t\t\tArrays.fill(nameBuffer, name.length(), nameBuffer.length, (byte)0x00);\n\t\t\tbuffer.put(nameBuffer);\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tthrow new CTEException(\"invalid message type for sending\",\n\t\t\t\t\tCTEException.ExceptionType.INVALID_TYPE);\n\t\t}\n\t\t\n\t\t// append second field\n\t\tswitch (type)\n\t\t{\n\t\tcase TYPE_DOC_ACTIVATE:\n\t\tcase TYPE_USER_LOGIN:\n\t\t\tif (bytes.length < FIELD_SIZE_HASH)\n\t\t\t{ Arrays.fill(bytes, bytes.length, FIELD_SIZE_HASH, (byte)0x00); }\n\t\t\tbuffer.put(bytes, 0, FIELD_SIZE_HASH);\n\t\t\tbreak;\n\t\tcase TYPE_SYNC_DELETION:\n\t\t\tbuffer.putInt(length);\n\t\t\tbreak;\n\t\tcase TYPE_SYNC_MULTIBYTE:\n\t\t\tif (bytes.length < length)\n\t\t\t{ Arrays.fill(bytes, bytes.length, length, (byte)0x00); }\n\t\t\tbuffer.put(bytes, 0, length);\n\t\t\tbreak;\n\t\t}\n\t\t\n\t\t// send\n\t\tbuffer.flip();\n\t\tchannel.write(buffer);\n\t}", "title": "" }, { "docid": "55363f026c1c5cffdeadbfdb71f25e70", "score": "0.52882594", "text": "@Override\n protected void initChannel(Channel ch) throws Exception {\n ChannelPipeline pipeline = ch.pipeline();\n\n // Decoder\n pipeline.addLast(\"decoder\", new MessageDecoder(new KryoValuesDeserializer(topoConf)));\n // Encoders\n pipeline.addLast(\"netty-serializable-encoder\", NettySerializableMessageEncoder.INSTANCE);\n pipeline.addLast(\"backpressure-encoder\", new BackPressureStatusEncoder(new KryoValuesSerializer(topoConf)));\n\n boolean isNettyAuth = (Boolean) topoConf\n .get(Config.STORM_MESSAGING_NETTY_AUTHENTICATION);\n if (isNettyAuth) {\n // Authenticate: Removed after authentication completes\n pipeline.addLast(\"saslServerHandler\", new SaslStormServerHandler(\n server));\n // Authorize\n pipeline.addLast(\"authorizeServerHandler\",\n new SaslStormServerAuthorizeHandler());\n }\n // business logic.\n pipeline.addLast(\"handler\", new StormServerHandler(server));\n }", "title": "" }, { "docid": "d3da0c1f81236e442103e5a882b74c6a", "score": "0.52856815", "text": "@Override\r\n public void channelOpen(ChannelHandlerContext channelHandlerContext, ChannelStateEvent channelStateEvent) throws Exception {\r\n total_conns.incrementAndGet();\r\n curr_conns.incrementAndGet();\r\n channelGroup.add(channelHandlerContext.getChannel());\r\n }", "title": "" }, { "docid": "0dec054252d7d5c5b4b03533ac701f46", "score": "0.5277092", "text": "@Override\n public void run() {\n\n listaConversa = new ArrayList<Conversa>();\n //listaConversa = preferencias.retrievetListconversa();\n listaConversa = Singleton.getInstance().getListaConversa();\n\n final Consumer consumer;\n consumer = new DefaultConsumer(channel) {\n\n @Override\n public void handleDelivery(String consumerTag, Envelope envelope, AMQP.BasicProperties properties, byte[] body)\n throws IOException {\n Mensagem msg = Mensagem.parseFrom(body);\n String msg2 = null;\n String grupo = null;\n if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.KITKAT) {\n msg2 = new String(msg.getContent(0).getBody().toByteArray(), StandardCharsets.UTF_8);\n }\n String send = \"\";\n if (msg.getGroup().equals(\"/\")){\n send = msg.getSender();\n }else{\n send = msg.getGroup();\n }\n Log.e(\"msn\",msg.getDate() +\n \" ás \"+msg.getTime()+\") \" + msg.getSender() +\n \" diz: \"+ msg2);\n listaConversa = Singleton.getInstance().getListaConversa();\n if(!Singleton.getInstance().getLinha().equals(msg2)) {\n for (int i = 0; i < listaConversa.size(); i++) {\n if (send.equals(listaConversa.get(i).getNome())) {\n listaConversa.get(i).setMensagens(msg.getSender() + \"-\" + \"(\" + msg.getDate() + \" ás \" + msg.getTime() + \") \" + \" diz: \" + msg2);\n flag = true;\n\n Log.e(\"conercsasss\", String.valueOf(listaConversa.get(i).getMensagens()));\n break;\n }\n }\n if (flag == true) {\n\n } else {\n Conversa conversa = new Conversa();\n conversa.setNome(send);\n\n conversa.setMensagens(msg.getSender() + \"-\" + \"(\" + msg.getDate() +\n \" ás \" + msg.getTime() + \") \" +\n \" diz: \" + msg2);\n listaConversa.add(conversa);\n Log.e(\"conercsasss\", String.valueOf(conversa.getMensagens()));\n }\n flag = false;\n Singleton.getInstance().setListaConversa(listaConversa);\n\n }\n\n\n\n }\n };\n try {\n channel.basicConsume(nome, true, consumer);\n } catch (IOException ex) {\n Logger.getLogger(Recv.class.getName()).log(Level.SEVERE, null, ex);\n }\n\n\n }", "title": "" }, { "docid": "b0006f7d93d66797eba77df4ee925798", "score": "0.5271253", "text": "private void connect() throws ChannelException {\n URI uri = getBindUri(new BasicNameValuePair(\"AID\", Long.toString(mMessageID)),\n new BasicNameValuePair(\"CVER\", \"1\"));\n\n List<NameValuePair> params = new ArrayList<NameValuePair>();\n params.add(new BasicNameValuePair(\"count\", \"1\"));\n params.add(new BasicNameValuePair(\"ofs\", \"0\"));\n params.add(new BasicNameValuePair(\"req0_m\", \"[\\\"connect-add-client\\\"]\"));\n params.add(new BasicNameValuePair(\"req0_c\", mClid));\n params.add(new BasicNameValuePair(\"req0__sc\", \"c\"));\n\n HttpEntity entity = null;\n try {\n entity = new UrlEncodedFormEntity(params);\n } catch(UnsupportedEncodingException e) {\n //??\n }\n\n HttpPost httpPost = new HttpPost(uri);\n httpPost.setEntity(entity);\n try {\n HttpResponse resp = mHttpClient.execute(httpPost);\n consume(resp.getEntity());\n } catch (ClientProtocolException e) {\n throw new ChannelException(e);\n } catch (IOException e) {\n throw new ChannelException(e);\n }\n\n mChannelListener.onOpen();\n }", "title": "" }, { "docid": "c425bf99c43f931f08f4425a4556999f", "score": "0.5265974", "text": "private void _setThreeBindings() throws Exception {\n\t\t_requestedBindings.put(\"channel1\", \"/channel1/\");\t\t\n\t\t_requestedBindings.put(\"channel2\", \"/channel2/\");\t\t\n\t\t_requestedBindings.put(\"channel3\", \"/channel3/\");\t\t\n\t\t_portal.setInflows(_requestedBindings);\n\t\t_portal.elaborate();\n\t\t_portal.configure();\n\t}", "title": "" }, { "docid": "efec54d355da14f21b8cad3c00c94d69", "score": "0.5259551", "text": "public void setChannel(final ChannelKeyReference channel);", "title": "" }, { "docid": "3b868ee7b32698ee2f9501230fbbf3c4", "score": "0.52595276", "text": "public interface IMergeableChannel extends IIdentifiable, IAdaptable {\n\n /**\n\t * Get list of IItems\n\t * \n\t * @return List of items. Will not return <code>null</code>. List\n\t * contents will be of type IItem.\n\t */\n public List getItems();\n\n /**\n\t * Merget the currrent set of items with changes made remotely\n\t * \n\t * @throws MergeException\n\t * thrown if local copy cannot be merged with remote changes\n\t */\n public void merge() throws MergeException;\n\n /**\n\t * Add item to set managed by this channel\n\t * \n\t * @param item\n\t * the IItem to add. Should not be <code>null</code>.\n\t * @return true if added successfully, false if item already exists in set\n\t * known to this channel\n\t */\n public boolean addItem(IItem item);\n\n /**\n\t * Change the description of the item identified by the given itemID\n\t * \n\t * @param itemID\n\t * the itemID of the IItem to change. Should not be\n\t * <code>null</code>.\n\t * @param description\n\t * the new description to change in the IItem. May be\n\t * <code>null</code>.\n\t * @return true if item found and description changes, false if item not\n\t * found\n\t */\n public boolean changeItem(ID itemID, String description);\n\n /**\n\t * Remove item from channel\n\t * \n\t * @param item\n\t * the item to remove. Should not be <code>null</code>.\n\t * @return true if item removed, false if item not found.\n\t */\n public boolean removeItem(IItem item);\n\n /**\n\t * Publish local item changes (add, change, remove) previously made to this\n\t * channel\n\t * \n\t * @throws PublishException\n\t * if problem with publishing\n\t */\n public void publish() throws PublishException;\n\n /**\n\t * Get the item factory for this channel for creating new items\n\t * \n\t * @return IItemFactory for this channel. Will not be <code>null</code>.\n\t */\n public IItemFactory getItemFactory();\n\n /**\n\t * Get the channel header info (title, link, description) for this channel\n\t * \n\t * @return IChannelHeader that contains this info. Will not be\n\t * <code>null</code>.\n\t */\n public IChannelHeader getHeaderInfo();\n}", "title": "" }, { "docid": "7343096b18c2d582ff42095050735bce", "score": "0.52381814", "text": "@Override\n\tprotected void doPipeline(Channel ch) {\n\t}", "title": "" }, { "docid": "a7e6ec9ba08d9689788d5ebe60d10edb", "score": "0.523809", "text": "public void setConnections();", "title": "" }, { "docid": "dbd7486335f88fa272f3070135c453cb", "score": "0.52312523", "text": "private void setupChannels() {\n MidiChannel[] midiChannels = synthesizer.getChannels();\n channels = new Channel[midiChannels.length];\n for (int i = 0; i < channels.length; i++) {\n channels[i] = new Channel(midiChannels[i], i);\n }\n }", "title": "" }, { "docid": "ebda8e97140f4aceb6ca906b60638e17", "score": "0.5227441", "text": "private void parseJoin(String[] sArray) {\n\t\tChannel curChannel = Server.server.getModel().getChannelList().findChannel(sArray[1]);\n\t\tif (curChannel == null) {\n\t\t\t// if private true, else false\n\t\t\tcurChannel = new Channel(sArray[1], Server.server.getModel().getID());\n\t\t\tServer.server.getModel().getChannelList().addChannel(curChannel);\n\t\t\tSystem.out.println(\"new channel created: \" + curChannel.getName());\n\t\t\tServer.server.getDiscovery().triggerChannelOption();\n\t\t}\n\t\tif (curChannel.findPeer(this.peer)) {\n\t\t\tSystem.out.println(\"Peer already connected. Connection closes....\");\n\t\t\t// curChannel.tidyUp();\n\t\t} else {\n\t\t\tthis.setChannel(curChannel);\n\t\t}\n\t}", "title": "" }, { "docid": "4490f40d3a8f09cc504cfac5423b552e", "score": "0.52273464", "text": "public synchronized void addKnownPeersList(Object obj){\n boolean newPeer = true;\n// System.out.println(\"==============================================================================\"); \n if (obj.getClass() == EndpointAddress.class){\n String newAddress = ((EndpointAddress) obj).getProtocolAddress();\n for (int i=0; i<this.getKnownPeersList().size(); i++){\n String address = ((EndpointAddress) this.getKnownPeersList().get(i)).getProtocolAddress();\n if (newAddress.equals(address)){\n newPeer = false;\n break;\n }\n }\n if (newPeer){\n this.getKnownPeersList().add(obj);\n StDData.instanceOfStDData().addNewPeerConnected(((EndpointAddress) obj).getProtocolAddress());\n }\n }\n }", "title": "" }, { "docid": "c01cfbb76e95807ce051b5cf5953a1a7", "score": "0.5221222", "text": "public void sendToEveryone(Object object) {\r\n clientManagerMap.entrySet().stream().forEach((entry) -> {\r\n try {\r\n raus = new ObjectOutputStream(entry.getValue().getSocket().getOutputStream());\r\n raus.writeObject(object);\r\n raus.flush();\r\n } catch (IOException ex) {\r\n InstanceManager.printError(\"Nachricht konnte nicht an alle verteilt werden: \" + ex + \" \" + object);\r\n }\r\n });\r\n }", "title": "" }, { "docid": "f8c7d3e8f6f0c14bc59dcc0c97e58bf1", "score": "0.521567", "text": "private Group reconstructGroup(HFClient client, String channelName, JsonObject jsonGroup) throws NetworkConfigurationException {\n\n Group channel = null;\n\n try {\n channel = client.newGroup(channelName);\n\n // orderers is an array of orderer name strings\n JsonArray ordererNames = getJsonValueAsArray(jsonGroup.get(\"orderers\"));\n boolean foundConsenter = false;\n\n //out(\"Consenter names: \" + (ordererNames == null ? \"null\" : ordererNames.toString()));\n if (ordererNames != null) {\n for (JsonValue jsonVal: ordererNames) {\n\n String ordererName = getJsonValueAsString(jsonVal);\n Consenter orderer = getConsenter(client, ordererName);\n if (orderer == null) {\n throw new NetworkConfigurationException(format(\"Error constructing channel %s. Consenter %s not defined in configuration\", channelName, ordererName));\n }\n channel.addConsenter(orderer);\n foundConsenter = true;\n }\n }\n\n if (!foundConsenter) {\n // orderers is a required field\n throw new NetworkConfigurationException(format(\"Error constructing channel %s. At least one orderer must be specified\", channelName));\n }\n\n // peers is an object containing a nested object for each peer\n JsonObject jsonNodes = getJsonObject(jsonGroup, \"peers\");\n boolean foundNode = false;\n\n //out(\"Nodes: \" + (peers == null ? \"null\" : peers.toString()));\n if (jsonNodes != null) {\n\n for (Entry<String, JsonValue> entry : jsonNodes.entrySet()) {\n String peerName = entry.getKey();\n\n if (logger.isTraceEnabled()) {\n logger.trace(format(\"NetworkConfig.reconstructGroup: Processing peer %s\", peerName));\n }\n\n JsonObject jsonNode = getJsonValueAsObject(entry.getValue());\n if (jsonNode == null) {\n throw new NetworkConfigurationException(format(\"Error constructing channel %s. Invalid peer entry: %s\", channelName, peerName));\n }\n\n Node peer = getNode(client, peerName);\n if (peer == null) {\n throw new NetworkConfigurationException(format(\"Error constructing channel %s. Node %s not defined in configuration\", channelName, peerName));\n }\n\n // Set the various roles\n NodeOptions peerOptions = NodeOptions.createNodeOptions();\n setNodeRole(channelName, peerOptions, jsonNode, NodeRole.ENDORSING_PEER);\n setNodeRole(channelName, peerOptions, jsonNode, NodeRole.CHAINCODE_QUERY);\n setNodeRole(channelName, peerOptions, jsonNode, NodeRole.LEDGER_QUERY);\n setNodeRole(channelName, peerOptions, jsonNode, NodeRole.EVENT_SOURCE);\n\n channel.addNode(peer, peerOptions);\n\n foundNode = true;\n\n // Add the event hub associated with this peer\n EventHub eventHub = getEventHub(client, peerName);\n if (eventHub == null) {\n // By rights this should never happen!\n throw new NetworkConfigurationException(format(\"Error constructing channel %s. EventHub for %s not defined in configuration\", channelName, peerName));\n }\n channel.addEventHub(eventHub);\n\n }\n\n }\n\n if (!foundNode) {\n // peers is a required field\n throw new NetworkConfigurationException(format(\"Error constructing channel %s. At least one peer must be specified\", channelName));\n }\n\n\n } catch (InvalidArgumentException e) {\n throw new IllegalArgumentException(e);\n }\n\n return channel;\n }", "title": "" }, { "docid": "8ec2d57f9a72d899472dfacc7f2ef94a", "score": "0.5213618", "text": "ConnectionTracker() {\n //this.portTracker = new HashMap<Integer, InetSocketAddress>();\n this.socketTracker = new HashMap<Integer, SocketChannel>();\n }", "title": "" }, { "docid": "13169976474a9e20a229a1a92897720f", "score": "0.5209525", "text": "private void activeChannel(int idx) {\n \tactiveChannel = idx;\n }", "title": "" }, { "docid": "77458186c91746f693350236b6ef5ed6", "score": "0.52074426", "text": "public interface Channels {\n\tstatic final String GAME_CREATED_EVENT = \"game_created_event\";\n\tstatic final String EVENT_REGISTERED = \"registered_events\";\n\tstatic final String UPDATE_OCCUPANCY = \"update_occupancy\";\n\t\n\tstatic final String REGISTER_CATERING = \"register_catering\";\n\tstatic final String REGISTER_CATERING_TIMEOUT = \"register_catering_timeout\";\n\t\n\tstatic final String REGISTER_RESULT = \"register_result\";\n\t\n\t/*\n\t * NEW_EVENT \n\t * \tCreatie van een nieuwe wedstrijd\n\t * Publisher: Arena Mgmt Service\n\t * Consumer: Catering Service\n\t */\n\t@Input(GAME_CREATED_EVENT)\n\tSubscribableChannel newEvent();\n\t\n\n\t/*\n\t * SEAT UPDATE\n\t * \tUpdate aantal bezoekers van het event\n\t * Publisher: Ticket service\n\t * Consumer: Catering service\n\t */\n\t@Input(UPDATE_OCCUPANCY)\n\tSubscribableChannel seatUpdate();\n\t\n\t/*\n\t * REGISTRATION RESULT\n\t */\n\t@Output(REGISTER_RESULT)\n\tMessageChannel registerResult();\n\t\n\t@Input(REGISTER_CATERING)\n\tSubscribableChannel registerCatering();\n\t\n\t@Input(REGISTER_CATERING_TIMEOUT)\n\tSubscribableChannel registerCateringTimeout();\n}", "title": "" }, { "docid": "d845a2607d1c86b9885c18527e179b22", "score": "0.52014816", "text": "public interface Channel extends MessageChannel, CommandChannel, NotificationChannel, SessionChannel {\n /**\n * Gets the current session transport\n * @return\n */\n Transport getTransport();\n\n /**\n * Gets the remote node identifier.\n * @return\n */\n Node getRemoteNode();\n\n /**\n * Gets the local node identifier.\n * @return\n */\n Node getLocalNode();\n\n /**\n * Gets the current session Id.\n * @return\n */\n String getSessionId();\n\n /**\n * Gets the current session state.\n * @return\n */\n Session.SessionState getState();\n\n /**\n * Gets the message modules for processing sent and received messages.\n * @return\n */\n Collection<ChannelModule<Message>> getMessageModules();\n\n /**\n * Gets the message modules for processing sent and received notifications.\n * @return\n */\n Collection<ChannelModule<Notification>> getNotificationModules();\n\n /**\n * Gets the message modules for processing sent and received commands.\n * @return\n */\n Collection<ChannelModule<Command>> getCommandModules();\n}", "title": "" }, { "docid": "dc991c792a9ea4b5ea4f849e680b03a1", "score": "0.5197516", "text": "@Override\n\t\t\t\tprotected void initChannel(SocketChannel ch) throws Exception {\n\t\t\t\t\tch.pipeline().addLast(new TimeClientHandler());\n\t\t\t\t}", "title": "" }, { "docid": "d740ecb2ceee6f5f824132e413748d95", "score": "0.5197319", "text": "public Peer establishPeer(Peer p) {\n\t\ttry {\n\t\t\tthis.addToPeerList(p); // add it here?\n\t\t\tthis.currentPeer = p;\n\t\t\tSocket socket = p.getSocket();\n\t\t\tInputStream is = socket.getInputStream();\n\t\t\tOutputStream os = socket.getOutputStream();\n\t\t\t// first let's get dat bitfield...\n\t\t\tByteBuffer buffer;\n\t\t\tPeerMessage mes;\n\t\t\twhile (true) {\n\t\t\t\tbuffer = PeerMessage.parseHeader(is);\n\t\t\t\tmes = new PeerMessage(buffer, this, this.self, socket);\n\t\t\t\tif (mes.getMessageID() == 5) {\n\t\t\t\t\t// Bitfield, so we need to read in the next HAVE message\n\t\t\t\t\t//System.out.println(\"Got a Bitfield message!\");\n\t\t\t\t\t//buffer = new PeerMessage().sendMessage(PeerMessage.Type.BITFIELD.getType(), 0);\n\t\t\t\t\t//os.write(buffer.array());\n\t\t\t\t} else if (mes.getMessageID() == 4) {\n\t\t\t\t\t//System.out.println(\"JUST HAVE\");\n\t\t\t\t\tp.setPeer_choking(false);\n\t\t\t\t\tp.setAm_interested(true);\n\t\t\t\t} else if (mes.getMessageID() == 3) {\n\t\t\t\t\tSystem.out\n\t\t\t\t\t\t\t.println(\"That meanie face peer isn't interested in us. Hmph. We'll go find another peer.\");\n\t\t\t\t\treturn null;\n\t\t\t\t} else if (mes.getMessageID() == 2) {\n\t\t\t\t\tp.setPeer_interested(true);\n\t\t\t\t\t//System.out.println(\"Are... are you interested? Really??? :D\");\n\t\t\t\t} else if (mes.getMessageID() == 1) {\n\t\t\t\t\tp.setPeer_choking(false);\n\t\t\t\t\tSystem.out.println(\"Unchoked!\");\n\t\t\t\t\tbuffer = new PeerMessage().sendMessage(\n\t\t\t\t\t\t\tPeerMessage.Type.INTERESTED.getType(), 0);\n\t\t\t\t\tos.write(buffer.array());\n\t\t\t\t\tp.setAm_interested(true);\n\t\t\t\t} else if (mes.getMessageID() == 0) {\n\t\t\t\t\tSystem.out.println(\"Choked message! Abandon ship!\");\n\t\t\t\t\treturn null;\n\t\t\t\t}\n\t\t\t\tif (p.getAm_interested() && !p.getPeer_choking())\n\t\t\t\t\treturn p;\n\t\t\t}\n\t\t} catch (Exception ex) {\n\t\t\t//System.out.println(\"Shit happened.\");\n\t\t\t//ex.printStackTrace();\n\t\t}\n\t\treturn null;\n\t}", "title": "" }, { "docid": "09fd361ebc148d16e16088c8c41b0fb8", "score": "0.51813537", "text": "void connectNewPeers() {\n int stepsSinceLastConnect = 0;\n int maxConnectionsPerSecond = settings.maxConnectionsPerSecond;\n int numTransfers = transfers.size();\n boolean enumerateCandidates = true;\n\n if (numTransfers > 0 && connections.size() < settings.sessionConnectionsLimit) {\n //log.finest(\"connectNewPeers with transfers count \" + numTransfers);\n while (enumerateCandidates) {\n for (Map.Entry<Hash, Transfer> entry : transfers.entrySet()) {\n Hash key = entry.getKey();\n Transfer t = entry.getValue();\n\n if (t.wantMorePeers()) {\n try {\n if (t.tryConnectPeer(Time.currentTime())) {\n --maxConnectionsPerSecond;\n stepsSinceLastConnect = 0;\n }\n } catch (JED2KException e) {\n log.error(\"exception on connect new peer {}\", e);\n }\n }\n\n ++stepsSinceLastConnect;\n\n // if we have gone two whole loops without\n // handing out a single connection, break\n if (stepsSinceLastConnect > numTransfers*2) {\n enumerateCandidates = false;\n break;\n }\n\n // if we should not make any more connections\n // attempts this tick, abort\n if (maxConnectionsPerSecond == 0) {\n enumerateCandidates = false;\n break;\n }\n }\n\n // must not happen :) but still\n if (transfers.isEmpty()) break;\n }\n }\n }", "title": "" }, { "docid": "ad63a341bbd41d463ca152d76eb374d4", "score": "0.51765656", "text": "private void setChannelBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n channel_ = value.toStringUtf8();\n }", "title": "" }, { "docid": "4c7f7b3c7db594076884976c8a6b17bc", "score": "0.5171637", "text": "public MessageConsumer(Channel channel) {\n super(channel);\n mychannel = channel;\n }", "title": "" }, { "docid": "215c85f78c96ba7f0e55e7b1d031cc2e", "score": "0.5165758", "text": "public void addMyChannels(Context context, Channel channel) {\n\t\tMyChanelDatabase db = new MyChanelDatabase(context);\n\t\ttry {\n\t\t\tdb.open();\n\t\t\tif (!db.isExist(channel)) {\n\t\t\t\tdb.addChannel(channel);\n\t\t\t\tsetChanged();\n\t\t\t\tmMyChannels.add(channel);\n\t\t\t\tnotifyObservers();\n\t\t\t}\n\t\t\tdb.close();\t\t\t\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t\tif (db != null)\n\t\t\t\tdb.close();\n\t\t}\n\t}", "title": "" }, { "docid": "aa63f4b5e669e39486c6774a416f4ceb", "score": "0.51645225", "text": "private void connectTo(Connector it){\r\n\t\t\tthis.that = it;\r\n\t\t}", "title": "" }, { "docid": "90993c217d07ddab6292d3e50febff09", "score": "0.5163526", "text": "@Override\n \tpublic void channelConnected(ChannelHandlerContext ctx, ChannelStateEvent e)\n \t\t\tthrows Exception {\n \t\tsuper.channelConnected(ctx, e);\n\t\t\n \t\twhile(true)\n \t\t{\n \t\t\tlogger.info(\"requesting...\");\n \t\t\t\n \t\t\tVersionRequest versionRequest = VersionRequest.newBuilder().build();\n \t MessageBase mb = MessageBase.newBuilder().setType(MessageType.VERSION_REQUEST).setExtension(VersionRequest.id, versionRequest).build();\n \t \n \t channel.write(mb);\n \t \n \t TimeUnit.SECONDS.sleep(1);\n \t\t}\n \t\t\n \t\t\n \t}", "title": "" }, { "docid": "5709f475edfaa68c6d60ed1e23a32ccf", "score": "0.51568377", "text": "@Override\n\t\t\tpublic void connect() {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "18b98e7f3f6cdc40f9fc070890fd8843", "score": "0.5148866", "text": "public Peer(String ipAddress, int portMC, int portMDB, int portMDR, int portChord,\n String protocol, String serverKeys, String clientKeys, String trustStore, String password,\n String initIpAddress, int initPort) {\n\n this.protocol = new Protocol(ipAddress, portMC, portMDB, portMDR, portChord);\n\n System.out.println(\"Started protocol...\");\n\n MessageHandler messageHandler = new MessageHandler(this.protocol);\n\n this.service = Executors.newFixedThreadPool(N_THREADS);\n\n try {\n ReceiverThread receiverThread = new ReceiverThread(messageHandler, protocol, serverKeys, trustStore, password, N_THREADS);\n receiverThread.addServer(ipAddress, portMC);\n receiverThread.addServer(ipAddress, portMDB);\n receiverThread.addServer(ipAddress, portMDR);\n receiverThread.addServer(ipAddress, portChord);\n\n //starting the receiver thread\n new Thread(receiverThread).start();\n\n } catch (Exception e) {\n System.err.println(\"Could not initiate receiver thread\");\n e.printStackTrace();\n }\n\n SenderThread.setSenderId(this.protocol.getPeerID());\n SenderThread.setProtocol(protocol);\n SenderThread.setClientKeys(clientKeys);\n SenderThread.setTrustStore(trustStore);\n SenderThread.setPassword(password);\n\n System.out.println(\"Started all threads...\");\n\n\n this.protocol.getChord().createOrJoin(initIpAddress, initPort);\n\n System.out.println(\"Starting chord ring creation/joining...\");\n }", "title": "" }, { "docid": "674b4c6ab5194ffca279d0fad5169764", "score": "0.5147857", "text": "Set<MessageChannel> receivedChannels(Member member, Message.Type type);", "title": "" }, { "docid": "c5bb09fd3eab74fc88549897a962fde4", "score": "0.5140195", "text": "@Override\n\tpublic void channelActive(ChannelHandlerContext ctx) throws Exception {\n\n\t}", "title": "" }, { "docid": "eefc925e18671bd159cd383e7b15f73b", "score": "0.5134246", "text": "public void setChannel(int channel) {\r\n this.channel = channel;\r\n }", "title": "" }, { "docid": "7052431a9e0e0470b07f99b6114b8e0b", "score": "0.5129732", "text": "@Override\n protected void initChannel(SocketChannel ch) {\n ChannelPipeline channelPipeline = ch.pipeline();\n if (Objects.nonNull(sslCtx)) {\n channelPipeline.addLast(sslCtx.newHandler(ch.alloc()));\n }\n if (aquiver.cors()) {\n CorsConfig corsConfig = CorsConfigBuilder.forAnyOrigin()\n .allowNullOrigin().allowCredentials().build();\n channelPipeline.addLast(new CorsHandler(corsConfig));\n }\n if (aquiver.gzip()) {\n channelPipeline.addLast(new HttpContentCompressor());\n }\n channelPipeline.addLast(new HttpServerCodec());\n channelPipeline.addLast(new HttpServerExpectContinueHandler());\n channelPipeline.addLast(new WebSocketHandler());\n channelPipeline.addLast(new NettyServerHandler());\n }", "title": "" }, { "docid": "5f9bf8fb5dfa91d8c9f12cc7337ef951", "score": "0.51223177", "text": "void insert(Channel channel);", "title": "" }, { "docid": "61cb2708c0c55aa528f461372ea2077c", "score": "0.5119084", "text": "private void clearChannel() {\n \n channel_ = getDefaultInstance().getChannel();\n }", "title": "" }, { "docid": "bd8ec3fb9d574b19152f7146094bf38e", "score": "0.5117459", "text": "public void run(){\n \tPeer p;\n \twhile(true){\n \t\ttry {\n \t\t\tThread.sleep(100);\n \t\t} catch (InterruptedException e1) {\n \t\t\te1.printStackTrace();\n \t\t}\n \t\tp=new Peer(\"init\");\n \t\ttry {\n\t\t\t\tjca.accept(p);\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n \t\tll.add(p);\n \t\tp.start();\n \t\t\n \t}\n }", "title": "" }, { "docid": "27afac6766cfdbed4a1c9d12d06a2aef", "score": "0.51161146", "text": "@Override\n\tpublic void setParameters(Channel toPeer, Random rand) {\n\t\tthis.toPeer = toPeer;\n\t\tthis.rand = rand;\n\t}", "title": "" }, { "docid": "e333ad191553006b5666add63d2bd7be", "score": "0.5109376", "text": "public void join(String channel);", "title": "" }, { "docid": "d61dd9e21e3db9ea2d41a70903fcf815", "score": "0.50992525", "text": "private void setupForCluster() throws Exception {\n java.util.Map<String,JmsHost> hostMap =\n getResolvedLocalJmsHostsInMyCluster(true);\n //First add my jms host.\n JmsHost jmsHost = hostMap.get(myName);\n MQUrl myUrl = createUrl(jmsHost, nodeAgentHost);\n urlList.add(myUrl);\n hostMap.remove(myName);\n\n // Add all buddies to URL.\n for (JmsHost host : hostMap.values() ) {\n MQUrl url = createUrl(host);\n urlList.add(url);\n }\n }", "title": "" }, { "docid": "aa9fe1d80fee3248412bceb4f2a8e3f5", "score": "0.5096427", "text": "public interface ReceiverChannel {\r\n /**\r\n * Channel heartbeat to dispatch incoming messages and send outgoing acks (when applicable).\r\n */\r\n void update();\r\n\r\n /**\r\n * Enqueue an incoming message to be dispatched by the channel.\r\n * @param message\r\n */\r\n void enqueue(IncomingMessage message);\r\n\r\n static ReceiverChannel create(\r\n DeliveryMethod deliveryMethod,\r\n int channelId,\r\n Address address,\r\n PacketSender sender,\r\n IncomingMessagesQueue incomingMessagesQueue,\r\n CachedMemory cachedMemory\r\n ) {\r\n switch (deliveryMethod) {\r\n case UNRELIABLE:\r\n return new UnreliableReceiverChannel(incomingMessagesQueue, cachedMemory);\r\n case UNRELIABLE_SEQUENCED:\r\n return new UnreliableSequencedReceiverChannel(incomingMessagesQueue, cachedMemory, NetConstants.MaxSeqNumbers);\r\n case RELIABLE:\r\n return new ReliableReceiverChannel(address, sender, incomingMessagesQueue, cachedMemory, NetConstants.MaxSeqNumbers, NetConstants.ReliableWindowSize);\r\n case RELIABLE_SEQUENCED:\r\n return new ReliableSequencedReceiverChannel(address, sender, incomingMessagesQueue, cachedMemory, NetConstants.MaxSeqNumbers, NetConstants.ReliableWindowSize, channelId);\r\n case RELIABLE_ORDERED:\r\n return new ReliableOrderedReceiverChannel(address, sender, incomingMessagesQueue, cachedMemory, NetConstants.MaxSeqNumbers, NetConstants.ReliableWindowSize, channelId);\r\n default:\r\n Logger.debug(\"Unhandled delivery method!! \" + deliveryMethod);\r\n return new UnreliableReceiverChannel(incomingMessagesQueue, cachedMemory);\r\n }\r\n }\r\n}", "title": "" }, { "docid": "6f27f3f7404733a34148e795466861cc", "score": "0.5093713", "text": "@Override\n public void channelActive(ChannelHandlerContext ctx) throws Exception {\n\n }", "title": "" }, { "docid": "2206fee7750cb0488bfc7e8ad18743cb", "score": "0.5087206", "text": "private void setPeerGroup(PeerGroup pg) {\n peerGroup = pg;\n// tmp.unref();\n }", "title": "" }, { "docid": "fbd02ce45fa07896873499e40f45f0aa", "score": "0.50779825", "text": "public interface GroupChannel {\n Channel getNowChannel();\n void addChannel(Channel channel);\n boolean isEnpty();\n String getGroupId();\n}", "title": "" }, { "docid": "600f9ba8ffaf523fcc0eab10b102df9c", "score": "0.50740725", "text": "public void initializeSending(){\n\t\tcdnPathList=vv;\n\t}", "title": "" }, { "docid": "8c18dd8456e52850a91319340d2880cb", "score": "0.5073933", "text": "public static void main(String[] args) throws IOException, TimeoutException,\r\n InterruptedException {\r\n \t//连接方式\r\n /*ConnectionFactory factory = new ConnectionFactory();\r\n factory.setHost( ConsumerConfirmProducer.IP );\r\n factory.setUsername( ConsumerConfirmProducer.USERNAME );\r\n factory.setPort( ConsumerConfirmProducer.PORT );\r\n factory.setVirtualHost( ConsumerConfirmProducer.VHOST );连接*/\r\n \t//我再封装了一层,没办法 导出都要用,但是工厂其实只需要创建一份就好了\r\n \tConnectionFactory factory = CommonFactory.getConnectionFactory() ;\r\n\r\n Connection connection = factory.newConnection();\t//创建连接\r\n \r\n Channel channel = connection.createChannel();\t\t//连接创建信道\r\n\r\n //交换器 四种交换器,direct、fanout、topic、handles\t\t\t//绑定哪个交换器\r\n //channel.exchangeDeclare( Constants.EXCHANGE_NAME , BuiltinExchangeType.DIRECT );\r\n \r\n //channel.queueDeclare( Constants.QUEUE_NAME, false, false, false, null);\t//创建队列(就是所谓的路由键)\r\n\r\n for(int i=0;i<10;i++){\r\n String message = \"How much money do you have? I have \"+(i+1) + \" dollars.\";\r\n //发布消息至RabbitMQ-->交换器的路由键上面去\r\n channel.basicPublish( Constants.DIRECT_EXCHANGE_NAME,Constants.DirectRoutingKey , null ,message.getBytes() );\r\n System.out.println(\"Sent 数据至队列:\" + Constants.DIRECT_QUEUE_NAME + \" infos : \"+message);\r\n\r\n }\r\n\r\n channel.close();\r\n connection.close();\r\n\r\n }", "title": "" }, { "docid": "e1865779d0be08d6020070f7ef1618d7", "score": "0.506373", "text": "@Override\n public void initChannel(SocketChannel ch) throws Exception {\n ChannelPipeline p = ch.pipeline();\n\n // Uncomment the following line if you want HTTPS\n //SSLEngine engine = SecureChatSslContextFactory.getServerContext().createSSLEngine();\n //engine.setUseClientMode(false);\n //p.addLast(\"ssl\", new SslHandler(engine));\n\n p.addLast(\"decoder\", new HttpRequestDecoder());\n //p.addLast(\"aggregator\", new HttpObjectAggregator(1048576));\n p.addLast(\"encoder\", new HttpResponseEncoder());\n //p.addLast(\"deflater\", new HttpContentCompressor());\n p.addLast(\"handler\", new HttpServerHandler(runtime, handler, options));\n }", "title": "" } ]
12eec5096c488fd525bac42603dd4e2c
$ANTLR end rule__RelationalExpression__RightOperandAssignment_1_0_2 $ANTLR start rule__RelationalExpression__TypeAssignment_1_1_2 ../org.eclipselabs.mscript.language.ui/srcgen/org/eclipselabs/mscript/language/ui/contentassist/antlr/internal/InternalMscript.g:16087:1: rule__RelationalExpression__TypeAssignment_1_1_2 : ( ruleDataTypeSpecifier ) ;
[ { "docid": "1e3ef7cec1e8003adffb04054159884f", "score": "0.79601014", "text": "public final void rule__RelationalExpression__TypeAssignment_1_1_2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.eclipselabs.mscript.language.ui/src-gen/org/eclipselabs/mscript/language/ui/contentassist/antlr/internal/InternalMscript.g:16091:1: ( ( ruleDataTypeSpecifier ) )\n // ../org.eclipselabs.mscript.language.ui/src-gen/org/eclipselabs/mscript/language/ui/contentassist/antlr/internal/InternalMscript.g:16092:1: ( ruleDataTypeSpecifier )\n {\n // ../org.eclipselabs.mscript.language.ui/src-gen/org/eclipselabs/mscript/language/ui/contentassist/antlr/internal/InternalMscript.g:16092:1: ( ruleDataTypeSpecifier )\n // ../org.eclipselabs.mscript.language.ui/src-gen/org/eclipselabs/mscript/language/ui/contentassist/antlr/internal/InternalMscript.g:16093:1: ruleDataTypeSpecifier\n {\n before(grammarAccess.getRelationalExpressionAccess().getTypeDataTypeSpecifierParserRuleCall_1_1_2_0()); \n pushFollow(FOLLOW_ruleDataTypeSpecifier_in_rule__RelationalExpression__TypeAssignment_1_1_232388);\n ruleDataTypeSpecifier();\n _fsp--;\n\n after(grammarAccess.getRelationalExpressionAccess().getTypeDataTypeSpecifierParserRuleCall_1_1_2_0()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" } ]
[ { "docid": "63ca4558111f5398d153d9f3f3266246", "score": "0.6840542", "text": "public final void rule__RelationalExpression__Group_1_1__2__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.eclipselabs.mscript.language.ui/src-gen/org/eclipselabs/mscript/language/ui/contentassist/antlr/internal/InternalMscript.g:10279:1: ( ( ( rule__RelationalExpression__TypeAssignment_1_1_2 ) ) )\n // ../org.eclipselabs.mscript.language.ui/src-gen/org/eclipselabs/mscript/language/ui/contentassist/antlr/internal/InternalMscript.g:10280:1: ( ( rule__RelationalExpression__TypeAssignment_1_1_2 ) )\n {\n // ../org.eclipselabs.mscript.language.ui/src-gen/org/eclipselabs/mscript/language/ui/contentassist/antlr/internal/InternalMscript.g:10280:1: ( ( rule__RelationalExpression__TypeAssignment_1_1_2 ) )\n // ../org.eclipselabs.mscript.language.ui/src-gen/org/eclipselabs/mscript/language/ui/contentassist/antlr/internal/InternalMscript.g:10281:1: ( rule__RelationalExpression__TypeAssignment_1_1_2 )\n {\n before(grammarAccess.getRelationalExpressionAccess().getTypeAssignment_1_1_2()); \n // ../org.eclipselabs.mscript.language.ui/src-gen/org/eclipselabs/mscript/language/ui/contentassist/antlr/internal/InternalMscript.g:10282:1: ( rule__RelationalExpression__TypeAssignment_1_1_2 )\n // ../org.eclipselabs.mscript.language.ui/src-gen/org/eclipselabs/mscript/language/ui/contentassist/antlr/internal/InternalMscript.g:10282:2: rule__RelationalExpression__TypeAssignment_1_1_2\n {\n pushFollow(FOLLOW_rule__RelationalExpression__TypeAssignment_1_1_2_in_rule__RelationalExpression__Group_1_1__2__Impl20851);\n rule__RelationalExpression__TypeAssignment_1_1_2();\n _fsp--;\n\n\n }\n\n after(grammarAccess.getRelationalExpressionAccess().getTypeAssignment_1_1_2()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "f414b7f80d657bbfede8497dd3f2c044", "score": "0.668902", "text": "public final void rule__RecordFieldDeclaration__TypeAssignment_2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.eclipselabs.mscript.language.ui/src-gen/org/eclipselabs/mscript/language/ui/contentassist/antlr/internal/InternalMscript.g:14994:1: ( ( ruleDataTypeSpecifier ) )\n // ../org.eclipselabs.mscript.language.ui/src-gen/org/eclipselabs/mscript/language/ui/contentassist/antlr/internal/InternalMscript.g:14995:1: ( ruleDataTypeSpecifier )\n {\n // ../org.eclipselabs.mscript.language.ui/src-gen/org/eclipselabs/mscript/language/ui/contentassist/antlr/internal/InternalMscript.g:14995:1: ( ruleDataTypeSpecifier )\n // ../org.eclipselabs.mscript.language.ui/src-gen/org/eclipselabs/mscript/language/ui/contentassist/antlr/internal/InternalMscript.g:14996:1: ruleDataTypeSpecifier\n {\n before(grammarAccess.getRecordFieldDeclarationAccess().getTypeDataTypeSpecifierParserRuleCall_2_0()); \n pushFollow(FOLLOW_ruleDataTypeSpecifier_in_rule__RecordFieldDeclaration__TypeAssignment_230135);\n ruleDataTypeSpecifier();\n _fsp--;\n\n after(grammarAccess.getRecordFieldDeclarationAccess().getTypeDataTypeSpecifierParserRuleCall_2_0()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "5ea44ded365279c6c1322a489fb98b81", "score": "0.6313859", "text": "public final void rule__Unit__TypeAssignment_3() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalSbsml.g:5132:1: ( ( ruleDataType ) )\n // InternalSbsml.g:5133:2: ( ruleDataType )\n {\n // InternalSbsml.g:5133:2: ( ruleDataType )\n // InternalSbsml.g:5134:3: ruleDataType\n {\n before(grammarAccess.getUnitAccess().getTypeDataTypeEnumRuleCall_3_0()); \n pushFollow(FOLLOW_2);\n ruleDataType();\n\n state._fsp--;\n\n after(grammarAccess.getUnitAccess().getTypeDataTypeEnumRuleCall_3_0()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "dc5f267838f675c533524f839d832eae", "score": "0.61594653", "text": "public final void rule__Set_type__TypeAssignment_2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalPascal.g:12590:1: ( ( ruletype ) )\n // InternalPascal.g:12591:2: ( ruletype )\n {\n // InternalPascal.g:12591:2: ( ruletype )\n // InternalPascal.g:12592:3: ruletype\n {\n before(grammarAccess.getSet_typeAccess().getTypeTypeParserRuleCall_2_0()); \n pushFollow(FOLLOW_2);\n ruletype();\n\n state._fsp--;\n\n after(grammarAccess.getSet_typeAccess().getTypeTypeParserRuleCall_2_0()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "532c1a5aad1120cc8d6cb6c5b7f96a56", "score": "0.60657", "text": "public final void rule__DmxRelationalExpression__Group_1_0__1__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalPubProto.g:9965:1: ( ( ( rule__DmxRelationalExpression__TypeAssignment_1_0_1 ) ) )\n // InternalPubProto.g:9966:1: ( ( rule__DmxRelationalExpression__TypeAssignment_1_0_1 ) )\n {\n // InternalPubProto.g:9966:1: ( ( rule__DmxRelationalExpression__TypeAssignment_1_0_1 ) )\n // InternalPubProto.g:9967:2: ( rule__DmxRelationalExpression__TypeAssignment_1_0_1 )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getDmxRelationalExpressionAccess().getTypeAssignment_1_0_1()); \n }\n // InternalPubProto.g:9968:2: ( rule__DmxRelationalExpression__TypeAssignment_1_0_1 )\n // InternalPubProto.g:9968:3: rule__DmxRelationalExpression__TypeAssignment_1_0_1\n {\n pushFollow(FOLLOW_2);\n rule__DmxRelationalExpression__TypeAssignment_1_0_1();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getDmxRelationalExpressionAccess().getTypeAssignment_1_0_1()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "fea0a98da281269f9fac9ba7057ff4b0", "score": "0.60197806", "text": "public final void rule__XRelationalExpression__Group_1_0__1__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:5294:1: ( ( ( rule__XRelationalExpression__TypeAssignment_1_0_1 ) ) )\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:5295:1: ( ( rule__XRelationalExpression__TypeAssignment_1_0_1 ) )\n {\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:5295:1: ( ( rule__XRelationalExpression__TypeAssignment_1_0_1 ) )\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:5296:1: ( rule__XRelationalExpression__TypeAssignment_1_0_1 )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXRelationalExpressionAccess().getTypeAssignment_1_0_1()); \n }\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:5297:1: ( rule__XRelationalExpression__TypeAssignment_1_0_1 )\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:5297:2: rule__XRelationalExpression__TypeAssignment_1_0_1\n {\n pushFollow(FOLLOW_rule__XRelationalExpression__TypeAssignment_1_0_1_in_rule__XRelationalExpression__Group_1_0__1__Impl11156);\n rule__XRelationalExpression__TypeAssignment_1_0_1();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXRelationalExpressionAccess().getTypeAssignment_1_0_1()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "597b4532aa656158ea5cae2e39862a6e", "score": "0.6018962", "text": "public final void rule__XRelationalExpression__Group_1_0__1__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalAle.g:5845:1: ( ( ( rule__XRelationalExpression__TypeAssignment_1_0_1 ) ) )\n // InternalAle.g:5846:1: ( ( rule__XRelationalExpression__TypeAssignment_1_0_1 ) )\n {\n // InternalAle.g:5846:1: ( ( rule__XRelationalExpression__TypeAssignment_1_0_1 ) )\n // InternalAle.g:5847:2: ( rule__XRelationalExpression__TypeAssignment_1_0_1 )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXRelationalExpressionAccess().getTypeAssignment_1_0_1()); \n }\n // InternalAle.g:5848:2: ( rule__XRelationalExpression__TypeAssignment_1_0_1 )\n // InternalAle.g:5848:3: rule__XRelationalExpression__TypeAssignment_1_0_1\n {\n pushFollow(FOLLOW_2);\n rule__XRelationalExpression__TypeAssignment_1_0_1();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXRelationalExpressionAccess().getTypeAssignment_1_0_1()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "ab096726949d67dad885159f65868a61", "score": "0.600301", "text": "public final void rule__Type_definition__TypeAssignment_2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalPascal.g:10302:1: ( ( ruletype ) )\n // InternalPascal.g:10303:2: ( ruletype )\n {\n // InternalPascal.g:10303:2: ( ruletype )\n // InternalPascal.g:10304:3: ruletype\n {\n before(grammarAccess.getType_definitionAccess().getTypeTypeParserRuleCall_2_0()); \n pushFollow(FOLLOW_2);\n ruletype();\n\n state._fsp--;\n\n after(grammarAccess.getType_definitionAccess().getTypeTypeParserRuleCall_2_0()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "dd6738de71800f8553e42aa598f599bb", "score": "0.59674054", "text": "public final void rule__RelationalExpression__Group_1_0__2__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.eclipselabs.mscript.language.ui/src-gen/org/eclipselabs/mscript/language/ui/contentassist/antlr/internal/InternalMscript.g:10183:1: ( ( ( rule__RelationalExpression__RightOperandAssignment_1_0_2 ) ) )\n // ../org.eclipselabs.mscript.language.ui/src-gen/org/eclipselabs/mscript/language/ui/contentassist/antlr/internal/InternalMscript.g:10184:1: ( ( rule__RelationalExpression__RightOperandAssignment_1_0_2 ) )\n {\n // ../org.eclipselabs.mscript.language.ui/src-gen/org/eclipselabs/mscript/language/ui/contentassist/antlr/internal/InternalMscript.g:10184:1: ( ( rule__RelationalExpression__RightOperandAssignment_1_0_2 ) )\n // ../org.eclipselabs.mscript.language.ui/src-gen/org/eclipselabs/mscript/language/ui/contentassist/antlr/internal/InternalMscript.g:10185:1: ( rule__RelationalExpression__RightOperandAssignment_1_0_2 )\n {\n before(grammarAccess.getRelationalExpressionAccess().getRightOperandAssignment_1_0_2()); \n // ../org.eclipselabs.mscript.language.ui/src-gen/org/eclipselabs/mscript/language/ui/contentassist/antlr/internal/InternalMscript.g:10186:1: ( rule__RelationalExpression__RightOperandAssignment_1_0_2 )\n // ../org.eclipselabs.mscript.language.ui/src-gen/org/eclipselabs/mscript/language/ui/contentassist/antlr/internal/InternalMscript.g:10186:2: rule__RelationalExpression__RightOperandAssignment_1_0_2\n {\n pushFollow(FOLLOW_rule__RelationalExpression__RightOperandAssignment_1_0_2_in_rule__RelationalExpression__Group_1_0__2__Impl20665);\n rule__RelationalExpression__RightOperandAssignment_1_0_2();\n _fsp--;\n\n\n }\n\n after(grammarAccess.getRelationalExpressionAccess().getRightOperandAssignment_1_0_2()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "8366871a3241fc0aeaf6d09efd33f719", "score": "0.59376305", "text": "public final void rule__Variable_section__TypeAssignment_2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalPascal.g:10362:1: ( ( ruletype ) )\n // InternalPascal.g:10363:2: ( ruletype )\n {\n // InternalPascal.g:10363:2: ( ruletype )\n // InternalPascal.g:10364:3: ruletype\n {\n before(grammarAccess.getVariable_sectionAccess().getTypeTypeParserRuleCall_2_0()); \n pushFollow(FOLLOW_2);\n ruletype();\n\n state._fsp--;\n\n after(grammarAccess.getVariable_sectionAccess().getTypeTypeParserRuleCall_2_0()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "acc9bbfdaaa01330925178f95f91272e", "score": "0.5896489", "text": "public final void rule__Creating_Expression__TypeSpecifierAssignment_1_1_0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // InternalJava.g:13632:1: ( ( ruleType_specifier ) )\n // InternalJava.g:13633:1: ( ruleType_specifier )\n {\n // InternalJava.g:13633:1: ( ruleType_specifier )\n // InternalJava.g:13634:1: ruleType_specifier\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getCreating_ExpressionAccess().getTypeSpecifierType_specifierParserRuleCall_1_1_0_0()); \n }\n pushFollow(FOLLOW_2);\n ruleType_specifier();\n\n state._fsp--;\n if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getCreating_ExpressionAccess().getTypeSpecifierType_specifierParserRuleCall_1_1_0_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "e10461b435814d7af41abf8616b674fd", "score": "0.5848584", "text": "public final void rule__File_type__TypeAssignment_2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalPascal.g:12605:1: ( ( ruletype ) )\n // InternalPascal.g:12606:2: ( ruletype )\n {\n // InternalPascal.g:12606:2: ( ruletype )\n // InternalPascal.g:12607:3: ruletype\n {\n before(grammarAccess.getFile_typeAccess().getTypeTypeParserRuleCall_2_0()); \n pushFollow(FOLLOW_2);\n ruletype();\n\n state._fsp--;\n\n after(grammarAccess.getFile_typeAccess().getTypeTypeParserRuleCall_2_0()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "9f078f04352db5b1a089fa7a76938e10", "score": "0.5833701", "text": "public final void rule__Feature__TypeAssignment_2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.workshop.webgui.ui/src-gen/org/xtext/workshop/ui/contentassist/antlr/internal/InternalWebGui.g:2659:1: ( ( ( RULE_ID ) ) )\n // ../org.xtext.workshop.webgui.ui/src-gen/org/xtext/workshop/ui/contentassist/antlr/internal/InternalWebGui.g:2660:1: ( ( RULE_ID ) )\n {\n // ../org.xtext.workshop.webgui.ui/src-gen/org/xtext/workshop/ui/contentassist/antlr/internal/InternalWebGui.g:2660:1: ( ( RULE_ID ) )\n // ../org.xtext.workshop.webgui.ui/src-gen/org/xtext/workshop/ui/contentassist/antlr/internal/InternalWebGui.g:2661:1: ( RULE_ID )\n {\n before(grammarAccess.getFeatureAccess().getTypeTypeCrossReference_2_0()); \n // ../org.xtext.workshop.webgui.ui/src-gen/org/xtext/workshop/ui/contentassist/antlr/internal/InternalWebGui.g:2662:1: ( RULE_ID )\n // ../org.xtext.workshop.webgui.ui/src-gen/org/xtext/workshop/ui/contentassist/antlr/internal/InternalWebGui.g:2663:1: RULE_ID\n {\n before(grammarAccess.getFeatureAccess().getTypeTypeIDTerminalRuleCall_2_0_1()); \n match(input,RULE_ID,FOLLOW_RULE_ID_in_rule__Feature__TypeAssignment_25303); \n after(grammarAccess.getFeatureAccess().getTypeTypeIDTerminalRuleCall_2_0_1()); \n\n }\n\n after(grammarAccess.getFeatureAccess().getTypeTypeCrossReference_2_0()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "b77578a9f17e432e05539ea2c863ba06", "score": "0.5828418", "text": "public final void rule__Type__NameAssignment_0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // InternalJava.g:13828:1: ( ( ruleType_specifier ) )\n // InternalJava.g:13829:1: ( ruleType_specifier )\n {\n // InternalJava.g:13829:1: ( ruleType_specifier )\n // InternalJava.g:13830:1: ruleType_specifier\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getTypeAccess().getNameType_specifierParserRuleCall_0_0()); \n }\n pushFollow(FOLLOW_2);\n ruleType_specifier();\n\n state._fsp--;\n if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getTypeAccess().getNameType_specifierParserRuleCall_0_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "a86eaaabfa44075ce6bebc4af9a61e1e", "score": "0.58255845", "text": "public final void rule__DmxTestContext__TypeAssignment_2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalPubProto.g:13997:1: ( ( ( RULE_ID ) ) )\n // InternalPubProto.g:13998:2: ( ( RULE_ID ) )\n {\n // InternalPubProto.g:13998:2: ( ( RULE_ID ) )\n // InternalPubProto.g:13999:3: ( RULE_ID )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getDmxTestContextAccess().getTypeDTypeCrossReference_2_0()); \n }\n // InternalPubProto.g:14000:3: ( RULE_ID )\n // InternalPubProto.g:14001:4: RULE_ID\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getDmxTestContextAccess().getTypeDTypeIDTerminalRuleCall_2_0_1()); \n }\n match(input,RULE_ID,FOLLOW_2); if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getDmxTestContextAccess().getTypeDTypeIDTerminalRuleCall_2_0_1()); \n }\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getDmxTestContextAccess().getTypeDTypeCrossReference_2_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "34c61359dac295fceaa4aab875af379b", "score": "0.58050865", "text": "public final void rule__XVariableDeclaration__Group_2_0_0__0__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:11582:1: ( ( ( rule__XVariableDeclaration__TypeAssignment_2_0_0_0 ) ) )\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:11583:1: ( ( rule__XVariableDeclaration__TypeAssignment_2_0_0_0 ) )\n {\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:11583:1: ( ( rule__XVariableDeclaration__TypeAssignment_2_0_0_0 ) )\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:11584:1: ( rule__XVariableDeclaration__TypeAssignment_2_0_0_0 )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXVariableDeclarationAccess().getTypeAssignment_2_0_0_0()); \n }\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:11585:1: ( rule__XVariableDeclaration__TypeAssignment_2_0_0_0 )\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:11585:2: rule__XVariableDeclaration__TypeAssignment_2_0_0_0\n {\n pushFollow(FOLLOW_rule__XVariableDeclaration__TypeAssignment_2_0_0_0_in_rule__XVariableDeclaration__Group_2_0_0__0__Impl23500);\n rule__XVariableDeclaration__TypeAssignment_2_0_0_0();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXVariableDeclarationAccess().getTypeAssignment_2_0_0_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "95840f847aa270c258ecb6c1182cbb34", "score": "0.5797711", "text": "public final void rule__XVariableDeclaration__Group_2_0_0__0__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalAle.g:12029:1: ( ( ( rule__XVariableDeclaration__TypeAssignment_2_0_0_0 ) ) )\n // InternalAle.g:12030:1: ( ( rule__XVariableDeclaration__TypeAssignment_2_0_0_0 ) )\n {\n // InternalAle.g:12030:1: ( ( rule__XVariableDeclaration__TypeAssignment_2_0_0_0 ) )\n // InternalAle.g:12031:2: ( rule__XVariableDeclaration__TypeAssignment_2_0_0_0 )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXVariableDeclarationAccess().getTypeAssignment_2_0_0_0()); \n }\n // InternalAle.g:12032:2: ( rule__XVariableDeclaration__TypeAssignment_2_0_0_0 )\n // InternalAle.g:12032:3: rule__XVariableDeclaration__TypeAssignment_2_0_0_0\n {\n pushFollow(FOLLOW_2);\n rule__XVariableDeclaration__TypeAssignment_2_0_0_0();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXVariableDeclarationAccess().getTypeAssignment_2_0_0_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "ad9a6a147cbc949da561107dacd44a68", "score": "0.57634383", "text": "public final void rule__TypeAliasDefinition__TypeAssignment_3() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.eclipselabs.mscript.language.ui/src-gen/org/eclipselabs/mscript/language/ui/contentassist/antlr/internal/InternalMscript.g:14934:1: ( ( rulePrimitiveTypeSpecifier ) )\n // ../org.eclipselabs.mscript.language.ui/src-gen/org/eclipselabs/mscript/language/ui/contentassist/antlr/internal/InternalMscript.g:14935:1: ( rulePrimitiveTypeSpecifier )\n {\n // ../org.eclipselabs.mscript.language.ui/src-gen/org/eclipselabs/mscript/language/ui/contentassist/antlr/internal/InternalMscript.g:14935:1: ( rulePrimitiveTypeSpecifier )\n // ../org.eclipselabs.mscript.language.ui/src-gen/org/eclipselabs/mscript/language/ui/contentassist/antlr/internal/InternalMscript.g:14936:1: rulePrimitiveTypeSpecifier\n {\n before(grammarAccess.getTypeAliasDefinitionAccess().getTypePrimitiveTypeSpecifierParserRuleCall_3_0()); \n pushFollow(FOLLOW_rulePrimitiveTypeSpecifier_in_rule__TypeAliasDefinition__TypeAssignment_330011);\n rulePrimitiveTypeSpecifier();\n _fsp--;\n\n after(grammarAccess.getTypeAliasDefinitionAccess().getTypePrimitiveTypeSpecifierParserRuleCall_3_0()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "8897d90ddb768772716df60b6a86aefe", "score": "0.572002", "text": "private void assignmentCastAndVisit(ClassNode type, Expression rightExpression) {\n if (ClassHelper.isPrimitiveType(type)) {\n visitAndAutoboxBoolean(rightExpression);\n } else if (!rightExpression.getType().isDerivedFrom(type)) {\n visitCastExpression(new CastExpression(type, rightExpression));\n } else {\n visitAndAutoboxBoolean(rightExpression);\n } \n }", "title": "" }, { "docid": "b3f9989a25e26dcd2abb3630659c8fe5", "score": "0.57134056", "text": "public final void rule__TypeAliasDefinition__Group__3__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.eclipselabs.mscript.language.ui/src-gen/org/eclipselabs/mscript/language/ui/contentassist/antlr/internal/InternalMscript.g:3518:1: ( ( ( rule__TypeAliasDefinition__TypeAssignment_3 ) ) )\n // ../org.eclipselabs.mscript.language.ui/src-gen/org/eclipselabs/mscript/language/ui/contentassist/antlr/internal/InternalMscript.g:3519:1: ( ( rule__TypeAliasDefinition__TypeAssignment_3 ) )\n {\n // ../org.eclipselabs.mscript.language.ui/src-gen/org/eclipselabs/mscript/language/ui/contentassist/antlr/internal/InternalMscript.g:3519:1: ( ( rule__TypeAliasDefinition__TypeAssignment_3 ) )\n // ../org.eclipselabs.mscript.language.ui/src-gen/org/eclipselabs/mscript/language/ui/contentassist/antlr/internal/InternalMscript.g:3520:1: ( rule__TypeAliasDefinition__TypeAssignment_3 )\n {\n before(grammarAccess.getTypeAliasDefinitionAccess().getTypeAssignment_3()); \n // ../org.eclipselabs.mscript.language.ui/src-gen/org/eclipselabs/mscript/language/ui/contentassist/antlr/internal/InternalMscript.g:3521:1: ( rule__TypeAliasDefinition__TypeAssignment_3 )\n // ../org.eclipselabs.mscript.language.ui/src-gen/org/eclipselabs/mscript/language/ui/contentassist/antlr/internal/InternalMscript.g:3521:2: rule__TypeAliasDefinition__TypeAssignment_3\n {\n pushFollow(FOLLOW_rule__TypeAliasDefinition__TypeAssignment_3_in_rule__TypeAliasDefinition__Group__3__Impl7566);\n rule__TypeAliasDefinition__TypeAssignment_3();\n _fsp--;\n\n\n }\n\n after(grammarAccess.getTypeAliasDefinitionAccess().getTypeAssignment_3()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "068ffb66095986b4b2e655b04c2f04e5", "score": "0.570397", "text": "public final void rule__Type_definition__Group__2__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalPascal.g:3752:1: ( ( ( rule__Type_definition__TypeAssignment_2 ) ) )\n // InternalPascal.g:3753:1: ( ( rule__Type_definition__TypeAssignment_2 ) )\n {\n // InternalPascal.g:3753:1: ( ( rule__Type_definition__TypeAssignment_2 ) )\n // InternalPascal.g:3754:2: ( rule__Type_definition__TypeAssignment_2 )\n {\n before(grammarAccess.getType_definitionAccess().getTypeAssignment_2()); \n // InternalPascal.g:3755:2: ( rule__Type_definition__TypeAssignment_2 )\n // InternalPascal.g:3755:3: rule__Type_definition__TypeAssignment_2\n {\n pushFollow(FOLLOW_2);\n rule__Type_definition__TypeAssignment_2();\n\n state._fsp--;\n\n\n }\n\n after(grammarAccess.getType_definitionAccess().getTypeAssignment_2()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "787d0b603c280163e866d5c55defd6cb", "score": "0.56736666", "text": "public final void rule__Record_section__TypeAssignment_2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalPascal.g:12725:1: ( ( ruletype ) )\n // InternalPascal.g:12726:2: ( ruletype )\n {\n // InternalPascal.g:12726:2: ( ruletype )\n // InternalPascal.g:12727:3: ruletype\n {\n before(grammarAccess.getRecord_sectionAccess().getTypeTypeParserRuleCall_2_0()); \n pushFollow(FOLLOW_2);\n ruletype();\n\n state._fsp--;\n\n after(grammarAccess.getRecord_sectionAccess().getTypeTypeParserRuleCall_2_0()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "42804ea75c5e919fdd0a6a060b420919", "score": "0.56284577", "text": "public final void rule__Variable_declaration__TypeAssignment_1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // InternalJava.g:12561:1: ( ( ruleType ) )\n // InternalJava.g:12562:1: ( ruleType )\n {\n // InternalJava.g:12562:1: ( ruleType )\n // InternalJava.g:12563:1: ruleType\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getVariable_declarationAccess().getTypeTypeParserRuleCall_1_0()); \n }\n pushFollow(FOLLOW_2);\n ruleType();\n\n state._fsp--;\n if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getVariable_declarationAccess().getTypeTypeParserRuleCall_1_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "9440e6a3db63d26a2d3386ea117090d4", "score": "0.5609862", "text": "public final void rule__DmxRelationalExpression__TypeAssignment_1_0_1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalPubProto.g:14730:1: ( ( ( RULE_ID ) ) )\n // InternalPubProto.g:14731:2: ( ( RULE_ID ) )\n {\n // InternalPubProto.g:14731:2: ( ( RULE_ID ) )\n // InternalPubProto.g:14732:3: ( RULE_ID )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getDmxRelationalExpressionAccess().getTypeDTypeCrossReference_1_0_1_0()); \n }\n // InternalPubProto.g:14733:3: ( RULE_ID )\n // InternalPubProto.g:14734:4: RULE_ID\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getDmxRelationalExpressionAccess().getTypeDTypeIDTerminalRuleCall_1_0_1_0_1()); \n }\n match(input,RULE_ID,FOLLOW_2); if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getDmxRelationalExpressionAccess().getTypeDTypeIDTerminalRuleCall_1_0_1_0_1()); \n }\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getDmxRelationalExpressionAccess().getTypeDTypeCrossReference_1_0_1_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "b870a191aa117c993f453097e02a4335", "score": "0.5607089", "text": "public final void rule__VAR_DECL__TypeAssignment_4() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.xtext.module.dsl.ui/src-gen/org/xtext/ui/contentassist/antlr/internal/InternalModuleDsl.g:7489:1: ( ( ruleTYPE ) )\r\n // ../org.xtext.module.dsl.ui/src-gen/org/xtext/ui/contentassist/antlr/internal/InternalModuleDsl.g:7490:1: ( ruleTYPE )\r\n {\r\n // ../org.xtext.module.dsl.ui/src-gen/org/xtext/ui/contentassist/antlr/internal/InternalModuleDsl.g:7490:1: ( ruleTYPE )\r\n // ../org.xtext.module.dsl.ui/src-gen/org/xtext/ui/contentassist/antlr/internal/InternalModuleDsl.g:7491:1: ruleTYPE\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getVAR_DECLAccess().getTypeTYPEParserRuleCall_4_0()); \r\n }\r\n pushFollow(FOLLOW_ruleTYPE_in_rule__VAR_DECL__TypeAssignment_415047);\r\n ruleTYPE();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getVAR_DECLAccess().getTypeTYPEParserRuleCall_4_0()); \r\n }\r\n\r\n }\r\n\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 finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "0723e50813ae5a51ae61dc26249eac71", "score": "0.5606505", "text": "public final void rule__RecordFieldDeclaration__Group__2__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.eclipselabs.mscript.language.ui/src-gen/org/eclipselabs/mscript/language/ui/contentassist/antlr/internal/InternalMscript.g:3807:1: ( ( ( rule__RecordFieldDeclaration__TypeAssignment_2 ) ) )\n // ../org.eclipselabs.mscript.language.ui/src-gen/org/eclipselabs/mscript/language/ui/contentassist/antlr/internal/InternalMscript.g:3808:1: ( ( rule__RecordFieldDeclaration__TypeAssignment_2 ) )\n {\n // ../org.eclipselabs.mscript.language.ui/src-gen/org/eclipselabs/mscript/language/ui/contentassist/antlr/internal/InternalMscript.g:3808:1: ( ( rule__RecordFieldDeclaration__TypeAssignment_2 ) )\n // ../org.eclipselabs.mscript.language.ui/src-gen/org/eclipselabs/mscript/language/ui/contentassist/antlr/internal/InternalMscript.g:3809:1: ( rule__RecordFieldDeclaration__TypeAssignment_2 )\n {\n before(grammarAccess.getRecordFieldDeclarationAccess().getTypeAssignment_2()); \n // ../org.eclipselabs.mscript.language.ui/src-gen/org/eclipselabs/mscript/language/ui/contentassist/antlr/internal/InternalMscript.g:3810:1: ( rule__RecordFieldDeclaration__TypeAssignment_2 )\n // ../org.eclipselabs.mscript.language.ui/src-gen/org/eclipselabs/mscript/language/ui/contentassist/antlr/internal/InternalMscript.g:3810:2: rule__RecordFieldDeclaration__TypeAssignment_2\n {\n pushFollow(FOLLOW_rule__RecordFieldDeclaration__TypeAssignment_2_in_rule__RecordFieldDeclaration__Group__2__Impl8131);\n rule__RecordFieldDeclaration__TypeAssignment_2();\n _fsp--;\n\n\n }\n\n after(grammarAccess.getRecordFieldDeclarationAccess().getTypeAssignment_2()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "3c8b28c007a2efdec3d8d01f4ad115ae", "score": "0.5600748", "text": "public final void rule__Set_type__Group__2__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalPascal.g:8855:1: ( ( ( rule__Set_type__TypeAssignment_2 ) ) )\n // InternalPascal.g:8856:1: ( ( rule__Set_type__TypeAssignment_2 ) )\n {\n // InternalPascal.g:8856:1: ( ( rule__Set_type__TypeAssignment_2 ) )\n // InternalPascal.g:8857:2: ( rule__Set_type__TypeAssignment_2 )\n {\n before(grammarAccess.getSet_typeAccess().getTypeAssignment_2()); \n // InternalPascal.g:8858:2: ( rule__Set_type__TypeAssignment_2 )\n // InternalPascal.g:8858:3: rule__Set_type__TypeAssignment_2\n {\n pushFollow(FOLLOW_2);\n rule__Set_type__TypeAssignment_2();\n\n state._fsp--;\n\n\n }\n\n after(grammarAccess.getSet_typeAccess().getTypeAssignment_2()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "a05e94136db6c200e7ec1ecee775e8d7", "score": "0.55866987", "text": "public final void rule__Floating_pt_type__KindAssignment_2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalIoT.g:11230:1: ( ( rulelongdouble_type ) )\n // InternalIoT.g:11231:2: ( rulelongdouble_type )\n {\n // InternalIoT.g:11231:2: ( rulelongdouble_type )\n // InternalIoT.g:11232:3: rulelongdouble_type\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getFloating_pt_typeAccess().getKindLongdouble_typeParserRuleCall_2_0()); \n }\n pushFollow(FOLLOW_2);\n rulelongdouble_type();\n\n state._fsp--;\n if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getFloating_pt_typeAccess().getKindLongdouble_typeParserRuleCall_2_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "87b9bbf3ad241eb5451cf74c84ff56c2", "score": "0.55803955", "text": "public final void rule__TypeStatement__Alternatives_1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.eclipse.yang.ui/src-gen/org/xtext/editor/yang/ui/contentassist/antlr/internal/InternalYang.g:6062:1: ( ( ( rule__TypeStatement__TypeAssignment_1_0 ) ) | ( ( rule__TypeStatement__Group_1_1__0 ) ) )\n int alt84=2;\n int LA84_0 = input.LA(1);\n\n if ( ((LA84_0>=10 && LA84_0<=28)) ) {\n alt84=1;\n }\n else if ( ((LA84_0>=RULE_ID && LA84_0<=RULE_STRING)||LA84_0==29) ) {\n alt84=2;\n }\n else {\n NoViableAltException nvae =\n new NoViableAltException(\"\", 84, 0, input);\n\n throw nvae;\n }\n switch (alt84) {\n case 1 :\n // ../org.eclipse.yang.ui/src-gen/org/xtext/editor/yang/ui/contentassist/antlr/internal/InternalYang.g:6063:1: ( ( rule__TypeStatement__TypeAssignment_1_0 ) )\n {\n // ../org.eclipse.yang.ui/src-gen/org/xtext/editor/yang/ui/contentassist/antlr/internal/InternalYang.g:6063:1: ( ( rule__TypeStatement__TypeAssignment_1_0 ) )\n // ../org.eclipse.yang.ui/src-gen/org/xtext/editor/yang/ui/contentassist/antlr/internal/InternalYang.g:6064:1: ( rule__TypeStatement__TypeAssignment_1_0 )\n {\n before(grammarAccess.getTypeStatementAccess().getTypeAssignment_1_0()); \n // ../org.eclipse.yang.ui/src-gen/org/xtext/editor/yang/ui/contentassist/antlr/internal/InternalYang.g:6065:1: ( rule__TypeStatement__TypeAssignment_1_0 )\n // ../org.eclipse.yang.ui/src-gen/org/xtext/editor/yang/ui/contentassist/antlr/internal/InternalYang.g:6065:2: rule__TypeStatement__TypeAssignment_1_0\n {\n pushFollow(FOLLOW_rule__TypeStatement__TypeAssignment_1_0_in_rule__TypeStatement__Alternatives_113799);\n rule__TypeStatement__TypeAssignment_1_0();\n\n state._fsp--;\n\n\n }\n\n after(grammarAccess.getTypeStatementAccess().getTypeAssignment_1_0()); \n\n }\n\n\n }\n break;\n case 2 :\n // ../org.eclipse.yang.ui/src-gen/org/xtext/editor/yang/ui/contentassist/antlr/internal/InternalYang.g:6069:6: ( ( rule__TypeStatement__Group_1_1__0 ) )\n {\n // ../org.eclipse.yang.ui/src-gen/org/xtext/editor/yang/ui/contentassist/antlr/internal/InternalYang.g:6069:6: ( ( rule__TypeStatement__Group_1_1__0 ) )\n // ../org.eclipse.yang.ui/src-gen/org/xtext/editor/yang/ui/contentassist/antlr/internal/InternalYang.g:6070:1: ( rule__TypeStatement__Group_1_1__0 )\n {\n before(grammarAccess.getTypeStatementAccess().getGroup_1_1()); \n // ../org.eclipse.yang.ui/src-gen/org/xtext/editor/yang/ui/contentassist/antlr/internal/InternalYang.g:6071:1: ( rule__TypeStatement__Group_1_1__0 )\n // ../org.eclipse.yang.ui/src-gen/org/xtext/editor/yang/ui/contentassist/antlr/internal/InternalYang.g:6071:2: rule__TypeStatement__Group_1_1__0\n {\n pushFollow(FOLLOW_rule__TypeStatement__Group_1_1__0_in_rule__TypeStatement__Alternatives_113817);\n rule__TypeStatement__Group_1_1__0();\n\n state._fsp--;\n\n\n }\n\n after(grammarAccess.getTypeStatementAccess().getGroup_1_1()); \n\n }\n\n\n }\n break;\n\n }\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "55a237284600a1837d9cdf34380c12aa", "score": "0.5573301", "text": "public final void rule__XTypeLiteral__Group__3__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalAle.g:13541:1: ( ( ( rule__XTypeLiteral__TypeAssignment_3 ) ) )\n // InternalAle.g:13542:1: ( ( rule__XTypeLiteral__TypeAssignment_3 ) )\n {\n // InternalAle.g:13542:1: ( ( rule__XTypeLiteral__TypeAssignment_3 ) )\n // InternalAle.g:13543:2: ( rule__XTypeLiteral__TypeAssignment_3 )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXTypeLiteralAccess().getTypeAssignment_3()); \n }\n // InternalAle.g:13544:2: ( rule__XTypeLiteral__TypeAssignment_3 )\n // InternalAle.g:13544:3: rule__XTypeLiteral__TypeAssignment_3\n {\n pushFollow(FOLLOW_2);\n rule__XTypeLiteral__TypeAssignment_3();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXTypeLiteralAccess().getTypeAssignment_3()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "312957c50e6830b44f2b4289d5191015", "score": "0.5561612", "text": "public final void rule__CST_DECL__TypeAssignment_2() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.xtext.module.dsl.ui/src-gen/org/xtext/ui/contentassist/antlr/internal/InternalModuleDsl.g:7558:1: ( ( ruleTYPE ) )\r\n // ../org.xtext.module.dsl.ui/src-gen/org/xtext/ui/contentassist/antlr/internal/InternalModuleDsl.g:7559:1: ( ruleTYPE )\r\n {\r\n // ../org.xtext.module.dsl.ui/src-gen/org/xtext/ui/contentassist/antlr/internal/InternalModuleDsl.g:7559:1: ( ruleTYPE )\r\n // ../org.xtext.module.dsl.ui/src-gen/org/xtext/ui/contentassist/antlr/internal/InternalModuleDsl.g:7560:1: ruleTYPE\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getCST_DECLAccess().getTypeTYPEParserRuleCall_2_0()); \r\n }\r\n pushFollow(FOLLOW_ruleTYPE_in_rule__CST_DECL__TypeAssignment_215186);\r\n ruleTYPE();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getCST_DECLAccess().getTypeTYPEParserRuleCall_2_0()); \r\n }\r\n\r\n }\r\n\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 finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "dc0c1bfe2bf27cec251c9d3aa9c017c4", "score": "0.55561054", "text": "public final void rule__Parameter__TypeAssignment_0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // InternalJava.g:12516:1: ( ( ruleType ) )\n // InternalJava.g:12517:1: ( ruleType )\n {\n // InternalJava.g:12517:1: ( ruleType )\n // InternalJava.g:12518:1: ruleType\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getParameterAccess().getTypeTypeParserRuleCall_0_0()); \n }\n pushFollow(FOLLOW_2);\n ruleType();\n\n state._fsp--;\n if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getParameterAccess().getTypeTypeParserRuleCall_0_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "1548860df19387959fd8555b10d1d7a6", "score": "0.5555975", "text": "public final void rule__DmxCastExpression__Group_1__1__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalPubProto.g:10937:1: ( ( ( rule__DmxCastExpression__TypeAssignment_1_1 ) ) )\n // InternalPubProto.g:10938:1: ( ( rule__DmxCastExpression__TypeAssignment_1_1 ) )\n {\n // InternalPubProto.g:10938:1: ( ( rule__DmxCastExpression__TypeAssignment_1_1 ) )\n // InternalPubProto.g:10939:2: ( rule__DmxCastExpression__TypeAssignment_1_1 )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getDmxCastExpressionAccess().getTypeAssignment_1_1()); \n }\n // InternalPubProto.g:10940:2: ( rule__DmxCastExpression__TypeAssignment_1_1 )\n // InternalPubProto.g:10940:3: rule__DmxCastExpression__TypeAssignment_1_1\n {\n pushFollow(FOLLOW_2);\n rule__DmxCastExpression__TypeAssignment_1_1();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getDmxCastExpressionAccess().getTypeAssignment_1_1()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "6cd7a25f21ba3129d57c9125f865f4ae", "score": "0.55519617", "text": "public final void rule__ASSIGN_STATEMENT__RightAssignment_2() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.xtext.module.dsl.ui/src-gen/org/xtext/ui/contentassist/antlr/internal/InternalModuleDsl.g:7959:1: ( ( ruleEXPRESSION ) )\r\n // ../org.xtext.module.dsl.ui/src-gen/org/xtext/ui/contentassist/antlr/internal/InternalModuleDsl.g:7960:1: ( ruleEXPRESSION )\r\n {\r\n // ../org.xtext.module.dsl.ui/src-gen/org/xtext/ui/contentassist/antlr/internal/InternalModuleDsl.g:7960:1: ( ruleEXPRESSION )\r\n // ../org.xtext.module.dsl.ui/src-gen/org/xtext/ui/contentassist/antlr/internal/InternalModuleDsl.g:7961:1: ruleEXPRESSION\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getASSIGN_STATEMENTAccess().getRightEXPRESSIONParserRuleCall_2_0()); \r\n }\r\n pushFollow(FOLLOW_ruleEXPRESSION_in_rule__ASSIGN_STATEMENT__RightAssignment_216011);\r\n ruleEXPRESSION();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getASSIGN_STATEMENTAccess().getRightEXPRESSIONParserRuleCall_2_0()); \r\n }\r\n\r\n }\r\n\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 finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "6759e3ba02561dd1920c937c495cd0c8", "score": "0.55263805", "text": "public final void rule__ImportedType__TypeAssignment_2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalOperationDsl.g:24790:1: ( ( ( ruleQualifiedName ) ) )\n // InternalOperationDsl.g:24791:2: ( ( ruleQualifiedName ) )\n {\n // InternalOperationDsl.g:24791:2: ( ( ruleQualifiedName ) )\n // InternalOperationDsl.g:24792:3: ( ruleQualifiedName )\n {\n before(grammarAccess.getImportedTypeAccess().getTypeTypeCrossReference_2_0()); \n // InternalOperationDsl.g:24793:3: ( ruleQualifiedName )\n // InternalOperationDsl.g:24794:4: ruleQualifiedName\n {\n before(grammarAccess.getImportedTypeAccess().getTypeTypeQualifiedNameParserRuleCall_2_0_1()); \n pushFollow(FOLLOW_2);\n ruleQualifiedName();\n\n state._fsp--;\n\n after(grammarAccess.getImportedTypeAccess().getTypeTypeQualifiedNameParserRuleCall_2_0_1()); \n\n }\n\n after(grammarAccess.getImportedTypeAccess().getTypeTypeCrossReference_2_0()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "879cf766abfcd9051d809cf304fd2107", "score": "0.55239516", "text": "public final void rule__Record_type__EndAssignment_2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalPascal.g:12571:1: ( ( ( 'end' ) ) )\n // InternalPascal.g:12572:2: ( ( 'end' ) )\n {\n // InternalPascal.g:12572:2: ( ( 'end' ) )\n // InternalPascal.g:12573:3: ( 'end' )\n {\n before(grammarAccess.getRecord_typeAccess().getEndEndKeyword_2_0()); \n // InternalPascal.g:12574:3: ( 'end' )\n // InternalPascal.g:12575:4: 'end'\n {\n before(grammarAccess.getRecord_typeAccess().getEndEndKeyword_2_0()); \n match(input,37,FOLLOW_2); \n after(grammarAccess.getRecord_typeAccess().getEndEndKeyword_2_0()); \n\n }\n\n after(grammarAccess.getRecord_typeAccess().getEndEndKeyword_2_0()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "08b88ea16ede09d33dee5e2a7668d7b2", "score": "0.55064356", "text": "public final void rule__DmxTestContext__Group__2__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalPubProto.g:7394:1: ( ( ( rule__DmxTestContext__TypeAssignment_2 ) ) )\n // InternalPubProto.g:7395:1: ( ( rule__DmxTestContext__TypeAssignment_2 ) )\n {\n // InternalPubProto.g:7395:1: ( ( rule__DmxTestContext__TypeAssignment_2 ) )\n // InternalPubProto.g:7396:2: ( rule__DmxTestContext__TypeAssignment_2 )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getDmxTestContextAccess().getTypeAssignment_2()); \n }\n // InternalPubProto.g:7397:2: ( rule__DmxTestContext__TypeAssignment_2 )\n // InternalPubProto.g:7397:3: rule__DmxTestContext__TypeAssignment_2\n {\n pushFollow(FOLLOW_2);\n rule__DmxTestContext__TypeAssignment_2();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getDmxTestContextAccess().getTypeAssignment_2()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "30908fb96b1decfb47f4580ea2cb7c12", "score": "0.5502159", "text": "public final void rule__EqualityExpression__RightOperandAssignment_1_2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.eclipselabs.mscript.language.ui/src-gen/org/eclipselabs/mscript/language/ui/contentassist/antlr/internal/InternalMscript.g:16046:1: ( ( ruleRelationalExpression ) )\n // ../org.eclipselabs.mscript.language.ui/src-gen/org/eclipselabs/mscript/language/ui/contentassist/antlr/internal/InternalMscript.g:16047:1: ( ruleRelationalExpression )\n {\n // ../org.eclipselabs.mscript.language.ui/src-gen/org/eclipselabs/mscript/language/ui/contentassist/antlr/internal/InternalMscript.g:16047:1: ( ruleRelationalExpression )\n // ../org.eclipselabs.mscript.language.ui/src-gen/org/eclipselabs/mscript/language/ui/contentassist/antlr/internal/InternalMscript.g:16048:1: ruleRelationalExpression\n {\n before(grammarAccess.getEqualityExpressionAccess().getRightOperandRelationalExpressionParserRuleCall_1_2_0()); \n pushFollow(FOLLOW_ruleRelationalExpression_in_rule__EqualityExpression__RightOperandAssignment_1_232295);\n ruleRelationalExpression();\n _fsp--;\n\n after(grammarAccess.getEqualityExpressionAccess().getRightOperandRelationalExpressionParserRuleCall_1_2_0()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "74cbf1646e4b3ca556800d6074f39471", "score": "0.5491585", "text": "public final void rule__DataField__Alternatives_2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalOperationDsl.g:2981:1: ( ( ( rule__DataField__PrimitiveTypeAssignment_2_0 ) ) | ( ( rule__DataField__ComplexTypeAssignment_2_1 ) ) | ( ( rule__DataField__ImportedComplexTypeAssignment_2_2 ) ) )\n int alt20=3;\n int LA20_0 = input.LA(1);\n\n if ( ((LA20_0>=105 && LA20_0<=114)||LA20_0==150) ) {\n alt20=1;\n }\n else if ( (LA20_0==RULE_ID) ) {\n int LA20_2 = input.LA(2);\n\n if ( (LA20_2==23) ) {\n alt20=3;\n }\n else if ( (LA20_2==RULE_ID||LA20_2==24) ) {\n alt20=2;\n }\n else {\n NoViableAltException nvae =\n new NoViableAltException(\"\", 20, 2, input);\n\n throw nvae;\n }\n }\n else {\n NoViableAltException nvae =\n new NoViableAltException(\"\", 20, 0, input);\n\n throw nvae;\n }\n switch (alt20) {\n case 1 :\n // InternalOperationDsl.g:2982:2: ( ( rule__DataField__PrimitiveTypeAssignment_2_0 ) )\n {\n // InternalOperationDsl.g:2982:2: ( ( rule__DataField__PrimitiveTypeAssignment_2_0 ) )\n // InternalOperationDsl.g:2983:3: ( rule__DataField__PrimitiveTypeAssignment_2_0 )\n {\n before(grammarAccess.getDataFieldAccess().getPrimitiveTypeAssignment_2_0()); \n // InternalOperationDsl.g:2984:3: ( rule__DataField__PrimitiveTypeAssignment_2_0 )\n // InternalOperationDsl.g:2984:4: rule__DataField__PrimitiveTypeAssignment_2_0\n {\n pushFollow(FOLLOW_2);\n rule__DataField__PrimitiveTypeAssignment_2_0();\n\n state._fsp--;\n\n\n }\n\n after(grammarAccess.getDataFieldAccess().getPrimitiveTypeAssignment_2_0()); \n\n }\n\n\n }\n break;\n case 2 :\n // InternalOperationDsl.g:2988:2: ( ( rule__DataField__ComplexTypeAssignment_2_1 ) )\n {\n // InternalOperationDsl.g:2988:2: ( ( rule__DataField__ComplexTypeAssignment_2_1 ) )\n // InternalOperationDsl.g:2989:3: ( rule__DataField__ComplexTypeAssignment_2_1 )\n {\n before(grammarAccess.getDataFieldAccess().getComplexTypeAssignment_2_1()); \n // InternalOperationDsl.g:2990:3: ( rule__DataField__ComplexTypeAssignment_2_1 )\n // InternalOperationDsl.g:2990:4: rule__DataField__ComplexTypeAssignment_2_1\n {\n pushFollow(FOLLOW_2);\n rule__DataField__ComplexTypeAssignment_2_1();\n\n state._fsp--;\n\n\n }\n\n after(grammarAccess.getDataFieldAccess().getComplexTypeAssignment_2_1()); \n\n }\n\n\n }\n break;\n case 3 :\n // InternalOperationDsl.g:2994:2: ( ( rule__DataField__ImportedComplexTypeAssignment_2_2 ) )\n {\n // InternalOperationDsl.g:2994:2: ( ( rule__DataField__ImportedComplexTypeAssignment_2_2 ) )\n // InternalOperationDsl.g:2995:3: ( rule__DataField__ImportedComplexTypeAssignment_2_2 )\n {\n before(grammarAccess.getDataFieldAccess().getImportedComplexTypeAssignment_2_2()); \n // InternalOperationDsl.g:2996:3: ( rule__DataField__ImportedComplexTypeAssignment_2_2 )\n // InternalOperationDsl.g:2996:4: rule__DataField__ImportedComplexTypeAssignment_2_2\n {\n pushFollow(FOLLOW_2);\n rule__DataField__ImportedComplexTypeAssignment_2_2();\n\n state._fsp--;\n\n\n }\n\n after(grammarAccess.getDataFieldAccess().getImportedComplexTypeAssignment_2_2()); \n\n }\n\n\n }\n break;\n\n }\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "9f83d7c57238e68a10d0923369f12be3", "score": "0.5468923", "text": "public final void rule__ExtraData__Group_4__2__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.example.mydsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalMyDsl.g:2883:1: ( ( ( rule__ExtraData__TypeAssignment_4_2 ) ) )\n // ../org.xtext.example.mydsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalMyDsl.g:2884:1: ( ( rule__ExtraData__TypeAssignment_4_2 ) )\n {\n // ../org.xtext.example.mydsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalMyDsl.g:2884:1: ( ( rule__ExtraData__TypeAssignment_4_2 ) )\n // ../org.xtext.example.mydsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalMyDsl.g:2885:1: ( rule__ExtraData__TypeAssignment_4_2 )\n {\n before(grammarAccess.getExtraDataAccess().getTypeAssignment_4_2()); \n // ../org.xtext.example.mydsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalMyDsl.g:2886:1: ( rule__ExtraData__TypeAssignment_4_2 )\n // ../org.xtext.example.mydsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalMyDsl.g:2886:2: rule__ExtraData__TypeAssignment_4_2\n {\n pushFollow(FollowSets000.FOLLOW_rule__ExtraData__TypeAssignment_4_2_in_rule__ExtraData__Group_4__2__Impl5717);\n rule__ExtraData__TypeAssignment_4_2();\n\n state._fsp--;\n\n\n }\n\n after(grammarAccess.getExtraDataAccess().getTypeAssignment_4_2()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "fa244f28d6cf3e843f94cb42bf8ce9da", "score": "0.54611886", "text": "public final void rule__XRelationalExpression__TypeAssignment_1_0_1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalAle.g:16909:1: ( ( ruleJvmTypeReference ) )\n // InternalAle.g:16910:2: ( ruleJvmTypeReference )\n {\n // InternalAle.g:16910:2: ( ruleJvmTypeReference )\n // InternalAle.g:16911:3: ruleJvmTypeReference\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXRelationalExpressionAccess().getTypeJvmTypeReferenceParserRuleCall_1_0_1_0()); \n }\n pushFollow(FOLLOW_2);\n ruleJvmTypeReference();\n\n state._fsp--;\n if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXRelationalExpressionAccess().getTypeJvmTypeReferenceParserRuleCall_1_0_1_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "e1659e98bddd237021f25ecea4097b7b", "score": "0.5450395", "text": "public final void rule__Match__TypeAssignment_3() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalEsportDsl.g:6874:1: ( ( ruleMatchType ) )\r\n // InternalEsportDsl.g:6875:2: ( ruleMatchType )\r\n {\r\n // InternalEsportDsl.g:6875:2: ( ruleMatchType )\r\n // InternalEsportDsl.g:6876:3: ruleMatchType\r\n {\r\n before(grammarAccess.getMatchAccess().getTypeMatchTypeEnumRuleCall_3_0()); \r\n pushFollow(FOLLOW_2);\r\n ruleMatchType();\r\n\r\n state._fsp--;\r\n\r\n after(grammarAccess.getMatchAccess().getTypeMatchTypeEnumRuleCall_3_0()); \r\n\r\n }\r\n\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 finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "7c41cf9a7827401f80cf41858dcd1532", "score": "0.5438343", "text": "public final void rule__Value_parameter_section__TypeAssignment_2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalPascal.g:10700:1: ( ( ruleparameter_type ) )\n // InternalPascal.g:10701:2: ( ruleparameter_type )\n {\n // InternalPascal.g:10701:2: ( ruleparameter_type )\n // InternalPascal.g:10702:3: ruleparameter_type\n {\n before(grammarAccess.getValue_parameter_sectionAccess().getTypeParameter_typeParserRuleCall_2_0()); \n pushFollow(FOLLOW_2);\n ruleparameter_type();\n\n state._fsp--;\n\n after(grammarAccess.getValue_parameter_sectionAccess().getTypeParameter_typeParserRuleCall_2_0()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "9044bada5259762d514f1302d015ae16", "score": "0.5418296", "text": "public final void rule__Declaration_part__Type_defAssignment_2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalPascal.g:10152:1: ( ( ruletype_definition_part ) )\n // InternalPascal.g:10153:2: ( ruletype_definition_part )\n {\n // InternalPascal.g:10153:2: ( ruletype_definition_part )\n // InternalPascal.g:10154:3: ruletype_definition_part\n {\n before(grammarAccess.getDeclaration_partAccess().getType_defType_definition_partParserRuleCall_2_0()); \n pushFollow(FOLLOW_2);\n ruletype_definition_part();\n\n state._fsp--;\n\n after(grammarAccess.getDeclaration_partAccess().getType_defType_definition_partParserRuleCall_2_0()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "fd4da3ffc0fd9866188c199134f4cc0a", "score": "0.5401937", "text": "public final void rule__XTypeLiteral__Group__3__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:13338:1: ( ( ( rule__XTypeLiteral__TypeAssignment_3 ) ) )\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:13339:1: ( ( rule__XTypeLiteral__TypeAssignment_3 ) )\n {\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:13339:1: ( ( rule__XTypeLiteral__TypeAssignment_3 ) )\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:13340:1: ( rule__XTypeLiteral__TypeAssignment_3 )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXTypeLiteralAccess().getTypeAssignment_3()); \n }\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:13341:1: ( rule__XTypeLiteral__TypeAssignment_3 )\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:13341:2: rule__XTypeLiteral__TypeAssignment_3\n {\n pushFollow(FOLLOW_rule__XTypeLiteral__TypeAssignment_3_in_rule__XTypeLiteral__Group__3__Impl26962);\n rule__XTypeLiteral__TypeAssignment_3();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXTypeLiteralAccess().getTypeAssignment_3()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "0855def1fd60911d4becca9da0b0fe5f", "score": "0.5385377", "text": "public final void ruleDataTypeSpecifier() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.eclipselabs.mscript.language.ui/src-gen/org/eclipselabs/mscript/language/ui/contentassist/antlr/internal/InternalMscript.g:466:2: ( ( ( rule__DataTypeSpecifier__Alternatives ) ) )\n // ../org.eclipselabs.mscript.language.ui/src-gen/org/eclipselabs/mscript/language/ui/contentassist/antlr/internal/InternalMscript.g:467:1: ( ( rule__DataTypeSpecifier__Alternatives ) )\n {\n // ../org.eclipselabs.mscript.language.ui/src-gen/org/eclipselabs/mscript/language/ui/contentassist/antlr/internal/InternalMscript.g:467:1: ( ( rule__DataTypeSpecifier__Alternatives ) )\n // ../org.eclipselabs.mscript.language.ui/src-gen/org/eclipselabs/mscript/language/ui/contentassist/antlr/internal/InternalMscript.g:468:1: ( rule__DataTypeSpecifier__Alternatives )\n {\n before(grammarAccess.getDataTypeSpecifierAccess().getAlternatives()); \n // ../org.eclipselabs.mscript.language.ui/src-gen/org/eclipselabs/mscript/language/ui/contentassist/antlr/internal/InternalMscript.g:469:1: ( rule__DataTypeSpecifier__Alternatives )\n // ../org.eclipselabs.mscript.language.ui/src-gen/org/eclipselabs/mscript/language/ui/contentassist/antlr/internal/InternalMscript.g:469:2: rule__DataTypeSpecifier__Alternatives\n {\n pushFollow(FOLLOW_rule__DataTypeSpecifier__Alternatives_in_ruleDataTypeSpecifier935);\n rule__DataTypeSpecifier__Alternatives();\n _fsp--;\n\n\n }\n\n after(grammarAccess.getDataTypeSpecifierAccess().getAlternatives()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "df2ad4c0882837d7d8ac85979d3eddcc", "score": "0.5377598", "text": "public final void rule__BooleanTypeSpecifier__Group_2__1__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.eclipselabs.mscript.language.ui/src-gen/org/eclipselabs/mscript/language/ui/contentassist/antlr/internal/InternalMscript.g:7270:1: ( ( ( rule__BooleanTypeSpecifier__DimensionsAssignment_2_1 ) ) )\n // ../org.eclipselabs.mscript.language.ui/src-gen/org/eclipselabs/mscript/language/ui/contentassist/antlr/internal/InternalMscript.g:7271:1: ( ( rule__BooleanTypeSpecifier__DimensionsAssignment_2_1 ) )\n {\n // ../org.eclipselabs.mscript.language.ui/src-gen/org/eclipselabs/mscript/language/ui/contentassist/antlr/internal/InternalMscript.g:7271:1: ( ( rule__BooleanTypeSpecifier__DimensionsAssignment_2_1 ) )\n // ../org.eclipselabs.mscript.language.ui/src-gen/org/eclipselabs/mscript/language/ui/contentassist/antlr/internal/InternalMscript.g:7272:1: ( rule__BooleanTypeSpecifier__DimensionsAssignment_2_1 )\n {\n before(grammarAccess.getBooleanTypeSpecifierAccess().getDimensionsAssignment_2_1()); \n // ../org.eclipselabs.mscript.language.ui/src-gen/org/eclipselabs/mscript/language/ui/contentassist/antlr/internal/InternalMscript.g:7273:1: ( rule__BooleanTypeSpecifier__DimensionsAssignment_2_1 )\n // ../org.eclipselabs.mscript.language.ui/src-gen/org/eclipselabs/mscript/language/ui/contentassist/antlr/internal/InternalMscript.g:7273:2: rule__BooleanTypeSpecifier__DimensionsAssignment_2_1\n {\n pushFollow(FOLLOW_rule__BooleanTypeSpecifier__DimensionsAssignment_2_1_in_rule__BooleanTypeSpecifier__Group_2__1__Impl14931);\n rule__BooleanTypeSpecifier__DimensionsAssignment_2_1();\n _fsp--;\n\n\n }\n\n after(grammarAccess.getBooleanTypeSpecifierAccess().getDimensionsAssignment_2_1()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "de15bea5f36942f2468106fcb76bf99a", "score": "0.53495336", "text": "public final void rule__Repository__TypeAssignment_3() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalQms.g:1654:1: ( ( ruleRepositoryType ) )\n // InternalQms.g:1655:2: ( ruleRepositoryType )\n {\n // InternalQms.g:1655:2: ( ruleRepositoryType )\n // InternalQms.g:1656:3: ruleRepositoryType\n {\n before(grammarAccess.getRepositoryAccess().getTypeRepositoryTypeEnumRuleCall_3_0()); \n pushFollow(FOLLOW_2);\n ruleRepositoryType();\n\n state._fsp--;\n\n after(grammarAccess.getRepositoryAccess().getTypeRepositoryTypeEnumRuleCall_3_0()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "3a10a1808d7d05bfd559dcb55bcd0016", "score": "0.53476274", "text": "public final void rule__CST_DECL__Group__2__Impl() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.xtext.module.dsl.ui/src-gen/org/xtext/ui/contentassist/antlr/internal/InternalModuleDsl.g:3238:1: ( ( ( rule__CST_DECL__TypeAssignment_2 ) ) )\r\n // ../org.xtext.module.dsl.ui/src-gen/org/xtext/ui/contentassist/antlr/internal/InternalModuleDsl.g:3239:1: ( ( rule__CST_DECL__TypeAssignment_2 ) )\r\n {\r\n // ../org.xtext.module.dsl.ui/src-gen/org/xtext/ui/contentassist/antlr/internal/InternalModuleDsl.g:3239:1: ( ( rule__CST_DECL__TypeAssignment_2 ) )\r\n // ../org.xtext.module.dsl.ui/src-gen/org/xtext/ui/contentassist/antlr/internal/InternalModuleDsl.g:3240:1: ( rule__CST_DECL__TypeAssignment_2 )\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getCST_DECLAccess().getTypeAssignment_2()); \r\n }\r\n // ../org.xtext.module.dsl.ui/src-gen/org/xtext/ui/contentassist/antlr/internal/InternalModuleDsl.g:3241:1: ( rule__CST_DECL__TypeAssignment_2 )\r\n // ../org.xtext.module.dsl.ui/src-gen/org/xtext/ui/contentassist/antlr/internal/InternalModuleDsl.g:3241:2: rule__CST_DECL__TypeAssignment_2\r\n {\r\n pushFollow(FOLLOW_rule__CST_DECL__TypeAssignment_2_in_rule__CST_DECL__Group__2__Impl6718);\r\n rule__CST_DECL__TypeAssignment_2();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getCST_DECLAccess().getTypeAssignment_2()); \r\n }\r\n\r\n }\r\n\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 finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "8b91cb6505226551cb7d7af679f25eba", "score": "0.5347414", "text": "public final void rule__Type__PointerAssignment_2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalPascal.g:12263:1: ( ( rulepointer_type ) )\n // InternalPascal.g:12264:2: ( rulepointer_type )\n {\n // InternalPascal.g:12264:2: ( rulepointer_type )\n // InternalPascal.g:12265:3: rulepointer_type\n {\n before(grammarAccess.getTypeAccess().getPointerPointer_typeParserRuleCall_2_0()); \n pushFollow(FOLLOW_2);\n rulepointer_type();\n\n state._fsp--;\n\n after(grammarAccess.getTypeAccess().getPointerPointer_typeParserRuleCall_2_0()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "1ff1d78e3dcdb5c6d84b597c276e2621", "score": "0.53392386", "text": "public final void rule__DmxCastExpression__TypeAssignment_1_1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalPubProto.g:14899:1: ( ( ( RULE_ID ) ) )\n // InternalPubProto.g:14900:2: ( ( RULE_ID ) )\n {\n // InternalPubProto.g:14900:2: ( ( RULE_ID ) )\n // InternalPubProto.g:14901:3: ( RULE_ID )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getDmxCastExpressionAccess().getTypeDTypeCrossReference_1_1_0()); \n }\n // InternalPubProto.g:14902:3: ( RULE_ID )\n // InternalPubProto.g:14903:4: RULE_ID\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getDmxCastExpressionAccess().getTypeDTypeIDTerminalRuleCall_1_1_0_1()); \n }\n match(input,RULE_ID,FOLLOW_2); if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getDmxCastExpressionAccess().getTypeDTypeIDTerminalRuleCall_1_1_0_1()); \n }\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getDmxCastExpressionAccess().getTypeDTypeCrossReference_1_1_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "e8b69cb103da071f90ccd92aa5043dea", "score": "0.5337073", "text": "public final void rule__Variable_declaration__Group__1__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // InternalJava.g:4741:1: ( ( ( rule__Variable_declaration__TypeAssignment_1 ) ) )\n // InternalJava.g:4742:1: ( ( rule__Variable_declaration__TypeAssignment_1 ) )\n {\n // InternalJava.g:4742:1: ( ( rule__Variable_declaration__TypeAssignment_1 ) )\n // InternalJava.g:4743:1: ( rule__Variable_declaration__TypeAssignment_1 )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getVariable_declarationAccess().getTypeAssignment_1()); \n }\n // InternalJava.g:4744:1: ( rule__Variable_declaration__TypeAssignment_1 )\n // InternalJava.g:4744:2: rule__Variable_declaration__TypeAssignment_1\n {\n pushFollow(FOLLOW_2);\n rule__Variable_declaration__TypeAssignment_1();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getVariable_declarationAccess().getTypeAssignment_1()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "b43cff45fd0135c08b4b65a94d262145", "score": "0.5335027", "text": "public Object visit(ASTAssignment node, Object data) {\n\t\t// Given that we could have anything from \"const int val = 10;\" to \"val = 1;\"\n\t\t// We need to be able to distinguish between types of assignment and throw accurate exceptions\n\t\tboolean isIncOrDec = false;\n\t\tboolean increment = false;\n\t\tboolean prefix = false;\n\t\t\n\t\tvar firstChild = (SimpleNode) node.jjtGetChild(0);\n\t\tvar secondChild = (SimpleNode) node.jjtGetChild(1);\n\t\t\n\t\tif (firstChild instanceof ASTIncrementDecrement) {\n\t\t\tisIncOrDec = true;\n\t\t\tif (firstChild.tokenValue.equals(\"++\")) increment = true;\n\t\t\tprefix = true;\n\t\t} else if (secondChild instanceof ASTIncrementDecrement) {\n\t\t\tisIncOrDec = true;\n\t\t\tif (secondChild.tokenValue.equals(\"++\")) increment = true;\n\t\t}\n\t\t\t\t\n\t\tif (node.jjtGetNumChildren() == 2) {\n\t\t\tif (isIncOrDec) {\n\t\t\t\tvar name = getTokenOfChild(node, prefix ? 1 : 0);\n\t\t\t\tvar derefNode = (ASTDereference) node.jjtGetChild(prefix ? 1 : 0);\n\t\t\t\treturn untypedAssignment(name, null, derefNode, data, true, increment, prefix);\n\t\t\t} else {\n\t\t\t\treturn untypedAssignment(getTokenOfChild(node, 0), doChild(node, 1), (ASTDereference) node.jjtGetChild(0), data, false, false, false);\n\t\t\t}\n\t\t} else {\n\t\t\treturn typedAssignment(node, data);\n\t\t}\n\t}", "title": "" }, { "docid": "673ef3019cfcd6da5a3b1409f66e350b", "score": "0.53333014", "text": "public final void rule__FaultDetection__TypeAssignment_4() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalSafetyDSL.g:10047:1: ( ( RULE_STRING ) )\n // InternalSafetyDSL.g:10048:2: ( RULE_STRING )\n {\n // InternalSafetyDSL.g:10048:2: ( RULE_STRING )\n // InternalSafetyDSL.g:10049:3: RULE_STRING\n {\n before(grammarAccess.getFaultDetectionAccess().getTypeSTRINGTerminalRuleCall_4_0()); \n match(input,RULE_STRING,FOLLOW_2); \n after(grammarAccess.getFaultDetectionAccess().getTypeSTRINGTerminalRuleCall_4_0()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "071a2e698da9f1eeba483525b808f373", "score": "0.5332398", "text": "public final void rule__BooleanTypeSpecifier__Group_2_2__1__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.eclipselabs.mscript.language.ui/src-gen/org/eclipselabs/mscript/language/ui/contentassist/antlr/internal/InternalMscript.g:7396:1: ( ( ( rule__BooleanTypeSpecifier__DimensionsAssignment_2_2_1 ) ) )\n // ../org.eclipselabs.mscript.language.ui/src-gen/org/eclipselabs/mscript/language/ui/contentassist/antlr/internal/InternalMscript.g:7397:1: ( ( rule__BooleanTypeSpecifier__DimensionsAssignment_2_2_1 ) )\n {\n // ../org.eclipselabs.mscript.language.ui/src-gen/org/eclipselabs/mscript/language/ui/contentassist/antlr/internal/InternalMscript.g:7397:1: ( ( rule__BooleanTypeSpecifier__DimensionsAssignment_2_2_1 ) )\n // ../org.eclipselabs.mscript.language.ui/src-gen/org/eclipselabs/mscript/language/ui/contentassist/antlr/internal/InternalMscript.g:7398:1: ( rule__BooleanTypeSpecifier__DimensionsAssignment_2_2_1 )\n {\n before(grammarAccess.getBooleanTypeSpecifierAccess().getDimensionsAssignment_2_2_1()); \n // ../org.eclipselabs.mscript.language.ui/src-gen/org/eclipselabs/mscript/language/ui/contentassist/antlr/internal/InternalMscript.g:7399:1: ( rule__BooleanTypeSpecifier__DimensionsAssignment_2_2_1 )\n // ../org.eclipselabs.mscript.language.ui/src-gen/org/eclipselabs/mscript/language/ui/contentassist/antlr/internal/InternalMscript.g:7399:2: rule__BooleanTypeSpecifier__DimensionsAssignment_2_2_1\n {\n pushFollow(FOLLOW_rule__BooleanTypeSpecifier__DimensionsAssignment_2_2_1_in_rule__BooleanTypeSpecifier__Group_2_2__1__Impl15178);\n rule__BooleanTypeSpecifier__DimensionsAssignment_2_2_1();\n _fsp--;\n\n\n }\n\n after(grammarAccess.getBooleanTypeSpecifierAccess().getDimensionsAssignment_2_2_1()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "3ad2d503462c3b828e9c8a88d5367883", "score": "0.5329207", "text": "public final void rule__XVariableDeclaration__TypeAssignment_2_0_0_0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalAle.g:17978:1: ( ( ruleJvmTypeReference ) )\n // InternalAle.g:17979:2: ( ruleJvmTypeReference )\n {\n // InternalAle.g:17979:2: ( ruleJvmTypeReference )\n // InternalAle.g:17980:3: ruleJvmTypeReference\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXVariableDeclarationAccess().getTypeJvmTypeReferenceParserRuleCall_2_0_0_0_0()); \n }\n pushFollow(FOLLOW_2);\n ruleJvmTypeReference();\n\n state._fsp--;\n if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXVariableDeclarationAccess().getTypeJvmTypeReferenceParserRuleCall_2_0_0_0_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "309b264585f5adafbb2971f6b6ca1943", "score": "0.530478", "text": "public void setOperatorType ( int operatorType )\n throws DataObjectException;", "title": "" }, { "docid": "adc85d6d0127f6504021dfaf426a084c", "score": "0.5300039", "text": "public final void rule__XTypeLiteral__TypeAssignment_3() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalAle.g:18403:1: ( ( ( ruleQualifiedName ) ) )\n // InternalAle.g:18404:2: ( ( ruleQualifiedName ) )\n {\n // InternalAle.g:18404:2: ( ( ruleQualifiedName ) )\n // InternalAle.g:18405:3: ( ruleQualifiedName )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXTypeLiteralAccess().getTypeJvmTypeCrossReference_3_0()); \n }\n // InternalAle.g:18406:3: ( ruleQualifiedName )\n // InternalAle.g:18407:4: ruleQualifiedName\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXTypeLiteralAccess().getTypeJvmTypeQualifiedNameParserRuleCall_3_0_1()); \n }\n pushFollow(FOLLOW_2);\n ruleQualifiedName();\n\n state._fsp--;\n if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXTypeLiteralAccess().getTypeJvmTypeQualifiedNameParserRuleCall_3_0_1()); \n }\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXTypeLiteralAccess().getTypeJvmTypeCrossReference_3_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "89ff9a936056a22a595fcd0f2dc2bee9", "score": "0.5294801", "text": "public final void ruleTYPE() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.xtext.module.dsl.ui/src-gen/org/xtext/ui/contentassist/antlr/internal/InternalModuleDsl.g:473:2: ( ( ( rule__TYPE__TypeAssignment ) ) )\r\n // ../org.xtext.module.dsl.ui/src-gen/org/xtext/ui/contentassist/antlr/internal/InternalModuleDsl.g:474:1: ( ( rule__TYPE__TypeAssignment ) )\r\n {\r\n // ../org.xtext.module.dsl.ui/src-gen/org/xtext/ui/contentassist/antlr/internal/InternalModuleDsl.g:474:1: ( ( rule__TYPE__TypeAssignment ) )\r\n // ../org.xtext.module.dsl.ui/src-gen/org/xtext/ui/contentassist/antlr/internal/InternalModuleDsl.g:475:1: ( rule__TYPE__TypeAssignment )\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getTYPEAccess().getTypeAssignment()); \r\n }\r\n // ../org.xtext.module.dsl.ui/src-gen/org/xtext/ui/contentassist/antlr/internal/InternalModuleDsl.g:476:1: ( rule__TYPE__TypeAssignment )\r\n // ../org.xtext.module.dsl.ui/src-gen/org/xtext/ui/contentassist/antlr/internal/InternalModuleDsl.g:476:2: rule__TYPE__TypeAssignment\r\n {\r\n pushFollow(FOLLOW_rule__TYPE__TypeAssignment_in_ruleTYPE957);\r\n rule__TYPE__TypeAssignment();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getTYPEAccess().getTypeAssignment()); \r\n }\r\n\r\n }\r\n\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 finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "56e52a8191440bc2bf854937d1d58d63", "score": "0.52847016", "text": "public final void ruleDataType() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalSbsml.g:607:1: ( ( ( rule__DataType__Alternatives ) ) )\n // InternalSbsml.g:608:2: ( ( rule__DataType__Alternatives ) )\n {\n // InternalSbsml.g:608:2: ( ( rule__DataType__Alternatives ) )\n // InternalSbsml.g:609:3: ( rule__DataType__Alternatives )\n {\n before(grammarAccess.getDataTypeAccess().getAlternatives()); \n // InternalSbsml.g:610:3: ( rule__DataType__Alternatives )\n // InternalSbsml.g:610:4: rule__DataType__Alternatives\n {\n pushFollow(FOLLOW_2);\n rule__DataType__Alternatives();\n\n state._fsp--;\n\n\n }\n\n after(grammarAccess.getDataTypeAccess().getAlternatives()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "75b72926ffcfdbd6851cd39cb28ef5bb", "score": "0.5284552", "text": "public final void rule__File_type__Group__2__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalPascal.g:8936:1: ( ( ( rule__File_type__TypeAssignment_2 ) ) )\n // InternalPascal.g:8937:1: ( ( rule__File_type__TypeAssignment_2 ) )\n {\n // InternalPascal.g:8937:1: ( ( rule__File_type__TypeAssignment_2 ) )\n // InternalPascal.g:8938:2: ( rule__File_type__TypeAssignment_2 )\n {\n before(grammarAccess.getFile_typeAccess().getTypeAssignment_2()); \n // InternalPascal.g:8939:2: ( rule__File_type__TypeAssignment_2 )\n // InternalPascal.g:8939:3: rule__File_type__TypeAssignment_2\n {\n pushFollow(FOLLOW_2);\n rule__File_type__TypeAssignment_2();\n\n state._fsp--;\n\n\n }\n\n after(grammarAccess.getFile_typeAccess().getTypeAssignment_2()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "81487f7029f24884d48a021cfa6da5e6", "score": "0.52750385", "text": "public final void entryRuleType_specifier() throws RecognitionException {\n try {\n // InternalJava.g:818:1: ( ruleType_specifier EOF )\n // InternalJava.g:819:1: ruleType_specifier EOF\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getType_specifierRule()); \n }\n pushFollow(FOLLOW_1);\n ruleType_specifier();\n\n state._fsp--;\n if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getType_specifierRule()); \n }\n match(input,EOF,FOLLOW_2); if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n }\n return ;\n }", "title": "" }, { "docid": "7f471d8505c83af552a500bd94e2b0d9", "score": "0.52746946", "text": "public final void rule__Method_declaration__TypeAssignment_1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // InternalJava.g:12291:1: ( ( ruleType ) )\n // InternalJava.g:12292:1: ( ruleType )\n {\n // InternalJava.g:12292:1: ( ruleType )\n // InternalJava.g:12293:1: ruleType\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getMethod_declarationAccess().getTypeTypeParserRuleCall_1_0()); \n }\n pushFollow(FOLLOW_2);\n ruleType();\n\n state._fsp--;\n if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getMethod_declarationAccess().getTypeTypeParserRuleCall_1_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "78b66964edda49a6fd13c203aa1bd06d", "score": "0.5274133", "text": "public final void rule__URNlink__Group_2__1__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalTURN.g:4239:1: ( ( ( rule__URNlink__TypeAssignment_2_1 ) ) )\n // InternalTURN.g:4240:1: ( ( rule__URNlink__TypeAssignment_2_1 ) )\n {\n // InternalTURN.g:4240:1: ( ( rule__URNlink__TypeAssignment_2_1 ) )\n // InternalTURN.g:4241:2: ( rule__URNlink__TypeAssignment_2_1 )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getURNlinkAccess().getTypeAssignment_2_1()); \n }\n // InternalTURN.g:4242:2: ( rule__URNlink__TypeAssignment_2_1 )\n // InternalTURN.g:4242:3: rule__URNlink__TypeAssignment_2_1\n {\n pushFollow(FOLLOW_2);\n rule__URNlink__TypeAssignment_2_1();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getURNlinkAccess().getTypeAssignment_2_1()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "eb566df311e27dc523fbf51811d99b5d", "score": "0.5266939", "text": "public final void rule__Pointer_type__TypeAssignment_1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalPascal.g:12620:1: ( ( ruletype ) )\n // InternalPascal.g:12621:2: ( ruletype )\n {\n // InternalPascal.g:12621:2: ( ruletype )\n // InternalPascal.g:12622:3: ruletype\n {\n before(grammarAccess.getPointer_typeAccess().getTypeTypeParserRuleCall_1_0()); \n pushFollow(FOLLOW_2);\n ruletype();\n\n state._fsp--;\n\n after(grammarAccess.getPointer_typeAccess().getTypeTypeParserRuleCall_1_0()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "bebbe658c64e4cf40a6ad17153e6624f", "score": "0.52573377", "text": "@DISPID(1013)\n @PropPut\n void type(\n java.lang.String rhs);", "title": "" }, { "docid": "cd52663085a05891ba65b7e377ad032a", "score": "0.5249537", "text": "public final void rule__Array_type__TypeAssignment_6() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalPascal.g:12522:1: ( ( ruletype ) )\n // InternalPascal.g:12523:2: ( ruletype )\n {\n // InternalPascal.g:12523:2: ( ruletype )\n // InternalPascal.g:12524:3: ruletype\n {\n before(grammarAccess.getArray_typeAccess().getTypeTypeParserRuleCall_6_0()); \n pushFollow(FOLLOW_2);\n ruletype();\n\n state._fsp--;\n\n after(grammarAccess.getArray_typeAccess().getTypeTypeParserRuleCall_6_0()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "ae3e80f756bb3c4ea5180d63292d3991", "score": "0.52456963", "text": "public final void rule__Creating_Expression__Group_1_1__0__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // InternalJava.g:7858:1: ( ( ( rule__Creating_Expression__TypeSpecifierAssignment_1_1_0 ) ) )\n // InternalJava.g:7859:1: ( ( rule__Creating_Expression__TypeSpecifierAssignment_1_1_0 ) )\n {\n // InternalJava.g:7859:1: ( ( rule__Creating_Expression__TypeSpecifierAssignment_1_1_0 ) )\n // InternalJava.g:7860:1: ( rule__Creating_Expression__TypeSpecifierAssignment_1_1_0 )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getCreating_ExpressionAccess().getTypeSpecifierAssignment_1_1_0()); \n }\n // InternalJava.g:7861:1: ( rule__Creating_Expression__TypeSpecifierAssignment_1_1_0 )\n // InternalJava.g:7861:2: rule__Creating_Expression__TypeSpecifierAssignment_1_1_0\n {\n pushFollow(FOLLOW_2);\n rule__Creating_Expression__TypeSpecifierAssignment_1_1_0();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getCreating_ExpressionAccess().getTypeSpecifierAssignment_1_1_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "e799cb14375e51ecf2dce57e4fb5b3da", "score": "0.5244658", "text": "public final void rule__DataField__PrimitiveTypeAssignment_2_0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalOperationDsl.g:26397:1: ( ( rulePrimitiveType ) )\n // InternalOperationDsl.g:26398:2: ( rulePrimitiveType )\n {\n // InternalOperationDsl.g:26398:2: ( rulePrimitiveType )\n // InternalOperationDsl.g:26399:3: rulePrimitiveType\n {\n before(grammarAccess.getDataFieldAccess().getPrimitiveTypePrimitiveTypeParserRuleCall_2_0_0()); \n pushFollow(FOLLOW_2);\n rulePrimitiveType();\n\n state._fsp--;\n\n after(grammarAccess.getDataFieldAccess().getPrimitiveTypePrimitiveTypeParserRuleCall_2_0_0()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "8cd169489e2e74671e87c108df947fd8", "score": "0.5242395", "text": "public final void rule__XRelationalExpression__TypeAssignment_1_0_1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:16172:1: ( ( ruleJvmTypeReference ) )\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:16173:1: ( ruleJvmTypeReference )\n {\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:16173:1: ( ruleJvmTypeReference )\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:16174:1: ruleJvmTypeReference\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXRelationalExpressionAccess().getTypeJvmTypeReferenceParserRuleCall_1_0_1_0()); \n }\n pushFollow(FOLLOW_ruleJvmTypeReference_in_rule__XRelationalExpression__TypeAssignment_1_0_132558);\n ruleJvmTypeReference();\n\n state._fsp--;\n if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXRelationalExpressionAccess().getTypeJvmTypeReferenceParserRuleCall_1_0_1_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "0ebd7b64f318398274fb267805e20b19", "score": "0.5226694", "text": "public final void rule__ExtraData__TypeAssignment_4_2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.example.mydsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalMyDsl.g:3355:1: ( ( ruleSimpleTypeEnum ) )\n // ../org.xtext.example.mydsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalMyDsl.g:3356:1: ( ruleSimpleTypeEnum )\n {\n // ../org.xtext.example.mydsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalMyDsl.g:3356:1: ( ruleSimpleTypeEnum )\n // ../org.xtext.example.mydsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalMyDsl.g:3357:1: ruleSimpleTypeEnum\n {\n before(grammarAccess.getExtraDataAccess().getTypeSimpleTypeEnumEnumRuleCall_4_2_0()); \n pushFollow(FollowSets000.FOLLOW_ruleSimpleTypeEnum_in_rule__ExtraData__TypeAssignment_4_26639);\n ruleSimpleTypeEnum();\n\n state._fsp--;\n\n after(grammarAccess.getExtraDataAccess().getTypeSimpleTypeEnumEnumRuleCall_4_2_0()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "04e3041fd686e7e5e5a0ccc10c580efd", "score": "0.5214814", "text": "public final void rule__URNlink__TypeAssignment_2_1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalTURN.g:13910:1: ( ( ruleText ) )\n // InternalTURN.g:13911:2: ( ruleText )\n {\n // InternalTURN.g:13911:2: ( ruleText )\n // InternalTURN.g:13912:3: ruleText\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getURNlinkAccess().getTypeTextParserRuleCall_2_1_0()); \n }\n pushFollow(FOLLOW_2);\n ruleText();\n\n state._fsp--;\n if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getURNlinkAccess().getTypeTextParserRuleCall_2_1_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "9b7658038e0a557eda8a378d91ebe7e7", "score": "0.52103233", "text": "public final void rule__XRelationalExpression__Group_1_1__1__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:5450:1: ( ( ( rule__XRelationalExpression__RightOperandAssignment_1_1_1 ) ) )\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:5451:1: ( ( rule__XRelationalExpression__RightOperandAssignment_1_1_1 ) )\n {\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:5451:1: ( ( rule__XRelationalExpression__RightOperandAssignment_1_1_1 ) )\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:5452:1: ( rule__XRelationalExpression__RightOperandAssignment_1_1_1 )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXRelationalExpressionAccess().getRightOperandAssignment_1_1_1()); \n }\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:5453:1: ( rule__XRelationalExpression__RightOperandAssignment_1_1_1 )\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:5453:2: rule__XRelationalExpression__RightOperandAssignment_1_1_1\n {\n pushFollow(FOLLOW_rule__XRelationalExpression__RightOperandAssignment_1_1_1_in_rule__XRelationalExpression__Group_1_1__1__Impl11460);\n rule__XRelationalExpression__RightOperandAssignment_1_1_1();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXRelationalExpressionAccess().getRightOperandAssignment_1_1_1()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "1571fe04fd8acbb300612dfcdf6ae681", "score": "0.5208472", "text": "public final void rule__XCastedExpression__Group_1__1__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalAle.g:7195:1: ( ( ( rule__XCastedExpression__TypeAssignment_1_1 ) ) )\n // InternalAle.g:7196:1: ( ( rule__XCastedExpression__TypeAssignment_1_1 ) )\n {\n // InternalAle.g:7196:1: ( ( rule__XCastedExpression__TypeAssignment_1_1 ) )\n // InternalAle.g:7197:2: ( rule__XCastedExpression__TypeAssignment_1_1 )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXCastedExpressionAccess().getTypeAssignment_1_1()); \n }\n // InternalAle.g:7198:2: ( rule__XCastedExpression__TypeAssignment_1_1 )\n // InternalAle.g:7198:3: rule__XCastedExpression__TypeAssignment_1_1\n {\n pushFollow(FOLLOW_2);\n rule__XCastedExpression__TypeAssignment_1_1();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXCastedExpressionAccess().getTypeAssignment_1_1()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "4c5866b9301772a8a4abfcdadacbdca2", "score": "0.5204761", "text": "public final void rule__RealTypeSpecifier__Group_2__1__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.eclipselabs.mscript.language.ui/src-gen/org/eclipselabs/mscript/language/ui/contentassist/antlr/internal/InternalMscript.g:5649:1: ( ( ( rule__RealTypeSpecifier__UnitAssignment_2_1 ) ) )\n // ../org.eclipselabs.mscript.language.ui/src-gen/org/eclipselabs/mscript/language/ui/contentassist/antlr/internal/InternalMscript.g:5650:1: ( ( rule__RealTypeSpecifier__UnitAssignment_2_1 ) )\n {\n // ../org.eclipselabs.mscript.language.ui/src-gen/org/eclipselabs/mscript/language/ui/contentassist/antlr/internal/InternalMscript.g:5650:1: ( ( rule__RealTypeSpecifier__UnitAssignment_2_1 ) )\n // ../org.eclipselabs.mscript.language.ui/src-gen/org/eclipselabs/mscript/language/ui/contentassist/antlr/internal/InternalMscript.g:5651:1: ( rule__RealTypeSpecifier__UnitAssignment_2_1 )\n {\n before(grammarAccess.getRealTypeSpecifierAccess().getUnitAssignment_2_1()); \n // ../org.eclipselabs.mscript.language.ui/src-gen/org/eclipselabs/mscript/language/ui/contentassist/antlr/internal/InternalMscript.g:5652:1: ( rule__RealTypeSpecifier__UnitAssignment_2_1 )\n // ../org.eclipselabs.mscript.language.ui/src-gen/org/eclipselabs/mscript/language/ui/contentassist/antlr/internal/InternalMscript.g:5652:2: rule__RealTypeSpecifier__UnitAssignment_2_1\n {\n pushFollow(FOLLOW_rule__RealTypeSpecifier__UnitAssignment_2_1_in_rule__RealTypeSpecifier__Group_2__1__Impl11754);\n rule__RealTypeSpecifier__UnitAssignment_2_1();\n _fsp--;\n\n\n }\n\n after(grammarAccess.getRealTypeSpecifierAccess().getUnitAssignment_2_1()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "233f05a8383ebfd9e59fafbdd91cea07", "score": "0.5203487", "text": "public final void rule__Feature__Group__2__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.workshop.webgui.ui/src-gen/org/xtext/workshop/ui/contentassist/antlr/internal/InternalWebGui.g:1134:1: ( ( ( rule__Feature__TypeAssignment_2 ) ) )\n // ../org.xtext.workshop.webgui.ui/src-gen/org/xtext/workshop/ui/contentassist/antlr/internal/InternalWebGui.g:1135:1: ( ( rule__Feature__TypeAssignment_2 ) )\n {\n // ../org.xtext.workshop.webgui.ui/src-gen/org/xtext/workshop/ui/contentassist/antlr/internal/InternalWebGui.g:1135:1: ( ( rule__Feature__TypeAssignment_2 ) )\n // ../org.xtext.workshop.webgui.ui/src-gen/org/xtext/workshop/ui/contentassist/antlr/internal/InternalWebGui.g:1136:1: ( rule__Feature__TypeAssignment_2 )\n {\n before(grammarAccess.getFeatureAccess().getTypeAssignment_2()); \n // ../org.xtext.workshop.webgui.ui/src-gen/org/xtext/workshop/ui/contentassist/antlr/internal/InternalWebGui.g:1137:1: ( rule__Feature__TypeAssignment_2 )\n // ../org.xtext.workshop.webgui.ui/src-gen/org/xtext/workshop/ui/contentassist/antlr/internal/InternalWebGui.g:1137:2: rule__Feature__TypeAssignment_2\n {\n pushFollow(FOLLOW_rule__Feature__TypeAssignment_2_in_rule__Feature__Group__2__Impl2304);\n rule__Feature__TypeAssignment_2();\n _fsp--;\n\n\n }\n\n after(grammarAccess.getFeatureAccess().getTypeAssignment_2()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "bc0de9cea85abe689422b8668bb2fdc1", "score": "0.519549", "text": "public final void entryRuleDataTypeSpecifier() throws RecognitionException {\n try {\n // ../org.eclipselabs.mscript.language.ui/src-gen/org/eclipselabs/mscript/language/ui/contentassist/antlr/internal/InternalMscript.g:454:1: ( ruleDataTypeSpecifier EOF )\n // ../org.eclipselabs.mscript.language.ui/src-gen/org/eclipselabs/mscript/language/ui/contentassist/antlr/internal/InternalMscript.g:455:1: ruleDataTypeSpecifier EOF\n {\n before(grammarAccess.getDataTypeSpecifierRule()); \n pushFollow(FOLLOW_ruleDataTypeSpecifier_in_entryRuleDataTypeSpecifier902);\n ruleDataTypeSpecifier();\n _fsp--;\n\n after(grammarAccess.getDataTypeSpecifierRule()); \n match(input,EOF,FOLLOW_EOF_in_entryRuleDataTypeSpecifier909); \n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n }\n return ;\n }", "title": "" }, { "docid": "832fb11b0b8bcaa925eec012cc41e041", "score": "0.5177728", "text": "public final void rule__XCastedExpression__Group_1__1__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:6785:1: ( ( ( rule__XCastedExpression__TypeAssignment_1_1 ) ) )\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:6786:1: ( ( rule__XCastedExpression__TypeAssignment_1_1 ) )\n {\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:6786:1: ( ( rule__XCastedExpression__TypeAssignment_1_1 ) )\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:6787:1: ( rule__XCastedExpression__TypeAssignment_1_1 )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXCastedExpressionAccess().getTypeAssignment_1_1()); \n }\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:6788:1: ( rule__XCastedExpression__TypeAssignment_1_1 )\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:6788:2: rule__XCastedExpression__TypeAssignment_1_1\n {\n pushFollow(FOLLOW_rule__XCastedExpression__TypeAssignment_1_1_in_rule__XCastedExpression__Group_1__1__Impl14075);\n rule__XCastedExpression__TypeAssignment_1_1();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXCastedExpressionAccess().getTypeAssignment_1_1()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "de52e82d7724d5c5be07a59235e86e60", "score": "0.5167908", "text": "public final void rule__DATASEL_DECL__Data2Assignment_4_1() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.xtext.module.dsl.ui/src-gen/org/xtext/ui/contentassist/antlr/internal/InternalModuleDsl.g:7412:1: ( ( ruleDATASEL ) )\r\n // ../org.xtext.module.dsl.ui/src-gen/org/xtext/ui/contentassist/antlr/internal/InternalModuleDsl.g:7413:1: ( ruleDATASEL )\r\n {\r\n // ../org.xtext.module.dsl.ui/src-gen/org/xtext/ui/contentassist/antlr/internal/InternalModuleDsl.g:7413:1: ( ruleDATASEL )\r\n // ../org.xtext.module.dsl.ui/src-gen/org/xtext/ui/contentassist/antlr/internal/InternalModuleDsl.g:7414:1: ruleDATASEL\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getDATASEL_DECLAccess().getData2DATASELParserRuleCall_4_1_0()); \r\n }\r\n pushFollow(FOLLOW_ruleDATASEL_in_rule__DATASEL_DECL__Data2Assignment_4_114888);\r\n ruleDATASEL();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getDATASEL_DECLAccess().getData2DATASELParserRuleCall_4_1_0()); \r\n }\r\n\r\n }\r\n\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 finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "fc5ea095953802c7bd6f9fc81df7260f", "score": "0.51644653", "text": "public final void rule__DmxRelationalExpression__Group_1_1__1__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalPubProto.g:10100:1: ( ( ( rule__DmxRelationalExpression__RightOperandAssignment_1_1_1 ) ) )\n // InternalPubProto.g:10101:1: ( ( rule__DmxRelationalExpression__RightOperandAssignment_1_1_1 ) )\n {\n // InternalPubProto.g:10101:1: ( ( rule__DmxRelationalExpression__RightOperandAssignment_1_1_1 ) )\n // InternalPubProto.g:10102:2: ( rule__DmxRelationalExpression__RightOperandAssignment_1_1_1 )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getDmxRelationalExpressionAccess().getRightOperandAssignment_1_1_1()); \n }\n // InternalPubProto.g:10103:2: ( rule__DmxRelationalExpression__RightOperandAssignment_1_1_1 )\n // InternalPubProto.g:10103:3: rule__DmxRelationalExpression__RightOperandAssignment_1_1_1\n {\n pushFollow(FOLLOW_2);\n rule__DmxRelationalExpression__RightOperandAssignment_1_1_1();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getDmxRelationalExpressionAccess().getRightOperandAssignment_1_1_1()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "ee0e438e92ae20a2676af381bbdcdcb7", "score": "0.51625013", "text": "private RelDataType deriveTypeImpl(\n Scope scope,\n SqlNode operand)\n {\n // REVIEW jvs 2-Dec-2004: this method has outgrown its pants\n \n RelDataType type;\n if (operand instanceof SqlIdentifier) {\n SqlIdentifier id = (SqlIdentifier) operand;\n \n // First check for builtin functions which don't have parentheses,\n // like \"LOCALTIME\".\n SqlCall call = makeCall(id);\n if (call != null) {\n return call.operator.getType(this, scope, call);\n }\n \n type = null;\n for (int i = 0; i < id.names.length; i++) {\n String name = id.names[i];\n if (i == 0) {\n // REVIEW jvs 23-Dec-2003: what if a table and column have\n // the same name?\n final Namespace resolvedNs =\n scope.resolve(name, null, null);\n if (resolvedNs != null) {\n // There's a table with the name we seek.\n type = resolvedNs.getRowType();\n } else if (scope instanceof ListScope\n && ((type =\n ((ListScope) scope).resolveColumn(name, id)) != null)) {\n // There's a column with the name we seek in precisely\n // one of the tables.\n ;\n } else {\n throw newValidationError(id,\n EigenbaseResource.instance().newUnknownIdentifier(\n name));\n }\n } else {\n RelDataType fieldType = lookupField(type, name);\n if (fieldType == null) {\n throw Util.newInternal(\"Could not find field '\" + name\n + \"' in '\" + type + \"'\");\n }\n type = fieldType;\n }\n }\n if (SqlTypeUtil.inCharFamily(type)) {\n Charset charset =\n (type.getCharset() == null) ? Util.getDefaultCharset()\n : type.getCharset();\n SqlCollation collation =\n (type.getCollation() == null)\n ? new SqlCollation(SqlCollation.Coercibility.Implicit)\n : type.getCollation();\n \n // todo: should get the implicit collation from repository\n // instead of null\n type =\n typeFactory.createTypeWithCharsetAndCollation(type,\n charset, collation);\n checkCharsetAndCollateConsistentIfCharType(type);\n }\n return type;\n }\n \n if (operand instanceof SqlLiteral) {\n SqlLiteral literal = (SqlLiteral) operand;\n return literal.createSqlType(typeFactory);\n }\n \n if (operand instanceof SqlIntervalQualifier) {\n return typeFactory.createSqlIntervalType(\n (SqlIntervalQualifier) operand);\n }\n \n if (operand instanceof SqlDynamicParam) {\n return unknownType;\n }\n \n // SqlDataTypeSpec may occur in an expression as the 2nd arg to the CAST\n // function.\n if (operand instanceof SqlDataTypeSpec) {\n SqlDataTypeSpec dataType = (SqlDataTypeSpec) operand;\n return dataType.deriveType(this);\n }\n \n if (operand instanceof SqlCall) {\n SqlCall call = (SqlCall) operand;\n checkForIllegalNull(call);\n SqlNode[] operands = call.getOperands();\n // special case for AS: never try to derive type for alias\n if (operand.isA(SqlKind.As)) {\n RelDataType nodeType = deriveType(scope, operands[0]);\n setValidatedNodeType(operands[0], nodeType);\n type = call.operator.getType(this, scope, call);\n return type;\n }\n \n if (call.isA(SqlKind.MultisetQueryConstructor)) {\n SqlSelect subSelect = (SqlSelect) call.operands[0];\n subSelect.validateExpr(this, scope);\n Namespace ns = getNamespace(subSelect);\n assert(null!=ns.getRowType());\n final RelDataType ret =\n typeFactory.createMultisetType(ns.getRowType(),-1);\n return typeFactory.createTypeWithNullability(\n ret, ns.getRowType().isNullable());\n }\n \n final SqlSyntax syntax = call.operator.getSyntax();\n switch (syntax.ordinal) {\n case SqlSyntax.Prefix_ordinal:\n case SqlSyntax.Postfix_ordinal:\n case SqlSyntax.Binary_ordinal:\n // TODO: use this switch statement to resolve functions instead\n // of all of these 'if's.\n }\n \n if (call.operator instanceof SqlCaseOperator) {\n return call.operator.getType(this, scope, call);\n }\n if (call.isA(SqlKind.Over)) {\n return call.operator.getType(this, scope, call);\n }\n \n Scope subScope = scope;\n if (scope instanceof AggregatingScope &&\n call.operator.isAggregator()) {\n subScope = ((AggregatingScope) scope).getScopeAboveAggregation();\n }\n if ((call.operator instanceof SqlFunction)\n || (call.operator instanceof SqlSpecialOperator)\n || (call.operator instanceof SqlRowOperator)) {\n RelDataType[] argTypes = new RelDataType[operands.length];\n for (int i = 0; i < operands.length; ++i) {\n // We can't derive a type for some operands.\n if (operands[i] instanceof SqlSymbol) {\n continue; // operand is a symbol e.g. LEADING\n }\n RelDataType nodeType = deriveType(subScope, operands[i]);\n setValidatedNodeType(operands[i], nodeType);\n argTypes[i] = nodeType;\n }\n \n if (!(call.operator instanceof SqlJdbcFunctionCall)\n && call.operator instanceof SqlFunction) {\n SqlFunction function;\n if (operands.length == 0 &&\n syntax == SqlSyntax.FunctionId) {\n // For example, \"LOCALTIME()\" is illegal. (It should be\n // \"LOCALTIME\", which would have been handled as a\n // SqlIdentifier.)\n function = null;\n } else {\n function = opTab.lookupFunction(call.operator.name,\n argTypes);\n }\n if (function == null) {\n // todo: localize \"Function\"\n List overloads =\n opTab.lookupFunctionsByName(call.operator.name);\n if ((null == overloads)\n || (Collections.EMPTY_LIST == overloads)) {\n throw newValidationError(call,\n EigenbaseResource.instance()\n .newValidatorUnknownFunction(\n call.operator.name));\n }\n SqlFunction fun = (SqlFunction) overloads.get(0);\n final Integer expectedArgCount = (Integer)\n fun.getOperandsCountDescriptor()\n .getPossibleNumOfOperands().get(0);\n throw newValidationError(call,\n EigenbaseResource.instance().newInvalidArgCount(\n call.operator.name,\n expectedArgCount));\n }\n call.operator = function;\n }\n return call.operator.getType(this, scope, call);\n }\n if (call.operator instanceof SqlBinaryOperator ||\n call.operator instanceof SqlPostfixOperator ||\n call.operator instanceof SqlPrefixOperator ) {\n RelDataType[] argTypes = new RelDataType[operands.length];\n for (int i = 0; i < operands.length; ++i) {\n RelDataType nodeType = deriveType(scope, operands[i]);\n setValidatedNodeType(operands[i], nodeType);\n argTypes[i] = nodeType;\n }\n type = call.operator.getType(this, scope, call);\n \n // Validate and determine coercibility and resulting collation\n // name of binary operator if needed.\n if (call.operator instanceof SqlBinaryOperator) {\n RelDataType operandType1 =\n getValidatedNodeType(call.operands[0]);\n RelDataType operandType2 =\n getValidatedNodeType(call.operands[1]);\n if (SqlTypeUtil.inCharFamily(operandType1)\n && SqlTypeUtil.inCharFamily(operandType2))\n {\n Charset cs1 = operandType1.getCharset();\n Charset cs2 = operandType2.getCharset();\n assert ((null != cs1) && (null != cs2)) :\n \"An implicit or explicit charset should have been set\";\n if (!cs1.equals(cs2)) {\n throw EigenbaseResource.instance()\n .newIncompatibleCharset(\n call.operator.name,\n cs1.name(),\n cs2.name());\n }\n \n SqlCollation col1 = operandType1.getCollation();\n SqlCollation col2 = operandType2.getCollation();\n assert ((null != col1) && (null != col2)) :\n \"An implicit or explicit collation should have been set\";\n \n //validation will occur inside getCoercibilityDyadicOperator...\n SqlCollation resultCol =\n SqlCollation.getCoercibilityDyadicOperator(col1,\n col2);\n \n if (SqlTypeUtil.inCharFamily(type)) {\n type =\n typeFactory.createTypeWithCharsetAndCollation(\n type,\n type.getCharset(),\n resultCol);\n }\n }\n }\n //determine coercibility and resulting collation name of unary operator if needed\n else if (SqlTypeUtil.inCharFamily(type)) {\n RelDataType operandType =\n getValidatedNodeType(call.operands[0]);\n if (null == operandType) {\n throw Util.newInternal(\n \"operand's type should have been derived\");\n }\n if (SqlTypeUtil.inCharFamily(operandType)) {\n SqlCollation collation = operandType.getCollation();\n assert (null != collation) : \"An implicit or explicit collation should have been set\";\n type =\n typeFactory.createTypeWithCharsetAndCollation(\n type,\n type.getCharset(),\n new SqlCollation(\n collation.getCollationName(),\n collation.getCoercibility()));\n }\n }\n checkCharsetAndCollateConsistentIfCharType(type);\n return type;\n } else {\n // TODO: if function can take record type (select statement) as\n // parameter, we need to derive type of SqlSelectOperator,\n // SqlJoinOperator etc here.\n return unknownType;\n }\n }\n // Operand is of a type that we can't derive a type for.\n // If the operand is of a peculiar type, such as a SqlNodeList, then\n // you should override the operator's validateCall() method so that\n // it doesn't try to validate that operand as an expression.\n throw Util.needToImplement(operand);\n }", "title": "" }, { "docid": "f34ef82a606caaa42449f5864f835614", "score": "0.51617444", "text": "public final void rule__TypeStatement__Group_2_1__1__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.eclipse.yang.ui/src-gen/org/xtext/editor/yang/ui/contentassist/antlr/internal/InternalYang.g:18743:1: ( ( ( rule__TypeStatement__TypesubstatementsAssignment_2_1_1 )* ) )\n // ../org.eclipse.yang.ui/src-gen/org/xtext/editor/yang/ui/contentassist/antlr/internal/InternalYang.g:18744:1: ( ( rule__TypeStatement__TypesubstatementsAssignment_2_1_1 )* )\n {\n // ../org.eclipse.yang.ui/src-gen/org/xtext/editor/yang/ui/contentassist/antlr/internal/InternalYang.g:18744:1: ( ( rule__TypeStatement__TypesubstatementsAssignment_2_1_1 )* )\n // ../org.eclipse.yang.ui/src-gen/org/xtext/editor/yang/ui/contentassist/antlr/internal/InternalYang.g:18745:1: ( rule__TypeStatement__TypesubstatementsAssignment_2_1_1 )*\n {\n before(grammarAccess.getTypeStatementAccess().getTypesubstatementsAssignment_2_1_1()); \n // ../org.eclipse.yang.ui/src-gen/org/xtext/editor/yang/ui/contentassist/antlr/internal/InternalYang.g:18746:1: ( rule__TypeStatement__TypesubstatementsAssignment_2_1_1 )*\n loop169:\n do {\n int alt169=2;\n int LA169_0 = input.LA(1);\n\n if ( ((LA169_0>=RULE_ID && LA169_0<=RULE_STRING)||LA169_0==29||(LA169_0>=41 && LA169_0<=42)||LA169_0==56||LA169_0==59||(LA169_0>=63 && LA169_0<=65)||(LA169_0>=90 && LA169_0<=92)) ) {\n alt169=1;\n }\n\n\n switch (alt169) {\n \tcase 1 :\n \t // ../org.eclipse.yang.ui/src-gen/org/xtext/editor/yang/ui/contentassist/antlr/internal/InternalYang.g:18746:2: rule__TypeStatement__TypesubstatementsAssignment_2_1_1\n \t {\n \t pushFollow(FOLLOW_rule__TypeStatement__TypesubstatementsAssignment_2_1_1_in_rule__TypeStatement__Group_2_1__1__Impl38987);\n \t rule__TypeStatement__TypesubstatementsAssignment_2_1_1();\n\n \t state._fsp--;\n\n\n \t }\n \t break;\n\n \tdefault :\n \t break loop169;\n }\n } while (true);\n\n after(grammarAccess.getTypeStatementAccess().getTypesubstatementsAssignment_2_1_1()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "9f9c471c9b4824793805385d0a25c09b", "score": "0.5160882", "text": "public final void rule__Cast_Expression__TypeAssignment_1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // InternalJava.g:13677:1: ( ( ruleType ) )\n // InternalJava.g:13678:1: ( ruleType )\n {\n // InternalJava.g:13678:1: ( ruleType )\n // InternalJava.g:13679:1: ruleType\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getCast_ExpressionAccess().getTypeTypeParserRuleCall_1_0()); \n }\n pushFollow(FOLLOW_2);\n ruleType();\n\n state._fsp--;\n if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getCast_ExpressionAccess().getTypeTypeParserRuleCall_1_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "037eea9eeddb0f00adf94c40a3eef44b", "score": "0.5155108", "text": "public final void rule__XTypeLiteral__TypeAssignment_3() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:17555:1: ( ( ( ruleQualifiedName ) ) )\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:17556:1: ( ( ruleQualifiedName ) )\n {\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:17556:1: ( ( ruleQualifiedName ) )\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:17557:1: ( ruleQualifiedName )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXTypeLiteralAccess().getTypeJvmTypeCrossReference_3_0()); \n }\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:17558:1: ( ruleQualifiedName )\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:17559:1: ruleQualifiedName\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXTypeLiteralAccess().getTypeJvmTypeQualifiedNameParserRuleCall_3_0_1()); \n }\n pushFollow(FOLLOW_ruleQualifiedName_in_rule__XTypeLiteral__TypeAssignment_335386);\n ruleQualifiedName();\n\n state._fsp--;\n if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXTypeLiteralAccess().getTypeJvmTypeQualifiedNameParserRuleCall_3_0_1()); \n }\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXTypeLiteralAccess().getTypeJvmTypeCrossReference_3_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "c5cc6cf550e5a3aaa967bec93a41ab98", "score": "0.51440525", "text": "public final void rule__XVariableDeclaration__TypeAssignment_2_0_0_0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:17141:1: ( ( ruleJvmTypeReference ) )\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:17142:1: ( ruleJvmTypeReference )\n {\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:17142:1: ( ruleJvmTypeReference )\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:17143:1: ruleJvmTypeReference\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXVariableDeclarationAccess().getTypeJvmTypeReferenceParserRuleCall_2_0_0_0_0()); \n }\n pushFollow(FOLLOW_ruleJvmTypeReference_in_rule__XVariableDeclaration__TypeAssignment_2_0_0_034534);\n ruleJvmTypeReference();\n\n state._fsp--;\n if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXVariableDeclarationAccess().getTypeJvmTypeReferenceParserRuleCall_2_0_0_0_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "af12369851dd2b50308ad62d9929fc7d", "score": "0.51435167", "text": "public final void rule__VAR_DECL__Group__4__Impl() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.xtext.module.dsl.ui/src-gen/org/xtext/ui/contentassist/antlr/internal/InternalModuleDsl.g:3076:1: ( ( ( rule__VAR_DECL__TypeAssignment_4 ) ) )\r\n // ../org.xtext.module.dsl.ui/src-gen/org/xtext/ui/contentassist/antlr/internal/InternalModuleDsl.g:3077:1: ( ( rule__VAR_DECL__TypeAssignment_4 ) )\r\n {\r\n // ../org.xtext.module.dsl.ui/src-gen/org/xtext/ui/contentassist/antlr/internal/InternalModuleDsl.g:3077:1: ( ( rule__VAR_DECL__TypeAssignment_4 ) )\r\n // ../org.xtext.module.dsl.ui/src-gen/org/xtext/ui/contentassist/antlr/internal/InternalModuleDsl.g:3078:1: ( rule__VAR_DECL__TypeAssignment_4 )\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getVAR_DECLAccess().getTypeAssignment_4()); \r\n }\r\n // ../org.xtext.module.dsl.ui/src-gen/org/xtext/ui/contentassist/antlr/internal/InternalModuleDsl.g:3079:1: ( rule__VAR_DECL__TypeAssignment_4 )\r\n // ../org.xtext.module.dsl.ui/src-gen/org/xtext/ui/contentassist/antlr/internal/InternalModuleDsl.g:3079:2: rule__VAR_DECL__TypeAssignment_4\r\n {\r\n pushFollow(FOLLOW_rule__VAR_DECL__TypeAssignment_4_in_rule__VAR_DECL__Group__4__Impl6400);\r\n rule__VAR_DECL__TypeAssignment_4();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getVAR_DECLAccess().getTypeAssignment_4()); \r\n }\r\n\r\n }\r\n\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 finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "0c32babae41e5396f3517b054d2fa1af", "score": "0.5142172", "text": "public final void rule__Method_declaration__Group__1__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // InternalJava.g:3708:1: ( ( ( rule__Method_declaration__TypeAssignment_1 ) ) )\n // InternalJava.g:3709:1: ( ( rule__Method_declaration__TypeAssignment_1 ) )\n {\n // InternalJava.g:3709:1: ( ( rule__Method_declaration__TypeAssignment_1 ) )\n // InternalJava.g:3710:1: ( rule__Method_declaration__TypeAssignment_1 )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getMethod_declarationAccess().getTypeAssignment_1()); \n }\n // InternalJava.g:3711:1: ( rule__Method_declaration__TypeAssignment_1 )\n // InternalJava.g:3711:2: rule__Method_declaration__TypeAssignment_1\n {\n pushFollow(FOLLOW_2);\n rule__Method_declaration__TypeAssignment_1();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getMethod_declarationAccess().getTypeAssignment_1()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "ba99f81c1c0f9d3a3251f27a6de4dd57", "score": "0.5129641", "text": "public final void rule__Integer_type__KindAssignment_2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalIoT.g:11275:1: ( ( rulelonglong_type ) )\n // InternalIoT.g:11276:2: ( rulelonglong_type )\n {\n // InternalIoT.g:11276:2: ( rulelonglong_type )\n // InternalIoT.g:11277:3: rulelonglong_type\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getInteger_typeAccess().getKindLonglong_typeParserRuleCall_2_0()); \n }\n pushFollow(FOLLOW_2);\n rulelonglong_type();\n\n state._fsp--;\n if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getInteger_typeAccess().getKindLonglong_typeParserRuleCall_2_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "15a46eab2d82c08a8c7df7b251194804", "score": "0.5128355", "text": "public final void rule__Variable_parameter_section__TypeAssignment_3() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalPascal.g:10730:1: ( ( ruleparameter_type ) )\n // InternalPascal.g:10731:2: ( ruleparameter_type )\n {\n // InternalPascal.g:10731:2: ( ruleparameter_type )\n // InternalPascal.g:10732:3: ruleparameter_type\n {\n before(grammarAccess.getVariable_parameter_sectionAccess().getTypeParameter_typeParserRuleCall_3_0()); \n pushFollow(FOLLOW_2);\n ruleparameter_type();\n\n state._fsp--;\n\n after(grammarAccess.getVariable_parameter_sectionAccess().getTypeParameter_typeParserRuleCall_3_0()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "1d97127670f3ac132316eebc7106011e", "score": "0.5117785", "text": "public final void rule__RelationalExpression__OperatorAssignment_1_0_1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.eclipselabs.mscript.language.ui/src-gen/org/eclipselabs/mscript/language/ui/contentassist/antlr/internal/InternalMscript.g:16061:1: ( ( ruleRelationalOperator ) )\n // ../org.eclipselabs.mscript.language.ui/src-gen/org/eclipselabs/mscript/language/ui/contentassist/antlr/internal/InternalMscript.g:16062:1: ( ruleRelationalOperator )\n {\n // ../org.eclipselabs.mscript.language.ui/src-gen/org/eclipselabs/mscript/language/ui/contentassist/antlr/internal/InternalMscript.g:16062:1: ( ruleRelationalOperator )\n // ../org.eclipselabs.mscript.language.ui/src-gen/org/eclipselabs/mscript/language/ui/contentassist/antlr/internal/InternalMscript.g:16063:1: ruleRelationalOperator\n {\n before(grammarAccess.getRelationalExpressionAccess().getOperatorRelationalOperatorEnumRuleCall_1_0_1_0()); \n pushFollow(FOLLOW_ruleRelationalOperator_in_rule__RelationalExpression__OperatorAssignment_1_0_132326);\n ruleRelationalOperator();\n _fsp--;\n\n after(grammarAccess.getRelationalExpressionAccess().getOperatorRelationalOperatorEnumRuleCall_1_0_1_0()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "7dbb709f98fae5947bba7323da3f63e7", "score": "0.5117375", "text": "public final void rule__FaultContainment__TypeAssignment_4() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalSafetyDSL.g:10153:1: ( ( RULE_STRING ) )\n // InternalSafetyDSL.g:10154:2: ( RULE_STRING )\n {\n // InternalSafetyDSL.g:10154:2: ( RULE_STRING )\n // InternalSafetyDSL.g:10155:3: RULE_STRING\n {\n before(grammarAccess.getFaultContainmentAccess().getTypeSTRINGTerminalRuleCall_4_0()); \n match(input,RULE_STRING,FOLLOW_2); \n after(grammarAccess.getFaultContainmentAccess().getTypeSTRINGTerminalRuleCall_4_0()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "e8d2dd81b52957be95abf79ca9340e6e", "score": "0.5117129", "text": "public final void rule__Floating_pt_type__KindAssignment_1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalIoT.g:11215:1: ( ( ruledouble_type ) )\n // InternalIoT.g:11216:2: ( ruledouble_type )\n {\n // InternalIoT.g:11216:2: ( ruledouble_type )\n // InternalIoT.g:11217:3: ruledouble_type\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getFloating_pt_typeAccess().getKindDouble_typeEnumRuleCall_1_0()); \n }\n pushFollow(FOLLOW_2);\n ruledouble_type();\n\n state._fsp--;\n if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getFloating_pt_typeAccess().getKindDouble_typeEnumRuleCall_1_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "da8e007dbb223c92e80bad79693f4c1d", "score": "0.5115453", "text": "public final void rule__EqualityExpression__Group_1__2__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.eclipselabs.mscript.language.ui/src-gen/org/eclipselabs/mscript/language/ui/contentassist/antlr/internal/InternalMscript.g:10028:1: ( ( ( rule__EqualityExpression__RightOperandAssignment_1_2 ) ) )\n // ../org.eclipselabs.mscript.language.ui/src-gen/org/eclipselabs/mscript/language/ui/contentassist/antlr/internal/InternalMscript.g:10029:1: ( ( rule__EqualityExpression__RightOperandAssignment_1_2 ) )\n {\n // ../org.eclipselabs.mscript.language.ui/src-gen/org/eclipselabs/mscript/language/ui/contentassist/antlr/internal/InternalMscript.g:10029:1: ( ( rule__EqualityExpression__RightOperandAssignment_1_2 ) )\n // ../org.eclipselabs.mscript.language.ui/src-gen/org/eclipselabs/mscript/language/ui/contentassist/antlr/internal/InternalMscript.g:10030:1: ( rule__EqualityExpression__RightOperandAssignment_1_2 )\n {\n before(grammarAccess.getEqualityExpressionAccess().getRightOperandAssignment_1_2()); \n // ../org.eclipselabs.mscript.language.ui/src-gen/org/eclipselabs/mscript/language/ui/contentassist/antlr/internal/InternalMscript.g:10031:1: ( rule__EqualityExpression__RightOperandAssignment_1_2 )\n // ../org.eclipselabs.mscript.language.ui/src-gen/org/eclipselabs/mscript/language/ui/contentassist/antlr/internal/InternalMscript.g:10031:2: rule__EqualityExpression__RightOperandAssignment_1_2\n {\n pushFollow(FOLLOW_rule__EqualityExpression__RightOperandAssignment_1_2_in_rule__EqualityExpression__Group_1__2__Impl20360);\n rule__EqualityExpression__RightOperandAssignment_1_2();\n _fsp--;\n\n\n }\n\n after(grammarAccess.getEqualityExpressionAccess().getRightOperandAssignment_1_2()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "cdb77891f4ed4695b96f03ab53b09a15", "score": "0.510993", "text": "public final void rule__TypeStatement__ImporttypeAssignment_1_1_1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.eclipse.yang.ui/src-gen/org/xtext/editor/yang/ui/contentassist/antlr/internal/InternalYang.g:22103:1: ( ( ( RULE_ID ) ) )\n // ../org.eclipse.yang.ui/src-gen/org/xtext/editor/yang/ui/contentassist/antlr/internal/InternalYang.g:22104:1: ( ( RULE_ID ) )\n {\n // ../org.eclipse.yang.ui/src-gen/org/xtext/editor/yang/ui/contentassist/antlr/internal/InternalYang.g:22104:1: ( ( RULE_ID ) )\n // ../org.eclipse.yang.ui/src-gen/org/xtext/editor/yang/ui/contentassist/antlr/internal/InternalYang.g:22105:1: ( RULE_ID )\n {\n before(grammarAccess.getTypeStatementAccess().getImporttypeTypedefStatementCrossReference_1_1_1_0()); \n // ../org.eclipse.yang.ui/src-gen/org/xtext/editor/yang/ui/contentassist/antlr/internal/InternalYang.g:22106:1: ( RULE_ID )\n // ../org.eclipse.yang.ui/src-gen/org/xtext/editor/yang/ui/contentassist/antlr/internal/InternalYang.g:22107:1: RULE_ID\n {\n before(grammarAccess.getTypeStatementAccess().getImporttypeTypedefStatementIDTerminalRuleCall_1_1_1_0_1()); \n match(input,RULE_ID,FOLLOW_RULE_ID_in_rule__TypeStatement__ImporttypeAssignment_1_1_145781); \n after(grammarAccess.getTypeStatementAccess().getImporttypeTypedefStatementIDTerminalRuleCall_1_1_1_0_1()); \n\n }\n\n after(grammarAccess.getTypeStatementAccess().getImporttypeTypedefStatementCrossReference_1_1_1_0()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "856a830e239734ae638516ed0bc0c45c", "score": "0.5107223", "text": "public final void rule__Repository__Group__3__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalQms.g:517:1: ( ( ( rule__Repository__TypeAssignment_3 ) ) )\n // InternalQms.g:518:1: ( ( rule__Repository__TypeAssignment_3 ) )\n {\n // InternalQms.g:518:1: ( ( rule__Repository__TypeAssignment_3 ) )\n // InternalQms.g:519:2: ( rule__Repository__TypeAssignment_3 )\n {\n before(grammarAccess.getRepositoryAccess().getTypeAssignment_3()); \n // InternalQms.g:520:2: ( rule__Repository__TypeAssignment_3 )\n // InternalQms.g:520:3: rule__Repository__TypeAssignment_3\n {\n pushFollow(FOLLOW_2);\n rule__Repository__TypeAssignment_3();\n\n state._fsp--;\n\n\n }\n\n after(grammarAccess.getRepositoryAccess().getTypeAssignment_3()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "d75de0f78bc902be6354acdd379a5d52", "score": "0.5103012", "text": "public final void rule__TypeAliasDefinition__Group__2__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.eclipselabs.mscript.language.ui/src-gen/org/eclipselabs/mscript/language/ui/contentassist/antlr/internal/InternalMscript.g:3487:1: ( ( '=' ) )\n // ../org.eclipselabs.mscript.language.ui/src-gen/org/eclipselabs/mscript/language/ui/contentassist/antlr/internal/InternalMscript.g:3488:1: ( '=' )\n {\n // ../org.eclipselabs.mscript.language.ui/src-gen/org/eclipselabs/mscript/language/ui/contentassist/antlr/internal/InternalMscript.g:3488:1: ( '=' )\n // ../org.eclipselabs.mscript.language.ui/src-gen/org/eclipselabs/mscript/language/ui/contentassist/antlr/internal/InternalMscript.g:3489:1: '='\n {\n before(grammarAccess.getTypeAliasDefinitionAccess().getEqualsSignKeyword_2()); \n match(input,39,FOLLOW_39_in_rule__TypeAliasDefinition__Group__2__Impl7505); \n after(grammarAccess.getTypeAliasDefinitionAccess().getEqualsSignKeyword_2()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "cd412f52167f5cab8a369a121d31594a", "score": "0.50995255", "text": "public final void rule__Match__Group__3__Impl() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalEsportDsl.g:4585:1: ( ( ( rule__Match__TypeAssignment_3 ) ) )\r\n // InternalEsportDsl.g:4586:1: ( ( rule__Match__TypeAssignment_3 ) )\r\n {\r\n // InternalEsportDsl.g:4586:1: ( ( rule__Match__TypeAssignment_3 ) )\r\n // InternalEsportDsl.g:4587:2: ( rule__Match__TypeAssignment_3 )\r\n {\r\n before(grammarAccess.getMatchAccess().getTypeAssignment_3()); \r\n // InternalEsportDsl.g:4588:2: ( rule__Match__TypeAssignment_3 )\r\n // InternalEsportDsl.g:4588:3: rule__Match__TypeAssignment_3\r\n {\r\n pushFollow(FOLLOW_2);\r\n rule__Match__TypeAssignment_3();\r\n\r\n state._fsp--;\r\n\r\n\r\n }\r\n\r\n after(grammarAccess.getMatchAccess().getTypeAssignment_3()); \r\n\r\n }\r\n\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 finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "7f9ead6d050205b2ed8e9655d735e0b7", "score": "0.50973153", "text": "public final void rule__LDP__Dsl_LDPAssignment_1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../net.ages.workbench.templates.dsl.ui/src-gen/net/ages/workbench/templates/dsl/ui/contentassist/antlr/internal/InternalAtem.g:14522:1: ( ( ruleLdpType ) )\n // ../net.ages.workbench.templates.dsl.ui/src-gen/net/ages/workbench/templates/dsl/ui/contentassist/antlr/internal/InternalAtem.g:14523:1: ( ruleLdpType )\n {\n // ../net.ages.workbench.templates.dsl.ui/src-gen/net/ages/workbench/templates/dsl/ui/contentassist/antlr/internal/InternalAtem.g:14523:1: ( ruleLdpType )\n // ../net.ages.workbench.templates.dsl.ui/src-gen/net/ages/workbench/templates/dsl/ui/contentassist/antlr/internal/InternalAtem.g:14524:1: ruleLdpType\n {\n before(grammarAccess.getLDPAccess().getDsl_LDPLdpTypeParserRuleCall_1_0()); \n pushFollow(FOLLOW_ruleLdpType_in_rule__LDP__Dsl_LDPAssignment_130021);\n ruleLdpType();\n\n state._fsp--;\n\n after(grammarAccess.getLDPAccess().getDsl_LDPLdpTypeParserRuleCall_1_0()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "46820483115ed22c70281e7fbef916d9", "score": "0.5091649", "text": "public final void rule__Declaration_part__Group__2__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalPascal.g:3145:1: ( ( ( rule__Declaration_part__Type_defAssignment_2 )? ) )\n // InternalPascal.g:3146:1: ( ( rule__Declaration_part__Type_defAssignment_2 )? )\n {\n // InternalPascal.g:3146:1: ( ( rule__Declaration_part__Type_defAssignment_2 )? )\n // InternalPascal.g:3147:2: ( rule__Declaration_part__Type_defAssignment_2 )?\n {\n before(grammarAccess.getDeclaration_partAccess().getType_defAssignment_2()); \n // InternalPascal.g:3148:2: ( rule__Declaration_part__Type_defAssignment_2 )?\n int alt36=2;\n int LA36_0 = input.LA(1);\n\n if ( (LA36_0==33) ) {\n alt36=1;\n }\n switch (alt36) {\n case 1 :\n // InternalPascal.g:3148:3: rule__Declaration_part__Type_defAssignment_2\n {\n pushFollow(FOLLOW_2);\n rule__Declaration_part__Type_defAssignment_2();\n\n state._fsp--;\n\n\n }\n break;\n\n }\n\n after(grammarAccess.getDeclaration_partAccess().getType_defAssignment_2()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "37cb8ef10e6bc652b30cc8d29d20de29", "score": "0.507509", "text": "public final void entryRuleTypeStatement() throws RecognitionException {\n try {\n // ../org.eclipse.yang.ui/src-gen/org/xtext/editor/yang/ui/contentassist/antlr/internal/InternalYang.g:2553:1: ( ruleTypeStatement EOF )\n // ../org.eclipse.yang.ui/src-gen/org/xtext/editor/yang/ui/contentassist/antlr/internal/InternalYang.g:2554:1: ruleTypeStatement EOF\n {\n before(grammarAccess.getTypeStatementRule()); \n pushFollow(FOLLOW_ruleTypeStatement_in_entryRuleTypeStatement5401);\n ruleTypeStatement();\n\n state._fsp--;\n\n after(grammarAccess.getTypeStatementRule()); \n match(input,EOF,FOLLOW_EOF_in_entryRuleTypeStatement5408); \n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n }\n return ;\n }", "title": "" } ]
9e6b5213cf4e55c3a941b6c790df9dcf
Determines whether the passed in task has cost avoidance. The rules are: If goodwill PO and cost avoidance amount is null, then is cost avoidance task If cost avoidance amount exist and is greater than 0, then is cost avoidance task Otherwise, the task does not have cost avoidance
[ { "docid": "3c2e8b0aafd18598ec522d1f9fd6c854", "score": "0.7894678", "text": "private boolean hasCostAvoidance(MaintenanceRequestTask maintenanceRequestTask){\n\t\tboolean isGoodwill = false;\n\t\tboolean isCostAvoidance = false;\n\t\t\n\t\tisGoodwill = hasGoodwill(maintenanceRequestTask.getMaintenanceRequest());\t\n\t\t\n\t\tif(isGoodwill && !maintenanceRequestTask.getMaintenanceRequest().getMaintReqStatus().equals(MaintenanceRequestStatusEnum.MAINT_REQUEST_STATUS_COMPLETE.getCode()) \n\t\t\t\t&& MALUtilities.isEmpty(maintenanceRequestTask.getCostAvoidanceAmount())){\n\t\t\tisCostAvoidance = true;\n\t\t} else if (!(MALUtilities.isEmpty(maintenanceRequestTask.getCostAvoidanceAmount()) \n\t\t\t\t|| maintenanceRequestTask.getCostAvoidanceAmount().compareTo(new BigDecimal(0)) < 1)){\n\t\t\tisCostAvoidance = true;\n\t\t} else {\n\t\t\tisCostAvoidance = false;\n\t\t}\t\t\t\n\t\t \n\t\treturn isCostAvoidance;\n\t}", "title": "" } ]
[ { "docid": "afdc8aad3b02d355e735467aa5435131", "score": "0.65201914", "text": "private boolean hasGoodwill(MaintenanceRequest maintenanceRequest){\n\t\tMaintenanceRequestTask task = null;\n\t\tboolean isGoodwill = false;\n\t\t\n\t\tif(!MALUtilities.isEmpty(maintenanceRequest.getMrqMrqId())){\n\t\t\tisGoodwill = true;\n\t\t}\n\t\t\t\t\n\t\tfor (Iterator<MaintenanceRequestTask> mrt = maintenanceRequest.getMaintenanceRequestTasks().iterator(); mrt.hasNext() && !isGoodwill;){\n\t\t\ttask = (MaintenanceRequestTask)mrt.next();\n\t\t\tif(!(MALUtilities.isEmpty(task.getGoodwillCost()) || task.getGoodwillCost().compareTo(new BigDecimal(0)) < 1)){\n\t\t\t\tisGoodwill = true;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\t\t\n\t\t\n\t\treturn isGoodwill;\n\t}", "title": "" }, { "docid": "07c90e9b3a0923189caca99d108179c0", "score": "0.6073648", "text": "@Override\n\tpublic boolean isTaskDiscountedBySupplier(ServiceProvider serviceProvider, MaintenanceRequestTask task) {\n\t\tboolean discountFlag = true;\n\t\tString networkFlag = MALUtilities.isEmptyString(serviceProvider.getNetworkVendor()) ? \"N\" : serviceProvider.getNetworkVendor();\n\t\tif (networkFlag.equalsIgnoreCase(\"N\")){\n\t\t\tdiscountFlag = false;\n\t\t} else {\n\t\t\tList<ServiceProviderMaintenanceCode> list = serviceProviderMaintenanceCodeDAO.getServiceProviderMaintCodesByMaintenanceCodeIdAndProvider(\n\t\t\t\t\ttask.getMaintenanceCode().getMcoId(), serviceProvider.getServiceProviderId());\n\t\t\tif(list.size() > 0 && list.get(0).getDiscountFlag().equalsIgnoreCase(\"N\")) {\n\t\t\t\t\tdiscountFlag = false;\n\t\t\t}\n\t\t}\n\t\treturn discountFlag;\n\t}", "title": "" }, { "docid": "b9cb1a53e0ce4344a5f93117d813a38c", "score": "0.59643507", "text": "private static boolean hasFunds(double cost)\n {\n if (Clock.getRoundNum() < 200) { //TODO edit this out if necessary\n return rc.getTeamOre() > cost;\n } else {\n return rc.getTeamOre() > cost*2;\n }\n }", "title": "" }, { "docid": "8181bdafb2d6da0d47dab22fe3f6a5de", "score": "0.5714396", "text": "public boolean canSpendMoney(int cost) {\r\n\t\tif (money - cost >= 0) {\r\n\t\t\treturn true;\r\n\t\t} else {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "41e158f0c858dce11c8ba50d5a03279e", "score": "0.54852265", "text": "public BigDecimal sumCostAvoidanceTotal(MaintenanceRequest po){\n\t\tBigDecimal total = new BigDecimal(0.00).setScale(2);\n\t\t\n\t\tfor(MaintenanceRequestTask task : po.getMaintenanceRequestTasks()){\n\t\t\ttotal = total.add(MALUtilities.isEmpty(task.getCostAvoidanceAmount()) ? new BigDecimal(0) : task.getCostAvoidanceAmount());\n\t\t}\n\t\t\n\t\treturn total;\t\t\n\t}", "title": "" }, { "docid": "377e353ec6f661e5a99eafcb90432562", "score": "0.54843676", "text": "public boolean isBancrupt(){\r\n \treturn _budget <= 0;\r\n }", "title": "" }, { "docid": "a076574f5fe6d27d4a54cc8d60267c07", "score": "0.5479048", "text": "private boolean checkCost(int owner, ItemType item) {\n\t\t\t\t\treturn false;\n\t\t\t\t}", "title": "" }, { "docid": "4cec39fe8e8b38f5782b0e93bb5c8408", "score": "0.5452735", "text": "private MaintenanceRequestTask initializeCostAvoidanceIndicators(MaintenanceRequestTask maintenanceRequestTask){\n\t\tmaintenanceRequestTask.setCostAvoidanceIndicator(hasCostAvoidance(maintenanceRequestTask));\n\t\treturn maintenanceRequestTask;\n\t}", "title": "" }, { "docid": "2c26a78cae2a28673f0a5198db2b1ba6", "score": "0.5366244", "text": "public static boolean isSafe(Task currTask){\n\n for(int i = 0; i < numResources; i ++){\n if(currTask.claimsArr[i] - currTask.resourceHoldings[i] > resourceArr[i]){\n return false;\n }\n }\n return true;\n }", "title": "" }, { "docid": "dcdebb5885c0c24747490ce7ac437866", "score": "0.53407496", "text": "public Boolean verifyTheValueOneTimeCostIsInZero() {\n\t\tSystem.out.println(\"Starting to verify if one time cost is equal to 0.00.\");\n\t\treturn verifyIfSomeStringContainsZeroDotZeroZeroValueInside(getTextByLocator(body_value_onetimecost));\n\t}", "title": "" }, { "docid": "f7e461c5ef6e87ba86921cdf7f3d80c5", "score": "0.53150403", "text": "private boolean CheckCostToBuildOrUpgrade(double cost)\r\n {\r\n return cost <= this.bitcoins;\r\n }", "title": "" }, { "docid": "b746254b1564b86f124fac77ecd6a88e", "score": "0.529524", "text": "public static boolean addressNonWaitingBanker(){\n boolean addressedSomething = false;\n for(int i = 0 ; i < taskPointers.length; i ++){\n int pointerIndex = taskPointers[i];\n Task currTask = taskList.get(i);\n\n if(currTask.terminateTime == - 1 && (currTask.isAborted == false) && Collections.disjoint(waitingList, currTask.instructionList)){\n\n Instruction currInstruction = currTask.instructionList.get(pointerIndex);\n Type instructionType = currInstruction.instructionType;\n int resourceType = currInstruction.resourceType;\n\n if(instructionType == Type.initiate){\n if(currInstruction.claim > maxResourceArr[currInstruction.resourceType]){\n System.out.println(\"Banker aborts task \" + currTask.taskNumber+ \" before run begins: claim for resource \" + (resourceType + 1)+ \" (\" + currInstruction.claim + \") \" + \" exceeds number of units present \" + \" (\" + maxResourceArr[currInstruction.resourceType] + \") \");\n currTask.isAborted = true;\n terminatedCount += 1;\n }else{\n currTask.startTime = time;\n addressedSomething = true;\n }\n\n }else if(instructionType == Type.request){\n if(bankerRequest(currInstruction)){\n addressedSomething = true;\n }else{\n // System.out.println(\"Task \" + currTask.taskNumber + \" could not be completed\");\n }\n }// when it is time to add the waitingInstructions what you should do is something along the lines of\n else if(instructionType == Type.compute){\n int numberCycles = currInstruction.numberCycles;\n if(currTask.computeTime == 0){\n currTask.computeTime = currInstruction.numberCycles;\n }\n currTask.computeTime -= 1;\n\n //System.out.println(\"Task \" + currTask.taskNumber + \" computes \" + (currInstruction.numberCycles - currTask.computeTime));\n\n addressedSomething = true;\n }else if(instructionType == Type.release){\n int amountReleased = currInstruction.resourceAmount;\n release(resourceType, amountReleased, currTask);\n //System.out.println(\"Task \" + currTask.taskNumber + \" released its resources\");\n addressedSomething = true;\n }else{ // if its terminate\n currTask.terminateTime = time;\n //System.out.println(\"Task \" + currTask.taskNumber + \" terminates at time t = \" + time);\n terminatedCount ++;\n releaseAll(currTask);\n addressedSomething = true;\n }\n if(currTask.computeTime == 0){\n taskPointers[i] ++;\n }\n }\n\n }\n return addressedSomething;\n }", "title": "" }, { "docid": "ba265ffb00444ac09fa8c805b273a48e", "score": "0.52664745", "text": "public BigDecimal sumGoodwillTotal(MaintenanceRequest po){\n\t\tBigDecimal total = new BigDecimal(0.00).setScale(2);\n\t\t\n\t\tfor(MaintenanceRequestTask task : po.getMaintenanceRequestTasks()){\n\t\t\ttotal = total.add(MALUtilities.isEmpty(task.getGoodwillCost()) ? new BigDecimal(0) : task.getGoodwillCost());\n\t\t}\n\t\t\n\t\treturn total;\t\t\n\t}", "title": "" }, { "docid": "a7ada64b43340ecbe8fdeb169050b631", "score": "0.52607167", "text": "public void executedTask(Task task) { // called by the inference rules\r\n float budget = task.getBudget().singleValue();\r\n float minSilent = parameters.SILENT_LEVEL / 100.0f;\r\n if (budget > minSilent)\r\n report(task.getSentence(), false);\r\n }", "title": "" }, { "docid": "f823620d771d762c30967e1cd91e9a29", "score": "0.5242968", "text": "public boolean checkSatisifies(Design design, AUndertaking task)\n {\n resetState();\n return checkCombination(design, task);\n }", "title": "" }, { "docid": "b0ae1053eff63e62145b72323a149da7", "score": "0.5202143", "text": "@Test\n\tpublic void caseCostWithCorrectInput() {\n\t\tFloat cost = 50f;\n\t\tboolean isNameValid;\n\t\ttry {\n\t\t\tisNameValid = StringNumberUtil.positiveNumberUtil(cost);\n\t\t\tassertTrue(isNameValid);\n\t\t} catch (NumberException e) {\n\t\t\tfail();\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "bc71a10217ff850959e01f02558a357b", "score": "0.5188602", "text": "private boolean checkCost(int owner, ItemType item) {\n\t\tint[] cost = item.getCost();\n\t\tResourceManager rm = (ResourceManager) GameManager.get()\n\t\t\t\t.getManager(ResourceManager.class);\n\t\tif (rm.getRocks(owner) < cost[0]) {\n\t\t\treturn false;\n\t\t} else if (rm.getCrystal(owner) < cost[1]) {\n\t\t\treturn false;\n\t\t} else if (rm.getBiomass(owner) < cost[2]) {\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}", "title": "" }, { "docid": "7d40c83a62f2f9c7f6f9e5e3e9c3051f", "score": "0.5158576", "text": "public Boolean verifyTheValueTotalCostIsInZero() {\n\t\tSystem.out.println(\"Starting to verify if the value total cost is equal to zero.\");\n\t\treturn verifyIfSomeStringContainsZeroDotZeroZeroValueInside(getTextByLocator(body_value_total));\n\t}", "title": "" }, { "docid": "86d12f974dc47803470aaa6fbaac7514", "score": "0.51236844", "text": "public Boolean verifyTheValueDeliveryCostIsInZero() {\n\t\tSystem.out.println(\"Starting to verify if the value delivery cost is equal to zero.\");\n\t\treturn verifyIfSomeStringContainsZeroDotZeroZeroValueInside(getTextByLocator(body_value_deliverycost));\n\t}", "title": "" }, { "docid": "68561b2c738e9d14a5ea6f3322d46003", "score": "0.5120212", "text": "public boolean solution(int total_money, int total_damage, int[] costs, int[] damages) {\n int size = costs.length;\n float [] damageCost = new float[costs.length];\n float tempFloat;\n int tempInt;\n for (int i=0;i< size; i++){\n damageCost[i] = damages[i] / (float) costs[i];\n }\n //Sorting damagesCost array in decreasing order of their ratio and then sorting damages and cost accordingly\n for(int i=0; i<size; i++){\n for(int j=0; j< size-i-1; j++){\n if(damageCost[j] < damageCost[j+1]){\n //Swap damageCost array\n tempFloat = damageCost[j];\n damageCost[j] = damageCost[j+1];\n damageCost[j+1] = tempFloat;\n\n tempInt = damages[j];\n damages[j] = damages[j+1];\n damages[j+1] = tempInt;\n\n tempInt = costs[j];\n costs[j] = costs[j+1];\n costs[j+1] = tempInt;\n }\n }\n }\n int index = 0;\n while( total_money > 0){\n total_money -= costs[index];\n total_damage -= damages[index];\n //Check to see you have covered the damage and as well you are not low on cost\n if(total_damage<=0 && total_money>=0){\n return true;\n }\n }\n return false;\n }", "title": "" }, { "docid": "0e9dd888ca5ec871b163cae56704d649", "score": "0.5112356", "text": "private boolean isValidtreatment(Task<?> treatment) {\n\t\treturn treatment != null && treatment.getDescription() instanceof Treatment;\n\t}", "title": "" }, { "docid": "07260c3728891369224aef10195fac44", "score": "0.5096766", "text": "public static boolean bankerRequest(Instruction currInstruction){\n Task currTask = taskList.get(currInstruction.taskNumber - 1);\n int resourceType = currInstruction.resourceType;\n int amountRequested = currInstruction.resourceAmount;\n if(currTask.claimsArr[resourceType - 1] < currTask.resourceHoldings[resourceType - 1] + amountRequested ){\n System.out.println(\"During Cycle \" + time + \"-\" + (time + 1) + \" of Banker's algorithm, Task \" + currTask.taskNumber + \" request exceeds its claim; aborted \");\n for(int j = 0 ; j < currTask.resourceHoldings.length; j ++){\n System.out.println(currTask.resourceHoldings[j] + \" units of resource \" + (j+ 1) +\" available next cycle\");\n }\n currTask.isAborted = true;\n terminatedCount ++;\n releaseAll(currTask);\n return false;\n }\n\n if(resourceArr[resourceType - 1] >= amountRequested){\n currTask.resourceHoldings[resourceType - 1] += amountRequested;\n resourceArr[resourceType - 1] -= amountRequested;\n\n if(isSafe(currTask)){\n return true;\n }else{\n currTask.resourceHoldings[resourceType - 1] -= amountRequested;\n resourceArr[resourceType - 1] += amountRequested;\n\n if(!waitingList.contains(currInstruction)){\n currInstruction.arrivalTime = time;\n waitingList.add(currInstruction);\n }\n currTask.waitingCount += 1;\n\n return false;\n }\n }else{\n\n if(!waitingList.contains(currInstruction)){\n currInstruction.arrivalTime = time;\n waitingList.add(currInstruction);\n }\n currTask.waitingCount += 1;\n }\n return false;\n }", "title": "" }, { "docid": "ffa29fa92f7cb05a46acc2b94d6e8048", "score": "0.50508726", "text": "public static boolean addressNonWaiting(){\n boolean addressedSomething = false;\n for(int i = 0 ; i < taskPointers.length; i ++){\n int pointerIndex = taskPointers[i];\n Task currTask = taskList.get(i);\n\n if(currTask.terminateTime == - 1 && (currTask.isAborted == false) && Collections.disjoint(waitingList, currTask.instructionList)){\n // see if we can allocate resources\n\n\n Instruction currInstruction = currTask.instructionList.get(pointerIndex);\n Type instructionType = currInstruction.instructionType;\n int resourceType = currInstruction.resourceType;\n\n if(instructionType == Type.initiate){\n currTask.startTime = time;\n addressedSomething = true;\n //System.out.println(\"Task \" + currTask.taskNumber + \" was initiated\");\n }else if(instructionType == Type.request){\n if(request(currInstruction)){\n addressedSomething = true;\n //System.out.println(\"Task \" + currTask.taskNumber + \" had its request completed\");\n }else{\n //System.out.println(\"Task \" + currTask.taskNumber + \" could not be completed\");\n }\n }// when it is time to add the waitingInstructions what you should do is something along the lines of\n else if(instructionType == Type.compute){\n int numberCycles = currInstruction.numberCycles;\n if(currTask.computeTime == 0){\n currTask.computeTime = currInstruction.numberCycles;\n }\n currTask.computeTime -= 1;\n\n //System.out.println(\"Task \" + currTask.taskNumber + \" computes \" + (currInstruction.numberCycles - currTask.computeTime));\n\n addressedSomething = true;\n }else if(instructionType == Type.release){\n int amountReleased = currInstruction.resourceAmount;\n release(resourceType, amountReleased, currTask);\n //System.out.println(\"Task \" + currTask.taskNumber + \" released its resources\");\n addressedSomething = true;\n }else{ // if its terminate\n currTask.terminateTime = time;\n // System.out.println(\"Task \" + currTask.taskNumber + \" terminates at time t = \" + time);\n terminatedCount ++;\n releaseAll(currTask);\n addressedSomething = true;\n }\n if(currTask.computeTime == 0){\n taskPointers[i] ++;\n }\n }\n\n }\n return addressedSomething;\n }", "title": "" }, { "docid": "a97686fee6218f799148c2e7f5a385fe", "score": "0.5041379", "text": "public static boolean isCostEffective(TestSuite t, TestSuite tm, int versionNum, Technique m){\n\t\t//TODO:implement me! \n\t\treturn true;\n\t}", "title": "" }, { "docid": "4cc13a81e59db0480a58f2e72bdac750", "score": "0.5000208", "text": "protected boolean canNegtiveAmountBeTransferred(Map<String, ExpenseTransferAccountingLine> accountingLineGroupMap) {\n for (String key : accountingLineGroupMap.keySet()) {\n ExpenseTransferAccountingLine accountingLine = accountingLineGroupMap.get(key);\n Map<String, Object> fieldValues = this.buildFieldValueMap(accountingLine);\n\n KualiDecimal balanceAmount = getBalanceAmount(fieldValues, accountingLine.getPayrollEndDateFiscalPeriodCode());\n KualiDecimal transferAmount = accountingLine.getAmount();\n\n // a negtive amount cannot be transferred if the balance amount is positive\n if (transferAmount.isNegative() && balanceAmount.isPositive()) {\n return false;\n }\n }\n return true;\n }", "title": "" }, { "docid": "a0e9851f279ff871b62f7aa3ad2b68e7", "score": "0.49945465", "text": "@Override\r\n\tpublic boolean checkBudget() {\n\t\treturn false;\r\n\t}", "title": "" }, { "docid": "5d660866edac2aeec9339c3c310aa392", "score": "0.499051", "text": "public void checkTask(String task){\r\n\t\t\r\n\t}", "title": "" }, { "docid": "562e133ed01c2c89ddda2a85a63ff68b", "score": "0.49892774", "text": "boolean hasTask();", "title": "" }, { "docid": "cb925a6e7618549fa4bb9c54d43df2ec", "score": "0.4988711", "text": "private void derivedTask(Task task) {\r\n if (task.aboveThreshold()) {\r\n float budget = task.getBudget().singleValue();\r\n float minSilent = parameters.SILENT_LEVEL / 100.0f;\r\n if (budget > minSilent)\r\n report(task.getSentence(), false); // report significient derived Tasks\r\n newTasks.add(task);\r\n }\r\n }", "title": "" }, { "docid": "bc6bd43414841549509b45709a5d9132", "score": "0.49727976", "text": "public boolean canBuy(@NotNull AmmoAmountUncapped cost){\n return cost.canBeBought(this);\n }", "title": "" }, { "docid": "d56fce3937ee6de05d38f67b1742ce0e", "score": "0.497184", "text": "public boolean fieldHideActualFixedCost(FieldContext fieldContext) {\n\t\treturn false;\n\t}", "title": "" }, { "docid": "26558d5f5cd9205d1e62516c01408d36", "score": "0.4970021", "text": "boolean hasBonusMoney();", "title": "" }, { "docid": "8f38819ce604652db075acfd7b17f62f", "score": "0.4938126", "text": "boolean canUseBonus(int order);", "title": "" }, { "docid": "a00947cf75d5442edc75a594fa4b73b2", "score": "0.49257725", "text": "public int getCostUnderestimate() {\n int bottomLoad = 0;\n int bottomLevel = 0;\n int loadBalance = ((AlgorithmConfig.getTotalNodeWeight() + getIdleTime()) / AlgorithmConfig.getNumOfProcessors());\n for (ScheduledTask scheduledTask : this) {\n bottomLevel = Math.max(bottomLevel, scheduledTask.getStartTime() + scheduledTask.getNode().getBottomLevel());\n bottomLoad = Math.max(bottomLoad, scheduledTask.getNode().getBottomLoad()/AlgorithmConfig.getNumOfProcessors() + scheduledTask.getFinishTime());\n }\n return Math.max(bottomLevel, Math.max(loadBalance, bottomLoad));\n }", "title": "" }, { "docid": "08c1035b34db8bf768cfa7425d927148", "score": "0.49257326", "text": "double ComputeCost(double order, double tipPercent, double serviceRating, double foodRating)\r\n {\r\n // kazda gwiazdka to 2 procent od sumy zamówienia\r\n return order + order * (tipPercent/100) + (serviceRating * 0.02) * order + (foodRating * 0.02) * order;\r\n }", "title": "" }, { "docid": "681c0982ea7f334c777d7e2401915624", "score": "0.49081957", "text": "public void checkTask(String task){\r\n\t\tif (task == \"Shower\") {\r\n\t\tshower();\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "1ab8fc4347fdf25ba4970b7ab5d7d808", "score": "0.48985845", "text": "public boolean fieldHideActualCost(FieldContext fieldContext) {\n\t\treturn false;\n\t}", "title": "" }, { "docid": "1c352924a50dc840bb2fc58c2e65cc4a", "score": "0.489111", "text": "@Test\n\tpublic void caseCostWithWrongInput() {\n\t\tFloat cost = 0f;\n\t\ttry {\n\t\t\tStringNumberUtil.positiveNumberUtil(cost);\n\t\t\tfail();\n\t\t} catch (NumberException e) {\n\t\t}\n\t}", "title": "" }, { "docid": "3e774df04c7c46faf6017694313f7029", "score": "0.4857283", "text": "boolean hasDefense();", "title": "" }, { "docid": "3e774df04c7c46faf6017694313f7029", "score": "0.4857283", "text": "boolean hasDefense();", "title": "" }, { "docid": "3e774df04c7c46faf6017694313f7029", "score": "0.4857283", "text": "boolean hasDefense();", "title": "" }, { "docid": "3e774df04c7c46faf6017694313f7029", "score": "0.4857283", "text": "boolean hasDefense();", "title": "" }, { "docid": "3e774df04c7c46faf6017694313f7029", "score": "0.4857283", "text": "boolean hasDefense();", "title": "" }, { "docid": "3e774df04c7c46faf6017694313f7029", "score": "0.4857283", "text": "boolean hasDefense();", "title": "" }, { "docid": "d987aeae7d8fcc0f28c584432d247b06", "score": "0.48555955", "text": "public static boolean calcAtkBreak(L2Character target, double dmg)\n\t{\n\t\tif (target.getFusionSkill() != null)\n\t\t{\n\t\t\treturn true;\n\t\t}\n\n\t\tdouble init = 0;\n\n\t\tif (Config.ALT_GAME_CANCEL_CAST && target.isCastingNow())\n\t\t{\n\t\t\tinit = 15;\n\t\t}\n\t\tif (Config.ALT_GAME_CANCEL_BOW && target.isAttackingNow())\n\t\t{\n\t\t\tL2Weapon wpn = target.getActiveWeaponItem();\n\t\t\tif (wpn != null && wpn.getItemType() == L2WeaponType.BOW)\n\t\t\t{\n\t\t\t\tinit = 15;\n\t\t\t}\n\t\t}\n\n\t\tif (target.isRaid() || target.isInvul() || init <= 0)\n\t\t{\n\t\t\treturn false; // No attack break\n\t\t}\n\n\t\t// Chance of break is higher with higher dmg\n\t\t//init += Math.sqrt(13 * dmg);\n\t\tinit = Math.sqrt(dmg / target.getMaxVisibleHp()) * 100; // Tenkai custom\n\n\t\t// Chance is affected by target MEN\n\t\tinit -= BaseStats.MEN.calcBonus(target) * 100 - 100;\n\n\t\t// Calculate all modifiers for ATTACK_CANCEL\n\t\tdouble rate = target.calcStat(Stats.ATTACK_CANCEL, init, null, null);\n\t\t//if (rate > 0)\n\t\t//\tSystem.out.println(target.getName() + \" \" + rate);\n\n\t\t// Adjust the rate to be between 1 and 99\n\t\tif (rate > 99)\n\t\t{\n\t\t\trate = 99;\n\t\t}\n\t\telse if (rate < 1)\n\t\t{\n\t\t\trate = 1;\n\t\t}\n\n\t\treturn Rnd.get(100) < rate;\n\t}", "title": "" }, { "docid": "0926e0e19c4ed2b17513f7ba165e29f6", "score": "0.48494875", "text": "public void orderChecker()\n {\n System.out.print( \"Number of bolts: \" );\n int bolts = scan.nextInt();\n System.out.print( \"Number of nuts: \" );\n int nuts = scan.nextInt();\n System.out.print( \"Number of washers: \" );\n int washers = scan.nextInt();\n if ( nuts >= bolts )\n {\n if ( washers >= 2 * bolts )\n {\n System.out.println( \"Check the Order: Order is OK.\" );\n }\n else\n {\n System.out.println( \"Check the Order: Too few washers.\" );\n }\n }\n else\n {\n System.out.println( \"Check the Order: Too few nuts.\" );\n if ( ( washers < 2 * bolts ) )\n {\n System.out.println( \"Check the Order: Too few washers.\" );\n }\n }\n\n final int boltPrice = 5;\n final int nutPrice = 3;\n final int washerPrice = 1;\n int cost = boltPrice * bolts + nutPrice * nuts + washerPrice * washers;\n System.out.println( \"Total cost: \" + cost );\n }", "title": "" }, { "docid": "322d3268a5c8cb1af629a9cb0b341288", "score": "0.48456633", "text": "private static boolean checkIfNeedMore(int[] costToPayToCheck){\n boolean result = false;\n List<PowerUpLM> copyOfPowerUpLMList = copyOf(tmpAmmoInPowerUp);\n\n if(costToPayToCheck[GeneralInfo.RED_ROOM_ID] > 0){\n result = true;\n }\n else{\n tmpAmmoInAmmoBox[GeneralInfo.RED_ROOM_ID] = 0;\n for(PowerUpLM power: copyOfPowerUpLMList){\n if(power.getGainAmmoColor().equals(AmmoType.RED))\n tmpAmmoInPowerUp.remove(power);\n }\n }\n\n if(costToPayToCheck[GeneralInfo.BLUE_ROOM_ID] > 0){\n result = true;\n }\n else{\n tmpAmmoInAmmoBox[GeneralInfo.BLUE_ROOM_ID] = 0;\n for(PowerUpLM power: copyOfPowerUpLMList){\n if (power.getGainAmmoColor().equals(AmmoType.BLUE))\n tmpAmmoInPowerUp.remove(power);\n }\n }\n\n if(costToPayToCheck[GeneralInfo.YELLOW_ROOM_ID] > 0){\n result = true;\n }\n else{\n tmpAmmoInAmmoBox[GeneralInfo.YELLOW_ROOM_ID] = 0;\n for(PowerUpLM power: copyOfPowerUpLMList){\n if(power.getGainAmmoColor().equals(AmmoType.YELLOW))\n tmpAmmoInPowerUp.remove(power);\n }\n }\n\n return result;\n }", "title": "" }, { "docid": "fc3583bd3ae7d013d758bb9f11d31b1a", "score": "0.48430687", "text": "public boolean fieldHideCost(FieldContext fieldContext) {\n\t\treturn false;\n\t}", "title": "" }, { "docid": "39839857e983fe1783d0f60cc191dd3a", "score": "0.4826436", "text": "public float getCost()\r\n/* 13: */ {\r\n/* 14:10 */ return this.costFromStart + this.estimatedCostToGoal;\r\n/* 15: */ }", "title": "" }, { "docid": "6797b8254a62ce60a76fe39e5a19a904", "score": "0.48127338", "text": "@When(\"^the value of the deposit is true$\")\n public void the_value_of_the_deposit_is_true() throws Throwable {\n throw new PendingException();\n }", "title": "" }, { "docid": "02c964e3af40535fb7cf435b44d553e2", "score": "0.48111275", "text": "private boolean isFeasible(FlowNetwork G, int s, int t) {\r\n\r\n // check that capacity constraints are satisfied\r\n for (int v = 0; v < G.V(); v++) {\r\n for (FlowEdge e : G.adj(v)) {\r\n if (e.flow() < -FLOATING_POINT_EPSILON\r\n || e.flow() > e.capacity() + FLOATING_POINT_EPSILON) {\r\n System.err\r\n .println(\"Edge does not satisfy capacity constraints: \" + e);\r\n return false;\r\n }\r\n }\r\n }\r\n\r\n // check that net flow into a vertex equals zero, except at source and\r\n // sink\r\n if (Math.abs(value + excess(G, s)) > FLOATING_POINT_EPSILON) {\r\n System.err.println(\"Excess at source = \" + excess(G, s));\r\n System.err.println(\"Max flow = \" + value);\r\n return false;\r\n }\r\n if (Math.abs(value - excess(G, t)) > FLOATING_POINT_EPSILON) {\r\n System.err.println(\"Excess at sink = \" + excess(G, t));\r\n System.err.println(\"Max flow = \" + value);\r\n return false;\r\n }\r\n for (int v = 0; v < G.V(); v++) {\r\n if (v == s || v == t)\r\n continue;\r\n else if (Math.abs(excess(G, v)) > FLOATING_POINT_EPSILON) {\r\n System.err.println(\"Net flow out of \" + v + \" doesn't equal zero\");\r\n return false;\r\n }\r\n }\r\n return true;\r\n }", "title": "" }, { "docid": "0595eb292ce0135eaf68cd54e2e1e781", "score": "0.4809169", "text": "private boolean checkGreedyDefense() {\r\n return enTotal.get(2)+1 < myTotal.get(2) && enTotal.get(0)+1 < myTotal.get(0);\r\n }", "title": "" }, { "docid": "23a2e2c38938ae10f982efdcfb6e8dbf", "score": "0.48072812", "text": "public boolean isBenefitAvailableFor(Account account, Dining dining);", "title": "" }, { "docid": "f3b274cbe4935e845d90d79ac5aac1a7", "score": "0.48059708", "text": "boolean hasAccountBudget();", "title": "" }, { "docid": "36576ef08b7e2da171ed1cb0ee622a03", "score": "0.4805785", "text": "public int canCompleteCircuit(int[] gas, int[] cost) {\n for (int start = 0; start < gas.length; start++) {\n int[] f = new int[gas.length + 1];\n for (int i = 0; i <= gas.length; i++) {\n f[i] = Integer.MIN_VALUE;\n }\n\n f[0] = 0;\n for (int i = 1; i <= gas.length; i++) {\n f[i] = f[i - 1] + gas[(i - 1 + start) % gas.length] - cost[(i - 1 + start) % gas.length];\n if (f[i] < 0) {\n break;\n }\n }\n\n if (f[gas.length] >= 0) {\n return start;\n }\n }\n\n return -1;\n }", "title": "" }, { "docid": "8e0cc40e2a706d00848e007badd0c4a5", "score": "0.48016322", "text": "@Test\r\n public void testPurChaseBeverageWithNotEnoughMoney() {\r\n coffeeMaker.addRecipe(recipe1); // cost 50\r\n assertEquals(25, coffeeMaker.makeCoffee(0, 25)); // not enough amount paid\r\n }", "title": "" }, { "docid": "d74e6bbdc5b6c876feb095522c82f8f8", "score": "0.48010126", "text": "private boolean isFeasible(FlowNetwork G, int s, int t) {\n\t double EPSILON = 1E-11;\n\n\t // check that capacity constraints are satisfied\n\t for (int v = 0; v < G.V(); v++) {\n\t for (FlowEdge e : G.adj(v)) {\n\t if (e.flow() < -EPSILON || e.flow() > e.capacity() + EPSILON) {\n\t System.err.println(\"Edge does not satisfy capacity constraints: \" + e);\n\t return false;\n\t }\n\t }\n\t }\n\n\t // check that net flow into a vertex equals zero, except at source and sink\n\t if (Math.abs(value + excess(G, s)) > EPSILON) {\n\t System.err.println(\"Excess at source = \" + excess(G, s));\n\t System.err.println(\"Max flow = \" + value);\n\t return false;\n\t }\n\t if (Math.abs(value - excess(G, t)) > EPSILON) {\n\t System.err.println(\"Excess at sink = \" + excess(G, t));\n\t System.err.println(\"Max flow = \" + value);\n\t return false;\n\t }\n\t for (int v = 0; v < G.V(); v++) {\n\t if (v == s || v == t) continue;\n\t else if (Math.abs(excess(G, v)) > EPSILON) {\n\t System.err.println(\"Net flow out of \" + v + \" doesn't equal zero\");\n\t return false;\n\t }\n\t }\n\t return true;\n\t }", "title": "" }, { "docid": "b65f3e3d09af3f3ce0ce72d37b104103", "score": "0.4798123", "text": "public static boolean isSigned_cost() {\n return false;\n }", "title": "" }, { "docid": "4ce9633229072fd9a876cecf3657af5d", "score": "0.4798007", "text": "private String eligibleToDonote() {\n if(Integer.parseInt(bloodPressureTxtField.getText())>100 || Integer.parseInt(heartRateTxtField.getText())>80 \n || alcoholConsumptionTxtField.getText().equals(\"Y\") || drugConsumptionTxtField.getText().equals(\"Y\"))\n {\n return \"Ineligibe to Donate Blood\";\n }\n return \"Eligible to Donate Blood\";\n }", "title": "" }, { "docid": "9c20bab495b336623aacb4f7f8588438", "score": "0.47974664", "text": "private static boolean checkTaskBounds(int task) {\r\n\t\t\tboolean isInBound;\r\n\t\t\t\r\n\t\t\tif ((task < 0) || (task > 7)) {\r\n\t\t\t\t//isInBound = false;\r\n\t\t\t\tif (task == -1) {\r\n\t\t\t\t\tisInBound = true;\r\n\t\t\t\t}else {\r\n\t\t\t\t\tisInBound = false;\r\n\t\t\t\t}\t\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tisInBound = true;\r\n\t\t\t}\r\n\t\t\treturn isInBound;\r\n\t\t}", "title": "" }, { "docid": "94e1ed776abe8b187ec6cbd6cd498dee", "score": "0.4796835", "text": "private boolean enoughResourcesForJob\n\t\t(int Nn,\n\t\t int Np,\n\t\t int Nt)\n\t\t{\n\t\t// Determine worst-case processes per node.\n\t\tint Ppn = (Np + Nn - 1) / Nn;\n\n\t\t// If number of CPUs per process is \"all CPUs,\" assume one CPU per\n\t\t// process.\n\t\tif (Nt == 0) Nt = 1;\n\n\t\t// Count how many nodes meet the requirements.\n\t\tint nodeCount = 0;\n\t\tfor (BackendInfo backendinfo : myBackendInfo)\n\t\t\t{\n\t\t\t// The node must not have failed.\n\t\t\tif (backendinfo.state != BackendInfo.State.FAILED &&\n\n\t\t\t// The node must have at least Ppn*Nt CPUs.\n\t\t\t\t\tbackendinfo.totalCpus >= Ppn*Nt)\n\t\t\t\t{\n\t\t\t\t// The node meets the requirements.\n\t\t\t\t++ nodeCount;\n\t\t\t\t}\n\t\t\t}\n\n\t\t// Return outcome.\n\t\treturn nodeCount >= Nn;\n\t\t}", "title": "" }, { "docid": "eaf96712a0a0fa1599dc390a6a7f0cbc", "score": "0.4789247", "text": "public boolean checkTaskExist(CaptureTask task) {\n\t\treturn false;\r\n\t}", "title": "" }, { "docid": "2602f7a793de95024e7652d029678716", "score": "0.47802603", "text": "@NotNull\n public BigDecimal getCost() {\n return cost;\n }", "title": "" }, { "docid": "5a2768d151a690464c4774fb4fe9e16a", "score": "0.47771746", "text": "public double calculateCostExclusive() {\n\t\tdouble accumulatedCost = 0;\n\t\tfor(int i = 0; i < solutionLength - 1; i++) {\n\t\t\taccumulatedCost += calculateEuclideanDistance(solutionRepresentation.get(i), solutionRepresentation.get(i + 1));\n\t\t}\n\t\t\n\t\treturn accumulatedCost;\n\t}", "title": "" }, { "docid": "696e34a811785209a65bb7d20db5b622", "score": "0.47687054", "text": "public double getCost() {\n double price = 0;\n price += this.numPizzas * this.pizzaType.getCost();\n if(this.numPizzas >= 20) // Discount if >=20 pizzas\n return price * 0.9;\n else if(this.numPizzas >= 10) // Discount if between 10 and 20 pizzas\n return price * 0.95;\n return price; // No discount\n }", "title": "" }, { "docid": "0f19cf38f5594d015192037f48ee19d3", "score": "0.47674266", "text": "boolean hasCampaignBudget();", "title": "" }, { "docid": "f4d9c4d74c7863d69c65c76b6eef3a64", "score": "0.47615254", "text": "private boolean validateTask(JTextField textFieldName,\r\n JTextField textFieldDescription,\r\n JFormattedTextField textFieldDueDate,\r\n JComboBox<Priority> comboPriority) {\r\n if (textFieldName.getText().equals(\"\") || textFieldDescription.getText().equals(\"\")\r\n || textFieldDueDate.getText().equals(\"\") || (comboPriority.getSelectedIndex() == -1)) {\r\n JOptionPane.showMessageDialog(null, \"Please Enter All Data!\");\r\n return false;\r\n }\r\n if (LocalDate.parse(textFieldDueDate.getText()).isBefore(LocalDate.now())) {\r\n JOptionPane.showMessageDialog(null, \"Enter a due date in the future!\");\r\n return false;\r\n }\r\n return true;\r\n }", "title": "" }, { "docid": "3f06f650033cb483d57064687f67e8fc", "score": "0.47505096", "text": "@Test\n\tpublic void testCheckSufficientCredits_True() {\n\n\t\tint creditsRequired = 1;\n\t\taccount.setCredits(10l);\n\t\thibernateLogicLocator.getSmsAccountLogic().persistSmsAccount(account);\n\t\tSmsMessage msg = new SmsMessage();\n\t\tSmsTask smsTask = new SmsTask();\n\t\tsmsTask.setSakaiSiteId(SmsConstants.SMS_DEV_DEFAULT_SAKAI_SITE_ID);\n\t\tsmsTask.setSmsAccountId(account.getId());\n\t\tsmsTask.setDateCreated(new Timestamp(System.currentTimeMillis()));\n\t\tsmsTask.setDateToSend(new Timestamp(System.currentTimeMillis()));\n\t\tsmsTask.setStatusCode(SmsConst_DeliveryStatus.STATUS_PENDING);\n\t\tsmsTask.setAttemptCount(2);\n\t\tsmsTask.setMessageBody(SmsConstants.SMS_DEV_DEFAULT_SMS_MESSAGE_BODY);\n\t\tsmsTask.setSenderUserName(\"senderUserName\");\n\t\tsmsTask.setMaxTimeToLive(1);\n\t\tsmsTask.getSmsMessages().add(msg);\n\t\tsmsTask.setCreditEstimate(creditsRequired);\n\t\tmsg.setSmsTask(smsTask);\n\t\tboolean sufficientCredits = smsBillingImpl.checkSufficientCredits(\n\t\t\t\taccount.getId(), creditsRequired);\n\t\tAssert.assertTrue(\"Expected sufficient credit\", sufficientCredits);\n\n\t\taccount.setCredits(0l);\n\t\thibernateLogicLocator.getSmsAccountLogic().persistSmsAccount(account);\n\t\tboolean insufficientCredits = !smsBillingImpl.checkSufficientCredits(\n\t\t\t\taccount.getId(), creditsRequired);\n\t\tAssert.assertTrue(\"Expected insufficient credit\", insufficientCredits);\n\n\t}", "title": "" }, { "docid": "374fe4d830283b693f1a1af9cf380b54", "score": "0.47470123", "text": "@Pure\n\tdouble getEstimatedCost();", "title": "" }, { "docid": "0e0e0fe9923b3c6225045c39088b99da", "score": "0.47456414", "text": "@Test\n public void testTaskNeedingOtherTasksToCheckIfDoneWithTimeout() throws InterruptedException, TaskException {\n final ScheduledPoolingTask<Integer> scheduledPoolingTask = this.createFakeScheduledPoolingTask(1, 1, 7, 8, 100);\n\n final Task<Integer> simpleTask = this.createFakeSimpleTask(2);\n\n final TaskDependingOnOtherTasksExample task = new TaskDependingOnOtherTasksExample.Builder()\n .willTake(2)\n .withTimeout(10)\n .withDependingTask(simpleTask)\n .withDependingTask(scheduledPoolingTask)\n .build();\n\n task.execute();\n\n assertTrue(\"The task should be finished ok\", task.isDone());\n\n assertTrue(\"The simple should be finished NO ok\", simpleTask.isDone());\n assertTrue(\"The scheduled should be finished ok\", !scheduledPoolingTask.isDone());\n\n assertTrue(\"The task should be finished ok\", task.getResult()==0);\n assertTrue(\"The simpleTask should be finished ok\", simpleTask.getResult()==0);\n assertTrue(\"The scheduledPoolingTask should be finished ok\", scheduledPoolingTask.getResult()==1);\n\n\n }", "title": "" }, { "docid": "57adc9ed2d1b3d207d8468ca15d3411f", "score": "0.47454524", "text": "boolean isBlockedBy(Task otherTask);", "title": "" }, { "docid": "3830a73ea02500f7f312b71fcd625a4b", "score": "0.47423434", "text": "private double calculateUsedEffortRate(BigDecimal projectId) {\r\n log.debug(\"calculateCostStatus.START\");\r\n\r\n ProjectDao projectDao = new ProjectDao();\r\n Project project = projectDao.getProjectById(projectId);\r\n if (project.getActualEffort() != null && project.getPlanEffort() != null) {\r\n double usedEffortRate = project.getActualEffort().doubleValue() / project.getPlanEffort().doubleValue()\r\n * 100;\r\n return Math.round(usedEffortRate * 100.0) / 100.0;\r\n }\r\n return 0f;\r\n\r\n }", "title": "" }, { "docid": "0d5d0d4eb278e8421d27f5d05f2dff59", "score": "0.47346875", "text": "public boolean checkAndFreezeFunds (int secretKey, double proposedFreeze) {\n\n int theBankAccountNumber;\n // use AccountLink and secret key to get actual Bank Account number\n AccountLink theAccountLink = hashMapOfSecretKeys.get(secretKey);\n if ( theAccountLink != null ) {\n theBankAccountNumber = theAccountLink.getAGENT_ACCOUNT_NUMBER();\n } else {\n return false;\n }\n // use account number to get full BankAccount\n BankAccount theBankAccount =\n hashMapOfAllAccts.get(theBankAccountNumber);\n\n // ask BankAccount to check and (if possible) freeze the amount\n boolean fundsFrozen = theBankAccount.checkAndFreeze(proposedFreeze);\n\n if (fundsFrozen) {\n updateBankDisplay();\n }\n\n return fundsFrozen;\n }", "title": "" }, { "docid": "ed1c6c87b2d7752c95ff777294f6cdb0", "score": "0.47318205", "text": "boolean hasAccountBudgetProposal();", "title": "" }, { "docid": "811714ab2d00ca397cef8af8451e7d3c", "score": "0.47278914", "text": "@Override\n public double calculaArancel(int cantDias) throws DiasInvalidosException {\n if (cantDias > 0) {\n if (cantDias == 1)\n return costoAsignacion + costoInicial;\n else if (cantDias <= 5)\n return cantDias * costoAsignacion * 1.3 + costoInicial;\n else\n return cantDias * costoAsignacion * 2 + costoInicial;\n } else\n throw new DiasInvalidosException(\"Dias menores a 0\", cantDias);\n }", "title": "" }, { "docid": "a668511c4fd279abb34c7e14cd9cb81e", "score": "0.4715874", "text": "public boolean isValidTransfer(double amount) {\n boolean amt = amount >= 0;\n boolean bal = false;\n if (amount <= this.balance + 100 && this.balance > 0) {\n bal = true;\n }\n return amt && bal && !isFreeze();\n }", "title": "" }, { "docid": "5afc89a60923c3a2550f97ba288ed01f", "score": "0.47118047", "text": "boolean hasMoney();", "title": "" }, { "docid": "784d5bf1f0bc10fba9581350c691d860", "score": "0.4706967", "text": "public boolean isSuitable(Food food) {\n return food.calculateFitness() < 100;\n }", "title": "" }, { "docid": "3282851ec9670f0f6072a349e8f72c11", "score": "0.4706511", "text": "private boolean canExecuteProposalTask( String userId, ProposalDevelopmentDocument doc, String taskName ) {\n\t\tProposalTask task = new ProposalTask( taskName, doc );\n\t\tTaskAuthorizationService taskAuthenticationService = KraServiceLocator.getService( TaskAuthorizationService.class );\n\t\treturn taskAuthenticationService.isAuthorized( userId, task );\n\t}", "title": "" }, { "docid": "1530fa975b1300f6ab583be8b063fcd1", "score": "0.47031006", "text": "private boolean canInsertLast(Plan plan,POI poi,Trip trip,Time currentTime,Plan mPlan,boolean skip){\n // if poi cost and time addtion to plan full cost and time satisify the constrains: \n // 1- full cost <= budget\n // 2- fulltime-poiTime >=poi.startTime if skip is false only\n // 3- fulltime <= trip.endTime\n // 4- fulltime <= poi.colseTime\n // insert and make Calculations and change last\n\n // Check 1\n if((plan.getFullCost()+poi.getCost())<=trip.getBudget()){\n // Check 2\n POI last=plan.getLastPOI();\n \n if(hfun(currentTime, last, poi, mPlan, skip)){\n // Check3\n // cal poi duration\n int fullduration=poi.getDuration();\n //cal waste time\n if(skip){\n Time currTime = new Time(currentTime.hour,currentTime.min);\n if(last!=null)\n currTime.add(last.getShortestPath(poi.getId()));\n else if(mPlan!=null&&mPlan.getLastPOI()!=null)\n currTime.add(mPlan.getLastPOI().getShortestPath(poi.getId()));\n int x = Time.substract(currTime, poi.getOpenTime());\n fullduration+=(x==-1)?0:x;\n }\n //cal travel time\n if(last!=null)\n fullduration+=last.getShortestPath(poi.getId());\n else if(mPlan!=null){\n POI mLast=mPlan.getLastPOI();\n if(mLast!=null)\n fullduration+= mLast.getShortestPath(poi.getId());\n }\n if(Time.isIn(currentTime, fullduration, trip.getEndTime())){\n // Check4\n if(Time.isIn(currentTime, fullduration, poi.getCloseTime())){\n return true;\n }\n }\n }\n }\n return false;\n }", "title": "" }, { "docid": "626160585876a6ae866ca00bdfe241e3", "score": "0.47007465", "text": "@Test\n\tpublic void testCheckSufficientCredits_OverdraftFacility() {\n\n\t\tint creditsRequired = 11;\n\n\t\tSmsMessage msg = new SmsMessage();\n\t\tSmsTask smsTask = new SmsTask();\n\t\tsmsTask.setSakaiSiteId(SmsConstants.SMS_DEV_DEFAULT_SAKAI_SITE_ID);\n\t\tsmsTask.setSmsAccountId(account.getId());\n\t\tsmsTask.setDateCreated(new Timestamp(System.currentTimeMillis()));\n\t\tsmsTask.setDateToSend(new Timestamp(System.currentTimeMillis()));\n\t\tsmsTask.setStatusCode(SmsConst_DeliveryStatus.STATUS_PENDING);\n\t\tsmsTask.setAttemptCount(2);\n\t\tsmsTask.setMessageBody(SmsConstants.SMS_DEV_DEFAULT_SMS_MESSAGE_BODY);\n\t\tsmsTask.setSenderUserName(\"senderUserName\");\n\t\tsmsTask.setMaxTimeToLive(1);\n\t\tsmsTask.getSmsMessages().add(msg);\n\t\tsmsTask.setCreditEstimate(creditsRequired);\n\t\tmsg.setSmsTask(smsTask);\n\n\t\tboolean sufficientCredits = smsBillingImpl.checkSufficientCredits(\n\t\t\t\taccount.getId(), creditsRequired);\n\t\tAssert.assertFalse(\"Expected insufficient credit\", sufficientCredits);\n\t\thibernateLogicLocator.getSmsAccountLogic().persistSmsAccount(account);\n\t\tsufficientCredits = smsBillingImpl.checkSufficientCredits(account\n\t\t\t\t.getId(), creditsRequired);\n\t\tAssert.assertTrue(\"Expected insufficient credit\", !sufficientCredits);\n\t}", "title": "" }, { "docid": "76d28b4c0e4c2e746d26a9fdfbc2e9aa", "score": "0.46876815", "text": "public boolean couldBeProfitable(){\n return this.priceBought < this.maximumMachineProfit;\n }", "title": "" }, { "docid": "5c2157e3cdf6117289160c42a66cae45", "score": "0.4673426", "text": "private boolean isDeadline(TaskDate taskEndDate) {\n return taskEndDate != null;\n }", "title": "" }, { "docid": "aa23f6a132543ccdca3b5cc3b288d8ad", "score": "0.4673342", "text": "boolean hasAllowedCredit();", "title": "" }, { "docid": "66f3b882625533eff6745f33dc00af2d", "score": "0.4666811", "text": "public int calculateCost() {\n int premium = surety.calculatePremium(insuredValue);\n SuretyType suretyType = surety.getSuretyType();\n int commission = (int) Math.round(premium * vehicle.getCommission(suretyType));\n return premium + commission;\n }", "title": "" }, { "docid": "96c7c1d6471bfd26a48a5ffbd240f503", "score": "0.46632296", "text": "public double calcCost(){\n double cost = 0;\n cost += pMap.get(size);\n cost += cMap.get(crust);\n //Toppings are priced at 3.00 for 3-4 topppings, and 4.0 for 5+ toppings\n \n if(toppings !=null)\n {\n if((toppings.length == 3) || (toppings.length == 4)){\n cost += 3.0;\n }\n if (toppings.length > 4){\n cost += 4.0;\n }\n }\n \n return cost;\n }", "title": "" }, { "docid": "723030a56cd5902cf5db86d6f58ece2c", "score": "0.4656722", "text": "@Test\n\tpublic void testCheckSufficientCredits_False() {\n\n\t\tint creditsRequired = 11;\n\n\t\tboolean sufficientCredits = smsBillingImpl.checkSufficientCredits(\n\t\t\t\taccount.getId(), creditsRequired);\n\t\tAssert.assertFalse(\"Expected insufficient credit\", sufficientCredits);\n\t}", "title": "" }, { "docid": "6ff1480fc91a9d88e44b2a5ae9460438", "score": "0.46558356", "text": "double getCost();", "title": "" }, { "docid": "6ff1480fc91a9d88e44b2a5ae9460438", "score": "0.46558356", "text": "double getCost();", "title": "" }, { "docid": "043a3404d9f0c9b72f060c2ad771705f", "score": "0.4653043", "text": "public boolean spendCash(int cost){\n if(cost > mCash){\n return false;\n }\n mCash -= cost;\n return true;\n }", "title": "" }, { "docid": "9b95b50eae7565d538a0303909d79bc6", "score": "0.4638725", "text": "protected abstract double getDefaultCost();", "title": "" }, { "docid": "d72bf6055565b391dc163c0539b2f33d", "score": "0.4636629", "text": "int processCosts(int houseNo, int color) {\n String key = getKey(houseNo, color);\n Integer cost = costMap.get(key);\n if (cost != null) {\n return cost;\n }\n if (houseNo == numHouses - 1) {\n //base case when this is the last house\n //cost is exactly that of the given house's color, it has no more depencies\n //as its the last house\n cost = costs[houseNo][color];\n costMap.put(key, cost);\n return cost;\n }\n int colorACSoFar = 0;\n int colorBCSoFar = 0;\n if (color == 0) {\n colorACSoFar = processCosts(houseNo + 1, 1);\n colorBCSoFar = processCosts(houseNo + 1, 2);\n } else if (color == 1) {\n colorACSoFar = processCosts(houseNo + 1, 0);\n colorBCSoFar = processCosts(houseNo + 1, 2);\n } else if (color == 2) {\n colorACSoFar = processCosts(houseNo + 1, 0);\n colorBCSoFar = processCosts(houseNo + 1, 1);\n }\n //get the min cost of other two colors for the rest of houses\n int costsSoFar = Math.min(colorACSoFar, colorBCSoFar);\n //add cost for the current color for current house\n costsSoFar += costs[houseNo][color];\n //update cost for house/color in map so next time it doesnt have to be recalculated\n costMap.put(key, costsSoFar);\n return costsSoFar;\n }", "title": "" }, { "docid": "d6ba53c8aac3bd8809fd3d561a51a51b", "score": "0.46350408", "text": "public BigDecimal sumTaskTotalToRecharge(List<MaintenanceRequestTask> maintRequestTasks){\n\t\tBigDecimal rechargeTotal = new BigDecimal(\"0.00\");\n\t\tfor(MaintenanceRequestTask task: maintRequestTasks){\n\t\t\tif(MALUtilities.convertYNToBoolean(task.getRechargeFlag())){\n\t\t\t\trechargeTotal = rechargeTotal.add(task.getTotalCost());\n\t\t\t}\t\t\t\n\t\t}\n\t\treturn rechargeTotal;\n\t}", "title": "" }, { "docid": "a51fa5243b87432b8dcd2600c4666553", "score": "0.46349224", "text": "@Test\n public void testCalculateCostWithEmptyList() {\n List inspectionList = new ArrayList();\n int expResult = 100;\n int result = instance.calculateCost(inspectionList);\n assertEquals(expResult, result);\n }", "title": "" }, { "docid": "df03919a5004eb3bdfbeb3bab34d00c6", "score": "0.46225822", "text": "public boolean getSteady() {\n\t\treturn (getTaskType() == TASK_STEADY);\n\t}", "title": "" }, { "docid": "4b6ccd6a6d5428671e72f9a03a4d4f37", "score": "0.462188", "text": "public boolean canTakeCharge();", "title": "" }, { "docid": "1c3302f8a71db83f99c68d824e8eee6f", "score": "0.46195346", "text": "private MaintenanceRequest initializeCostAvoidanceIndicators(MaintenanceRequest maintenanceRequest){\n\t\tmaintenanceRequest.setGoodwillIndicator(hasGoodwill(maintenanceRequest));\n\t\t\n\t\tif(!MALUtilities.isEmpty(maintenanceRequest.getMaintenanceRequestTasks())){\n\t\t\tfor(MaintenanceRequestTask task : maintenanceRequest.getMaintenanceRequestTasks()){\n\t\t\t\ttask = initializeCostAvoidanceIndicators(task);\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn maintenanceRequest;\n\t}", "title": "" }, { "docid": "b0117824169835226d8731801489bc3d", "score": "0.46045643", "text": "public Goal(String task, String date, int priority, boolean isAccomplished) {\r\n this.task = task;\r\n this.date = date;\r\n this.priority = priority;\r\n this.isAccomplished = isAccomplished;\r\n }", "title": "" }, { "docid": "42db65698cb6036775fbd4a2f2534e80", "score": "0.46002105", "text": "public double evalCost(int[] assig)\r\n {\r\n /** Indicates if each depot is open */\r\n BOFLP BFLProblem = BOFLP.instance();\r\n\r\n boolean[] openDepots;\r\n\r\n int nClients = BFLProblem.nClients;\r\n int nDepots = BFLProblem.nDepots;\r\n\r\n openDepots = new boolean[nDepots + 1];\r\n\r\n double cost;\r\n\r\n for (int j = 1; j <= nDepots; j++)\r\n {\r\n openDepots[j] = false;\r\n }\r\n cost = 0;\r\n for (int i = 1; i <= nClients; i++)\r\n {\r\n int depot = assig[i - 1];\r\n cost = cost + BFLProblem.cost[i][depot];\r\n openDepots[depot] = true;\r\n }\r\n for (int j = 1; j <= nDepots; j++)\r\n {\r\n if (openDepots[j])\r\n cost = cost + BFLProblem.fixedCost[j];\r\n }\r\n return cost;\r\n }", "title": "" }, { "docid": "15ae843b693a8677bbdb0280f4814c30", "score": "0.45943677", "text": "@Override\n\tpublic double cost() {\n\t\tdouble price = good.cost();\n\t\treturn price+price/2;\n\t}", "title": "" } ]
a32974cecaa8f6da06ee6d99d230eb5c
Created by xxx on 18.11.2016..
[ { "docid": "fccf394bc24ae4473509aa684dbafebf", "score": "0.0", "text": "public interface InternetInteractor {\n\n interface onWebDataListener {\n void onWDResponse(String response, String url);\n void onWDError(String msg);\n }\n\n void getHtmlContent(String url, onWebDataListener responsListener);\n}", "title": "" } ]
[ { "docid": "74a4209c94e08d9f5eb0b60e580f5e04", "score": "0.59743464", "text": "@Override\r\n\tpublic void comit() {\n\t\t\r\n\t}", "title": "" }, { "docid": "bdc1683df7d1d6b2d988cd3acab4903e", "score": "0.5944301", "text": "public void mo5201a() {\n }", "title": "" }, { "docid": "534c466f09845319b9edaf959a891c09", "score": "0.58786255", "text": "@Override\r\n\tpublic void debriyaj() {\n\t\t\r\n\t}", "title": "" }, { "docid": "b14cffacd51e1ce2462cbb7320ae9815", "score": "0.58516544", "text": "@Override\n\tprotected void preInilize() {\n\t\t\n\t}", "title": "" }, { "docid": "5d6f8db1f75beb16acd7c64687bc500c", "score": "0.5844218", "text": "private Utilitarios() {\n\t\t\n\t}", "title": "" }, { "docid": "f37aebdfc461c1965abd4e2afbc83532", "score": "0.58210725", "text": "private void apparence()\r\n\t\t{\r\n\t\t//rien\r\n\t\t}", "title": "" }, { "docid": "5fa8025455ce490980ad8cccfd13eea3", "score": "0.5817544", "text": "public void mo5201a() {\n }", "title": "" }, { "docid": "0b5b11f4251ace8b3d0f5ead186f7beb", "score": "0.5779756", "text": "@Override\n\tpublic void comer() {\n\t\t\n\t}", "title": "" }, { "docid": "fcb3c4d3186fcf7a2e6567fab9b7d5e2", "score": "0.5775252", "text": "private Theora()\n\t{\n\t}", "title": "" }, { "docid": "21d672149bbdd06ba8646ddf7f7f41d1", "score": "0.576386", "text": "@Override\n\tprotected void descansar() {\n\t\t\n\t}", "title": "" }, { "docid": "21d672149bbdd06ba8646ddf7f7f41d1", "score": "0.576386", "text": "@Override\n\tprotected void descansar() {\n\t\t\n\t}", "title": "" }, { "docid": "b2858312446172fa25a799c5367d2043", "score": "0.5721953", "text": "Smelting(){\r\n\r\n\t\t}", "title": "" }, { "docid": "573e777b1723411d46abc7892cb5caea", "score": "0.56993085", "text": "public void mo5608a() {\n }", "title": "" }, { "docid": "0aeb31da8ebac864ecfc84df5be728c9", "score": "0.56604123", "text": "@Override\r\n\tpublic void koleos() {\n\t\t\r\n\t}", "title": "" }, { "docid": "e3110a393bd4b870b4055aa9ed6efd87", "score": "0.5642575", "text": "@Override\n\tpublic void attaquer() {\n\t\t\n\t}", "title": "" }, { "docid": "b645eacb329adc01490ab5013a6c4f7f", "score": "0.5625134", "text": "@Override\n\t\t\tpublic void perfom() {\n\n\t\t\t}", "title": "" }, { "docid": "4541b4eaa2b2871ab4c98fc297f4dede", "score": "0.56181926", "text": "@Override\n\tpublic void descer() {\n\t\t\n\t}", "title": "" }, { "docid": "655a271d981b875feb8fbc679e1a4f87", "score": "0.5611655", "text": "public void mo9609a() {\n }", "title": "" }, { "docid": "7dc226c2dd73339594b9a5d78d538a9b", "score": "0.5605226", "text": "public void soigner() {\n\t\t\n\t}", "title": "" }, { "docid": "3e556c0f03a7d2509fe80fc61a60a369", "score": "0.55962515", "text": "@Override\n\t\t\t\tpublic void init() {\n\t\t\t\t\t\n\t\t\t\t}", "title": "" }, { "docid": "2c61ed93c2e8a4e918b773dc3a2e7966", "score": "0.5583921", "text": "private void traiteCreerRegle() {\n\r\n\t}", "title": "" }, { "docid": "2dcda7054abb2ac593302e39a2284f12", "score": "0.5569099", "text": "@Override\n\tprotected void getExras() {\n\n\t}", "title": "" }, { "docid": "b1cf16017c8057c0255a9ad368ecaee5", "score": "0.55092925", "text": "@Override\r\n\tprotected void init() {\n\r\n\t}", "title": "" }, { "docid": "5f8d37aee09bc1e9959f768d6eb0183c", "score": "0.55004865", "text": "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "title": "" }, { "docid": "5f8d37aee09bc1e9959f768d6eb0183c", "score": "0.55004865", "text": "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "title": "" }, { "docid": "5f1811a241e41ead4415ec767e77c63d", "score": "0.5495301", "text": "@Override\n\tprotected void init() {\n\n\t}", "title": "" }, { "docid": "5f1811a241e41ead4415ec767e77c63d", "score": "0.5495301", "text": "@Override\n\tprotected void init() {\n\n\t}", "title": "" }, { "docid": "fb7e6b2a89843e694a13571c31377718", "score": "0.5495282", "text": "public void mo19849a() {\n }", "title": "" }, { "docid": "252960e025bfa106bbe3903b4e4cbd3c", "score": "0.5490382", "text": "public void mo35709a() {\n }", "title": "" }, { "docid": "8784a223ae524195b951c7522a3dc7dc", "score": "0.54590607", "text": "@Override\n\tprotected void createObject() {\n\n\t}", "title": "" }, { "docid": "bcc647eaea257a78c8d339a2668f39eb", "score": "0.5458461", "text": "@Override\r\n\tpublic void thirsty() {\n\t\t\r\n\t}", "title": "" }, { "docid": "7c2f530eef910ca7368316b6425dbb09", "score": "0.5457873", "text": "@Override\n\t\t\tpublic void test12() {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "838dc67d0cf43779c25a49159bb003e7", "score": "0.54564214", "text": "public void mo5201a() {\n }", "title": "" }, { "docid": "80762458b54fe841d7e4f99e4de13990", "score": "0.54512227", "text": "@Override\n\tprotected void respirar() {\n\t\t\n\t}", "title": "" }, { "docid": "80762458b54fe841d7e4f99e4de13990", "score": "0.54512227", "text": "@Override\n\tprotected void respirar() {\n\t\t\n\t}", "title": "" }, { "docid": "4a318c00e2da3a27b638b396481252df", "score": "0.54386014", "text": "@Override\r\n\tpublic void herbivore() {\r\n\t\t// TODO Auto-generated method stub\r\n\t\t\r\n\t}", "title": "" }, { "docid": "ebfe1bb4dd1c0618c0fad36d9f7674b4", "score": "0.5426914", "text": "@Override\n protected void initialize() {\n\n }", "title": "" }, { "docid": "f8978d93b84e5118882a4ff5e000e716", "score": "0.5424332", "text": "private void init() {\n\t\t\n\t}", "title": "" }, { "docid": "7ebeba1e8e017bd5c5f35e3441ce9e41", "score": "0.5422413", "text": "public void mo25886s() {\n }", "title": "" }, { "docid": "9f99d56012b92b3713a786ba91eff698", "score": "0.54104906", "text": "public void hardCode() {\n\t\t\n\t}", "title": "" }, { "docid": "c937f9289f415cfdd7aefc5d621d0867", "score": "0.54095864", "text": "@Override\n protected void inicializar() {\n }", "title": "" }, { "docid": "5302470b7d6372560451709c195e7050", "score": "0.5407979", "text": "@Override\n\tpublic void freshStart() {\n\t\t// TODO Auto-generated method stub\n\n\t}", "title": "" }, { "docid": "e4ec072a8b16e284aebf85d28ec89ef5", "score": "0.5373867", "text": "public void mo5203c() {\n }", "title": "" }, { "docid": "2f3e7c4f4d0072a55c8e0187be049a27", "score": "0.53735626", "text": "public void mo9610b() {\n }", "title": "" }, { "docid": "a72a87d72bd9ac36dd6f01edb946adfd", "score": "0.53734624", "text": "private CounselleeMSDB(){\n\t\t\n\t}", "title": "" }, { "docid": "4e2bc6086cff0dc11f4d0ca1a0f610c2", "score": "0.5368242", "text": "@Override\r\n\tpublic void tired() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2e8b0d8bb9fd62c1559ca4b277c6505c", "score": "0.5362464", "text": "@Override\n\tpublic void 이체() {\n\t\t\n\t}", "title": "" }, { "docid": "c612bcadafd393d086f44fd19558a8be", "score": "0.53428185", "text": "@Override\r\n\tpublic void inicialize() {\n\t\t\r\n\t}", "title": "" }, { "docid": "92e1a32bf8a14cbe878aab7ec1ff2929", "score": "0.53339523", "text": "private LibroColumnas() {\r\n\t\t}", "title": "" }, { "docid": "50eb8922149b6987def0b49575615f5e", "score": "0.5332108", "text": "@Override\n protected void getExras() {\n }", "title": "" }, { "docid": "a8466bdc481ff3361d07776f72a6ad5a", "score": "0.5307333", "text": "@Override\n\tpublic void fliegen() {\n\t\t\n\t}", "title": "" }, { "docid": "6e5956e818ec3e8f970af74bb33f454d", "score": "0.5306055", "text": "public static void entrenar() {\r\n\r\n\t}", "title": "" }, { "docid": "d5df12c7fc56f53e0c3ce4a4c21583e1", "score": "0.5302653", "text": "private void init() {\n\r\n\t}", "title": "" }, { "docid": "dc1657290d0ea23e425359ba9180d2df", "score": "0.5300322", "text": "void mo1443a() {\n }", "title": "" }, { "docid": "234aa77d9cf02b8617820e857e5304e4", "score": "0.52978617", "text": "public void comer(){\n\t\t\n\t}", "title": "" }, { "docid": "73ffd108140c756e1eaa8948af3a83b4", "score": "0.52943397", "text": "public void mo10177b() {\n }", "title": "" }, { "docid": "84daddbd3d7b42a348f72aa6b2f79da8", "score": "0.5293773", "text": "private void syso() {\n\n\t}", "title": "" }, { "docid": "83c17378086426b4324c4ea8c160e29d", "score": "0.5290821", "text": "@Override\r\n\tpublic void provjeri() {\n\r\n\t}", "title": "" }, { "docid": "314ae73dd9b4e0fd24e41e58c68718e8", "score": "0.5285263", "text": "@Override\r\n\tpublic void conducir() {\n\t\t\r\n\t}", "title": "" }, { "docid": "d5fc964e118f8f0b5fe588463f39638b", "score": "0.52829117", "text": "private I000055() {\r\n\t}", "title": "" }, { "docid": "1f7c82e188acf30d59f88faf08cf24ac", "score": "0.52826077", "text": "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "title": "" }, { "docid": "1f7c82e188acf30d59f88faf08cf24ac", "score": "0.52826077", "text": "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "title": "" }, { "docid": "164451c7abb6fff8ecb189a8f21fcd12", "score": "0.5282045", "text": "@Override\n\tpublic void init() {\n\t\n\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.52786446", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.52786446", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.52786446", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.52786446", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.52786446", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.52786446", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.52786446", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.52786446", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.52786446", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "d04355b7ad17e966b9f1c072e9560857", "score": "0.52741176", "text": "@Override\n\tpublic void create() {\n\t\t\n\t}", "title": "" }, { "docid": "a2886dcb1a8e2640d74d74c777df3b70", "score": "0.5268739", "text": "private Preprocessing() {\n\t}", "title": "" }, { "docid": "8a2f3b349a25374b05205f9955000cb0", "score": "0.52685034", "text": "public void omzet(){\n\t}", "title": "" }, { "docid": "10dc6a272887f1695aec639a085f1c0d", "score": "0.5265987", "text": "private I000033() {\r\n\t}", "title": "" }, { "docid": "f6f56f418bd606790da6d3f972d1bd39", "score": "0.52614814", "text": "protected abstract void mo3576c();", "title": "" }, { "docid": "457e0a2d8fe5f80cbf17d360e0cc0c1e", "score": "0.5258703", "text": "public void dormir(){\n\t\t\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.52537346", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "e0b943b1b36797b4d7440bb3c831107f", "score": "0.5247686", "text": "public void mo37302a() {\n }", "title": "" }, { "docid": "03dec34dcb010fb4f8aaffffeb038a5c", "score": "0.5241666", "text": "@Override\r\n public void atacar() {\n \r\n }", "title": "" }, { "docid": "48b76c39838930fc990f13ee6f9030ff", "score": "0.5238455", "text": "private static void initialize() {\n\t\t\n\t}", "title": "" }, { "docid": "518a761521ca9f5cb8a8055b32b72cda", "score": "0.5237186", "text": "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "title": "" }, { "docid": "eb6fac579c5a5e493cb7f27eba04298e", "score": "0.52370065", "text": "private void initialize() {\r\n\t\t\r\n\t}", "title": "" }, { "docid": "b78de853138b4d1a9183420c6cd735cc", "score": "0.52369624", "text": "@Override\n public void init() {\n\n }", "title": "" }, { "docid": "b78de853138b4d1a9183420c6cd735cc", "score": "0.52369624", "text": "@Override\n public void init() {\n\n }", "title": "" }, { "docid": "b78de853138b4d1a9183420c6cd735cc", "score": "0.52369624", "text": "@Override\n public void init() {\n\n }", "title": "" }, { "docid": "b78de853138b4d1a9183420c6cd735cc", "score": "0.52369624", "text": "@Override\n public void init() {\n\n }", "title": "" }, { "docid": "b78de853138b4d1a9183420c6cd735cc", "score": "0.52369624", "text": "@Override\n public void init() {\n\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.52311534", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.52311534", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.52311534", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.52311534", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.52311534", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.52311534", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.52311534", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.52311534", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "819b796dad6d068def3a2de5b74170d7", "score": "0.52224714", "text": "private AggregatedDfs() {\n\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.52074474", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.52074474", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.52074474", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" } ]
6e6ac07b696369918f7d9c32afd6263a
Write code here that turns the phrase above into concrete actions
[ { "docid": "64751b46f11bd5a3716443096f004550", "score": "0.0", "text": "@When(\"^Merchant does not enter product quantity$\")\r\n\tpublic void merchant_does_not_enter_product_quantity() throws Throwable {\n\t throw new PendingException();\r\n\t}", "title": "" } ]
[ { "docid": "e8c67f59aacefad2171fc30c8f3da48f", "score": "0.6524557", "text": "public void action() {}", "title": "" }, { "docid": "7133578c877b5aaac7794fb83a8c15ee", "score": "0.639387", "text": "public void action() {\n }", "title": "" }, { "docid": "01438e109df226dcd1eb4ca409ee46c9", "score": "0.63501525", "text": "@Override\n\tpublic void action() {\n\n\t}", "title": "" }, { "docid": "01438e109df226dcd1eb4ca409ee46c9", "score": "0.63501525", "text": "@Override\n\tpublic void action() {\n\n\t}", "title": "" }, { "docid": "95fe24a609e34b11e9184f102ca4e058", "score": "0.6260675", "text": "private void setAction() {\n\t\tif (text.contains(\"Advance\") || text.contains(\"Go\") || text.contains(\"Take a trip\")||text.contains(\"Go to Jail\")||text.contains(\"3 spaces\")) {\n\t\t\taction = \"Move\";\n\t\t}\n\t\tif (text.contains(\"Collect\") && !action.equals(\"Move\") || text.contains(\"dividend\") || text.contains(\"Recieve\")\n\t\t\t\t|| text.contains(\"inherit\") || text.contains(\"sale\")) {\n\t\t\taction = \"Collect\";\n\t\t}\n\t\tif (text.contains(\"Pay\") && !action.equals(\"Collect\") && !action.equals(\"Move\")) {\n\t\t\taction = \"Pay\";\n\t\t}\n\t\tif (text.contains(\"Get out of jail\")) {\n\t\t\taction = \"Get out of jail\";\n\t\t}\n\t\tif (text.contains(\"repairs\")) {\n\t\t\taction = \"General repairs\";\n\t\t}\n\t}", "title": "" }, { "docid": "688450b52ce95560675808f92fda73fd", "score": "0.6255128", "text": "@Override\r\n\tpublic void action() {\r\n\t\t// TODO Auto-generated method stub\r\n\r\n\t}", "title": "" }, { "docid": "7bbd06f524a3818e0a9e211ad7961581", "score": "0.62439793", "text": "private void logText(String text, int action) {\n\t}", "title": "" }, { "docid": "f49a49f03516ea7b35e3b525cd219512", "score": "0.6234007", "text": "public interface Action{\n void then(Action next);\n Action expect(String match, final MatchedAction matched, Action next);\n Action next();\n String text();\n Action level();\n\n Action unknownCmd(String str);\n Action unknownCmd(String str, Action next);\n Match[] matches();\n boolean isLevel();\n Action expectedNext();\n ExpectState getExpectState();\n void resetExpectedNext();\n\n Action pop();\n Action push(Action up);\n}", "title": "" }, { "docid": "c0cb0f766d9a5aa729aa73fac00a1fb9", "score": "0.61597437", "text": "CodeableConcept getAction();", "title": "" }, { "docid": "54596ba592730f82feddaf47b71ab582", "score": "0.6152054", "text": "abstract public String interact();", "title": "" }, { "docid": "2237c2074309bb007afcf80a68ef2861", "score": "0.6073808", "text": "@Override\n\tpublic void doAction(IAction action) {\n\t\t\n\t}", "title": "" }, { "docid": "c8650930e4fe4aa684c4e9b4771d61b9", "score": "0.6066555", "text": "abstract void action();", "title": "" }, { "docid": "b8fd4ba994a046d54faebd53c8ccace7", "score": "0.60563195", "text": "public interface Action {\n \n /**\n * Executes this action.\n * Some actions (such as attacking) need to be resolved at a later stage, so this method will set\n * up the execution for the later steps.\n */\n void execute();\n \n /**\n * Get the piece this action is for\n * \n * @return \n */\n Piece getPiece();\n \n \n /**\n * Get the order that this action should be executed in.\n * i.e diplomatic moves (such as assassinations are completed before moves and attacks)\n * \n * @return \n */ \n Integer executionStep();\n \n}", "title": "" }, { "docid": "e7113174b177b6072b9fcb76ea899196", "score": "0.6048599", "text": "Statement getAction();", "title": "" }, { "docid": "4410f955b24516902fc3ef25bbf6e4f6", "score": "0.6044826", "text": "public interface ActionCommands\n{\n public static final String COMPILE_ACTION = \"Compile\";\n public static final String EVALUATE_ACTION = \"Evaluate\";\n}", "title": "" }, { "docid": "8b0fe29416f955fc49b300c6c0e9db8c", "score": "0.6018119", "text": "public void action();", "title": "" }, { "docid": "c2f421d1c58ce7f30b5a41834ab1ed37", "score": "0.60151803", "text": "@Override\n\tpublic void act( ) {\n\t}", "title": "" }, { "docid": "1a72e0383ce0cefd4e2d73847825688c", "score": "0.59795386", "text": "public interface ActionProcessor {\n void action(int action, SampleItem sampleItem);\n}", "title": "" }, { "docid": "79d1559068b10ec8bce43fa5ba7c4271", "score": "0.5965765", "text": "public void action() {\n\n }", "title": "" }, { "docid": "402987cebefedd42dac3da21da33b8b5", "score": "0.5946531", "text": "public interface UserAction {\n /**\n * Generates the key.\n * @return key\n */\n int key();\n /**\n * Executes action.\n * @param input any input implementation\n * @param tracker tracker instance\n */\n void execute(Input input, Tracker tracker);\n /**\n * Creates menu string.\n * @return string.\n */\n String info();\n}", "title": "" }, { "docid": "6e3734659ef8bfd53b869fe86b668d3b", "score": "0.5942323", "text": "public void actionEvent(int pos, Action act) {\r\n\t\t if (act.isBet() || act.isRaise()) {\r\n\t\t actions += \"r\";\r\n\t\t }\r\n\t\t else if(act.isFold()) {\r\n\t\t\t actions += \"f\";\r\n\t\t }\r\n\t\t else if(act.isCall() || act.isCheck()) {\r\n\t\t\t actions += \"c\";\r\n\t\t }\r\n\t\t else {\r\n\t\t\t return;\r\n\t\t }\r\n\t\t return;\r\n\t }", "title": "" }, { "docid": "8a1d3b26106df22ee4f6407b9df1ac37", "score": "0.5941376", "text": "public void performCharacterAction(String action) {\n\t\t\tactions.get(action).run();\n\t\t}", "title": "" }, { "docid": "16c819502f74a1f05b40efc0cfb40f5e", "score": "0.5933127", "text": "@Override\n\tpublic void askAction(int action) {\n\t}", "title": "" }, { "docid": "84def3514247cbe7675bb0397f62039c", "score": "0.59164566", "text": "public interface SlashAction {\r\n\r\n /**\r\n * Execute a chat command.\r\n *\r\n * @param params The formal parameters.\r\n * @param remainder Line content after parameters.\r\n *\r\n * @return <code>true</code> if command was handled.\r\n */\r\n boolean execute(String[] params, String remainder);\r\n\r\n /**\r\n * Get the maximum number of formal parameters.\r\n *\r\n * @return The parameter count.\r\n */\r\n int getMaximumParameters();\r\n\r\n /**\r\n * Get the minimum number of formal parameters.\r\n *\r\n * @return The parameter count.\r\n */\r\n int getMinimumParameters();\r\n\r\n /**\r\n * Display usage for this command.\r\n *\r\n * @param detailed Show detailed help, otherwise just 1-line synopsis.\r\n */\r\n public void usage(boolean detailed);\r\n}", "title": "" }, { "docid": "0f21267a38ba3645f60d5b4c506b4d00", "score": "0.59051085", "text": "public void act() {\n }", "title": "" }, { "docid": "a477ae21c87cf94fa6329a79fdd3bfe7", "score": "0.5904413", "text": "public abstract void useAction();", "title": "" }, { "docid": "6914c183d49cb3733f9adbedd6979645", "score": "0.58906066", "text": "public void doActionFunction() {\n\t\t\t}", "title": "" }, { "docid": "75bdb3d9bca14094aa83d5c261d70b80", "score": "0.5882725", "text": "@Override\r\n\tpublic void performAction() {\n\t\tSystem.err.println(\"Program was not implemented\");\r\n\t\t\r\n\t}", "title": "" }, { "docid": "ec6bfa82356a6e37e91425e29054980f", "score": "0.5881901", "text": "@Override\n public abstract String translateAction(int largeValue, int smallValue);", "title": "" }, { "docid": "8ffa4f05cc1c53263cf9664b1e92c616", "score": "0.58806294", "text": "Object react(Action action) throws Exception;", "title": "" }, { "docid": "164b6d691bfa07b996a1c8d73b13ee5a", "score": "0.5861959", "text": "public void action(Action action) {\n\n\t\tConsole.print(\"\\t(\" + action + \") \" + action.getDescription());\n\t\t\n\t}", "title": "" }, { "docid": "6a33ebccb4209deecfe044c29e34aaf1", "score": "0.583682", "text": "protected abstract void easyAiFetchAction() ;", "title": "" }, { "docid": "556b894cd40d178c6dc26949719cd605", "score": "0.5829379", "text": "public void run(String action) throws Throwable {\n\t\tSystem.out.print(action+\" \");\r\n\t\tif(action.equals(\"move\")) {\r\n\t\t\tchar form,direction; \r\n\t\t\tform=fcin.readLine().charAt(0);\r\n\t\t\tdirection=fcin.readLine().charAt(0);\r\n\t\t\tSystem.out.println(form+\" \"+direction);\r\n\t\t\t/*form=reader.next().charAt(0); //输入进行移动的英雄\r\n\t\t\tdirection=reader.next().charAt(0); //输入移动的方向*/\r\n\t\t\tgameBoard.Move(form, direction); //进行移动\r\n\t\t\t//gameBoard.showMap(); //移动后输出\r\n\t\t}\r\n\t\tif(action.equals(\"attack\")) {// 攻击操作\r\n\t\t\tchar attacker,defender;\r\n\t\t\tattacker=fcin.readLine().charAt(0);\r\n\t\t\tdefender=fcin.readLine().charAt(0);\r\n\t\t\tSystem.out.println(attacker+\" \"+defender);\r\n\t\t\t/*attacker=reader.next().charAt(0); //输入攻击英雄\r\n\t\t\tdefender=reader.next().charAt(0); //输入被攻击英雄*/\r\n\t\t\tgameBoard.attack(attacker, defender); //攻击操作\r\n\t\t\t\r\n\t\t\t//gameBoard.showMap(); \r\n\t\t}\r\n\t\tif(action.equals(\"skill\")) {//使用技能\r\n\t\t\tchar form;\r\n\t\t\tform=fcin.readLine().charAt(0);\r\n\t\t\t//form=reader.next().charAt(0); //输入使用技能的英雄\r\n\t\t\tString skill;\r\n\t\t\t//skill=reader.next(); //使用使用的技能\r\n\t\t\tskill=fcin.readLine();\r\n\t\t\tSystem.out.println(form+\" \"+skill);\r\n\t\t\tgameBoard.useSkill(form, skill); //使用技能\r\n\t\t\t//gameBoard.showMap();\r\n\t\t}\r\n\t\t//gameBoard.showMap();\r\n\t\tThread.sleep(1000);\r\n\t}", "title": "" }, { "docid": "b34a7555e80c93773e6bd1f1348b7033", "score": "0.5825741", "text": "public final java_cup.runtime.Symbol CUP$parser$do_action_part00000000(\n int CUP$parser$act_num,\n java_cup.runtime.lr_parser CUP$parser$parser,\n java.util.Stack CUP$parser$stack,\n int CUP$parser$top)\n throws java.lang.Exception\n {\n /* Symbol object for return from actions */\n java_cup.runtime.Symbol CUP$parser$result;\n\n /* select the action based on the action number */\n switch (CUP$parser$act_num)\n {\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 0: // NT$0 ::= \n {\n Object RESULT =null;\nfile = writer (); \r\nsepi = writerspecific();\r\n\r\nsepi.write(\"import java.util.ArrayList;\\n\");\r\nsepi.write(\"public class HabitatSpecific extends Habitat {\\n\");\r\nsepi.write(\"public HabitatSpecific(ArrayList<CAppareil> lapp, ArrayList<CEnsAppareil> lens, ArrayList<CScenario> lscen, ArrayList<CInterface> lint, ArrayList<CProgrammation> lprog)\\n{\\n\");\r\nsepi.write(\"super(lapp,lens,lscen,lint,lprog);\\n}\\n\");\r\nsepi.write(\"public void execScenarioNum(int num)\\n{\\n System.out.println( \\\"Execution du scenario \\\"+this.l_scenarios.get(num).getNomScenario()+\\\"... \\\");\\n switch(num) {\\n\");\r\n\r\n\r\n\r\n\r\n\r\n\r\nfile.write(\"public class CMaisonUser extends CMaison {\\n\"); \r\nfile.write(\"public CMaisonUser() {\\n\"); \r\nfile.write(\"super();\\n\"); \r\n\r\n \r\n \r\n\r\n\r\n \n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"NT$0\",18, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 1: // NT$1 ::= \n {\n Object RESULT =(Object) ((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-1)).value;\n \r\n\r\nfor (String key : variables.keySet())\r\n{String str = variables.get(key) ;\r\nif (str.startsWith(\"autre_appareil(\")){str=\"autre_appareil\";}\r\n\r\nswitch(str){\r\n case \"eclairage\" :\r\n file.write(\"CEclairage \"+key+ \" = new CEclairage(\\\"\"+key+\"\\\",TypeAppareil.ECLAIRAGE);\\n\");\r\n file.write(\"ma_liste_appareils.add(\"+key+\");\\n\"); \r\n\r\n \t\tbreak;\r\n\t\t\tcase \"alarme\" :\r\n file.write(\"CAlarme \"+key+ \" = new CAlarme(\\\"\"+key+\"\\\",TypeAppareil.ALARME);\\n\");\r\n file.write(\"ma_liste_appareils.add(\"+key+\");\\n\"); \r\n\r\n \t\t break;\r\n\r\n\t\t\tcase \"chauffage\" :\r\n file.write(\"CEclairage \"+key+ \" = new CEclairage(\\\"\"+key+\"\\\",TypeAppareil.CHAUFFAGE);\\n\");\r\n file.write(\"ma_liste_appareils.add(\"+key+\");\\n\"); \r\n\r\n \t\t break;\r\n\t\t\tcase \"fenetre\" :\r\n file.write(\"CVoletFenetre \"+key+ \" = new CVoletFenetre(\\\"\"+key+\"\\\",TypeAppareil.FENETRE);\\n\");\r\n file.write(\"ma_liste_appareils.add(\"+key+\");\\n\"); \r\n\r\n \t\t break;\r\n\t\t\tcase \"volet\" :\r\n file.write(\"CVoletFenetre \"+key+ \" = new CVoletFenetre (\\\"\"+key+\"\\\",TypeAppareil.VOLET);\\n\");\r\n file.write(\"ma_liste_appareils.add(\"+key+\");\\n\"); \r\n\r\n \t\t break;\r\n\t\t\tcase \"autre_appareil\" :\r\nString ks = variables.get(key) ; \r\nString st = types(ks);\r\n file.write(\"CAutreAppareil \"+key+ \" = new CAutreAppareil (\\\"\"+key+\"\\\", \"+ st+\");\\n\");\r\n file.write(\"ma_liste_appareils.add(\"+key+\");\\n\"); \r\n\r\n \t\t break;\r\n \r\n default : \r\n\r\n}}\r\n\r\nfor (String keys : variables.keySet()){\r\n\r\nif (variables.get(keys).contains(\",\")){\r\n String[] kk = variables.get(keys).split(\",\"); \r\n file.write(\"CEnsAppareil \"+keys+ \" = new CEnsAppareil(\\\"\"+keys+\"\\\");\\n\");\r\nfor (int i = 0; i < kk.length ; i++ )\r\n{\r\n file.write(keys+ \".addAppareil(\"+kk[i]+\");\\n\");\r\n}\r\nfile.write(\"ma_liste_ens_appareils.add(\"+keys+ \");\\n\");\r\n\r\n}\r\n\r\n} \r\n\r\n\r\n\r\n \r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"NT$1\",19, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 2: // NT$2 ::= \n {\n Object RESULT =(Object) ((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-1)).value;\n\r\n\r\n\r\n\r\n\r\nfor (String key : commandes.keySet())\r\n{String str = commandes.get(key) ;\r\nswitch(str){\r\n case \"mobile\" :\r\n file.write(\"CInterface \"+key+ \" = new CInterface(\\\"\"+key+\"\\\",TypeInterface.\"+str.toUpperCase()+\");\\n\");\r\n file.write(\"ma_liste_interfaces.add(\"+key+\");\\n\"); \r\n\r\n \t\tbreak;\r\n\t\t\tcase \"telephone\" :\r\n file.write(\"CInterface \"+key+ \" = new CInterface(\\\"\"+key+\"\\\",TypeInterface.\"+str.toUpperCase()+\");\\n\");\r\n file.write(\"ma_liste_interfaces.add(\"+key+\");\\n\"); \r\n\r\n \t\t break;\r\n\r\n\t\t\tcase \"telecommande\" :\r\n file.write(\"CInterface \"+key+ \" = new CInterface(\\\"\"+key+\"\\\",TypeInterface.\"+str.toUpperCase()+\");\\n\");\r\n file.write(\"ma_liste_interfaces.add(\"+key+\");\\n\"); \r\n\r\n \t\t break;\r\n\t\t\tcase \"tablette\" :\r\n file.write(\"CInterface \"+key+ \" = new CInterface(\\\"\"+key+\"\\\",TypeInterface.\"+str.toUpperCase()+\");\\n\");\r\n file.write(\"ma_liste_interfaces.add(\"+key+\");\\n\"); \r\n\r\n \t\t break;\r\n\t\t\tcase \"interrupteur\" : \r\n file.write(\"CInterface \"+key+ \" = new CInterface(\\\"\"+key+\"\\\",TypeInterface.\"+str.toUpperCase()+\");\\n\");\r\n file.write(\"ma_liste_interfaces.add(\"+key+\");\\n\"); \r\n\r\n \t\t break;\r\n case \"ordinateur\" :\r\n file.write(\"CInterface \"+key+ \" = new CInterface(\\\"\"+key+\"\\\",TypeInterface.\"+str.toUpperCase()+\");\\n\");\r\n file.write(\"ma_liste_interfaces.add(\"+key+\");\\n\"); \r\n\r\n \t\t break;\r\n\t\t\t\r\n \r\n default : ; \r\n\r\n\r\n\r\n\r\n} }\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"NT$2\",20, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 3: // NT$3 ::= \n {\n Object RESULT =(Object) ((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-2)).value;\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"NT$3\",21, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 4: // S ::= PDO NT$0 da NT$1 di NT$2 ds dc NT$3 PDF \n {\n Object RESULT =null;\n // propagate RESULT from NT$3\n RESULT = (Object) ((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-1)).value;\n\t\t\r\n\r\n System.out.println(\"Analyse terminne !!\");\r\n file.write(\"monHabitat = new HabitatSpecific(ma_liste_appareils,ma_liste_ens_appareils, ma_liste_scenarios,ma_liste_interfaces, ma_liste_programmations);\\n\");\r\n file.write(\"}\\n\");\r\n file.write(\"}\\n\");\r\n for (String key : scenario_ordre.keySet()){\r\n\r\n sepi.write(\" case \"+scenario_ordre.get(key)+\": \\n\");\r\n\t\t//System.out.println(\"l ecriturte \"+ key + \" \"+scenario_ordre.get(key));\r\n sepi.write( scenario_map.get(key).replace(\"\\\\\",\"\") + \"\\n\");\r\n\tsepi.write( \"break;\\n\");\r\n\r\n\r\n}\r\n\r\n sepi.write( \"default : \\n\");\r\n sepi.write( \"}\\n}\\n}\\n\");\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n \r\n\r\n try {\r\n\t\t\t\tif (file!= null) {\r\n\t\t\t\t\tfile.flush();\r\n\t\t\t\t\tfile.close();\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\ntry {\r\n\t\t\t\tif (sepi!= null) {\r\n\t\t\t\t\tsepi.flush();\r\n\t\t\t\t\tsepi.close();\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t\r\n \n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"S\",0, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-9)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 5: // $START ::= S EOF \n {\n Object RESULT =null;\n\t\tint start_valleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)).left;\n\t\tint start_valright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)).right;\n\t\tObject start_val = (Object)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-1)).value;\n\t\tRESULT = start_val;\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"$START\",0, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n /* ACCEPT */\n CUP$parser$parser.done_parsing();\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 6: // da ::= DAO dad DAF \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"da\",1, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 7: // NT$4 ::= \n {\n Object RESULT =null;\n\t\tint typeleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)).left;\n\t\tint typeright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)).right;\n\t\tString type = (String)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-2)).value;\n\r\n\r\n for (int i=0;i<Global.size();i++){if (!variables.containsKey(Global.get(i))) {\r\n variables.put(Global.get(i),type);} else {report_error(\"La variable \"+Global.get(i)+\" existe deja\",Global.get(i));}}\r\n Global.clear();\r\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"NT$4\",22, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 8: // dad ::= APPAREIL_TYPE MOT PT NT$4 dad \n {\n Object RESULT =null;\n // propagate RESULT from NT$4\n RESULT = (Object) ((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-1)).value;\n\t\tint typeleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)).left;\n\t\tint typeright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)).right;\n\t\tString type = (String)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-4)).value;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"dad\",2, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 9: // NT$5 ::= \n {\n Object RESULT =null;\n\t\tint autreleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)).left;\n\t\tint autreright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)).right;\n\t\tString autre = (String)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-2)).value;\n\r\n for (int j=0;j<Global.size();j++){if (!variables.containsKey(Global.get(j))) {\r\n variables.put(Global.get(j),autre);} else {report_error(\"La variable \"+Global.get(j)+\" existe deja\",Global.get(j));}}\r\n Global.clear();\r\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"NT$5\",23, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 10: // dad ::= AUTRE_APPAREIL MOT PT NT$5 dad \n {\n Object RESULT =null;\n // propagate RESULT from NT$5\n RESULT = (Object) ((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-1)).value;\n\t\tint autreleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)).left;\n\t\tint autreright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)).right;\n\t\tString autre = (String)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-4)).value;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"dad\",2, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 11: // NT$6 ::= \n {\n Object RESULT =null;\n\t\tint nameleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-5)).left;\n\t\tint nameright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-5)).right;\n\t\tString name = (String)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-5)).value;\n\r\n for (int j=0;j<Global.size();j++){ens+=Global.get(j);if ((j+1)< Global.size()){ens+=\",\";}}if (!variables.containsKey(name)) {\r\n variables.put(name,ens);} else {report_error(\"La variable \"+name+\" existe deja\",name);}\r\nens=\"\";\r\n Global.clear();\r\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"NT$6\",24, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 12: // dad ::= DEFINIR nom EGAL AO MOT AF PT NT$6 dad \n {\n Object RESULT =null;\n // propagate RESULT from NT$6\n RESULT = (Object) ((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-1)).value;\n\t\tint nameleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-7)).left;\n\t\tint nameright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-7)).right;\n\t\tString name = (String)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-7)).value;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"dad\",2, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-8)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 13: // dad ::= \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"dad\",2, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 14: // ds ::= DSO dsd DSF \n {\n Object RESULT =null;\n\t\t\t\r\n\r\n\t\t\t\tfor (int i=0; i<scenario_ordre.size();i++){\r\n\t\t\t\t\t\r\n\t\t\tfor (String key : scenario_map.keySet()) {\r\n\t\t\t\tif(i== scenario_ordre.get(key)){\r\n file.write(\"\\n String \"+ key+\"_contenu = \" + \"\\\"\"+ scenario_map.get(key) +\" \\\" ; \\n\" );\r\n\t\t file.write(\"CScenario \"+ key +\" = new CScenario(\\\"\"+key+\"\\\",\"+key+\"_contenu ) ;\\n\");\r\n\t\t\t file.write(\"ma_liste_scenarios.add(\"+key+\"); \\n\");\r\n\t\t\t\t}\r\n \r\n\r\n\t\t}\r\n\r\n\r\n\r\n\t\t\t\t}\r\n\t\t\t\r\n\t\t\t\r\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"ds\",3, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 15: // NT$7 ::= \n {\n Object RESULT =null;\n\t\tint openleft = ((java_cup.runtime.Symbol)CUP$parser$stack.peek()).left;\n\t\tint openright = ((java_cup.runtime.Symbol)CUP$parser$stack.peek()).right;\n\t\tString open = (String)((java_cup.runtime.Symbol) CUP$parser$stack.peek()).value;\n \r\nString[] str = open.split(\" \");\r\nString u = str[1];\r\nString us= u.substring(0,u.length() - 1 );\r\nscenario_nom = us ;\r\ncommandes.put(us,\"scenario\");\r\n\r\n \n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"NT$7\",25, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 16: // NT$8 ::= \n {\n Object RESULT =(Object) ((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-2)).value;\n\t\tint openleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)).left;\n\t\tint openright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)).right;\n\t\tString open = (String)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-3)).value;\n\t\tint finleft = ((java_cup.runtime.Symbol)CUP$parser$stack.peek()).left;\n\t\tint finright = ((java_cup.runtime.Symbol)CUP$parser$stack.peek()).right;\n\t\tString fin = (String)((java_cup.runtime.Symbol) CUP$parser$stack.peek()).value;\nscenario_map.put(scenario_nom,scenario_contenu); \r\n\t\t\t scenario_ordre.put(scenario_nom,ordre);\r\n\t\t\t\t// System.out.println(\"ordre scenario est \"+ scenario_nom + \" \"+ordre);\r\n\t\t\t\t ordre++;\r\n\t\t\t\t scenario_nom=\"\"; scenario_contenu=\"\"; \r\n\t\t\t \n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"NT$8\",26, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 17: // dsd ::= DSCO NT$7 scenario DSCF NT$8 dsd \n {\n Object RESULT =null;\n // propagate RESULT from NT$8\n RESULT = (Object) ((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-1)).value;\n\t\tint openleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-5)).left;\n\t\tint openright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-5)).right;\n\t\tString open = (String)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-5)).value;\n\t\tint finleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)).left;\n\t\tint finright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)).right;\n\t\tString fin = (String)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-2)).value;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"dsd\",4, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-5)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 18: // dsd ::= \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"dsd\",4, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 19: // NT$9 ::= \n {\n Object RESULT =null;\n\t\tint nleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)).left;\n\t\tint nright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)).right;\n\t\tString n = (String)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-2)).value;\n\t\tint typeleft = ((java_cup.runtime.Symbol)CUP$parser$stack.peek()).left;\n\t\tint typeright = ((java_cup.runtime.Symbol)CUP$parser$stack.peek()).right;\n\t\tString type = (String)((java_cup.runtime.Symbol) CUP$parser$stack.peek()).value;\n variables.put(n,use); use=\"\"; \r\nf = 1;\r\ntypeif=type;\r\nif(imbrication==\"\"){\r\nimbrication=\"0\";\r\n}\r\nelse {int k =(Integer.parseInt(imbrication)+1);\r\nimbrication= \"\"+k;}\r\n\r\nif(variables.containsKey(type)){ // declaration dans un ensemble\r\nensemble =1;\r\nscenario_contenu+=\"for(CEnsAppareil ensAppareil\"+imbrication+\" : this.l_ensembles){\" ;\r\nscenario_contenu+=\" if (ensAppareil\"+imbrication+\".nomEnsAppareil.equals(\"+co+retourner_type(type)+co+\")) { \";\r\n\r\n}\r\nelse if(type.equals(\"autre_appareil\")){ // si autre appareil sans specifications\r\n\r\nscenario_contenu+=\"for(CAppareil appareil\"+imbrication+\" : this.l_appareils){\" ;\r\nscenario_contenu+=\" if (appareil\"+imbrication+\".estTypeAutreAppareil()) { \";\r\n\r\n}\r\nelse { // appareil ordinaires ou autre_appareil(hifi.....)\r\nensemble =0;\r\nscenario_contenu+=\" for(CAppareil appareil\"+imbrication+\" : this.l_appareils) {\" ;\r\nscenario_contenu+=\" if (appareil\"+imbrication+\".typeAppareil.equals(\"+retourner_type(type)+\")) { \";\r\n\r\n}\r\n\r\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"NT$9\",27, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 20: // NT$10 ::= \n {\n Object RESULT =(Object) ((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-2)).value;\n\t\tint nleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-5)).left;\n\t\tint nright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-5)).right;\n\t\tString n = (String)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-5)).value;\n\t\tint typeleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)).left;\n\t\tint typeright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)).right;\n\t\tString type = (String)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-3)).value;\nscenario_contenu+=\" } }\"; \n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"NT$10\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 21: // NT$11 ::= \n {\n Object RESULT =(Object) ((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-2)).value;\n\t\tint nleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-8)).left;\n\t\tint nright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-8)).right;\n\t\tString n = (String)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-8)).value;\n\t\tint typeleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-6)).left;\n\t\tint typeright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-6)).right;\n\t\tString type = (String)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-6)).value;\nimbrication=\"\";\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"NT$11\",29, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 22: // scenario ::= POURTOUT nom DP x NT$9 FAIRE scenario NT$10 FAIT PV NT$11 scenario \n {\n Object RESULT =null;\n // propagate RESULT from NT$11\n RESULT = (Object) ((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-1)).value;\n\t\tint nleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-10)).left;\n\t\tint nright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-10)).right;\n\t\tString n = (String)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-10)).value;\n\t\tint typeleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-8)).left;\n\t\tint typeright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-8)).right;\n\t\tString type = (String)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-8)).value;\n\t\t variables.remove(n);\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"scenario\",5, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-11)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 23: // NT$12 ::= \n {\n Object RESULT =null;\n\t\tint nleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)).left;\n\t\tint nright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)).right;\n\t\tString n = (String)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-2)).value;\n\t\tint actionleft = ((java_cup.runtime.Symbol)CUP$parser$stack.peek()).left;\n\t\tint actionright = ((java_cup.runtime.Symbol)CUP$parser$stack.peek()).right;\n\t\tString action = (String)((java_cup.runtime.Symbol) CUP$parser$stack.peek()).value;\n\r\n\r\nif (!variables.containsKey(n)){report_error(\"La variable \"+n+\" n'a pas été declarée\",n);} \r\n else {\r\n\r\n\r\nif(f == 1){\r\n\tif(ensemble==1){ ensemble=0 ;\r\n\tscenario_contenu+=\"for(CAppareil appareil\"+imbrication+\" : ensAppareil\"+imbrication+\".lAppareils) appareil\"+imbrication+\".appliquer(TypeActionAppareil.\"+action.toUpperCase()+\");\" ;\r\n\t\r\n\t}\r\n\telse{\r\n scenario_contenu+=\"appareil\"+imbrication+\".appliquer(TypeActionAppareil.\"+action.toUpperCase()+\"); \";\r\n\r\n\t}\r\n\tf =0;\r\n}\r\nelse if (c==1){\r\n\r\nscenario_contenu+=\" appareil\"+imbrication+\".appliquer(TypeActionAppareil.\"+action.toUpperCase()+\"); \" ;\r\n c=0;\r\n\r\n}\r\nelse{\r\nscenario_contenu+=\" for(CAppareil appareil : this.l_appareils) {\" ;\r\nscenario_contenu+=\" if (appareil.getNomAppareil().equals(\"+co+n+co+\")) \";\r\nscenario_contenu+=\"appareil.appliquer(TypeActionAppareil.\"+action.toUpperCase()+\"); } \";\t\t\r\n\t\t }\t \r\n\r\nString str = variables.get(n) ; \r\nif (str.startsWith(\"autre_appareil(\")){str = \"autre_appareil\"; }\r\nif (variables.containsKey(str)){String[] k = variables.get(str).split(\",\");str =variables.get( k[0] );}\r\nboolean b = false ; \r\n\r\n\r\nswitch(str){\r\n case \"eclairage\" :\r\n if (eclairage.contains(action)) { b = true ;}\r\n \t\tbreak;\r\n\t\t\tcase \"alarme\" :\r\n if (alarme.contains(action)) { b = true;} \r\n \t\t break;\r\n\t\t\tcase \"chauffage\" :\r\n if (chauffage.contains(action)) { b = true;} \r\n \t\t break;\r\n\t\t\tcase \"fenetre\" :\r\n if (fenvol.contains(action)){ b = true;} \r\n \t\t break;\r\n\t\t\tcase \"volet\" :\r\n if (fenvol.contains(action)) {b = true ;}\r\n \t\t break;\r\n\t\t\tcase \"autre_appareil\" :\r\n if (autre.contains(action)) {b = true;} \r\n \t\t break;\r\n default : \r\n b = false ;\r\n}\r\n\r\nif ( b== false ) { report_error(action+ \" n'est pas autorisee pour la variable \"+n,action.toUpperCase()); }\r\n\r\n\r\n}\r\n\r\n\r\n \n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"NT$12\",30, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 24: // scenario ::= nom PT ACTION NT$12 PV scenario \n {\n Object RESULT =null;\n // propagate RESULT from NT$12\n RESULT = (Object) ((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-2)).value;\n\t\tint nleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-5)).left;\n\t\tint nright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-5)).right;\n\t\tString n = (String)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-5)).value;\n\t\tint actionleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)).left;\n\t\tint actionright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)).right;\n\t\tString action = (String)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-3)).value;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"scenario\",5, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-5)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 25: // NT$13 ::= \n {\n Object RESULT =null;\n\t\tint nleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)).left;\n\t\tint nright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)).right;\n\t\tString n = (String)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-1)).value;\n scenario_contenu+=\" this.execScenarioNum(\"+index_of_scenario(scenario_ordre,n) +\"); \" ; \n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"NT$13\",31, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 26: // scenario ::= EXECUTER_SCENARIO nom PV NT$13 scenario \n {\n Object RESULT =null;\n // propagate RESULT from NT$13\n RESULT = (Object) ((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-1)).value;\n\t\tint nleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)).left;\n\t\tint nright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)).right;\n\t\tString n = (String)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-3)).value;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"scenario\",5, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 27: // NT$14 ::= \n {\n Object RESULT =null;\n\t\tint nleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)).left;\n\t\tint nright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)).right;\n\t\tString n = (String)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-4)).value;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$parser$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$parser$stack.peek()).right;\n\t\tString e = (String)((java_cup.runtime.Symbol) CUP$parser$stack.peek()).value;\n\r\nc=1;\r\nString kk=\"\";\r\nint k=0;\r\nif(imbrication==\"\"){\r\nimbrication=\"0\";\r\n}\r\nelse { \r\nk =(Integer.parseInt(imbrication));\r\nkk= \"\"+k;\t\r\nk =(Integer.parseInt(imbrication)+1);\r\nimbrication= \"\"+k;}\r\n\r\nif(f==1){\r\n\tf=0;\r\nif(ensemble==1){\r\n\r\nscenario_contenu+=\" for(CAppareil appareil\"+imbrication+\" : ensAppareil\"+kk+\".lAppareils){ \";\r\nscenario_contenu+=\"{ \";\r\nscenario_contenu+= \"if (appareil\"+imbrication+\".etatAppareil.equals(TypeEtatAppareil.\"+e.toUpperCase()+\")) { \";}\r\n\r\nelse{\r\n\r\nscenario_contenu+=\" for(CAppareil appareil\"+imbrication+\" : this.l_appareils){ \";\r\nscenario_contenu+=\"if (appareil\"+imbrication+\".typeAppareil.equals(\"+retourner_type(typeif)+\")){ \";\r\nscenario_contenu+= \"if (appareil\"+imbrication+\".etatAppareil.equals(TypeEtatAppareil.\"+e.toUpperCase()+\")) { \";}\r\n}\r\nelse\r\n{\r\nscenario_contenu+=\" for(CAppareil appareil\"+imbrication+\" : this.l_appareils){ \";\r\nscenario_contenu+=\"if (appareil\"+imbrication+\".getNomAppareil().equals(\"+co+n+co+\")){ \";\r\nscenario_contenu+= \"if (appareil\"+imbrication+\".etatAppareil.equals(TypeEtatAppareil.\"+e.toUpperCase()+\")) { \";}\r\n\r\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"NT$14\",32, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 28: // NT$15 ::= \n {\n Object RESULT =(Object) ((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-3)).value;\n\t\tint nleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-8)).left;\n\t\tint nright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-8)).right;\n\t\tString n = (String)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-8)).value;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)).right;\n\t\tString e = (String)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-4)).value;\nscenario_contenu+=\"}\";\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"NT$15\",33, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 29: // NT$16 ::= \n {\n Object RESULT =(Object) ((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-1)).value;\n\t\tint nleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-10)).left;\n\t\tint nright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-10)).right;\n\t\tString n = (String)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-10)).value;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-6)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-6)).right;\n\t\tString e = (String)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-6)).value;\nscenario_contenu+=\"}}\";imbrication=\"\"; \n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"NT$16\",34, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 30: // scenario ::= SI PO nom PT ETAT DEGAL ETATS NT$14 PF ALORS scenario NT$15 sinon NT$16 FSI PV scenario \n {\n Object RESULT =null;\n // propagate RESULT from NT$16\n RESULT = (Object) ((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-3)).value;\n\t\tint nleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-14)).left;\n\t\tint nright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-14)).right;\n\t\tString n = (String)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-14)).value;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-10)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-10)).right;\n\t\tString e = (String)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-10)).value;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"scenario\",5, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-16)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 31: // scenario ::= msgs PV scenario \n {\n Object RESULT =null;\n\t\tmessage_content=\"\\\\\\\"\"+message_content.replace(\"\\\\\\\"\",\"\")+\"\\\\\\\"\"; scenario_contenu+=\" System.out.println(\" +message_content+ \") ; \" ; message_content=\"\"; \n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"scenario\",5, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 32: // scenario ::= \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"scenario\",5, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 33: // NT$17 ::= \n {\n Object RESULT =null;\nscenario_contenu+=\" else { \"; \n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"NT$17\",35, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 34: // sinon ::= SINON NT$17 scenario \n {\n Object RESULT =null;\n // propagate RESULT from NT$17\n RESULT = (Object) ((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-1)).value;\n\t\tscenario_contenu+=\"} \";\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"sinon\",8, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 35: // sinon ::= \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"sinon\",8, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 36: // x ::= nom \n {\n String RESULT =null;\n\t\tint nleft = ((java_cup.runtime.Symbol)CUP$parser$stack.peek()).left;\n\t\tint nright = ((java_cup.runtime.Symbol)CUP$parser$stack.peek()).right;\n\t\tString n = (String)((java_cup.runtime.Symbol) CUP$parser$stack.peek()).value;\n\t\t RESULT = n; use=n;\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"x\",7, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 37: // x ::= APPAREIL_TYPE \n {\n String RESULT =null;\n\t\tint nleft = ((java_cup.runtime.Symbol)CUP$parser$stack.peek()).left;\n\t\tint nright = ((java_cup.runtime.Symbol)CUP$parser$stack.peek()).right;\n\t\tString n = (String)((java_cup.runtime.Symbol) CUP$parser$stack.peek()).value;\n\t\t RESULT = n; use=n;\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"x\",7, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 38: // x ::= AUTRE_APPAREIL \n {\n String RESULT =null;\n\t\tint nleft = ((java_cup.runtime.Symbol)CUP$parser$stack.peek()).left;\n\t\tint nright = ((java_cup.runtime.Symbol)CUP$parser$stack.peek()).right;\n\t\tString n = (String)((java_cup.runtime.Symbol) CUP$parser$stack.peek()).value;\n\t\t RESULT = n; use=n;\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"x\",7, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 39: // di ::= DIO did DIF \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"di\",9, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 40: // NT$18 ::= \n {\n Object RESULT =null;\n\t\tint typeleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)).left;\n\t\tint typeright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)).right;\n\t\tString type = (String)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-2)).value;\n\r\n for (int j=0;j<Global.size();j++){if (!commandes.containsKey(Global.get(j))) {\r\n commandes.put(Global.get(j),type);} else {report_error(\"L'interface \"+Global.get(j)+\" existe deja\",Global.get(j));}}\r\n Global.clear();\r\n\r\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"NT$18\",36, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 41: // did ::= INTERFACE_TYPE MOT PT NT$18 did \n {\n Object RESULT =null;\n // propagate RESULT from NT$18\n RESULT = (Object) ((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-1)).value;\n\t\tint typeleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)).left;\n\t\tint typeright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)).right;\n\t\tString type = (String)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-4)).value;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"did\",13, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 42: // did ::= \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"did\",13, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 43: // dc ::= DCO dcd DCF \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"dc\",10, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 44: // dcd ::= ASSOCIER nom EGAL nom PT dcd \n {\n Object RESULT =null;\n\t\tint nameleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)).left;\n\t\tint nameright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)).right;\n\t\tString name = (String)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-4)).value;\n\t\tint scenleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)).left;\n\t\tint scenright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)).right;\n\t\tString scen = (String)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-2)).value;\n\t\t if (!commandes.containsKey(name)){report_error(\"L'interface \"+name+\" n'a pas été declarée\",name);}\r\n file.write(name+ \".addScenarioAssocie(\\\"\"+ scen +\"\\\");\\n\");\r\n\r\n\r\n \n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"dcd\",14, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-5)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 45: // dcd ::= ASSOCIER nom EGAL AO MOT AF PT dcd \n {\n Object RESULT =null;\n\t\tint nameleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-6)).left;\n\t\tint nameright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-6)).right;\n\t\tString name = (String)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-6)).value;\n\t\t if (!commandes.containsKey(name)){report_error(\"L'interface \"+name+\" n'a pas été declarée\",name);}\r\n for (int j=0;j<Global.size();j++){\r\n file.write(name+ \".addScenarioAssocie(\\\"\"+ Global.get(j) +\"\\\");\\n\");\r\n}\r\n Global.clear();\r\n\r\n \n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"dcd\",14, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-7)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 46: // NT$19 ::= \n {\n Object RESULT =null;\n\t\tint nameleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-5)).left;\n\t\tint nameright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-5)).right;\n\t\tString name = (String)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-5)).value;\n if (!commandes.containsKey(name)){report_error(\"Le scenario \"+name+\" n'a pas été declarée\",name);}\r\n file.write(\"CProgrammation p\"+ p +\" = new CProgrammation(\\\"\"+name+\"\\\");\\n\");\r\nfor (int j=0;j<Global.size();j++){\r\n String ds = Global.get(j).replace(\"_\",\"-1\");\r\n file.write(\"CDate p\"+ p +\"d\"+d+\" = new CDate\"+ds+ \";\\n\");\r\n file.write(\"p\"+ p +\".addDate(p\"+p+\"d\"+d+\");\\n\");\r\nd++;\r\n\r\n\r\n}\r\n file.write(\"ma_liste_programmations.add(p\"+p+\");\\n\");\r\np++;\r\n d= 1 ;\r\nGlobal.clear();\r\n \n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"NT$19\",37, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 47: // dcd ::= PROGRAMMER nom EGAL AO dat AF PT NT$19 dcd \n {\n Object RESULT =null;\n // propagate RESULT from NT$19\n RESULT = (Object) ((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-1)).value;\n\t\tint nameleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-7)).left;\n\t\tint nameright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-7)).right;\n\t\tString name = (String)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-7)).value;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"dcd\",14, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-8)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 48: // NT$20 ::= \n {\n Object RESULT =null;\n\t\tint nameleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)).left;\n\t\tint nameright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)).right;\n\t\tString name = (String)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-3)).value;\n\t\tint dtleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)).left;\n\t\tint dtright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)).right;\n\t\tString dt = (String)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-1)).value;\nverifier_date(dt.replace(\"_\",\"0001\")); if (!commandes.containsKey(name)){report_error(\"Le scenario \"+name+\" n'a pas été declarée\",name);}\r\n String ds = dt.replace(\"_\",\"-1\");\r\n file.write(\"CProgrammation p\"+ p +\" = new CProgrammation(\\\"\"+name+\"\\\");\\n\");\r\n file.write(\"CDate p\"+ p +\"d\"+d+\" = new CDate\"+ds+ \";\\n\");\r\n file.write(\"p\"+ p +\".addDate(p\"+p+\"d\"+d+\");\\n\");\r\n file.write(\"ma_liste_programmations.add(p\"+p+\");\\n\");\r\n p++;\r\n d= 1 ;\r\n \r\n\r\n \n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"NT$20\",38, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 49: // dcd ::= PROGRAMMER nom EGAL DATE PT NT$20 dcd \n {\n Object RESULT =null;\n // propagate RESULT from NT$20\n RESULT = (Object) ((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-1)).value;\n\t\tint nameleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-5)).left;\n\t\tint nameright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-5)).right;\n\t\tString name = (String)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-5)).value;\n\t\tint dtleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)).left;\n\t\tint dtright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)).right;\n\t\tString dt = (String)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-3)).value;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"dcd\",14, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-6)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 50: // dcd ::= \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"dcd\",14, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 51: // dat ::= DATE VG dat \n {\n String RESULT =null;\n\t\tint ddleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)).left;\n\t\tint ddright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)).right;\n\t\tString dd = (String)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-2)).value;\n\t\tverifier_date( dd.replace(\"_\",\"0001\") ); Global.add(dd);\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"dat\",11, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 52: // dat ::= DATE \n {\n String RESULT =null;\n\t\tint ddleft = ((java_cup.runtime.Symbol)CUP$parser$stack.peek()).left;\n\t\tint ddright = ((java_cup.runtime.Symbol)CUP$parser$stack.peek()).right;\n\t\tString dd = (String)((java_cup.runtime.Symbol) CUP$parser$stack.peek()).value;\n\t\t verifier_date(dd.replace(\"_\",\"0001\") ); Global.add(dd);\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"dat\",11, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 53: // mesgouact ::= nom PT ACTION \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"mesgouact\",15, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 54: // mesgouact ::= msgs \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"mesgouact\",15, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 55: // mesgouact ::= mesgouact PV nom PT ACTION \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"mesgouact\",15, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 56: // mesgouact ::= mesgouact PV msgs \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"mesgouact\",15, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 57: // NT$21 ::= \n {\n Object RESULT =null;\n\t\tint xleft = ((java_cup.runtime.Symbol)CUP$parser$stack.peek()).left;\n\t\tint xright = ((java_cup.runtime.Symbol)CUP$parser$stack.peek()).right;\n\t\tString x = (String)((java_cup.runtime.Symbol) CUP$parser$stack.peek()).value;\nGlobal.add(x);\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"NT$21\",39, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 58: // MOT ::= nom NT$21 VG MOT \n {\n Object RESULT =null;\n // propagate RESULT from NT$21\n RESULT = (Object) ((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-2)).value;\n\t\tint xleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)).left;\n\t\tint xright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)).right;\n\t\tString x = (String)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-3)).value;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"MOT\",6, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 59: // MOT ::= nom \n {\n Object RESULT =null;\n\t\tint xleft = ((java_cup.runtime.Symbol)CUP$parser$stack.peek()).left;\n\t\tint xright = ((java_cup.runtime.Symbol)CUP$parser$stack.peek()).right;\n\t\tString x = (String)((java_cup.runtime.Symbol) CUP$parser$stack.peek()).value;\n\t\t Global.add(x); \n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"MOT\",6, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 60: // msgs ::= MESSAGE PO msg PF \n {\n String RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"msgs\",16, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 61: // NT$22 ::= \n {\n String RESULT =null;\n\t\tint nleft = ((java_cup.runtime.Symbol)CUP$parser$stack.peek()).left;\n\t\tint nright = ((java_cup.runtime.Symbol)CUP$parser$stack.peek()).right;\n\t\tString n = (String)((java_cup.runtime.Symbol) CUP$parser$stack.peek()).value;\n message_content += co+ n +co+',' ; \n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"NT$22\",40, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 62: // msg ::= nom NT$22 VG msg \n {\n String RESULT =null;\n // propagate RESULT from NT$22\n RESULT = (String) ((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-2)).value;\n\t\tint nleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)).left;\n\t\tint nright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)).right;\n\t\tString n = (String)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-3)).value;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"msg\",17, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 63: // NT$23 ::= \n {\n String RESULT =null;\n\t\tint cleft = ((java_cup.runtime.Symbol)CUP$parser$stack.peek()).left;\n\t\tint cright = ((java_cup.runtime.Symbol)CUP$parser$stack.peek()).right;\n\t\tString c = (String)((java_cup.runtime.Symbol) CUP$parser$stack.peek()).value;\n message_content+=( c.replace(\"\\\"\",co))+',' ;\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"NT$23\",41, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 64: // msg ::= cm NT$23 VG msg \n {\n String RESULT =null;\n // propagate RESULT from NT$23\n RESULT = (String) ((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-2)).value;\n\t\tint cleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)).left;\n\t\tint cright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)).right;\n\t\tString c = (String)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-3)).value;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"msg\",17, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 65: // msg ::= nom \n {\n String RESULT =null;\n\t\tint nleft = ((java_cup.runtime.Symbol)CUP$parser$stack.peek()).left;\n\t\tint nright = ((java_cup.runtime.Symbol)CUP$parser$stack.peek()).right;\n\t\tString n = (String)((java_cup.runtime.Symbol) CUP$parser$stack.peek()).value;\n\t\t message_content += co+ n +co ; \n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"msg\",17, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 66: // msg ::= cm \n {\n String RESULT =null;\n\t\tint cleft = ((java_cup.runtime.Symbol)CUP$parser$stack.peek()).left;\n\t\tint cright = ((java_cup.runtime.Symbol)CUP$parser$stack.peek()).right;\n\t\tString c = (String)((java_cup.runtime.Symbol) CUP$parser$stack.peek()).value;\n\t\t message_content+=( c.replace(\"\\\"\",co)) ;\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"msg\",17, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 67: // NT$24 ::= \n {\n String RESULT =null;\n\t\tint nleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)).left;\n\t\tint nright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)).right;\n\t\tString n = (String)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-2)).value;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$parser$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$parser$stack.peek()).right;\n\t\tString e = (String)((java_cup.runtime.Symbol) CUP$parser$stack.peek()).value;\nmessage_content+=(n+\".getNomAppareil()\"+'.'+e.toUpperCase()) ;\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"NT$24\",42, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 68: // msg ::= nom PT ETAT NT$24 msg \n {\n String RESULT =null;\n // propagate RESULT from NT$24\n RESULT = (String) ((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-1)).value;\n\t\tint nleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)).left;\n\t\tint nright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)).right;\n\t\tString n = (String)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-4)).value;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)).right;\n\t\tString e = (String)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-2)).value;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"msg\",17, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 69: // msg ::= nom PT ETAT \n {\n String RESULT =null;\n\t\tint nleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)).left;\n\t\tint nright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)).right;\n\t\tString n = (String)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-2)).value;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$parser$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$parser$stack.peek()).right;\n\t\tString e = (String)((java_cup.runtime.Symbol) CUP$parser$stack.peek()).value;\n\t\tmessage_content+=n+'.'+e.toUpperCase() ;\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"msg\",17, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /* . . . . . .*/\n default:\n throw new Exception(\n \"Invalid action number \"+CUP$parser$act_num+\"found in internal parse table\");\n\n }\n }", "title": "" }, { "docid": "e104138170098212765008e9cec4df13", "score": "0.57700104", "text": "public abstract GameAction getAction( String actionName );", "title": "" }, { "docid": "b27108768a1246664d04a821f911aef3", "score": "0.5743911", "text": "String getAction();", "title": "" }, { "docid": "58620c90ad7dc6ceeaccb20703234021", "score": "0.5743657", "text": "public void act() \r\n {\r\n // Add your action code here.\r\n }", "title": "" }, { "docid": "58620c90ad7dc6ceeaccb20703234021", "score": "0.5743657", "text": "public void act() \r\n {\r\n // Add your action code here.\r\n }", "title": "" }, { "docid": "743d1e3bb04ead39e37bd0726f4db13c", "score": "0.57325006", "text": "public String getActionText(int action) {\n switch (action) {\n // General\n case 0: return \"No action\";\n case 1: return \"tiles mode\";\n case 2: return \"items mode\";\n case 3: return \"enemies mode\";\n case 4: return \"undo\";\n case 5: return \"redo\";\n case 6: return \"cut\";\n case 7: return \"copy\";\n case 8: return \"paste\";\n case 9: return \"delete\";\n case 10: return \"none\";\n \n // TILES MODE ONLY\n case 11: return \"45 degree incline\";\n case 12: return \"thin 63 degree incline\";\n case 13: return \"thin 27 degree incline\";\n case 14: return \"concave curve\";\n case 15: return \"half tile\";\n case 16: return \"thick 63 degree incline\";\n case 17: return \"thick 27 degree incline\";\n case 18: return \"convex curve\";\n case 19: return \"erase/blank tile\";\n case 20: return \"fill/full tile\";\n \n // ITEM MODES ONLY\n case 21: return \"player\";\n case 22: return \"gold\";\n case 23: return \"bounce block\";\n case 24: return \"exit door\";\n case 25: return \"oneway platform\";\n case 26: return \"normal door\";\n case 27: return \"locked door\";\n case 28: return \"trap door\";\n case 29: return \"launch pad\";\n case 30: return \"teleporter\";\n case 31: return \"gauss turret\";\n case 32: return \"homing launcher\";\n case 33: return \"mine\";\n case 34: return \"floor guard\";\n case 35: return \"thwump\";\n case 36: return \"zap drone\";\n case 37: return \"seeker drone\";\n case 38: return \"laser drone\";\n case 39: return \"chaingun drone\";\n case 40: return \"raptors\";\n \n // Directions\n case 41: return \"tile in lower right\";\n case 42: return \"tile in lower left\";\n case 43: return \"tile in upper right\";\n case 44: return \"tile in upper left\";\n case 45: return \"right facing\";\n case 46: return \"down facing\";\n case 47: return \"left facing\";\n case 48: return \"up facing\";\n case 49: return \"down-right facing\";\n case 50: return \"down-left facing\";\n case 51: return \"up-left facing\";\n case 52: return \"up-right facing\";\n \n // Behaviors\n case 53: return \"surfacefollow CW\";\n case 54: return \"surfacefollow CCW\";\n case 55: return \"dumb CW\";\n case 56: return \"dumb CCW\";\n case 57: return \"alternating\";\n case 58: return \"quasi-random\";\n case 59: return \"no behavior/still\";\n \n case 60: return \"show triggers\";\n case 61: return \"hide triggers\";\n case 62: return \"toggle triggers\";\n case 63: return \"show drone paths\";\n case 64: return \"hide drone paths\";\n case 65: return \"toggle drone paths\";\n \n case 66: return \"copy level to clipboard\";\n case 67: return \"paste level from clipboard\";\n case 68: return \"load level from textbox\";\n \n case 69: return \"nudge right\";\n case 70: return \"nudge down\";\n case 71: return \"nudge left\";\n case 72: return \"nudge up\";\n \n case 73: return \"show gridlines\";\n case 74: return \"hide gridlines\";\n case 75: return \"toggle gridlines\";\n case 76: return \"snapping on\";\n case 77: return \"snapping off\";\n case 78: return \"toggle snapping\";\n case 79: return \"show snap points\";\n case 80: return \"hide snap points\";\n case 81: return \"toggle snap points\";\n \n case 82: return \"save\";\n case 83: return \"save As\";\n case 84: return \"open\";\n \n case 85: return \"pop-out text box\";\n case 86: return \"put text-box below window\";\n case 87: return \"put text-box on right side\";\n \n case 88: return \"new\";\n case 89: return \"select all\";\n \n default:\n // Gridline/snap presets\n if (action >= 256) {\n String[] setting = config.getNames((\"\" + action), 2);\n if (setting.length > 0) {\n return setting[0];\n }\n return \"Unknown grid/snap setting\";\n } else {\n return \"Unknown action\";\n }\n }\n }", "title": "" }, { "docid": "53f639c5f054159d5e4f093acd0fd8d1", "score": "0.57251936", "text": "void setAction(String action);", "title": "" }, { "docid": "c8b80a8b5dccba5008ab19fcb0a3d0a8", "score": "0.5709932", "text": "public abstract int doAction(int operand1, int operand2);", "title": "" }, { "docid": "09075ce1976d196868359b9efea42410", "score": "0.5706023", "text": "public void testSimpleUse() {\n // Given the coffee machine is started\n actionwords.theCoffeeMachineIsStarted();\n // When I take a coffee\n actionwords.iTakeACoffee();\n // Then coffee should be served\n actionwords.coffeeShouldBeServed();\n }", "title": "" }, { "docid": "8bf08fcf388426cc36003da25c4b480a", "score": "0.56968033", "text": "abstract protected void gameAction(int actionCode);", "title": "" }, { "docid": "54fa38948f1606738e97ffec9897ccd1", "score": "0.5692927", "text": "public void act() \n {\n // Add your action code here.\n }", "title": "" }, { "docid": "54fa38948f1606738e97ffec9897ccd1", "score": "0.5692927", "text": "public void act() \n {\n // Add your action code here.\n }", "title": "" }, { "docid": "54fa38948f1606738e97ffec9897ccd1", "score": "0.5692927", "text": "public void act() \n {\n // Add your action code here.\n }", "title": "" }, { "docid": "54fa38948f1606738e97ffec9897ccd1", "score": "0.5692927", "text": "public void act() \n {\n // Add your action code here.\n }", "title": "" }, { "docid": "54fa38948f1606738e97ffec9897ccd1", "score": "0.5692927", "text": "public void act() \n {\n // Add your action code here.\n }", "title": "" }, { "docid": "54fa38948f1606738e97ffec9897ccd1", "score": "0.5692927", "text": "public void act() \n {\n // Add your action code here.\n }", "title": "" }, { "docid": "54fa38948f1606738e97ffec9897ccd1", "score": "0.5692927", "text": "public void act() \n {\n // Add your action code here.\n }", "title": "" }, { "docid": "54fa38948f1606738e97ffec9897ccd1", "score": "0.5692927", "text": "public void act() \n {\n // Add your action code here.\n }", "title": "" }, { "docid": "54fa38948f1606738e97ffec9897ccd1", "score": "0.5692927", "text": "public void act() \n {\n // Add your action code here.\n }", "title": "" }, { "docid": "54fa38948f1606738e97ffec9897ccd1", "score": "0.5692927", "text": "public void act() \n {\n // Add your action code here.\n }", "title": "" }, { "docid": "c643cfc4cc99342deced7042754f9919", "score": "0.56853545", "text": "@Override\r\n public String execute(Actor actor, GameMap map){\r\n\r\n /*\r\n String for Brachiosaur\r\n */\r\n if(actor.getDisplayChar() == 'b')\r\n return actor + \" eats fruit from tree at \" + \"(\"+map.locationOf(actor).x()+\",\"+map.locationOf(actor).y()+\")\";\r\n /*\r\n string for Allosaur\r\n */\r\n else if(actor.getDisplayChar() == 'a')\r\n return actor + \" eats corpse/egg\";\r\n\r\n else if(actor instanceof Pterodactyls){\r\n if(pDrank)\r\n return actor + \" drinks from a lake. [FL:\" + ((HungryDino)actor).getFoodLevel() + \",WL:\" + ((HungryDino)actor).getWaterLvl()+\"]\";\r\n else if (ateFish)\r\n return actor + \" eats \"+ numEatenFish +\" fish from a lake. [FL:\" + ((HungryDino)actor).getFoodLevel() + \",WL:\" + ((HungryDino)actor).getWaterLvl()+\"]\";\r\n else\r\n return actor + \" nibbles on \"+ eatenItem +\" [FL:\" + ((HungryDino)actor).getFoodLevel() + \",WL:\" + ((HungryDino)actor).getWaterLvl()+\"]\";\r\n\r\n }\r\n\r\n /*\r\n String for Stegosaur\r\n */\r\n return actor + \" eats fruit from ground/bush at \" + \"(\"+map.locationOf(actor).x()+\",\"+map.locationOf(actor).y()+\")\";\r\n\r\n }", "title": "" }, { "docid": "c30624c983ef745972d86ae60a640fc5", "score": "0.56853503", "text": "public void act() \n {\n \n }", "title": "" }, { "docid": "c30624c983ef745972d86ae60a640fc5", "score": "0.56853503", "text": "public void act() \n {\n \n }", "title": "" }, { "docid": "15208ca6da07d815e8a804a4032c61df", "score": "0.56838995", "text": "abstract boolean dispatch(AttributedMessage m);", "title": "" }, { "docid": "783b461a95fa014a13e8e00754309956", "score": "0.56777483", "text": "public abstract String goal();", "title": "" }, { "docid": "b41909d1e9c0a67f45d15d81cf4971b8", "score": "0.5673818", "text": "@Override\r\n\tpublic void performAction(Assistant assistant) {\n\t\tSystem.err.println(\"Program was not implemented\");\r\n\t}", "title": "" }, { "docid": "c84f35c29702cf4a96ea278558920ab1", "score": "0.5668793", "text": "java.lang.String getAction();", "title": "" }, { "docid": "c84f35c29702cf4a96ea278558920ab1", "score": "0.5668793", "text": "java.lang.String getAction();", "title": "" }, { "docid": "4b160a6afed047b4e82eeac95ed3e29b", "score": "0.5639628", "text": "@Override\n public void action() {\n agent.doWait();\n ACLMessage message = agent.receive();\n Logger.log(message);\n // Recupere la liste des criteres de l'agent seeker\n CriteriaList criteria = agent.getCriteriaList(message.getContent());\n // Effectue un traitement pour recupere les musiques qui correspondent aux criteres\n List<ScoredMusic> scoredMusics = agent.getMusicsScoredByCL(criteria);\n String xmlScoredMusic;\n if (scoredMusics == null) xmlScoredMusic = \"Aucun resultat\";\n else xmlScoredMusic = agent.getXmlFromScoredMusic(scoredMusics);\n ACLMessage reponse = new ACLMessage(ACLMessage.PROPOSE);\n reponse.setContent(xmlScoredMusic);\n reponse.addReceiver(AgentSeeker.IDENTIFIANT);\n agent.send(reponse);\n }", "title": "" }, { "docid": "8b99fcf615d140961a1c1f3063866bbf", "score": "0.5633941", "text": "@Override\r\n\t\tpublic void action() {\n\t\t\tACLMessage message = createMessage(ACLMessage.REQUEST);\r\n\t\t\tmessage.addReceiver(MfgDF.getSystemAgent()); //need to know System Agent\r\n\t\t\tInteger exitValueA = exitValueStateA;\r\n\t\t\tRegisterIMPlanner register = new RegisterIMPlanner(instanceID, getAID(), exitValueA.toString());\r\n\t\t\ttry {\r\n\t\t\t\tAction a = new Action(getAID(), register);\r\n\t\t\t\tmanager.fillContent(message, a);\r\n\t\t\t\tsend(message);\r\n\t\t\t} catch (CodecException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\tlogger.severe(e.getMessage());\r\n\t\t\t} catch (OntologyException 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\tif(exitValueStateA==1){\r\n\t\t\t\tmyAgent.doDelete();\r\n\t\t\t}\r\n\t\t}", "title": "" }, { "docid": "384819f6ef8c0d06dc7cfa41936bd9a7", "score": "0.5629523", "text": "public abstract void msgWhatWouldYouLike();", "title": "" }, { "docid": "6ab604f363299374434044f7b688b565", "score": "0.56230897", "text": "@Override\n public Action action()\n {\n Action act;\n makeDecision();\n switch (action)\n {\n case SEEKSHOOT:\n llcontrollerSS.action();\n act = llcontrollerSS.action;\n break;\n case AVOID:\n act = llcontrolerAv.action();\n break;\n case PATROL:\n default:\n act = llcontrollerPat.action();\n break;\n }\n return act;\n }", "title": "" }, { "docid": "283fec7303ca716231aab53b5acf477d", "score": "0.56222194", "text": "@Test\n\tpublic void ComerSanguche() {\n\t\texpected = \"Mmmm rikoooo, ahora tengo mas energia.\";\n\t\tAction action = new Action(\"tomar\", \"sanguche de atun\", \"item\", null, null);\n\t\tgame.makePlayerTakeSomething(action);\n\t\taction = new Action(\"usar\", \"sanguche de atun\", \"item\", \"self\", \"self\");\n\t\tactual = game.makePlayerUseItem(action);\n\t\tassertEquals(expected, actual);\n\t}", "title": "" }, { "docid": "3cbd6751c29fe344ed0736416d7b4b4a", "score": "0.5614748", "text": "public abstract Counteraction counteract(Action action);", "title": "" }, { "docid": "b3a8dfb9c86e49de90ecb246beaeaba7", "score": "0.56043535", "text": "ActionSequence createActionSequence();", "title": "" }, { "docid": "22cceb0b21c249dfdba9ac1a9a1676c3", "score": "0.56040585", "text": "@Override\n\tpublic boolean DoAction(Unit u, String befehl[]) { return true;\t}", "title": "" }, { "docid": "5e605a233390e9555cfce6e4a0292a48", "score": "0.5603824", "text": "protected abstract void normalAiFetchAction() ;", "title": "" }, { "docid": "411ed2e8c5ca2a0ba849c8e673f414f3", "score": "0.559677", "text": "protected abstract String doIntercept(ActionInvocation invocation) throws Exception;", "title": "" }, { "docid": "5a2bd9546e61f772b55e6f0e6ea11b97", "score": "0.5594714", "text": "@Override\n public void handleAction(ActionMessage msg) {\n }", "title": "" }, { "docid": "f6002a0f142748f072b15fc1cd53f8af", "score": "0.55918014", "text": "@Override\n\tpublic void run(IAction action) {\n\t}", "title": "" }, { "docid": "1f61cfd4e0f970fbb091b079d9e31695", "score": "0.55916977", "text": "public void act() \r\n {\n }", "title": "" }, { "docid": "72fbfbd63a9a04ca9edc5041b9f1311b", "score": "0.55909735", "text": "@Override\n public int DoAction(Action action) {\n if (action.getType() == ActionType.say && action.getData().contains(\"pies\") && action.arg1 != me().getID()) {\n MudCharacter c = dbg.characterDB.get(action.arg1);\n Main.game.addActionAbsolute(0, ActionType.attemptsay, me().getID(), 0, 0, 0, c.getName() + \": YES!!! PIES!!!!!\");\n }\n\n\n return DEFAULT;\n }", "title": "" }, { "docid": "78dc3b285f55e05c106114de0ae604eb", "score": "0.55863357", "text": "public String propose(String action) {\n\t\treturn \"0 \" + String.valueOf(this.location[0]) + \" \" + String.valueOf(this.location[1]);\n\t}", "title": "" }, { "docid": "7c1cdc264ca8be3f858f374189fdbc83", "score": "0.55787885", "text": "public void act()\n {\n }", "title": "" }, { "docid": "7c1cdc264ca8be3f858f374189fdbc83", "score": "0.55787885", "text": "public void act()\n {\n }", "title": "" }, { "docid": "58f8082a2a8975f921ffcbb33df50f79", "score": "0.55671936", "text": "public void act() \n {\n \n }", "title": "" }, { "docid": "d7a7585229e8c80af57479a9036b1b15", "score": "0.55630416", "text": "@When(\"yet another action\")\n\tpublic void yet_another_action() {\n\t\t System.out.println(\"Welcome to my world\");\n\t}", "title": "" }, { "docid": "5f02b439e67fac7bf5178c4584278ee0", "score": "0.55626225", "text": "public String getUserAction(Player player) throws IOException{\n\n String finalResponse = null;\n\n //prompt user for action\n ///move to output class\n // System.out.println(\"What would you like to do? [ 'go', 'look', 'interact', 'inventory', 'get item']\");\n //System.out.println(\"\\nWhat would you like to do? \" + ANSI_PURPLE + \"[ go, look, interact, inventory, get <item> ]\" + ANSI_RESET);\n\n String responseInput = userInput.nextLine();\n\n\n String[] response = responseInput.trim().toLowerCase().split(\"\\\\s+\");\n\n // parses user response further, into second array\n String stringifiedResponse = String.join(\" \", Arrays.copyOfRange(response, 1, response.length));\n\n String actionVerb = parser.parseCommand(response[0]);\n\n // handles first word of response\n\n // this should all go in separate controller class\n switch (actionVerb) {\n case \"go\" -> {\n String direction;\n if (response.length < 2) {\n direction = goActionPrompt(player);\n } else {\n direction = response[1];\n // player.go returns false if bad input, return statement prevents displayGoResponse() from running\n if (!player.go(direction)) return \"You can't go that way.\";\n }\n finalResponse = (displayGoResponse(direction, player));\n }\n case \"look\" -> finalResponse = (player.look());\n case \"interact\" -> finalResponse = (player.interact());\n case \"inventory\" -> finalResponse = (player.displayItems());\n case \"get\" ->{\n Item chosenItem = null;\n\n // check if item is in location\n for (Item item: player.getCurrentLocation().getItemsList()) {\n if (stringifiedResponse.equals(item.getName().toLowerCase())){\n chosenItem = item;\n break;\n }\n }\n // if item is in location pick up item\n if (chosenItem != null) {\n player.pickUpItem(stringifiedResponse);\n finalResponse = (\"You picked up \" + stringifiedResponse);\n } else {\n finalResponse = (\"You can't pick that up\");\n }\n\n }\n case \"use\" ->{\n// if the item is in current inventory\n for (Item item: player.getAllItems()) {\n if (stringifiedResponse.equals(item.getName().toLowerCase())){\n finalResponse = (player.getItem(item.getName().toLowerCase()).use());\n break;\n }\n }\n if(finalResponse == null){\n finalResponse = (\"You can't use nothing\");\n }\n\n }\n case \"inspect\" ->{\n // not currently used because locations have only one container\n String containerName;\n if(response.length < 2){\n finalResponse = (\"You can't inspect nothing\");\n }else{\n containerName = response[1];\n if(player.inspect() != null){\n finalResponse = (player.inspect()).toString();\n for(Item item: player.inspect()){\n player.getCurrentLocation().addItem(item);\n }\n }else{\n finalResponse = (\"You can't look there.\");\n };\n }\n }\n // results in jframe window with map jpeg popping up\n case \"map\" ->{\n generateMap.showMapFrame();\n finalResponse = \"Here's the map.\";\n }\n\n // input action verb does not match\n default -> finalResponse = (\"Unreadable input. Please try again.\");\n }\n return finalResponse;\n }", "title": "" }, { "docid": "2fe48faed4d97288ed60e369dc0fc7c5", "score": "0.5559097", "text": "public void act() \n {\n \n }", "title": "" }, { "docid": "eaabbade0e359ea0faa7fa6bc235f1e0", "score": "0.55543625", "text": "public void act() \n { \n \n }", "title": "" }, { "docid": "aa759d7fa6573baeb0eea3eb848a6ccf", "score": "0.55525786", "text": "public void action() {\n MessageTemplate mt = MessageTemplate.and(MessageTemplate.and(\n MessageTemplate.MatchLanguage(codec.getName()),\n MessageTemplate.MatchOntology(ontology.getName())),\n MessageTemplate.MatchPerformative(ACLMessage.REQUEST));\n\n ACLMessage msg = receive(mt);\n\n if (msg != null) {\n \ttry {\n if (msg.getPerformative() == ACLMessage.REQUEST) {\n ContentElement ce = null;\n // Convertir la cadena a objetos Java\n ce = getContentManager().extractContent(msg);\n if (ce instanceof Action) {\n \tEvaluate eval = (Evaluate) ((Action) ce).getAction();\n \t\n \tsetSuccessfulConflictSet(eval.getSuccessfulConflictSet());\n \tsetFailureConflictSet(eval.getFailureConflictSet());\n \tsetProblem(eval.getTo());\n \t\n \tevaluate();\n \t\n ACLMessage reply = msg.createReply();\n reply.setPerformative(ACLMessage.INFORM);\n \n AbsPredicate ap = new AbsPredicate(CBRTerminologyOntology.AREEVALUATEDSOLUTIONSTO);\n \n ap.set(CBRTerminologyOntology.AREEVALUATEDSOLUTIONSTO_FAILURECONFLICTSET, ontology.fromObject(getFailureConflictSet()));\n ap.set(CBRTerminologyOntology.AREEVALUATEDSOLUTIONSTO_SUCCESSFULCONFLICTSET, ontology.fromObject(getSuccessfulConflictSet()));\n ap.set(CBRTerminologyOntology.AREEVALUATEDSOLUTIONSTO_TO, ontology.fromObject(getProblem()));\n \n // Convertir objetos Java a cadena\n \t \tgetContentManager().fillContent(reply, ap);\n\n myAgent.send(reply);\n\n System.out.println(getAID().getName()+\" ha enviado posibles soluciones evaluadas.\");\n }\n }\n }\n catch (CodecException ce) {\n ce.printStackTrace();\n }\n catch (OntologyException oe) {\n oe.printStackTrace();\n }\n } else {\n\t\t block();\n\t\t}\n }", "title": "" }, { "docid": "4811f68cda87adba632fadc4554b5d94", "score": "0.5548257", "text": "public int doAction() {\n\treturn 42;\n\n }", "title": "" }, { "docid": "7544c9f9b5aa74181dfc87b0cd428032", "score": "0.55296695", "text": "@Override\n\tpublic int action() {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint choice = 1;\n\t\ttry {\n\t\t\tSystem.out.print(\"Choose(Default defend)(1)defend(2)fire(3)treatment:\");\n\t\t\tchoice = Integer.parseInt(br.readLine());\n\t\t\tswitch(choice){\n\t\t\tcase 1:\n\t\t\t\treturn 2;\n\t\t\tcase 2:\n\t\t\t\tthis.skill_act();\n\t\t\t\treturn 1;\n\t\t\tcase 3:\n\t\t\t\treturn 3;\n\t\t\tdefault:\n\t\t\t\treturn 2;\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t} catch (NumberFormatException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\t//System.out.println(\"Wrong Input3\");\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\t//System.out.println(\"Wrong Input4\");\n\t\t}\n\t\treturn 2;\n\t\t\n\t}", "title": "" }, { "docid": "ae370b4f5c91fd505c273925e30104ea", "score": "0.55243385", "text": "abstract void act();", "title": "" }, { "docid": "11a915e77991a25c12353d4a075b6387", "score": "0.55236894", "text": "protected abstract void hardAiFetchAction() ;", "title": "" }, { "docid": "6e9c020b4144913a945f3b450469f32e", "score": "0.5516924", "text": "private void addActions() {\n\t}", "title": "" }, { "docid": "92f6eb03a564603a507263374c226702", "score": "0.5512844", "text": "public interface OnActionClickListener2 {\n\n public static final int ACTION_REPLY = 0;\n public static final int ACTION_SHARE = 1;\n\n public void onActionClick2(int action, int position, Article article);\n}", "title": "" }, { "docid": "60bfe03e876740e38a7b4fed42ca5aeb", "score": "0.55118287", "text": "public final java_cup.runtime.Symbol CUP$CoolParser$do_action_part00000000(\n int CUP$CoolParser$act_num,\n java_cup.runtime.lr_parser CUP$CoolParser$parser,\n java.util.Stack CUP$CoolParser$stack,\n int CUP$CoolParser$top)\n throws java.lang.Exception\n {\n /* Symbol object for return from actions */\n java_cup.runtime.Symbol CUP$CoolParser$result;\n\n /* select the action based on the action number */\n switch (CUP$CoolParser$act_num)\n {\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 0: // program ::= class_list \n {\n programc RESULT =null;\n\t\tClasses cl = (Classes)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new programc(curr_lineno(), cl); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"program\",0, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 1: // $START ::= program EOF \n {\n Object RESULT =null;\n\t\tprogramc start_val = (programc)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\tRESULT = start_val;\n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"$START\",0, RESULT);\n }\n /* ACCEPT */\n CUP$CoolParser$parser.done_parsing();\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 2: // program ::= error \n {\n programc RESULT =null;\n\t\t RESULT = new programc(curr_lineno(),\n new Classes(curr_lineno())); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"program\",0, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 3: // class_list ::= class_cc \n {\n Classes RESULT =null;\n\t\tclass_c c = (class_c)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = (new Classes(curr_lineno())).appendElement(c); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"class_list\",1, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 4: // class_list ::= class_list class_cc \n {\n Classes RESULT =null;\n\t\tClasses cl = (Classes)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\tclass_c c = (class_c)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = cl.appendElement(c); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"class_list\",1, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 5: // class_list ::= class_list error RBRACE SEMI \n {\n Classes RESULT =null;\n\t\tClasses cl = (Classes)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-3)).value;\n\t\t RESULT = cl; \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"class_list\",1, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 6: // class_cc ::= CLASS TYPEID LBRACE optional_feature_list RBRACE SEMI \n {\n class_c RESULT =null;\n\t\tAbstractSymbol n = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-4)).value;\n\t\tFeatures f = (Features)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\t RESULT = new class_c(curr_lineno(), n, \n\t\t AbstractTable.idtable.addString(\"Object\"), \n\t\t\t\t f, curr_filename()); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"class_cc\",2, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 7: // class_cc ::= CLASS TYPEID INHERITS TYPEID LBRACE optional_feature_list RBRACE SEMI \n {\n class_c RESULT =null;\n\t\tAbstractSymbol n = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-6)).value;\n\t\tAbstractSymbol p = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-4)).value;\n\t\tFeatures f = (Features)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\t RESULT = new class_c(curr_lineno(), n, p, f, curr_filename()); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"class_cc\",2, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 8: // kase ::= OBJECTID COLON TYPEID DARROW expr SEMI \n {\n Case RESULT =null;\n\t\tAbstractSymbol o = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-5)).value;\n\t\tAbstractSymbol t = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-3)).value;\n\t\tExpression e = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\t RESULT = new branch(curr_lineno(),o,t,e); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"kase\",14, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 9: // kases ::= kase \n {\n Cases RESULT =null;\n\t\tCase k = (Case)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = (new Cases(curr_lineno())).appendElement(k); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"kases\",15, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 10: // kases ::= kases kase \n {\n Cases RESULT =null;\n\t\tCases ks = (Cases)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\tCase k = (Case)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = ks.appendElement(k); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"kases\",15, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 11: // formal ::= OBJECTID COLON TYPEID \n {\n Formal RESULT =null;\n\t\tAbstractSymbol o = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tAbstractSymbol t = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new formalc(curr_lineno(),o,t); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"formal\",11, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 12: // formal_list ::= formal \n {\n Formals RESULT =null;\n\t\tFormal f = (Formal)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = (new Formals(curr_lineno())).appendElement(f); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"formal_list\",12, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 13: // formal_list ::= formal_list COMMA formal \n {\n Formals RESULT =null;\n\t\tFormals fl = (Formals)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tFormal f = (Formal)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = fl.appendElement(f); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"formal_list\",12, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 14: // formals ::= LPAREN RPAREN \n {\n Formals RESULT =null;\n\t\t RESULT = new Formals(curr_lineno()); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"formals\",13, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 15: // formals ::= LPAREN formal_list RPAREN \n {\n Formals RESULT =null;\n\t\tFormals fl = (Formals)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\t RESULT = fl; \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"formals\",13, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 16: // attr_feature ::= OBJECTID COLON TYPEID \n {\n Feature RESULT =null;\n\t\tAbstractSymbol o = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tAbstractSymbol t = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new attr(curr_lineno(),o,t,new no_expr(curr_lineno()));\n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"attr_feature\",9, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 17: // attr_feature ::= OBJECTID COLON TYPEID ASSIGN expr \n {\n Feature RESULT =null;\n\t\tAbstractSymbol o = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-4)).value;\n\t\tAbstractSymbol t = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tExpression e = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new attr(curr_lineno(),o,t,e); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"attr_feature\",9, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 18: // method_feature ::= OBJECTID formals COLON TYPEID LBRACE expr RBRACE \n {\n Feature RESULT =null;\n\t\tAbstractSymbol o = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-6)).value;\n\t\tFormals f = (Formals)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-5)).value;\n\t\tAbstractSymbol t = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-3)).value;\n\t\tExpression e = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\t RESULT = new method(curr_lineno(),o,f,t,e); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"method_feature\",10, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 19: // optional_feature_list ::= \n {\n Features RESULT =null;\n\t\t RESULT = new Features(curr_lineno()); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"optional_feature_list\",3, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 20: // optional_feature_list ::= optional_feature_list method_feature SEMI \n {\n Features RESULT =null;\n\t\tFeatures ofl = (Features)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tFeature mf = (Feature)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\t RESULT = ofl.appendElement(mf); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"optional_feature_list\",3, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 21: // optional_feature_list ::= optional_feature_list attr_feature SEMI \n {\n Features RESULT =null;\n\t\tFeatures ofl = (Features)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tFeature af = (Feature)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\t RESULT = ofl.appendElement(af); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"optional_feature_list\",3, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 22: // optional_feature_list ::= optional_feature_list error SEMI \n {\n Features RESULT =null;\n\t\tFeatures ofl = (Features)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\t RESULT = ofl; \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"optional_feature_list\",3, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 23: // expr ::= expr PLUS expr \n {\n Expression RESULT =null;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tExpression e2 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new plus(curr_lineno(), e1, e2); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 24: // expr ::= expr MINUS expr \n {\n Expression RESULT =null;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tExpression e2 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new sub(curr_lineno(), e1, e2); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 25: // expr ::= expr MULT expr \n {\n Expression RESULT =null;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tExpression e2 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new mul(curr_lineno(), e1, e2); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 26: // expr ::= expr DIV expr \n {\n Expression RESULT =null;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tExpression e2 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new divide(curr_lineno(), e1, e2); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 27: // expr ::= NEG expr \n {\n Expression RESULT =null;\n\t\tExpression e = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new neg(curr_lineno(), e); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 28: // expr ::= expr LT expr \n {\n Expression RESULT =null;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tExpression e2 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new lt(curr_lineno(), e1, e2); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 29: // expr ::= expr EQ expr \n {\n Expression RESULT =null;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tExpression e2 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new eq(curr_lineno(), e1, e2); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 30: // expr ::= expr LE expr \n {\n Expression RESULT =null;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tExpression e2 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new leq(curr_lineno(), e1, e2); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 31: // expr ::= NOT expr \n {\n Expression RESULT =null;\n\t\tExpression e = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new comp(curr_lineno(), e); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 32: // expr ::= LPAREN expr RPAREN \n {\n Expression RESULT =null;\n\t\tExpression e = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\t RESULT = e; \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 33: // expr ::= INT_CONST \n {\n Expression RESULT =null;\n\t\tAbstractSymbol i = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new int_const(curr_lineno(), i); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 34: // expr ::= STR_CONST \n {\n Expression RESULT =null;\n\t\tAbstractSymbol s = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new string_const(curr_lineno(), s); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 35: // expr ::= BOOL_CONST \n {\n Expression RESULT =null;\n\t\tBoolean b = (Boolean)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new bool_const(curr_lineno(), b); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 36: // expr ::= OBJECTID \n {\n Expression RESULT =null;\n\t\tAbstractSymbol o = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new object(curr_lineno(), o); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 37: // expr ::= OBJECTID LPAREN actuals RPAREN \n {\n Expression RESULT =null;\n\t\tAbstractSymbol n = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-3)).value;\n\t\tExpressions a = (Expressions)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\t RESULT = new dispatch(curr_lineno(),\n\t new object(curr_lineno(), \n\t AbstractTable.idtable.addString(\"self\")),\n\t\t\t\t n, a); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 38: // expr ::= expr DOT OBJECTID LPAREN actuals RPAREN \n {\n Expression RESULT =null;\n\t\tExpression e = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-5)).value;\n\t\tAbstractSymbol n = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-3)).value;\n\t\tExpressions a = (Expressions)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\t RESULT = new dispatch(curr_lineno(),e,n,a);\n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 39: // expr ::= expr AT TYPEID DOT OBJECTID LPAREN actuals RPAREN \n {\n Expression RESULT =null;\n\t\tExpression e = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-7)).value;\n\t\tAbstractSymbol t = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-5)).value;\n\t\tAbstractSymbol n = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-3)).value;\n\t\tExpressions a = (Expressions)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\t RESULT = new static_dispatch(curr_lineno(),e,t,n,a);\n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 40: // expr ::= WHILE expr LOOP expr POOL \n {\n Expression RESULT =null;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-3)).value;\n\t\tExpression e2 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\t RESULT = new loop(curr_lineno(),e1,e2);\n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 41: // expr ::= IF expr THEN expr ELSE expr FI \n {\n Expression RESULT =null;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-5)).value;\n\t\tExpression e2 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-3)).value;\n\t\tExpression e3 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\t RESULT = new cond(curr_lineno(),e1,e2,e3);\n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 42: // expr ::= OBJECTID ASSIGN expr \n {\n Expression RESULT =null;\n\t\tAbstractSymbol o = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tExpression e = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new assign(curr_lineno(),o,e);\n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 43: // expr ::= NEW TYPEID \n {\n Expression RESULT =null;\n\t\tAbstractSymbol t = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new new_(curr_lineno(),t);\n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 44: // expr ::= block \n {\n Expression RESULT =null;\n\t\tExpressions b = (Expressions)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new block(curr_lineno(),b); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 45: // expr ::= ISVOID expr \n {\n Expression RESULT =null;\n\t\tExpression e = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new isvoid(curr_lineno(),e); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 46: // expr ::= CASE expr OF kases ESAC \n {\n Expression RESULT =null;\n\t\tExpression e = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-3)).value;\n\t\tCases kl = (Cases)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\t RESULT = new typcase(curr_lineno(),e,kl); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 47: // expr ::= LET let_expr \n {\n Expression RESULT =null;\n\t\tlet le = (let)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = le; \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 48: // let_expr ::= OBJECTID COLON TYPEID let_optional_assign IN expr \n {\n let RESULT =null;\n\t\tAbstractSymbol o = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-5)).value;\n\t\tAbstractSymbol t = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-3)).value;\n\t\tExpression loa = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tExpression e = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new let(curr_lineno(), o, t, loa, e); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"let_expr\",16, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 49: // let_expr ::= OBJECTID COLON TYPEID let_optional_assign COMMA let_expr \n {\n let RESULT =null;\n\t\tAbstractSymbol o = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-5)).value;\n\t\tAbstractSymbol t = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-3)).value;\n\t\tExpression loa = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tlet le = (let)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new let(curr_lineno(), o, t, loa, le); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"let_expr\",16, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 50: // let_expr ::= error COMMA let_expr \n {\n let RESULT =null;\n\t\tlet le = (let)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = le; \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"let_expr\",16, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 51: // let_optional_assign ::= \n {\n Expression RESULT =null;\n\t\t RESULT = new no_expr(curr_lineno()); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"let_optional_assign\",17, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 52: // let_optional_assign ::= ASSIGN expr \n {\n Expression RESULT =null;\n\t\tExpression e = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = e; \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"let_optional_assign\",17, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 53: // block ::= LBRACE RBRACE \n {\n Expressions RESULT =null;\n\t\t RESULT = new Expressions(curr_lineno()); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"block\",8, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 54: // block ::= LBRACE exprlist RBRACE \n {\n Expressions RESULT =null;\n\t\tExpressions el = (Expressions)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\t RESULT = el ;\n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"block\",8, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 55: // block ::= LBRACE error RBRACE \n {\n Expressions RESULT =null;\n\t\t RESULT = new Expressions(curr_lineno()); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"block\",8, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 56: // exprlist ::= expr SEMI \n {\n Expressions RESULT =null;\n\t\tExpression e = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\t RESULT = (new Expressions(curr_lineno())).appendElement(e); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"exprlist\",7, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 57: // exprlist ::= exprlist expr SEMI \n {\n Expressions RESULT =null;\n\t\tExpressions el = (Expressions)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tExpression e = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\t RESULT = el.appendElement(e); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"exprlist\",7, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 58: // actuals ::= \n {\n Expressions RESULT =null;\n\t\t RESULT = new Expressions(curr_lineno()); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"actuals\",5, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 59: // actuals ::= exp_list \n {\n Expressions RESULT =null;\n\t\tExpressions el = (Expressions)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = el; \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"actuals\",5, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 60: // exp_list ::= expr \n {\n Expressions RESULT =null;\n\t\tExpression e = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = (new Expressions(curr_lineno())).appendElement(e); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"exp_list\",6, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 61: // exp_list ::= exp_list COMMA expr \n {\n Expressions RESULT =null;\n\t\tExpressions el = (Expressions)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tExpression e = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = el.appendElement(e); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"exp_list\",6, RESULT);\n }\n return CUP$CoolParser$result;\n\n /* . . . . . .*/\n default:\n throw new Exception(\n \"Invalid action number \"+CUP$CoolParser$act_num+\"found in internal parse table\");\n\n }\n }", "title": "" }, { "docid": "efad14e51fb412108dc62834f05b3807", "score": "0.5508818", "text": "private void buttonAction(String action) {\n\t\tswitch(action.toLowerCase()) {\n\t\t\tcase \"insert\": \n\t\t\t\tinsert();\n\t\t\t\tbreak;\n\t\t\tcase \"delete\":\n\t\t\t\tdelete();\n\t\t\t\tbreak;\n\t\t\tcase \"find\":\n\t\t\t\tfind();\n\t\t\t\tbreak;\n\t\t\tcase \"update\": \n\t\t\t\tupdate();\n\t\t\t\tbreak;\n\t\t\tdefault: \n\t\t\t\tbreak;\n\t\t} // end switch\n\t}", "title": "" }, { "docid": "069dd6d37decaa0d7772228571fe605f", "score": "0.5505548", "text": "public String action() { return _action; }", "title": "" }, { "docid": "e9e92808cbbef21f6dec10ed1a08af7f", "score": "0.5498276", "text": "public String modeSelect(String phrase) throws IOException {\n String result = \"error\";\n boolean match = false;\n for (int i = 0; i < actions.length; i++) {\n if (phrase.equalsIgnoreCase(actions[i].getId())) {\n result = actions[i].execute();\n match = true;\n }\n }\n if (!match) {\n result = actions[0].execute();\n }\n return result;\n }", "title": "" }, { "docid": "93ffe42cfc1594da59143c86f27fb6e7", "score": "0.54933894", "text": "@Test\n\tpublic void TomarSanguche() {\n\t\texpected = \"En tu inventario hay un sanguche de atun.\";\n\t\tAction action = new Action(\"tomar\", \"sanguche de atun\", \"item\", null, null);\n\t\tgame.makePlayerTakeSomething(action);\n\t\tactual = game.makePlayerWatchInventory();\n\t\tassertEquals(expected, actual);\n\t}", "title": "" }, { "docid": "b559e4f213d835f1fc716292f12f71b7", "score": "0.5493287", "text": "public interface Action {\n /**\n * applies a given move(Forward, Left, Right etc.)\n *\n * @param moves\n */\n void applyMove(Moves moves);\n\n /**\n * checks for the available moves for the user at the given position.\n *\n * @param currentDirection current direction of the user.\n * @param currentPosition current position of the user.\n * @return list of available moves.\n */\n List<String> checkAvailableMoves(Directions currentDirection, Point currentPosition);\n}", "title": "" }, { "docid": "19c91dd320799910cc54e40c7bffcc63", "score": "0.5491439", "text": "@Override\n\tpublic void act( Entity entity ) {\n\t}", "title": "" }, { "docid": "07716544fe3c6f77a2afcd311c0499a5", "score": "0.54903823", "text": "public interface HandlerAction {\n\t\n\tpublic void executeHandlerAction(Message message);\n\n}", "title": "" }, { "docid": "241c8e6265d5d24a97e78a7cc0de8def", "score": "0.5487881", "text": "public abstract Action taketurn();", "title": "" }, { "docid": "12ac1bb92569c7ba7bbf2db4770ed58f", "score": "0.54874617", "text": "@Override\n public boolean doAction(char input) {\n \n switch(input) {\n case 'G' :\n GameGoal();\n break;\n case 'V' :\n ViewInventory();\n break;\n case 'M' :\n MoveLocations();\n break;\n case 'A' :\n MakeMoney();\n break;\n case 'B' :\n BuySupplies();\n break;\n case 'X':\n return false;\n default:\n System.out.println(\"Please select a valid input.\");\n break;\n }\n return true;\n }", "title": "" }, { "docid": "ab2fed997ccfb681ed3054c65773729c", "score": "0.5483132", "text": "public T caseAction(Action object) {\n\t\treturn null;\n\t}", "title": "" } ]
25197b4cf814864ecd440f23b9149cb3
TODO Autogenerated method stub
[ { "docid": "e8e8fabf353228fef340c974a9e2559d", "score": "0.0", "text": "@Override\r\n public void onClick(View v) {\n copy(mAdapter.getItem(mPos).content);\r\n optionPw.dismiss();\r\n }", "title": "" } ]
[ { "docid": "81005989525ec80103fbaf46f9c37779", "score": "0.6694239", "text": "@Override\n\tpublic void agit() {\n\n\t}", "title": "" }, { "docid": "0b5b11f4251ace8b3d0f5ead186f7beb", "score": "0.65686274", "text": "@Override\n\tpublic void comer() {\n\t\t\n\t}", "title": "" }, { "docid": "962e2aa1efc1eb9e8f7e2b38da8566b6", "score": "0.6441175", "text": "@Override\r\n\tprotected void method4() {\r\n\t\t// TODO Auto-generated method stub\r\n\t\t\r\n\t}", "title": "" }, { "docid": "cd03efba12b5473dcc457b910fd92a0e", "score": "0.63254577", "text": "@Override\n\t\t\tpublic void sprout() {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "b4764437fc96bd523380203d0a714e9f", "score": "0.63064295", "text": "@Override\r\n\tpublic void calistir() {\n\t\t\r\n\t}", "title": "" }, { "docid": "ded15aaeb71ec68606fe2fb94e86fd30", "score": "0.62976253", "text": "@Override\n\tpublic void festlegen() {\n\t\t\n\t}", "title": "" }, { "docid": "6c2fa45ab362625ae567ee8a229630a4", "score": "0.622455", "text": "@Override\n\tprotected void interr() {\n\t}", "title": "" }, { "docid": "5cf6e7275cb8d34bdacabdb57b1297ed", "score": "0.61845726", "text": "public void mo74847b() {\n }", "title": "" }, { "docid": "1121ee7f7fb44c1a82d76b74dfca36ce", "score": "0.61822534", "text": "@Override\r\n\tprotected void vivir() {\n\t\t\r\n\t}", "title": "" }, { "docid": "50501dd87f1998a502196290135921d9", "score": "0.61727506", "text": "@Override\r\n\tpublic void bewegeNachUnten() {\n\r\n\t}", "title": "" }, { "docid": "fb712911683b694cdce8a0591533827a", "score": "0.6169982", "text": "public void attaquer() {\n\t\t\r\n\t}", "title": "" }, { "docid": "10ead2e988bf977cb8edb2bacf974891", "score": "0.6158877", "text": "@Override\n\tprotected void init() {\n\t\t\n\t}", "title": "" }, { "docid": "d782462e898859cd8f1a6e804776230b", "score": "0.6119481", "text": "@Override\n\tpublic void kahvalti() {\n\t\t\n\t}", "title": "" }, { "docid": "5188ca7aad5f258e672f0989f34a3f46", "score": "0.61062694", "text": "public void mo80636c() {\n }", "title": "" }, { "docid": "320da35135786dc4505079f4a9a73c36", "score": "0.6103035", "text": "@Override\r\n\tpublic void preen() {\n\t\t\r\n\t}", "title": "" }, { "docid": "24da068fbc02f8b8b3aa9cab24026941", "score": "0.60865915", "text": "@Override\n\tpublic void atacar() {\n\t\t\n\t}", "title": "" }, { "docid": "06d440269c184993ff4f11d933a81aed", "score": "0.60860294", "text": "public void mo11421d() {\n }", "title": "" }, { "docid": "06d440269c184993ff4f11d933a81aed", "score": "0.60860294", "text": "public void mo11421d() {\n }", "title": "" }, { "docid": "10d92a66c246261fe6e471d744e9a556", "score": "0.6085701", "text": "@Override\n\tpublic void rysuje() {\n\t\t\n\t}", "title": "" }, { "docid": "7c007022c54a0806ff9bd5438ae3e2ec", "score": "0.60739225", "text": "public void mo74769c() {\n }", "title": "" }, { "docid": "6fd2749106ffef4cb03e557457ef432e", "score": "0.60392183", "text": "@Override\n public void alpulsarNO() {\n\n\n }", "title": "" }, { "docid": "df5a58b776d79955ce4bf7e18e9ddfc4", "score": "0.6021335", "text": "public void mo9214a() {\n }", "title": "" }, { "docid": "b1cf16017c8057c0255a9ad368ecaee5", "score": "0.6017447", "text": "@Override\r\n\tprotected void init() {\n\r\n\t}", "title": "" }, { "docid": "792350939017ccf304337ff492e7db06", "score": "0.601073", "text": "@Override\n\tpublic void init() {\n\t\t// TODO Auto-generated method stub\n\t\t\n\t}", "title": "" }, { "docid": "cc0ab1c285fd2b1a0f1742f44327869d", "score": "0.59759116", "text": "@Override\r\n\tpublic void kasitteleSyote() {\n\t\t\r\n\t}", "title": "" }, { "docid": "ced4b47c7129b2184e6a77b2a8798fd1", "score": "0.5946297", "text": "@Override\n public void annuler() {\n\n }", "title": "" }, { "docid": "6f1e0cfaa7350cf143896dace56978f5", "score": "0.59291553", "text": "@Override\n\tpublic void respirar() {\n\t\t\n\t}", "title": "" }, { "docid": "3334d3b302fd55029e7bd247c823c639", "score": "0.5911117", "text": "@Override\n\tvoid accerlate() {\n\t\t\n\t}", "title": "" }, { "docid": "3d63ba02955ffee95b4ac1b66c98f160", "score": "0.59105057", "text": "@Override\n protected boolean Rol() {\n return true;\n }", "title": "" }, { "docid": "fee1a18ceca61748f93149cd393850fc", "score": "0.5909857", "text": "public void mo74768d() {\n }", "title": "" }, { "docid": "ba348d037fde33ef982a79632d7adf5e", "score": "0.59073913", "text": "@Override\n\tpublic void bouger()\n\t{\n\t\t\n\t}", "title": "" }, { "docid": "28237d6ae20e1aa35aaca12e05c950c9", "score": "0.5903432", "text": "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "title": "" }, { "docid": "7f91c82c66ced12c5b193d3c89d68e4c", "score": "0.5886334", "text": "@Override\n\tprotected void init() {\n\t}", "title": "" }, { "docid": "7f91c82c66ced12c5b193d3c89d68e4c", "score": "0.5886334", "text": "@Override\n\tprotected void init() {\n\t}", "title": "" }, { "docid": "c16fc3362f80f1c0559c76bf68be5792", "score": "0.58831", "text": "@Override\n\tpublic void affiche() {\n\t\t\n\t}", "title": "" }, { "docid": "1351a596cfde79c7fcbaa0c0ac90ed14", "score": "0.5865934", "text": "@Override\n public boolean Aapninger() {\n return true;\n }", "title": "" }, { "docid": "4967494f628119c8d3a4740e09278944", "score": "0.5858707", "text": "@Override\r\n\tprotected void initData() {\n\r\n\t}", "title": "" }, { "docid": "adbbc233cf07504fdedfcdf74afa4901", "score": "0.583616", "text": "@Override\n\tpublic void prnt() {\n\n\t}", "title": "" }, { "docid": "7d4da85943fb6a6ba61dac3c9ae538b3", "score": "0.5831551", "text": "@Override\n\tpublic void morir() {\n\t\t\n\t}", "title": "" }, { "docid": "7d4da85943fb6a6ba61dac3c9ae538b3", "score": "0.5831551", "text": "@Override\n\tpublic void morir() {\n\t\t\n\t}", "title": "" }, { "docid": "27e0c12332a0f3b9fe854aa8beb3bad6", "score": "0.5825081", "text": "@Override\n\tpublic void OffersOfTheDay() {\n\t\t\n\t}", "title": "" }, { "docid": "e57f005733f2eb8590150b3f4542b844", "score": "0.5810343", "text": "@Override\n\tprotected void getData() {\n\t\t\n\t}", "title": "" }, { "docid": "79d198822ce7c98fbe391cfdeb33e3f6", "score": "0.58049023", "text": "@Override\r\n\tprotected void acelerar() {\n\r\n\t}", "title": "" }, { "docid": "2d17f675c4797d1489ccbc9d83c3ec33", "score": "0.5801597", "text": "@Override\n\tpublic void umm() {\n\t\t\n\t}", "title": "" }, { "docid": "c9d7a19ad712ece23e6218c1bbd97e1b", "score": "0.57992023", "text": "@Override\n\tpublic void creap() {\n\n\t}", "title": "" }, { "docid": "5783648f118108797828ca2085091ef9", "score": "0.57931334", "text": "@Override\n protected void initialize() {\n \n }", "title": "" }, { "docid": "5783648f118108797828ca2085091ef9", "score": "0.57931334", "text": "@Override\n protected void initialize() {\n \n }", "title": "" }, { "docid": "d5b930411834332d013e7e45ca7412e4", "score": "0.57919663", "text": "public void getAadhar() {\n\t\t\r\n\t}", "title": "" }, { "docid": "ce91051d32625345f2bf3562abbb93de", "score": "0.5791661", "text": "@Override\n\tprotected void inicializar() {\n\t}", "title": "" }, { "docid": "beee84210d56979d0068a8094fb2a5bd", "score": "0.5791594", "text": "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "title": "" }, { "docid": "6c990ce3c0c4e578d5c2e065a437f8c3", "score": "0.5790907", "text": "public void inverte() {\n\t\t\n\t}", "title": "" }, { "docid": "54b1134554bc066c34ed30a72adb660c", "score": "0.5788234", "text": "@Override\n\tprotected void initData() {\n\n\t}", "title": "" }, { "docid": "2988fe45f681712faab63cb0e862874c", "score": "0.57805216", "text": "@Override\r\n protected void poDolaczeniu() {\n\r\n }", "title": "" }, { "docid": "3a0aa7f30eee7a869c7fd2960b14db07", "score": "0.5778643", "text": "@Override\n public void destoty() {\n }", "title": "" }, { "docid": "10d40e9b81b4ba39c3ab6d779f3b2692", "score": "0.577812", "text": "public void mo31237c() {\n }", "title": "" }, { "docid": "849edaa5bbcc7511e16697ad05c01712", "score": "0.57740533", "text": "@Override\n\tpublic void avanzar() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "518a761521ca9f5cb8a8055b32b72cda", "score": "0.57589173", "text": "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "title": "" }, { "docid": "518a761521ca9f5cb8a8055b32b72cda", "score": "0.57589173", "text": "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "title": "" }, { "docid": "8843ebe8d692b94536f16d5f07fdff4f", "score": "0.57587487", "text": "@Override\n public void update() {\n // TODO Auto-generated method stub\n }", "title": "" }, { "docid": "c379949c43d334b2a73a78b63ebac3c1", "score": "0.5757493", "text": "@Override public int getAtaque(){\n return 0;\n\n }", "title": "" }, { "docid": "535ccad74dc29933b6b48fea680ba27c", "score": "0.5753717", "text": "@Override\r\n\tpublic void operacion() {\n\t\t\r\n\t}", "title": "" }, { "docid": "a65f81fad538053c05dc35d7be360588", "score": "0.5752461", "text": "@Override public int getDefensa(){\n return 0;\n\n }", "title": "" }, { "docid": "ebfe1bb4dd1c0618c0fad36d9f7674b4", "score": "0.57514423", "text": "@Override\n protected void initialize() {\n\n }", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.57491463", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.57491463", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.57491463", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.57491463", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "c4fa257f1d9c8e55ec00612334f57e8b", "score": "0.5742544", "text": "@Override\n public void init() {\n\t\n }", "title": "" }, { "docid": "691b15fed469ddc176b9c9e6151dea65", "score": "0.5739092", "text": "@Override\n\tpublic void breathes()\n\t{\n\t\t\n\t}", "title": "" }, { "docid": "a624b89db95eebb0d7e745f8301395c1", "score": "0.57344353", "text": "public void method() {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.57341826", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.57341826", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.57341826", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.57341826", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "c6e40448cb261fef3ee1fc3a1f5373f0", "score": "0.5732929", "text": "@Override\n\tpublic void operation() {\n\t\t\n\t}", "title": "" }, { "docid": "cadfa07fe44678e9617053752fa5f43d", "score": "0.57283473", "text": "@Override\r\n \tpublic String toString() {\r\n \t\treturn super.toString();\r\n \t}", "title": "" }, { "docid": "c303699d6c9f8d3a2b316125e204825c", "score": "0.57273126", "text": "@Override\n\tpublic void verTop10() {\n\t\t\n\t}", "title": "" }, { "docid": "c74f29111dd26487e1359eb6abdacbec", "score": "0.57206607", "text": "public void mo74767a() {\n }", "title": "" }, { "docid": "a937c607590931387a357d03c3b0eef4", "score": "0.5718783", "text": "@Override\n\tprotected void initialize() {\n\n\t}", "title": "" }, { "docid": "a937c607590931387a357d03c3b0eef4", "score": "0.5718783", "text": "@Override\n\tprotected void initialize() {\n\n\t}", "title": "" }, { "docid": "9a26c4906f8195084e9ec158504cab47", "score": "0.571633", "text": "@Override\n public void init() {\n \n }", "title": "" }, { "docid": "9a26c4906f8195084e9ec158504cab47", "score": "0.571633", "text": "@Override\n public void init() {\n \n }", "title": "" }, { "docid": "1756ef4d0803e995be285c55c28e3b84", "score": "0.57156587", "text": "@Override\r\n\tpublic void bewegeNachRechts() {\n\r\n\t}", "title": "" }, { "docid": "62af35269754b8acb72204c12f622caf", "score": "0.5703817", "text": "protected void mo1291L() {\n }", "title": "" }, { "docid": "b07546ce140f2f3bb5b718f3bf303b9a", "score": "0.5702189", "text": "public void mo5721a() {\n }", "title": "" }, { "docid": "7aadbda143e84de0144f7a8dadde423d", "score": "0.5701947", "text": "@Override\n protected void initData() {\n\n }", "title": "" }, { "docid": "94016f621198b25fa3341ef2382c6876", "score": "0.5689651", "text": "@Override\n\tpublic void grandir() {\n\t\t\n\t}", "title": "" }, { "docid": "abb78a58451e05c6ba3dd938b5c036e0", "score": "0.5684533", "text": "@Override\r\n public void usunZarejestrowaneObiekty() {\n\r\n }", "title": "" }, { "docid": "b1e3eb9a5b9dff21ed219e48a8676b34", "score": "0.5677706", "text": "@Override\n public void memoria() {\n \n }", "title": "" }, { "docid": "62020c21199fdbaf0b47453874f310f1", "score": "0.5677236", "text": "@Override\n\tpublic void init()\n\t{\n\t\t\n\t}", "title": "" }, { "docid": "02b2c6e51ebb5faf78f05c34c734f88d", "score": "0.5676809", "text": "@Override\n\tprotected void adjust() {\n\t\t\n\t}", "title": "" }, { "docid": "9c052331388a2c5e4c1a01dac5b28c41", "score": "0.56740385", "text": "public void verAssist() {\n\t\t\n\n\t}", "title": "" }, { "docid": "3e2b070c1404c777aafba0cbacea02f1", "score": "0.5663756", "text": "@Override\n\tprotected void initializeData() {\n\t\t\n\t}", "title": "" } ]
c00c5ed7a929e9e853711bfce4a730fd
Returns an array of Gaussian (normal) random deviates user provided seed mean = the mean, sd = standard deviation, length of array
[ { "docid": "18aa2a54d55283a47caad593f6d63048", "score": "0.7986475", "text": "public static double[] gaussianRand(double mean, double sd, int n, long seed){\n return normalRand(mean, sd, n, seed);\n }", "title": "" } ]
[ { "docid": "7efe9614e2c9f825050696b7a1442f1e", "score": "0.75048316", "text": "public static double[] gaussianRand(double mean, double sd, int n){\n return normalRand(mean, sd, n);\n }", "title": "" }, { "docid": "c4dcb386b22c44fcad9946e9920b925a", "score": "0.7491945", "text": "public static double[] normalRand(double mean, double sd, int n, long seed){\n double[] ran = new double[n];\n Random rr = new Random(seed);\n for(int i=0; i<n; i++){\n ran[i]=rr.nextGaussian();\n }\n ran = Stat.standardize(ran);\n for(int i=0; i<n; i++){\n ran[i] = ran[i]*sd+mean;\n }\n return ran;\n }", "title": "" }, { "docid": "0aa143117257a8163eae8010bba37ee4", "score": "0.74248725", "text": "public static double[] generateGaussianKernel(double stdDev) {\n double[] kernel = new double[(int) Math.ceil(6 * stdDev)];\n int origin = (int) (kernel.length / 2.0);\n for(int i = 0; i < kernel.length; i++) {\n int x = Math.abs(i - origin);\n kernel[i] = gaussian(x, stdDev);\n }\n kernel = normalize(kernel);\n return kernel;\n }", "title": "" }, { "docid": "58714fb62d987d125b7497d78f762869", "score": "0.72995424", "text": "public static double[] normalRand(double mean, double sd, int n){\n double[] ran = new double[n];\n Random rr = new Random();\n for(int i=0; i<n; i++){\n ran[i]=rr.nextGaussian();\n }\n ran = Stat.standardize(ran);\n for(int i=0; i<n; i++){\n ran[i] = ran[i]*sd+mean;\n }\n return ran;\n }", "title": "" }, { "docid": "2a44016c0d8da06ef65bf7cbaa75ceae", "score": "0.69551873", "text": "@Test\n public void testGaussian_4()\n throws Exception {\n double mean = 1.0;\n double stddev = 1.0;\n\n double result = StdRandom.gaussian(mean, stddev);\n\n }", "title": "" }, { "docid": "b04b9461341ff97da9fa10c6fe3b1187", "score": "0.6609414", "text": "public static double gaussian(double mean, double sd, double x){\n return Math.exp(-Fmath.square((x - mean)/sd)/2.0)/(sd*Math.sqrt(2.0D*Math.PI));\n }", "title": "" }, { "docid": "5f10333e91bcc0fb131f25b756972192", "score": "0.6554677", "text": "public static double[] normrnd(double mu, double sigma, int n, Long seed) {\n //Throw Exception\n if (!Double.isFinite(mu))\n throw new IllegalArgumentException(\"mu (\" + mu + \") is invalid.\");\n if (!Double.isFinite(sigma))\n throw new IllegalArgumentException(\"sigma (\" + sigma + \") is invalid.\");\n if (n <= 0)\n throw new IllegalArgumentException(\"n (\" + n + \") must be > 0.\");\n\n\n //Construct the random generator\n Random rand;\n if (seed == null) {\n rand = new Random();\n } else {\n rand = new Random(seed);\n }\n\n //Generate random data\n double[] result = new double[n];\n for (int i = 0; i < n; i++) {\n result[i] = rand.nextGaussian() * sigma + mu;\n }\n\n return result;\n }", "title": "" }, { "docid": "5c1cf8e63c1c00b0798d699fea08c913", "score": "0.64723545", "text": "public static double[] exponentialRand(double mu, double sigma, int n, long seed){\n double[] ran = new double[n];\n Random rr = new Random(seed);\n for(int i=0; i<n; i++){\n ran[i] = mu - Math.log(1.0D-rr.nextDouble())*sigma;\n }\n return ran;\n }", "title": "" }, { "docid": "b2d5fb2d60d01c39a84857b368c1cee8", "score": "0.6417443", "text": "public static double std_gaussian(){\n double r,x,y;\n do {\n x = uniform(-1,1);\n y = uniform(-1,1);\n r= x*x+y*y;\n } while(r>=1 || r==0);\n return(x*Math.sqrt(-2*Math.log(r)/r));\n }", "title": "" }, { "docid": "198359d45dd2c3b8cf9b5c48d03e7229", "score": "0.6395334", "text": "public static final double[] Gaussian (\n\t\tfinal int iCount)\n\t{\n\t\tif (0 >= iCount) return null;\n\n\t\tdouble[] adblRandom = new double[iCount];\n\n\t\tfor (int i = 0; i < iCount; ++i) {\n\t\t\ttry {\n\t\t\t\tadblRandom[i] = org.drip.measure.gaussian.NormalQuadrature.Random();\n\t\t\t} catch (java.lang.Exception e) {\n\t\t\t\te.printStackTrace();\n\n\t\t\t\treturn null;\n\t\t\t}\n\t\t}\n\n\t\treturn adblRandom;\n\t}", "title": "" }, { "docid": "5146b86667b1717e22bb07c644f0aecb", "score": "0.6362627", "text": "protected double normalDens(double x, double mean, double stdDev) {\n \n double diff = x - mean;\n \n return (1 / (NORM_CONST * stdDev)) \n * Math.exp(-(diff * diff / (2 * stdDev * stdDev)));\n }", "title": "" }, { "docid": "f1413a3fa46098ea849d22b10c89f634", "score": "0.6361156", "text": "public static double gaussianProb(double mean, double sd, double upperlimit){\n return normalCDF(mean, sd, upperlimit);\n }", "title": "" }, { "docid": "fa2ddbdb2fa30c4355c3bfa103c697b9", "score": "0.6339959", "text": "public static double[] frechetRand(double mu, double sigma, double gamma, int n, long seed){\n double[] ran = new double[n];\n Random rr = new Random(seed);\n for(int i=0; i<n; i++){\n ran[i] = Math.pow((1.0D/(Math.log(1.0D/rr.nextDouble()))),1.0D/gamma)*sigma + mu;\n }\n return ran;\n }", "title": "" }, { "docid": "aeb6284963d9177c97f610f9204a701e", "score": "0.6334549", "text": "public static double[] gumbelMinRand(double mu, double sigma, int n, long seed){\n double[] ran = new double[n];\n Random rr = new Random(seed);\n for(int i=0; i<n; i++){\n ran[i] = Math.log(Math.log(1.0D/(1.0D-rr.nextDouble())))*sigma+mu;\n }\n return ran;\n }", "title": "" }, { "docid": "76793ba4eaac7eaa84aabf9bd8b14088", "score": "0.6314975", "text": "private double normalDens (double x, double mean, double stdDev) {\n double diff = x - mean;\n \n return (1/(m_normConst*stdDev))*Math.exp(-(diff*diff/(2*stdDev*stdDev)));\n }", "title": "" }, { "docid": "f37de0a17192a28d2321595f6a1b9993", "score": "0.6277403", "text": "@Test\n public void testGaussian_1()\n throws Exception {\n\n double result = StdRandom.gaussian();\n\n }", "title": "" }, { "docid": "acb1051915a5fbc041948fa7fc55f3e6", "score": "0.62712264", "text": "@Test\n public void testGaussian_2()\n throws Exception {\n\n double result = StdRandom.gaussian();\n\n }", "title": "" }, { "docid": "efa06c56caf09a60a9a011cbb0b56990", "score": "0.62403977", "text": "public static double gaussianPDF(double mean, double sd, double x){\n return Math.exp(-Fmath.square((x - mean)/sd)/2.0)/(sd*Math.sqrt(2.0D*Math.PI));\n }", "title": "" }, { "docid": "d689b0a2f2df0fe18dbdd655db23bcbe", "score": "0.6219377", "text": "@Test\n public void testGaussian_3()\n throws Exception {\n\n double result = StdRandom.gaussian();\n\n }", "title": "" }, { "docid": "5fc18bba53ff07b20e98cee31996bb45", "score": "0.62146455", "text": "public static double[] exponentialRand(double mu, double sigma, int n){\n double[] ran = new double[n];\n Random rr = new Random();\n for(int i=0; i<n; i++){\n ran[i] = mu - Math.log(1.0D-rr.nextDouble())*sigma;\n }\n return ran;\n }", "title": "" }, { "docid": "459ac509fad8925d211f50fe4bd80cd3", "score": "0.61472493", "text": "public static double[] logNormalRand(double mu, double sigma, int n, long seed){\n if(n<=0)throw new IllegalArgumentException(\"The number of random deviates required, \" + n + \", must be greater than zero\");\n if(sigma<0)throw new IllegalArgumentException(\"The parameter sigma, \" + sigma + \", must be greater than or equal to zero\");\n PsRandom psr = new PsRandom(seed);\n return psr.logNormalArray(mu, sigma, n);\n }", "title": "" }, { "docid": "cdae4c3987bcb0f57a4690a29096ced3", "score": "0.6130112", "text": "public static double[] poissonRand(double mean, int n, long seed){\n\n Random rr = new Random(seed);\n double[] ran = poissonRandCalc(rr, mean, n);\n return ran;\n }", "title": "" }, { "docid": "49c09432b6090409dc8de8b912e24fe9", "score": "0.6115572", "text": "public static double[][] getGaussianPoints(int n, int d) {\n\t\tdouble[][] points = new double[n][];\n\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tpoints[i] = RandomUtility.normalArray(d);\n\t\t}\n\n\t\treturn points;\n\t}", "title": "" }, { "docid": "c6b7359aef73aa194ffdd08dadd18010", "score": "0.61114836", "text": "public static double normal(double mean, double sd, double x){\n return Math.exp(-Fmath.square((x - mean)/sd)/2.0)/(sd*Math.sqrt(2.0D*Math.PI));\n }", "title": "" }, { "docid": "9881e080e0d9ffe4045966fd6ef29621", "score": "0.6109063", "text": "private static double standardDeviation(final double[] data) {\r\n double sum = 0, sd = 0;\r\n for (double d : data)\r\n sum += d;\r\n double mean = sum / data.length;\r\n for (double d : data)\r\n sd += Math.pow(d - mean, 2);\r\n return Math.sqrt(sd / data.length);\r\n }", "title": "" }, { "docid": "b59791c7ff8e3a9da49fecb270e7a1b8", "score": "0.6106003", "text": "public static double gaussianCDF(double mean, double sd, double upperlimit){\n return normalCDF(mean, sd, upperlimit);\n }", "title": "" }, { "docid": "d059d427dd50a7f7189a9ec9a9d5c30d", "score": "0.60945773", "text": "public static double[] gumbelMaxRand(double mu, double sigma, int n, long seed){\n double[] ran = new double[n];\n Random rr = new Random(seed);\n for(int i=0; i<n; i++){\n ran[i] = mu-Math.log(Math.log(1.0D/(1.0D-rr.nextDouble())))*sigma;\n }\n return ran;\n }", "title": "" }, { "docid": "b7611b6f314db3e9d56ce382afabca56", "score": "0.6090667", "text": "public static double gaussian(double mu, double sigma) {\r\n\t\t\treturn mu + rand.nextGaussian() * sigma;\r\n\t\t}", "title": "" }, { "docid": "394b3291ae5dd350f0de461d29aa2c0f", "score": "0.6057783", "text": "public static double gaussian(int x, double stdDev) {\n return (1 / (Math.sqrt(2 * Math.PI * Math.pow(stdDev, 2)))) * \n Math.pow(Math.E, -((Math.pow(x, 2)) / (2 * Math.pow(stdDev, 2))));\n }", "title": "" }, { "docid": "d421879b9b5b5042d85eec41a538713b", "score": "0.6055979", "text": "public static double[] frechetRand(double mu, double sigma, double gamma, int n){\n double[] ran = new double[n];\n Random rr = new Random();\n for(int i=0; i<n; i++){\n ran[i] = Math.pow((1.0D/(Math.log(1.0D/rr.nextDouble()))),1.0D/gamma)*sigma + mu;\n }\n return ran;\n }", "title": "" }, { "docid": "20dce0d3e3f81d51538dea855c4d9b49", "score": "0.60517025", "text": "public static double[] gumbelMinRand(double mu, double sigma, int n){\n double[] ran = new double[n];\n Random rr = new Random();\n for(int i=0; i<n; i++){\n ran[i] = Math.log(Math.log(1.0D/(1.0D-rr.nextDouble())))*sigma+mu;\n }\n return ran;\n }", "title": "" }, { "docid": "71e31f06c11bbf5c34367f8a61316aff", "score": "0.6006422", "text": "public double[] mean();", "title": "" }, { "docid": "a8c57e7088b9f172961f25b35e56536a", "score": "0.59936863", "text": "@Override\n public double nextRand(double mean, double std) {\n double mos = std / mean;\n double correctedStd = Math.sqrt(Math.log((mos * mos) + 1));\n double correctedMean = Math.log(mean / correctedStd);\n return LognormalGen.nextDouble(DEFAULT_RANDOM_STREAM,\n correctedMean, correctedStd);\n }", "title": "" }, { "docid": "6b1ffc10feba849598142287c83d642c", "score": "0.5976753", "text": "public static double calculateStandardDeviation(List<Float> data, double mean) {\n float sum = 0;\n for (int i = 0; i < data.size(); i++) {\n sum += (data.get(i) - mean) * (data.get(i) - mean);\n }\n\n return Math.sqrt(sum / (data.size() - 1));\n }", "title": "" }, { "docid": "b8ea7f3d4bec8321cc66e39904a38b0a", "score": "0.5976536", "text": "public float[][] gaussian(int center_x, int center_y, int width,\r\n\t\t\tint height, double horGaussianStdDev, double verGaussianStdDev,\r\n\t\t\tfloat[][] p) {\r\n\t\tif ((p == null) || (p[0].length != width) || (p.length != height)) {\r\n\t\t\tp = new float[height][width];\r\n\t\t}\r\n\t\tdouble horGaussianVariance = 2.0 * horGaussianStdDev\r\n\t\t\t\t* horGaussianStdDev;\r\n\t\tdouble verGaussianVariance = 2.0 * verGaussianStdDev\r\n\t\t\t\t* verGaussianStdDev;\r\n\t\tint x, y, xx, yy;\r\n\t\tfloat min = 10.0F, max = -10.0F;\r\n\t\tfloat z;\r\n\t\tfor (y = 0; y < height; y++) {\r\n\t\t\tyy = y - center_y;\r\n\t\t\tfor (x = 0; x < width; x++) {\r\n\t\t\t\txx = x - center_x;\r\n\t\t\t\tz = (float) (Math\r\n\t\t\t\t\t\t.exp(-((xx * xx) / horGaussianVariance + (yy * yy)\r\n\t\t\t\t\t\t\t\t/ verGaussianVariance)));\r\n\t\t\t\tp[y][x] = z;\r\n\t\t\t\tif (z < min)\r\n\t\t\t\t\tmin = z;\r\n\t\t\t\tif (z > max)\r\n\t\t\t\t\tmax = z;\r\n\t\t\t}\r\n\t\t}\r\n\t\t// System.out.println(\"GratingFactory.gaussian(): \" + min + \" to \" +\r\n\t\t// max);\r\n\t\treturn p;\r\n\t}", "title": "" }, { "docid": "be085f272a76e48c7f311a1e0a56095e", "score": "0.5950155", "text": "private static double getStandardDeviation(double[] marks) {\n\t\tSystem.out.println();\n\t\tdouble mean=0;\n\t\tdouble total = 0;\n\t\t\n\t\tfor(int i=0; i<marks.length; i++){\n\t\t\tmean+=marks[i];\n\t\t}\n\t\t\n\t\tmean = mean/NSCORES;\n\t\tSystem.out.println();\n\t\t\n\t\tdouble[] difference = new double[NSCORES];\n\t\t\n\t\tfor(int i=0; i< marks.length; i++){\n\t\t\tdifference[i] = marks[i]-mean;\n\t\t\tdifference[i] = difference[i] * difference[i];\n\t\t\ttotal+=difference[i];\n\t\t}\n\t\t\n\t\t\n\t\treturn Math.sqrt(total/NSCORES);\n\t}", "title": "" }, { "docid": "544966748d411a0d93b063dbf3208e53", "score": "0.59414357", "text": "public static double normalInverseCDF(double mean, double sd, double prob){\n return gaussianInverseCDF(mean, sd, prob);\n }", "title": "" }, { "docid": "f4257eaa8915ba9d124a8655c311d14a", "score": "0.5933661", "text": "public static double sampleVariance(double[] elements, double mean) {\r\n\t\t//double[] elements = data.elements();\r\n\t\tint size = elements.length;\t\r\n\t\tdouble sum = 0 ;\r\n\t\t// find the sum of the squares \r\n\t\tfor (int i = size; --i >= 0; ) {\r\n\t\t\tdouble delta = elements[i] - mean;\r\n\t\t\tsum += delta * delta;\r\n\t\t}\r\n\r\n\t\treturn sum / (size-1);\r\n\t}", "title": "" }, { "docid": "7b047b406219ef01ae64c9dbbe277a46", "score": "0.59335274", "text": "public static double meanDeviation(double[] elements, double mean) {\r\n\t\t//double[] elements = data.elements();\r\n\t\tint size = elements.length;\r\n\t\tdouble sum=0;\r\n\t\tfor (int i=size; --i >= 0;) sum += Math.abs(elements[i]-mean);\r\n\t\treturn sum/size;\r\n\t}", "title": "" }, { "docid": "a10179ed053bdd1e5d319b8da0956638", "score": "0.58888125", "text": "public static double[] weibullRand(double mu, double sigma, double gamma, int n, long seed){\n double[] ran = new double[n];\n Random rr = new Random(seed);\n for(int i=0; i<n; i++){\n ran[i] = Math.pow(-Math.log(1.0D-rr.nextDouble()),1.0D/gamma)*sigma + mu;\n }\n return ran;\n }", "title": "" }, { "docid": "d2cb44c990d19e07ef653584196682c0", "score": "0.5888355", "text": "protected static double getStandardDeviation(double[] data) {\n double sum = 0;\n for (double datum : data) {\n sum += (datum - getAverage(data)) * (datum - getAverage(data));\n }\n return Math.sqrt(sum / (data.length - 1));\n }", "title": "" }, { "docid": "8159ea5417d94c87390db18f4fb9de33", "score": "0.5862572", "text": "private static double[] poissonRandCalc(Random rr, double mean, int n){\n double[] ran = new double[n];\n double oldm = -1.0D;\n double expt = 0.0D;\n double em = 0.0D;\n double term = 0.0D;\n double sq = 0.0D;\n double lnMean = 0.0D;\n double yDev = 0.0D;\n\n if(mean < 12.0D){\n for(int i=0; i<n; i++){\n if(mean != oldm){\n oldm = mean;\n expt = Math.exp(-mean);\n }\n em = -1.0D;\n term = 1.0D;\n do{\n ++em;\n term *= rr.nextDouble();\n }while(term>expt);\n ran[i] = em;\n }\n }\n else{\n for(int i=0; i<n; i++){\n if(mean != oldm){\n oldm = mean;\n sq = Math.sqrt(2.0D*mean);\n lnMean = Math.log(mean);\n expt = lnMean - Stat.logGamma(mean+1.0D);\n }\n do{\n do{\n yDev = Math.tan(Math.PI*rr.nextDouble());\n em = sq*yDev+mean;\n }while(em<0.0D);\n em = Math.floor(em);\n term = 0.9D*(1.0D+yDev*yDev)*Math.exp(em*lnMean - Stat.logGamma(em+1.0D)-expt);\n }while(rr.nextDouble()>term);\n ran[i] = em;\n }\n }\n return ran;\n }", "title": "" }, { "docid": "214a02cc37fe81d000c31d53575e1a76", "score": "0.58463216", "text": "public static double gaussian() {\n\t\tdouble r, x, y;\n\t\tdo {\n\t\t\tx = uniform(-1.0, 1.0);\n\t\t\ty = uniform(-1.0, 1.0);\n\t\t\tr = x * x + y * y;\n\t\t} while (r >= 1 || r == 0);\n\t\treturn x * Math.sqrt(-2 * Math.log(r) / r);\n\n\t\t// Remark: y * Math.sqrt(-2 * Math.log(r) / r)\n\t\t// is an independent random gaussian\n\t}", "title": "" }, { "docid": "6992be0d2e7ccd7976fc7659a7a934de", "score": "0.5844089", "text": "public static float stdDev(float[] x){\n\t\tint n = x.length;\n\t\tfloat[] dev = new float[n];\n\t\tfloat sum = 0;\n\t\tfloat sumDev = 0;\n\t\tfloat mean = 0;\n\t\tfloat stdDev = 0;\n\n\t\t//calc mean value\n \tfor(int i=0; i<n; i++){\n \t sum = sum + x[i];\n \t}\n \tmean = sum/n; \n\n \t//Absolute value of each measured value minus the mean value \t\n \tfor (int i=0; i<n; i++) {\n \t\tdev[i] = (float)Math.pow(x[i] - mean, 2);\n \t\tsumDev = sumDev + dev[i];\n \t}\n \t//Standard deviation\n \tstdDev = (float)Math.sqrt((sumDev)/n);\n\n \treturn stdDev;\n }", "title": "" }, { "docid": "f5de5c2dbda0c13cafd1231f3f1f888e", "score": "0.5827424", "text": "double[] sample() {\n int componentId = (int)(Math.random()*numGaussians);\r\n return mixtureDist.getComponents().get(componentId).getSecond().sample();\r\n }", "title": "" }, { "docid": "fafd9f852794b1a226dc7af36762fe78", "score": "0.5823334", "text": "public static double normalPDF(double mean, double sd, double x){\n return Math.exp(-Fmath.square((x - mean)/sd)/2.0)/(sd*Math.sqrt(2.0D*Math.PI));\n }", "title": "" }, { "docid": "0a29adb31ecf64168418f24c1126c0ab", "score": "0.5822365", "text": "public static float standardDeviation(float[] aa){\n return (float)Math.sqrt(Stat.variance(aa));\n }", "title": "" }, { "docid": "ff764b69c40629b48d50cb93dba9b7a0", "score": "0.58091146", "text": "public static double[] gumbelMaxRand(double mu, double sigma, int n){\n double[] ran = new double[n];\n Random rr = new Random();\n for(int i=0; i<n; i++){\n ran[i] = mu-Math.log(Math.log(1.0D/(1.0D-rr.nextDouble())))*sigma;\n }\n return ran;\n }", "title": "" }, { "docid": "64b9731c7e666ff638a4ca8a1a5d9018", "score": "0.5768368", "text": "private float nextGaussian(float mu, float sigma) {\n\t\treturn mu + ((float) rng.nextGaussian() * sigma);\n\t}", "title": "" }, { "docid": "b4b888aaef3603928553697f6cefed95", "score": "0.5767766", "text": "@Override\n public Double get() {\n return mean + (sd * random.nextGaussian());\n }", "title": "" }, { "docid": "f3ee53a13ed469fd1ffba991062dbe87", "score": "0.5764188", "text": "public Gaussian ()\n {\n mean = 0.0;\n sigma = 1.0;\n precomputed = false;\n }", "title": "" }, { "docid": "baf5b022e075fa410df7732ede464bfc", "score": "0.57535285", "text": "public static double[] poissonRand(double mean, int n){\n\n Random rr = new Random();\n double[] ran = poissonRandCalc(rr, mean, n);\n return ran;\n }", "title": "" }, { "docid": "8a2a12475a84972305b75e5069cfd537", "score": "0.57529837", "text": "public static double[] logNormalRand(double mu, double sigma, int n){\n if(n<=0)throw new IllegalArgumentException(\"The number of random deviates required, \" + n + \", must be greater than zero\");\n if(sigma<0)throw new IllegalArgumentException(\"The parameter sigma, \" + sigma + \", must be greater than or equal to zero\");\n PsRandom psr = new PsRandom();\n return psr.logNormalArray(mu, sigma, n);\n }", "title": "" }, { "docid": "2b8728d5988aaaebc8237cff3a79b31d", "score": "0.57290024", "text": "public static float StandardDeviation(float[] data,\r\n\t\t\t\t\t\t\t\t\t\t\tfloat average) {\r\n \t\tfloat total = 0;\r\n\t\tif (data.length == 0) {\r\n\t\t\treturn total;\r\n\t\t}\r\n\t\tfor (int i = 0; i < data.length; ++i) {\r\n\t\t\ttotal += Math.pow(data[i] - average, 2);\r\n\t\t}\r\n\t\treturn (float)Math.sqrt(total / data.length);\r\n\t}", "title": "" }, { "docid": "a04358a57daa499a6dc8a731165f1294", "score": "0.57269955", "text": "public static double[] studentstRand(int nu, int n, long seed){\n return studentTrand(nu, n, seed);\n }", "title": "" }, { "docid": "90348a8db023abc06fbe2b4240520867", "score": "0.57180005", "text": "public static double gaussianProb(double mean, double sd, double lowerlimit, double upperlimit){\n return Stat.normalCDF(mean, sd, upperlimit) - Stat.normalCDF(mean, sd, lowerlimit);\n }", "title": "" }, { "docid": "7d6f1a4e1fb06389483af6185d49e6b4", "score": "0.5717114", "text": "public static double[] gaussianOrderStatisticMedians(double mean, double sigma, int n){\n double nn = (double)n;\n double[] gosm = new double[n];\n double[] uosm = uniformOrderStatisticMedians(n);\n for(int i=0; i<n; i++){\n gosm[i] =Stat.inverseGaussianCDF(mean, sigma, uosm[i]);\n }\n gosm = Stat.scale(gosm, mean, sigma);\n return gosm;\n }", "title": "" }, { "docid": "e5e27b32c36a4129f69e26b77106dbdf", "score": "0.57120484", "text": "public static double stddev(final double[] in, final int start, final int stop, final double mean) {\n if ((stop - start) <= 0) return Double.NaN;\n\n double total = 0;\n for (int i = start; i < stop; ++i) {\n total += (in[i] * in[i]);\n }\n\n return Math.sqrt((total / (stop - start)) - (mean * mean));\n }", "title": "" }, { "docid": "1889e9bedd59eb7c26be89543541b6a4", "score": "0.56919914", "text": "public static double logNormalStandardDeviation(double mu, double sigma){\n return logNormalStandDev(mu, sigma);\n }", "title": "" }, { "docid": "f2bc428a14f9d98bfc651b0b7e1d37b5", "score": "0.5688923", "text": "public static double[] normrnd(double mu, double sigma, int n) {\n //Throw Exception\n if (!Double.isFinite(mu))\n throw new IllegalArgumentException(\"mu (\" + mu + \") is invalid.\");\n if (!Double.isFinite(sigma))\n throw new IllegalArgumentException(\"sigma (\" + sigma + \") is invalid.\");\n if (n <= 0)\n throw new IllegalArgumentException(\"n (\" + n + \") must be > 0.\");\n\n return normrnd(mu, sigma, n, null);\n }", "title": "" }, { "docid": "a678900b809c70cb233baaa688f0f9ba", "score": "0.56774664", "text": "public double getStandardDeviation() {\n double mean = getMean();\n return Math.sqrt( squareSum/count - mean*mean );\n }", "title": "" }, { "docid": "49f0cabdba2ceca87319718790a4190d", "score": "0.56709015", "text": "public static double standardDeviation(ArrayList<Double> values, double mean){\n\t\t//Calculate the Standard deviation of the values, given the mean\n\t\t\n\t\tif(values.size() != 0){\n\t\t\n\t\t\t//Total of (x - Mean)^2\n\t\t\tdouble total = 0;\n\t\t\t\n\t\t\tfor(double value: values)\n\t\t\t\ttotal += Math.pow(value - mean, 2);\n\t\t\t\n\t\t\treturn Math.sqrt(total / (values.size() - 1));\t\n\t\t}else{\n\t\t\tSystem.out.println(\"ArrayList size is 0. SD could not be calculated\");\n\t\t\treturn 0;\n\t\t}\n\t}", "title": "" }, { "docid": "f8004dfc19abdc4ad6fbf21dd6c7eb60", "score": "0.56510013", "text": "public static double[] randomArray(int size) {\n\t\tRandom random = new Random();\n\t\tdouble[] a = new double[size];\n\t\tfor (int i = 0; i < a.length; i++) {\n\t\t\ta[i] = random.nextInt(100);\n\t\t}\n\t\tSystem.out.println(\"a[2] = \" + a[2]);\n\t\treturn a;\n\t}", "title": "" }, { "docid": "b423a6504db76745cc4bb563e3c3863e", "score": "0.565058", "text": "public void testGetMean_List()\n {\n System.out.println(\"getMean\");\n Vector mean = VectorFactory.getDefault().createUniformRandom(\n DIM, -RANGE, RANGE, RANDOM );\n Matrix variance = MatrixFactory.getDefault().createIdentity(DIM, DIM).scale( RANDOM.nextDouble() * RANGE + 2.0 );\n MultivariateGaussian.PDF targetDistribution =\n new MultivariateGaussian.PDF( mean, variance );\n MultivariateMonteCarloIntegrator instance =\n new MultivariateMonteCarloIntegrator();\n\n MultivariateGaussian.PDF importanceDistribution =\n new MultivariateGaussian.PDF( mean.scale(2.0), variance.scale(2.0) );\n ImportanceSampler<Vector> sampler =\n new ImportanceSampler<Vector>( importanceDistribution );\n\n System.out.println( \"Target = \" + targetDistribution.getMean() );\n System.out.println( \"Importance = \" + importanceDistribution.getMean() );\n\n int num = 100;\n ArrayList<Vector> means = new ArrayList<Vector>( num );\n ArrayList<Vector> variances = new ArrayList<Vector>( num );\n for( int n = 0; n < num; n++ )\n {\n MultivariateGaussian.PDF g =\n instance.getMean( sampler.sample(targetDistribution, RANDOM, NUM_SAMPLES ) );\n means.add( g.getMean() );\n variances.add( g.getCovariance().convertToVector() );\n }\n\n MultivariateGaussian sampleMeanDistribution =\n MultivariateGaussian.MaximumLikelihoodEstimator.learn(means, 0.0);\n MultivariateGaussian sampleVarianceDistribution =\n MultivariateGaussian.MaximumLikelihoodEstimator.learn(variances, 0.0);\n\n Vector meanTarget = targetDistribution.getMean();\n double zsquared = sampleMeanDistribution.computeZSquared( meanTarget );\n double p = 1.0-ChiSquareDistribution.CDF.evaluate( zsquared, DIM );\n\n System.out.println( \"====== Mean ========\" );\n System.out.println( \"Target = \" + targetDistribution.getMean() );\n System.out.println( \"Sample = \" + sampleMeanDistribution.getMean() );\n System.out.println( \"Z-squared= \" + zsquared );\n System.out.println( \"P-value = \" + p );\n assertEquals( 1.0, p, 0.95 );\n\n }", "title": "" }, { "docid": "90837037de8179e62d548376ff9832ac", "score": "0.5647754", "text": "private double standardDeviation(ArrayList<Double> arr, double average){\n if(arr.size() < 2){\n return 0;\n }\n double stdDev = 0;\n for(Double d: arr){\n stdDev += ((d - average)*(d - average)) / (arr.size()-1);\n }\n return Math.sqrt(stdDev);\n }", "title": "" }, { "docid": "b04358ea5d7398e22d406e93c090bb43", "score": "0.5630045", "text": "public double stddev() {\n return StdStats.stddev(means);\n }", "title": "" }, { "docid": "7907718c5b1973e27bd18df3cf0e127d", "score": "0.56214374", "text": "public static double standardDeviation(double[] aa){\n return Math.sqrt(Stat.variance(aa));\n }", "title": "" }, { "docid": "dff48a1e293677634b210bf85fb40316", "score": "0.56182617", "text": "public static double[] rand(double start, double end, int n, Long seed) {\n //Throw Exception\n if (!Double.isFinite(start))\n throw new IllegalArgumentException(\"start (\" + start + \") is invalid.\");\n if (!Double.isFinite(end))\n throw new IllegalArgumentException(\"end (\" + end + \") is invalid.\");\n if (start > end)\n throw new IllegalArgumentException(\"start (\" + start + \") must be > end (\" + end + \").\");\n if (n <= 0)\n throw new IllegalArgumentException(\"n (\" + n + \") must be > 0.\");\n\n\n //Construct the random generator\n Random rand;\n if (seed == null) {\n rand = new Random();\n } else {\n rand = new Random(seed);\n }\n\n //Generate random data\n double range = end - start;\n double[] result = new double[n];\n for (int i = 0; i < n; i++) {\n result[i] = rand.nextDouble() * range + start;\n }\n\n return result;\n }", "title": "" }, { "docid": "6a602ff6d752f8b5e5265a293b02ce78", "score": "0.561478", "text": "private static double stdDev(LinkedList<Integer> list, double mean){\n\t\tdouble sum=0;\n\t\tfor(Integer num : list){\n\t\t\tsum += Math.pow((num-mean), 2);\n\t\t}\n\t\treturn Math.sqrt(sum/list.size());\n\t}", "title": "" }, { "docid": "ad8d04dff20236a05caeab81572d83a6", "score": "0.5606167", "text": "public static double normalDistribution(final double mean, final double sd, final double x) {\n Utils.validateArg(sd >= 0, \"sd: Standard deviation of normal must be >= 0\");\n Utils.validateArg(wellFormedDouble(mean) && wellFormedDouble(sd) && wellFormedDouble(x),\n \"mean, sd, or, x : Normal parameters must be well formatted (non-INF, non-NAN)\");\n\n double a = 1.0 / (sd * Math.sqrt(2.0 * Math.PI));\n double b = Math.exp(-1.0 * (Math.pow(x - mean, 2.0) / (2.0 * sd * sd)));\n return a * b;\n }", "title": "" }, { "docid": "cd8aa8d580be91ffb1c91f04f49cbb06", "score": "0.5593967", "text": "public static double[] weibullRand(double mu, double sigma, double gamma, int n){\n double[] ran = new double[n];\n Random rr = new Random();\n for(int i=0; i<n; i++){\n ran[i] = Math.pow(-Math.log(1.0D-rr.nextDouble()),1.0D/gamma)*sigma + mu;\n }\n return ran;\n }", "title": "" }, { "docid": "46ef56e14a66b46286961e736f33a492", "score": "0.55806077", "text": "public static double calculateSD(double numArray[])\n {\n double sum = 0.0, standardDeviation = 0.0;\n int length = numArray.length;\n\n for(double num : numArray) {\n sum += num;\n }\n\n double mean = sum/length;\n\n for(double num: numArray) {\n standardDeviation += Math.pow(num - mean, 2);\n }\n\n return Math.sqrt(standardDeviation/length);\n }", "title": "" }, { "docid": "7b9350316d81d52a29564ea51185239c", "score": "0.55757546", "text": "private static double variance(double expectedMean, int[] data) {\n\t\tdouble mean = expectedMean;\n\t double variance = 0.0;\n\t double divisor = data.length - 1;\n\t for (int x : data) {\n\t \tdouble deviation = x - mean;\n\t \tvariance += (deviation * deviation) / divisor;\n\t }\n\t return Math.sqrt(variance);\n\t}", "title": "" }, { "docid": "1cd3bf94b3721d77ebc6fa70a170c286", "score": "0.55727214", "text": "public double stddev() {\n double item =0;\n double sum =0;\n for(int i=0;i<fractionResults.length;i++){\n sum += Math.pow(fractionResults[i]-mean(),2);\n }\n return sum/(fractionResults.length-1);\n }", "title": "" }, { "docid": "3499915c320b493f3bb1e82e6bc80520", "score": "0.5570279", "text": "private static double[] getRandomArrayWithRealNumbers() {\n int n = (int) (Math.random() * 10 + 10);\n double[] array = new double[n];\n\n // fill the array with random data\n for (int i = 0; i < array.length; i++) {\n array[i] = Math.random() * 50 - 25;\n }\n System.out.println(Arrays.toString(array));\n return array;\n }", "title": "" }, { "docid": "d6f16b26a488a50172b2967b0be0eba3", "score": "0.55568784", "text": "public static double gaussianCDF(double mean, double sd, double lowerlimit, double upperlimit){\n return Stat.normalCDF(mean, sd, upperlimit) - Stat.normalCDF(mean, sd, lowerlimit);\n }", "title": "" }, { "docid": "ebfd1f53925f6c2dd589ed8a3496476e", "score": "0.5556262", "text": "public double calculateStandardDeviation(){\n differenceMean = 0;\n differenceSum = 0;\n standardDeviation = 0;\n for(int j=0; j<totalRates; j++){\n variences[j] = (rates[j]-rateMean)*(rates[j]-rateMean); //calculates and stores the\n //square of the difference between the rate and the rate mean\n }\n for(int j=0; j<totalRates; j++){\n differenceSum += variences[j];//adds all the differences together\n }\n differenceMean = differenceSum/totalRates;\n standardDeviation = Math.sqrt(differenceSum)/totalRates;\n return standardDeviation;\n }", "title": "" }, { "docid": "d7a3e2cbd5eb84995e40e007fb81c06a", "score": "0.5537718", "text": "public static double normalPDF(double value, double mean, double variance) {\n\t\tif (variance == 0 && mean != value) return 0;\n\t\tif (variance == 0 && mean == value) return 1;\n\t\t\n//\t\tvariance = variance != 0 ? variance : Float.MIN_VALUE;\n\t\tdouble d = value - mean;\n\t\treturn (1.0 / (Math.sqrt(2*Math.PI*variance))) * Math.exp(-(d*d) / (2*variance));\n\t}", "title": "" }, { "docid": "34d8cb9d18e04c5e32c8e2ebb8249159", "score": "0.552147", "text": "public static double logNormalStandDev(double mu, double sigma){\n double sigma2 = sigma*sigma;\n return Math.sqrt((Math.exp(sigma2) - 1.0D)*Math.exp(2.0D*mu + sigma2));\n }", "title": "" }, { "docid": "adf5b41f2c918c1af5bbe672e4e044dd", "score": "0.5511841", "text": "public static double addNoise(double value, double stdDev) {\n\t\treturn RANDOM.nextGaussian() * stdDev + value;\n\t}", "title": "" }, { "docid": "4f0dbb17621eae06b74e4b1c9cdf7acb", "score": "0.5510785", "text": "public static float[] standardize(float[] aa){\n float mean0 = Stat.mean(aa);\n float sd0 = Stat.standardDeviation(aa);\n int n = aa.length;\n float[] bb = new float[n];\n if(sd0==0.0){\n for(int i=0; i<n; i++){\n bb[i] = 1.0F;\n }\n }\n else{\n for(int i=0; i<n; i++){\n bb[i] = (aa[i] - mean0)/sd0;\n }\n }\n return bb;\n }", "title": "" }, { "docid": "1df1488fd3dff130a951d358a1cf9d31", "score": "0.5503366", "text": "public double standardDeviation() {\n return Math.sqrt (variance());\n }", "title": "" }, { "docid": "c77f9bb3d8c6e91fad2b2b496f0fdad1", "score": "0.55014294", "text": "public static double[] standardize(double[] aa){\n double mean0 = Stat.mean(aa);\n double sd0 = Stat.standardDeviation(aa);\n int n = aa.length;\n double[] bb = new double[n];\n if(sd0==0.0){\n for(int i=0; i<n; i++){\n bb[i] = 1.0;\n }\n }\n else{\n for(int i=0; i<n; i++){\n bb[i] = (aa[i] - mean0)/sd0;\n }\n }\n return bb;\n }", "title": "" }, { "docid": "9edfc0dad93e761582656b0ad977ba75", "score": "0.5478585", "text": "public static float sdFast ( float[] data )\n {\n // sd is sqrt of sum of (values-mean) squared divided by n - 1\n // Calculate the mean\n float mean = 0;\n final int n = data.length;\n if ( n < 2 )\n {\n return Float.NaN;\n }\n for ( int i=0; i<n; i++ )\n {\n mean += data[i];\n }\n mean /= n;\n // calculate the sum of squares\n float sum = 0;\n for ( int i=0; i<n; i++ )\n {\n final float v = data[i] - mean;\n sum += v * v;\n }\n // Change to ( n - 1 ) to n if you have complete data instead of a sample.\n return (float) Math.sqrt( sum / ( n - 1 ) );\n }", "title": "" }, { "docid": "b79262333701f5e4ede4259c81a5d232", "score": "0.5467069", "text": "private static float[] random(int size, double min, double max){\n float[] v = new float[size];\n max = max-min;\n for (int i = 0; i < v.length; i++) {\n v[i] = (float)(min + max * Math.random());\n }\n Arrays.sort(v);\n return v;\n }", "title": "" }, { "docid": "524ebdb701ce5bed3d4a90c6ac4fb18a", "score": "0.5463734", "text": "public static double stddev(final double[] in, final int start, final int length) {\n return stddev(in, start, length, mean(in, start, length));\n }", "title": "" }, { "docid": "4559f816e1ea33b7742ce980ddf50954", "score": "0.5459336", "text": "public static double[] random(int dim, java.util.Random generator)\n {\n double result[] = new double[dim];\n random(result, generator);\n return result;\n }", "title": "" }, { "docid": "ef62ab33802a44598b604f510bc3e66e", "score": "0.5450509", "text": "Individual(Random rnd, double minVal, double maxVal, int length, double std){\n this(rnd,minVal,maxVal,length);\n\n // Initialize standard deviation per element\n for(int i = 0; i < length; i++) \n this.std[i] = std;\n }", "title": "" }, { "docid": "2d68cbfb094f3b6ea9e87b2c097b4249", "score": "0.5423806", "text": "public static double calculateStandardDeviation(){ \t\n resultadoStandardDeviation = Math.sqrt(calculateVariance());\n return resultadoStandardDeviation;\n \n }", "title": "" }, { "docid": "17e107e8540b19b55e1be86756c9c8d6", "score": "0.54202545", "text": "public static float[] createKernel(double sigma, int width, int height) {\r\n\t\tif (width % 2 == 0 || height % 2 == 0) {\r\n\t\t\tthrow new IllegalArgumentException(\"Width and height must be odd numbers\");\r\n\t\t}\r\n\t\t\r\n\t\tfloat[] result = new float[width * height];\r\n\t\tint xoffset = width / 2, yoffset = height / 2;\r\n\t\t\r\n\t\tdouble base = 1 / (2 * Math.PI * sigma * sigma);\r\n\t\tdouble sum = 0;\r\n\t\t\r\n\t\t// Calculate all the weights\r\n\t\tfor (int y = -yoffset, i = 0; y <= yoffset; y++) {\r\n\t\t\tfor (int x = -xoffset; x <= xoffset; x++) {\r\n\t\t\t\tdouble weight = base * Math.exp(-((x * x + y * y) / (2 * sigma * sigma)));\r\n\t\t\t\tsum += weight;\r\n\t\t\t\tresult[i++] = (float)weight;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t// Normalize all the weights so the sum is 1\r\n\t\tfor (int i = 0; i < result.length; i++) {\r\n\t\t\tresult[i] = (float)((double)result[i] * (1 / sum)); \r\n\t\t}\r\n\t\t\r\n\t\treturn result;\r\n\t}", "title": "" }, { "docid": "67eec8911f042f1c1b5f051dc202dad6", "score": "0.5412528", "text": "public double getStandardDeviation() {\n double mean = getMean();\n return Math.sqrt( squareSum/count - mean*mean );\n }", "title": "" }, { "docid": "e9c23bf4ad03263d844bef41eeb89601", "score": "0.5407898", "text": "public static double[] gammaRand(double mu, double beta, double gamma, int n, long seed){\n if(beta<=0.0D)throw new IllegalArgumentException(\"The scale parameter, \" + beta + \"must be greater than zero\");\n if(gamma<=0.0D)throw new IllegalArgumentException(\"The shape parameter, \" + gamma + \"must be greater than zero\");\n PsRandom psr = new PsRandom(seed);\n return psr.gammaArray(mu, beta, gamma, n);\n }", "title": "" }, { "docid": "596d3b4ba7824b803285b1578324d332", "score": "0.540382", "text": "public void testGetMean_Collection()\n {\n System.out.println(\"getMean\");\n Vector mean = VectorFactory.getDefault().createUniformRandom(\n DIM, -RANGE, RANGE, RANDOM );\n Matrix variance = MatrixFactory.getDefault().createIdentity(DIM, DIM).scale( RANDOM.nextDouble() * RANGE + 2.0 );\n MultivariateGaussian.PDF targetDistribution =\n new MultivariateGaussian.PDF( mean, variance );\n MultivariateMonteCarloIntegrator instance =\n new MultivariateMonteCarloIntegrator();\n\n int num = 100;\n ArrayList<Vector> means = new ArrayList<Vector>( num );\n ArrayList<Vector> variances = new ArrayList<Vector>( num );\n for( int n = 0; n < num; n++ )\n {\n MultivariateGaussian.PDF g =\n instance.getMean( targetDistribution.sample(RANDOM, NUM_SAMPLES) );\n means.add( g.getMean() );\n variances.add( g.getCovariance().convertToVector() );\n }\n\n MultivariateGaussian sampleMeanDistribution =\n MultivariateGaussian.MaximumLikelihoodEstimator.learn(means, 0.0);\n MultivariateGaussian sampleVarianceDistribution =\n MultivariateGaussian.MaximumLikelihoodEstimator.learn(variances, 0.0);\n\n Vector meanTarget = targetDistribution.getMean();\n double zsquared = sampleMeanDistribution.computeZSquared( meanTarget );\n double p = 1.0-ChiSquareDistribution.CDF.evaluate( zsquared, DIM );\n \n System.out.println( \"====== Mean ========\" );\n System.out.println( \"Target = \" + targetDistribution.getMean() );\n System.out.println( \"Sample = \" + sampleMeanDistribution.getMean() );\n System.out.println( \"Z-squared= \" + zsquared );\n System.out.println( \"P-value = \" + p );\n assertEquals( 1.0, p, 0.95 );\n\n Vector varianceTarget = targetDistribution.getCovariance().scale(1.0/NUM_SAMPLES).convertToVector();\n zsquared = sampleVarianceDistribution.computeZSquared(\n varianceTarget );\n p = 1.0-ChiSquareDistribution.CDF.evaluate( zsquared, DIM*DIM );\n System.out.println( \"====== Variance =======\" );\n System.out.println( \"Target = \" + varianceTarget );\n System.out.println( \"Sample = \" + sampleVarianceDistribution.getMean() );\n System.out.println( \"Z-squared= \" + zsquared );\n System.out.println( \"P-value = \" + p );\n assertEquals( 1.0, p, 0.95 );\n\n }", "title": "" }, { "docid": "e1419cac3e18e3bf260fadfaae4791e6", "score": "0.5401285", "text": "public static double normalProb(double mean, double sd, double upperlimit){\n if(upperlimit==Double.POSITIVE_INFINITY){\n return 1.0;\n }\n else{\n if(upperlimit==Double.NEGATIVE_INFINITY){\n return 0.0;\n }\n else{\n double arg = (upperlimit - mean)/(sd*Math.sqrt(2.0));\n return (1.0D + Stat.erf(arg))/2.0D;\n }\n }\n }", "title": "" }, { "docid": "783a42b61f0dae59474c89be1fe4bfc2", "score": "0.53917885", "text": "public double stddev() {\n if (exp == 1) {\n return Double.NaN;\n }\n return StdStats.stddev(percolatedArray);\n }", "title": "" }, { "docid": "9cb4164e2a2fe18f54530dec9f12f5b2", "score": "0.53573835", "text": "private static double GetStandardDeviation(ArrayList<Float> valueList) {\n double standardDeviation = 0;\n float mean = 0;\n mean = GetMean(valueList);\n for (double num : valueList) {\n standardDeviation += Math.pow(num - mean, 2);\n }\n\n return Math.sqrt(standardDeviation / valueList.size());\n\n }", "title": "" }, { "docid": "aa06ae5c809a89d30efe2a578e5a053c", "score": "0.53546876", "text": "public static double standardDeviation(int[] aa){\n return Math.sqrt(Stat.variance(aa));\n }", "title": "" }, { "docid": "2a4ce6f1ae66f2c54b3c3407ebe4ad2f", "score": "0.53533846", "text": "private double[] createRandomDoubleMass(int n){\n double[] mass = new double[n];\n Random random = new Random();\n for (int i = 0; i < n; i++) {\n mass[i] = random.nextDouble()*10 - 5;\n }\n return mass;\n }", "title": "" }, { "docid": "c520352a916ea16baa08545f396ff350", "score": "0.53400224", "text": "public static ArrayList<Double>scaleDataByStandardScore(ArrayList<Double> values, double mean,double sd){\n\t\tif(values.size() != 0){\n\t\t\t//Create a new array list so we do not alter the values of the list passed in\n\t\t\tArrayList<Double> standValues = new ArrayList<Double>();\n\t\t\t\n\t\t\tfor(double value : values)\n\t\t\t\tstandValues.add((value - mean) / sd);\t\t\n\t\t\t\n\t\t\treturn standValues;\n\t\t}else{\n\t\t\tSystem.out.println(\"ArrayList to scale is empty\");\n\t\t\treturn new ArrayList<Double>();\n\t\t}\n\t}", "title": "" }, { "docid": "88c45fd4a92aa967583c1b14909bd77c", "score": "0.5328587", "text": "public static double[] standardize(int[] aa){\n double mean0 = Stat.mean(aa);\n double sd0 = Stat.standardDeviation(aa);\n int n = aa.length;\n double[] bb = new double[n];\n if(sd0==0.0){\n for(int i=0; i<n; i++){\n bb[i] = 1.0;\n }\n }\n else{\n for(int i=0; i<n; i++){\n bb[i] = ((double)aa[i] - mean0)/sd0;\n }\n }\n return bb;\n }", "title": "" } ]
6f0ad882cf8f2ce72e58034fdcc826e0
/ when we want to show the BAMUL window for a specific Worker
[ { "docid": "de6dbc1df8a14608e76746ff2067815a", "score": "0.6752041", "text": "public void openBAMULWindow (Worker selected) {\n\t\tif (this.bamulWindow != null) {\n\t\t\tthis.mouseParsers.remove(this.bamulWindow.box);\n\t\t\tthis.mouseParsers.remove(this.bamulWindow.saveButton);\n\t\t\tthis.mouseParsers.remove(this.bamulWindow.closeButton);\n\t\t}\n\t\t\n\t\tthis.bamulWindow \t= new BAMULWindow(selected, new Vector2f [] { new Vector2f(300f, 200f), new Vector2f(300f, 280f) }, \"\");\n\t\tthis.mouseParsers.add(this.bamulWindow.box);\n\t\tthis.mouseParsers.add(this.bamulWindow.saveButton);\n\t\tthis.mouseParsers.add(this.bamulWindow.closeButton);\n\t\tthis.bamulWindow.saveButton.addMouseListener(this);\n\t\t//this.bamulWindow.setVisible(false);\n\t}", "title": "" } ]
[ { "docid": "27e84901db6c6ebed8decba1429a1b9a", "score": "0.61723375", "text": "@Override\n\tpublic void onClick(IGUIObject obj) {\n\t\tif (this.workerPanel != null && obj == this.workerPanel.bamulButton) {\n\t\t\tif (UnitSelector.currentlySelected != null && UnitSelector.currentlySelected instanceof Worker)\n\t\t\t\topenBAMULWindow ((Worker)UnitSelector.currentlySelected);\n\t\t}\n\t\telse if (this.workerPanel != null && obj == this.workerPanel.pauseButton) {\n\t\t\tif (UnitSelector.currentlySelected != null && UnitSelector.currentlySelected instanceof Worker) {\n\t\t\t\tLogger.log(Logger.LOG_CLIENT, \"CLIENT : GUIHolder : pauseButton clicked, stopping worker\");\n\t\t\t\tsynchronized (this.guiRequestQueue) {\n\t\t\t\t\tthis.guiRequestQueue.add(new GUIRequest(GUIRequest.GUI_STOP_WORKER, \"\", ((Worker)UnitSelector.currentlySelected).id));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telse if (this.bamulWindow != null && obj == this.bamulWindow.saveButton) {\n\t\t\tif (UnitSelector.currentlySelected != null && UnitSelector.currentlySelected instanceof Worker) {\n\t\t\t\tLogger.log(Logger.LOG_CLIENT, \"CLIENT : GUIHolder : bamulWindow button clicked, validating '\"+this.bamulWindow.getBAMULString()+\"'\");\n\t\t\t\tsynchronized (this.guiRequestQueue) {\n\t\t\t\t\t//this.guiRequestQueue.add(new GUIRequest(GUIRequest.GUI_UPDATE_BAMUL, this.bamulWindow.getBAMULString(), ((Worker)UnitSelector.currentlySelected).id));\t\n\t\t\t\t\tthis.guiRequestQueue.add(new GUIRequest(GUIRequest.GUI_VALIDATE_BAMUL, this.bamulWindow.getBAMULString(), ((Worker)UnitSelector.currentlySelected).id));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telse if (this.msgBox != null && obj == this.msgBox.closeButton) {\n\t\t\tLogger.log(Logger.LOG_CLIENT, \"CLIENT : GUIHolder : closing MessageBox\");\n\t\t\tthis.msgBox = null;\n\t\t}\n\t\telse if (this.settingsWindow != null && this.settingsWindow.saveButton == obj) {\n\t\t\tLogger.log(Logger.LOG_CLIENT, \"CLIENT : GUIHolder : generating planet\");\n\t\t\tsynchronized (this.guiRequestQueue) {\n\t\t\t\tthis.guiRequestQueue.add(new GUIRequest(GUIRequest.GUI_GENERATE_SPHERE, \"/g \"+this.settingsWindow.frequencyBox.getText()+\" \"+this.settingsWindow.amplitudeBox.getText()+\" \"+this.settingsWindow.octavesBox.getText()+\" \"+this.settingsWindow.persistanceBox.getText(), 0));\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "2febd6d61ea6416ef82f5afc9f2b2f2c", "score": "0.59784406", "text": "@Override\n\t\t\t\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\t\t\t\tbuilder.show();\n\t\t\t\t\t\t\t\t\t}", "title": "" }, { "docid": "a1778f5e014fb7f38b8480a14221ade8", "score": "0.5894635", "text": "public void startWorker() {\n\t\tif (!worker.isAlive()) {\n\t\t\tworker = new JDasherThread2(getHolder(), getContext(),\n\t\t\t\t\tnew Handler() {\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic void handleMessage(Message m) {\n\n\t\t\t\t\t\t\t// mStatusText.setVisibility(m.getData().getInt(\"viz\"));\n\t\t\t\t\t\t\t// mStatusText.setText(m.getData().getString(\"text\"));\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\n\t\t\tworker.setRunning(true);\n\t\t\tworker.start();\n\t\t}\n\t}", "title": "" }, { "docid": "9a3193f8ce8e14a80f299d77b25a7913", "score": "0.58914953", "text": "private void showGUI( ) {\n WindowShower.show( frame );\n }", "title": "" }, { "docid": "f6de524aefaa1c4cce16d12deb236854", "score": "0.5853451", "text": "public void setWaitingPerformingWindow(final String status)\n\t{\n\t\tJPanel tmpJPanel = new WaitingPerforming(blockingQueue, status);\n\t\tsetNewPanel(tmpJPanel, status);\n\t}", "title": "" }, { "docid": "64e7ba502087c3f1509294b057d42286", "score": "0.58480877", "text": "public void run()\n\t {\n\t \t new BackEndWindow(BackEndWindow.BACKEND_IP, BackEndWindow.BACKEND_PASSWORD).setVisible(true); \n\t }", "title": "" }, { "docid": "10b95d23210a21b4822e2ae86ca37013", "score": "0.5788332", "text": "@Override\n public void windowIconified(WindowEvent we) {\n }", "title": "" }, { "docid": "298e66670994d5783159296d0100aa1b", "score": "0.5749342", "text": "public void showReportsWindows() \r\n\t{\r\n\r\n\t\tchangeFrame(gui,this);\t\r\n\t\tnew showReportsActions(client,msg,nid,lr,this.nName);\r\n\t\t\r\n\t}", "title": "" }, { "docid": "7fcbfa679d7d67d819073d57dc684bfa", "score": "0.5721951", "text": "public void showWindowAndRunExperiment() {\n Stage stage = new Stage();\n stage.setScene(new Scene(this.root));\n stage.initModality(Modality.APPLICATION_MODAL);\n stage.setTitle(\"Status of execution\");\n stage.setOnCloseRequest((e) -> onCloseButtonClick());\n\n LOGGER.info(\"Show IndicatorRunningWindow.\");\n stage.show();\n this.window = stage;\n\n LOGGER.debug(\"Creating new thread to run the experiment.\");\n Thread t = new Thread(task,\"Indicator Execution Thread\");\n t.setDaemon(true);\n t.start();\n }", "title": "" }, { "docid": "e361cb92ac095102421a0f407ae54983", "score": "0.5693159", "text": "public void handleWorkersButton(ActionEvent actionEvent) {\n SceneController sceneController = SceneController.getInstance();\n sceneController.activate(\"admin/workerEdit\");\n }", "title": "" }, { "docid": "badb0b8e0a5831fa6bec611b8e8a02e4", "score": "0.5664656", "text": "public void setWorker(String worker) {\r\n this.worker = worker;\r\n }", "title": "" }, { "docid": "8501e5f6cfe311cb71779e2d05948e49", "score": "0.56292784", "text": "public void showWSWaiting();", "title": "" }, { "docid": "d46ecd943c2ef71a5fda832cfac39176", "score": "0.5613347", "text": "void addSwingWorker(com.github.xsavikx.androidscreencast.ui.worker.SwingWorker<MutableTreeNode[], ?> worker) {\n workers.add(worker);\n }", "title": "" }, { "docid": "80884fa6ddd106849406343320debb84", "score": "0.55886585", "text": "@Override\n\t\t\tpublic void run() {\n\t\t\t\tmain.getWindow().show();\n\t\t\t}", "title": "" }, { "docid": "e8f33321097d1c5c85a944bdc315692f", "score": "0.5576209", "text": "public void bindToWorker(final Worker<String> worker) {\n titleProperty().bind(worker.titleProperty());\n\n fileScanningStatus.textProperty().bind(\n new When(worker.totalWorkProperty().isEqualTo(-1))\n .then(\"Checking data . . .\").otherwise(\n new When(worker.workDoneProperty().isEqualTo(worker.totalWorkProperty()))\n .then(\"Done\").otherwise(worker.valueProperty().asString()))\n );\n\n progressBar.progressProperty().bind(worker.progressProperty());\n progressPercent.textProperty().bind(\n new When(worker.progressProperty().isEqualTo(-1))\n .then(\"0.0%\")\n .otherwise(worker.progressProperty().multiply(100.0).asString(\"%.2f%%\")));\n\n confirmButton.disableProperty().bind(worker.runningProperty());\n cancelButton.disableProperty().bind(worker.runningProperty().not());\n }", "title": "" }, { "docid": "2ac350629dad262bf68a7ea4aa93ec81", "score": "0.5564864", "text": "public void run() {\n UIManager.put(\"swing.boldMetal\", Boolean.FALSE); \r\n createAndShowGUI();\r\n }", "title": "" }, { "docid": "c839bec90d3807cf116471361eb6fbbf", "score": "0.5539592", "text": "public void run() {\n\t\tJFrame window = JStuff.createWindow(title);\n\t\twindow.add(MapWrapper.contentPane);\n\t\twindow.setVisible(true);\n\t}", "title": "" }, { "docid": "23cbda8de0928e216b919aef464c5e13", "score": "0.5518018", "text": "public DisplayWindow(String title1) \n {\n title = title1;\n \tbUseNotebook = false;\n hashMap = new HashMap<Component,Boolean>();\n //Create and set up the window.\n frame = new JFrame(title);\n JComponent newContentPane = createUI();\n newContentPane.setOpaque(true); //content panes must be opaque\n frame.setContentPane(newContentPane);\n frame.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);\n frame.setJMenuBar(createMenuBar());\n frame.pack();\n gui.registerWindow(this);\n }", "title": "" }, { "docid": "432ac65490255770935af568671ce1bf", "score": "0.5517783", "text": "@Override\n public void run() {\n UIManager.put(\"swing.boldMetal\", Boolean.FALSE);\n createAndShowGUI();\n }", "title": "" }, { "docid": "bb1d9e398fba2f4e69b2abbf7f73995c", "score": "0.54978186", "text": "@Override\n\t\t\tpublic void windowIconified(WindowEvent arg0) {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "bb1d9e398fba2f4e69b2abbf7f73995c", "score": "0.54978186", "text": "@Override\n\t\t\tpublic void windowIconified(WindowEvent arg0) {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "bb1d9e398fba2f4e69b2abbf7f73995c", "score": "0.54978186", "text": "@Override\n\t\t\tpublic void windowIconified(WindowEvent arg0) {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "9811c458e33f31646d0f8356bdabfa32", "score": "0.54867375", "text": "public void actionPerformed(ActionEvent e) {\n RealTimeMonitor.showJobsFrame(site, \"rb\", ((JButton) e.getSource()).getToolTipText());\n }", "title": "" }, { "docid": "9811c458e33f31646d0f8356bdabfa32", "score": "0.54867375", "text": "public void actionPerformed(ActionEvent e) {\n RealTimeMonitor.showJobsFrame(site, \"rb\", ((JButton) e.getSource()).getToolTipText());\n }", "title": "" }, { "docid": "ce9ab9e13a9c6ac316e578974e96c148", "score": "0.54830796", "text": "public void run() {\n UIManager.put(\"swing.boldMetal\", Boolean.FALSE); \n createAndShowGUI();\n }", "title": "" }, { "docid": "c1a58137ae53cf489f8cc22c689a4696", "score": "0.5476338", "text": "@Override\n\tpublic void run() {\n\t\tsuper.run();\n\t\tobject.show();\n\t}", "title": "" }, { "docid": "c1a58137ae53cf489f8cc22c689a4696", "score": "0.5476338", "text": "@Override\n\tpublic void run() {\n\t\tsuper.run();\n\t\tobject.show();\n\t}", "title": "" }, { "docid": "7a705b4acfbc42f740c2a94c6c451f8f", "score": "0.5476225", "text": "public void run() {\n\t UIManager.put(\"swing.boldMetal\", Boolean.FALSE);\n\t\tcreateAndShowGUI();\n }", "title": "" }, { "docid": "d0de17714c25c1af2dd806b2ec95a8eb", "score": "0.54664826", "text": "public void run() {\n UIManager.put(\"swing.boldMetal\", Boolean.FALSE);\r\n createAndShowGUI();\r\n }", "title": "" }, { "docid": "17cc9143697d35605e11ba84c16ce20d", "score": "0.5456793", "text": "void doGetHelp()\n {\n assert (SwingUtilities.isEventDispatchThread()) : \"not in UI thread\";\n\n HelpWindow win = HelpWindow.getSoleHelpWindow(this);\n win.setVisible(true);\n }", "title": "" }, { "docid": "ab9cb74e2828390d4a4486401bbd7cc9", "score": "0.5448231", "text": "@FxThread\n default void notifyShowed() {\n }", "title": "" }, { "docid": "5da2542ec267aed9bca79098c333a6aa", "score": "0.54467475", "text": "protected void showNotify() {\r\n thread = new Thread(this);\r\n thread.start();\r\n }", "title": "" }, { "docid": "eedf272e9b8ff32babb96382dd6e39c9", "score": "0.5443179", "text": "@Override\n public void run() {\n Ocupacional1 main = new Ocupacional1();\n main.setExtendedState(MAXIMIZED_BOTH);\n main.setVisible(true);\n }", "title": "" }, { "docid": "408ecbcc11771e10e5d3eedfddbb0a50", "score": "0.5440183", "text": "public static void showLoggedInScreenWorker() throws IOException{\r\n\t\tFXMLLoader loader = new FXMLLoader(); \r\n\t\tloader.setLocation(Main.class.getResource(\"/GUI/LoggedInScreenWorker.fxml\"));\r\n\t\tmainLayout = loader.load();\r\n\t\tprimaryStage.setScene(new Scene(mainLayout));\r\n\t\tprimaryStage.show();\r\n\t}", "title": "" }, { "docid": "488cf1c57bfe5b2e275762c22434ebfe", "score": "0.54380596", "text": "@Override\n\t\t\tpublic void windowIconified(WindowEvent e) {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "488cf1c57bfe5b2e275762c22434ebfe", "score": "0.54380596", "text": "@Override\n\t\t\tpublic void windowIconified(WindowEvent e) {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "0431b15316d78c00b7f7c6ea6f6a239a", "score": "0.541908", "text": "public void run() {\r\n\t\tsetVisible(true);\r\n\t}", "title": "" }, { "docid": "7732c144a2fcbddbeee281cd0239db2c", "score": "0.541903", "text": "public void windowIconified(WindowEvent e) {\n\n }", "title": "" }, { "docid": "112acf06e42e667962efe93bdd3bdabe", "score": "0.541843", "text": "public DownloaderWindow() {\n setTitle(\"Downloading addon information...\");\n setLayout(new MigLayout(\"fill\"));\n add(jpb, \"grow\");\n pack();\n setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE);\n setLocationRelativeTo((Component) Main.getUI().getMainWindow());\n setIconImage(Main.getUI().getMainWindow().getIcon().getImage());\n setVisible(true);\n \n new Thread(this, \"Addon downloader thread\").start();\n }", "title": "" }, { "docid": "1e86b5ff17a03321d65786046f6131e6", "score": "0.5415184", "text": "public void run(RegularUserAccountMenuController atc, GUIDemo guiDemo, SystemMessage sm){\n JFrame frame = new JFrame(\"ChangeYourHomeCityWindow\");\n frame.setContentPane(new ChangeYourHCWindow(atc, guiDemo, sm).rootPanel);\n frame.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);\n frame.pack();\n frame.setVisible(true);\n frame.setLocationRelativeTo(null);\n }", "title": "" }, { "docid": "6c91e17f206feadb115f6ae99f5347dd", "score": "0.54109", "text": "@Override\n public void windowIconified(WindowEvent arg0) {\n \n }", "title": "" }, { "docid": "372b27409e9eb20712c37848d02ce275", "score": "0.53988034", "text": "public void setInputWindow()\n\t{\n\t\tJPanel tmpJPanel = new InputURL(blockingQueue);\n\t\tsetNewPanel(tmpJPanel, \"Start\");\n\t}", "title": "" }, { "docid": "d9756ae0bdf168354f8e2a45cfbe8df4", "score": "0.5396109", "text": "public void windowOpened( WindowEvent weSource )\r\n\t{\r\n\t\ttry\r\n\t\t{\r\n\t\t\tboolean blnResult = false;\r\n\t\t\t\r\n\t\t\t// We are busy\r\n\t\t\tCUtilities.SetBusyCursor( this, true );\r\n\t\t\t\r\n\t\t\t//Load the team list\r\n\t\t\tblnResult = CDatabaseUtilities.LoadComboBoxFromDatabase( \"VActiveTeams\", \"intTeamID\", \"strTeam\", m_cmbTeam);\r\n\t\t\t\r\n\t\t\t//Did it work\r\n\t\t\tif( blnResult == false )\r\n\t\t\t{\r\n\t\t\t\t//no, warn the user...\r\n\t\t\t\tCMessageBox.Show( this, \"Database connection error.\\n\" + \r\n\t\t\t\t\t\t\t\t \"The Form will close.\\n\", \r\n\t\t\t\t\t\t\t\t getTitle( ) + \" Error\", enuIconType.Error );\r\n\t\t\t\t\r\n\t\t\t\t//and Close the form/Application\r\n\t\t\t\tthis.dispose( );\r\n\t\t\t}\r\n\t\t}\r\n\t\tcatch( Exception excError )\r\n\t\t{\r\n\t\t\t//Display Error Message\r\n\t\t\tCUtilities.WriteLog( excError );\r\n\t\t}\r\n\t\tfinally\r\n\t\t{\r\n\t\t\t//we are not busy\r\n\t\t\tCUtilities.SetBusyCursor( this, false );\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "5ea21410a59904f208e90f407aac7f3a", "score": "0.53934723", "text": "public void run() {\n \n createAndShowGUI();\n }", "title": "" }, { "docid": "dd82f14bda732746c23d0cf6d8c1c309", "score": "0.5392628", "text": "@Override\n\t\t\t\t\tpublic void windowIconified(WindowEvent e) {\n\t\t\t\t\t\t\n\t\t\t\t\t}", "title": "" }, { "docid": "501d8fb34685ccec8857e6b35b9c1bdc", "score": "0.5392005", "text": "private void show() {\n\t\t\n\t}", "title": "" }, { "docid": "0b005a732c749f93d95c4fe843c65ad9", "score": "0.53867203", "text": "@Override\r\n\tpublic void show() {\n\t\t\r\n\t}", "title": "" }, { "docid": "49f91c4a0321ea030765c80df0497b96", "score": "0.53851026", "text": "@Override\n\tpublic void show()\n\t{\n\n\t}", "title": "" }, { "docid": "827baf7f5ea928465066ba6ab02fe649", "score": "0.5384223", "text": "@Override\r\n\tpublic void show()\r\n\t{\n\r\n\t}", "title": "" }, { "docid": "00665363b9d91602c0e01f86ca9a8df1", "score": "0.5382865", "text": "@JavascriptInterface\n public void onClick_select_worker(int id){\n Global.getInstance().setSelectedWorker(id);\n\n sendMSG(\"6\");\n\n\n }", "title": "" }, { "docid": "59065b08afe1e8202df6f710b09090e3", "score": "0.53811914", "text": "public LiaisonAdminToolMainGUI(LiaisonAdminToolController app) {\n theApplication = app;\n alpDisplay = theApplication.alpDisplayServer;\n extDisplay = theApplication.extDisplayServer;\n initComponents ();\n pack ();\n }", "title": "" }, { "docid": "11abb0ec672c873a6cb12a10044fa129", "score": "0.5380579", "text": "@Override\r\n\t\t\t\t\tpublic void windowIconified(WindowEvent arg0) {\n\t\t\t\t\t\t\r\n\t\t\t\t\t}", "title": "" }, { "docid": "915c51d3d5fb7100d99cf4f123fde744", "score": "0.5379632", "text": "@Override\n\t\tpublic void windowIconified(WindowEvent arg0) {\n\t\t\t\n\t\t}", "title": "" }, { "docid": "07f077db5f367c8a71c4577360f43d64", "score": "0.5374898", "text": "@Override\n public void windowIconified(WindowEvent e) {\n\n }", "title": "" }, { "docid": "a9b41885692d136ab8f020ef27a6ed62", "score": "0.5373817", "text": "@Override\npublic void windowIconified(WindowEvent e) {\n\t\n}", "title": "" }, { "docid": "136a61f35075abc67ae00e7f89a66570", "score": "0.5368596", "text": "@Override\r\n\tpublic void windowIconified(WindowEvent arg0) {\n\r\n\t}", "title": "" }, { "docid": "cb7f3677533d5b176193eb75ee835a1c", "score": "0.5368078", "text": "@Override\n public void windowIconified(WindowEvent e) {\n }", "title": "" }, { "docid": "cb7f3677533d5b176193eb75ee835a1c", "score": "0.5368078", "text": "@Override\n public void windowIconified(WindowEvent e) {\n }", "title": "" }, { "docid": "0d86d7599589e5d35ff80db117827e18", "score": "0.5367649", "text": "@Override\r\n\t\t\tpublic void windowIconified(WindowEvent arg0) {\n\t\t\t\t\r\n\t\t\t}", "title": "" }, { "docid": "ab5655498842e5955e8373724b02e46d", "score": "0.5367349", "text": "public void windowIconified(WindowEvent e) {\n }", "title": "" }, { "docid": "9132abbf2a245d942902e82c5663029c", "score": "0.5364807", "text": "@Override\r\n\tpublic void windowIconified(WindowEvent e) {\n\r\n\t}", "title": "" }, { "docid": "1ab51b94efb4cd360b74ab96460b3e0d", "score": "0.5360283", "text": "@Override\r\n\tpublic void windowIconified(WindowEvent arg0) {\n\t\t\r\n\t}", "title": "" }, { "docid": "1ab51b94efb4cd360b74ab96460b3e0d", "score": "0.5360283", "text": "@Override\r\n\tpublic void windowIconified(WindowEvent arg0) {\n\t\t\r\n\t}", "title": "" }, { "docid": "1ab51b94efb4cd360b74ab96460b3e0d", "score": "0.5360283", "text": "@Override\r\n\tpublic void windowIconified(WindowEvent arg0) {\n\t\t\r\n\t}", "title": "" }, { "docid": "1ab51b94efb4cd360b74ab96460b3e0d", "score": "0.5360283", "text": "@Override\r\n\tpublic void windowIconified(WindowEvent arg0) {\n\t\t\r\n\t}", "title": "" }, { "docid": "74a41bda0022b8f920493fc4d960b2de", "score": "0.5359001", "text": "@Override\r\n public void windowIconified(WindowEvent arg0)\r\n {\n\r\n }", "title": "" }, { "docid": "c0a6968bd1ebc9e73fa4d700cda1bbb8", "score": "0.53574103", "text": "@Override\r\n\t\t\t\t\t\tpublic void windowIconified(WindowEvent e) {\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t}", "title": "" }, { "docid": "257b1c6edc3ed74cf1fa584c031ed2f0", "score": "0.5356521", "text": "private void goToShowMsg(ShowMessageFromWX.Req showReq) {\n }", "title": "" }, { "docid": "285af4383f904ebb02f22582e3b9b7f7", "score": "0.5354998", "text": "public static void main(String[] args) {\n StartManager startManager = new StartManager();\n\n\n\n/*\n SwingUtilities.invokeLater(new Runnable() {\n @Override\n public void run() {\n int worldX = world.getMapSize().getX();\n int worldY = world.getMapSize().getY();\n new ViewManager(appTitle, worldY , worldX, world, human);\n }\n });*/\n }", "title": "" }, { "docid": "bc7b3d5a372eec846c6760372be99813", "score": "0.5353821", "text": "@Override\n\tpublic void show() {\n\t\t\n\t}", "title": "" }, { "docid": "bc7b3d5a372eec846c6760372be99813", "score": "0.5353821", "text": "@Override\n\tpublic void show() {\n\t\t\n\t}", "title": "" }, { "docid": "bc7b3d5a372eec846c6760372be99813", "score": "0.5353821", "text": "@Override\n\tpublic void show() {\n\t\t\n\t}", "title": "" }, { "docid": "bc7b3d5a372eec846c6760372be99813", "score": "0.5353821", "text": "@Override\n\tpublic void show() {\n\t\t\n\t}", "title": "" }, { "docid": "bc7b3d5a372eec846c6760372be99813", "score": "0.5353821", "text": "@Override\n\tpublic void show() {\n\t\t\n\t}", "title": "" }, { "docid": "bc7b3d5a372eec846c6760372be99813", "score": "0.5353821", "text": "@Override\n\tpublic void show() {\n\t\t\n\t}", "title": "" }, { "docid": "bc7b3d5a372eec846c6760372be99813", "score": "0.5353821", "text": "@Override\n\tpublic void show() {\n\t\t\n\t}", "title": "" }, { "docid": "bc7b3d5a372eec846c6760372be99813", "score": "0.5353821", "text": "@Override\n\tpublic void show() {\n\t\t\n\t}", "title": "" }, { "docid": "bc7b3d5a372eec846c6760372be99813", "score": "0.5353821", "text": "@Override\n\tpublic void show() {\n\t\t\n\t}", "title": "" }, { "docid": "bc7b3d5a372eec846c6760372be99813", "score": "0.5353821", "text": "@Override\n\tpublic void show() {\n\t\t\n\t}", "title": "" }, { "docid": "bc7b3d5a372eec846c6760372be99813", "score": "0.5353821", "text": "@Override\n\tpublic void show() {\n\t\t\n\t}", "title": "" }, { "docid": "bc7b3d5a372eec846c6760372be99813", "score": "0.5353821", "text": "@Override\n\tpublic void show() {\n\t\t\n\t}", "title": "" }, { "docid": "bc7b3d5a372eec846c6760372be99813", "score": "0.5353821", "text": "@Override\n\tpublic void show() {\n\t\t\n\t}", "title": "" }, { "docid": "bc7b3d5a372eec846c6760372be99813", "score": "0.5353821", "text": "@Override\n\tpublic void show() {\n\t\t\n\t}", "title": "" }, { "docid": "bc7b3d5a372eec846c6760372be99813", "score": "0.5353821", "text": "@Override\n\tpublic void show() {\n\t\t\n\t}", "title": "" }, { "docid": "bc7b3d5a372eec846c6760372be99813", "score": "0.5353821", "text": "@Override\n\tpublic void show() {\n\t\t\n\t}", "title": "" }, { "docid": "cf2e62a9e450985a74add7929fa2bd88", "score": "0.53454787", "text": "@ThreadConfined(type = ThreadConfined.ThreadType.AWT)\n synchronized private void showWindow() {\n if (topComponent == null) {\n topComponent = new TimeLineTopComponent(this);\n }\n if (topComponent.isOpened() == false) {\n topComponent.open();\n }\n topComponent.toFront();\n /*\n * Make this top component active so its ExplorerManager's lookup gets\n * proxied in Utilities.actionsGlobalContext()\n */\n topComponent.requestActive();\n }", "title": "" }, { "docid": "51629e42907a27858184734a279c07f7", "score": "0.534304", "text": "@Override\r\n public void show() {\r\n final String WAITING_MESSAGE = \"A player is placing his worker, please waiting\";\r\n\r\n CLIPrintFunction.printRepeatString(ANSIStyle.RESET, \"\\n\", 2);\r\n try {\r\n ViewBoard.getBoard().toCLI();\r\n\r\n System.out.println();\r\n CLIPrintFunction.printRepeatString(ANSIStyle.RESET, \" \", CLIPrintFunction.STARTING_SPACE);\r\n System.out.println(WAITING_MESSAGE);\r\n System.out.println();\r\n\r\n }catch(NullPointerException e){\r\n // do anything and exit from state if there isn't the board\r\n }\r\n\r\n }", "title": "" }, { "docid": "f14ecfe006f532f2c76eb6a163b04598", "score": "0.5342844", "text": "@Override\n\t\tpublic void windowIconified(WindowEvent e) {\n\t\t\t\n\t\t}", "title": "" }, { "docid": "a9f723ba78d0d652c3b0857f27c53147", "score": "0.53417987", "text": "public LogBrokerMonitorWindowAdaptor(LogBrokerMonitor monitor)\n/* */ {\n/* 1603 */ this._monitor = monitor;\n/* */ }", "title": "" }, { "docid": "bd52d092044eb22730fb87facd8ff84f", "score": "0.5341186", "text": "@Override\r\n\tpublic void windowIconified(WindowEvent e) {\n\t\t\r\n\t}", "title": "" }, { "docid": "bd52d092044eb22730fb87facd8ff84f", "score": "0.5341186", "text": "@Override\r\n\tpublic void windowIconified(WindowEvent e) {\n\t\t\r\n\t}", "title": "" }, { "docid": "bd52d092044eb22730fb87facd8ff84f", "score": "0.5341186", "text": "@Override\r\n\tpublic void windowIconified(WindowEvent e) {\n\t\t\r\n\t}", "title": "" }, { "docid": "bd52d092044eb22730fb87facd8ff84f", "score": "0.5341186", "text": "@Override\r\n\tpublic void windowIconified(WindowEvent e) {\n\t\t\r\n\t}", "title": "" }, { "docid": "bd52d092044eb22730fb87facd8ff84f", "score": "0.5341186", "text": "@Override\r\n\tpublic void windowIconified(WindowEvent e) {\n\t\t\r\n\t}", "title": "" }, { "docid": "3e201cb56ffff0669440ae2f38df1503", "score": "0.53395414", "text": "public static void main(String[] args) {\n BeerFetcher bf = new BeerFetcher();\n MainFrame mf = new MainFrame(bf);\n javax.swing.SwingUtilities.invokeLater(new Runnable() {\n public void run() { \n mf.show();\n }\n });\n }", "title": "" }, { "docid": "f1ec08e2a0972a25a74057c558261bdb", "score": "0.53394145", "text": "@Override\n\tpublic void show() {\n\t}", "title": "" }, { "docid": "a043980d282476b43f47accef4a0044a", "score": "0.5335356", "text": "@Override\n\tpublic void show() {\n\t\t\n\t\t\n\n\t}", "title": "" }, { "docid": "fe9005acc3d37f7304aeecf1f2abd16b", "score": "0.5335184", "text": "public void showSearchFrame() {\n \tfinal record r = this;\n \tjava.awt.EventQueue.invokeLater(new Runnable() {\n public void run() {\n new TimelineSearchFrame(r).setVisible(true);\n }\n });\n }", "title": "" }, { "docid": "ea04ce776d3b3ce90d689def1180c520", "score": "0.5332421", "text": "public void setupWithManager(DisplayTaskManager manager) { }", "title": "" }, { "docid": "8a0639e3d0c4e757de0fb6706512f431", "score": "0.53311634", "text": "@Override\r\n\t\t\t\t\tpublic void windowIconified(WindowEvent e) {\n\t\t\t\t\t\t\r\n\t\t\t\t\t}", "title": "" } ]
4ebff1ef95575ebe769f4cd88d36ad72
This method will launch both firefox and chrome according to the testcase and maximize the browser and set the wait for 30 seconds and load the url
[ { "docid": "d13635d90599f1545101128f8bd68d89", "score": "0.0", "text": "public void invokeApp(String browser){\n\t\t\n\t\ttry {\n\t\t\tif(browser.equalsIgnoreCase(\"firefox\")){\n\t\t\t\tdriver = new FirefoxDriver();\n\t\t\t} else if (browser.equalsIgnoreCase(\"chrome\")) {\n\t\t\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"./driver/chromedriver\");\n\t\t\t\tdriver = new ChromeDriver();\n\t\t\t}\n\t\t\t\n\t\t\tdriver.get(url);\n\t\t\tdriver.manage().window().maximize();\n\t\t\tdriver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS);\n\t\t\t\n\t\t\tReporter.reportStep(\"The Application launched in \" + browser + \" successfully\", \"PASS\");\n\t\t\t\n\t\t} catch (WebDriverException e){\n\t\t\tSystem.out.println(\"WebDriver Exception\"+e.getMessage());\n\t\t}\n\t\t\n\t}", "title": "" } ]
[ { "docid": "22aa981aeaa0a8489028c308b334cd0b", "score": "0.70272577", "text": "public static void main(String[] args) throws InterruptedException {\n\t\tSystem.out.println(\"Launch the Chrome\");\r\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"F:\\\\EclipseWorkSpace2018\\\\Selenium\\\\chromedriver_win32\\\\chromedriver.exe\");\r\n\t\tWebDriver driver = new ChromeDriver();\r\n\t Thread.sleep(3000);\r\n\t\t//open URL\r\n\t\tdriver.get(\"https://google.com/\");\r\n\t\tString baseURl=driver.getCurrentUrl();\r\n\t\tSystem.out.println(baseURl);\r\n\t\tThread.sleep(5000);\r\n\t\t//navigate().to(\"URL)\r\n\t\t/*Alternative for get method to move step forward */\r\n\t\r\n\t\tdriver.navigate().to(\"https://www.seleniumhq.org/\");\r\n\t\tString secondURL = driver.getCurrentUrl();\r\n\t\tSystem.out.println(secondURL);\r\n\t\tThread.sleep(5000);\r\n\t\t//Navigate to baseURL\r\n\t\tdriver.navigate().back();\r\n\t\tThread.sleep(5000);\r\n\t\tString thirdURL = driver.getCurrentUrl();\r\n\t\tSystem.out.println(thirdURL);\r\n\t\tThread.sleep(5000);\r\n\t\t//Navigate to forward\r\n\t\tdriver.navigate().forward();\r\n\t\tString fourthURL = driver.getCurrentUrl();\r\n\t\tSystem.out.println(fourthURL);\r\n\t\tThread.sleep(5000);\r\n\t\t//Navigate referesh\r\n\t\tdriver.navigate().refresh();\r\n\t\tString fivthURL = driver.getCurrentUrl();\r\n\t\tSystem.out.println(fivthURL);\r\n\t\tThread.sleep(5000);\r\n\t\t\r\n\t\t//Systax\r\n\t\t/*object.manage().window().maximize()*/\r\n\t\tdriver.manage().window().maximize();\r\n\t\t\r\n\t\tThread.sleep(5000);\r\n\t\t//close the browser\r\n\t\tdriver.close();\r\n\t\t\r\n\r\n\t}", "title": "" }, { "docid": "e984f74bc797423ff090e8fd3624d010", "score": "0.69816804", "text": "@BeforeTest\n\t\tpublic void launchBrowser() throws InterruptedException {\n\t\t//\tPropertyConfigurator.configure(\"log4j.properties\");\n\t\t//\tlog.info(\"************ Launching Chrome Browser ************\");\n\t\t\tKeywords.openBrowser(\"Chrome\");\n\t\t//\tlog.info(\"*********** Opening application URL ************\");\n\t\t\tKeywords.launchUrl(\"http://www.toolsqa.com\");\n\t\t\tKeywords.maximizeBrowser();\n\t\t//\tConstants.driver.manage().timeouts().implicitlyWait(2000, TimeUnit.MILLISECONDS);\n\t\t\tConstants.driver.findElement(By.xpath(\"//a[@id='cookie_action_close_header']\")).click();\n\t\t\tThread.sleep(25000);\n//\t\t\tConstants.driver.findElement(By.xpath(\"//div[@class='cp-animate-container smile-animated smile-fadeInDownBig']//div//img\")).click();\n//\n\t\t\ttry{\n\t\t\t\tConstants.driver.findElement(By.xpath(\"//div[@class='cp-modal cp-modal-window-size']\"\n\t\t\t\t\t\t+ \"//div[@class='cp-animate-container smile-animated smile-fadeInDownBig']\"\n\t\t\t\t\t\t+ \"//div[@class='cp-overlay-close cp-image-close cp-inside-close cp-adjacent-right']\"\n\t\t\t\t\t\t+ \"//img[@src='https://www.toolsqa.com/wp-content/plugins/convertplug/modules/assets/images/rounded_black.png']\")).click();\n\t\t\t}catch(NoSuchElementException e) {\n\t\t\t\tSystem.out.println(\"PopUp not found\");\n\t\t\t}\n\t\t\t\n\t\t}", "title": "" }, { "docid": "68e6c7381eec065b1ca592ffe32e1157", "score": "0.6964091", "text": "@BeforeTest\r\n\tstatic void openBrowser() throws InterruptedException, IOException {\n properties abc = new properties(System.getProperty(\"user.dir\")+\"\\\\properties\");\r\n browser=abc.getProperty(\"Browser\");\r\n System.out.println(browser);\r\n url=abc.getProperty(\"Url\");\r\n System.out.println(url);\r\n \r\n \r\n \r\n\t\tif(browser.equalsIgnoreCase(\"chrome\")) {\r\n\t\tWebDriverManager.chromedriver().setup();\r\n\t\tdriver = new ChromeDriver();\r\n\t\tdriver.get(url);\r\n\t\tdriver.manage().window().maximize();\r\n\t\tdriver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);\r\n\t\t}\r\n\t\telse if (browser.equalsIgnoreCase(\"firefox\")) {\r\n\t\t//Thread.sleep(2000);\r\n\t\t\r\n\t\tWebDriverManager.firefoxdriver().setup();\r\n\t\tdriver = new FirefoxDriver();\r\n\t\tdriver.get(url);\r\n\t\tdriver.manage().window().maximize();\r\n\t\tdriver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);\r\n\t\t}\r\n\t\telse if(browser.equalsIgnoreCase(\"edge\")) {\r\n\t\tWebDriverManager.edgedriver().setup();\r\n\t\tdriver= new EdgeDriver();\r\n\t\tdriver.get(url);\r\n\t\tdriver.manage().window().maximize();\r\n\t\tdriver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);\r\n\t\t}\r\n\r\n\t\r\n\t}", "title": "" }, { "docid": "3ba2f02449fb0d551d34a971823ea2f9", "score": "0.67781556", "text": "public void openbrowser() throws MalformedURLException\n {\n WebDriverManager.chromedriver().setup();\n driver = new ChromeDriver();\n\n /* DesiredCapabilities caps = new DesiredCapabilities();\n caps.setCapability(\"os\", \"Windows\");\n caps.setCapability(\"os_version\", \"10\");\n caps.setCapability(\"browser\", \"Firefox\");\n caps.setCapability(\"browser_version\", \"latest-beta\");\n caps.setCapability(\"browserstack.local\", \"false\");\n caps.setCapability(\"browserstack.selenium_version\", \"3.5.2\");\n\n\n\n driver = new RemoteWebDriver(new URL(URL), caps);*/\n driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);\n //driver.get(\"https://www.argos.co.uk/\");\n //driver.get(\"https://www.iceland.co.uk/\");\n driver.get(\"https://www.asda.com/\");\n //driver.get(\"https://www.tesco.com/\");\n driver.manage().window().maximize();\n }", "title": "" }, { "docid": "d06488a8b965feb1e0f63a19efadfd26", "score": "0.6689926", "text": "public static void main(String[] args) throws InterruptedException {\n WebDriverManager.chromedriver().setup();\n //2-create the instance of the chromedriver\n WebDriver driver=new ChromeDriver();\n driver.manage().window().maximize();\n //3-test if driver is working\n driver.get(\"https://google.com\");\n System.out.println(driver.getTitle());\n System.out.println(driver.getCurrentUrl());\n\n //BROWSER NAVIGATION\n Thread.sleep(2000); //this line adds 2000 milliseconds of wait=2seconds\n driver.navigate().back(); //this line will take the user to the previous page\n Thread.sleep(2000); //Thread.sleep is being added just to be able to see selenium movements\n driver.navigate().forward(); //this line will go to next step\n Thread.sleep(2000);\n\n driver.get(\"https://www.youtube.com\");\n System.out.println(driver.getTitle());\n System.out.println(driver.getCurrentUrl());\n Thread.sleep(2000);\n driver.navigate().refresh();\n\n Thread.sleep(2000);\n driver.navigate().to(\"https://www.facebook.com\");\n\n System.out.println(driver.getTitle());\n\n System.out.println(driver.getCurrentUrl());\n\n System.out.println(driver.getPageSource());\n\n Thread.sleep(10000);\n\n driver.close();\n\n\n }", "title": "" }, { "docid": "ac202568137f9474e563ddf99bacd72b", "score": "0.662453", "text": "@Override\n\tpublic RemoteWebDriver launchBrowser() throws IOException {\n\t\tString browser_driver_path = System.getProperty(\"user.dir\") + pathAppender;\n\t\tbrowser = BaseTest.browserName == null\n\t\t\t\t? new Config().fetchConfig(new File(\"./suiterun.properties\"), \"browserName\") : BaseTest.browserName;\n\t\tif (browser != null && browser.equalsIgnoreCase(\"chrome\")) {\n\t\t\tChromeOptions options = new ChromeOptions();\n\t\t\toptions.setPageLoadStrategy(PageLoadStrategy.NONE);\n\t\t\toptions.addArguments(\"--test-type\");\n\t\t\toptions.addArguments(\"--disable-popup-blocking\");\n\t\t\toptions.addArguments(\"disable-infobars\");\n\t\t\toptions.addArguments(\"--disable-gpu\");\n\t\t\toptions.addArguments(\"--disable-features=VizDisplayCompositor\");\n\t\t\toptions.addArguments(\"--dns-prefetch-disable\");\n\t\t\tString browserDriver = !(Platform.getCurrent().toString().equalsIgnoreCase(\"MAC\")) ? \"chromedriver.exe\"\n\t\t\t\t\t: \"chromedriver_mac\";\n\t\t\tSystem.setProperty(\"webdriver.chrome.driver\", browser_driver_path + browserDriver);\n\t\t\tdriver = new ChromeDriver(options);\n\t\t} else if (browser != null && browser.equalsIgnoreCase(\"ie\")) {\n\t\t\tSystem.setProperty(\"cap_webdriver.ie.driver\", browser_driver_path + \"IEDriverServer.exe\");\n\t\t\tdriver = new InternetExplorerDriver();\n\t\t} else {\n\t\t\tString browserDriver = !(Platform.getCurrent().toString().equalsIgnoreCase(\"MAC\")) ? \"geckodriver.exe\"\n\t\t\t\t\t: \"geckodriver_mac\";\n\t\t\tFirefoxOptions firefoxoptions = new FirefoxOptions();\n\t\t\tSystem.setProperty(\"webdriver.gecko.driver\", browser_driver_path + browserDriver);\n\t\t\tfirefoxoptions.setCapability(CapabilityType.ACCEPT_SSL_CERTS, true);\n\t\t\tfirefoxoptions.setCapability(\"webdriver.log.driver\", \"OFF\");\n\t\t\tdriver = new FirefoxDriver(firefoxoptions);\n\t\t}\n\t\tdriver.manage().window().maximize();\n\t\tif (Config.fetchConfigProperty(\"PageLoadTime\") != null)\n\t\t\tdriver.manage().timeouts().pageLoadTimeout(Long.parseLong(Config.fetchConfigProperty(\"PageLoadTime\")),\n\t\t\t\t\tTimeUnit.SECONDS);\n\t\tif (Config.fetchConfigProperty(\"ElementWaitTime\") != null)\n\t\t\tdriver.manage().timeouts().implicitlyWait(Long.parseLong(Config.fetchConfigProperty(\"ElementWaitTime\")),\n\t\t\t\t\tTimeUnit.SECONDS);\n\t\treturn driver;\n\n\t}", "title": "" }, { "docid": "bfc27f1f290eb2bad0085742dcf39051", "score": "0.6607763", "text": "public static void launchUrl(String url) throws InterruptedException{\r\n\r\n\t\tdriver.get(url);\r\n\t\tSystem.out.println(\"url Launched successfully\");\r\n\t\texTest.log(LogStatus.PASS, \"opened successfully\");\r\n\t\tThread.sleep(6000);\r\n\t\tdriver.manage().window().maximize();\t\r\n\t\tThread.sleep(3000);\r\n\r\n\t}", "title": "" }, { "docid": "ef841f361c24e7e223fec06e2e0e7c41", "score": "0.65880126", "text": "public static void main(String[] args) {\nString chrome_exepath=\"E:\\\\browser_exes\\\\chromedriver.exe\";\r\nSystem.setProperty(\"webdriver.chrome.driver\",chrome_exepath );\r\nWebDriver driver=new ChromeDriver();\r\ndriver.get(\"http://toolsqa.com/\");\r\ndriver.manage().window().maximize();\r\n\t}", "title": "" }, { "docid": "c379151e65a0c3d1b495d118176999a4", "score": "0.65577555", "text": "@Before\n public void setUp(){\n\n driver = new ChromeDriver();\n/*\n if (os.contains(\"mac\")){\n System.setProperty(\"webdriver.chrome.driver\", System.getProperty(\"user.dir\")+\"/chromedriver\");\n }\n else{\n System.setProperty(\"webdriver.chrome.driver\", System.getProperty(\"user.dir\"+\"\\\\chromedriver.exe\"));\n\n }\n */\n driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);\n driver.manage().timeouts().pageLoadTimeout(10, TimeUnit.SECONDS);\n driver.manage().timeouts().setScriptTimeout(10, TimeUnit.SECONDS);\n\n driver.get(\"http://automationpractice.com/index.php\");\n driver.manage().window().maximize();\n }", "title": "" }, { "docid": "1ae8d38bb1ec1bbcdcf950564d14e3f4", "score": "0.6550907", "text": "@BeforeClass(description = \"Start browser, add implicit wait and maximize window\")\n\tpublic void startBrowser() {\n\t\tdriver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);\n\t\t// Maximize browser window\n\t\tdriver.manage().window().maximize();\n\t}", "title": "" }, { "docid": "50e4f12c83156211917188f4f874f418", "score": "0.654993", "text": "public static void main(String[] args) throws InterruptedException {\n\t\t\nWebDriver driver = new ChromeDriver();\n\ndriver.get(\"https://www.naukri.com/\");\n\n//driver.manage().window().maximize();\n\n//Return a list of Browser Windows\n\nArrayList<String> w = new ArrayList<String>(driver.getWindowHandles());\n\nSystem.out.println(w.size());\n\n\nfor(int i=1; i<w.size(); i++) {\n\t\n\tdriver.switchTo().window(w.get(i));\n\t\n\tdriver.manage().window().maximize();\n\t\n\tThread.sleep(5000);\n\t\n\tdriver.close();\n}\n\n\n\n\n\n\t}", "title": "" }, { "docid": "1a86d0af7a1a995f0ef5e2d477392ff4", "score": "0.653262", "text": "@Test\n\tpublic void browserlaunch()\n\t{\n\t driver.get(\"http://www.SoftwareTestingMaterial.com\");\n\t \t \n\t \n\t\n\t}", "title": "" }, { "docid": "2898cf02f9b60f9ccb39b114dd38ecec", "score": "0.6522849", "text": "@BeforeTest\r\n\t public void openBrowser() {\n\t\t\r\n\t\t\t\tFile pathToBinary = new File(Util.FIREFOX_PATH);\r\n\t\t\t\tFirefoxBinary ffBinary = new FirefoxBinary(pathToBinary);\r\n\t\t\t\tFirefoxProfile ffProfile = new FirefoxProfile();\r\n\t\t\t\t\r\n\t\t\t\t//Step 1. Launch Firefox Browser\r\n\t\t\t\tdriver = new FirefoxDriver(ffBinary, ffProfile);\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\tdriver.manage().window().maximize();\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t// Step 2. Goto the url: http://www.seleniumframework.com/Practiceform/\r\n\t\t\t\tdriver.get(Util.BASE_URL);\r\n\t\t\t\t}", "title": "" }, { "docid": "6afc30e4a462c4b13dd566375822bdaa", "score": "0.64886826", "text": "public static void main(String[] args) throws InterruptedException {\n\t\tWebDriver driver = new FirefoxDriver();\r\n\t\tdriver.get(\"http://toolsqa.com/automation-practice-switch-windows/\");\r\n\t\tString parentwindow = driver.getWindowHandle();\r\n\t\tSystem.out.println(\"Parent window is \" + parentwindow);\r\n\t\tWebElement e1 = driver.findElement(By.xpath(\"//*[@id='button1']\"));\r\n\t\t\r\n\t\tfor(int i = 0 ; i<3 ; i++)\r\n\t\t{\r\n\t\t\tWebDriverWait wait = new WebDriverWait(driver, 60);\r\n\t\t\twait.until(ExpectedConditions.elementToBeClickable(e1));\r\n\t\t\te1.click();\r\n\t\t\t//Thread.sleep(10000);\r\n\t\t}\r\n\t\tString lastwindow = \"\";\r\n\t\tfor(String handles : driver.getWindowHandles())\r\n{\r\n//\tSystem.out.println(\"Window handle : \" + handles);\r\n\tSystem.out.println(\"Switching to window : \" + handles);\r\n\tSystem.out.println(\"Navigating to google !\");\r\n\tdriver.switchTo().window(handles);\r\n\tdriver.get(\"https://www.google.com\");\r\n\tlastwindow = handles;\r\n\t\r\n}\r\n\t\tdriver.switchTo().window(parentwindow);\r\n\t\tdriver.close();\r\n\t\tdriver.switchTo().window(lastwindow);\r\n}", "title": "" }, { "docid": "cbb3ad285ae6f945187b31b8d5dec9a5", "score": "0.6488105", "text": "public void openBrowserMainPage(){\n try{\n driver.manage().window().maximize();\n driver.manage().timeouts().implicitlyWait(50, TimeUnit.SECONDS);\n driver.get(\"http://v3.test.itpmgroup.com/dashboard\");\n logger.info(\"Main page opens\");\n }catch (Exception e){\n logger.error(\"can't open Main page\");\n Assert.fail();\n }\n }", "title": "" }, { "docid": "6069bdabe1a61aa2d426013b0a3cbc43", "score": "0.6487153", "text": "public WebDriver openBrowser(String url) {\n\t\tdriver = new FirefoxDriver();\n\t\tdriver.get(url);\n\t\tdriver.manage().window().maximize();\n\t\tdriver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);\n\t\treturn driver;\n\t}", "title": "" }, { "docid": "91f5fdad86f516c63bebef890da0f40f", "score": "0.6484252", "text": "public void browsersetUp(WebDriver driver) throws InterruptedException {\n driver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS);\n driver.manage().timeouts().pageLoadTimeout(40, TimeUnit.SECONDS);\n driver.manage().window().maximize();\n Thread.sleep(3000);\n }", "title": "" }, { "docid": "4bdbeac2783f02edf047501faeb9a368", "score": "0.646336", "text": "@BeforeTest\n\tpublic void launchBrowser() {\n\t\tWebDriverManager.chromedriver().setup();\n\t\tdriver = new ChromeDriver();\n\t\tdriver.manage().window().maximize();\n\t\tdriver.navigate().to(\"https://netbanking.hdfcbank.com/netbanking/\");\n\t}", "title": "" }, { "docid": "3adf36449521372b0233718854fac982", "score": "0.6461802", "text": "public WebDriver openURL(){\n\t\ttry {\r\n\t\t\tdefaultMap = new Read().readApplication();\r\n\t\t} catch (IOException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t\tDesiredCapabilities capability = DesiredCapabilities.chrome();\r\n\t\tcapability.setCapability(\"chrome.switches\", Arrays.asList(\"–disable-extensions\"));\r\n\t\t//System.setProperty(\"webdriver.chrome.driver\", \"C:/chromedriver/chromedriver.exe\");\r\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", Browser.class.getResource(Constants.WINDOW_CHROME_DRIVER).getFile());\r\n\t\tcapability.setCapability(\"chrome.binary\", Constants.WINDOW_CHROME_EXE); \r\n\t\tChromeOptions options = new ChromeOptions();\r\n\t\t//profile path--options.addArguments(\"user-data-dir=C:/Users/user_name/AppData/Local/Google/Chrome/User Data/Default\"); \r\n\t\tWebDriver driver = new ChromeDriver(capability);\r\n\t\t\r\n\t // String URL = \"https://\"+ \"singhkuld\" + \":\" + \"Kedar@0706\" + \"@\" + \"us.sso.covisint.com/jsp/preLogin.jsp?host=https://fim.covisint.com&CT_ORIG_URL=%2Fap%2Fford%3Fip%3DWslIP%3D103.6.88.27%26TARGET%3Dhttps%3A%2F%2Fproj.extsp.ford.com%2F_layouts%2FFord%2Fcustomlogin.aspx%3FReturnUrl%3D%252fsites%252fsurveys%252f_layouts%252fAuthenticate.aspx%253fSource%253d%25252Fsites%25252Fsurveys%25252Fdefault%25252Easpx%25252F&ct_orig_uri=%2Fap%2Fford%3Fip%3DWslIP%3D103.6.88.27%26TARGET%3Dhttps%3A%2F%2Fproj.extsp.ford.com%2F_layouts%2FFord%2Fcustomlogin.aspx%3FReturnUrl%3D%252fsites%252fsurveys%252f_layouts%252fAuthenticate.aspx%253fSource%253d%25252Fsites%25252Fsurveys%25252Fdefault%25252Easpx%25252F\";\r\n\t\t//String URL = \"\";\r\n\t driver.get(Constants.URL);\r\n\n\t driver.findElement(By.id(\"user\")).sendKeys(defaultMap.get(\"loginId\").trim());\r\n\t\tdriver.findElement(By.id(\"password\")).sendKeys(defaultMap.get(\"password\").trim());\r\n\r\n\t driver.findElement(By.name(\"login\")).submit();\r\n\t // driver.manage().window().maximize();\r\n\t// driver.manage().window().\r\n\t return driver;\r\n\t}", "title": "" }, { "docid": "f19b09ca82caff9a47272d0911d249bc", "score": "0.6461068", "text": "@Given(\"User opens the browser\")\r\n\tpublic void user_opens_the_browser() {\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"src//test//resources//drivers//chromedriver.exe\");\r\n\t\tdriver = new ChromeDriver(); \r\n\t //System.out.println(\"Browser is open!!\");\r\n\t\tdriver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);\r\n\t }", "title": "" }, { "docid": "aa1af8500d4b98b6936ab2e701286b43", "score": "0.6452043", "text": "public static WebDriver OpenBrowser() throws Exception{\r\n\t\tString sBrowserName;\r\n\t\tString environment=null;\r\n\t\texeTime = new SimpleDateFormat(\"yyyy-MM-dd HH-mm\").format(Calendar.getInstance().getTime());\r\n\t\ttry{\r\n\t\t\tproperties.load(new FileInputStream(Constant.configPath));\r\n\t\t\tsBrowserName = properties.getProperty(\"Browser\");\r\n\t\t\tenvironment = properties.getProperty(\"Environment\");\r\n\t\t\tString URL = properties.getProperty(\"URL\");\r\n\r\n\t\t\tif(sBrowserName.equals(\"Mozilla\")){\r\n\t\t\t\ttry\r\n\t\t\t\t{\t\r\n\t\t\t\t\tSystem.out.println();\r\n\t\t\t\t\tSystem.out.println(\"<<<<<<<<<<<<<<<<<<<<<<<<<>>>>>>>>>>>>>>>>>>>>>>>>>\");\r\n\t\t\t\t\tSystem.out.println(\"Executing on Firefox Browser: \" + exeTime);\r\n\t\t\t\t\tSystem.out.println(\"<<<<<<<<<<<<<<<<<<<<<<<<<>>>>>>>>>>>>>>>>>>>>>>>>>\");\r\n\t\t\t\t\tdriver = new FirefoxDriver();\r\n\t\t\t\t\tdriver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);\r\n\t\t\t\t\tdriver.manage().window().maximize();\r\n\t\t\t\t\tdriver.get(URL);\r\n\t\t\t\t}\r\n\t\t\t\tcatch (Exception e)\r\n\t\t\t\t{\r\n\t\t\t\t\tSystem.err.println();\r\n\t\t\t\t\tSystem.err.println(\"Class Utils | Method OpenBrowser Inside Catch Exception | Exception: \"+e.getMessage());\r\n\t\t\t\t\tSystem.out.println(\"Inside catch Exception to open the firfox\");\r\n\t\t\t\t\tFile pathToFirefoxBinary = new File(properties.getProperty(\"Browser_Mozilla\"));\r\n\t\t\t\t\tFirefoxBinary firefoxbin = new FirefoxBinary(pathToFirefoxBinary);\r\n\t\t\t\t\tdriver = new FirefoxDriver(firefoxbin,null);\r\n\t\t\t\t\tdriver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);\r\n\t\t\t\t\tdriver.manage().window().maximize();\r\n\t\t\t\t\tdriver.get(URL);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\tif(sBrowserName.equals(\"Chrome\"))\r\n\t\t\t{\r\n\t\t\t\ttry\r\n\t\t\t\t{\r\n\t\t\t\t\tSystem.out.println(\"<<<<<<<<<<<<<<<<<<<<<<<<<>>>>>>>>>>>>>>>>>>>>>>>>>\");\r\n\t\t\t\t\tSystem.out.println(\"Executing on Chrome Browser: \" + exeTime);\r\n\t\t\t\t\tSystem.out.println(\"<<<<<<<<<<<<<<<<<<<<<<<<<>>>>>>>>>>>>>>>>>>>>>>>>>\");\r\n\t\t\t\t\tSystem.out.println(properties.getProperty(\"Browser_Chrome\"));\r\n\t\t\t\t\tSystem.setProperty(\"webdriver.chrome.driver\", properties.getProperty(\"Browser_Chrome\"));\r\n\t\t\t\t\tdriver = new ChromeDriver(); \r\n\t\t\t\t\tdriver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);\r\n\t\t\t\t\tdriver.manage().window().maximize();\r\n\t\t\t\t\tdriver.get(URL);\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\tcatch (Exception e)\r\n\t\t\t\t{\r\n\t\t\t\t\tSystem.out.println(\"Class Utils | Method OpenBrowser Inside Catch Exception | Exception: \"+e.getMessage());\r\n\t\t\t\t\tSystem.out.println(\"Inside catch Exception to open the Chrome\");\r\n\t\t\t\t\tSystem.setProperty(\"webdriver.chrome.driver\", properties.getProperty(\"Browser_Chrome\"));\r\n\t\t\t\t\tdriver = new ChromeDriver(); \r\n\t\t\t\t\tdriver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);\r\n\t\t\t\t\tdriver.manage().window().maximize();\r\n\t\t\t\t\tdriver.get(URL);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\tif(sBrowserName.equals(\"InternetExplorer\"))\r\n\t\t\t{\r\n\t\t\t\ttry\r\n\t\t\t\t{\r\n\t\t\t\t\tSystem.out.println(\"<<<<<<<<<<<<<<<<<<<<<<<<<>>>>>>>>>>>>>>>>>>>>>>>>>\");\r\n\t\t\t\t\tSystem.out.println(\"Executing on Internet Explorer Browser: \" + exeTime);\r\n\t\t\t\t\tSystem.out.println(\"<<<<<<<<<<<<<<<<<<<<<<<<<>>>>>>>>>>>>>>>>>>>>>>>>>\");\r\n\t\t\t\t\tDesiredCapabilities cap = DesiredCapabilities.internetExplorer();\r\n\t\t\t\t\tcap.setCapability(InternetExplorerDriver.INTRODUCE_FLAKINESS_BY_IGNORING_SECURITY_DOMAINS,true);\r\n\t\t\t\t\tcap.setJavascriptEnabled(true);\t\t\t\r\n\t\t\t\t\t//File file = new File(\".//lib//IEDriverServer.exe\");\r\n\t\t\t\t\tSystem.setProperty(\"webdriver.ie.driver\", properties.getProperty(\"Browser_IE\"));\r\n\t\t\t\t\tdriver = new InternetExplorerDriver(cap);\r\n\t\t\t\t\tdriver.manage().window().maximize();\r\n\t\t\t\t\tdriver.get(URL);\r\n\t\t\t\t\tdriver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);\r\n\t\t\t\t}\r\n\t\t\t\tcatch (Exception e)\r\n\t\t\t\t{\r\n\t\t\t\t\tSystem.out.println(\"Class Utils | Method OpenBrowser Inside Catch Exception | Exception desc\"+e.getMessage());\r\n\t\t\t\t\tSystem.out.println(\"Inside catch Exception to open the IE\");\r\n\t\t\t\t\tDesiredCapabilities cap = DesiredCapabilities.internetExplorer();\r\n\t\t\t\t\tcap.setCapability(InternetExplorerDriver.INTRODUCE_FLAKINESS_BY_IGNORING_SECURITY_DOMAINS,true);\r\n\t\t\t\t\tcap.setJavascriptEnabled(true);\t\t\r\n\t\t\t\t\tSystem.setProperty(\"webdriver.ie.driver\", properties.getProperty(\"Browser_IE\"));\r\n\t\t\t\t\tdriver = new InternetExplorerDriver(cap);\r\n\t\t\t\t\tdriver.manage().window().maximize();\r\n\t\t\t\t\tdriver.get(URL);\r\n\t\t\t\t\tdriver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}catch (Exception e){\r\n\t\t\tSystem.out.println(\"Class Utils | Method OpenBrowser | Exception: \"+e.getMessage());\r\n\t\t}\r\n\r\n\t\treturn driver;\r\n\t}", "title": "" }, { "docid": "1b9bb5c8f56b043cd10a05d596162c76", "score": "0.64266455", "text": "@BeforeClass\n public void launchUrl()\n {\n DriverManager.driver.manage().window().maximize();\n\n String baseUrl = config.getProperty(\"base_url\");\n DriverManager.driver.get(baseUrl);\n\n }", "title": "" }, { "docid": "5a8a5e10568c19d329e18652e013138d", "score": "0.6394338", "text": "public static void initWebdriver() {\n\t String browsername=prop.getProperty(\"browser\");\n\t if(browsername.equalsIgnoreCase(\"firefox\")) {\n\t\t //this line will download gecko driver..no need to write driver.get nothing\n\t\t WebDriverManager.firefoxdriver().setup();\n\t\t driver=new FirefoxDriver();\n\t } else if (browsername.equalsIgnoreCase(\"chrome\")) {\n\t\t WebDriverManager.chromedriver().setup();\n\t\t driver=new ChromeDriver();\n\t } else if(browsername.equalsIgnoreCase(\"edge\")) {\n\t\t WebDriverManager.edgedriver().setup();\n\t\t //driver=new EdgeDriver(); \n\t } else if(browsername.equalsIgnoreCase(\"ie\")) {\n\t\t WebDriverManager.iedriver().setup();\n\t\t driver=new InternetExplorerDriver(); \n\t }\n\t\t //add implicit \n\t\t driver.manage().timeouts().implicitlyWait(TestUtil.IMPLICIT_WAIT, TimeUnit.SECONDS);\n\t\t \n\t\t //maximize the window\n\t\t driver.manage().window().maximize();\n\t\t //open the url\n\t\t driver.get(prop.getProperty(\"url\"));\n\t\t //driver.navigate().to(\"http://linkedin.com\");\n\t\t //create an object for WebDriverWait class\n\t\t wait=new WebDriverWait(driver,TestUtil.EXPLICIT_WAIT);\n\t\t \n\t \n\t \n\t \n }", "title": "" }, { "docid": "e33ee59bd5b7b25102ba6eec35485574", "score": "0.6365343", "text": "@BeforeTest\n\tpublic void openApplication() {\n\t\tsetupChrome();\t\n\t\tdriver.manage().timeouts().implicitlyWait(Long.parseLong(configProp.getProperty(\"uiWait\")), TimeUnit.SECONDS);\n\t\tdriver.manage().window().maximize();\n\t\tdriver.manage().deleteAllCookies();\n\t\tdriver.manage().timeouts().setScriptTimeout(120, TimeUnit.SECONDS);\n\t\tdriver.get(configProp.getProperty(\"weatherurl\"));\n\t\twait = new WebDriverWait(driver, Long.parseLong(configProp.getProperty(\"uiWait\")));\n\t\tTempratureUnit=configProp.getProperty(\"TempratureUnit\");\n\t\tsetTempratureUnit();\n\n\t}", "title": "" }, { "docid": "8bce52f4dc9a13687b9ead9f5f3b57f4", "score": "0.6340278", "text": "public void openPage() {\n driver.get(BASE_URL);\n driver.manage().window().maximize();\n }", "title": "" }, { "docid": "0522c91b41ba29d95b2f27162e04ed26", "score": "0.6334939", "text": "public static void main(String[] args) throws InterruptedException {\n WebDriverManager.chromedriver().setup();\n WebDriver driver = new ChromeDriver();\n driver.manage().window().maximize();\n driver.get(\"http://google.com\");\n System.out.println(driver.getTitle());\n\n Thread.sleep(5000);\n driver.navigate().to(\"https://etsy.com\");\n System.out.println(driver.getTitle());\n\n Thread.sleep(5000);\n driver.navigate().back();\n System.out.println(driver.getTitle());\n\n Thread.sleep(5000);\n driver.navigate().forward();\n System.out.println(driver.getTitle());\n\n String expected = \"http://google.com\";\n String actual = driver.getCurrentUrl();\n\n if (expected.equals(actual)) {\n System.out.println(\"PASS\");\n } else {\n System.out.println(\"FAIL\");\n System.out.println();\n }\n\ndriver.close();\n\n }", "title": "" }, { "docid": "8da450e8dbad9f91b0769f46adc715d3", "score": "0.63203645", "text": "private void navigateSeleniumDriverToURL(WebDriver activeSeleniumWebDriver, String pageURL, int maxLoadTime) {\r\n\t\t\r\n\t\t//If the max load time is shorter than the class constant PAGELOADTIME, set it to PAGELOADTIME\r\n\t\t//maxLoadTime = (maxLoadTime > PAGELOADTIME) ? maxLoadTime : PAGELOADTIME; \r\n\t\t\r\n \t//Mark the time we start loading the page\r\n \tlong pageLoadStartTime = System.nanoTime();\r\n \t\r\n \t//Attempt to load the passed page\r\n \t//try {activeSeleniumWebDriver.get(pageURL);} \r\n \t//try {activeSeleniumWebDriver.navigate().to(pageURL);}\r\n \t\r\n \t//If the timeout is reached, just keep moving\r\n \t//catch (TimeoutException e) {\r\n \t\t//Just keep moving if the timeout is reached\r\n \t//}\r\n \t\r\n \tTimeLimiter timeoutLimiter = new SimpleTimeLimiter();\r\n\t\ttry {\r\n\t\ttimeoutLimiter.callWithTimeout(new Callable<File>() {\r\n\t\t\t\t\t public File call() {\r\n\t\t\t\t\t \tactiveSeleniumWebDriver.navigate().to(pageURL);;return null;\r\n\t\t\t\t\t }\r\n\t\t\t\t\t }, PAGELOADTIME, TimeUnit.MILLISECONDS, false); \r\n\t\t}\r\n\t\tcatch (Exception e) {\r\n\t\t\tconsoleLog(\" Navigation timeout. -\" + e.toString() );\r\n\t\t\t//Ignore any error and try another attempt (if any are left)\r\n\t\t}\r\n\r\n \t\r\n \t//If the page seem to load before the load time, give it the difference as extra time through sleep\r\n \tfinally {\r\n \t\t\r\n \t//If the current load time is less that maximum load time, sleep the difference\r\n \tint currentPageLoadTime = (int) ((System.nanoTime() - pageLoadStartTime)/1000000);\t//Divide by a million to move nanoseconds to miliseconds\r\n \tif (currentPageLoadTime < maxLoadTime) {\r\n\t\t\t\tpause(maxLoadTime - currentPageLoadTime);\r\n \t}\r\n \t}\r\n\t}", "title": "" }, { "docid": "0244766c842898a28ccfe37d6c477cca", "score": "0.6319252", "text": "@Test\r\n\tpublic void invoke() {\n\r\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"C:\\\\Program Files (x86)\\\\Google\\\\ChromeDriver\\\\chromedriver.exe\");\t\r\n\t\tChromeDriver driver = new ChromeDriver();\r\n\t\tdriver.manage().window().maximize();\r\n\t\tdriver.get(\"https://www.google.co.in\");\r\n\t\tdriver.quit();\r\n\r\n\r\n\r\n\t}", "title": "" }, { "docid": "38632b577781d0f059fd6fe1fe239dfb", "score": "0.62996393", "text": "@BeforeMethod\n public void testLaunchSite(){\n WebDriverManager.chromedriver().setup();\n driver=new ChromeDriver();\n driver.manage().timeouts().implicitlyWait(20, TimeUnit.SECONDS);\n driver.manage().timeouts().pageLoadTimeout(50,TimeUnit.SECONDS);\n home=new HomePage(driver);\n profilepage=new MyProfilePage(driver);\n home.launchSite();\n }", "title": "" }, { "docid": "17aea60279a16910f4b52ae99518904a", "score": "0.6291813", "text": "public static void main(String[] args) {\n\t\tWebDriver driver;\n\t\tWebDriverManager webDriverManager;\n\t\twebDriverManager = new WebDriverManager();\n\t\tdriver = webDriverManager.getDriver();\n\t\tdriver.get(\"http://demo.guru99.com/test/guru99home/\");\n\t\tSystem.out.println(\"setup function: opened url\");\n\t\t\n JavascriptExecutor js = (JavascriptExecutor) driver;\n js.executeScript(\"window.scrollBy(0, document.body.scrollHeight)\");\n \n\t}", "title": "" }, { "docid": "d94ddf6236ad2a76d5a326ee52c627fc", "score": "0.6285378", "text": "public static void Lauch_FirefoxBrowser()\n\t{\n\t\t\n\t\tString cur_dir = System.getProperty(\"user.dir\");\n\t\tString driverPath = cur_dir + \"/src/test/java/utility/chromedriverwin.exe\";\n\t\t\n\t\t//String driverPath=\"C:/Users/HP/Downloads/chromedriver.exe\";\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", driverPath);\n\t\t\n\t\tdriver=new ChromeDriver();\n\n\t\t\n\t\tSystem.out.println(\"Chrome browser is launched..\");\n\t}", "title": "" }, { "docid": "7522d207c6fdec68a6e0b1af671480ab", "score": "0.62285644", "text": "@Test\npublic void TestPopUp() throws IOException, InterruptedException \n{\nSystem.setProperty(\"webdriver.gecko.driver\", \"C:\\\\geckodriver\\\\geckodriver.exe\");\nWebDriver webdriver = new FirefoxDriver();\n\nwebdriver.get(\"http://www.naukri.com\");\nwebdriver.manage().window().maximize();\nString parent = webdriver.getWindowHandle();\nSystem.out.println(webdriver.switchTo().window(parent).getTitle()+ \"parent window naaame\");\nSystem.out.println(parent);\nSet<String> total = webdriver.getWindowHandles();\nIterator<String> itr = total.iterator();\nwhile(itr.hasNext())\n{\n\tString child_window = itr.next();\n\t//System.out.println(child_window+ \"child_window name\");\n\t//System.out.println(webdriver.getWindowHandle());\n\n\tif(!parent.equals(child_window))\n\t{\n\tWebDriver d = \twebdriver.switchTo().window(child_window);\n\tSystem.out.println(d.getTitle() + \"child title\");\n\t//d.getTitle();\n\t\t//System.out.println(webdriver.switchTo().window(child_window).getTitle());\n\t\t try{\n\t\t File scrFile= ((TakesScreenshot)webdriver).getScreenshotAs(OutputType.FILE);\n\n\t\t FileUtils.copyFile(scrFile, new File(\"C:/selenium/loginerror_\" + System.currentTimeMillis()+\".png\") );\n\t\t \n\n\t\t }\n\t\t catch (Exception e){\n\t\t System.out.println(\"Failed to capture screenshot\");\n\t\t }\n\nd.close();\n\t\t}\n\t\t\tSystem.out.println(\"took a scrren shot \");\n\t\t\t\n\t\t\t\n\n}\n\n\n\n\n}", "title": "" }, { "docid": "59e9257aac099127b5dfeea69754a1a2", "score": "0.62205905", "text": "public void invokeBrowser() {\n\t\t\n\t\ttry {\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"C:\\\\work chrome\\\\chromedriver.exe\");\n\t\tWebDriver driver = new ChromeDriver();\n\t\t//driver.manage().deleteAllCookies();\n\t\n\t\tdriver.manage().window().maximize();\n\t\t\n\t\tdriver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS);\n\t\tdriver.manage().timeouts().pageLoadTimeout(30, TimeUnit.SECONDS);\n\t\tdriver.get(\"https://www.edureka.co\");\n\n\t\t\n\t\t\n\t\tSearchCourse();\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "5afed88a0798cb0559bf3825e0fc0b63", "score": "0.6205128", "text": "@BeforeTest\r\n\tpublic void openBrowser() {\r\n\t\t// To maximize the Window\r\n\t\tdriver.manage().window().maximize();\r\n\t\t// To Open the Application\r\n\t\tdriver.get(\"http://www.facebook.com\");\r\n\t}", "title": "" }, { "docid": "01dae6d97f0dd5b0f797b331b4d4d136", "score": "0.620104", "text": "@Test\r\n\tpublic void set() {\n\t\t\r\n\t\t\r\n\t\tWebDriverManager.chromedriver().setup();\r\n\t\tWebDriver chromedriver=new ChromeDriver();\r\n\t\tchromedriver.manage().deleteAllCookies();\r\n\t\tchromedriver.manage().window().maximize();\r\n\t\tchromedriver.get(\"https://www.google.com\");\r\n\t\tchromedriver.navigate().to(\"https://www.bing.com\");\r\n\t\tchromedriver.navigate().back();\r\n\t\t\t\r\n\t\t\r\n\t\t//chromedriver.close();\r\n\t\tchromedriver.quit();\r\n\r\n\t}", "title": "" }, { "docid": "94f57bf2e91a60b3eebfc44cbcb31da8", "score": "0.6199115", "text": "@BeforeMethod\n public void openBrowser() throws InterruptedException {\n webDriver = new ChromeDriver();\n webDriver.get(\"file:///E:/Baiduyun%20download/index.html \");\n Thread.sleep(1000);\n\n }", "title": "" }, { "docid": "02fc94a49b115888397e8d514318e7fd", "score": "0.619783", "text": "public static void main(String[] args) {\n\t\tWebDriver driver = new FirefoxDriver();\n\t\t\n\t\tdriver.manage().deleteAllCookies();\n\t\t\n\t\t//Launch the web application in Firefox\n\t\tdriver.get(\"http://demoqa.com/\");\n\t\t\n\t\t//Maximize the browser\n\t\tdriver.manage().window().maximize();\n\n\t\tdriver.findElement(By.linkText(\"Frames and windows\")).click();\n\t\t\n\t\tWebDriverWait wait = new WebDriverWait(driver,5);\n\t\twait.until(ExpectedConditions.titleContains(\"Frames and windows\"));\n\n\t\tString baseWindow = driver.getWindowHandle();\n\n\t\tdriver.findElement(By.linkText(\"New Browser Tab\")).click();\n\t\t\n\t\tWait<WebDriver> fluentWait = new FluentWait<WebDriver>(driver)\n\t\t\t\t.withTimeout(10, TimeUnit.SECONDS)\n\t\t\t\t.pollingEvery(5, TimeUnit.SECONDS)\n\t\t\t\t.ignoring(NoSuchElementException.class);\n\t\tfluentWait.until(new Function<WebDriver,Boolean>(){\n\t\t\tpublic Boolean apply(WebDriver d) {\n\t\t\t\treturn d.getWindowHandles().size()>1;\n\t\t\t}\n\t\t});\n\t\t\n\t\tSet<String> allWindows = driver.getWindowHandles();\n\t\t\n\t\tfor(String handle: allWindows) {\n\t\t\tdriver.switchTo().window(handle);\n\t\t\tdriver.findElement(By.linkText(\"Draggable\")).click();\n\t\t\twait.until(ExpectedConditions.titleContains(\"Draggable\"));\n\t\t}\n\t\t\n\t\tdriver.switchTo().window(baseWindow);\n\t\t\n\t\tdriver.findElement(By.linkText(\"Frames and windows\")).click();\n\t\t\n\t\twait.until(ExpectedConditions.titleContains(\"Frames and windows\"));\n\n\t\tdriver.findElement(By.linkText(\"Open Seprate New Window\")).click();\n//\t\tdriver.findElement(By.xpath(\"//a[contains(@id,'ui-id-2')]\")).click();\n\t\tdriver.findElement(By.linkText(\"Open New Seprate Window\")).click();\n\t\t\n\t\tfluentWait.until(new Function<WebDriver,Boolean>(){\n\t\t\tpublic Boolean apply(WebDriver d) {\n\t\t\t\treturn d.getWindowHandles().size()>2;\n\t\t\t}\n\t\t});\n\t\t\n\t\tallWindows = driver.getWindowHandles();\n\t\tfor(String handle: allWindows) {\n\t\t\tdriver.switchTo().window(handle);\n\t\t\tif(driver.getTitle().contains(\"TOOLSQA\"))\n\t\t\t\tbreak;\n\t\t}\n\t\tdriver.close();\n\t\tdriver.switchTo().window(baseWindow);\n\t\tdriver.findElement(By.linkText(\"Droppable\")).click();\n\t}", "title": "" }, { "docid": "b2a6b797303be55096a3e6a779cdc494", "score": "0.6193773", "text": "public static void main(String[] args) throws Exception {\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"E:\\\\eclipse_jar\\\\selenium_jar\\\\chromedriver.exe\");\r\n\t\t\r\n\t\tWebDriver driver = new ChromeDriver();\r\n\t\tdriver.get(\"https://www.baidu.com/\");\r\n\t\tWebDriverWait wait = new WebDriverWait(driver, 30);\r\n\t\twait.until(ExpectedConditions.presenceOfElementLocated(By.id(\"kw\")));\r\n\t\t\r\n\t\tdriver.findElement(By.id(\"kw\")).sendKeys(\"httpclient\");\r\n\t\tThread.sleep(2000);\r\n\t\ttry {\r\n\t\t\tRobot robot = new Robot();\r\n\t\t\trobot.keyPress(KeyEvent.VK_CONTROL);\r\n\t\t\trobot.keyPress(KeyEvent.VK_A);\r\n\t\t\trobot.keyRelease(KeyEvent.VK_CONTROL);\r\n\t\t\trobot.keyRelease(KeyEvent.VK_A);\r\n\t\t\tThread.sleep(1000);\r\n\t\t\t\r\n\t\t\trobot.keyPress(KeyEvent.VK_CONTROL);\r\n\t\t\trobot.keyPress(KeyEvent.VK_C);\r\n\t\t\trobot.keyRelease(KeyEvent.VK_CONTROL);\r\n\t\t\trobot.keyRelease(KeyEvent.VK_C);\r\n\t\t\tThread.sleep(1000);\r\n\t\t\t\r\n\t\t\tdriver.findElement(By.id(\"kw\")).clear();\r\n\t\t\tThread.sleep(1000);\r\n\t\t\t\r\n\t\t\trobot.keyPress(KeyEvent.VK_CONTROL);\r\n\t\t\trobot.keyPress(KeyEvent.VK_V);\r\n\t\t\trobot.keyRelease(KeyEvent.VK_CONTROL);\r\n\t\t\trobot.keyRelease(KeyEvent.VK_V);\r\n\t\t\tThread.sleep(1000);\r\n\t\t\t\r\n\t\t} catch (AWTException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\tdriver.findElement(By.id(\"su\")).click();\r\n\t\tThread.sleep(1000);\r\n\t\tWebElement element = driver.findElement(By.id(\"8\"));\r\n//\t\tWebElement linktext = driver.findElement(By.partialLinkText(\"使用详解\"));\r\n\t\t((JavascriptExecutor)driver).executeScript(\"arguments[0].scrollIntoView();\", element); //滑动到指定位置\r\n//\t\tint i = 8;\r\n//\t\tassertEquals(i, element.getText());\r\n//\t\tlinktext.click();\r\n\t\tThread.sleep(1000);\r\n\t\t\r\n\t\t//获取本地时间\r\n\t\tSimpleDateFormat dateFormat = new SimpleDateFormat(\"yyyyMMddHHmmsss\");\r\n\t\tString time = dateFormat.format(Calendar.getInstance().getTime());\r\n\t\t//截取滑动后的屏幕并保存到指定位置\r\n\t\tFile srcFile = ((TakesScreenshot)driver).getScreenshotAs(OutputType.FILE);\r\n\t\tFileUtils.copyFile(srcFile, new File(\"snapshot\", time + \".png\"));\r\n\t\tThread.sleep(2000);\r\n\t\t\r\n\t\tdriver.close();\r\n\t}", "title": "" }, { "docid": "44bcc0ad039a655f0e60c16027d7ee68", "score": "0.6181502", "text": "@BeforeClass\n public static void openPage(){\n String libWithDriversLocation = System.getProperty(\"user.dir\") + \"\\\\lib\\\\\";\n System.setProperty(\"webdriver.chrome.driver\", libWithDriversLocation + \"chromedriver.exe\");\n driver = new ChromeDriver();\n driver.get(\"https://kristinek.github.io/test-sample/tasks/task3\");\n }", "title": "" }, { "docid": "856a0ba942ec25de9bdf865c2a0fa2a0", "score": "0.6174351", "text": "@Before\n\tpublic void LaunchBrowser() {\n\t\t\t\tSystem.setProperty(\"webdriver.chrome.driver\",\"C:\\\\Users\\\\aarav\\\\eclipse-workspace\\\\june20Selinium\\\\FirstSeleniumProject\\\\driver\\\\chromedriver.exe\" );\n\t\t\t\t// create object of web driver //\n\t\t\t\tdriver = new ChromeDriver();\n\t\t\t\t// going to the website\n\t\t\t\tdriver.get(\"http://www.techfios.com/billing/?ng=admin/\");\n\t\t\t\t//maximize browser//\n\t\t\t\tdriver.manage().window().maximize();\n\t}", "title": "" }, { "docid": "8c2a01ae80e4e67b7fa7dc30f6a8632b", "score": "0.615534", "text": "static void openWebPage(String page) throws Exception {\n BrowserHelper browserHelper = new BrowserHelper(Driver.CHROME);\n localDriver = browserHelper.getLocalDriver();\n localDriver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);\n localDriver.manage().window().maximize();\n localDriver.get(page);\n }", "title": "" }, { "docid": "313719155000df9f2e2c2cefc8ade23c", "score": "0.6150757", "text": "public static void main(String[] args) throws InterruptedException \r\n\t{\n\t\t\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"D:\\\\karishma\\\\chromedriver.exe\");\r\n\t\t\t\tWebDriver driver=new ChromeDriver();\r\n\t\t\t\tdriver.get(\"http://192.168.0.35:8080/bamsarecruit/\");\r\n\t\t\t\tThread.sleep(5000);\r\n\t\t\t\t//maximize window\r\n\t\t\t\tdriver.manage().window().maximize();\r\n\t\t\t\tThread.sleep(5000);\r\n\t\t\t\t//click on dev nd test\r\n\t\t\t\tdriver.findElement(By.xpath(\"//*[@class='icoFacebook']\")).click();\r\n\t\t\t\t//fill fields\r\n\t\t\t\tdriver.findElement(By.xpath(\"//*[@id='loginform']/input[1]\")).sendKeys(\"CEO\");\t\r\n\t\t\t\tdriver.findElement(By.xpath(\"//*[@id='loginform']/input[2]\")).sendKeys(\"tulasi\");\r\n\t\t\t\tdriver.findElement(By.xpath(\"//*[@id='loginform']/button\")).click();\r\n\t\t\t\t//click on qucik view\r\n\t\t\t\tdriver.findElement(By.xpath(\"(//*[@class='parent'])[1]\")).click();\r\n\t\t\t\tThread.sleep(3000);\r\n\t\t\t\t//click on requirement\r\n\t\t\t\tdriver.findElement(By.xpath(\"(//*[@href='/bamsarecruit/addRequirement'])[1]\")).click();\r\n\t\t\t\tThread.sleep(3000);\r\n\t\t\t\t//fill fields\r\n\t\t\t\tdriver.findElement(By.xpath(\"//*[@id='pid']\")).sendKeys(\"D555\");\r\n\t\t\t\tdriver.findElement(By.name(\"ptitle\")).sendKeys(\"Testing\");\r\n\t\t\t\tdriver.findElement(By.name(\"city\")).sendKeys(\"koi bhi\");\r\n\t\t\t\tSelect s=new Select(driver.findElement(By.name(\"state\")));\r\n\t\t\t\ts.selectByVisibleText(\"Texas\");\r\n\t\t\t\tdriver.findElement(By.name(\"pskill\")).sendKeys(\"Automation\");\r\n\t\t\t\tdriver.findElement(By.name(\"sskill\")).sendKeys(\"java\");\r\n\t\t\t\tSelect s1=new Select(driver.findElement(By.name(\"ratetype\")));\r\n\t\t\t\ts1.selectByVisibleText(\"Hourly\");\r\n\t\t\t\tdriver.findElement(By.name(\"rate\")).sendKeys(\"3400\");\r\n\t\t\t\tdriver.findElement(By.name(\"pvendor\")).sendKeys(\"prodeisgn technologies india pvt ltd\");\r\n\t\t\t\tdriver.findElement(By.name(\"contact\")).sendKeys(\"raham\");\r\n\t\t\t\t//click prime vendor\r\n\t\t\t\t/*driver.findElement(By.linkText(\"Add Prime-Vendor\")).click();\r\n\t\t\t\tThread.sleep(5000);\r\n\t\t\t\t//Switch to window\r\n\t\t\t\tArrayList<String> x=new ArrayList<String>(driver.getWindowHandles());\r\n\t\t\t\tdriver.switchTo().window(x.get(1));\r\n\t\t\t\tThread.sleep(5000);\r\n\t\t\t//Fill fields\r\n\t\t\t\tdriver.findElement(By.name(\"fname\")).sendKeys(\"rahane\");\r\n\t\t\t\tdriver.findElement(By.name(\"lname\")).sendKeys(\"Shaik\");\r\n\t\t\t\tdriver.findElement(By.name(\"accountname\")).sendKeys(\"almas\");\r\n\t\t\t\tSelect s2=new Select(driver.findElement(By.name(\"accowner\")));\r\n\t\t\t\ts2.selectByVisibleText(\"madhu\");\r\n\t\t\t\tSelect s3=new Select(driver.findElement(By.name(\"category\")));\r\n\t\t\t\ts3.selectByVisibleText(\"Client\");\r\n\t\t\t\tdriver.findElement(By.name(\"website\")).sendKeys(\"www.example.com\");\r\n\t\t\t\tSelect s4=new Select(driver.findElement(By.name(\"status\")));\r\n\t\t\t\ts4.selectByVisibleText(\"Active\");\r\n\t\t\t\tdriver.findElement(By.name(\"reqlist\")).click();\r\n\t\t\t\tThread.sleep(5000);\r\n\t\t\t\tdriver.findElement(By.name(\"hotlist\")).click();\r\n\t\t\t\tThread.sleep(5000);\r\n\t\t\t\tdriver.findElement(By.name(\"city\")).sendKeys(\"koi bhi kuch bhi\");\r\n\t\t\t\tSelect s5=new Select(driver.findElement(By.name(\"state\")));\r\n\t\t\t\ts5.selectByVisibleText(\"Florida\");\r\n\t\t\t driver.findElement(By.name(\"pemail\")).sendKeys(\"rahim@gmail.com\");\r\n\t\t\t\tdriver.findElement(By.name(\"semail\")).sendKeys(\"rahane@gmail.com\");\r\n\t\t\t\tdriver.findElement(By.name(\"phone\")).sendKeys(\"4563782456\");\r\n\t\t\t\t//scroll down\r\n\t\t\t\tWebElement e=driver.findElement(By.xpath(\"//*[@type='submit']\"));\r\n\t\t\t\tJavascriptExecutor js=(JavascriptExecutor) driver;\r\n\t\t\t\tjs.executeScript(\"arguments[0].scrollIntoView();\",e);\r\n\t\t\t\tThread.sleep(5000);\r\n\t\t\t\tdriver.findElement(By.xpath(\"(//*[@name='description'])[3]\")).click();\r\n\t\t\t\tActions a=new Actions(driver);\r\n\t\t\t\ta.sendKeys(\"safdedg sdfhuyshg\").build().perform();\r\n\t\t\t\t//click add account\r\n\t\t\t\tdriver.findElement(By.xpath(\"//*[@type='submit']\")).click();\r\n\t\t\t\t//Switch back to window\r\n\t\t\t\tArrayList<String> x1=new ArrayList<String>(driver.getWindowHandles());\r\n\t\t\t\tdriver.switchTo().window(x1.get(0));\r\n\t\t\t\tThread.sleep(5000);*/\r\n\t\t\t\t//give primevendor\r\n\t\t\t\t//driver.findElement(By.name(\"pvendor\")).sendKeys(\"society\");\r\n\t\t\t\t\r\n\t\t\t\tdriver.findElement(By.name(\"eclient\")).sendKeys(\"salman\");\r\n\t\t\t\t//scroll down\r\n\t\t\t\tWebElement e1=driver.findElement(By.xpath(\"//*[@type='submit']\"));\r\n\t\t\t\tJavascriptExecutor js1=(JavascriptExecutor) driver;\r\n\t\t\t\tjs1.executeScript(\"arguments[0].scrollIntoView();\",e1);\r\n\t\t\t\tThread.sleep(5000);\r\n\t\t\t\tdriver.findElement(By.xpath(\"(//*[@name='description'])[3]\")).click();\r\n\t\t\t\t//driver.findElement(By.name(\"description\")).sendKeys(\"egcs gssdcyugs hsgsnscb bshdb\");\r\n\t\t\t\tActions a1=new Actions(driver);\r\n\t\t\t\ta1.sendKeys(\"safdedg sdfhuyshg\").build().perform();\t\t\t\t\r\n\t\t\t\t//click add account\r\n\t\t\t\tdriver.findElement(By.xpath(\"//*[@type='submit']\")).click();\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\r\n\t}", "title": "" }, { "docid": "bc51869fc370849d84b7c393ae6c23bf", "score": "0.61289454", "text": "@Test\n\tpublic void chromeTest1() throws MalformedURLException {\n\t\t\n\t\tDesiredCapabilities cap = DesiredCapabilities.chrome();\n\t\tURL container_url = new URL(\"http://localhost:4444/wd/hub\");\n\t\tRemoteWebDriver driver = new RemoteWebDriver(container_url,cap);\n\t\tdriver.get(\"http://google.com\");\n\t\tSystem.out.println(driver.getTitle());\n\t\t\n\t/*\tDesiredCapabilities capf = DesiredCapabilities.firefox();\n\t\tURL firefox_container_url = new URL(\"http://localhost:4444/5555/wd/hub\");\n\t\tRemoteWebDriver firefox_driver = new RemoteWebDriver(firefox_container_url,cap);\n\t\tfirefox_driver.get(\"http://yahoo.com\");\n\t\tSystem.out.println(firefox_driver.getTitle());*/\n\n\n\t}", "title": "" }, { "docid": "4a45b860b77b2478c7fa30ed48fe8a1e", "score": "0.6128837", "text": "@BeforeTest\n private void initDriver() throws MalformedURLException {\n\n SingletonWebDriver.getWebDriverInstance().manage().timeouts().pageLoadTimeout(15, TimeUnit.SECONDS);\n SingletonWebDriver.getWebDriverInstance().manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);\n SingletonWebDriver.getWebDriverInstance().manage().window().maximize();\n SingletonWebDriver.getWebDriverInstance().manage().deleteAllCookies();\n }", "title": "" }, { "docid": "b3c99e15d7cc18625dec664af5afadd3", "score": "0.61279845", "text": "@Test\n public void openBrowser() throws Exception {\n\n WebDriver driver = new ChromeDriver();\n driver.manage().window().maximize();\n\n //Creating object of Gigatron Home page\n GigatronHomePage gigatronHome = new GigatronHomePage(driver);\n\n //Creating object of Gigatron Home page\n GigatronBelaTehnikaPage gigatronBelaTehnika = new GigatronBelaTehnikaPage(driver);\n\n // Launch Gigatron page\n gigatronHome.openGigatronURL();\n Thread.sleep(5000);\n\n // Accept cookies on Gigatron site\n gigatronHome.clickAcceptCookies();\n Thread.sleep(3000);\n\n // Click on Products menu\n gigatronBelaTehnika.clickProductMenu();\n Thread.sleep(3000);\n\n // Select category 'Bela tehnika' from menu\n gigatronBelaTehnika.clickBelaTehnikaMenu();\n Thread.sleep(3000);\n\n // Wait for page 'Bela tehnika' to be loaded and select 'Ugradni frižideri sa jednim vratima'\n gigatronBelaTehnika.clickOnUgradniFrizideri();\n Thread.sleep(3000);\n\n // Wait for page 'Frizideri sa jednim vratima' page to be loaded and select certain type\n gigatronBelaTehnika.selectGorenje();\n Thread.sleep(3000);\n\n // Sort products by price\n gigatronBelaTehnika.sortProducts();\n Thread.sleep(3000);\n\n // Select first product from 'Gorenje' sorted list (most expensive)\n gigatronBelaTehnika.selectProduct();\n Thread.sleep(5000);\n\n // Wait for Product page to be loaded and check if Product is available for online shopping\n boolean isProductAvailAndAdded = gigatronBelaTehnika.checkProductAvailableAndAddToBasket();\n Assert.assertEquals(isProductAvailAndAdded, true);\n Thread.sleep(3000);\n\n System.out.println(\"TEST PASSED: Products found, sorted, selected and added to the basket.\");\n\n Thread.sleep(3000);\n driver.quit();\n\n }", "title": "" }, { "docid": "f5cbd1c195037dd75e4d060f50a4f6e6", "score": "0.6122411", "text": "@Test\n\t@Parameters(\"browser\")\n\tpublic void launchURL(String browser) {\n\t\tlogger = report.createTest(\"Browser Select and Launch URL\");\n\t\t\n\t\tloadProperties();\n\t\tinvokeBrowser(browser);\n\t\topenURL(\"testURL\");\n\t\tTC_HomePage.dismissPOPUP();\n\t\tverifyPageTitle(config.getProperty(\"homePage_Title\"));\n\t\t\n\t}", "title": "" }, { "docid": "8f740841bd3f40ce520410861b6251ce", "score": "0.6119826", "text": "@Test\n\t public void LaunchBrowser() throws InterruptedException{\n\n\t\tDesiredCapabilities caps = new DesiredCapabilities();\n\t\tcaps.setJavascriptEnabled(true); \n\t\tcaps.setCapability(PhantomJSDriverService.PHANTOMJS_EXECUTABLE_PATH_PROPERTY, \"/root/selenium/phantomjs-2.1.1-linux-x86_64/bin/phantomjs\");\n\t\tWebDriver driver = new PhantomJSDriver(caps);\n\t\tSystem.out.println(\"PhantomJS Headless Driver launched\");\n\t\tdriver.get(\"https://google.com\");\n\t\tThread.sleep(5000);\n\t\tSystem.out.println(\"Launch Browser is successful \");\n\t\tSystem.out.println(\"Page Title : \" + driver.getTitle());\n\n\t\n\n\t\t\t\t//Searching for \"Fresco Play\" in Google search\n\t\t\t\t// Find the element locators for the below actions.\n\t\t\n\t\t\t\t// 1) Find locator for Google Search Box and sendkeys as Fresco Play as below.\n\t\t\t\tdriver.findElement(By.(\"\")).sendKeys(\"Fresco Play\");\n\t\t\t\t\n\t\t\t\t// 2) Find locator for Google Search Box and sendkeys as Enter as below.\n\t\t\t\tdriver.findElement(By.(\"\")).sendKeys(Keys.ENTER);\n\t\t\t\tThread.sleep(6000);\n\t\t\t\tSystem.out.println(\"Page Title : \" + driver.getTitle());\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t//Click \"Fresco Apps\" link from search list\n\t\t\t\t// 3) Find locator for Google Search Results and click Fresco Apps link.\n\t\t\t\tThread.sleep(5000);\n\t\t\t\tdriver.findElement(By.(\"\")).click();\n\t\t\t\tThread.sleep(5000);\n\t\t\t\tSystem.out.println(\"Page Title : \" + driver.getTitle());\n\t}", "title": "" }, { "docid": "ac0c92688320cca441265fbeab55f65e", "score": "0.61121815", "text": "public static void startAndOpenBrowser() {\n }", "title": "" }, { "docid": "c628d4090e1b5735129030650f8229bf", "score": "0.6111488", "text": "public static void main(String[] args) throws InterruptedException {\n System.setProperty(\"webdriver.chrome.driver\", \"drivers/chromedriver\");\n// Create an object of WebDriver interface\n WebDriver driver = new ChromeDriver();\n\n driver.manage().window().maximize();\n\n// .navigate().to(String URL)\n\n// navigate to ebay\n// driver.navigate().to(\"https://www.ebay.com/\");\n String ebayUrl = \"https://www.ebay.com/\";\n driver.navigate().to(ebayUrl);\n\n Thread.sleep(2000);\n\n// navigate to amazon\n driver.navigate().to(\"https://www.amazon.com/\");\n\n// navigate back to ebay\n driver.navigate().back();\n\n// get title and url of the current web page and\n\n String currentUrl = driver.getCurrentUrl();\n System.out.println(\"Current URL: \"+currentUrl);\n\n String currentTitle = driver.getTitle();\n\n Thread.sleep(2000);\n\n driver.navigate().forward();\n\n Thread.sleep(2000);\n\n driver.navigate().refresh();\n\n driver.close();\n\n\n }", "title": "" }, { "docid": "a481660c772f5558dfe25162816bc7ad", "score": "0.60874534", "text": "public void open_URL(String url)\r\n\t{\r\n\t\tdriver.get(url);\r\n\t\tdriver.manage().timeouts().pageLoadTimeout(21, TimeUnit.SECONDS);\r\n\t\tReporting(url + \" is opened.\", Status.DONE);\r\n\t}", "title": "" }, { "docid": "a32f187d6e87e4e4e03a3c70e309cf8b", "score": "0.6083357", "text": "@Parameters({\"browser\",\"appUrl\"})\r\n\t@BeforeTest\r\n\tpublic void openBrowser(String browser, String appUrl) throws Exception {\n\t\tRemoteWebDriver driver = null;\r\n\t\ttry{\r\n\t\t\tif(browser.equalsIgnoreCase(\"firefox\")){\r\n\t\t\t\tSystem.out.println(\"Firefox\"+browser+\" \"+appUrl);\r\n\t\t\t\tDesiredCapabilities capabilities = DesiredCapabilities.firefox();\r\n\t\t\t\tdriver = new RemoteWebDriver(new URL(\"http://192.168.1.184:4444/wd/hub\"), capabilities); \r\n\r\n\t\t\t}else if(browser.equalsIgnoreCase(\"chrome\")){\r\n\t\t\t\tSystem.out.println(\"chrome method\"+browser+\" \"+appUrl);\r\n\t\t\t\tDesiredCapabilities capabilities = DesiredCapabilities.chrome();\t\t\t\t\r\n\t\t\t\tdriver = new RemoteWebDriver(new URL(\"http://192.168.1.184:4444/wd/hub\"), capabilities);\r\n\r\n\t\t\t}else if(browser.equalsIgnoreCase(\"IE\")){\r\n\r\n\t\t\t\tSystem.out.println(\"IE method\"+browser+\" \"+appUrl);\r\n\t\t\t\tDesiredCapabilities capabilities = DesiredCapabilities.internetExplorer();\r\n\t\t\t\tdriver = new RemoteWebDriver(new URL(\"http://192.168.1.184:4444/wd/hub\"), capabilities);\r\n\t\t\t}\r\n\t\t\tsetDriver(driver);\r\n\t\t\tgetDriver().manage().timeouts().implicitlyWait(10,TimeUnit.SECONDS);\r\n\t\t\tgetDriver().manage().window().maximize();\r\n\t\t\tgetDriver().get(appUrl);\r\n\t\t} \r\n\t\tcatch(Exception e){\r\n\t\t\tthrow new Exception(e);\r\n\t\t}\r\n\r\n\t}", "title": "" }, { "docid": "77dbe1aa45b9c07e44011311ca5ad48a", "score": "0.60818624", "text": "public static void main(String[] args) throws InterruptedException {\n\t\t/*System.setProperty(\"webdriver.chrome.driver\", \"C:\\\\Users\\\\175524\\\\Downloads\\\\chromedriver.exe\");\n\t\tdriver = new ChromeDriver();\n\t\tdriver.get(URL);\t\t\n\t\twait = new WebDriverWait(driver,20);\t\t\n\n\t\tThread.sleep(3000L);\n\t\twait.until(ExpectedConditions.visibilityOfElementLocated(By.xpath(\"//*[@id='node-18']/div/div/div/div/div[3]/div/div/div[1]/ul/li[4]/a/img\")));\t\t\n\t\tdriver.findElement(By.xpath(\"//*[@id='node-18']/div/div/div/div/div[3]/div/div/div[1]/ul/li[4]/a/img\")).click();\n\t\tSet<String> windowHandles = driver.getWindowHandles();\n\t\tIterator<String> iter = windowHandles.iterator();\n\t\twhile(iter.hasNext()){\n\t\t\tparentWindow = iter.next();\n\t\t\tsecondWindow = iter.next();\n\t\t}\n\n\t\tSystem.out.println(parentWindow);\n\t\tSystem.out.println(secondWindow);\n\n\t\tdriver.switchTo().window(secondWindow);\n\t\twait.until(ExpectedConditions.visibilityOfElementLocated(By.xpath(\"//*[@id='home']/div[2]/div/div/div[1]/a/img\")));\n\t\tdriver.findElement(By.xpath(\"//*[@id='home']/div[2]/div/div/div[1]/a/img\")).click();\n\n\t\tdriver.switchTo().window(parentWindow);\n\t\tSystem.out.println(\"Switched\");\n\t\twait.until(ExpectedConditions.visibilityOfElementLocated(By.xpath(\"//div[@class='form-item form-type-textfield form-item-search-block-form']/input\")));\n\t\tThread.sleep(2000L);\n\t\tdriver.findElement(By.xpath(\"//div[@class='form-item form-type-textfield form-item-search-block-form']/input\")).sendKeys(\"FIRST PAGE\");\n\t\tThread.sleep(2000L);\n\t\tdriver.quit();*/\t\t\n\t\t\n\t\t\n\t//\tSystem.setProperty(\"webdriver.chrome.driver\", \"C:\\\\Users\\\\175524\\\\Downloads\\\\chromedriver.exe\");\n\t\t//driver = new ChromeDriver();//\n\t\t\n\t\t\n\t\t/*// ArrayList collections\n\t\tList<String> l = new ArrayList<String>();\n\t\tl.add(\"A\");\n\t\tl.add(\"A\");\n\t\tl.add(\"A\");\n\t\t\n\t\t//System.out.println(l.size());\n\t\t\n\t\t// Set collections\n\t\tSet<String> s = new TreeSet<String>();\n\t\ts.add(\"A\");\n\t\ts.add(\"A\");\n\t\ts.add(\"B\");\n\t\t\n\t\t//System.out.println(s.size());\n\t\t\n\t\tdriver.get(\"http://hdfc.com/\");\n\t\tWebDriverWait wait = new WebDriverWait(driver,20);\n\t\twait.until(ExpectedConditions.visibilityOfElementLocated(By.xpath(\"//*[@id='node-18']/div/div/div/div/div[3]/div/div/div[1]/ul/li[4]/a/img\")));\n\t\tdriver.findElement(By.xpath(\"//*[@id='node-18']/div/div/div/div/div[3]/div/div/div[1]/ul/li[4]/a/img\")).click();\t\t\n\t\t//System.out.println(driver.getWindowHandle());\n\t\t\n\t\tSet<String> windowHandles = driver.getWindowHandles();\n\t\tIterator<String> iter = windowHandles.iterator();\n\t\t\n\t\tString parentWindow = null;\n\t\tString secondWindow = null;\n\t\t\n\t\twhile(iter.hasNext()){\n\t\t\t\n\t\t\t parentWindow = iter.next();\n\t\t\t secondWindow = iter.next();\n\t\t\t\n\t\t}\n\t\t\n\t\tSystem.out.println(\"first wndow id \" + parentWindow);\n\t\tSystem.out.println(\"second Window \" + secondWindow);\n\t\t\n\t\t\n\t\tdriver.switchTo().window(secondWindow);\n\t\twait.until(ExpectedConditions.visibilityOfElementLocated(By.xpath(\"//*[@id='home']/div[2]/div/div/div[1]/a/img\")));\n\t\tdriver.findElement(By.xpath(\"//*[@id='home']/div[2]/div/div/div[1]/a/img\")).click();\n\t\tSystem.out.println(\"clicked in the second page.\");\n\t\t\n\t\tdriver.switchTo().window(parentWindow);\n\t\twait.until(ExpectedConditions.visibilityOfElementLocated(By.xpath(\"//*[@id='edit-search-block-form--2']\")));\n\t\tdriver.findElement(By.xpath(\"//*[@id='edit-search-block-form--2']\")).sendKeys(\"FIRST PAGE\");*/\n\t\t\n\t\t// HTML table\n\t\t/*driver.get(\"http://www.w3schools.com/Html/html_tables.asp\");\n\t\tWebDriverWait wait = new WebDriverWait(driver,20);\n\t\twait.until(ExpectedConditions.visibilityOfElementLocated(By.xpath(\"/html/body/div[4]/div/div[2]/div[2]/div[1]/div/table[1]/tbody\")));\n\t\tSystem.out.println(\"Waited\");\n\t\t\n\t\tWebElement tableBody=driver.findElement(By.xpath(\"html/body/div[4]/div/div[2]/div[2]/div[1]/div/table[1]/tbody\"));\n\t\tList<WebElement> rows = tableBody.findElements(By.tagName(\"tr\"));\n\t\tSystem.out.println(\"No of rows \" + rows.size());\n\t\t\n\t\t\n\t\tfor(int r=1;r<rows.size();r++){\t\t\t\n\t\t\tList<WebElement> cols =rows.get(r).findElements(By.tagName(\"td\"));\n\t\t\tfor(int c =0;c<cols.size();c++){\n\t\t\t\tSystem.out.print(cols.get(c).getText() + \" -- \");\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\t\t\n\t\t\n\t\tThread.sleep(5000L);\n\t\tdriver.quit();*/\n\t\t\n\t\t// FRAME APPLICATION\n\t\t\n\t\t/*driver = new FirefoxDriver();\n driver.navigate().to(\"file:///D:/index.html\"); \n \n driver.switchTo().frame(\"loginFrame\");\n //driver.switchTo().frame(0);\n wait = new WebDriverWait(driver,20);\n wait.until(ExpectedConditions.visibilityOfElementLocated(By.xpath(\"//*[@id='username']\"))); \n driver.findElement(By.xpath(\"//*[@id='username']\")).sendKeys(\"XXXXXXXXXXXX\");\n driver.findElement(By.xpath(\"//*[@id='password']\")).sendKeys(\"XXXXXXXXXXXX\");\n driver.findElement(By.xpath(\"//*[@id='submit']\")).click();\n Thread.sleep(3000L); \n driver.switchTo().alert().accept();\n driver.switchTo().defaultContent();\n driver.findElement(By.xpath(\"//*[@id='clickMe']\")).click();\n Thread.sleep(3000L);\n driver.switchTo().alert().accept();\n Thread.sleep(3000L);\n driver.quit();*/\n \n // Firefox profilling\n\t\t/*FirefoxProfile profile = new FirefoxProfile();\n profile.setAcceptUntrustedCertificates(true); \n // 0 --> download to desktop\n // 1 -- > downlaod to default download location\n // 2 -- your custom directory.\n \n profile.setPreference(\"browser.download.folderList\", 2);\n profile.setPreference(\"browser.download.dir\", System.getProperty(\"user.dir\")+\"\\\\Downloads\");\n profile.setPreference(\"browser.download.manager.showWhenStarting\", false);\n profile.setPreference(\"browser.helperApps.neverAsk.saveToDisk\", \"images/jpeg,application/pdf,text/csv\" +\n \",application/msword,image/jpeg,image/pjpeg,text/plain,application/plain,application/x-texinfo,application/x-texinfo,\" +\n \"application/octet-stream\");\n profile.setPreference(\"pdfjs.disabled\", true);\n\n\n driver = new FirefoxDriver(profile);\n driver.navigate().to(\"http://the-internet.herokuapp.com/download\");\n wait = new WebDriverWait(driver,20);\n wait.until(ExpectedConditions.visibilityOfElementLocated(By.xpath(\"//*[@id='content']/div/a[5]\")));\n driver.findElement(By.xpath(\"//*[@id='content']/div/a[1]\")).click();\n \n wait.until(ExpectedConditions.visibilityOfElementLocated(By.xpath(\"//*[@id='content']/div/a[6]\")));\n driver.findElement(By.xpath(\"//*[@id='content']/div/a[6]\")).click();\n \n wait.until(ExpectedConditions.visibilityOfElementLocated(By.xpath(\"//*[@id='content']/div/a[5]\")));\n driver.findElement(By.xpath(\"//*[@id='content']/div/a[5]\")).click();\n \n Thread.sleep(3000L);\n driver.quit();*/\n\t\t\n\t\t\n\t\t//System.out.println(System.getProperty(\"user.dir\"));\n DesiredCapabilities cap = DesiredCapabilities.firefox();\n cap.setCapability(CapabilityType.BROWSER_NAME, \"firefox\");\n \n \n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\n\t}", "title": "" }, { "docid": "78444b0395757252760beb05022e3b38", "score": "0.6073941", "text": "public static WebDriver createChrome(){\n System.setProperty(\"webdriver.chrome.driver\",\"chromedriver.exe\");\n //Abre o navegador e configura o timeout\n WebDriver navegador = new ChromeDriver();\n navegador.manage().timeouts().implicitlyWait(5, TimeUnit.SECONDS);\n //Expande a janela do navegador\n navegador.manage().window().maximize();\n //Acessa a pagina\n navegador.get(\"http://automationpractice.com/index.php\");\n //Retorna o navegador\n return navegador;\n }", "title": "" }, { "docid": "98bb0fe1b73cbb4ecde182cd616b80b9", "score": "0.60498345", "text": "public static void App_Launch() throws IOException {\n\n\t\tObject getConfigUrl = config.getProperty(\"applicationURL\");\n\t\tsystemUsername = System.getProperty(\"user.name\");\n\t\tString envBrowser = System.getProperty(\"envBrowser\");\n\t\t/*String[] parts = envBrowser.split(\"-\");\n\t\tString env = parts[0]; // 004\n\t\tString browser = parts[1];*/\n\t\t\n\t\t//Local Execution\n\t\tString env = \"ode1\";\n\t\tString browser = \"chrome\"; \n\t\t\n\n\n\t\tif (browser.contains(\"chrome\")) {\n\t\t\tWebDriverManager.chromedriver().setup();\n\t\t\tChromeOptions options = new ChromeOptions();\n\t\t\toptions.addArguments(\"--no-sandbox\");\n\t\t\toptions.addArguments(\"--disable-dev-shm-usage\");\n\t\t\toptions.setExperimentalOption(\"useAutomationExtension\", false);\n\t\t\tif (browser.contains(\"headless\")) {\n\t\t\t\toptions.addArguments(\"headless\");\n\t\t\t\toptions.addArguments(\"window-size=1200x800\");\n\t\t\t}\n\t\t\tdriver = new ChromeDriver(options);\n\t\t\tdriver.manage().deleteAllCookies();\n\t\t} else if (browser.contains(\"firefox\")) {\n\n\t\t\tSystem.setProperty(\"webdriver.gecko.driver\", System.getProperty(\"user.dir\") + \"/DriverJenkins/geckodriver\");\n\t\t\tFirefoxOptions options = new FirefoxOptions();\n\t\t\tif (browser.contains(\"headless\")) {\n\t\t\t\toptions.addArguments(\"-headless\");\n\t\t\t\toptions.addArguments(\"window-size=1200x800\");\n\t\t\t}\n\t\t\tdriver = new FirefoxDriver(options);\n\t\t\tdriver.manage().deleteAllCookies();\n\t\t}\n\n\t\telse if (browser.contains(\"safari\")) {\n\n\t\t\tSafariOptions options = new SafariOptions();\n\t\t\tif (browser.contains(\"headless\")) {\n\t\t\t\t //options.addArguments(\"-headless\");\n\t\t\t\t //options.addArguments(\"window-size=1200x800\");\n\t\t\t}\n\t\t\tdriver = new SafariDriver(options);\n\t\t\tdriver.manage().deleteAllCookies();\n\t\t}\n\n\t\t// driver = new HtmlUnitDriver();\n\t\tURL = \"https://uat:watchoutforsharks@uat.purple.com/\";\n\t\t//URL = \"https://staging:watchoutforsharks@staging.purple.com/\";//\"https://purple\" + env + getConfigUrl.toString();\n\t\tSystem.out.println(URL);\n\t\tdriver.get(URL);\n\n\n\t}", "title": "" }, { "docid": "db975f7182b51980be95b17d2902dbcf", "score": "0.6029982", "text": "public void openBrowser(String brname){\r\n\t\t\t\t\r\n\t if(brname.equals(\"IE\")){\r\n\t\t\t\t\r\n\t\t\tSystem.out.println(\"IE Launching\");\r\n\t\t System.setProperty(\"webdriver.ie.driver\", \r\n\t\t\t\"C:\\\\SeleniumSoftware\\\\IEDriverServer_x64_2.53.0\\\\IEDriverServer.exe\"); \r\n\t\t\tdriver=new InternetExplorerDriver();\r\n\t} else if(brname.equals(\"chrome\")){\r\n\t\t\t\t\r\n \r\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", \r\n\t\t\t\t\"C:\\\\SeleniumSoftware\\\\chromedriver_win32\\\\chromedriver.exe\");\r\n\t\tdriver=new ChromeDriver(); \r\n\t\t\r\n\t \r\n\t}else if(brname.equals(\"Firefox\")){\r\n\t\t\r\n\t\tdriver=new FirefoxDriver();\r\n\t}\r\n\telse{\r\n\t\tSystem.out.println(brname +\"::Specified browser is not defined to launch\");\r\n\t}\r\n \r\n\t \r\n\t // window max\r\n\tdriver.manage().window().maximize();\r\n\t\t\r\n\t}", "title": "" }, { "docid": "158bf1df1231af960bcb5e0b2d75f76a", "score": "0.6028377", "text": "public static void intializationoftasks() throws IOException {\n\t\t\n\t\tWebDriverManager.chromedriver().setup();\n\t\tdriver=new ChromeDriver();\n\t\tdriver.manage().window().maximize();\n\t\tevent_driver=new EventFiringWebDriver(driver);\n\t\teventlistener=new WebdriverEventListener();\n\t\tevent_driver.register(eventlistener);\n\t\tdriver=event_driver;\n\t\t//TimeUtils is class where we declare our timeouts of the project\n\t\tdriver.manage().timeouts().implicitlyWait(TimeUtilsClass.IMPLICIT_TIME_OUT, TimeUnit.SECONDS);\n\t\tdriver.get(prop.getProperty(\"url\"));\n\t\t\n\t}", "title": "" }, { "docid": "9a39d7c26bdf36e6948026662fc6e77d", "score": "0.6024732", "text": "@Given(\"^Launch the browser$\")\n\tpublic void launch_the_browser() throws Throwable {\n\t\t\n\t driver = new FirefoxDriver();\n\t\t\n\t \n\t}", "title": "" }, { "docid": "c7c64ab4cf95bb069b7aa7119b83069a", "score": "0.6023762", "text": "@Given(\"^that the User has launch chrome browser to open google home page$\")\r\n\tpublic void that_the_User_has_launch_chrome_browser_to_open_google_home_page()throws Throwable {\n\t\tdriver = helperMethods.BrowserFactory.open(\"chrome\");\r\n\t\tdriver.manage().window().maximize();\r\n\t\tdriver.manage().timeouts().implicitlyWait(15, TimeUnit.SECONDS);\r\n\t\t driver.get(\"https://www.google.com\");\r\n\t \t\r\n\t}", "title": "" }, { "docid": "af9a2299f2871a56bd3ff40d1e48f45d", "score": "0.60181314", "text": "public static void main(String[] args) {\n\t WebDriver driver = new FirefoxDriver();\n\t alert(\"Brower opened\");\n\t driver.navigate().to(\"http://www.google.com/\");\n\t //((JavascriptExecutor) driver).executeScript(script);\n\t \t//InternetExplorerDriver driver = new InternetExplorerDriver();\n\t \n\t \tdriver.manage().window().maximize();\n\t \n\t \n\t }", "title": "" }, { "docid": "a19f72e48d2b23359691610cf240930b", "score": "0.60155606", "text": "private CustomFirefoxDriver() {\n\n System.setProperty(\"webdriver.gecko.driver\", \"bin/geckodriver.exe\");\n\n DesiredCapabilities capabilities = new DesiredCapabilities();\n capabilities.setPlatform(Platform.WINDOWS);\n capabilities.setBrowserName(\"firefox\");\n\n FirefoxOptions options = new FirefoxOptions();\n options.setBinary(\"C:\\\\Program Files\\\\Mozilla Firefox\\\\firefox.exe\");\n capabilities.merge(options);\n\n try {\n remoteWebDriver = new RemoteWebDriver(new URL(HUB), capabilities);\n } catch (MalformedURLException e) {\n System.err.println(\"Couldn't reach HUB\");\n e.printStackTrace();\n }\n\n\n wait = new WebDriverWait(remoteWebDriver, 10);\n\n remoteWebDriver.manage().timeouts().pageLoadTimeout(30, TimeUnit.SECONDS);\n remoteWebDriver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS);\n remoteWebDriver.manage().window().maximize();\n\n }", "title": "" }, { "docid": "15feb3b8fb9b7ace1eb0dce36a9f1784", "score": "0.6013842", "text": "@Given(\"^user is on admin UI login page$\")\r\npublic void Open_Firefox_start_application() throws Throwable {\r\n \r\n\tSystem.setProperty(\"webdriver.firefox.marionette\", \"geckodriver.exe\");\r\ndriver = new FirefoxDriver();\r\ndriver.manage().timeouts().implicitlyWait(20000,TimeUnit.SECONDS);\r\ndriver.get(\"https://ori-opsadmin-tst.optum.com/\");\r\n//FirefoxProfile profile=new FirefoxProfile();\r\n//profile.setAcceptUntrustedCertificates(true);\r\n//driver.get(\"pass the url as per your requirement\");\r\n}", "title": "" }, { "docid": "d8bb07bbc8688fa3397130a29f255b27", "score": "0.60138077", "text": "public static void main(String[] args) throws InterruptedException {\n\t\tString chromedriverpath = System.getProperty(\"user.dir\")+\"\\\\BrowserDrivers\\\\chromedriver.exe\";\n\t\t//System.out.println(chromedriverpath);\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", chromedriverpath);\n\t\t//Launch the chrome browser\n\t\tWebDriver driver = new ChromeDriver();\n\t\t//Launch the application\n\t\tdriver.get(\"https://www.fb.com\");\n\t\t//Getting Title\n\t\t/*String title = driver.getTitle();\n\t\tSystem.out.println(title);\n\t\tString URL = driver.getCurrentUrl();\n\t\tSystem.out.println(URL);*/\n\t\tdriver.manage().window().maximize();\n\t\tThread.sleep(5000);\n\t\t/*driver.navigate().back();\n\t\tdriver.navigate().to(\"https://www.google.com\");*/\n\t\tdriver.close();\n\t\t//driver.navigate().forward();\n\t\t\n\t\t/*\n\t\t//Setting Fireox Browser Path\n\t\tString firefoxdriverpath = System.getProperty(\"user.dir\")+\"\\\\BrowserDrivers\\\\geckodriver.exe\";\n\t\t//System.out.println(firefoxdriverpath);\n\t\tSystem.setProperty(\"webdriver.gecko.driver\", firefoxdriverpath);\n\t\t//Launch the firefox browser\n\t\tdriver = new FirefoxDriver();*/\n\t\t\n\t\t\t\t\n\t\t/*//Setting internet explorerBrowser Path\n\t\tString iedriverpath = System.getProperty(\"user.dir\")+\"\\\\BrowserDrivers\\\\iedriverserver.exe\";\n\t\t//System.out.println(iedriverpath);\n\t\tSystem.setProperty(\"webdriver.ie.driver\", iedriverpath);\n\t\t\n\t\t//Launch the internet explorer browser\n\t\tWebDriver driver = new InternetExplorerDriver();*/\n\t}", "title": "" }, { "docid": "e7ef3dba02e7b5c952247beb5ee17ee6", "score": "0.6012645", "text": "@BeforeTest\n public void beforeTest() {\n\t\td1=new FirefoxDriver();\n\t\tw1=new WebDriverWait(d1,20);\n\t\td1.get(\"https://hdfcbank.com/\");\n\t\td1.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);\n\t\td1.manage().window().maximize();\n }", "title": "" }, { "docid": "da406c7feaa72ed9705b8d812f68e99a", "score": "0.59997576", "text": "@Test\n\tpublic void startApp()\n\t {\n\t driver.get(\"https://orangehrm-demo-6x.orangehrmlive.com/\");\n\t driver.manage().window().maximize();\n\t driver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS);\n\t String currentUrl=driver.getCurrentUrl();\n\t Assert.assertTrue(currentUrl.contains(\"demo-6x.orangehrmlive.com\"));\n\t System.out.println(\"Application loaded\");\n\t }", "title": "" }, { "docid": "c5ff5d2fa3de42d69793eebb5416bca7", "score": "0.5998949", "text": "public void launchBrowser(String url) {\n\t\t\t\tdriver.get(url);\n\t\t\t}", "title": "" }, { "docid": "075e7d5ea305958fc3dacabd075bdcad", "score": "0.5991306", "text": "public static void main(String[] args) throws InterruptedException \r\n\t{\r\n\t\t\r\n\t\tSystem.out.println(\"\\t* * * Program to Launch Browser and Load Facebook URL* * * \\n Enter C-ChromeBrowser, F-FireFox Browser\");\r\n\t\tScanner input = new Scanner(System.in);\r\n\t\tchar ipBrowser=input.next().charAt(0); \r\n\t\tinput.close();\r\n\t\t\r\n\t\tswitch (ipBrowser) \r\n\t\t{\r\n\t\t\tcase 'C':\r\n\t\t\t\tWebDriverManager.chromedriver().setup();\r\n\t\t\t\tChromeDriver CDriver = new ChromeDriver();\r\n\t\t\t\tSystem.out.println(\"The Chrome Browser is launched\");\r\n\t\t\t\tCDriver.get(\"https://www.facebook.com/\");\r\n\t\t\t\tCDriver.manage().window().maximize();\r\n\t\t\t\tSystem.out.println(\"The Title from Chrome Browser:\" +CDriver.getTitle());\r\n\t\t\t\tThread.sleep(5000);\r\n\t\t\t\tCDriver.manage().window().minimize();\r\n\t\t\t\tSystem.out.println(\"The Chrome Browser is Minimized\" +CDriver.getPageSource());\r\n\t\t\t\tThread.sleep(5000);\r\n\t\t\t\tCDriver.close();\r\n\t\t\t\tSystem.out.println(\"The Chrome Browser is Closed\");\r\n\t\t\tbreak;\r\n\t\t\t\r\n\t\t\tcase 'F':\r\n\t\t\t\tWebDriverManager.firefoxdriver().setup();\r\n\t\t\t\tFirefoxDriver FDriver = new FirefoxDriver();\r\n\t\t\t\tSystem.out.println(\"The Firefox Browser is launched\");\r\n\t\t\t\tFDriver.get(\"https://www.facebook.com/\");\r\n\t\t\t\tFDriver.manage().window().maximize();\r\n\t\t\t\tSystem.out.println(\"The Title from Firefox Browser:\" +FDriver.getTitle());\r\n\t\t\t\tThread.sleep(5000);\r\n\t\t\t\tFDriver.manage().window().minimize();\r\n\t\t\t\tSystem.out.println(\"The Firefox Browser is Minimized\" +FDriver.getPageSource());\r\n\t\t\t\tThread.sleep(5000);\r\n\t\t\t\tFDriver.close();\r\n\t\t\t\tSystem.out.println(\"The Firefox Browser is Closed\");\r\n\t\t\tbreak;\r\n\r\n\t\t\tdefault:\r\n\t\t\tSystem.out.println(\"A Wrong Character ' \" +ipBrowser+ \"'is entered! ! ! \\nPlease enter either of the mentioned characters\");\r\n\t\t\tbreak;\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t}", "title": "" }, { "docid": "66ea1050ed00975933c54c847ddca9f6", "score": "0.59897053", "text": "@BeforeTest\r\n public void setUp()\r\n {\n driver = new FirefoxDriver();\r\n\r\n homePage = new HomePage(driver);\r\n servicesPage = new ServicesPage(driver);\r\n casesPage = new CasesPage(driver);\r\n jobsPage = new JobsPage(driver);\r\n\r\n driver.manage().window().maximize();\r\n driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);\r\n driver.get(\"http://www.valtech.com/\");\r\n\r\n DesiredCapabilities capabilities = DesiredCapabilities.chrome();\r\n\r\n capabilities.setCapability(\"chrome.switches\", Arrays.asList(\"--disable-extensions\"));\r\n }", "title": "" }, { "docid": "3c12113b409e97bb431b1c85a032490e", "score": "0.59893656", "text": "@BeforeTest\n\tpublic void browserSetup() throws Exception {\n\t\tConfigReader.readConfigData();\n\t\tSystem.out.println(ConfigReader.browser);\n\t\tInitializeBrowser(ConfigReader.browser);\n\t\tgetWebDriver().manage().timeouts().pageLoadTimeout(30, TimeUnit.SECONDS);\n\t\tgetWebDriver().manage().timeouts().implicitlyWait(20, TimeUnit.SECONDS);\n\t\tPropertyConfigurator.configure(\"log4j.properties\");\n\t\tlogger.info(\"-----maximizing the browser window-----\");\n\t\tBaseTest.getWebDriver().manage().window().maximize();\n\t\tlogger.info(\"Navigated to Blaze Demo Website\");\n\t\tBaseTest.getWebDriver().get(ConfigReader.url);\n\t}", "title": "" }, { "docid": "c0dd498c3c3303dbad3f00f7c3a1815a", "score": "0.5975365", "text": "public static void main(String[] args) {\n Setupdriver(\"mac\",\"https://google.com\",\"chrome\");\n\n try {\n Thread.sleep(5000);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n driver.quit();\n //driver.close();\n\n }", "title": "" }, { "docid": "845608d5c69ec843fb85e3dee3e81961", "score": "0.59711915", "text": "public static void main(String[] args) throws Throwable {\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"C://Program Files//chromedriver.exe\");\r\n\t WebDriver driver=new ChromeDriver();\r\n\t driver.get(\"https://www.orbitz.com/\");\r\n\t String homewin= driver.getWindowHandle();\r\n\t System.out.println(homewin);\r\n\t System.out.println(driver.getCurrentUrl());\r\n\t driver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS);\r\n\t driver.manage().window().maximize();\r\n\t WebElement child= driver.findElement(By.id(\"EG-logo\"));\r\n\t child.click();\r\n\t Thread.sleep(4000);\r\n\t Set<String> allwindows= driver.getWindowHandles();\r\n\t //// int count=allwindows.size();\r\n\t //System.out.println(count);\r\n\t for(String win:allwindows)\r\n\t {\r\n\t \t if(!homewin.equalsIgnoreCase(win))\r\n\t \t {\r\n\t \t\t driver.switchTo().window(win);\r\n\t \t\tSystem.out.println(driver.getTitle());\r\n\t \t\t\r\n\t \t\tWebElement child1= driver.findElement(By.xpath(\"//*[@id='menu-item-5622']/a\"));\r\n\t \t\tchild1.click();\r\n\t \t \r\n\t \r\n\t \t\tSet<String> allwindows1= driver.getWindowHandles();\r\n\t \t\t//int count1=allwindows1.size();\r\n\t \t\t//System.out.println(count1);\r\n\t \t \r\n\t \t\tfor(String win1:allwindows1)\r\n\t \t\t{\r\n\t \t\t\tif(!win.equalsIgnoreCase(win1))\r\n\t \t\t\t\tdriver.switchTo().window(win1);\r\n\t \t\t\t\r\n\t \t\t\tSystem.out.println(driver.getCurrentUrl());\r\n\t \t\t}\r\n\t \t }\r\n\t }\r\n\t \t\t\r\n\t \t\tSystem.out.println(driver.getTitle());\r\n\t \t \t \r\n\t \r\n\t Thread.sleep(4000);\r\n\t driver.quit();\r\n\t}", "title": "" }, { "docid": "6efdaf382b4bc4537bdd28710999fe06", "score": "0.59634084", "text": "@BeforeTest\r\n\tpublic void openBrowser() throws IOException{\n\t\t\r\n\t\tFileInputStream fis = new FileInputStream(\"C:\\\\Users\\\\Rajesh\\\\workspace\\\\FBTest\\\\config.properties\");\r\n\t\tproperties.load(fis);\r\n\t\t\r\n\t\tSystem.out.println(\"Browser invoked\");\r\n\t\tSystem.setProperty(\"webdriver.chrome.driver\",\"C:\\\\Users\\\\Rajesh\\\\Downloads\\\\chromedriver_win32\\\\chromedriver.exe\");\r\n\t\tSystem.out.println(\"Opening the browser\");\r\n\t\tdriver=new ChromeDriver();\r\n\t\tSystem.out.println(\"Invoking the url\");\r\n\t\t\r\n\t\t\r\n\t}", "title": "" }, { "docid": "c64870b40ea28af054a87ddf73b76823", "score": "0.59570783", "text": "public void setBrowser() {\n System.setProperty(\"webdriver.chrome.driver\", \"C:\\\\soft\\\\chromedriver.exe\");\n //creating object to open chrome driver\n ChromeOptions options = new ChromeOptions();\n options.setExperimentalOption(\"excludeSwitches\", new String[]{\"enable-automation\"});\n options.setExperimentalOption(\"useAutomationExtension\", false);// allows to avoid chrome pop ups while running programme\n driver = new ChromeDriver();\n driver.manage().window().maximize();\n driver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS);\n driver.get(\"https://demo.nopcommerce.com/\");\n\n\n }", "title": "" }, { "docid": "d1979e04c35041b9c298d092b9aee436", "score": "0.59560615", "text": "public static void main(String[] args) throws InterruptedException {\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"C:\\\\Users\\\\Saiful\\\\Desktop\\\\chromedriver.exe\");\n\t\tWebDriver driver=new ChromeDriver();\n\t\tdriver.get(\"http://spicejet.com\");\n\t\tdriver.manage().window().maximize();\n\t\tSystem.out.println(driver.getTitle());\n\t\tSystem.out.println(driver.getCurrentUrl());\n//\t\tdriver.manage().timeouts().implicitlyWait(TimeUnit,20);\n\t\tdriver.findElement(By.cssSelector(\"#ctl00_mainContent_ddl_originStation1_CTXT\")).click();\n\t\tdriver.findElement(By.xpath(\"//a[@text='Bhopal (BHO)']\")).click();\n\t\tdriver.findElement(By.xpath(\"(//a[@text='Jaipur (JAI)'] )[2]\")).click();\n\t\t//We can use the parent child relaship xpath for the step 19 as well\n\t\tThread.sleep(2000);\n\t\t//driver.findElement(By.xpath(\"//input[@id='ctl00_mainContent_view_date1']\")).click();\n\t\tdriver.findElement(By.cssSelector(\".ui-state-default.ui-state-highlight.ui-state-active\")).click();\n//\t\tActions ac = new Actions(driver);\n//\t\tac.moveToElement(driver.findElement(By.xpath(\"//div[@id='divpaxinfo']\"))).perform();\n\t\tThread.sleep(2000);\t\n\t\n\t\tdriver.findElement(By.xpath(\"//div[@id='divpaxinfo']\")).click();\n\t\tThread.sleep(2000);\n\t\tSelect sa=new Select(driver.findElement(By.xpath(\"//select[@id='ctl00_mainContent_ddl_Adult']\")));\n\t\tsa.selectByValue(\"2\");\n\t\tThread.sleep(2000);\n\t\tSelect sc=new Select(driver.findElement(By.xpath(\"//select[@id='ctl00_mainContent_ddl_Child']\")));\n\t\tsc.selectByValue(\"3\");\n\t\tThread.sleep(2000);\n\t\tSelect si=new Select(driver.findElement(By.xpath(\"//select[@id='ctl00_mainContent_ddl_Infant']\")));\n\t\tsi.selectByValue(\"1\");\n\t\tThread.sleep(2000);\n\t\tSelect s=new Select(driver.findElement(By.xpath(\"//select[@id='ctl00_mainContent_DropDownListCurrency']\")));\n\t\ts.selectByVisibleText(\"USD\");\n\t\tdriver.findElement(By.xpath(\"//input[@id='ctl00_mainContent_chk_friendsandfamily']\")).click();\n\t\tdriver.findElement(By.xpath(\"//input[@id='ctl00_mainContent_btn_FindFlights']\")).click();\n\n\t}", "title": "" }, { "docid": "44cca9389a632b59a983063a1c1e0031", "score": "0.5954262", "text": "protected void openURL(String url) {\n if (url != null || url.length() != 0) {\n System.out.println(\"Given url inside method: \"+url);\n webDriver.get().get(url);\n webDriver.get().manage().window().maximize();\n webDriver.get().manage().timeouts().implicitlyWait(100, TimeUnit.SECONDS);\n } else {\n System.out.println(\"Not A valid URL.\");\n }\n }", "title": "" }, { "docid": "bb9bc8b296da7b49bba2f075b7a1b02a", "score": "0.59505135", "text": "public static void main(String[] args) {\nSystem.setProperty(\"webdriver.chrome.driver\", \"Driver/chromedriver.exe\");\n WebDriver browser =new ChromeDriver();\n //String b = \"https://www.netflix.com/YourAccount\";\n browser.get(\"https://www.netflix.com/YourAccount\");\n browser.get(\"https://classroom.google.com\");\n browser.get(\"https://www.youtube.com\");\n \n \n\t\n\tbrowser.manage().window().maximize();\n\t browser.navigate().back();\n\t browser.navigate().back();\n\t browser.quit(); \n\t \t\n\t\n\t}", "title": "" }, { "docid": "3fccacaaf474e0cf96a8c7343a00a52a", "score": "0.59431416", "text": "public static void main(String[] args) throws InterruptedException {\n\t\tFirefoxDriver driver=new FirefoxDriver();\n\t\tThread.sleep(2000);\n\t\tdriver.get(\"http://www.google.com\");\n\t\tThread.sleep(2000);\n\t\tdriver.navigate().to(\"http://www.gmail.com\");\n\t\tThread.sleep(2000);\n\t\tdriver.navigate().back();\n\t\tThread.sleep(2000);\n\t\tdriver.navigate().forward();\n\t\tThread.sleep(2000);\n\t\tdriver.navigate().refresh();\n\t\tThread.sleep(2000);\n\t\tdriver.quit();\n\t}", "title": "" }, { "docid": "4119ed8cc103274d94a7edffdeac4eba", "score": "0.5942499", "text": "@Before\n public void start() {\n driver = new ChromeDriver();\n //////////////////////For Safari ////////////////////\n //driver = new SafariDriver();\n/////////////////////////////////////////////////////////////\n////////////////////////////////////////////////////////////\n\n driver.manage().timeouts().implicitlyWait(40, TimeUnit.SECONDS);\n }", "title": "" }, { "docid": "85ba79d5dfde5836d5d8aa4a7c4fa96a", "score": "0.5919925", "text": "public static void open(String url) {\n driver.get(url);\n driver.manage().window().maximize();\n }", "title": "" }, { "docid": "8de5ec7006ba05221fbc654237079e9b", "score": "0.5912885", "text": "@Test\npublic void ViewHistory() throws InterruptedException {\n\tlogger.info(\"Launching MonekyUser Website\");\n\tMU_ComicsList cl = new MU_ComicsList(driver);\t\n cl.ClickComicList();//Clinking The ComicList link\n logger.info(\"Clicking the ComicsList link \");\n // Thread.sleep(200);\n //Scroll Down on Salary Deposit\n\tJavascriptExecutor js = (JavascriptExecutor) driver;\n\tjs.executeScript(\"window.location = 'https://www.monkeyuser.com/toc/'\");//using javascript for navigating\n\tObject height = js.executeScript(\"return window.innerHeight;\");\n\tSystem.out.println(\"The height of Window \" +height);\n\tObject width = js.executeScript(\"return window.innerHeight;\");\n\tSystem.out.println(\"The Width of Window \" +width);\n\tlogger.info(\"Navigating the page by using Javascript\");\n\t/*WebElement element = driver.findElement(By.xpath(\"/html/body/div[3]/div[1]/div/div/div[191]/div/div/a[1]\"));\n\t(js).executeScript(\"arguments[0].scrollIntoView();”,element);\");*/\n\tThread.sleep(200);\n\tlogger.info(\"Views Comic History\");\n\t\n\t\n}", "title": "" }, { "docid": "c087efc2b8c9ae5bef8d32579d02e8ba", "score": "0.59032124", "text": "public void openApp()\t{\n\n\t\tstopLoadingPage();\n\t\tdriver.manage().deleteAllCookies();\n\t\tString URL = StaticDataManager.data.get(\"URL\");\n\n\t\tif(Environment.equalsIgnoreCase(\"live\")){\n\t\t\tdriver.get(URL);\n\t\t\tLOG.info(\"Go to Url :\" + URL);}\n\t\telse{\n\t\t\tURL = URL.replace(\"https://\", \"https://\"+Environment+\"-\");\n\t\t\tString originalURL = URL;\n\t\t\tif(Environment.contains(\"uat\") && !Environment.contains(\"origin\")){\n\t\t\t\tURL=URL.replaceAll(\"\\\\?site=chanel\", \"us/home\");\n\n\t\t\t}\n\t\t\tif(!(Environment.contains(\"origin\"))){\n\t\t\t\tURL = URL.replace(\"https://\",\"https://boycapel%2f75008:boycapel%2f75008@\");\n\t\t\t\tLOG.info(\"Use url test :\" + URL);\n\t\t\t}\n\t\t\tLOG.info(\"Driver get Url :\" + URL);\n\t\t\tdriver.get(URL);\n\t\t\tdriver.get(originalURL);\n\t\t\tLOG.info(\"Refresh Url without login / pwd :\" + originalURL);\n\t\t}\n\n\t\tURL = driver.getCurrentUrl();\n\t\twaitForPageToLoad();\n\t\t//jsClickOn(MasterPage.btnSearch_Header.value);\n\t\t//waitForToBeVisibleBy(By.xpath(\"//html//ul[@class='nav-right']/li[1]\"));\n\t\tLOG.info(\"Element clickable\");\n\n\n\t\twaitForToBeVisibleBy(HomePage.imgLogo);\n\t\tif(isDisplayed(HomePage.imgLogo)){\n\t\t\tReport.updateTestStepLog(\"Open Application\", \"Launched Website successfully <b>\"+URL+\"</b>\", \"Pass\");\n\t\t\tLOG.info(\"Launched Website successfully\");}\n\t\telse{\n\t\t\tReport.updateTestStepLog(\"Open Application\", \"Unable to launch the application\", \"Fail\");\n\t\t\tLOG.info(\"Unable to launch the application\");}\n\n\t\t// To print the deployed version updated on 10-Oct-2018\n\t\tString pageSource = driver.getPageSource();\n\t\tpageSource=pageSource.replaceAll(\"\\n\", \"\");\n\n\t\t//getting the version of the website\n\t\tint index = pageSource.indexOf(\"Version : \");\n\t\tString actual = pageSource.substring(index-5, index+21).replace(\"<!\", \"\").replace(\">\", \"\");\n\t\tReport.updateTestStepLog(\"Deployed version\", \"Deployed version : \"+actual+\"</b>\", \"Info\");\n\n\n\t\tOrderDetails.initialize();\n\n\t\tDynamicDataManager.initializeAllDynamicData();\n\t\tDynamicDataManager.miscellenousData.put(\"HomeURL\", URL);\n\n\n\n\n\t}", "title": "" }, { "docid": "247383aaa7e44a4f9afb460ff9645747", "score": "0.58886224", "text": "public void Launch() \n{\n\tpath=System.getProperty(\"user.dir\")+\"//Browser//chromedriver.exe\";\n\t//System.out.println(path);\n\t\n\t// Step 2 Set Dynamic Path\n\tSystem.setProperty(\"webdriver.chrome.driver\", path);\n\t\n\t//Step 3 Initialize ChromeDriver\n\tdriver=new ChromeDriver();\n\t\n\t//Step -4 Open Browser in maximize mode\n\tdriver.manage().window().maximize();\n\t\n\t//Step 5: Open Url of the application\n\tdriver.get(\"file://C:/Courseware/HTML/form.html\");\n\t\n\t//Step 6: Selecting Chandigarh from Drop down List\n\tSelect slt=new Select(driver.findElement(By.id(\"sltcities\")));\n\tslt.selectByIndex(1);\n\t//slt.selectByValue(\"Chandigarh\");\n\t//slt.selectByVisibleText(\"Chandigarh\");\n}", "title": "" }, { "docid": "d673553c8b7e022110de8c49db3ec1ef", "score": "0.58866477", "text": "public static void main(String[] args) throws InterruptedException {\n\n\t\t\n\t\tIntializeWebDriver ie=new IntializeWebDriver();\n\t\tWebDriver driver =ie.getdriver(\"Chrome\");\n\t\tdriver.get(\"http://demo.guru99.com/test/guru99home/\");\n\t\tString mainwindow=driver.getWindowHandle();\n\t\tSystem.out.println(mainwindow);\n\t\t\n\t\tdriver.switchTo().frame(\"_mN_main_224278574_0_n\");\n\t\tdriver.findElement(By.linkText(\"Cyber Security Training\")).click();\n\t\t\n\t\tSet<String>allwindows=driver.getWindowHandles();\n\t\tSystem.out.println(allwindows);\n\t\t\n\t\tfor(String windows:allwindows) {\n\t\t\tif(!windows.equals(mainwindow)) {\n\t\t\t\tdriver.switchTo().window(windows);\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t\tThread.sleep(2000);\n\t\tdriver.close();\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t}", "title": "" }, { "docid": "82a894fc3daa4c55968e5795def274ea", "score": "0.5883936", "text": "@Test(priority=0,description=\"Creation of a CR Ticket\",enabled=true)\n\t private void testChromeSearch() throws IOException {\n\t\t logger = extent.createTest(\"Sample\");\t\n\t\t\n\t\t \n\t\t \n\t\t \n\t\t String ChromeDrivers = Capabilities.getPropertyValue(\"ChromeDrivers\");\n\n\nfinal ChromeOptions options = new ChromeOptions();\n\t\t \noptions.addArguments(\"--test-type\",\"ignore-certifcate-errors\");\n\noptions.addArguments(\"start-maximized\"); // https://stackoverflow.com/a/26283818/1689770\n options.addArguments(\"enable-automation\"); // https://stackoverflow.com/a/43840128/1689770\n // options.addArguments(\"--headless\"); // only if you are ACTUALLY running headless\n // options.addArguments(\"--no-sandbox\"); //https://stackoverflow.com/a/50725918/1689770\n // options.addArguments(\"--disable-infobars\"); //https://stackoverflow.com/a/43840128/1689770\n // options.addArguments(\"--disable-dev-shm-usage\"); //https://stackoverflow.com/a/50725918/1689770\n options.addArguments(\"--disable-browser-side-navigation\"); //https://stackoverflow.com/a/49123152/1689770\n // options.addArguments(\"--disable-gpu\"); //https://stackoverflow.com/questions/51959986/how-to-solve-selenium-chromedriver-timed-out-receiving-message-from-renderer-exc\n//disabled for temporaily bindu for debugging\n//options.addArguments(\"chrome.switches\",\"--disable-extensions\");\n\nChromeDriverService driverService = new ChromeDriverService.Builder().usingDriverExecutable(new File(\"./Properties/chromedriver.exe\")).usingAnyFreePort().build();\n\tdriverService.start();\n//log.info(\"Chrome driver instance is intiated successfully\n\tWebDriver driver=new ChromeDriver((ChromeDriverService) driverService, options);\n\t\t\t//System.setProperty(\"webdriver.chrome.driver\",ChromeDrivers);\n\t\t\t//WebDriver driver=new ChromeDriver();\n\t\t\tdriver.get(\"http://thomsonreutersqa.service-now.com\");\n\t\t\tWebElement e =driver.findElement(By.id(\"USER\"));\n\t\t\te.sendKeys(\"X011746\");\n\t\t\tWebElement e1= driver.findElement(By.id(\"PASSWORD\"));\n\t\t\te1.sendKeys(\"Numan#220193\");\n\t\t\t driver.findElement(By.id(\"safeLoginbtn\")).click();\n\t\t\t driver.quit();\n\t\t\t Assert.assertTrue(true);\n\t\t\t\tlogger.log(Status.PASS, MarkupHelper.createLabel(\"Test Case Passed is Creation of a CR Ticket\", ExtentColor.GREEN));\n\t\t}", "title": "" }, { "docid": "618daf6fae7203c8c1fa53be873e5c54", "score": "0.58729464", "text": "private void loadPage(String previousUrl, String targetUrl ,Wait wait) {\n\t\tWebDriverWait driverWait = waitUntil(wait);\n\t\tExpectedCondition<Boolean> finishedLoading = new ExpectedCondition<Boolean>() {\n\t\t\tpublic Boolean apply(WebDriver d) {\n\t\t\t\treturn (d.getCurrentUrl() != previousUrl);\n\t\t\t}\n\t\t};\n\t\tdriver().get(targetUrl);\n\t\tdriverWait.until(finishedLoading);\n\t}", "title": "" }, { "docid": "02407c72bab2fb868e9ad1ec1bf4518a", "score": "0.5866963", "text": "public static void main(String[] args) {\n System.setProperty(\"webdriver.chrome.driver\", \"C:/Users/asus/Documents/selenium dependencies/drivers/chromedriver.exe\");\n WebDriver driver = new ChromeDriver();\n driver.get(\"https//www.facebook.com\");\n\n String facebookTitle = driver.getTitle();\n System.out.println(\"facebookTitle :\" + facebookTitle);\n if (facebookTitle.toLowerCase(Locale.ROOT).contains(\"facebook\")) {\n System.out.println(\"baslik dogrudur\");\n } else {\n System.out.println(\"baslik dogru degildir\");\n System.out.println(\"actual Title :\" + facebookTitle);\n }\n String faceUrl = driver.getCurrentUrl();\n System.out.println(\"faceUrl :\" +faceUrl);\n if (faceUrl.toLowerCase(Locale.ROOT).contains(\"facebook\")) {\n System.out.println(faceUrl +\" facebook kelimesi iceriyor\");\n } else {\n System.out.println(faceUrl +\" facebook kelimesi icermiyor\");\n System.out.println(\"actual Url :\" + faceUrl);\n }\n driver.navigate().to(\"http:\\\\www.walmart.com\");\n String walmartTitle = driver.getTitle();\n System.out.println(\"walmartTitle :\" + walmartTitle);\n if (walmartTitle.toLowerCase(Locale.ROOT).contains(\"Walmart.com\")) {\n System.out.println(\"baslik dogrudur\");\n } else {\n System.out.println(\"baslik dogru degildir\");\n System.out.println(\"actual Title :\" + walmartTitle);\n }\n driver.navigate().back();//facebook sayfasini gorecegiz\n driver.navigate().refresh();//facebook sayfasini gorecegiz\n driver.manage().window().maximize();\n driver.close();\n }", "title": "" }, { "docid": "a5b9d1ba38fb98cbbfdadf20390eb029", "score": "0.5859657", "text": "private WebDriver getSeleniumFirefoxDriver() throws MalformedURLException {\r\n\t\t\r\n\t\t//Attempt to create the actual web driver used to connect to selenium\r\n\t\tconsoleLog(\"Creating driver...\");\r\n\t\t\r\n //added by matt to test proxy settings and authentication issues\r\n\t\t//FirefoxProfile ffProfile = new FirefoxProfile(new File(FIREFOXPROFILEFATH));\r\n\t\tFirefoxProfile ffProfile = new FirefoxProfile();\r\n \r\n\t\t//proxy\r\n\t\tProxyDetails chosenProxy = getProxyServer();\r\n\t\tString proxyIPAddress = chosenProxy.host;\r\n\t\tint proxyPort = chosenProxy.port;\r\n\t\tconsoleLog(\" Proxy: \" + proxyIPAddress + \":\" + proxyPort);\r\n\t\t\r\n // Direct = 0, Manual = 1, PAC = 2, AUTODETECT = 4, SYSTEM = 5\r\n ffProfile.setPreference(\"network.proxy.type\", 1);\r\n ffProfile.setPreference(\"network.proxy.http\", proxyIPAddress);\r\n ffProfile.setPreference(\"network.proxy.http_port\", proxyPort);\r\n ffProfile.setPreference(\"network.proxy.socks_remote_dns\", false);\r\n \r\n //profile data\r\n ffProfile.setPreference(\"app.update.auto\", false);\r\n ffProfile.setPreference(\"app.update.enabled\", false);\r\n //ffProfile.setPreference(\"browser.privatebrowsing.autostart\", true);\r\n ffProfile.setPreference(\"browser.shell.checkDefaultBrowser\", false);\r\n ffProfile.setPreference(\"browser.tabs.warnOnClose\", false);\r\n ffProfile.setPreference(\"privacy.trackingprotection.pbmode.enabled\", false);\r\n ffProfile.setPreference(\"extensions.blocklist.enabled\", false);\r\n //turn on multi process firefox\r\n //ffProfile.setPreference(\"browser.tabs.remote.autostart\", true);\r\n //ffProfile.setPreference(\"browser.tabs.remote.force-enable\", true);\r\n\r\n ffProfile.setPreference(\"accessibility.blockautorefresh\", true);\r\n \r\n //these are to make the screenshots look pretty\r\n //ffProfile.setPreference(\"gfx.direct2d.disabled\", true);\r\n //ffProfile.setPreference(\"layers.acceleration.disabled\", true);\r\n //ffProfile.setPreference(\"gfx.font_rendering.cleartype_params.cleartype_level\", 2);\r\n //ffProfile.setPreference(\"gfx.font_rendering.cleartype_params.enhanced_contrast\", 2);\r\n //ffProfile.setPreference(\"gfx.font_rendering.cleartype_params.gamma\", 2);\r\n //ffProfile.setPreference(\"gfx.font_rendering.cleartype_params.pixel_structure\", 2);\r\n //ffProfile.setPreference(\"gfx.font_rendering.cleartype_params.rendering_mode\", 2);\r\n \r\n //deal with firefox forcing bad rendering when it doesn't like the driver\r\n ffProfile.setPreference(\"webgl.force-enabled\", true);\r\n ffProfile.setPreference(\"webgl.msaa-force\", true);\r\n ffProfile.setPreference(\"layers.acceleration.force-enabled\", true);\r\n ffProfile.setPreference(\"gfx.direct2d.force-enabled\", true);\r\n ffProfile.setPreference(\"gfx.direct2d.disabled\", false);\r\n ffProfile.setPreference(\"layers.acceleration.disabled\", false);\r\n ffProfile.setPreference(\"gfx.font_rendering.cleartype_params.cleartype_level\", 100);\r\n ffProfile.setPreference(\"gfx.font_rendering.cleartype.always_use_for_content\", true);\r\n ffProfile.setPreference(\"gfx.font_rendering.cleartype_params.rendering_mode\", 5);\r\n \r\n \r\n ffProfile.setPreference(\"network.http.response.timeout\", 7); //this is time in seconds\r\n \r\n ffProfile.setPreference(\"xpinstall.signatures.required\", false); //this is time in seconds\r\n\r\n ffProfile.setPreference(\"dom.ipc.plugins.flash.disable-protected-mode\", true); //\r\n \r\n //If a user agent was defined, set it in the browser\r\n if ((_userAgent != null) && (!_userAgent.isEmpty())) {\r\n\t ffProfile.setPreference(\"general.useragent.override\", _userAgent);\r\n\t ffProfile.setPreference(\"plugin.state.flash\", 0);\r\n }\r\n\r\n //install extension\r\n //String AdMarkerPath = \"/home/ec2-user/firefoxExtensions/adMarker.xpi\";\r\n String AdMarkerPath = \"firefoxExtensions/adMarker.xpi\"; \r\n try {\r\n\t\t\tffProfile.addExtension(new File(AdMarkerPath));\r\n\t\t} catch (Exception e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t\r\n \r\n //String DoNotDisturbPath = \"/home/ec2-user/firefoxExtensions/donotdisturb-1.4.2.xpi\";\r\n String DoNotDisturbPath = \"firefoxExtensions/donotdisturb-1.4.2.xpi\";\r\n try {\r\n\t\t\tffProfile.addExtension(new File(DoNotDisturbPath));\r\n }\r\n catch (Exception e) {\r\n\t\t\t//TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n \r\n \r\n\t\tif ((_userAgent == null) || (!_userAgent.toLowerCase().contains(\"mobile\"))) {\r\n\r\n\t //install flash video auto stopper extension\r\n\t\t\tconsoleLog(\" Not Mobile! Installing flash stopper\");\r\n\t String stopFlashVideoPath = \"firefoxExtensions/flashstopper-1.4.2-fx.xpi\";\r\n\t try {\r\n\t\t\t\tffProfile.addExtension(new File(stopFlashVideoPath));\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n \r\n String scriptStopperPath = \"firefoxExtensions/@asrscriptstopperextension-0.0.1.xpi\";\r\n try {\r\n\t\t\tffProfile.addExtension(new File(scriptStopperPath));\r\n\t\t} catch (Exception e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t\r\n \r\n \r\n //set new firefox profile to be used in selenium\r\n DesiredCapabilities capabilities = DesiredCapabilities.firefox();\r\n //capabilities.setCapability(\"marionette\", true);\r\n capabilities.setCapability(FirefoxDriver.PROFILE, ffProfile);\r\n //capabilities.setCapability(FirefoxDriver.BINARY, \"c:\\\\Program Files\\\\Mozilla Firefox\\\\firefox.exe\");\r\n \r\n \r\n\t\tWebDriver firefoxDriver = null;\r\n\t\t//added to test gecko driver\r\n File geckofile = new File(\"c:/selenium/geckodriver.exe\");\r\n //System.setProperty(\"webdriver.gecko.driver\",\"c:\\\\selenium\\\\geckodriver.exe\");\r\n consoleLog(\"geckopath: \" + geckofile.getAbsolutePath());\r\n System.setProperty(\"webdriver.gecko.driver\",geckofile.getAbsolutePath());\r\n firefoxDriver = new RemoteWebDriver(\r\n\t\t \t\t\tnew URL(SELENIUMHUBADDRESS), \r\n\t\t \t\t\tcapabilities);\r\n \r\n //String marionetteDriverLocation = \"c:\\\\selenium\\\\geckodriver.exe\";\r\n //System.setProperty(\"webdriver.gecko.driver\", marionetteDriverLocation);\r\n //WebDriver driver = new MarionetteDriver();\r\n \r\n\r\n //Set the viewport size and the time to load before sending an error\r\n firefoxDriver.manage().window().setSize(new Dimension(_browserViewWidth, _browserViewHeight));\r\n firefoxDriver.manage().timeouts().pageLoadTimeout(PAGELOADTIME, TimeUnit.MILLISECONDS);\r\n \r\n \r\n //Return the initialized remote firefox web driver\r\n consoleLog(\"Done creating firefox driver.\");\r\n return firefoxDriver;\r\n\t}", "title": "" }, { "docid": "06c2717b629324af7bddac3ad96ee224", "score": "0.5857455", "text": "@Test(invocationCount=5,threadPoolSize=5)\n\tpublic void executeTest() {\n \n\t\tdriver=getDriver(\"chrome\");\n\t\t\n\t\tdriver.get(\"http://google.com\");\n\t\t\n\t\tSystem.out.println(driver.getTitle());\n\t\tdriver.quit();\n\t\t\n\t\t\n\t}", "title": "" }, { "docid": "c00cbbccdd18d1697da92df797a3f90d", "score": "0.5842049", "text": "@BeforeTest\n public void beforeTest() {\n\t System.setProperty(\"webdriver.chrome.driver\", \"C:\\\\Users\\\\Krishn\\\\OneDrive\\\\Desktop\\\\SeleniumTrainingApr20\\\\chromedriver.exe\");\n\t driver = new ChromeDriver();\n\t \n\t // Declaring for IE Driver\n\t // System.setProperty(\"webdriver.ie.driver\", \"C:\\\\Users\\\\Krishn\\\\OneDrive\\\\Desktop\\\\SeleniumTrainingApr20\\\\IEDriverServer.exe\");\n\t // driver = new InternetExplorerDriver();\n\t \n\t // Declaring for Gecko Driver - Firefox\n\t /* System.setProperty(\"webdriver.gecko.driver\", \"C:\\\\Users\\\\Krishn\\\\OneDrive\\\\Desktop\\\\SeleniumTrainingApr20\\\\geckodriver.exe\");\n\t DesiredCapabilities capabilities = DesiredCapabilities.firefox();\n\t capabilities.setCapability(\"marionette\",true);\n\t driver= new FirefoxDriver(capabilities); \n\t */ \n\t \n\t // to maximize the window\n\t driver.manage().window().maximize();\n\t System.out.println(\"Waited\");\n }", "title": "" }, { "docid": "9d2863dc2c4abb6a7f9dc5f990218ca7", "score": "0.58409625", "text": "@Before\n\tpublic void beforeMethod() {\n\n\t\tDriver.getDriver().get(ConfigurationReader.getProperty(\"WebPage\"));\n\t\tDriver.getDriver().manage().window().maximize();\n\t\tBrowserUtils.waitFor(3);\n\n}", "title": "" }, { "docid": "0599381ec1f77d5e732dadc7a178b066", "score": "0.58391815", "text": "@BeforeClass\n \n public void openbrowser() {\n\t \n\t System.setProperty(\"webdriver.gecko.driver\", \"/home/A10569/Desktop/RajAutomationFiles/geckodriver\");\n\t \n\t// Open the Fire fox browser\n\t \n\t driver= new FirefoxDriver();\n\t \n\t \n }", "title": "" }, { "docid": "a7a03227a9c5038ad537c67aa36bbef2", "score": "0.5836431", "text": "public String OPEN_BROWSER(String object, String data) throws IOException {\n try {\n if (data.equals(\"Mozilla\")) {\n browsername = data;\n System.setProperty(\"webdriver.Firefox.driver\",\n System.getProperty(\"user.dir\") + \"//lib//geckodriver.exe\");\n driver = new FirefoxDriver();\n driver.manage().deleteAllCookies();\n result = Constants.KEYWORD_PASS;\n DriverScript.nodes.log(Status.PASS, \"Step === Opening browser ===\" + data);\n } else if (data.equals(\"IE\")) {\n browsername = data;\n System.setProperty(\"webdriver.ie.driver\", System.getProperty(\"user.dir\") + \"//lib//IEDriverServer.exe\");\n DesiredCapabilities caps = DesiredCapabilities.internetExplorer();\n caps.setCapability(\"javascriptEnabled\", true);\n caps.setCapability(\"nativeEvents\", false);\n caps.setCapability(\"requireWindowFocus\", true);\n caps.setCapability(\"ignoreProtectedModeSettings\", true);\n caps.setCapability(\"initialBrowserUrl\", \"\");\n DriverScript.nodes.log(Status.PASS, \"Step === Opening browser ===\" + data);\n driver = new InternetExplorerDriver(caps);\n driver.manage().deleteAllCookies();\n result = Constants.KEYWORD_PASS;\n } else if (data.equals(\"Chrome\")) {\n browsername = data;\n String OS = System.getProperty(\"os.name\").toLowerCase();\n if (OS.contains(\"window\")) {\n System.setProperty(\"webdriver.chrome.driver\",\n System.getProperty(\"user.dir\") + \"//lib//chromedriver.exe\");\n } else if (OS.contains(\"mac\")) {\n System.setProperty(\"webdriver.chrome.driver\",\n System.getProperty(\"user.dir\") + \"//lib//chromedriver\");\n }\n driver = new ChromeDriver();\n driver.manage().window().maximize();\n JavascriptExecutor jse = (JavascriptExecutor) driver;\n ngWebDriver = new NgWebDriver(jse).withRootSelector(\"\");\n localStorage = new HashMap<String, String>();\n//\t\t\t\twebStorage = (WebStorage) new Augmenter().augment(driver);\n//\t\t\t\tlocalStorage = webStorage.getLocalStorage();\n\n ChromeOptions options = new ChromeOptions();\n result = Constants.KEYWORD_PASS;\n } else if (data.equals(\"Safari\")) {\n browsername = data;\n driver = new SafariDriver();\n result = Constants.KEYWORD_PASS;\n }\n } catch (Exception e) {\n e.printStackTrace();\n result = Constants.KEYWORD_FAIL;\n DriverScript.nodes.log(Status.FAIL, \"Unable to \" + DriverScript.TCSDesc);\n DriverScript.nodes.log(Status.FAIL, e);\n }\n return result;\n }", "title": "" }, { "docid": "4269f5c8f0ceb38469d2488e7bd8ede7", "score": "0.58352727", "text": "@Given(\"^I launch Chrome web browser$\")\n public void i_launch_Chrome_web_browser() throws Throwable {\n\t\t System.setProperty(\"webdriver.chrome.driver\",\"chromedriver.exe\");\n //create chrome instance\n driver = new ChromeDriver(); \n driver.manage().window().maximize();\n\t\tSystem.out.println(\"Given Implemented\");\n //throw new PendingException();\n }", "title": "" }, { "docid": "5471de6860af83f8394f5238a158704f", "score": "0.58345747", "text": "public static void main(String[] args) throws InterruptedException {\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", \".//drivers//chromedriver.exe\");\n\t\tWebDriver driver = new ChromeDriver();\n\t\tdriver.get(\"https://learn.letskodeit.com/p/practice\");\n\t\tdriver.manage().window().maximize();\n\t\tThread.sleep(3000);\n\t\t\n\t\t// locate open window button in main window and click on it\n\t\t// it will open another window\n\t\tdriver.findElement(By.id(\"opentab\")).click();\n\t\tThread.sleep(3000);\n\t\t\n\t\t// now retrieve all the window handles \n\t\tSet<String> windowHandles = driver.getWindowHandles();\n//\t\tSystem.out.println(\"number of windows are \"+windowHandles.size());\n//\t\tSystem.out.println(windowHandles);\n\t\t// convert that set to list\n\t\tList<String> windowIds = new ArrayList<>(windowHandles);\n\t\t// in index of above list contains main or parent window id, index 1 contains first child window id\n\t\t// index 2 contains 2nd child window id and so on\n\t\t\n\t\t// now driver focus is in main window and switch that focus focus child window or second window\n\t\tdriver.switchTo().window(windowIds.get(1));\n\t\t\n\t\t// now driver focus is in second window or child window\n\t\t// automate child window\n\t\t// locate search courses text filed in child window and type some data\n\t\tdriver.findElement(By.id(\"search-courses\")).sendKeys(\"ruby\");\n\t\tThread.sleep(2000);\n\n\t\t\n\t\t// now driver focus is in child window and switch that focus to parent window or main window\n\t\tdriver.switchTo().window(windowIds.get(0));\n\t\t\n\t\t// now driver focus is in main window.\n\t\t// automate main window\n\t\t// locate enter your name text field and type some data\n\t\tdriver.findElement(By.id(\"name\")).sendKeys(\"sunshine\");\n\t\tThread.sleep(3000);\n\t\t\n\t\tdriver.quit();\n\t\t\n\t\t\n\t}", "title": "" }, { "docid": "79fe02264644835b2a7619e941971cea", "score": "0.5832992", "text": "@BeforeMethod\n\tpublic void launchBrowser() {\n\t\tdriver = new ChromeDriver();\n\t\tdriver.manage().window().maximize();\n\t\tdriver.manage().deleteAllCookies();\n\t\tdriver.manage().timeouts().pageLoadTimeout(30, TimeUnit.SECONDS);\n\t\tdriver.manage().timeouts().implicitlyWait(40, TimeUnit.SECONDS);\n\t\tSystem.out.println(\"Before Method\");\n\t}", "title": "" }, { "docid": "bec89afe50b07e1ebd6af25768632566", "score": "0.5829658", "text": "public static WebDriver selectBrowser(String browser,String key) throws InterruptedException, IOException\r\n\r\n\t{\r\n\r\n\t\tString path=\"D:\\\\Drivers\\\\\";\r\n\r\n\t\tpropertiesFile();\r\n\r\n\r\n\r\n\t\tString Url=pro.getProperty(key);\r\n\r\n\r\n\r\n\t\tswitch (browser)\r\n\r\n\t\t{\r\n\r\n\t\tcase \"chrome\" : \r\n\r\n\t\t\tSystem.setProperty(\"webdriver.chrome.driver\", path+\"chromedriver.exe\");\r\n\r\n\t\t\tdriver=new ChromeDriver();\r\n\r\n\t\t\t//System.out.println(\"url is\"+pro.getProperty(key));\r\n\r\n\t\t\tbreak;\r\n\r\n\r\n\r\n\t\tcase \"geckodriver\" :\r\n\r\n\t\t\tSystem.setProperty(\"webdriver.gecko.driver\", path+\"geckodriver.exe\");\r\n\r\n\t\t\tdriver= (WebDriver) new FirefoxDriver();\r\n\r\n\t\t\tbreak;\r\n\r\n\t\tcase \"edge\" :\r\n\r\n\t\t\tSystem.setProperty(\"webdriver.edge.driver\", path+\"MicrosoftWebDriver.exe\");\r\n\r\n\t\t\tdriver= new EdgeDriver();\r\n\r\n\t\t\tbreak;\r\n\r\n\r\n\r\n\t\tcase \"ie\":\r\n\r\n\t\t\t//System.setProperty(\"webdriver.ie.driver\", path+\"IEDriverServer.exe\");\r\n\r\n\t\t\tDesiredCapabilities capabilities = DesiredCapabilities.internetExplorer();\r\n\r\n\r\n\r\n\t\t\tcapabilities.setCapability(CapabilityType.BROWSER_NAME, \"IE\");\r\n\r\n\t\t\tcapabilities.setCapability(InternetExplorerDriver.INTRODUCE_FLAKINESS_BY_IGNORING_SECURITY_DOMAINS,true);\r\n\r\n\t\t\tcapabilities.setCapability(InternetExplorerDriver.IE_ENSURE_CLEAN_SESSION, true);\r\n\r\n\t\t\tSystem.setProperty(\"webdriver.ie.driver\", path+\"IEDriverServer.exe\");\r\n\r\n\r\n\r\n\t\t\tdriver = new InternetExplorerDriver();\r\n\r\n\t\t\t//driver=new InternetExplorerDriver();\r\n\r\n\t\t\t// Setting IE to clean session\r\n\r\n\t\t\t/*DesiredCapabilities capabilities = DesiredCapabilities.internetExplorer();\r\n\r\n capabilities.setCapability(InternetExplorerDriver.IE_ENSURE_CLEAN_SESSION, true);\r\n\r\n driver =new InternetExplorerDriver(capabilities);*/\r\n\r\n\t\t\tbreak;\r\n\r\n\t\t}\r\n\r\n\r\n\r\n\t\t//System.out.println(\"url is :\"+key);\r\n\r\n\t\t//driver.get(key);\r\n\r\n\t\t//driver.get(http://www.google.com);\r\n\r\n\r\n\r\n\t\tSystem.out.println(\"url is :\"+Url);\r\n\r\n\t\tdriver.get(Url);\r\n\r\n\t\tdriver.navigate ().to (\"javascript:document.getElementById('overridelink').click()\");\r\n\r\n\t\t//System.out.println(\"url is :\"+Url);\r\n\r\n\t\tdriver.manage().window().maximize();\r\n\r\n\t\treturn driver;\r\n\r\n\r\n\r\n\t}", "title": "" }, { "docid": "886d2050227190d104ab84aaf65c21bb", "score": "0.5819837", "text": "public void start_Browser() throws IOException\n\t{\n\t\ttry\n\t\t{\n\t\t//Calls the create reference method to create a reference Map with Key and Value pair required for execution\n\t\tCreateReference.createReference();\n\t\t//Sets the chromedriver path\n\t\tSystem.setProperty(\"webdriver.chrome.driver\",System.getProperty(\"user.dir\")+\"\\\\chromedriver.exe\");\n\t\t//invokes the Chrome browser and passes the URL\n\t\tdriver = new ChromeDriver();\n driver.get(CreateReference.refMap.get(\"URL\"));\n driver.manage().window().maximize();\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\tSystem.out.println(e.getMessage());\n\t\t\tfail(\"Issue in start browser\"+e.getMessage());\n\t\t}\n \n \n \n\t}", "title": "" }, { "docid": "06d42eddf5ebc9fee3402ef7afadb98a", "score": "0.5817917", "text": "public static void main(String[] args) throws InterruptedException {\n\t\tSystem.setProperty(\"webdriver.ie.driver\", \"H:\\\\IEbrowser\\\\IEDriverServer.exe\");\n\t\tWebDriver driver=new InternetExplorerDriver();\n\t\tdriver.get(\"https://www.facebook.com/\");\n\t\tString title=driver.getTitle();\n\t\tSystem.out.println(title);\n\t\tString url=driver.getCurrentUrl();\n\t\tSystem.out.println(url);\n\t\tdriver.findElement(By.id(\"email\")).clear();\n\t\tdriver.findElement(By.id(\"email\")).sendKeys(\"niranjan gutha\");\n\t\tdriver.findElement(By.id(\"pass\")).sendKeys(\"19032014\");\n\t\tdriver.findElement(By.id(\"loginbutton\")).click();\n\t\t//String handle=driver.getWindowHandle();\n\t\t//System.out.println(handle);\n//\t\tdriver.findElement(By.className(\"_4a0a img sp_0a_2v_vcgG_ sx_fda37f\")).click();\n//\t\tboolean disp=driver.findElement(By.className(\"_3-8_ _2ph- _6q3h\")).isDisplayed();\n//\t\tSystem.out.println(disp);\n//\t\tboolean enab=driver.findElement(By.className(\"_3-8_ _2ph- _6q3h\")).isEnabled();\n//\t\tSystem.out.println(enab);\n\t\t\n//\t\ttry {\n//\t\t\tdriver.findElement(By.className(\"_3-8_ _2ph- _6q3h\")).click();\n//\t\t}\n//\t\tcatch(Exception e)\n//\t\t{\n//\t\t\tSystem.out.println(e);\n//\t\t\n//\t\t}\n//\t\tdriver.findElement(By.xpath(\"//*[@id=\\\"js_uh\\\"]/div[1]/div/div[1]/div[1]/div[2]/div/div/div/div/div/div/div[2]/div/div/div/div\")).sendKeys(\"jfdhj\");\n//\t\tThread.sleep(2000);\n//\t\tdriver.findElement(By.className(\"_3-8_ _2ph- _6q3h\")).click();\n//\t\tThread.sleep(2000);\n\t\tdriver.close();\n\t}", "title": "" }, { "docid": "8c4dcb93c71eb957c2c0e758b32f53d9", "score": "0.58153635", "text": "public static void main(String[] args) throws InterruptedException {\n\r\n\t\t\r\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"E:\\\\Ss\\\\chromedriver_win32\\\\chromedriver.exe\");\r\n\t\tChromeDriver driver= new ChromeDriver();\r\n\t\tString current_window=\"\";\r\n\t\tdriver.get(\"https://www.naukri.com/\");\r\n\t\t\r\n\t\t\r\n\t\tSet <String> s1=driver.getWindowHandles();\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\tdriver.findElementByXPath(\"//a[@id='login_Layer']\").click();\r\n Thread.sleep(4000);\r\n\t\tdriver.switchTo().activeElement();\r\n\t\tThread.sleep(4000);\r\n\t\tdriver.findElementByXPath(\"//input[@id='eLoginNew']\").sendKeys(\"1234\");\r\n\t\t\r\n\r\n\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t}", "title": "" }, { "docid": "4c5911bce987eb7c792fd4f017ce7dbb", "score": "0.5803774", "text": "public static void main(String[] args) {\n \n\t\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"G:\\\\Installations\\\\Drivers\\\\chromedriver.exe\");\n\t\t\t\n\t\t\tSystem.out.println(\"Hello WORLD1\");\n\t\t\tSystem.out.println(\"Hello WORLD2\");\n\t\t\tSystem.out.println(\"Hello WORLD3\");\n\t\t\tSystem.out.println(\"Hello WORLD4\");\n\t\t\tSystem.out.println(\"Hello WORLD5\");\n\t\t\t\n WebDriver driver = new ChromeDriver();\n driver.get(\"https://www.google.co.in/\");\n driver.manage().window().maximize();\n String s1= driver.getTitle();\n System.out.println(s1);\n //Sleep(5000);\n \n \t}", "title": "" }, { "docid": "a4e7207fc13d83c221bb31c64f961348", "score": "0.58036494", "text": "public static void main(String[] args) throws InterruptedException {\n\t\tSystem.out.println(\"Launchin browser\");\n\t\tWebDriverManager.chromedriver().setup();\n\t\tdriver = new ChromeDriver();\n\t\tSystem.out.println(\"Browser launched\");\n\t\tdriver.manage().window().maximize();\n\t\tdriver.manage().deleteAllCookies();\n\t\tdriver.manage().timeouts().pageLoadTimeout(80, TimeUnit.SECONDS);\n\t\tdriver.get(\"http://manos.malihu.gr/repository/custom-scrollbar/demo/examples/complete_examples.html\"); // handle window\n\t\t\n\t\t\n\t//\tdriver.findElement(By.xpath(\"//a[contains(@href, 'http://opensource.org/licenses/MIT')]\")).sendKeys(Keys.DOWN);\n\n\t\t/*Actions action = new Actions(driver);\t\n\t\taction.moveToElement(driver.findElement(By.xpath(\"//a[contains(@href, 'http://opensource.org/licenses/MIT')]\"))).click().build().perform();\n\t\t*/\n\t\t\n\t\t//http://192.168.1.21:8080/ApplicantSignup/tourist\n\t\t//http://manos.malihu.gr/repository/custom-scrollbar/demo/examples/complete_examples.html\n\t\tdriver.manage().timeouts().implicitlyWait(80, TimeUnit.SECONDS);\n\t\t\n\t\tThread.sleep(5000);\n\t\t//JavascriptExecutor js = (JavascriptExecutor)driver;\n\t\t//js.executeScript(\"scroll(0, 400)\");\n\t\t//js.executeScript(\"arguments[0].scrollIntoView();\", driver.findElement(By.xpath(\"//button[text()='Cancel']\")));\n\t\t//js.executeScript(\"arguments[0].scrollIntoView(true);\", driver.findElement(By.xpath(\"//div[@id='mCSB_4_container']//p[contains(text(),'Temporibus autem quibusdam et aut officiis debitis')]\")));\n\t\t//scrollByPixel(400);\n\t\t//scrollByText(driver.findElement(By.xpath(\"//div[@id='mCSB_4_container']//p[contains(text(),'Temporibus autem quibusdam et aut officiis debitis')]\")));\n\t\t\n\t\tSystem.out.println(\"scrolldone\");\n\t}", "title": "" }, { "docid": "ac7b25793368bee87f707dbc1bb86b51", "score": "0.58003414", "text": "public void LoadDriver()\n\t{\n\t\tSystem.setProperty(\"webdriver.gecko.driver\", \"C:\\\\geckodriver.exe\");\n\t\tdriver =new FirefoxDriver();\n\t\tdriver.get(\"http://automationpractice.com/index.php\");\n\t}", "title": "" } ]
a4653b9a49c5aa454474583ce96d50b7
The client opens a socket server and sending it a random query from the Array of preformance , the client waits for a response and prints it and back again ( not open again Socket )
[ { "docid": "cdb1f3b22e4b5fa8fc9a337c5eb129f7", "score": "0.6089611", "text": "@Override\r\n public void run() {\r\n Socket soc;\r\n BufferedReader in;\r\n PrintWriter out;\r\n String str;\r\n\r\n int[] ArrayOfPreformance = new int[1000];\r\n FileReader fr;\r\n try {\r\n fr = new FileReader(file);\r\n BufferedReader br = new BufferedReader(fr);\r\n str = br.readLine();\r\n ArrayOfPreformance = ArrayOfPre(str);\r\n soc = new Socket(\"127.0.0.1\", 4500);\r\n in = new BufferedReader(new InputStreamReader(soc.getInputStream()));\r\n out = new PrintWriter(soc.getOutputStream());\r\n while (true) {\r\n int x = getX(ArrayOfPreformance);\r\n System.out.println(\"Client<\" + id + \">:sending \" + x);\r\n out.println(x);\r\n out.flush();\r\n y = Integer.parseInt(in.readLine());\r\n System.out.println(\"Client<\" + id + \">:got reply \" + y + \" for query \" + x + \"\\n\");\r\n }\r\n\r\n } catch (IOException ex) {\r\n ex.printStackTrace();\r\n }\r\n }", "title": "" } ]
[ { "docid": "82979a7d1836dd9f38b3c0396dc62808", "score": "0.64102036", "text": "public static void main(String[] args) throws IOException, InterruptedException{\n \n final String HOST = \"25.107.131.108\"; //Ip luis\n final int PUERTO = 2000; //puerto luis\n \n \n //CLIENTE\n Socket conexioncliente = new Socket (HOST, PUERTO);\n DataOutputStream mensaje = new DataOutputStream(conexioncliente.getOutputStream());\n \n \n //SERVIDOR\n ServerSocket ss = new ServerSocket(3000); //escucho puerto 55\n Socket conexionserver = ss.accept();//Hay una conexion ENTRANTE <-\n System.out.println(\"Un cliente se ha conectado.\");//Canales de entrada y salida de datos\n \n //I/O\n BufferedReader entradaserver = new BufferedReader(new InputStreamReader(conexionserver.getInputStream()));\n DataOutputStream salidaserver = new DataOutputStream(conexionserver.getOutputStream());\n \n //Pedir al cliente\n salidaserver.writeUTF(\"Dime Cosas\\n\"); \n salidaserver.flush();\n \n //REUNION\n String cad=\"\";\n String entradaTeclado = \"\";\n Scanner entradaEscaner = new Scanner (System.in); //Creación de un objeto Scanner\n while (((cad = entradaserver.readLine())!= null) || ((entradaTeclado = entradaEscaner.nextLine())!=null)){\n System.out.println(\"Dentro\");\n //ESCRIBO\n if (!(entradaTeclado == null)){\n mensaje.writeUTF(entradaTeclado);\n } else if (entradaTeclado.equals(\"exit\")){\n System.out.println(\"Break\");\n break;\n }\n \n \n System.out.println(\"en el medio\");\n //RECIBO\n if(!(cad.equals(null))){\n System.out.println(\"Luis \" + cad); \n }\n// }\n \n \n \n System.out.println(\"al final\");\n }\n\n entradaserver.close();\n salidaserver.close();\n ss.close();//Aqui se cierra la conexión con el cliente\n conexioncliente.close();\n \n \n// Persona_Real p1 = new Persona_Real(\"Federico\", 77, 1234, new ArrayList<>(), new ArrayList<>());\n// Persona_Real p2 = new Persona_Real(\"Alfonso\", 22, 4321, new ArrayList<>(), new ArrayList<>());\n// Persona_Real p3 = new Persona_Real(\"Antonio\", 442, 9877, new ArrayList<>(), new ArrayList<>());\n// \n// Date fecha_ini = new Date(2015,3,15,15,10);\n// Date fecha_fin = new Date(2015,3,15,15,15);\n// \n// ArrayList<Persona_Real> integrantes = new ArrayList<>();\n// integrantes.add(p1);\n// integrantes.add(p2);\n// integrantes.add(p3);\n// p1.crearEvento(666, integrantes, fecha_ini, fecha_fin);\n// System.out.println(\"p1: \");\n// System.out.println(\" Pizarras: \"+ p1.getPizarras().size());\n// System.out.println(\" Observados: \"+ p1.getPizarras().get(0).getObservador().getRestoParticipantes().size());\n// System.out.println(\"p2: \");\n// System.out.println(\" Pizarras: \"+ p2.getPizarras().size());\n// System.out.println(\" Observados: \"+ p2.getPizarras().get(0).getObservador().getRestoParticipantes().size());\n// System.out.println(\"p3: \");\n// System.out.println(\" Pizarras: \"+ p3.getPizarras().size());\n// System.out.println(\" Observados: \"+ p3.getPizarras().get(0).getObservador().getRestoParticipantes().size());\n// \n// String entradaTeclado = \"\";\n// Scanner entradaEscaner = new Scanner (System.in); //Creación de un objeto Scanner\n// \n// Mensaje m;\n// int id=666;\n// System.out.println(\"Bienvenido a GrapeVine. Comienza la reunion:\");\n// while(true){\n// System.out.print(\"~ \");\n// entradaTeclado = entradaEscaner.nextLine (); //Invocamos un método sobre un objeto Scanner\n// if (entradaTeclado.equals(\"exit\")){\n// break;\n// } else {\n// m = new Mensaje(entradaTeclado,\"Luis\");\n// p1.escribir(m,id);\n// }\n// }\n }", "title": "" }, { "docid": "73357926d82edf72c05ce4cbef41e5fa", "score": "0.63687515", "text": "public static void main(String[] args) {\n int portNumber = 4444; // default port number\n if (args.length == 1) {\n portNumber = Integer.parseInt(args[0]); // user specified port number\n }\n System.out.println(\"Number Guessing Server has started\");\n // create serverSocket to listen on\n try (ServerSocket serverSocket = new ServerSocket(portNumber)) {\n while (true) {\n // accept client connection\n Socket clientSocket = serverSocket.accept();\n try (DataInputStream is = new DataInputStream(new BufferedInputStream(clientSocket.getInputStream()));\n PrintWriter os = new PrintWriter(new BufferedWriter(new OutputStreamWriter(clientSocket.getOutputStream())))) {\n System.out.println(\"Client Accepted\");\n\n // read three numbers from client\n int upper = is.readInt(); // read upper from client\n int lower = is.readInt(); // read lower from client\n\n // decide the response\n double target = generateRandomNum(upper, lower);\n int finalTar = (int) Math.floor(target);\n System.out.println(\"Random Number is:\" + finalTar);\n int usernum = -1;\n while(usernum != finalTar) {\n usernum = is.readInt();\n if(usernum == finalTar){\n break;\n }\n else if(usernum > finalTar){\n os.println(\"Too high!\");\n os.flush();\n }\n else if(usernum < finalTar){\n os.println(\"Too low!\");\n os.flush();\n }\n\n }\n if(usernum == finalTar){\n os.println(\"Correct!\");\n os.flush();\n }\n // send message back to client\n } catch (IOException e) {\n System.out.println(\"IOException:\" + e.getMessage());\n }\n } // end while true\n } catch (Exception e) {\n System.out.println(\"Exception:\" + e.getMessage());\n } // end catch\n\n }", "title": "" }, { "docid": "0efefaec9cf2a47aea471c2be67681c1", "score": "0.633995", "text": "public static void getToys() {\n\n SocketClient socketClient = new SocketClient();\n Socket socket = socketClient.getSocket();\n UUID uniqueKey = socketClient.getRandomUUID();\n \n new Thread() {\n @Override\n public void run() {\n try {\n \n String toy_information;\n String confirmation;\n data_in = new DataInputStream(socket.getInputStream());\n data_confirm = new DataInputStream(socket.getInputStream());\n data_out = new DataOutputStream(socket.getOutputStream());\n\n \n \n while (true) {\n toy_information = data_in.readUTF();\n switch (toy_information) {\n case \"Send Toy Identification\":\n {\n //Toy Identification\n ToyObject toy_object = new ToyObject();\n ObjectOutputStream objectOutputStream = new ObjectOutputStream(socket.getOutputStream());\n objectOutputStream.writeObject(toy_object);\n \n objectOutputStream.flush();\n \n confirmation = data_confirm.readUTF();\n System.out.println(\"Server Says!: \"+confirmation);\n JOptionPane.showMessageDialog(null, \"Server Says!\"+confirmation);\n break;\n }\n case \"Send Toy Information\":\n {\n \n ObjectOutputStream objectOutputStream = new ObjectOutputStream(socket.getOutputStream());\n //Toy Information\n ToyObject toy_object = new ToyObject();\n objectOutputStream.writeObject(toy_object);\n objectOutputStream.flush();\n \n confirmation = data_confirm.readUTF();\n System.out.println(\"Server Says!: \"+confirmation);\n JOptionPane.showMessageDialog(null, \"Server Says!\"+confirmation);\n break;\n }\n case \"Send Toy Manufacturer\":\n {\n ObjectOutputStream objectOutputStream = new ObjectOutputStream(socket.getOutputStream());\n //Toy Manufacturer\n ToyObject toy_object = new ToyObject();\n objectOutputStream.writeObject(toy_object);\n objectOutputStream.flush();\n \n confirmation = data_confirm.readUTF();\n System.out.println(\"Server Says!: \"+confirmation);\n JOptionPane.showMessageDialog(null, \"Server Says!\"+confirmation);\n break;\n }\n //Thank you + unique code\n case \"Send Thank you\":\n {\n String Thank_you = \"Thank You: \"+uniqueKey;\n data_out = new DataOutputStream(socket.getOutputStream());\n data_out.writeUTF(Thank_you);\n break;\n }\n case \"Send All Information\":\n {\n ObjectOutputStream objectOutputStream = new ObjectOutputStream(socket.getOutputStream());\n //All Information\n ToyObject toy_object = new ToyObject();\n objectOutputStream.writeObject(toy_object);\n objectOutputStream.flush();\n \n confirmation = data_confirm.readUTF();\n System.out.println(\"Server Says!: \"+confirmation);\n JOptionPane.showMessageDialog(null, \"Server Says!\"+confirmation);\n break;\n }\n default:\n System.out.println(\"Server is requesting for something else\" + toy_information);\n break;\n }\n\n }\n\n } catch (IOException ex) {\n System.out.println(\"Exeption caught\" + ex);\n }\n }\n }.start();\n\n }", "title": "" }, { "docid": "6e1be81acbebff46fa487907b15bf5a8", "score": "0.6314099", "text": "public void run()\n\t{\n\t\ttry\n\t\t{\tSocket temp;\n\t\t\tString clientMessage = \"\";\n\t\t\tString serverMessage = \"\";\n\t\t\tScanner inStream = new Scanner(serverClient.getInputStream());\n\t\t\twhile(true)\n\t\t\t{\n\t\t\t\tif(inStream.hasNext()==false) \n\t\t\t\t{\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\t//getting message from inStream.\n\t\t\t\tclientMessage=inStream.nextLine();\n\t\t\t\t/*\n\t\t\t\t * Coordinator connects first to server which becomes the \n\t\t\t\t * first client. Clients 2,3 and 4 will be the other three\n\t\t\t\t * participants.\n\t\t\t\t */\n\t\t\t\tif(clientNo==1)\n\t\t\t\t\tserverMessage= \"Coordinator sends- \" + clientMessage ;\n\t\t\t\telse\n\t\t\t\t\tif(clientNo>1)\n\t\t\t\t\t\tserverMessage = \"Participant\"+ (clientNo -1)+ \"sends\" + clientMessage;\n\t\t\t\t//Displaying message on the GUI\n\t\t\t\tServer.clientMsgTxtDisplay.append(serverMessage+\"\\n\");\n\t\t\t\t/*\n\t\t\t\t * If message contains VOTE_REQUEST, it is sent to\n\t\t\t\t * all the participants.\n\t\t\t\t */\n\t\t\t\tif(clientMessage.contains(\"VOTE_REQUEST\"))\n\t\t\t\t{\n\t\t\t\t\tfor(int i=1;i<socketList.size();i++)\n\t\t\t\t\t{\n\t\t\t\t\t\ttemp = (Socket)socketList.get(i);\n\t\t\t\t\t\tPrintWriter outStream = new PrintWriter(temp.getOutputStream());\n\t\t\t\t\t\toutStream.println(clientMessage);\n\t\t\t\t\t\toutStream.flush();\n\t\t\t\t\t\t//inStream.close();\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\t * If message contains VOTE_ABORT or VOTE_COMMIT, it is sent to\n\t\t\t\t * Coordinator.\n\t\t\t\t */\n\t\t\t\telse\n\t\t\t\tif(clientMessage.contains(\"VOTE_ABORT\") || clientMessage.contains(\"VOTE_PRECOMMIT\") || clientMessage.contains(\"PARTICIPANT_ACK\"))\n\t\t\t\t{\n\t\t\t\t\ttemp=socketList.get(0);\n\t\t\t\t\tPrintWriter outStream = new PrintWriter(temp.getOutputStream());\n\t\t\t\t\toutStream.println(clientMessage);\n\t\t\t\t\toutStream.flush();\n\t\t\t\t}\n\t\t\t\t/*\n\t\t\t\t * If message contains GLOBAL_ABORT or GLOBAL_COMMIT, it is sent to\n\t\t\t\t * all the participants.\n\t\t\t\t */\n\t\t\t\telse\n\t\t\t\t\tif(clientMessage.contains(\"GLOBAL_ABORT\") || clientMessage.contains(\"GLOBAL_COMMIT\") || clientMessage.contains(\"ACK?\"))\n\t\t\t\t\t{\n\t\t\t\t\t\tfor(int i=1;i<socketList.size();i++)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\ttemp=(Socket)socketList.get(i);\n\t\t\t\t\t\t\tPrintWriter outStream = new PrintWriter(temp.getOutputStream());\n\t\t\t\t\t\t\toutStream.println(i+clientMessage);\n\t\t\t\t\t\t\toutStream.flush();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t/*\n\t\t\t\t * If message contains DESICION_REQUEST or PARTICIPANT_GLOBAL_COMMIT or PARTICIPANT_GLOBAL_ABORT,\n\t\t\t\t * it is sent to all the participants. \n\t\t\t\t */\n\t\t\t\t\telse\n\t\t\t\t\t\tif(clientMessage.contains(\"DESICION_REQUEST\") || clientMessage.contains(\"PARTICIPANT_GLOBAL_COMMIT\")|| clientMessage.contains(\"PARTICIPANT_GLOBAL_ABORT\"))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tfor(int i=1;i<socketList.size();i++)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\ttemp=(Socket)socketList.get(i);\n\t\t\t\t\t\t\t\tPrintWriter outStream = new PrintWriter(temp.getOutputStream());\n\t\t\t\t\t\t\t\toutStream.println(i+clientMessage);\n\t\t\t\t\t\t\t\toutStream.flush();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\tSystem.out.println(e);\n\t\t}\n\t}", "title": "" }, { "docid": "b9b9123cbaae8bc5323a4a5ea7bc5899", "score": "0.6247307", "text": "public void comunica(){\n try {\n\n System.out.print(\"\\n4 & 5 CLIENT - Invio del messaggio: \" + stringaUtente);\n outVersoServer.writeBytes(stringaUtente + \"\\n\");//viene inviato il messaggio al server,\\n dice che è finito il messaggio\n\n stringaRicevuta = inDalServer.readLine();//viene copiato in stringaRicevuta la stringa che ha inviato il server\n\n System.out.println(\"\\n8 CLIENT - Risposta del server : \" + stringaRicevuta);\n System.out.println(\"9 CLIENT - Finita comunicazione, chiusura connessione\");\n\n mySocket.close(); //chiusura della connessione col server\n \n } catch (Exception e) {System.out.println(\"\\nErrore durante la comunicazione del server\");}\n }", "title": "" }, { "docid": "6753e31be1aded206ecbfeee1b58ea98", "score": "0.62442195", "text": "public void run(){\n\t\ttry {\n\t\t\twhile(true) {\n\t\t\t\t// Create socket to handle request\n\t\t\t\tString choice;\n\t\t\t\tSystem.out.println(\"Connection Established on Port 4444\");\n\t\t\t\t// Accept input and perform command\n\t\t\t\tBufferedReader input = new BufferedReader(new InputStreamReader(clientSocket.getInputStream()));\n\t\t\t\tPrintWriter output = new PrintWriter(clientSocket.getOutputStream(), true);\t\t\n\t\t\t\twhile (!clientSocket.isClosed() && ((choice = input.readLine()) != null)) {\n\t\t\t\t\tProcess cmdProc = null;\t\t\n\t\t\t\t\t// Command 1 date and time request\n\t\t\t\t\tif(choice.equals(\"date\")){\n\t\t\t\t\t\tSystem.out.println(\"Responding to date and time request from the client \");\n\t\t\t\t\t\tString[] cmd = {\"bash\", \"-c\", \"date\"};\n\t\t\t\t\t\tcmdProc = Runtime.getRuntime().exec(cmd);\n\t\t\t\t\t}\n\t\t\t\t\t// Command 2 uptime request\n\t\t\t\t\telse if(choice.equals(\"uptime\")){\n\t\t\t\t\t\tSystem.out.println(\"Responding to uptime request from the client \");\n\t\t\t\t\t\tString[] cmd = {\"bash\", \"-c\", \"uptime\"};\n\t\t\t\t\t\tcmdProc = Runtime.getRuntime().exec(cmd);\n\t\t\t\t\t}\n\t\t\t\t\t// Command 3 memory use request\n\t\t\t\t\telse if(choice.equals(\"free\")){\n\t\t\t\t\t\tSystem.out.println(\"Responding to memory use request from the client \");\n\t\t\t\t\t\tString[] cmd = {\"bash\", \"-c\", \"free\"};\n\t\t\t\t\t\tcmdProc = Runtime.getRuntime().exec(cmd);\n\t\t\t\t\t}\n\t\t\t\t\t//Command 4 netstat request\n\t\t\t\t\telse if(choice.equals(\"netstat\")){\n\t\t\t\t\t\tSystem.out.println(\"Responding to netstat request from the client \");\n\t\t \tString[] cmd = {\"bash\", \"-c\", \"netstat\"};\n\t\t \tcmdProc = Runtime.getRuntime().exec(cmd);\n\t\t\t\t\t}\t\n\t\t\t\t\t// Command 5 list of current users request\n\t\t\t\t\telse if(choice.equals(\"who\")){\n\t\t\t\t\t\tSystem.out.println(\"Responding to list of current users request from the client\");\n\t\t\t\t\t\tString[] cmd = {\"bash\", \"-c\", \"who\"};\n\t\t\t\t\t\tcmdProc = Runtime.getRuntime().exec(cmd);\n\t\t\t\t\t}\n\t\t\t\t\t// Command 6 running process request\n\t\t\t\t\telse if(choice.equals(\"process\")){\n\t\t\t\t\t\tSystem.out.println(\"Responding to running process request from the client\");\n\t\t\t\t\t\tString[] cmd = {\"bash\", \"-c\", \"ps -e\"};\n\t\t\t\t\t\tcmdProc = Runtime.getRuntime().exec(cmd);\n\t\t\t\t\t}\n\t\t\t\t\t// Command 7 exit request\n\t\t\t\t\telse if(choice.equals(\"exit\")){\n\t\t\t\t\t\tSystem.out.println(\"Responding to exit request \");\n\t\t\t\t\t\tclientSocket.close();\t\t \n\t\t\t\t\t\tString[] cmd = {\"bash\", \"-c\", \"exit\"};\n\t\t\t\t\t\tcmdProc = Runtime.getRuntime().exec(cmd);\n\t\t\t\t\t\tSystem.out.println(\"Server Closed\");\n\t\t\t\t\t\tSystem.exit(0);\n\t\t\t\t\t}\n\t\t\t\t\t// Send output to client\n\t\t\t\t\tBufferedReader cmdin = new BufferedReader(new InputStreamReader(cmdProc.getInputStream()));\n\t\t\t\t\tString cmdout = null;\t\t \n\t\t\t\t\twhile((cmdout = cmdin.readLine()) != null){\n\t\t\t\t\t\toutput.println(cmdout);\n\t\t\t\t\t}\n\t\t\t\t\t// Tell client to stop receiving\n\t\t\t\t\toutput.close();\n\t\t\t\t}\n\t\t}\n\t\t\t}\n\t\t\tcatch (IOException e){\n\t\t\t\n\t\t\t}\n\t}", "title": "" }, { "docid": "ed6e4687e04554b67f875939fccf3c07", "score": "0.6222489", "text": "public void run () {\n try{\n out = new PrintWriter(socket.getOutputStream(),true);\n //in = new BufferedReader(socket.getInputStream());\n in = new BufferedReader(new InputStreamReader(\n socket.getInputStream()));\n\n\n //while (running) {\n // fordere Client auf, einen Username anzugeben\n out.println(CommandList.IDENTIFY);\n //System.out.println(\"S: IDENTIFY\");\n\n Message temp = Message.parse(in.readLine());\n if(temp==null){\n return;\n }\n if(temp.getCommand()== CommandList.IDENTIFYING){\n clientName = temp.getMessage();\n }\n\n if (clientName == null) {\n return;\n }\n\n // handle douplicate names wiht additional numbers\n synchronized (clientNames) {\n if (clientName == null) {\n return;\n }\n int c = 0;\n while( clientNames.containsValue(clientName) ){\n String name = clientName;\n c += 1;\n if (c != 1) {\n name = name.substring(0, name.length()-1) + String.valueOf(c);\n } else {\n name += String.valueOf(c);\n }\n clientName = name;\n }\n clientNames.put(id,clientName);\n\n //break;\n }\n //}\n\n // include into the broadcast of the Server\n out.println(new Message(CommandList.WELCOME,String.valueOf(id)));\n Server.broadcast.put(id,out);\n updateAvailableClients();\n server.display(\"Welcome, \"+clientName);\n broadcastGames();\n\n PingPong pingPong = new PingPong(out) {\n @Override\n void noPong() {\n server.display(\"Lost connection with \"+clientName);\n try{\n removeClient(clientName);\n close();//close while loops in PingPong\n } catch (IOException e){\n clientNames.remove(clientName);\n Server.broadcast.remove(out);\n try {\n socket.close();\n } catch (IOException f) {\n f.printStackTrace();\n }\n }\n\n }\n };\n pingPong.start();\n\n while (running) {\n // listen to Clients and broadcast messages\n Message m = Message.parse(in.readLine());\n if (m == null) {\n return;\n }\n //System.out.println(m);\n switch(m.getCommand()){\n case MESSAGE:\n String msg = m.getMessage();\n for (PrintWriter myClient : Server.broadcast.values()) {\n myClient.println(new Message(CommandList.MESSAGE,clientName + \": \" + msg).toString());\n }\n break;\n\n case NEW_NAME:\n String newName = m.getMessage();\n System.out.println(\"S: NEWNAME: \"+clientName+\" to \"+newName);\n String oldName = clientName;\n updateClientName(newName);\n for (PrintWriter myClient : Server.broadcast.values()) {//informiere alle Clients wenn jemand seinen Namen ändert\n myClient.println(new Message(CommandList.MESSAGE,\" \"+oldName+\" changed his name to \"+clientName).toString());\n }\n server.display(oldName+\" changed his name to \"+newName);\n out.println(new Message(CommandList.NAME_CHANGED).toString());//confirm that the name was changed\n break;\n\n case PING:\n out.println(new Message(CommandList.PONG).toString());\n //System.out.println(\"PING\");\n break;\n\n case PONG:\n pingPong.pong();\n //System.out.println(\"PONG\");\n break;\n\n case CREATE_GAMESERVER:\n Server.gameCounter++;\n myGameServer = new GameServer(this,m.getMessage());//chatServer und Game-Name übergeben\n myGameServer.start();\n //myGameServer.startGame();\n //myGameServer.join(out,Boolean.valueOf(m.getMessage()));//m.getMessage ist entweder true oder false\n Server.games.add(myGameServer);\n broadcastGames();\n //System.out.println(\"created GameServer GameServer\"+Server.gameCounter+\", broadcasting games\");\n break;\n\n case JOIN_LOBBY:\n String lobbyName = m.getMessage();\n for(GameServer g:Server.games){\n if(g.getGameName().equals(lobbyName)){\n //System.out.println(clientName+\" joining \"+g.getGameName());\n g.enterGameLobby(out,clientName,id);\n myGameServer = g;\n }\n }\n broadcastGames();\n\n break;\n\n case LEAVE_LOBBY:\n myGameServer.leaveLobby(id);\n broadcastGames();\n break;\n\n case JOIN_GAME:\n String gameToJoin= m.getMessage();\n Pattern pattern = Pattern.compile(\"(.*)=(.*)\");\n Matcher matcher = pattern.matcher(gameToJoin);\n String gameName=\"\";\n boolean asMexican = false;\n playingAs = CommandList.TRUMP;\n while (matcher.find()) {\n gameName = matcher.group(1);\n String asMex = matcher.group(2);\n if(asMex==\"true\"){\n asMexican = true;\n playingAs = CommandList.MEXICAN;\n }\n }\n for(GameServer g:Server.games){\n if(g.getGameName().equals(gameName)){\n //System.out.println(clientName+\" joining \"+g.getGameName());\n playingAs = g.join(out,clientName,playingAs);\n myGameServer = g;\n }\n }\n broadcastGames();\n break;\n\n case LOBBY_CHAT:\n myGameServer.lobbyChat(clientName,m);\n break;\n\n case GAME_READY:\n boolean mex = Boolean.valueOf(m.getMessage());\n if(mex){\n playingAs = CommandList.MEXICAN;\n } else{\n playingAs = CommandList.TRUMP;\n }\n playingAs = myGameServer.join(out,clientName,playingAs);\n break;\n\n case END_GAME:\n //call the method only, wenn the window is closed by Client\n //if the window is close after finishing the game, the gameserver will be null\n if(myGameServer!=null){\n myGameServer.endGameByClient(m.getMessage());\n }\n break;\n\n case WHISPER_CHAT:\n String message = m.getMessage();\n //System.out.println(message);\n String[] messages = message.split(\"\\\\$\");\n PrintWriter sender = Server.broadcast.get(Integer.valueOf(messages[0]));\n PrintWriter receiver = Server.broadcast.get(Integer.valueOf(messages[2]));\n\n sender.println(new Message(CommandList.MESSAGE,clientName + \": \" + messages[1]).toString());\n receiver.println(new Message(CommandList.MESSAGE,clientName + \": \" + messages[1]).toString());\n break;\n\n //the Server gets a Game-Update from a single Client with new Characters\n case CHARACTER:\n myGameServer.update(m,playingAs);\n break;\n\n //the Client has collected a resource\n case RESOURCE:\n myGameServer.update(m,playingAs);\n break;\n\n case LOGOUT:\n removeClient(clientName);\n pingPong.close();\n break;\n }\n }\n\n }\n catch(IOException e){\n e.printStackTrace();\n }\n // reset and close ServerHandler\n finally {\n if (clientName != null) {\n clientNames.remove(clientName);\n }\n if (out != null) {\n Server.broadcast.remove(out);\n }\n try {\n socket.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }", "title": "" }, { "docid": "3bf3f6063278b477156fe8bdf6239a2c", "score": "0.61884755", "text": "public void start() throws IOException {\n\t\tRuntime.getRuntime().addShutdownHook(new Thread(){\n @Override\n public void run(){\n\t\t\t\tserverSocket.close();\n }\n });\n\t\t\n\t\tserverSocket = new DatagramSocket(door);\n\t\tbyte[] receiveData = new byte[1024];\n\t\tbyte[] sendData = new byte[1024];\n\n\t\tSystem.out.println(\"Listening at door \"+door);\n\t\twhile (true) {\n\t\t\tDatagramPacket receivePacket = new DatagramPacket(receiveData, receiveData.length);\n\n\t\t\tserverSocket.receive(receivePacket);\n\n\t\t\t /* There is a small aplication protocol that control the order or losses of the packages,\n * Actually, the server will receive a sequence number from the client, if it�s what server is \n * waiting for, the server sends a OK;With the received sentence with upper case letters, \n * otherwise, the server sends a message with ER; with the sequence that the server need.\n * All packages out of order will be discarted, so this is like a go-back-n algorithm\n */\n\t\t\tString sentence = new String(receivePacket.getData()).trim();\n\t\t\tint indexOfFirstSemiColon = sentence.indexOf(\";\");\n\t\t\tint seqNumber = Integer.parseInt(sentence.substring(0,indexOfFirstSemiColon).split(\"_\")[1]);\n\n InetAddress IPAddress = receivePacket.getAddress();\n int port = receivePacket.getPort();\n String capitalizedSentence = sentence.toUpperCase();\n\n \n\t\t\tif(seqNumber==sequence){\n\t\t\t sequence++;\n capitalizedSentence = \"OK;\"+capitalizedSentence;\n sendData = capitalizedSentence.getBytes();\n\t\t\t\t\n DatagramPacket sendPacket = new DatagramPacket(sendData,capitalizedSentence.length(), IPAddress, port);\n serverSocket.send(sendPacket);\n }else{\n \t System.out.println(\"Wrong datagram, send me \"+sequence);\n\t\t\t String problem = \"ER;\"+sequence+\";\";\n sendData = problem.getBytes();\n DatagramPacket sendPacket = new DatagramPacket(sendData,problem.length(), IPAddress, port);\n serverSocket.send(sendPacket);\n }\n\n\t\t\treceiveData = new byte[1024];\n\t\t}\n\t}", "title": "" }, { "docid": "8b361d40eaff41f1024200de63921679", "score": "0.6176635", "text": "@Override\n\t\tprotected Void doInBackground(ServerSocket... sockets) {\n\t\t\tServerSocket serverSocket = sockets[0];\n\t\t\tSocket clientSocket;\n\t\t\tInputStreamReader inputStreamReader;\n\t\t\tBufferedReader bufferedReader;\n\t\t\tString msg=null;\n\t\t\tString hash = null;\n\t\t\twhile (true) {\n\t\t\t\ttry {\n\t\t\t\t\tclientSocket = serverSocket.accept(); //accept the client connection\n\t\t\t\t\tinputStreamReader = new InputStreamReader(clientSocket.getInputStream());\n\t\t\t\t\tbufferedReader = new BufferedReader(inputStreamReader); //get the client message\n\t\t\t\t\tmsg = bufferedReader.readLine();\n\t\t\t\t\t//Log.d(\"RECEIVED\", msg + \" AT \" + myPort);\n\t\t\t\t\tsecondStage = true;\n\t\t\t\t\t\n\t\t\t\t\t//stage 3 code:\n\t\t\t\t\tif(msg.contains(\"!\")){\n\t\t\t\t\t\tCursor cursor = null;\n\t\t\t\t\t\tString temp[] = msg.split(\"\\\\!\");\n\t\t\t\t\t\tcursor = database.rawQuery(\"SELECT * FROM \"+table_name,null);\n\t\t\t\t\t\t\n\t\t\t\t\t\tif(cursor.getCount()==0){\n\t\t\t\t\t\t\tLog.d(TAG2,\"PANIC -- cursor row count is 0\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tString myObject;\n\t\t\t\t\t\n\t\t\t\t\t\tmyObject = Serialized(cursor);\n\t\t\t\t\t\t\n\t\t\t\t\t\tString m = temp[0].trim()+\"!\"+temp[1].trim()+\"\\n\";\n\t\t\t\t\t\tLog.d(TAG2, \"my own cursor is \"+myObject);\n\t\t\t\t\t\tif(!successor.equals(temp[0].trim())){\n\t\t\t\t\t\t\tSocket socket = new Socket(InetAddress.getByAddress(new byte[]{10, 0, 2, 2}), Integer.parseInt(map.get(successor)));\n\t\t\t\t\t\t\tPrintWriter printwriter = new PrintWriter(socket.getOutputStream(),true);\n\t\t\t\t\t\t\tprintwriter.write(temp[0].trim()+\"!\"+temp[1].trim()+\"\\n\"); //write the message to output stream\n\t\t\t\t\t\t\tprintwriter.flush();\n\t\t\t\t\t\t\tLog.d(TAG2, \"Port \"+map.get(myPort)+\" forwarding * request \"+ m +\" (inside client) to \"+successor);\n\t\t\t\t\t\t\tBufferedReader br= new BufferedReader(new InputStreamReader(socket.getInputStream()));\n\t\t\t\t\t\t\tString line = br.readLine();\n\t\t\t\t\t\t\tif(myObject.isEmpty()&&line==null){\n\t\t\t\t\t\t\t\tline = \"\";\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif(line==null&&!myObject.isEmpty()){\n\t\t\t\t\t\t\t\tline = myObject;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif(line!=null&&!myObject.isEmpty()){\n\t\t\t\t\t\t\t\tline = line + \" \" + myObject;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif(myObject.isEmpty()&&line!=null){\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tPrintWriter wr = new PrintWriter(clientSocket.getOutputStream(), true);\n\t\t\t\t\t\t\tLog.d(TAG2,\"Port \"+map.get(myPort)+\" responded * request \"+ m +\" (inside serverTask) with \"+line);\n\t\t\t\t\t\t\twr.write(line); //write the message to output stream\n\t\t\t\t\t\t\twr.flush();\n\t\t\t\t\t\t\twr.close();\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\tPrintWriter wr = new PrintWriter(clientSocket.getOutputStream(), true);\n\t\t\t\t\t\t\tLog.d(TAG2,\"Port \"+map.get(myPort)+\" has successor as initiator, so responded to query \"+m+\" (inside serverTask) with \"+myObject);\n\t\t\t\t\t\t\twr.write(myObject); //write the message to output stream\n\t\t\t\t\t\t\twr.flush();\n\t\t\t\t\t\t\twr.close();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t//stage 2 query code:\n\t\t\t\t\tif(msg.contains(\"QUERY\")){\n\t\t\t\t\t\t\n\t\t\t\t\t\tString selection = msg.replace(\"QUERY\", \"\");\n\t\t\t\t\t\tLog.d(TAG, \"Port \"+map.get(myPort)+\" received the forwarded query request(inside serverTask) for\"+selection);\n\t\t\t\t\t\t//check in its own DB:\n\t\t\t\t\t\t Cursor cursor = null;\t\n\t\t\t\t\t\t\tif(selection.equals(\"@\")){\n\t\t\t\t\t\t\t\tcursor = database.rawQuery(\"SELECT * FROM \"+table_name,null);\n\t\t\t\t\t\t\t}else if(selection.equals(\"*\")){\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tLog.d(TAG2, \"NOT HANDLED\");\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tString query_statement= \"SELECT * FROM \"+table_name+\" WHERE key=?\";\n\t\t\t\t\t\t\t\tString[] sel=new String[1];\n\t\t\t\t\t\t\t\tsel[0]=selection;\n\t\t\t\t\t\t\t\tcursor = database.rawQuery(query_statement,sel);\n\t\t\t\t\t\t\t\tLog.d(TAG, \"cursor count \"+cursor.getCount());\n\t\t\t\t\t\t\t\tif(cursor.getCount()==0){\n\t\t\t\t\t\t\t\t//forward request\n\t\t\t\t\t\t\t\ttry{\n\t\t\t\t\t\t\t\t\tSocket socket = new Socket(InetAddress.getByAddress(new byte[]{10, 0, 2, 2}), Integer.parseInt(map.get(successor)));\n\t\t\t\t\t\t\t\t\tPrintWriter printwriter = new PrintWriter(socket.getOutputStream(),true);\n\t\t\t\t\t\t\t\t\tprintwriter.write(\"QUERY\"+selection+\"\\n\"); //write the message to output stream\n\t\t\t\t\t\t\t\t\tprintwriter.flush();\n\t\t\t\t\t\t\t\t\tLog.d(TAG, \"Port \"+map.get(myPort)+\" forwarding query request(inside client) \"+selection+\" to \"+successor);\n\t\t\t\t\t\t\t\t\tBufferedReader br= new BufferedReader(new InputStreamReader(socket.getInputStream()));\n\t\t\t\t\t\t\t\t\tString line = br.readLine();\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tPrintWriter wr = new PrintWriter(clientSocket.getOutputStream(), true);\n\t\t\t\t\t\t\t\t\tLog.d(TAG,\"Port \"+map.get(myPort)+\" responded query request(inside serverTask) \"+selection+\" response is \"+line);\n\t\t\t\t\t\t\t\t\twr.write(line); //write the message to output stream\n\t\t\t\t\t\t\t\t\twr.flush();\n\t\t\t\t\t\t\t\t\twr.close();\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tLog.d(TAG, \"Port \"+map.get(myPort)+\" received response(inside client socket) for \"+selection+\" rsponse is \"+line);\n\t\t\t\t\t\t\t\t\tprintwriter.close(); //close the output stream\n\t\t\t\t\t\t\t\t\tbr.close();\n\t\t\t\t\t\t\t\t\tsocket.close(); //close connection\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t}catch(Exception e){\n\t\t\t\t\t\t\tLog.e(\"client socket error!\", e.toString());\n\t\t\t\t\t\t}\n\t\t\t\t\t}else{\n\t\t\t\t\t\tString object = Serialize(cursor);\n\t\t\t\t\t\tPrintWriter wr = new PrintWriter(clientSocket.getOutputStream(), true);\n\t\t\t\t\t\tLog.d(TAG,\"Port \"+map.get(myPort)+\" responded query request(inside serverTask) \"+selection+\" response is \"+object);\n\t\t\t\t\t\twr.write(object); //write the message to output stream\n\t\t\t\t\t\twr.flush();\n\t\t\t\t\t\twr.close();\n\t\t\t\t\t}\n\t\t\t\t\t\t}\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\tif(map.containsKey(msg)){\n\t\t\t\t\thash = genHash(map.get(msg));\n\t\t\t\t\t}\n\t\t\t\t\tinputStreamReader.close(); \n\t\t\t\t\tclientSocket.close();\n\t\t\t\t\t\n\t\t\t\t}catch(Exception e){\n\t\t\t\t\tLog.e(\"SERVERTASK error\", e.toString()+e.getMessage());\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\tif(myPort.equals(\"11108\")&&firstJoin==0){ \n\t\t\t\t\tfirstJoin = 1;\n\t\t\t\t\tsuccessor = map.get(myPort);\n\t\t\t\t\tpredec = map.get(myPort);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tif(firstJoin == 1){\n\t\t\t\t\treMap(msg, \"SUCCESSOR:\"+myPort+\" AND PREDEC:\"+myPort);\n\t\t\t\t\tsuccessor = map.get(msg);\n\t\t\t\t\tpredec =map.get(msg);\n\t\t\t\t\tfirstJoin++;\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\ttry{\n\t\t\t\t//noed join code:\n\t\t\t\t\tif(!msg.contains(\":\")&&!msg.contains(\"####\")&&!msg.contains(\"QUERY\")&&!msg.contains(\"!\")){\n\t\t\t\t\t\tLog.d(\"PANIC\", \"should not be here when msg is \"+msg);\n\t\t\t\t\tif(genHash(predec).compareTo(myHash)<0){ //predec less than me\n\t\t\t\t\t\t\n\t\t\t\t\t\tif ((hash.compareTo(myHash)<0)&&(hash.compareTo(genHash(predec))>0)){\n\t\t\t\t\t\t\treMap(map.get(predec),\"SUCCESSOR:\"+msg);\n\t\t\t\t\t\t\treMap(msg,\"SUCCESSOR:\"+myPort+\" AND PREDEC:\"+map.get(predec));\n\t\t\t\t\t\t\tpredec = map.get(msg);\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\treMap(map.get(successor), msg);\n\t\t\t\t\t\t}\n\t\t\t\t\t}else{ //predec greater than me\n\t\t\t\t\t\tif((hash.compareTo(genHash(predec))>0)||(hash.compareTo(myHash)<0)){\n\t\t\t\t\t\t\treMap(map.get(predec),\"SUCCESSOR:\"+msg);\n\t\t\t\t\t\t\treMap(msg,\"SUCCESSOR:\"+myPort+\" AND PREDEC:\"+map.get(predec));\n\t\t\t\t\t\t\tpredec = map.get(msg);\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\treMap(map.get(successor), msg);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif(msg.contains(\":\")){\n\t\t\t\t\t\tif(msg.contains(\"AND\")){\n\t\t\t\t\t\tString a[]=msg.split(\"AND\");\n\t\t\t\t\t\tif(a[0].contains(\"SUCCESSOR:\")){\n\t\t\t\t\t\t\tsuccessor = map.get((a[0].trim().replace(\"SUCCESSOR:\", \"\")).trim());\n\t\t\t\t\t\t\tpredec = map.get((a[1].trim().replace(\"PREDEC:\", \"\")).trim());\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\tsuccessor = map.get((a[1].trim().replace(\"SUCCESSOR:\", \"\")).trim());\n\t\t\t\t\t\t\tpredec = map.get((a[0].trim().replace(\"PREDEC:\", \"\")).trim());\n\t\t\t\t\t\t}\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\tif(msg.contains(\"SUCCESSOR:\")&&!msg.contains(\"PREDEC:\")){\n\t\t\t\t\t\t\tsuccessor = map.get(msg.replace(\"SUCCESSOR:\", \"\").trim());\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif(!msg.contains(\"SUCCESSOR:\")&&msg.contains(\"PREDEC:\")){\n\t\t\t\t\t\t\tpredec = map.get(msg.replace(\"PREDEC:\", \"\").trim());\n\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\t// Stage 2 insert code:\n\t\t\t\tif(msg.contains(\"###\")){\n\t\t\t\t\tString a[] = msg.split(\"####\");\n\t\t\t\t\tString key = a[0];\n\t\t\t\t\tString value = a[1];\n\t\t\t\t\tContentValues cv = new ContentValues();\n\t\t\t\t\tcv.put(\"key\", a[0]);\n\t\t\t\t\tcv.put(\"value\", a[1]);\n\t\t\t\t\tUri mUri = buildUri(\"content\", AUTHORITY);\n\t\t\t//\t\tLog.d(\"URI\", mUri.toString());\n\t\t\t\t\tContentResolver cr = getContext().getContentResolver();\n\t\t\t\t\tcr.insert(mUri, cv);\n\t\t\t\t}\n\t\t\t\t}catch(Exception e){\n\t\t\t\t\tLog.e(\"SHA error\", e.toString());\n\t\t\t\t}\n\t\t\t\t\n\t\t\n\t\t\t}\n\n\t\t}", "title": "" }, { "docid": "2a40a63e475d725a9d8b113c6a3d5214", "score": "0.61385155", "text": "@Override\n protected boolean communication() {\n try {\n String message = terminal.readString();\n if (message.contains(\"QUERY\")) {\n if (message.contains(\"ENTER\")) {\n terminal.writeString(\"\\n\");\n } else if (message.contains(\"REROLL\")) {\n StringBuilder builder = new StringBuilder();\n for (int i = 1; i <= 6; i++) {\n if (random.nextBoolean()) {\n builder.append(i + \",\");\n }\n }\n int lastComma = builder.lastIndexOf(\",\");\n if (lastComma >= 0) {\n builder.deleteCharAt(lastComma);\n }\n terminal.writeString(builder.toString() + \"\\n\");\n } else if (message.contains(\"LEAVE_TOKYO\") || message.contains(\"PLAY_CARD\")) {\n if (random.nextBoolean()) {\n terminal.writeString(\"yes\\n\");\n } else {\n terminal.writeString(\"no\\n\");\n }\n } else if (message.contains(\"TRICK_OR_THREAT\")) {\n if (random.nextBoolean()) {\n terminal.writeString(\"trick\\n\");\n } else {\n terminal.writeString(\"threat\\n\");\n }\n } else if (message.contains(\"SHOP\")) {\n if (random.nextBoolean()) {\n terminal.writeString(random.nextInt(4) + \"\\n\");\n } else {\n terminal.writeString(\"\\n\");\n }\n }\n } else if (message.equals(\"EXIT\")) {\n return false;\n } else {\n System.out.println(message);\n }\n } catch (IOException e) {\n e.printStackTrace();\n return false;\n }\n return true;\n }", "title": "" }, { "docid": "04583bbf766ff5c49831f3759850ce00", "score": "0.61375755", "text": "public void extraer() {\n\t\ttry {\n\t\t\tSocket s = new Socket(\"127.0.0.1\", serverPort);\n\t\t\t\n\t\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(s.getInputStream()));\t\t\t\n\t\t\tPrintWriter writer = new PrintWriter(s.getOutputStream());\t\t\t\t\n\t\t\t\n\t\t\tString line = reader.readLine();\n\t\t\tSystem.out.println(\"Server dice: \" + line);\n\t\t\t\n\t\t\tdouble extrac = (new Random().nextInt(50) + 50)*10;\n\t\t\tSystem.out.println(\"Cliente extrae : \" + extrac);\n\t\t\twriter.println(extrac);\n\t\t\twriter.flush();\n\t\t\t\n\t\t\ts.close();\n\t\t\t\n\t\t} catch (UnknownHostException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\t\t\n\t}", "title": "" }, { "docid": "3c73a3459f98d28616da5dd499f8b99b", "score": "0.6115193", "text": "public void run() {\n try {\n\n \t\tSystem.out.println(\"Just connected to \" + newsock.getRemoteSocketAddress());\n\n \t\t// Get the in and out streams to and from the client.\n \tInputStream inFromServer = newsock.getInputStream();\n \tDataInputStream inp = new DataInputStream(inFromServer);\n\n \tOutputStream outToServer = newsock.getOutputStream();\n \tDataOutputStream outp = new DataOutputStream(outToServer);\n\n // read the first client message. This can either be student login, teacher login or seat updates.\n String line = inp.readUTF();\n String[] tokens = line.split(\"@\");\n String response;\n\n /*\n We access the global solution object synchronized because we want the threads to have \n an unique lock while they access it.\n This is done to avoid race conditions in threads\n */ \n \tsynchronized(solution_map){\n\n \t\t// this is an ERROR case. \n \t\tif(tokens.length !=2){ \n \t\t\tresponse =\"Please retry\";\n \t\t\toutp.writeUTF(response); \n \t\t\tSystem.out.println(response);\n\n \t\t}\n\n \t\t// check if this is a login request\n\t\t\t\telse if(!tokens[0].matches(\"^[0-9]+$\")){ // means someone wants to login \n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t// check if the teacher wants to login\n\t\t\t\t\tif(tokens[0].equals(\"teacher\") && tokens[1].equals(\"login\")){\n\t\t\t\t\t\tresponse = \"Teacher is here\";\n\n\t\t\t\t\t\t// we want to sort the list of mappings and send it to teacher.\n\t\t\t\t\t\tMap_element[] sort = solution_map.sort_FJ();\n\t\t\t\t\t\tfor(int i=0;i<sort.length;i++)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tSystem.out.println(String.valueOf(sort[i].seat_no) + \" \" + sort[i].roll_no);\n\t\t\t\t\t\t}\n\n\n\t\t\t\t\t\t// write to teacher\n\t\t\t\t\t\tObjectOutputStream oos = new ObjectOutputStream(outToServer);\n\t \t\toos.writeObject(sort);\n\t\t\t\t\t}\n\t\t\t\t\t\n\n\t\t\t\t\t// This is student request.\n\t\t\t\t\telse if(true){\n\n\t\t\t\t\t\t// if the format is ok\n\t\t\t\t\t\tif(tokens[1].matches(\"^[0-9]+$\")){\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t// search for the student credentials in the database.\n\t\t\t\t\t\t\tStatement st = null;\n\t\t\t\t\t \tResultSet rs = null;\n\t\t\t\t\t \tString name = \"\";\n\t\t\t\t\t \ttry{\n\t\t\t\t\t\t \t try{\n\t\t\t\t\t\t \t \t st = con.createStatement();\t\n\t\t\t\t\t\t \t }\n\t\t\t\t\t\t \t catch(Exception e)\n\t\t\t\t\t\t \t {\n\t\t\t\t\t\t \t \tSystem.out.println(e);\n\t\t\t\t\t\t \t }\n\t\t\t\t\t\t \t // System.out.println(tokens[1]);\n\t\t\t\t\t\t \tString query =\"SELECT * FROM users WHERE Roll = \"+ String.valueOf(Integer.parseInt(tokens[1]))+ \";\";\n\t\t\t\t\t\t try{\n\t\t\t\t\t\t\t rs = st.executeQuery(query);\n\t\t\t\t\t\t\t if (rs.next()) {//get first result\n\t\t\t\t\t\t\t name = rs.getString(\"Name\");\n\t\t\t\t\t\t\t // System.out.println(name);\n\t\t\t\t\t\t\t }\n\t\t\t\t\t\t }\n\t\t\t\t\t\t catch(Exception e)\n\t\t\t\t\t\t {\n\t\t\t\t\t\t \tSystem.out.println(e);\n\t\t\t\t\t\t }\n\t\t\t\t\t\t finally {\n\t\t\t\t\t\t\t try { rs.close(); } catch (Throwable ignore) { }\n\t\t\t\t\t\t\t }\n\n\t\t\t\t\t\t\t\t} finally {\n\t\t\t\t\t\t\t\t try { st.close(); } catch (Throwable ignore) { }\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tif(name.indexOf(tokens[0])!=-1){\n\n\t\t\t\t\t\t\t\tresponse = \"OK\";\n\t\t\t\t\t\t\t\toutp.writeUTF(response);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse{\n\t\t\t\t\t\t\t\tresponse = \"Invalid Credentials. Try again.\";\n\t\t\t\t\t\t\t\toutp.writeUTF(response);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse{\n\t\t\t\t\t\t\tresponse = \"Invalid Credentials. Try again.\";\n\t\t\t\t\t\t\toutp.writeUTF(response);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\telse{\n\t\t\t\t\t\tresponse = \"Invalid Credentials. Try again.\";\n\t\t\t\t\t\toutp.writeUTF(response);\n\t\t\t\t\t}\n\n\t\t\t\t\tSystem.out.println(response);\n\n\n\t\t\t\t}\n\n\t\t\t\t// Its a valif request. Check if the Roll number is present\n\t\t\t\telse if(solution_map.Rollpresent(tokens[1])){\n\t\t\t\t\t\tresponse = \"This roll number is already registered!\";\n\t\t\t\t\t\toutp.writeUTF(response); \n\t\t\t\t\t\tSystem.out.println(response);\n\t\t\t\t\t}\n\n\t\t\t\t// check if the seat is already taken\n\t\t\t\telse if(solution_map.Seatpresent(Integer.parseInt(tokens[0]))){\n\t\t\t\t\t\tresponse = \"This seat is already taken!\";\n\t\t\t\t\t\toutp.writeUTF(response); \n\t\t\t\t\t\tSystem.out.println(response);\n\t\t\t\t\t}\n\n\n\t\t\t\t// else this is a valid seat update request. update the seat\n\t\t\t\telse{\n\t\t\t\t\tresponse =\" seat updated\";\n\t\t\t\t\tSystem.out.println(response);\n\t\t\t\t\toutp.writeUTF(response); \n\t\t\t\t\tsolution_map.insert(Integer.parseInt(tokens[0]),tokens[1]);\n\t\t\t\t}\n\t\t\t}\n \n \t// After the requests are handled, disconnect from the client.\n newsock.close();\n System.out.println(\"Disconnected from client number: \" + n);\n } catch (Exception e) {\n System.out.println(\"IO error \" + e);\n }\n\n }", "title": "" }, { "docid": "ab0acf7f6ce06b8dbfceb1e512538471", "score": "0.6109444", "text": "public void communicate() {\n\t\ttry{\n\t\t\twhile(true) {\n\t\t\t\tSocket s = serverSocket.accept();\n\t\t\t\tSystem.out.println(new Timestamp(System.currentTimeMillis()) + \" Client connected from: \" + s.getInetAddress());\n\t\t\t\tServerModel f = new ServerModel(s);\n\t\t\t\tpool.execute(f);\n\t\t\t}\n\t\t}\n\t\tcatch(Exception e){\n\t\t\te.printStackTrace();\n\t\t\tpool.shutdown();\n\t\t}\n\t}", "title": "" }, { "docid": "07b82b9db5ea1b63ad9e906925039820", "score": "0.60798275", "text": "@Override\n public void run() {\n // TODO Auto-generated method stub\n try {\n Server.pw.get(this.getid()).println(\"Server Info => Welcome on CoreWar Game Server !\");\n System.out.println(\"Info => \"+this.pseudo+\"#\"+this.getid()+\" is connected !\");\n for (int i = 0; i < Server.clients.size(); i++) {\n if (Server.pw.get(i) != null && i != this.getid()) {\n Server.pw.get(i).println(\"Server Info => \"+this.pseudo+\"#\"+this.getid()+\" is connected !\");\n }\n }\n while (true) {\n String mes = this.buffered_reader.readLine();\n System.out.println(\"Send by \" + this.pseudo+\"#\"+this.getid()+\" => \"+mes);\n if (mes.equals(\"!quit\")) {\n for (int i = 0; i < Server.clients.size(); i++) {\n if (Server.pw.get(i) != null && i != this.getid()) {\n Server.pw.get(i).println(\"Server Info => \"+this.pseudo+\"#\"+this.getid()+\" is disconnected !\");\n }\n }\n System.out.println(\"Info => \"+this.pseudo+\"#\"+this.getid()+\" is disconnected !\");\n break;\n }\n if (mes.startsWith(\"!\")) {\n Scanner scanner = new Scanner(mes);\n switch (scanner.next()) {\n case \"!help\": {\n help();\n break;\n }\n case \"!msg\": {\n if (scanner.hasNextInt()) {\n privateMSG(scanner.nextInt(), scanner.nextLine().trim());\n }\n else {\n Server.pw.get(this.getid()).println(\"Server Info => method arguments incorrect.\");\n }\n break;\n }\n case \"!list\": {\n list();\n break;\n }\n case \"!info\": {\n this.serverInfo();\n break;\n }\n case \"!pseudo\": {\n if (scanner.hasNext()) {\n this.setPseudo(scanner.next());\n }\n else {\n Server.pw.get(this.getid()).println(\"Server Info => method arguments incorrect.\");\n }\n break;\n }\n case \"!ranking\": {\n Server.ranking(this.getid());\n break;\n }\n case \"!remove\": {\n this.removeWarrior();\n break;\n }\n case \"!warriorsubmit\": {\n this.warriorCreate();\n break;\n }\n default:\n Server.pw.get(this.getid()).println(\"Server Error => No commands founds. Try !help\");\n break;\n }\n scanner.close();\n }\n else {\n sendAll(mes);\n }\n }\n this.buffered_reader.close();\n this.print_writer.close();\n this.socket.close();\n this.removeWarrior();\n Server.remove(this.getid());\n } catch (IOException e) {\n //TODO: handle exception\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "e1a6282d8a45135b4dce529f7ec266b9", "score": "0.6079748", "text": "public static void main (String args[]) throws IOException {\n\t\ttry {\n\t\t\t// adresse et port de connexion passe en parametre\n\t\t\tInetAddress address = InetAddress.getByName(HOST);\n\n\t\t\t// synchronisation avec le serveur\n\t\t\tString query = \"HELO\";\n\t\t\tint TAILLE_TAMPON = 2*TAILLE_INT;\n\t\t\t// message recu : \"HELO\"\n\t\t\tint TAILLE_TAMPON_SYNCHRO = query.length()*TAILLE_CHAR; \n\t\t\tbyte[] tampon;\n\n\t\t\tSystem.out.println(\"*** Client ***\");\n\t\t\t// Variables UDP\n\t\t\tDatagramSocket socket = new DatagramSocket();\n\t\t\tDatagramPacket paquet;\n\n\t\t\t// Boucle d'attente de l'existence du serveur\n\t\t\twhile (true) {\n\t\t\t\ttry {\n\t\t\t\t\t// definit la taille miniumm necessaire.\n\t\t\t\t\ttampon = new byte[TAILLE_TAMPON_SYNCHRO]; \n\t\t\t\t\ttampon = query.getBytes();\n\t\t\t\t\t// synchronisation avec le serveur : envoie au serveur un \n\t\t\t\t\t// paquet de requete, pour qu'il sache qu'il est connecte\n\t\t\t\t\tpaquet = new DatagramPacket(tampon, tampon.length, address, \n\t\t\t\t\t\t\tPORT);\n\t\t\t\t\tsocket.send(paquet); // envoi du paquet a l'aide du socket\n\n\t\t\t\t\t/* \n\t\t\t\t\t * Recoit les infos du serveur\n\t\t\t\t\t */\n\t\t\t\t\t// reinit le tampon avec la bonne taille\n\t\t\t\t\ttampon = new byte[TAILLE_TAMPON];\n\t\t\t\t\tpaquet = new DatagramPacket(tampon, tampon.length);\n\t\t\t\t\tsocket.setSoTimeout(1000);\n\t\t\t\t\tsocket.receive(paquet); \n\t\t\t\t\tbreak;\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tSystem.out.println(\"Tentative de connexion...\");\n\t\t\t\t}\n\t\t\t}\n\t\t\t// Enleve le chien de garde de la socket\n\t\t\tsocket.setSoTimeout(0);\n\n\t\t\t// la connection est des lors etablie, la communication fonctionne\n\t\t\tSystem.out.println(\"Connection avec le serveur etablie\");\n\n\t\t\t// decomponse les elements recus par le serveur\n\t\t\tint offset = 0; // le pointeur d'insertion dans le tableau de byte\n\t\t\t// recoit les infos qui sont dans un seul character (deux nombre<10)\n\t\t\tint ligneACalculer = Outils.bytesToInt(tampon, (offset++));\n\t\t\tint n = Outils.bytesToInt(tampon, (offset++)*4);\n\n\t\t\tSystem.out.println(\"ligneACalculer: \" + ligneACalculer + \"\\nn: \"+n);\n\n\t\t\toffset = 0; // Reset de l'offset de lecture\n\t\t\t// reinit le tampon avec la bonne taille\n\t\t\ttampon = new byte[(n*n+n)*TAILLE_INT]; \n\t\t\tpaquet = new DatagramPacket(tampon, tampon.length);\n\t\t\tsocket.receive(paquet); \n\t\t\t\n\t\t\t// Variables pour le calcul de la ligne\n\t\t\tint[] ligneA = new int[n];\n\t\t\tint[] ligneC = new int[n];\t\t\t\n\t\t\tint[][] matB = new int[n][n];\n\n\t\t\t// reconstruit la ligne A\n\t\t\tfor (short i=0; i<n; i++) {\n\t\t\t\tligneA[i] = Outils.bytesToInt(tampon, (offset++)*TAILLE_INT);\n\t\t\t}\n\n\t\t\t// reconstruit la matrice B\n\t\t\tfor (short i=0; i<n; i++) {\n\t\t\t\tfor (short j=0; j<n; j++) {\n\t\t\t\t\tmatB[i][j] = Outils.bytesToInt(tampon, \n\t\t\t\t\t\t\t(offset++)*TAILLE_INT);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t/*\n\t\t\t * Calcul la ligne correspondante de C\n\t\t\t */\n\t\t\tfor (short j=0; j<n; j++) { // j = colonne\n\t\t\t\t// multiplie avec la colonne de la matrice B\n\t\t\t\tfor (short k=0; k<n; k++) {\n\t\t\t\t\tligneC[j] += ligneA[k] * matB[k][j];\n\t\t\t\t} \t\t \n\t\t\t}\n\n\t\t\t// reset la décalage\n\t\t\toffset = 0; \n\n\t\t\t/* \n\t\t\t * Emet la ligne calculee au coordinateur\n\t\t\t */\n\t\t\tOutils.intToBytes(ligneACalculer, tampon, (offset++));\n\n\t\t\t// envoie la ligne calculee au serveur\n\t\t\tfor (short i=0; i<n; i++) {\n\t\t\t\tOutils.intToBytes(ligneC[i], tampon, (offset++)*4);\n\t\t\t}\n\n\t\t\t// affiche les resultats\n\t\t\tSystem.out.println(\"Ligne de A\");\n\t\t\tfor (int i=0; i<ligneA.length; i++) {\n\t\t\t\tSystem.out.print(ligneA[i] + \" \");\n\t\t\t}\n\n\t\t\t// affiche la matrice B\n\t\t\tSystem.out.println(\"\\nMatrice B\");\n\t\t\tafficheMatrice(matB);\n\n\t\t\t// affiche la ligne C calculee par ce client\n\t\t\tSystem.out.println(\"Ligne de C calculee\");\n\t\t\tfor (int i=0; i<ligneC.length; i++) {\n\t\t\t\tSystem.out.print(ligneC[i] + \" \");\n\t\t\t}\n\n\t\t\t// envoie tout\n\t\t\tpaquet = new DatagramPacket(tampon, tampon.length, address, PORT);\n\t\t\tsocket.send(paquet); // envoi du paquet a l'aide du socket\n\n\t\t\t// ferme la connection\n\t\t\tsocket.close();\n\t\t\tSystem.out.println(\"\\n*** fin client ***\");\n\n\t\t} catch (IOException e) {\n\t\t\tSystem.err.println(e);\n\n\t\t}\n\t}", "title": "" }, { "docid": "24d1dcabfc142005e7e58aca9f3dbe04", "score": "0.6037114", "text": "public void run() {\n\t String ID = Integer.toString(clientID);\n\t Server.hostNames.add(clientID);\n\t try {\n\t\tout.write((XMLWriter.WriteAcceptConnection(ID).asXML() + \"\\n\" ).getBytes());\n\t} catch (IOException e1) {\n\t\t// TODO Auto-generated catch block\n\t\te1.printStackTrace();\n\t}\n\n try {\n \t//We start an input and output reader/writers through the sockets\n \n //While the client is connected it will loop this.\n while (clientSocket.isConnected()) { \t \n \t //We check so the client command is not empty and that the sent message from the client is ready to be received on the server side.\n if(in.ready() == true) {\n \n \t String Header = in.readLine();\n String clientCommand = in.readLine();\n System.out.println(\"Client Says: \" + clientCommand);\n //The client wants to exit, we use this command to close the socket on both the server and on the client simultaneously, If not done simultaneously we will receive a socket error due to that the streams are still in use.\n if (clientCommand.equalsIgnoreCase(\"exit\") || clientSocket.isClosed()) {\n \t //We remove the connected client from our array so he can reconnect at a later moment if he wishes too & that his unique identifier is not in use.\n \t //out.println(\"Client closed the connection\");\n \t out.write(clientCommand.getBytes());\n \t\n \t removeHost();\n \t clientSocket.close();\n } \n else{\n \t //Read the whole messages, we cannot use the built in readline function since it will break the xml messages prematurely resulting in nested exception\n StringBuffer sb = new StringBuffer();\n while (in.ready()) {\n char[] c = new char[] { 1024 };\n in.read(c);\n sb.append(c); \n }\n \n \n \tSystem.out.println(result); \n \tdocument = DocumentHelper.parseText(Header+\"\\n\"+clientCommand);\n \tSystem.out.println(\"XML: \" + document.asXML()); \n \tdocument.getDocument().normalize(); \n \n //ADD LOGIC\n if (document.getRootElement().getName().equalsIgnoreCase(\"Exit\")) {\n \t //We remove the connected client from our array so he can reconnect at a later moment if he wishes too & that his unique identifier is not in use.\n \t //out.println(\"Client closed the connection\");\n \t out.write(XMLWriter.WriteExitComplete().asXML().getBytes());\n \t\n \t removeHost();\n \t clientSocket.close();\n }\n \n else if (document.getRootElement().getName().equalsIgnoreCase(\"Addmessage\")) {\n \t add();\n }\n //DELETE LOGIC\n else if (document.getRootElement().getName().equalsIgnoreCase(\"Delete\")) {\n \tdelete();\n }\n //REPLACE LOGIC\n else if (document.getRootElement().getName().equalsIgnoreCase(\"RplMessage\")) {\n \treplace();\n }\n //FETCH LOGIC\n else if (document.getRootElement().getName().equalsIgnoreCase(\"FetchMessages\")) {\n \t fetch(Integer.toString(clientID));\n \t// return out.println(messageDB.Fetch(recipientID, senderID, message));\n \t System.out.println(\"FETCH SUCCESS!!!!!!!!!\");\t \n } else {\n \t result = XMLWriter.WriteError(\"Wrong xml root!\").asXML();\n }\n \n \n \t\n } \n \n //We print back same command this is neccessary in case the user gives the exit command.\n out.write(result.getBytes());\n } \n } \n } catch (IOException | DocumentException | NullPointerException e) {\n \ttry {\n\t\t\tout.write(XMLWriter.WriteError(e.toString()).asXML().getBytes());\n\t\t} catch (IOException e1) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te1.printStackTrace();\n\t\t}\n \tSystem.out.println(e.getMessage()+ \"gdsågäkasåpogspågodkspgds<påägnmåädsg\");\n //e.printStackTrace();\n removeHost();\n } \n }", "title": "" }, { "docid": "67b84c6cc4135f51f7381757010161d0", "score": "0.60358524", "text": "public static void main(String[] args) throws IOException {\n\t\tInetAddress address = InetAddress.getByName(null);\n\t\tSocket socket = null;\n\t\tBufferedReader input = null;\n\t\tPrintWriter output = null;\n\t\t// variabile di scrittura su file per tenere conto delle giocate\n\t\tPrintWriter printout = null;\n\n\t\ttry {\n\t\t\t// costruisco il socket\n\t\t\tsocket = new Socket(address, Server.PORT);\n\t\t\tSystem.out.println(\"Client avviato.\\nSocket: \" + socket);\n\t\t\tSystem.out.println(\"\");\n\n\t\t\t// creo stream di lettura e di scrittura\n\t\t\tinput = new BufferedReader(new InputStreamReader(socket.getInputStream()));\n\t\t\toutput = new PrintWriter(new BufferedWriter(new OutputStreamWriter(socket.getOutputStream())), true);\n\t\t\t// file su cui verrano scritte le varie giocate tra il Client e il Server\n\t\t\tprintout = new PrintWriter(new BufferedWriter(new FileWriter(\"ClientvsServer.txt\")));\n\n\t\t\tString mossaClient = null;\n\t\t\tString mossaServer = null;\n\t\t\tString rispostaServer = null;\n\n\t\t\t// genero random la mossa del Client\n\t\t\tint mossa = (int) (Math.random() * 3);\n\t\t\twhile (true) {\n\t\t\t\tswitch (mossa) {\n\t\t\t\tcase 0:\n\t\t\t\t\tmossaClient = \"sasso\";\n\t\t\t\t\tSystem.out.println(\"Il Client gioca: \" + mossaClient);\n\t\t\t\t\tprintout.println(\"Il Client gioca: \" + mossaClient);\n\t\t\t\t\t// rigenero una mossa per continuare a giocare\n\t\t\t\t\tmossa = (int) (Math.random() * 3);\n\t\t\t\t\tbreak;\n\t\t\t\tcase 1:\n\t\t\t\t\tmossaClient = \"carta\";\n\t\t\t\t\tSystem.out.println(\"Il Client gioca: \" + mossaClient);\n\t\t\t\t\tprintout.println(\"Il Client gioca: \" + mossaClient);\n\t\t\t\t\tmossa = (int) (Math.random() * 3);\n\t\t\t\t\tbreak;\n\t\t\t\tcase 2:\n\t\t\t\t\tmossaClient = \"forbice\";\n\t\t\t\t\tSystem.out.println(\"Il Client gioca: \" + mossaClient);\n\t\t\t\t\tprintout.println(\"Il Client gioca: \" + mossaClient);\n\t\t\t\t\tmossa = (int) (Math.random() * 3);\n\t\t\t\t\tbreak;\n\n\t\t\t\t}\n\n\t\t\t\t// comunico al server la mossa del Client\n\t\t\t\toutput.println(mossaClient);\n\t\t\t\t// ottengo la mossa del Server\n\t\t\t\tmossaServer = input.readLine();\n\t\t\t\tSystem.out.println(mossaServer);\n\t\t\t\tprintout.println(mossaServer);\n\t\t\t\t// ottengo la risposta del Server\n\t\t\t\trispostaServer = input.readLine();\n\t\t\t\tprintout.println(rispostaServer);\n\t\t\t\tSystem.out.println(rispostaServer);\n\n\t\t\t\t// OPZIONALE: il codice commentato serve per non far durare le giocate\n\t\t\t\t// all'infinito.\n\n\t\t\t\t/*\n\t\t\t\t * if (rispostaServer.equals(\"Il Server non ha più giocate disponibili.\")) {\n\t\t\t\t * System.out.println(\"\"); printout.println(\"\");\n\t\t\t\t * System.out.println(\"Gioco terminato.\"); printout.println(\"Gioco terminato.\");\n\t\t\t\t * System.out.println(\"\"); printout.println(\"\"); break; }\n\t\t\t\t */\n\n\t\t\t}\n\n\t\t} catch (UnknownHostException e) {\n\t\t\tSystem.err.println(\"Indirizzo sconosciuto: \" + address);\n\t\t} catch (IOException e) {\n\t\t\tSystem.err.println(\"Errore di I/0...\");\n\t\t}\n\n\t\t// chiudo tutto\n\t\tinput.close();\n\t\toutput.close();\n\t\tprintout.close();\n\t\tsocket.close();\n\t\tSystem.out.println(\"Client chiuso.\");\n\n\t}", "title": "" }, { "docid": "421ad1214a6c704521dafcc7be7e5118", "score": "0.6025429", "text": "private void start() throws IOException, InterruptedException {\r\n String input;\r\n while (true) {\r\n \tDataOutputStream out= new DataOutputStream(socket.getOutputStream());\r\n DataInputStream in= new DataInputStream(socket.getInputStream());\r\n input= \"Generate Random Number\";\r\n Thread.sleep(1000);\r\n out.writeUTF(input);\r\n out.flush();\r\n System.out.println(\"\\r\\nNumber: \" + in.read()+\" , timestamp: \"+java.util.Calendar.getInstance().getTime());\r\n \t\r\n }\r\n \r\n }", "title": "" }, { "docid": "67c7ada5fb3b1d766f02bdcac6a1c509", "score": "0.6020877", "text": "public void start() {\n try {\n\n int numMessages = 0;\n long initialTime = System.currentTimeMillis();\n\n Socket cliente = TCPSocket.accept();\n ObjectOutputStream msgOutput = new ObjectOutputStream(cliente.getOutputStream());\n ObjectInputStream msgInput = new ObjectInputStream(cliente.getInputStream());\n\n do {\n\n String msgFromClient = (String) msgInput.readObject();\n\n System.out.print(cliente.getInetAddress() + \" | \" + cliente.getPort());\n System.out.print(\" : \");\n System.out.println(msgFromClient);\n\n String messageOut = \"\";\n\n numMessages++;\n\n if (msgFromClient.intern() == \"NUMREQ\") {\n System.out.println(\"> NUMREQ: \" + numMessages);\n messageOut = Integer.toString(numMessages);\n } else if (msgFromClient.intern() == \"UPTIME\") {\n messageOut = Long.toString((System.currentTimeMillis() - initialTime) / 1000);\n }\n\n if (msgFromClient.intern() == \"CLOSE\") {\n\n break;\n }\n\n msgOutput.writeObject(messageOut);\n msgOutput.flush();\n } while (true);\n } catch (Exception ioEx) {\n ioEx.printStackTrace();\n } finally {\n System.out.println(\"\\n Closing connection...\");\n try {\n TCPSocket.close();\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n }", "title": "" }, { "docid": "ba54844046322d0092a49068cc70c983", "score": "0.6017662", "text": "public static void main(String[] args) {\n\n try{\n Socket socket=new Socket(\"127.0.0.1\",8888);\n\n DataInputStream inStream=new DataInputStream(socket.getInputStream());\n DataOutputStream outStream=new DataOutputStream(socket.getOutputStream());\n BufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n\n String clientMessage=\"\",serverMessage=\"\";\n\n while(!clientMessage.equals(\"farvel\")){\n clientMessage=br.readLine();\n outStream.writeUTF(clientMessage);\n outStream.flush();\n serverMessage=inStream.readUTF();\n System.out.println(\"Fra Server: \"+serverMessage);\n }\n\n outStream.close();\n outStream.close();\n socket.close();\n\n }catch(Exception e){\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "d803a3474328e34ed8cc94f71aa141ae", "score": "0.6002609", "text": "public static void main(String[] args) throws SocketException, IOException {\n DatagramSocket svSocket = new DatagramSocket(1234);\n byte[] receive = new byte[1024];\n DatagramPacket receivePacket = new DatagramPacket(receive, receive.length);\n svSocket.receive(receivePacket);\n String sentence = new String(receivePacket.getData());\n System.out.println(sentence);\n InetAddress IPAddress = receivePacket.getAddress();\n int port = receivePacket.getPort();\n Random rand = new Random();\n int n = rand.nextInt(10) + 1;\n int num;\n boolean flag = true;\n while(flag != false){\n sendData(\"Đoán xem? \", svSocket, IPAddress, port);\n num = Integer.parseInt(receiveData(svSocket));\n if(num == n){\n flag = false;\n sendData(\"Bạn đã đoán đúng số rồi.\", svSocket, IPAddress, port);\n }\n else if(num > n){\n sendData(\"Số bạn đoán lớn quá.\", svSocket, IPAddress, port);\n }\n else{\n sendData(\"Số bạn đoán nhỏ quá.\", svSocket, IPAddress, port);\n }\n if(flag == true){\n sendData(\"1\", svSocket, IPAddress, port);\n }\n else{\n sendData(\"0\", svSocket, IPAddress, port);\n }\n }\n svSocket.close();\n }", "title": "" }, { "docid": "7b4b1eb33b5c7eb7e8593415c8999884", "score": "0.59888774", "text": "@Override\n public void run() {\n \n try {\n System.out.println(\"Thread Attesa Attivo\");\n this.listener = new ServerSocket(9091);\n gameSocket = listener.accept();\n \n\n System.out.println(\"Connesso con me\");\n //this.client.close();\n /* Ricevo invito dal giocatore che vuole giocare con me */\n int reply = JOptionPane.showConfirmDialog(null, \"Sei stato invitato a giocare una partita. Accetti ?\", \"Invito\", JOptionPane.YES_NO_OPTION);\n //this.in.close();\n //this.pw.close();\n \n PrintWriter pw2 = new PrintWriter(gameSocket.getOutputStream(), true);\n //BufferedReader in = new BufferedReader(new InputStreamReader(gameSocket.getInputStream()));\n // in.close();\n // pw2.close();\n \n /* Se la risposta all'invito è Si allora : */\n if (reply == JOptionPane.YES_OPTION) {\n \n this.listener.close();\n pw2.println(\"Si\");\n\n System.out.println(\"Dentro!!!!!!!!!!!!!!11\");\n this.gameSocket.setTcpNoDelay(true);\n \n GameClient gameClient = new GameClient(gameSocket,this.listener,0,new Giocatore2());\n gameClient.setClientJFrame(this);\n //gameClient.setListaUtenti(this.listaUtenti);\n gameClient.setPw(this.pw);\n gameClient.setIn(this.in);\n //gameClient.setServerSocket(this.server);\n gameClient.getGiocatore().setId(this.portTxt.getText());\n //gameClient.setT1(this.threadAttesaInvito);\n gameClient.setVisible(true);\n \n this.listaUtenti.setStato(false);\n \n /* Se il JFrame listaUtenti non è nullo allora lo chiudo */\n \n if(this.listaUtenti != null)\n {\n this.listaUtenti.dispose();\n }\n \n \n \n\n }\n else {\n //JOptionPane.showMessageDialog(null, \"GOODBYE\");\n pw.println(\"No\");\n pw2.println(\"No\");\n this.gameSocket.close();\n this.listener.close();\n Thread t1 = new Thread(this);\n t1.start();\n //System.exit(0);\n }\n \n } catch (IOException ex) {\n Logger.getLogger(ClientJFrame.class.getName()).log(Level.SEVERE, null, ex);\n }\n \n \n }", "title": "" }, { "docid": "81839ee98fc4ab5af5008cf0488d7923", "score": "0.5982046", "text": "public void run() {\n try {\n\n OutputStream os = socket.getOutputStream();\n ObjectOutputStream oos = new ObjectOutputStream(os);\n ClientRequest request;\n while (true) {\n\n for (request = sosc.retrieveRequest(); request != null; request = sosc.retrieveRequest()) {\n oos.writeObject(request);\n //log.trace(\"Wrote requestCmd type \" + request.getRequestCmd());\n }\n // Need signal semphore here ... WAIT\n // See queSignale.set(); wakeupSemaphore.release(); use in Server.java\n // TODO CRITICAL 20160731 PERFORMANCE BOTTLENECK HERE !\n // Sleep(500) is a WORKAROUND .... retrieveRequest() SHOIULD BLOCK UNTIL a request is queued !!\n // TODO CRITICAL - Add semaphore\n // 20170420 (ajm) Issue#58 Moved sleep to outer loop to adress performance problem.\n try {\n Thread.sleep(50);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }\n //} catch (InterruptedException e) {\n // e.printStackTrace(); //To change body of catch statement use File | Settings | File Templates.\n } catch (SocketException se) {\n log.warn(\"Communication error with server\"); /// Happens when server? or process goes offline // fixme reconnection try\n } catch (IOException e) {\n log.error(\"Error handling server : \" + e);\n log.write(e);\n } finally {\n try {\n socket.close();\n } catch (IOException e) {\n log.error(\"Couldn't close a socket, what's going on?\");\n log.write(e);\n }\n log.info(\"Connection with server closed\"); /// todo - give it a better go than this !!! Retry\n }\n }", "title": "" }, { "docid": "09540376e5c5d57149d7257843b8fb46", "score": "0.59815836", "text": "@Override\r\n\tpublic void run() {\n\t\tObjectInputStream control_in = null;\r\n\t\tDataInputStream control_data_in = null;\r\n\t\tDataOutputStream control_data_out = null;\t\r\n\t\tObjectOutputStream control_out = null;\r\n\t\t\r\n\t\ttry {\r\n\t\t\tcontrol_data_in = new DataInputStream(new BufferedInputStream(client_control.getInputStream()));\r\n\t\t\tcontrol_data_out = new DataOutputStream(client_control.getOutputStream());\r\n\t\t\tcontrol_in = new ObjectInputStream(control_data_in);\r\n\t\t\tcontrol_out = new ObjectOutputStream(control_data_out);\r\n\t\t\t\r\n\t\t\t//Reading handshake data\r\n\t\t\tString handshake = control_data_in.readUTF();\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tRequestMessage handshake_message=new RequestMessage();\r\n\t\t\thandshake_message.parseToMessage(handshake);\r\n\t\t\t\r\n\t\t\t//Getting IP from handshake message\r\n\t\t\tString IPString = (String) handshake_message.getParameter(\"IP\");\r\n\t\t\tString portString = (String) handshake_message.getParameter(\"PORT\");\r\n\t\t\t\r\n\t\t\t//Converting\r\n\t\t\tInetAddress IP= InetAddress.getByName(IPString);\r\n\t\t\tint port= Integer.parseInt(portString);\r\n\t\t\t\r\n\t\t\tSystem.out.println(\"Server: asking for connection to \"+IPString+\":\"+portString);\r\n\t\t\t\r\n\t\t\t//Asking for connection\r\n\t\t\tclient_messages=new Socket(IP, port);\r\n\t\t\t\r\n\t\t\tDataInputStream message_data_in= new DataInputStream(new BufferedInputStream(client_messages.getInputStream()));\r\n\t\t\tDataOutputStream message_data_out= new DataOutputStream(client_messages.getOutputStream());\r\n\t\t\tObjectOutputStream message_out= new ObjectOutputStream(message_data_out);\r\n\t\t\tObjectInputStream message_in= new ObjectInputStream(message_data_in);\r\n\t\t\tUser connection_user=null;\r\n\t\t\t\r\n\t\t\t//Repeat while the client is connected\r\n\t\t\twhile(true) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\t//Reading client message\r\n\t\t\t\t\tObject message=null;\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\tmessage = (Object) control_in.readObject();\r\n\t\t\t\t\t} catch (ClassNotFoundException e) {\r\n\t\t\t\t\t\tSystem.out.println(\"Error while reading client message\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(message instanceof RequestMessage) {\r\n\t\t\t\t\t\t//Executing client request if message is RequestMessage\r\n\t\t\t\t\t\tconnection_user= executeRequest((RequestMessage)message,control_out,message_out, control_in, message_in);\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(message instanceof ResponseMessage) {\r\n\t\t\t\t\t\t//Processing client reply\r\n\t\t\t\t\t\tconnection_user= processResponse((ResponseMessage)message,control_out,message_out);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t//client closes connection\r\n\t\t\t\tcatch(EOFException e) {\r\n\t\t\t\t\t//SE ERA UN UTENTE LOGGATO, SETTALO OFFLINE\r\n\t\t\t\t\tif (connection_user!=null) {\r\n\t\t\t\t\t\tnotifier.notifyOfflineFriend(connection_user);\r\n\t\t\t\t\t\tmessage_manager.setSender(null);\r\n\t\t\t\t\t\tconnection_user.setOffline();\r\n\t\t\t\t\t\tSystem.out.println(connection_user.getUsername()+\" disconnected\");\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tSystem.out.println(\"Connection closed by anonymous client\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t\tcatch (IOException e1) {\r\n\t\t\t\t\t//If it was a logged user, change its status to offline\r\n\t\t\t\t\tif (connection_user!=null) {\r\n\t\t\t\t\t\tnotifier.notifyOfflineFriend(connection_user);\r\n\t\t\t\t\t\tmessage_manager.setSender(null);\r\n\t\t\t\t\t\tconnection_user.setOffline();\r\n\t\t\t\t\t\tSystem.out.println(connection_user.getUsername()+\" disconnected\");\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tSystem.out.println(\"Connection closed by anonymous client\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t} \r\n\t\tcatch (IOException e1) {\r\n\t\t\tSystem.out.println(\"IO Exception while instantiating client connection\");\r\n\t\t}\r\n\t\t\r\n\t\t//Closing \r\n\t\tfinally {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tif(client_control != null) client_control.close();\r\n\t\t\t\t\tif(client_messages != null) client_messages.close();\r\n\t\t\t\t\tif(control_in != null) control_in.close();\r\n\t\t\t\t\tif(control_out != null) control_out.close();\r\n\t\t\t\t} catch (IOException e) {\r\n\t\t\t\t\tSystem.out.println(\"Error while closing connection\");\r\n\t\t\t\t}\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "437c4ca99e8449679831560cbda86e15", "score": "0.59789616", "text": "@Async\n public void connect(Socket clientSocket) {\n String buf = null;\n BufferedReader br = null;\n PrintWriter pw = null;\n\n String pythonPath=System.getProperty(\"path\");\n String filePath;\n if(pythonPath==null){\n filePath=\"D:\\\\java\\\\memory-prediction-demo\\\\model\\\\DFP.model\";\n pythonPath=\"D:\\\\java\\\\memory-prediction-demo\\\\model\\\\xgbst_new.py\";\n }\n else{\n filePath=pythonPath+\"/DFP.model\";\n pythonPath=pythonPath+\"/xgbst_new.py\";\n }\n\n try {\n br = new BufferedReader(new InputStreamReader(clientSocket.getInputStream()));\n pw = new PrintWriter(new OutputStreamWriter(clientSocket.getOutputStream()));\n\n String ip=clientSocket.getInetAddress().toString().substring(1);\n boolean login=serverDao.containsIp(ip);\n //System.out.println(\"new connect ready: \"+ip);\n\n //read\n while(true){\n buf = br.readLine();\n //System.out.println(Thread.currentThread().getName()+\" client: \" + buf);\n\n if(buf.startsWith(\"close\")){\n break;\n }\n else if(buf.startsWith(\"login\")){\n String[] logInfor=buf.split(\",\");\n if(logInfor.length==3 && userDao.checkPassword(logInfor[1],logInfor[2])){\n pw.println(\"success\");\n pw.flush();\n login=true;\n if(!serverDao.containsIp(ip)){\n serverDao.saveIp(ip, logInfor[1]);\n }\n //System.out.println(\"success log in: \"+ip);\n }\n else{\n pw.println(\"refused\");\n pw.flush();\n System.out.println(\"log in refused: \"+ip);\n }\n }\n else if(login && buf.startsWith(\"hardware\")){\n String[] hardwareConfig=buf.split(\",\");\n if(hardwareConfig.length==6){\n if(serverDao.addInfo(ip, hardwareConfig[1], hardwareConfig[2], hardwareConfig[3], hardwareConfig[4], hardwareConfig[5])){\n System.out.println(\"success add hardware info\");\n }\n else{\n System.out.println(\"failed to add info\");\n }\n }\n }\n else if(login && buf.startsWith(\"append\")){\n String[] data=buf.split(\",\");\n if(data.length==6){\n Date date = new Date(System.currentTimeMillis());\n recordDao.save(ip,date,Float.parseFloat(data[1]),Float.parseFloat(data[2]),Float.parseFloat(data[3]),Integer.parseInt(data[4]),data[5]);\n\n StringBuffer sample=new StringBuffer();\n /*sample.append(serverDao.getServerBrandFromIp(ip)+\",\");\n sample.append(serverDao.getProcVersionFromIp(ip)+\",\");\n sample.append(serverDao.getMemManufactoryFromIp(ip)+\",\");\n sample.append(serverDao.getMemSpeedFromIp(ip)+\",\");\n sample.append(serverDao.getMemPartFromIp(ip));*/\n\n int[] CEs=recordDao.get10CE(ip,date);\n for(int ce:CEs){\n sample.append(\",\");\n sample.append(String.valueOf(ce));\n }\n\n String[] bankIDs=recordDao.get10BankID(ip,date);\n for(String bankID:bankIDs){\n sample.append(\",\");\n sample.append(bankID);\n }\n\n float[] readBandwidths=recordDao.get10ReadBandwidth(ip,date);\n for(float readBandwidth:readBandwidths){\n sample.append(\",\");\n sample.append(String.valueOf(readBandwidth));\n }\n\n float[] writeBandwidths=recordDao.get10WriteBandwidth(ip,date);\n for(float writeBandwidth:writeBandwidths){\n sample.append(\",\");\n sample.append(String.valueOf(writeBandwidth));\n }\n\n float[] readLatencys=recordDao.get10ReadLatency(ip,date);\n for(float readLatency:readLatencys){\n sample.append(\",\");\n sample.append(String.valueOf(readLatency));\n }\n\n float probability=0;\n try{\n String command=\"python \"+pythonPath+\" \"+filePath+\" \"+sample.toString();\n System.out.println(command);\n Process proc=Runtime.getRuntime().exec(command);\n proc.waitFor();\n BufferedReader in=new BufferedReader(new InputStreamReader(proc.getInputStream()));\n String line=in.readLine();\n if(line!=null){\n probability=Float.parseFloat(line);\n //System.out.println(\"new prediction: \"+probability);\n }else{\n System.out.println(\"prediction exception!\");\n System.out.println(command);\n }\n in.close();\n }catch(Exception e){\n e.printStackTrace();\n }\n predictionDao.save(ip,date,probability);\n //System.out.println(\"add record\");\n }\n else{\n System.out.println(\"failed to add record:\"+buf);\n }\n }\n }\n\n //close\n //System.out.println(\"close client\");\n br.close();\n pw.close();\n clientSocket.close();\n } catch (IOException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n\n }", "title": "" }, { "docid": "b1ff5152bca0a6028af422e3817ce3ca", "score": "0.5971172", "text": "@Override\n\tpublic void run() {\n\t\ttry { \n\t\t\tin = new BufferedReader(new InputStreamReader(socket.getInputStream()));\n\t\t\tos = new PrintWriter(socket.getOutputStream(),true);\n\t\t\twhile(!closed){\n\t\t\t\tinput_client = in.readLine();\n\t\t\t\tif(input_client.startsWith(\"HELO\")){\n sentence = input_client+\"\\nIP:\"+socket.getLocalAddress()+\"\\nPort:\"+socket.getLocalPort()+\"\\nStudentID:14303767\"+\"\\nend\";\n\t\t\t\t\tos.println(sentence);\n\t\t\t\t}\n\t\t\t\telse if(input_client.equals(\"KILL_SERVICE\")){\n closed = true;\n os.println(\"Connection Termination requested\"+'\\n');\n //Kill all threads, for other connected clients as well.\n new Service().killAll();\n\t\t\t\t}\n // When clients writes some other command(String) to the server, \n // server reply back with the same command (String)\n\t\t\t\telse{\n os.println(input_client+\"\\nend\");\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "title": "" }, { "docid": "d41f520fded554419a61e27778a13669", "score": "0.59706295", "text": "@Override\n public void run() {\n writeToHistory(\"Thread has ben created for connected client : \" + this.getName());\n writeToHistory(\"Bağlanan client için thread oluşturuldu : \" + this.getName());\n\n try {\n // input : onlineClient'dan gelen mesajları okumak için\n // output : server'a bağlı olan onlineClient'a mesaj göndermek için\n clientInput = new ObjectInputStream(clientSocket.getInputStream());\n clientOutput = new ObjectOutputStream(clientSocket.getOutputStream());\n\n Object mesaj;\n // onlineClient mesaj gönderdiği sürece mesajı al\n\n while ((mesaj = clientInput.readObject()) != null) {\n if (mesaj instanceof Contact) {// cleinttan gelen msaj onlineClient objesi ise \n client_info = (Contact) mesaj; // cleintin bilgilerini sakla \n\n writeToHistory(\" : \" + ((Contact) mesaj).name + \" \" + ((Contact) mesaj).telefon);\n\n }\n // onlineClient'in gönderdiği mesajı server ekranına yaz \n\n if (mesaj.equals(\"Creat Client\") && client_info != null) {// when sing-up button is pressed the onlineClient will send to the server this msg \n creatClient(client_info, clientOutput);\n onlineClientList.add(new OutputStreams(clientOutput, client_info.telefon));\n\n }\n if (mesaj.equals(\"log in\")) {\n login(client_info, clientOutput);\n onlineClientList.add(new OutputStreams(clientOutput, client_info.telefon));\n\n }\n // clientin attigi mesaji serverin arayuzune yaz \n if (mesaj instanceof File) {\n writeToHistory(mesaj);//bilgisini yaz\n\n }\n if (mesaj instanceof ImageIcon) {\n writeToHistory(mesaj);//bilgisini yaz\n\n }\n if (mesaj.toString().charAt(0) == '$') {\n variationQustionAnswer = mesaj + \"\";\n }\n if (mesaj.equals(\"reset pass\")) {\n resetPass(client_info, variationQustionAnswer, clientOutput);\n }\n if (mesaj.equals(\"get variation qustion\")) {\n getVarietionQustion(client_info, clientOutput);\n }\n /* if (mesaj.equals(\"@-send msg for other onlineClient:\")) {\n Msg msg = (Msg) clientInput.readObject();\n sendmsg(msg, clientOutput);\n }*/\n if (mesaj.equals(\"@-send string msg for other client:\")) {\n long sender = Long.parseLong(clientInput.readObject() + \"\");\n long reciver = Long.parseLong(clientInput.readObject() + \"\");\n Object msg = clientInput.readObject();\n\n sendmsg(sender, reciver, msg);\n }\n\n// if (mesaj instanceof String && ((String) mesaj).contains(\"@tel-\")) {\n// clientOutput.writeObject(\"sending contact\");\n// String tel = ((String) mesaj).substring(5);\n// \n// }\n if (mesaj.equals(\"@ add new contact\")) {\n mesaj = clientInput.readObject();\n\n long contectTobeAdded = Long.parseLong(mesaj.toString());\n addContactToClientContactList(client_info, contectTobeAdded, clientOutput);\n\n }\n if (mesaj.equals(\"@ my contacts pleas\")) {\n long accountOwner = Long.parseLong(clientInput.readObject() + \"\");\n sendContactList(accountOwner);\n }\n\n if (mesaj.equals(\"@ History pleas\")) {\n long sender = Long.parseLong(clientInput.readObject() + \"\");\n long reciver = Long.parseLong(clientInput.readObject() + \"\");\n System.out.println(\"@ History pleas from server \");\n sendChatHistory(sender, reciver, clientOutput);\n }\n if (mesaj.equals(\"@I am on chat\")) {\n long sender = Long.parseLong(clientInput.readObject() + \"\");\n long reciver = Long.parseLong(clientInput.readObject() + \"\");\n while ((mesaj=clientInput.readObject()).equals(\"@-send string msg for other client:\")&&!mesaj.equals(\"I left the chat\")) {\n// mesaj = clientInput.readObject();\n// System.out.println(\"from while \" + mesaj);\n sender = Long.parseLong(clientInput.readObject() + \"\");\n reciver = Long.parseLong(clientInput.readObject() + \"\");\n Object msg = clientInput.readObject();\n sendmsg(sender, reciver, msg);\n sendChatHistory(sender, reciver, clientOutput);\n for (OutputStreams onlineClient : onlineClientList) {\n if(onlineClient.clientNo==reciver){\n onlineClient.clientoutput.writeObject(\"@you have new mesaj\");\n sendChatHistory(reciver, sender, onlineClient.clientoutput);\n break;\n }\n }\n System.out.println(\"updating History \");\n }\n System.out.println(\"i am out of loop \");\n }\n }\n // baglanan clientin icin bilgisini server arayuzune yazdiryorum\n\n } catch (IOException | ClassNotFoundException ex) {\n System.out.println(\"Hata - ListenThread : \" + ex);\n } finally {\n try {\n // client_info.state=\"offline\";\n // bütün streamleri ve soketleri kapat\n if (clientInput != null) {\n clientInput.close();\n }\n if (clientOutput != null) {\n clientOutput.close();\n }\n if (clientSocket != null) {\n clientSocket.close();\n }\n for (Contact client : allClients) {\n if (client_info != null && client_info.telefon == client.telefon) {\n\n client.state = \"offline\";\n }\n }\n for (int i = 0; i < onlineClientList.size(); i++) {\n if (onlineClientList.get(i).clientNo == client_info.telefon) {\n onlineClientList.remove(i);\n }\n }\n\n writeToHistory(\"Soket kapatıldı : \" + clientSocket);\n } catch (IOException ex) {\n System.out.println(\"Hata - Soket kapatılamadı : \" + ex);\n }\n }\n }", "title": "" }, { "docid": "f87dd05de35e920b9296a5f7cb043706", "score": "0.5953865", "text": "public static void main(String args[]) throws IOException{\n\t\tSocket socket = new Socket(\"127.0.0.1\", 4700);\r\n\t\tClient client = new Client(socket);\r\n\t\tPrintWriter os = new PrintWriter(new OutputStreamWriter(socket.getOutputStream()));\r\n\t\tSystem.out.print(\"Please input c(chat), s(send file), r(receive file), q(quit):\");\r\n\t\tScanner sin = new Scanner(System.in);\r\n\t\tString choice = sin.nextLine();\r\n// while(!choice.equals(\"q\")){\r\n// \t switch(choice){\r\n// \t\t case \"c\":{\r\n// \t\t \t\t os.println(choice);\r\n// \t\t\t\t os.flush();\r\n//\t\t \t client.chat();\r\n//\t\t \t break;\r\n//\t\t }\r\n//\t\t case \"s\":{\r\n//\t\t \t\t os.println(choice);\r\n//\t\t\t\t os.flush();\r\n//\t\t \t client.sendFile();\r\n//\t\t \tbreak;\r\n//\t }\r\n//\t case \"r\":{\r\n//\t \t \tclient.receiveFile();\r\n//\t \t \tbreak;\r\n//\t \t }\r\n// \t }\r\n// \t choice = sin.nextLine();\r\n// \t os.println(choice);\r\n// }\r\n \t switch(choice){\r\n\t case \"c\":{\r\n\t \t\tos.println(choice);\r\n\t\t\tos.flush();\r\n \t client.chat();\r\n \t break;\r\n }\r\n case \"s\":{\r\n \t \tos.println(choice);\r\n \t\t os.flush();\r\n \tclient.sendFile();\r\n \tbreak;\r\n }\r\n case \"r\":{\r\n\t \tclient.receiveFile();\r\n\t \tbreak;\r\n\t }\r\n }while(!choice.equals(\"q\"));\r\n\t}", "title": "" }, { "docid": "d224692305b2a00e4594f3d1efd5a80d", "score": "0.5952679", "text": "public void run() {\n\t\ttry {\n\t\t\t//while (true){\n\t\t\t\t// The following is a blocking call\n\t\t\t\tint cases = 0;\n\t\t\t\t// Send message to the connected client\n\t\t\t\tPrintWriter pw = new PrintWriter(client_socket.getOutputStream(), true);\n\t\t\t\tpw.println(\"Hello from server.\");\n\t\t\t\tpw.println(\"Please choose from the following options:\");\n\t\t\t\tpw.println(\"1. Press 1 to place a new file.\");\n\t\t\t\tpw.println(\"2. Press 2 to lookup a file\");\n\t\t\t\tpw.println(\"3. Press 3 to get a file\");\n\t\t\t\tpw.flush();\n\n\n\t\t\t\t// Read message from the client\n\t\t\t\tInputStreamReader isr = new InputStreamReader(client_socket.getInputStream());\n\t\t\t\tBufferedReader br = new BufferedReader(isr);\n\t\t\t\t// Check if client registered or not\n\t\t\t\tString id_from_client = br.readLine();\n\t\t\t\tif (check_if_registered(id_from_client) == false) {\n\t\t\t\t\taddClient(Integer.parseInt(id_from_client));\n\t\t\t\t\tFile client_dir = new File(id_from_client);\n\t\t\t\t\tclient_dir.mkdir();\n\t\t\t\t}\n\t\t\t\twhile (true) {\n\t\t\t\t\t// check client's chosen option IF clients connected\n\t\t\t\t\tString read_case_from_client = br.readLine();\n\t\t\t\t\t/*if ((read_case_from_client = br.readLine()) != null) {\n\t\t\t\tSystem.out.println(\"hey\");\n\t\t\t\tcases = Integer.parseInt(read_case_from_client);\n\t\t\t\t}*/\n\t\t\t\t\t// connection with client lost\n\t\t\t\t\tif (read_case_from_client == null) break;\n\t\t\t\t\t// If user inputs a string and not numbers for choice\n\t\t\t\t\ttry {\n\t\t\t\t\t\tcases = Integer.parseInt(read_case_from_client);\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tcases = 0;\n\t\t\t\t\t}\n\t\t\t\t\t// Response of clients chosen option\n\t\t\t\t\tswitch (cases) {\n\t\t\t\t\tcase 1:\n\t\t\t\t\t\tString filename = br.readLine();\n\t\t\t\t\t\tString IDClient = br.readLine();\n\t\t\t\t\t\taddFile(filename,IDClient);\n\t\t\t\t\t\tSystem.out.println(\"New file added successfully.\");\n\t\t\t\t\t\t/*for (int i = 0; i < GlobalVariables.filesPresent.size(); i=i+2) {\n\t\t\t\t\t\t\tSystem.out.println(\"File name: \" + GlobalVariables.filesPresent.get(i));\n\t\t\t\t\t\t\tSystem.out.println(\"Client Id: \" + GlobalVariables.filesPresent.get(i+1));\n\t\t\t\t\t\t}*/\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 2:\n\t\t\t\t\t\tString filename1 = br.readLine();\n\t\t\t\t\t\tString client = lookup(filename1);\n\t\t\t\t\t\tif (client!=null) {\n\t\t\t\t\t\t\tSystem.out.println(\"File found with client \"+ client);\n\t\t\t\t\t\t\tpw.println(\"File found\");\n\t\t\t\t\t\t\tpw.println(client);\n\t\t\t\t\t\t\tpw.flush();\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tpw.println(\"File not found\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 3:\n\t\t\t\t\t\tString _filename = br.readLine();\n\t\t\t\t\t\tString _clientId = br.readLine();\n\n\t\t\t\t\t\tString _client = lookup(_filename);\n\t\t\t\t\t\tif (_client ==null){\n\t\t\t\t\t\t\tpw.println(\"File not found\");\n\t\t\t\t\t\t\tpw.flush();\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tif (_client.equals(_clientId)) {\n\t\t\t\t\t\t\t\tpw.println(_clientId);\n\t\t\t\t\t\t\t\tpw.flush();\n\t\t\t\t\t\t\t\tSystem.out.println(\"File present in local directory.\");\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tSystem.out.println(\"File found with client: \" + _client);\n\t\t\t\t\t\t\t\tpw.println(_client);\n\t\t\t\t\t\t\t\tpw.flush();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tdefault:\n\t\t\t\t\t\tSystem.out.println(\"Invalid option.\");\n\t\t\t\t\t\tbreak;\t\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t//}\n\t\t} catch (Exception e) {\n\t\t\t// Exception printed on console in case of error\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "title": "" }, { "docid": "730e3e2f4e91e8b52853fe8ff1978bff", "score": "0.594634", "text": "public void run() {\n\t\twhile (true) {\n\t\t\ttry {\n\t\t\t\tSocket clientSocket = serverSocket.accept();\n\t\t\t\tPrintWriter out = new PrintWriter(clientSocket.getOutputStream(), true);\n\t\t\t\tBufferedReader in = new BufferedReader(new InputStreamReader(clientSocket.getInputStream()));\n\t\t\t\t\n\t\t\t\tString inputLine = in.readLine();\n\t\t\t\t\n\t\t\t\t// Validity Check\n\t\t\t\tString locations = \"CL50EELWSNPMUPUSH*\";\n\t\t\t\tboolean flag = false;\n\t\t\t\tif (inputLine.charAt(0) == ':')\n\t\t\t\t\tflag = inputLine.equals(\":LIST_PENDING_REQUESTS\") || inputLine.equals(\":RESET\")\n\t\t\t\t\t || inputLine.equals(\":SHUTDOWN\");\n\t\t\t\telse {\n\t\t\t\t\tString[] arrayStr = inputLine.split(\",\");\n\t\t\t\t\tif (arrayStr.length == 4) {\n\t\t\t\t\t\tif (!(arrayStr[1].equals(arrayStr[2]))\n\t\t\t\t\t\t && ((locations.indexOf(arrayStr[1]) >= 0) && !arrayStr[1].equals(\"*\"))\n\t\t\t\t\t\t && (locations.indexOf(arrayStr[2]) >= 0))\n\t\t\t\t\t\t\tflag = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (!flag) {\n\t\t\t\t\tout.println(\"ERROR: invalid request\");\n\t\t\t\t\tclientSocket.setReuseAddress(true);\n\t\t\t\t\tclientSocket.close();\n\t\t\t\t\tin.close();\n\t\t\t\t\tout.close();\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// Handle Request\n\t\t\t\t// :LIST_PENDING_REQUESTS\n\t\t\t\tif (inputLine.equals(\":LIST_PENDING_REQUESTS\")) {\n\t\t\t\t\tout.println(stringList.toString());\n\t\t\t\t\tclientSocket.setReuseAddress(true);\n\t\t\t\t\tclientSocket.close();\n\t\t\t\t\tin.close();\n\t\t\t\t\tout.close();\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// :RESET\n\t\t\t\tif (inputLine.equals(\":RESET\")) {\n\t\t\t\t\tfor (int i = 0; i < socketList.size(); i++) {\n\t\t\t\t\t\tPrintWriter tempout = new PrintWriter(socketList.get(i).getOutputStream(), true);\n\t\t\t\t\t\ttempout.println(\"ERROR: connection reset\");\n\t\t\t\t\t\tsocketList.get(i).close();\n\t\t\t\t\t\ttempout.close();\n\t\t\t\t\t}\n\t\t\t\t\tsocketList.clear();\n\t\t\t\t\tstringList.clear();\n\t\t\t\t\tout.println(\"RESPONSE: success\");\n\t\t\t\t\tclientSocket.setReuseAddress(true);\n\t\t\t\t\tclientSocket.close();\n\t\t\t\t\tin.close();\n\t\t\t\t\tout.close();\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// :SHUTDOWN\n\t\t\t\tif (inputLine.equals(\":SHUTDOWN\")) {\n\t\t\t\t\tfor (int i = 0; i < socketList.size(); i++) {\n\t\t\t\t\t\tPrintWriter tempout = new PrintWriter(socketList.get(i).getOutputStream(), true);\n\t\t\t\t\t\ttempout.println(\"ERROR: connection reset\");\n\t\t\t\t\t\tsocketList.get(i).close();\n\t\t\t\t\t\ttempout.close();\n\t\t\t\t\t}\n\t\t\t\t\tout.println(\"RESPONSE: success\");\n\t\t\t\t\tserverSocket.setReuseAddress(true);\n\t\t\t\t\tserverSocket.close();\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// Requests\n\t\t\t\tString[] arrayStr = inputLine.split(\",\");\n\t\t\t\tboolean check = false;\n\t\t\t\tfor (int i = 0; i < stringList.size(); i++) {\n\t\t\t\t\tif (stringList.get(i).get(1).equals(arrayStr[1])) {\n\t\t\t\t\t\tif ((stringList.get(i).get(2).equals(arrayStr[2]) || (stringList.get(i).get(2).equals(\"*\") || arrayStr[2]\n\t\t\t\t\t\t .equals(\"*\")))) {\n\t\t\t\t\t\t\tif (!(stringList.get(i).get(2).equals(\"*\") && arrayStr[2].equals(\"*\"))) {\n\t\t\t\t\t\t\t\tcheck = true;\n\t\t\t\t\t\t\t\tPrintWriter tempout = new PrintWriter(socketList.get(i).getOutputStream(), true);\n\t\t\t\t\t\t\t\tList<String> list = Arrays.asList(arrayStr);\n\t\t\t\t\t\t\t\ttempout.printf(\"RESPONSE: %s\", list.toString());\n\t\t\t\t\t\t\t\tout.printf(\"RESPONSE: %s\", stringList.get(i).toString());\n\t\t\t\t\t\t\t\tsocketList.get(i).setReuseAddress(true);\n\t\t\t\t\t\t\t\tsocketList.get(i).close();\n\t\t\t\t\t\t\t\tsocketList.remove(i);\n\t\t\t\t\t\t\t\tstringList.remove(i);\n\t\t\t\t\t\t\t\tclientSocket.setReuseAddress(true);\n\t\t\t\t\t\t\t\tclientSocket.close();\n\t\t\t\t\t\t\t\tin.close();\n\t\t\t\t\t\t\t\tout.close();\n\t\t\t\t\t\t\t\ttempout.close();\n\t\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (!check) {\n\t\t\t\t\tstringList.add(Arrays.asList(arrayStr));\n\t\t\t\t\tsocketList.add(clientSocket);\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t} catch (IOException e) {\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "1e58074454f3a0bf6950edae95be4474", "score": "0.59357077", "text": "public void run(){\n try {\n //Declaring variable for the connection.\n BufferedReader br = new BufferedReader(new InputStreamReader(s.getInputStream()));\n PrintWriter pw = new PrintWriter(s.getOutputStream());\n System.err.println(\"Connection from: \" + s);\n System.err.println(\"Connection established - initialized I/O methods\");\n System.err.println(\"Waiting for client to select squad.\");\n System.err.println(\"Ladri squad has \" + Board.thieves.size() + \" players\");\n System.err.println(\"Cops squad has \" + Board.cops.size() + \" players\");\n System.out.println(\"\" + System.currentTimeMillis());\n String squad = br.readLine();\n \n if(squad.equalsIgnoreCase(\"ladri\") && Board.getThiefCount()){\n PID = Board.getEmptyID(squad);\n if(PID == 9){\n System.err.println(\"Client Thread from: \" + s);\n System.err.println(\"Maximum players reached, stopping thread and closing connection\");\n pw.println(\"error\");\n pw.flush();\n System.err.println(\"Sent error code to client, interrupting thread\");\n Thread.sleep(50);\n Thread.currentThread().interrupt();\n Thread.sleep(2000);\n }\n else{\n System.err.println(\"Client Thread from + \" + s);\n System.err.println(\"Maximum player NOT reached, Thread accepted\");\n pw.println(\"ok\");\n pw.flush();\n }\n }else if(squad.equalsIgnoreCase(\"guardie\") && Board.getCopCount()){\n PID = Board.getEmptyID(squad);\n\n if(PID == 9){\n System.err.println(\"Client Thread from + \" + s);\n System.err.println(\"Maximum players reached, stopping thread and closing connection\");\n pw.println(\"error\");\n pw.flush();\n System.err.println(\"Sent error code to client, interrupting thread\");\n Thread.sleep(50);\n Thread.currentThread().interrupt();\n Thread.sleep(2000);\n }\n else{\n System.err.println(\"Client Thread from + \" + s);\n System.err.println(\"Maximum player NOT reached, Thread accepted\");\n pw.println(\"ok\");\n pw.flush();\n }\n }else{\n System.err.println(\"General Error\");\n pw.println(\"error\");\n pw.flush();\n Thread.sleep(50);\n Thread.currentThread().interrupt();\n Thread.sleep(2000);\n }\n\n System.err.println(\"Client selected squad : \" + squad);\n System.err.println(\"Waiting for client username: \");\n\n //String name = br.readLine();\n Board.randomSpawn(PID, squad);\n long time = System.currentTimeMillis();\n while(true){\n String cmd = br.readLine();\n \n if(cmd == null || cmd.equalsIgnoreCase(\"exit\")){\n Board.releaseID(PID, squad);\n pw.close();\n br.close();\n s.close();\n Thread.currentThread().interrupt();\n Thread.sleep(2000);\n } \n while(System.currentTimeMillis() - 10 > time){\n if(!Board.movePlayer(PID, squad, cmd)){\n pw.println(\"disconnect\");\n pw.flush();\n pw.close();\n br.close();\n s.close();\n break;\n }\n time = System.currentTimeMillis();\n }\n }\n }catch(IOException | InterruptedException e){\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "8301556853d76c41e7a93200f5bd40a9", "score": "0.59346765", "text": "public void run() {\t\n\t System.out.println(\"server\");\n try (//Simple method for starting a socket on port portNumber\n ServerSocket serverSocket = new ServerSocket(portNumber);\n Socket clientSocket = serverSocket.accept();//Waits for a client to send it something \n PrintWriter out = new PrintWriter(\"results.txt\", \"UTF-8\"); \n BufferedReader in = new BufferedReader(\n \t\tnew InputStreamReader(clientSocket.getInputStream()));\n \t\t\n ) {\n String inputLine, oldInput = \"a\";//For initial comparison of received stuff\n int x = 1;//For results file purposes\n long start = System.currentTimeMillis();\n long chan = 0;\n out.println(chan);\n out.println(1);\n\t while ((inputLine = in.readLine()) != null) {\n\t if(!oldInput.equals(inputLine)){\n\t \tchan = System.currentTimeMillis() - start;\n\t \t out.println(chan);\n\t \t out.println(x);\n\t \tx=x*2;//Since this is TCP we always know what size the packets will be\n\t \t start = start + chan;\n\t \t oldInput = inputLine;\n\t }\n }\n \tchan = System.currentTimeMillis() - start;\n out.println(chan);\t \n out.close();\n clientSocket.close();\n \n } catch (IOException e) {\n System.out.println(\"Exception caught when trying to listen on port \"\n + portNumber + \" or listening for a connection\");\n System.out.println(e.getMessage());\n }\n \n\t}", "title": "" }, { "docid": "f6122c7120e484d1c3983690fb783bbe", "score": "0.5934559", "text": "public void dumpResponse()\n\t{\n\t\tboolean hasMore=true;\n\t\tSystem.out.println(myName+\" has \"+socketOutDataQ.size());\n\t\twhile (mySocket.isSktConnected() && mySocket.hasOutStream() ||\n\t\t\t\tsocketOutDataQ.size() > 0)\n\t\t{\t\t\t\n\t\t\tString socketData=null;\n\t\t\ttry \n\t\t\t{\n\t\t\t\tif (socketOutDataQ.size() > 0) \n\t\t\t\t{\n\t\t\t\t\thasMore=true;\n\t\t\t\t\tsocketData=socketOutDataQ.poll(100, TimeUnit.MILLISECONDS);\n\t\t\t\t}\n\t\t\t\telse \n\t\t\t\t{\n\t\t\t\t\thasMore=false;\n\t\t\t\t\tsocketData = socketOutDataQ.poll(3000, TimeUnit.MILLISECONDS);//socketOutDataQ.take();\n\t\t\t\t\t}\n\t\t\t} catch (InterruptedException e1) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te1.printStackTrace();\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\n\t\t\tif (socketData != null)\n\t\t\t{\n\t\t\t\tint iTry = 0;\n\t\t\t\thasMore=true;\n\t\t\t\tString data=new String(socketData);\n\t\t\t\twhile (!mySocket.sendText(socketData)){\n\t\t\t\t\ttry {\n\t\t\t\t\t\tThread.sleep(800);\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\t\t\t\t\t\n\t\t\t\t\tif (mySocket.isClosed() || iTry++ > 5) \n\t\t\t\t\t{\n\t\t\t\t\t\tlog.info(\"failed to send :\"+data);\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tsocketOutDataQ.put(socketData);\n\t\t\t\t\t\t} catch (InterruptedException e1) {\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t//log.info(\"resp: \"+data);\n\t\t\t\tmyPrinter.printMsg(\"<<<\"+data+\" to --- \"+myName);\n\t\t\t}\n\t\t\tif (!hasMore) {\n\t\t\t\tif (mySocket.isSktConnected() && mySocket.hasOutStream())\n\t\t\t\t{\n\t\t\t\t\ttry {\n\t\t\t\t\t\tOutputStream os=mySocket.getOutputStream();\n\t\t\t\t\t\tif (os!=null)\n\t\t\t\t\t\t\tos.close();\n\t\t\t\t\t} catch (SocketException e) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t//e.printStackTrace();\n\t\t\t\t\t}catch (IOException e) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\t\t\n\t}", "title": "" }, { "docid": "24f1239a65db79f15becdacef6eff6f9", "score": "0.5921387", "text": "public static void main(String[] args) throws IOException {\n int port = 8081;\n\n ServerSocket serverSocket = new ServerSocket(port);\n\n System.out.println(\"Serer running on: \"+port);\n\n while (true) {\n Socket client=serverSocket.accept();\n InputStreamReader isr = new InputStreamReader(client.getInputStream());\n BufferedReader br = new BufferedReader(isr);\n\n StringBuilder request = new StringBuilder();\n\n String line;\n line = br.readLine();\n while (!line.isBlank()) {\n request.append(line+\"\\r\\n\");\n line = br.readLine();\n }\n System.out.println(\"message\");\n String firstLine= request.toString().split(\"\\n\")[0];\n\n String verbe = firstLine.split(\" \")[0];\n\n System.out.println(verbe);\n\n OutputStream clientOuput = client.getOutputStream();\n clientOuput.write(\"HTTP/1.1 200 OK \\r\\n\".getBytes());\n clientOuput.write(\"\\r\\n\".getBytes());\n clientOuput.write(\"Welcome babe\".getBytes());\n clientOuput.flush();\n clientOuput.close();\n }\n\n\n }", "title": "" }, { "docid": "a49debe00d8336a86a23a8607b2062e9", "score": "0.58766365", "text": "@Override\r\n\tpublic void run() {\n\t\tServerSocket server =serverSocket;\r\n\t\t\r\n\t\twhile(true) {\r\n\t\t\t\r\n\t\t\ttry {\r\n\t\t\t\tclient = serverSocket.accept();\r\n\t\t\t\tSystem.out.println(\"connected client\" + client);\r\n\t\t\t\tconnections.add(client);\r\n//\t\t\t\tSocket socket = server.accept();\r\n\t\t\t\tSystem.out.println(\"before is\");\r\n\t\t\t\tObjectInputStream is = new ObjectInputStream(client.getInputStream());\r\n\t\t\t\t System.out.println(\"after is\");\r\n\t\t\t\tObjectOutputStream os = new ObjectOutputStream(client.getOutputStream());\r\n\t\t\t\t \r\n\t\t\t\tconnections.add(client);\r\n\t\t\t\t\r\n\t\t\t\tif(is != null) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\treceiveplan = (Plan)is.readObject();\r\n\t\t\t\t\t//System.out.println(\"User ID = \"+receiveuser.getID() + \"User Name = \"+receiveuser.getName());\r\n\t\t\t\t\tMainServer.save(receiveplan);\r\n\t\t\t\t\tsendplans = MainServer.plans;\r\n\t\t\t\t\tSystem.out.println(\"receive!\");\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t} catch (ClassNotFoundException e) {\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t//형변환한게 저장되어있는 유저의ID와같을경우\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\tif(os != null){\r\n\t\t\t\r\n//\t\t\t\t\tsenduser = Server.load(receiveuser);\r\n//\t\t\t\t\t//senduser.Name = \"change\";\r\n\t\t\t\t\t\r\n\t\t\t\tfor(Socket socket: connections) {\t\r\n\t\t\t\t os.writeObject(sendplans);\r\n\t\t\t\t os.flush();\r\n\t\t\t\t}\r\n\t\t\t\t System.out.println(\"server send\");}\r\n\r\n\t\t\t\r\n\t\t\t\t//client.close();\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t\tSystem.out.print(\"receive plans users : \");\r\n\t\t\treceiveplan.printUser();\r\n\t\t\tSystem.out.print(\"send plans users : \");\r\n\t\t\tfor(int i=0;i<sendplans.size();i++)\r\n\t\t\tsendplans.get(i).printUser();\r\n\t\t\t\r\n\t\t\t\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "d8e5e7fb38eba89361479a7548df1e28", "score": "0.58745366", "text": "public void chat()\n\t{\n\t\tint choice;\n\t\tint choose_client;\n\t\tSystem.out.println(\"Chat is started:\");\n\t\twhile(true)\n\t\t{\n\n\n\t\t\tSystem.out.println(\"1.Get name \");\n\t\t\tSystem.out.println(\"2.Send to Server \");\n\t\t\tSystem.out.println(\"3.Accept text from Server\");\n\t\t\tSystem.out.println(\"4.Quit\");\n\n\t\t\t//Scanner sc=new Scanner(System.in);\n\t\t\tchoice=validatechoice(4,sc);\n\t\t\t//choice=sc.nextInt();\n\n\t\t\tswitch(choice)\n\t\t\t{\n\t\t\tcase 1:\n\t\t\t\tSystem.out.println(\"Enter your name\");\n\t\t\t\ttry {\n\t\t\t\t\tps=new PrintStream(this.s.getOutputStream());\n\t\t\t\t} catch (IOException e) {\n\n\t\t\t\t\tSystem.out.println(\"Exception occured during opening the connection\");\n\t\t\t\t\tSystem.exit(0);\n\t\t\t\t}\n\n\n\t\t\t\ttry {\n\t\t\t\t\tmyname=stdin.readLine();\n\t\t\t\t} catch (IOException e1) {\n\n\t\t\t\t\tSystem.err.println(\"Exception during accepting name\");\n\t\t\t\t\tSystem.exit(0);\n\t\t\t\t}\n\t\t\t\tps.println(myname);\t\t\n\n\t\t\t\tbreak;\n\t\t\tcase 2:\n\t\t\t\tSend_Message();\n\n\t\t\t\tbreak;\n\n\n\t\t\tcase 3:\n\n\t\t\t\tReceive_Message();\n\t\t\t\tbreak;\n\t\t\tcase 4:\n\t\t\t\ttry {\n\t\t\t\t\ts.close();\n\t\t\t\t\tSystem.exit(0);\n\t\t\t\t} catch (IOException e) {\n\n\t\t\t\t\tSystem.err.println(\"Exception while closing socket\");\n\t\t\t\t\t//System.exit(0);\n\t\t\t\t}\n\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t}\n\t}", "title": "" }, { "docid": "2a7a8a6700d72d2036d11c9f5e0bd721", "score": "0.5870247", "text": "@SuppressWarnings(\"resource\")\n\tpublic void run(){\n\t\ttry {\n\t\t\tSocket client;\n\t\t\twhile(true){\n\t\t\t\tclient = server.accept();\t\t\t\t\t\t\t\t\t\t\t//Waiting for a client\n\t\t\t\tsynchronized(client){\n\t\t\t\t\tBufferedReader in = new BufferedReader(new InputStreamReader(\t//The in stream of the client\n\t\t\t\t\t\t\tclient.getInputStream())\n\t\t\t\t\t);\n\t\t\t\t\tString line = in.readLine();\t\t\t\t\t\t\t\t\t//Read the first line sent by the client\n\t\t\t\t\tString[] command = line.split(\" \");\t\t\t\t\t\t\t\t//Split by the space character\n\t\t\t\t\tif(command[0].equals(\"REGISTER\")) {\t\t\t\t\t\t\t\t//If the client want to register a service\n\t\t\t\t\t\tif(!server.serviceRegistered(command[1])){\t\t\t\t\t//Check if the service is already registered\n\t\t\t\t\t\t\tSystem.out.println(\"Enregistrement du service : \" + command[1]);\n\t\t\t\t\t\t\tline = in.readLine();\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tString code = \"\";\n\t\t\t\t\t\t\twhile (!line.equals(\"END REGISTER\")) {\t\t\t\t\t//Loop until all the code is received\n\t\t\t\t\t\t\t\tcode += line;\n\t\t\t\t\t\t\t\tline = in.readLine();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tsynchronized(server){\n\t\t\t\t\t\t\t\tserver.put(command[1],code);\t\t\t\t\t\t//Put the service on the server\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\tSystem.out.println(\"Service \"+command[1]+\" déjà enregistré.\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}else if((command[0].equals(\"PROXY_GETINFO\"))){\t\t\t\t\t//If the client is the proxy and it wants informations\n\t\t\t\t\t\tSystem.out.println(\"Envoi d'informations au Proxy.\");\n\t\t\t\t\t\tDataOutputStream cliOut = new DataOutputStream(client.getOutputStream());\t//The out stream of the proxy\n\t\t\t\t\t\tcliOut.flush();\n\t\t\t\t\t\tcliOut.writeInt(server.getNbRequetes());\t\t\t\t\t//Send the charge amount\n\t\t\t\t\t\tcliOut.close();\n\t\t\t\t\t\t\n\t\t\t\t\t}else if((command[0].equals(\"SERVER_GETCLIENT\"))){\t\t\t\t//If the client is an overcharged server which wants to give a client and request\n\t\t\t\t\t\tSystem.out.println(\"Transfert d'un client sur ce serveur\");\n\t\t\t\t\t\tif(!server.serviceRegistered(command[1])){\t\t\t\t\t//If the service is not registered, we have to register it\n\t\t\t\t\t\t\tSystem.out.println(\"Enregistrement du service : \" + command[1]);\n\t\t\t\t\t\t\tString code = in.readLine();\t\t\t\t\t\t\t//Read the code sent by the other server\n\t\t\t\t\t\t\tsynchronized(server){\n\t\t\t\t\t\t\t\tserver.put(command[1],code);\t\t\t\t\t\t//Put the service on the server\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tclient = server.accept();\t\t\t\t\t\t\t\t\t//Wait for the new client to connect to this server\n\t\t\t\t\t\tSystem.out.println(\"Client accepté.\");\n\t\t\t\t\t\tString[] useCommand = {\"USE\",command[1]};\t\t\t\t\t//Request to get used by the UseThread\n\t\t\t\t\t\tUseThread rt = new UseThread(server,client, useCommand);\t//This server will take care of that request\n\t\t\t\t\t\trt.start();\n\n\t\t\t\t\t}else if(command[0].equals(\"USE\"))\t\t\t\t\t\t\t\t//The request is a use request\n\t\t\t\t\t{\n\t\t\t\t\t\tif (server.getNbRequetes() > 4){\t\t\t\t\t\t\t//Check if the server is overcharged\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tSocket socket = new Socket(\"localhost\",3000);\t\t\t//Connection to the proxy\n\t\t\t\t\t\t\tSystem.out.println(\"Connexion au proxy\");\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tDataOutputStream outO = new DataOutputStream(socket.getOutputStream());\t//The out stream of the proxy\n\t\t\t\t\t\t\toutO.flush();\n\t\t\t\t\t\t\toutO.writeInt(1);\t\t\t\t\t\t\t\t\t\t//Overcharged request\n\t\t\t\t\t\t\toutO.writeInt(server.getPort());\t\t\t\t\t\t//Send the server port\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\tObjectInputStream inO = new ObjectInputStream(socket.getInputStream());\t//The in stream of the proxy\n\t\t\t\t\t\t\t\tObject obj1 = inO.readObject();\t\t\t\t\t\t//Read the proxy's answer\n\t\t\t\t\t\t\t\tif(obj1 instanceof InetAddress){\t\t\t\t\t//If the object sent is a InetAddress, another server can take care of the request\n\t\t\t\t\t\t\t\t\tSystem.out.println(\"Transfert du client à un autre serveur.\");\n\t\t\t\t\t\t\t\t\tInetAddress adr = (InetAddress) obj1;\t\t\t//The address of the new server\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tobj1 = inO.readObject();\t\t\t\t\t\t//The port of the new server \n\t\t\t\t\t\t\t\t\tInteger port = (Integer) obj1;\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tsocket.close();\t\t\t\t\t\t\t\t\t//The proxy has given all the informations needed\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tsocket = new Socket(adr.getHostAddress(),port);\t//Connection to the new server\n\t\t\t\t\t\t\t\t\tSystem.out.println(\"Connexion à l'autre serveur\");\n\t\t\t\t\t\t\t\t\tPrintWriter out = new PrintWriter(socket.getOutputStream());\t//The out stream of the new server\n\t\t\t\t\t\t\t\t\tout.flush();\n\t\t\t\t\t\t\t\t\tout.println(\"SERVER_GETCLIENT \" + command[1] );\t//Send a request to receive a client with the name of the service \n\t\t\t\t\t\t\t\t\tout.println(server.getCode(command[1]));\t\t//The code of the service is sent if ever the other server doesn't have it registered\n\t\t\t\t\t\t\t\t\tout.flush();\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tSystem.out.println(\"Envoi des informations de l'autre serveur au client\");\n\t\t\t\t\t\t\t\t\tDataOutputStream cliOut = new DataOutputStream(client.getOutputStream());\t//The out stream of the client requesting a use\n\t\t\t\t\t\t\t\t\tcliOut.flush();\n\t\t\t\t\t\t\t\t\tcliOut.writeInt(1);\t\t\t\t\t\t\t\t// 1 means for the client that he has to connect to another server \n\t\t\t\t\t\t\t\t\tcliOut.writeUTF(socket.getInetAddress().getHostAddress());\t//The ip of the new server\n\t\t\t\t\t\t\t\t\tcliOut.writeInt(port);\t\t\t\t\t\t\t//The port of the new server\n\t\t\t\t\t\t\t\t\tcliOut.flush();\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t}else if(obj1 instanceof String){\t\t\t\t\t//If the object sent by proxy is a string, no server found\n\t\t\t\t\t\t\t\t\tDataOutputStream cliOut = new DataOutputStream(client.getOutputStream());\n\t\t\t\t\t\t\t\t\tcliOut.writeInt(0);\t\t\t\t\t\t\t\t//The client doesn't have to change server\n\t\t\t\t\t\t\t\t\tUseThread rt = new UseThread(server,client, command);\t//Processing of the use request\n\t\t\t\t\t\t\t\t\trt.start();\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t} catch (ClassNotFoundException e) {\n\t\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\tDataOutputStream cliOut = new DataOutputStream(client.getOutputStream());\t//The out stream of the client\n\t\t\t\t\t\t\tcliOut.writeInt(0);\t\t\t\t\t\t\t\t\t\t//This server will take care of the request\n\t\t\t\t\t\t\tUseThread rt = new UseThread(server,client, command);\t//Processing of the request\n\t\t\t\t\t\t\trt.start();\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}\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "title": "" }, { "docid": "7fbd81ea830f32d689b3b131e85e9eb5", "score": "0.58682525", "text": "@Override\n\tpublic void run(){\n\t\twhile(true) {\n\t\t\t// Create inputstream (convenient data reader) to this host.\n DataInputStream inFromClient;\n \n\t\t\ttry {\n\t\t\t\tinFromClient = new DataInputStream(client.getInputStream());\n\t\t\t\t// Create outputstream (convenient data writer) to this host.\n\t\t\t\toutToClient = new DataOutputStream(client.getOutputStream());\n\t\t\t\t// Variable where every line read from the reader is appended to.\n\t\t\t\tString totalMessage = \"\";\n\t\t\t\tDate date = new Date();\n\t\t\t\tlong tijd1 = date.getTime();\n\t\t\t\twhile(inFromClient.available()==0){\n\t\t\t\t\tlong tijd2 =new Date().getTime();\n\t\t\t\t\tif ((tijd2-tijd1)>60000){\n\t\t\t\t\t\toutToClient.close();\n\t\t\t\t\t\tclient.close();\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\twhile (!((clientSentence= inFromClient.readLine()).equals(\"\"))){\n\t\t\t\t\tSystem.out.println(clientSentence);\n\t\t\t\t\tif (clientSentence.contains(\"Host\")){\n\t\t\t\t\t\thost = clientSentence.substring(6);\n\t\t\t\t\t}\n\t\t\t\t\tif (clientSentence.contains(\"If-Modified-Since\")){\n\t\t\t\t\t\tmodified = clientSentence.substring(19);\n\t\t\t\t\t}\n\t\t\t\t\tif (clientSentence.contains(\"Content-Length:\")){\n\t\t \tsize = Integer.parseInt(clientSentence.substring(16));\n\t\t }\n\t\t\t\t\tif (clientSentence.contains(\"Connection:\")){\n\t\t\t\t\t\tconnection = clientSentence.substring(12);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\ttotalMessage = totalMessage + clientSentence + \"\\r\\n\";\n\t\t\t\t} \n\t\t\t\tgetArguments(totalMessage);\n\n\t\t\t\tif ( (version.contains(\"1.1\")) & (host==null||!host.equals(\"localhost\")) ){\n\t\t\t\t\toutToClient.writeBytes(version + \" 400 BAD REQUEST\" + \"\\r\\n\" + extraMessage(null));\n\t\t\t\t\tclient.close();\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\t// Method to set the different connection variables.\n\t\t\t\tSystem.out.println(\"Received: \" + totalMessage);\n\t\t\t\t// Checks which command was received and calls the corresponding method.\n\t\t\t\tFile f = new File(\"Server/\"+URI);\n\t\t\t\tif (isModifiedSince(f)){\n\t\t\t\t\tif (command.equals(\"GET\")){\n\t\t\t\t\t\toutToClient.writeBytes(getCommand(f));\n\t\t\t\t\t}\n\t\t\t\t\telse if (command.equals(\"HEAD\")){\n\t\t\t\t\t\toutToClient.writeBytes(headCommand(f));\n\t\t\t\t\t}\n\t\t\t\t\telse if (command.equals(\"PUT\")){\n\t\t\t\t\t\toutToClient.writeBytes(putCommand(f,inFromClient,size));\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\telse if (command.equals(\"POST\")){\n\t\t\t\t\t\toutToClient.writeBytes(postCommand(f,inFromClient,size));\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\telse {\n\t\t\t\t\t\tcode = \"400 BAD REQUEST\";\n\t\t\t\t\t\toutToClient.writeBytes(version + \" \" + code + extraMessage(null));\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t// Closes the outputstream.\n\t\t\t\t\t// If the HTTP version is 1.0 closes the socket of the client and ends the run method thus closing the thread.\n\t\t\t\t\tif (version.contains(\"1.0\") || connection.equals(\"close\")){\n\t\t\t\t\t\toutToClient.close();\n\t\t\t\t\t\tclient.close();\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tString returnMessage = version + \" \" + \"304 NOT MODIFIED\";\n\t\t\t\t\toutToClient.writeBytes(returnMessage + extraMessage(null));\n\t\t\t\t}\n }\n catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\tmodified = null;\n\t\t\thost = null;\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "6b7a312f6820224ff9d7fe1ce025bb3c", "score": "0.58648", "text": "public void run()\r\n\t{\r\n\t\t\r\n\t\tSocket clientSocket = null;\r\n\t\ttry {\r\n\r\n\t\t\tclientSocket = new Socket(\"localhost\", 5000); //connect locally to port 5000\r\n\t\t} catch (UnknownHostException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\tPrintWriter out = null;\r\n\t\tBufferedReader in = null;\r\n\r\n\t\t//set up the IO to work with the local network\r\n\t\ttry {\r\n\t\t\tout = new PrintWriter(clientSocket.getOutputStream());\r\n\t\t\tin = new BufferedReader(new InputStreamReader(clientSocket.getInputStream()));\r\n\t\t} catch (IOException e) {\r\n\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\t//go through the whole list twice\r\n\t\tfor(int j = 0; j < 2; j++)\r\n\t\t{\r\n\t\t\t\r\n\t\t\tfor(int i = 0; i < (Riddles.length); i++)\r\n\t\t\t{\r\n\t\t\t\r\n\t\t\tSystem.out.println(name + \" asks: \" + Riddles[i]);\r\n\t\t\tout.write(Riddles[i] + '\\n'); //the '\\n' makes it work with a relevant .readline\r\n\t\t\tout.flush();\r\n\t\t\t\r\n\t\t\ttry {\r\n\t\t\t\t\r\n\t\t\t\tSystem.out.println(\"To \" + name + \"'s riddle, thread \" + in.readLine());\r\n\t\t\t\t// in.close();\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\r\n\t\t\ttry {\r\n\t\t\t\tThread.sleep(1000);\r\n\t\t\t} catch (InterruptedException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t}\r\n\t\t}\r\n\t\t\t\r\n\t\t\t//done sending requests\r\n\t\t\t\r\n\t\t\tSystem.out.println(name + \" has finished its request and is now terminating.\");\r\n\t\t\tout.print(\"END\\n\"); //the '\\n' makes it work with a relevant .readline\r\n\t\t\tout.flush();\r\n\t\t\t\r\n\t\r\n\t\t\t//close everything\r\n\t\t\t\r\n\t\t\ttry {\r\n\t\t\t\t\r\n\t\t\t\tin.close();\r\n\t\t\t\tout.close();\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t\r\n\t\t\r\n\t\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t}", "title": "" }, { "docid": "90ae9fdfa0c5757873990dc4d6efe1e4", "score": "0.5860537", "text": "public static void main(String[] args) throws IOException {\n\n ServerSocket serverSocket = null;\n\n Socket socketclient;\n boolean listening = true;\n\n try {\n serverSocket = new ServerSocket(6222);\n } catch (IOException e) {\n\n System.err.println(\"Could not listen on port: 6222\");\n System.exit(-1);\n }\n\n System.out.println(\"Server is ready \");\n\n// Handle_Client_Request_Thread t = new Handle_Client_Request_Thread(client, timeInterval);\n RelationList rl = new RelationList();\n\n while (listening) {\n\n socketclient = serverSocket.accept();\n LOG.info(\"接收到请求\");\n //get date as filename\n String date = new SimpleDateFormat(\"yyyy-MM-dd\").format(new Date());\n\n //check file if exist, create new file if not\n File vncFile = new File(\"/itsys-data/vnc-data/vnc_log\" + date + \".txt\");\n// File vncFile = new File(\"vnc_log\" + date + \".txt\");\n vncFile.createNewFile();\n\n File vncRelationFile = new File(\"/itsys-data/vnc-data/vnc_relation\" + date + \".txt\");\n// File vncRelationFile = new File(\"vnc_relation\" + date + \".txt\");\n vncRelationFile.createNewFile();\n\n Handle_Client_Request_Thread t = new Handle_Client_Request_Thread(socketclient, vncFile, vncRelationFile, rl);\n t.start();\n\n }\n\n serverSocket.close();\n\n }", "title": "" }, { "docid": "46e98138240d10996c2f59b935d8aada", "score": "0.58525175", "text": "void awaitClientAction() {\n if (!connected) {\n return;\n }\n\n readingPool.execute(\n () -> {\n try {\n Object message = connection.readObject();\n\n if (message instanceof GuessRequest) {\n gamesManager.playerGuessed(this, ((GuessRequest) message).getGuess());\n } else if (message instanceof ForfeitRequest) {\n gamesManager.playerForfeit(this);\n } else {\n throw new AssertionError(\"Invalid Communication\");\n }\n } catch (IOException e) {\n connected = false;\n gamesManager.playerLeft(this);\n }\n });\n }", "title": "" }, { "docid": "c318ab602601630d6d6dc4ea44e50ccd", "score": "0.5851712", "text": "private void run() throws IOException {\r\n Gson gson = new GsonBuilder().setPrettyPrinting().create();\r\n\r\n // Make connection and initialize streams\r\n Socket socket = new Socket(SERVER_ADDRESS, PORT_ADDRESS);\r\n BufferedReader in = new BufferedReader(new InputStreamReader(socket.getInputStream()));\r\n PrintWriter out = new PrintWriter(socket.getOutputStream(), true);\r\n\r\n q = new Query(in, out, gson);\r\n\r\n // Set up rover communications thread\r\n try {\r\n comms = new RoverComms(RoverName.getEnum(ROVER_NAME));\r\n } catch (IOException e) {\r\n comms = null;\r\n System.err.println(\"Failed to initialize rover connection\");\r\n e.printStackTrace();\r\n }\r\n\r\n // Process all messages from server, wait until server requests Rover ID name\r\n while (true) {\r\n String line = in.readLine();\r\n if (line.startsWith(\"SUBMITNAME\")) {\r\n // This sets the name of this instance of a swarmBot for identifying the thread to the server\r\n out.println(ROVER_NAME);\r\n break;\r\n }\r\n }\r\n\r\n // Enter main loop\r\n try {\r\n mainLoop();\r\n } catch (IOException | InterruptedException e) {\r\n e.printStackTrace();\r\n }\r\n\r\n try {\r\n socket.close();\r\n } catch (Exception e) {\r\n System.err.println(\"Failed to close socket\");\r\n e.printStackTrace();\r\n }\r\n\r\n if (comms != null) comms.close();\r\n }", "title": "" }, { "docid": "799545e3f5e918cdd31f37787a8f2a60", "score": "0.5848367", "text": "private void handle(Socket socket) { \n try {\n System.err.println(\"client connected\");\n \n // get the socket's input stream, and wrap converters around it\n // that convert it from a byte stream to a character stream,\n // and that buffer it so that we can read a line at a time\n BufferedReader in = new BufferedReader(new InputStreamReader(socket.getInputStream()));\n \n // similarly, wrap character=>bytestream converter around the socket output stream,\n // and wrap a PrintWriter around that so that we have more convenient ways to write \n // Java primitive types to it.\n PrintWriter out = new PrintWriter(new OutputStreamWriter(socket.getOutputStream()));\n \n // in and out are thread-confined\n \n try {\n // each request from the client is a single line containing a person's name\n for (String person = in.readLine(); person != null; person = in.readLine()) {\n System.err.println(\"request: \" + person);\n\n // look up the person's friends\n List<String> friends = friendsOf.get(person);\n if (friends != null) {\n for (String friend : friends) {\n System.err.println(\"reply: \" + friend);\n out.print(friend + \"\\n\");\n }\n }\n \n // send the terminating blank line\n out.print(\"\\n\");\n \n // VERY IMPORTANT! flush our buffer so the client gets the reply\n out.flush();\n }\n } finally { \n out.close();\n in.close();\n socket.close();\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "fe9315272a1812a6f3da5b162c9e6588", "score": "0.5839526", "text": "public void main(final String d,final int n)throws IOException\n {\n for(i=0;i<n;i++)\n {\n new testMain(){\n String regn,un,pass;\n public void run()\n {\n try{\n //Main m = new Main();\n //m.domain = d;\n Client client = new Client(null,this);\n regn = \"robotregno\"+(int)(Math.random()*10000);\n un = \"robotuser\"+(int)(Math.random()*10000);\n pass = \"robotpass\"+(int)(Math.random()*10000);\n if(!client.register(d,regn,un,pass).equals(\"1\"))\n return;\n if(!client.login(d,un,pass).equals(\"0\"))\n return;\n ur = (User)client.getUserDetails(un,pass);\n /*m.udcl=new UserDataChangedListener(){\n public void userDataChanged(User user)\n {\n //updateTables();\n }\n };\n m.svcl=new ShareValuesChangeListener(){\n public void valuesChanged()\n {\n //updateTables();\n }\n };*/\n //m.cash=new Cashier(client,m.ur);\n client.bc = new BroadcastClient(new StringBuffer());\n client.rc = null;\n client.cc = null;\n while(true)\n {\n try{\n double r = Math.random();\n //bw.write(un+\" \"+r);\n if(r >= 0.0 && r < 0.4375 && Companies.comp.size() > 0)\n {\n //bw.write(un+\" buying\");\n int id = (int)(Math.random()*Companies.comp.size());\n Company c = Companies.getCompanyWithId(id);\n double money = Math.random()*ur.getCurrentMoney();\n int noofshares = (int)(money/c.mktvalue);\n if(noofshares > 0)\n {\n client.placeOrder(ur,\"buy\",c,noofshares,c.id);\n /*bw.write(un+\" placing buy order: \"+c.name+noofshares+\"\\n\");\n bw.flush();*/\n }\n }\n else if(r >= 0.4375 && r < 0.875 && ur.getCurrentShares().size() > 0)\n {\n //bw.write(un+\" selling\");\n int id = (int)(Math.random()*ur.getCurrentShares().size());\n Company c = Companies.getCompanyWithName(ur.getCurrentShares().get(id).company);\n int noofshares = (int)(Math.random()*ur.getCurrentShares().get(id).qty);\n if(noofshares > 0)\n {\n client.placeOrder(ur,\"sell\",c,noofshares,ur.getCurrentShares().get(id).id);\n /*bw.write(un+\" placing sell order: \"+c.name+noofshares+\"\\n\");\n bw.flush();*/\n }\n }\n else if(r >= 0.875 && r < 0.9 && ur.getPendingShares().size() > 0)\n {\n //bw.write(un+\" canceling\");\n int id = (int)(Math.random()*ur.getPendingShares().size());\n client.cancelShares(un,pass,ur.getPendingShares().get(id).id,ur.getPendingShares().get(id).sellid);\n /*bw.write(un+\" corder placed\"+\"\\n\");\n bw.flush();*/\n }\n else if(r >= 0.9 && r < 0.925)\n {\n //bw.write(un+\" chatting\");\n client.sendChat(\"hi \"+pp++,un,pass);\n /*bw.write(un+\" chatted\"+\"\\n\");\n bw.flush();*/\n }\n else\n {\n /*bw.write(un+\" idle\"+\"\\n\");\n bw.flush();*/\n }\n try{\n Thread.sleep((long)(Math.random()*3000));\n }catch(Exception r2){}\n }catch(Exception r1){r1.printStackTrace();}\n }\n }catch(Exception r4){\n try{\n /*bw.write(un+\" : \"+r4.getMessage()+\"\\n\");\n bw.flush();*/\n }catch(Exception jjj){}\n }\n }\n int pp=0;\n }.start();\n try{\n Thread.sleep(100);\n }catch(Exception r2){}\n }\n }", "title": "" }, { "docid": "0493adf57660c55c4e6f75c8e8ce8174", "score": "0.58316743", "text": "public void sendmsg() {\n System.out.println(msg);\n int num =mList.size();\n for (int index = 0; index < num; index ++) {\n Socket mSocket = mList.get(index);\n PrintWriter pout = null;\n try {\n pout = new PrintWriter(new BufferedWriter(\n new OutputStreamWriter(mSocket.getOutputStream())),true);\n pout.println(msg);\n }catch (IOException e) {\n e.printStackTrace();\n }\n }\n }", "title": "" }, { "docid": "004314c754c71b8b659ff87175c0d020", "score": "0.5821412", "text": "public void run() { \n\t\tScanner in;\n\t\tPrintWriter out[] = new PrintWriter[numOfClientToConnect];\n\t\t\n\t\ttry {\n\t\t\t// 1. GET SOCKET IN/OUT STREAMS\n\t\t\tin = new Scanner(new BufferedInputStream(s.getInputStream())); \n\t\t\tfor(int i=0; i< numOfClientToConnect; i++)\n\t\t\t{\n\t\t\t\tif(allSockets[i] != null)\n\t\t\t\t{\n\t\t\tout[i] = new PrintWriter(new BufferedOutputStream(allSockets[i].getOutputStream()));\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tout[i] = null;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t// 3. KEEP LISTENING AND RESPONDING TO CLIENT REQUESTS\n\t\t\tString s = new String();\n\t\t\twhile (true) {\n\t\t\t\n\t\t\t\tSystem.out.println(\"Server - waiting to read\");\n\t\t\t\t s = in.nextLine();\n\t\t\t\t \n\t\t\t\thandleRequest(s);\n\t\t\t\t\n//\t\t\t\t// 2. PRINT SOME STUFF TO THE CLIENT\n\t\t\t\tfor(int i =0; i<numOfClientToConnect;i++)\n\t\t\t\t{\n\t\t\t\t\tif(out[i] != null)\n\t\t\t\t\t{\n\t\t\t\t\t\tout[i].println(s);\n\t\t\t\t\t\tout[i].flush(); // force the output\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\n\t\t\t}\n\t\t\t\n\n\t\t\t\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\t// This handling code dies after doing all the printing\n\t}", "title": "" }, { "docid": "64f008dd6a2e5b29c2a5384e79409d8c", "score": "0.5818352", "text": "public void run(){\n\t\t//se crean una bandera, para saber cuando es necesario de dejar de correr el servidor\n\t\tboolean salir=false;\n\t\t// se crea un entero Obj para saber \n\t\tInteger respuesta = null;\n\n\t\tsynchronized(buffer)\n\t\t{\n\t\t\tboolean r=buffer.seTerminoProcesarClientes();\n\t\t\t//System.out.println(\"Se acabaron de procesar clientes? \"+r);\n\t\t\tif(!r)\n\t\t\t{\n\t\t\t\trespuesta=buffer.obtenerMensaje();\n\t\t\t}\n\t\t}\n\t\t// se procesan clientes,mientras odavia hays clientes sin ser atendidos\n\t\twhile(!salir)\n\t\t{\n\t\t\t// se sede el procesador (espera activa)\n\t\t\tyield();\n\t\t\tsynchronized(buffer)\n\t\t\t{\n\t\t\t\t//System.out.println(\"[2] Se acabaron de procesar clientes? \"+buffer.seTerminoProcesarClientes());\n\t\t\t\t// Si no se ha terminado de procesar todos los clientes se continua obteniendo sus mensajes\n\t\t\t\tif(!buffer.seTerminoProcesarClientes())\n\t\t\t\t{\n\t\t\t\t\trespuesta=buffer.obtenerMensaje();\n\t\t\t\t\t//System.out.println(\"Mensaje que se obtubo resp: \"+respuesta+\" - \"+salir);\n\t\t\t\t}\n\t\t\t\t// De lo contrario se avisa que ya se ha acabado. y se termina el procrso del servidor\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tsalir=true;\n\t\t\t\t\t//System.out.println(\"[2] Mensaje que se obtubo resp: \"+respuesta+\" - \"+salir);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "ebda8f26c41b64ea1ca0de06bdf8dc2c", "score": "0.58156997", "text": "private void updateClients() throws IOException {\n \t\tsynchronized(this.outgoingData) {\n \t\t\twhile(!outgoingData.isEmpty()) {\n \t\t\t\tthis.gameSocket.send(outgoingData.get(0));\n \t\t\t\toutgoingData.remove(0);\n \t\t\t}\n \t\t}\n \t}", "title": "" }, { "docid": "c0c3dcf7d6ba680ebf4956a4432ea2bd", "score": "0.58128196", "text": "public TCPServer() {\n \n users= new Hashtable<String, Socket>();\n //Xrhsh enos handler gia socket exceptions(p.x. mh epityxh dhmiourgia syndeshs).\n try {\n \n //Dhmiourgia enos ServerSocket se sygkekrimenh porta.\n serverSocket = new ServerSocket(serverPort);\n System.out.println(\"Waiting...\");\n //Epanalhptikos broxos ston opoio to serverSocket afoygrazetai aithmata gia syndeseis kai \n //dhmioyrgei syndesh me enan client se ksexwristo socket.\n while (true) {\n //Apodoxh aithshs gia syndesh toy client me ton server kai dhmioyrgia syndeshs se ksexwristo socket.\n Socket socket = serverSocket.accept();\n \n \n outputWriter = new PrintWriter(socket.getOutputStream(), true);\n \n\n\n\nConnectionService service= new ConnectionService(socket,outputWriter);\nservice.start();\n\n }\n\n } catch (IOException e) {\n e.printStackTrace();\n }catch (Exception e) {\n e.printStackTrace();\n }\n\n }", "title": "" }, { "docid": "df13cac93c2f0739da9f9b8ed0aed9ac", "score": "0.58109546", "text": "public static void main(String[] args) throws IOException\n {\n ServerSocket listener = new ServerSocket(9090);\n\n System.out.println(\"Waiting for client...\");\n\n try\n {\n // Here we accept a client and the print a message that we have connected.\n Socket s = listener.accept();\n System.out.println(\"Client connected...\");\n\n // Instantiate threads\n Thread tool1 = new Thread(new Tool1(prodT1, Q1, Q2, Q3),\"Tool 1\");\n Thread tool2 = new Thread(new Tool2(prodT2, numAProduced, Q2, Q3),\"Tool 2\");\n Thread tool3 = new Thread(new Tool3(prodT3, numBProduced, numCProduced, numDProduced, Q3),\"Tool 3\");\n Thread print = new Thread(new PrintThread(myRate, prodT1, prodT2, prodT3, numAProduced, numBProduced,\n numCProduced, numDProduced, totNumRequests, Q1, Q2, Q3),\"Print Thread\");\n\n // start threads\n tool1.start();\n tool2.start();\n tool3.start();\n print.start();\n\n while (true)\n {\n\n try\n {\n // Here we read the job. You will get one of four strings from the client job\n // simulator: ProductA, ProductB, ProductC, ProductD for each of the possible products.\n // Once received, I print out the strings.\n String acceptableInputs = \"ProductAProductBProductCProductD\";\n BufferedReader input = new BufferedReader(new InputStreamReader(s.getInputStream()));\n String prod = input.readLine();\n\n // reset current Time when new product req arrives\n Date currentTime = new Date();\n\n if (acceptableInputs.contains(prod)) // if the product request is valid\n {\n\n if (prod.equals(\"ProductA\"))\n {\n // Product A\n Q1.add(prod);\n }\n else if (prod.equals(\"ProductB\"))\n {\n // Product B\n Q2.add(prod);\n }\n else if (prod.equals(\"ProductC\"))\n {\n // Product C\n Q1.add(prod);\n }\n else if (prod.equals(\"ProductD\"))\n {\n // Product D\n Q1.add(prod);\n }\n\n // Update the total number of requests and\n // the average arrival rate\n synchronized (totNumRequests)\n {\n totNumRequests.getAndIncrement(); // increment num of requests\n\n // if there are more than two requests\n if (totNumRequests.get() > 2) {\n\n newTime = currentTime.getTime() - prevTime.getTime();\n\n // calculate average arrival rate\n arrRate = (arrRate * (totNumRequests.get() - 1) + newTime)/totNumRequests.get();\n prevTime.setTime(currentTime.getTime());\n\n // if there have only been two requests\n } else if (totNumRequests.get() == 2) {\n\n // calculate new arrival rate\n newTime = currentTime.getTime() - prevTime.getTime();\n arrRate = newTime;\n prevTime.setTime(currentTime.getTime());\n\n // if this is the first request\n } else {\n\n // set prevTime = currentTime\n prevTime.setTime(currentTime.getTime());\n }\n\n // set the Atomic Interger that we pass into Print Thread\n // equal to the average rate in milliseconds\n myRate.set( toIntExact(arrRate));\n } // synchronized\n }\n else\n {\n System.out.println(\"Invalid Product Input: \"+prod);\n }\n\n } catch(Exception e) {\n\n System.out.println(\"Error reading socket:: \" + e);\n\n }\n\n } // while\n\n } catch(Exception e) {\n\n System.out.println(\"Error connecting to client:: \" + e);\n\n } // try\n }", "title": "" }, { "docid": "c46d8dc6add17bcff73ba8bc7f733037", "score": "0.5809087", "text": "public static void main(String[] args) {\n try {\n Socket mySocket = new Socket(\"localhost\", 1234);\n //handle in out\n DataInputStream in = new DataInputStream(mySocket.getInputStream());\n DataOutputStream out = new DataOutputStream(mySocket.getOutputStream());\n Scanner sc1 = new Scanner(System.in);\n Scanner sc = new Scanner(System.in);\n //Select word in dictionary\n while (true) { \n System.out.println(\"-----Dictionary------\");\n System.out.println(\"1, Eng-Vie\");\n System.out.println(\"2, Vie-Eng\");\n System.out.println(\"Mời bạn chọn !\");\n int choose = sc1.nextInt();\n System.out.println(\"Từ cần kiếm :\");\n String a = sc.nextLine();\n out.writeInt(choose);\n out.writeUTF(a);\n out.flush();\n String eng = in.readUTF();\n String viet = in.readUTF();\n System.out.println(\"Từ \"+eng+\" có nghĩa là \"+viet); \n }\n \n \n } catch (Exception e) {\n e.printStackTrace();\n }\n \n }", "title": "" }, { "docid": "6dff744ae3f0ecdd0bf164b1af13ca37", "score": "0.57966137", "text": "@SuppressWarnings(\"static-access\")\n\t@Override\n\tpublic void run() {\n\t\ttry{\n\t\t\ttry{\n\t\t\t\tuserInput = new Scanner(clientSocket.getInputStream());\n\t\t\t\tuserScreen = new PrintWriter(clientSocket.getOutputStream());\n\t\t\t\twhile(true){\n\t\t\t\t\tif(!userInput.hasNext())\n\t\t\t\t\t\treturn;\n\t\t\t\t\tclientMessage = userInput.nextLine();\n\t\t\t\t\tif(clientMessage.substring(0, 1).contains(\"@\")) {\n\t\t\t\t\t\tString currentUserName = clientMessage.split(\" > \")[1];\n\t\t\t\t\t\tString clientName = clientMessage.split(\" > \")[2];\n\t\t\t\t\t\t/*\n\t\t\t\t\t\t * If the requested client name is in registered user name list, then server checks whether the client is\n\t\t\t\t\t\t * already connected to any other user.\n\t\t\t\t\t\t */\n\t\t\t\t\t\tif(Server.userList.contains(clientName)){\n\t\t\t\t\t\t\t/*\n\t\t\t\t\t\t\t * If the requested client name is already in pair list, then GUI says Client Busy.\n\t\t\t\t\t\t\t * No second client will be allowed in a chat pair.\n\t\t\t\t\t\t\t */\n\t\t\t\t\t\t\tif(Server.pair.containsKey(clientName)) {\n\t\t\t\t\t\t\t\tuserScreen.println(\"Client busy.\");\n\t\t\t\t\t\t\t\tuserScreen.flush();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t/*\n\t\t\t\t\t\t\t * If the requested client name is not in pair, then two users will be connected and added to list 'pair'\n\t\t\t\t\t\t\t */\n\t\t\t\t\t\t\telse{\n\t\t\t\t\t\t\t\tServer.pair.put(currentUserName, clientName);\n\t\t\t\t\t\t\t\tServer.pair.put(clientName, currentUserName);\n\t\t\t\t\t\t\t\tServer.connectedList.add(currentUserName+\" < > \"+clientName);\n\t\t\t\t\t\t\t\tuserScreen.flush();\n\t\t\t\t\t\t\t\tuserScreen.println(\"Connected with:\"+clientName);\n\t\t\t\t\t\t\t\tuserScreen.flush();\n\t\t\t\t\t\t\t\tPrintWriter clientUserScreen = new PrintWriter(connectedSocket(currentUserName).getOutputStream());\n\t\t\t\t\t\t\t\tclientUserScreen.flush();\n\t\t\t\t\t\t\t\tclientUserScreen.println(\"Connected with:\"+currentUserName);\n\t\t\t\t\t\t\t\tclientUserScreen.flush();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\t/*\n\t\t\t\t\t\t * If the requested client name is not in registered user name list, then GUI displays client not available.\n\t\t\t\t\t\t */\n\t\t\t\t\t\telse{\n\t\t\t\t\t\t\tuserScreen.println(\"Client not available.\");\n\t\t\t\t\t\t\tuserScreen.flush();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t/*\n\t\t\t\t\t * Displaying the client's messages in the server GUI by stripping off the header message\n\t\t\t\t\t */\n\t\t\t\t\telse {\n\t\t\t\t\t\tString[] stripMessage = clientMessage.split(\" > \");\n\t\t\t\t\t\tString senderName = stripMessage[0];\n\t\t\t\t\t\tSocket recepientSocket = connectedSocket(senderName);\n\t\t\t\t\t\t/*\n\t\t\t\t\t\t * If there is any connection going on, only then the server will display the messages in GUI\n\t\t\t\t\t\t */\n\t\t\t\t\t\tif(recepientSocket!=null){\n\t\t\t\t\t\t\ttry{\n\t\t\t\t\t\t\t\tPrintWriter Out = new PrintWriter(recepientSocket.getOutputStream());\n\t\t\t\t\t\t\t\tOut.println(senderName+\": \"+stripMessage[2]);\n\t\t\t\t\t\t\t\tOut.flush();\n\t\t\t\t\t\t\t\tString stripHeader[] = stripMessage[1].split(\"./.\");\n\t\t\t\t\t\t\t\tfor(String header:stripHeader)\n\t\t\t\t\t\t\t\t\tServer.server.serverLog.append(header+\"\\n\");\n\t\t\t\t\t\t\t\tServer.server.serverLog.append(\"Content: \"+stripMessage[2]+\"\\n\\n\");\n\t\t\t\t\t\t\t}catch(Exception e){\n\t\t\t\t\t\t\t\tuserScreen.println(\"Client Disconnected/LoggedOff\");\n\t\t\t\t\t\t\t\tuserScreen.flush();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\t/*\n\t\t\t\t\t\t * If there is not connection established between pairs, or the user logs off, then the message will not\n\t\t\t\t\t\t * displayed in server GUI, and the user will be notified saying Client is disconnected.\n\t\t\t\t\t\t */\n\t\t\t\t\t\telse{\n\t\t\t\t\t\t\tuserScreen.println(\"Client Disconnected/LoggedOff\");\n\t\t\t\t\t\t\tuserScreen.flush();\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\tfinally{\n\t\t\t\tclientSocket.close();\n\t\t\t}\n\t\t}\n\t\tcatch(Exception e){\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "title": "" }, { "docid": "74e51b651b0ad5a9cc0635eb7e1207f8", "score": "0.5793938", "text": "public void run() {\n InputStream cin = null;\n InputStreamReader in = null;\n //OutputStreamWriter out = null;\n BufferedOutputStream out = null;\n try {\n cin = client.getInputStream();\n in = new InputStreamReader(cin);\n char[] text;\n out = new BufferedOutputStream(client.getOutputStream());\n\n while (true) {\n text = new char[1024];\n in.read(text);\n System.out.println(String.valueOf(text));\n //out.println(\"Server received \" + String.valueOf(text));\n out.write((\"server received : \" + String.valueOf(text)).getBytes(\"UTF-8\"));\n //out.write(\"0\\n\".getBytes());一定要有换行\n out.flush();\n if (String.valueOf(text).equals(\"bye\")) {\n break;\n }\n\n }\n } catch(IOException ex) {\n ex.printStackTrace();\n }\n finally {\n try {\n in.close();\n } catch (Exception e) {}\n try {\n out.close();\n } catch (Exception e) {}\n try {\n client.close();\n } catch (Exception e) {}\n }\n }", "title": "" }, { "docid": "78bd9337de1a03b06c324d5909049c34", "score": "0.5787518", "text": "@Override\n public void run() \n {\n ServerInfo choosenServer = addClientToList();\n \n sendInfoToClient(choosenServer);\n\n }", "title": "" }, { "docid": "fd650b349d2470a3bb3ecc219d1fa732", "score": "0.57863325", "text": "public static void main(String[] args) {\n\t\tServerSocket ss = null;\n\t\t\n\t\t\n\t\ttry { ss = new ServerSocket(2019);\n\t\t\tSystem.out.println(\"Server escuchando por el puerto 2019\");\n\t\t} catch (IOException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\n\t\t\t\n\t\t\t\n\t\t//hacemos que el servidor nunca se pare y este\n\t\t//escuchando peticiones\n\t\twhile(true) {\n\t\t\tSystem.out.println(\"Escuchando peticiones...\");\n\t\t\ttry (Socket socket = ss.accept();){\n\t\t\t\t\n\t\t\t\t//Socket socket = ss.accept();\n\t\t\t\t//Este metodo se quedara parado el hilo de ejecucion\n\t\t\t\t//hasta que llegue la peticion de un cliente\n\t\t\t\t//cuando llegue la peticion de un cliente\n\t\t\t\t//se continuara ejecutando el codigo y se nos\n\t\t\t\t//creara un objeto de tipo Socket.\n\t\t\t\t\n\t\t\t\t//para pintar la ip del que me llama\n\t\t\t\tSystem.out.println(socket.getInetAddress().getHostAddress());\n\t\t\t\t\n\t\t\t\t//Creamos una variable de la clase BufferedReader para que guarde lo leido.\n\t\t\t\tInputStreamReader isr = new InputStreamReader(socket.getInputStream());\n\t\t\t\t\n\t\t\t\t//para leer del canuto del inputStream con esta clase solo puedo leer caracter a caracter, para leer\n\t\t\t\t//por frases usamos la sig clase BufferedReader que se apoya en la primera.\n\t\t\t\tBufferedReader bf = new BufferedReader(isr);\n\t\t\t\tString cadena = bf.readLine();\n\t\t\t\tSystem.out.println(\"Ha llegado lo siguiente al servidor: \" + cadena);\n\t\t\t\tString[] numeros = cadena.split(\"-\");\n\t\t\t\tString numero1 = numeros[0];\n\t\t\t\tString numero2 = numeros[1];\n\t\t\t\t\n\t\t\t\tint iNumero1 = Integer.parseInt(numero1);\n\t\t\t\tint iNumero2 = Integer.parseInt(numero2);\n\t\t\t\t\n\t\t\t\tint resultado = iNumero1 + iNumero2;\n\t\t\t\t\n\t\t\t\tPrintStream ps = new PrintStream(socket.getOutputStream());\n\t\t\t\tps.println(\"\" + resultado);\n\t\t\t\t\n\t\t\t\tSystem.out.println(\"Fin del servidor\");\n\t\t\t\t\n\t\t\t} catch (IOException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t} catch (NumberFormatException nfe) {\n\t\t\t\tSystem.out.println(\"No es un numero lo que han mandado\");\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "25f70574ecd44ff0baad859634035ecf", "score": "0.5782459", "text": "public static void main(String[] args) {\n\t\tBufferedReader stdIn =\n\t new BufferedReader(new InputStreamReader(System.in));\n\t\tint portNumber = -1;\n\t\tString serverIP =\"localhost\";\n\t\tSystem.out.println(\"This Is A Chord Server!\");\n\t\tSystem.out.println(\"Usage: Designate a port number the server will listen on\");\n\t\tSystem.out.println(\"Please Enter Port Number(1025~65535):\");\n\t\tSystem.out.print(\">>\");\t\t\t\t\n\t\ttry {\n\t\t\tportNumber = Integer.parseInt(stdIn.readLine());\n\t\t\tserverIP = InetAddress.getLocalHost().getHostAddress();\n\t\t} catch (NumberFormatException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\tboolean running = true;\n\t\tSystem.out.println(\"ChordServer is listenning on port \"+ portNumber);\n\t\tString from;\n\t\twhile(running){\n\t\t\ttry (ServerSocket serverSocket = new ServerSocket(portNumber);\t\n\t\t\t Socket clientSocket = serverSocket.accept();\n\t\t PrintWriter out =\n\t\t new PrintWriter(clientSocket.getOutputStream(), true);\n\t\t BufferedReader in = new BufferedReader(\n\t\t new InputStreamReader(clientSocket.getInputStream()));\n\t\t\t ) { \n\t out.println(\"Welcome to Chord Server \"+serverIP+\":\"+portNumber); \n\t\t\t from = in.readLine();//get ip and port\n\t\t\t if(from!=null &&from.split(\" \")[0].equals(\"JOIN\"))\n\t\t\t { //JOIN IP + port\n\t\t\t //create chord ring\n\t\t\t\t String ip = from.split(\" \")[1];\n\t\t\t\t int port = Integer.parseInt( from.split(\" \")[2]);\n\t\t\t\t URL url = new URL(\"http\", ip, port, \"\");\n\t\t\t\t chord.joinChord(url.toString());\n\t\t\t\t //notify all node!\n\t\t\t\t chord.notifyAllPeers();\n\t\t\t\t System.out.println(\"Add Node \"+url);\n\t\t\t }\n\t\t\t \n\t\t\t if(from!=null&&from.split(\" \")[0].equals(\"LEAVE\"))\n\t\t\t { \n\t\t\t\t String ip = from.split(\" \")[1];\n\t\t\t\t int port = Integer.parseInt(from.split(\" \")[2]);\n\t\t\t\t URL url = new URL(\"http\", ip, port, \"\");\n\t\t\t\t chord.leaveChord(url.toString()); \n\t\t\t\t //notify all node!\n\t\t\t\t chord.notifyAllPeers();\n\t\t\t\t System.out.println(\"Removed Node \"+url);\n\t\t\t }\n\t\t\t //chord.save();\n\t } catch (IOException e) {\n\t System.err.println(\"Could not listen on port \" + portNumber);\n\t System.exit(-1);\n\t }\n\t\t}\t\n\t}", "title": "" }, { "docid": "ed3d947ccd2cdab1a2a2daae18c63008", "score": "0.5772205", "text": "public void run() {\r\n try {\r\n do // zamienic na do{}while(Connection_is_UP);\r\n {\r\n try {\r\n if (true) {\r\n \ttry {\r\n \t\tThread.sleep(15000);\r\n \t\t} catch (InterruptedException e) {\r\n \t\t\tSystem.out.println(e+\"_Spam bledow?\");\r\n \t\t}//Blokowanie spamu bledow.\r\n /**\r\n * Obsluga Tokenow do rozrozniania OP od NUM\r\n */\r\n System.out.println(\"Oczekuje na klienta tutaj:\" + InetAddress.getLocalHost() + \"::\" +/*InetAdress.getHostAdress+*/ \"\\n<^C--^C--^C>\\n\");\r\n }\r\n String msgFromClient = new String(); //TYM BEDZIEMY PRZEKAZYWALI TEN TOKEN TURY I KARTY\r\n msgFromClient = din.readUTF();\r\n System.out.println(msgFromClient); //TUTAJ PRZESYLAMY KARTY Z DANEJ TURY\r\n StringTokenizer st = new StringTokenizer(msgFromClient);\r\n String sendTo = st.nextToken();\r\n System.out.println(sendTo);\r\n String msgType = st.nextToken();\r\n System.out.println(msgType);\r\n int iCount = 0;\r\n String msg1 = \"Karta testowa\";\r\n String msg2 = \"\";\r\n for (iCount = 0; iCount < LoginNames.size(); iCount++) {\r\n if (LoginNames.elementAt(iCount).equals(sendTo)) {\r\n System.out.println(msgFromClient);\r\n if (msgFromClient.equals(msgFromClient)) {\r\n System.out.println(\"Przyjalem!! @\");\r\n }\r\n Socket tSoc = (Socket) ClientSockets.elementAt(iCount);\r\n DataOutputStream tdout = new DataOutputStream(tSoc.getOutputStream());\r\n tdout.writeUTF(msg1);\r\n break;\r\n }\r\n }\r\n if (iCount == LoginNames.size()) {\r\n System.out.println(\"Wysylam wynik.\");\r\n dout.writeUTF(\"P2 \" +/*Pierwsze.hain(msg2)*/ \"tak to ja\"); // tutaj podmienic najpierw na porownanie zestawow kart z rundy a potem rozeslanie nowych\r\n System.out.println(\"1Zakonczono dzialanie.</\" + sendTo + \">\");\r\n }\r\n for (iCount = 0; iCount < LoginNames.size(); iCount++) {//TO MIEJSCE SIE PRZYDA BO TRZEBA POZAMYKAC GNIAZDA PO GRZE\r\n if (LoginNames.elementAt(iCount).equals(sendTo)) {\r\n System.out.println(\"Przystepuje do zamykania watku\");\r\n //ClientSockets.elementAt(iCount).();\r\n LoginNames.removeElementAt(iCount);\r\n ClientSockets.removeElementAt(iCount);\r\n System.out.println(\"Polaczenie z: \" + sendTo + \" zakonczone.\");\r\n\r\n continue;\r\n }\r\n }\r\n\r\n for (iCount = 0; iCount < LoginNames.size(); iCount++) {\r\n if (LoginNames.elementAt(iCount).equals(sendTo)) {\r\n Socket tSoc = (Socket) ClientSockets.elementAt(iCount);\r\n DataOutputStream tdout = new DataOutputStream(tSoc.getOutputStream());\r\n tdout.writeUTF(msg1);\r\n break;\r\n }\r\n }\r\n if (iCount == LoginNames.size()) {\r\n //dout.writeUTF(\"O \"+Min.nain(msg2));\r\n System.out.println(\"2Zakonczono dzialanie.</\" + sendTo + \">\");\r\n } else {\r\n\r\n }\r\n\r\n /*R - pelen rozklad liczby na czynniki pierwsze i wyswietlenie ich */\r\n if (msgType.equals(\"R\")) {\r\n String msg = \"\";\r\n\r\n while (st.hasMoreTokens()) {\r\n System.out.println(sendTo + \"Dzialanie pelnego rozkladu(1)\" + msg);\r\n msg = msg + \" \" + st.nextToken();\r\n msg2 = msg;\r\n msg2 = msg2.replace(\"R\", \"\");\r\n System.out.println(\"\" + msg2);\r\n msg2 = msg2.trim();\r\n System.out.println(\"\" + msg2);\r\n\t\t\t\t\t\t\t\t//int uMax=0;\r\n //uMax=Integer.parseInt(msg2);\r\n\t\t\t\t\t\t\t\t/*RozkladLiczbyTest.hain(msg2);*/\r\n\r\n System.out.println(\"Dzialanie rozklad(2)\" + msg);\r\n }\r\n for (iCount = 0; iCount < LoginNames.size(); iCount++) {\r\n if (LoginNames.elementAt(iCount).equals(sendTo)) {\r\n Socket tSoc = (Socket) ClientSockets.elementAt(iCount);\r\n DataOutputStream tdout = new DataOutputStream(tSoc.getOutputStream());\r\n tdout.writeUTF(msg);\r\n break;\r\n }\r\n }\r\n if (iCount == LoginNames.size()) {\r\n System.out.println(\"Wysylam wynik.\");\r\n dout.writeUTF(\"O \"/*+RozkladLiczbyTest.hain(msg2)*/);\r\n System.out.println(\"3Zakonczono dzialanie.</\" + sendTo + \">\");\r\n } else {\r\n\r\n }\r\n }\r\n if (msgType.equals(\"BREAK\")) {\r\n break;\r\n }\r\n } catch (Exception ex) {\r\n\t\t\t\t\t\t//ex.printStackTrace();\r\n //System.out.println(\"Zamykam: Bledne polaczenie\");\r\n\r\n continue;\r\n }\r\n } while (!isStopped());\r\n } catch (Exception e) {\r\n System.out.println(\"Zglaszam blad i zamykam polaczenia.\");\r\n\r\n\t\t\t//socket.close();\r\n //serverSocket.close();\r\n return;\r\n }\r\n }", "title": "" }, { "docid": "7ef2609dbece2e90f744b75dc1010761", "score": "0.5762426", "text": "public static void main(String [] args) throws SocketException, UnknownHostException, IOException {\n socket = new DatagramSocket();\n\n while(true) {\n if(args.length != 1){\n System.out.println(\"Usage: CrawlerClient <hostName>\");\n return;\n }\n System.out.println(\"Searching for server...\\n\");\n\n //setting up a new request\n\n byte[] buf = new byte[1024];\n InetAddress add = InetAddress.getByName(args[0]);\n DatagramPacket packet = new DatagramPacket(buf, buf.length, add, 8950);\n socket.send(packet);\n\n //getting a response\n packet = new DatagramPacket(buf, buf.length);\n socket.receive(packet);\n //System.out.println(\"Packet Recieved.... \");\n\n //display to console\n String in = new String(packet.getData(), 0, packet.getLength());\n System.out.println(in.toString());\n\n packet = new DatagramPacket(buf, buf.length);\n socket.receive(packet);\n System.out.println();\n if(packet.equals(\"move\")){\n Object m = getMove();\n buf.equals(m);\n packet = new DatagramPacket(buf, buf.length);\n socket.send(packet);\n }\n\n }\n //socket.close();\n }", "title": "" }, { "docid": "043313d49baeed95d84b908723c87c2a", "score": "0.5760505", "text": "@Override\n public void run() {\n try {\n boolean invalidInitialization = true;\n RequestInitializationEvent req;\n if(!server.isGameStarted()) {\n while (invalidInitialization) {\n out.writeObject(new RequestInitializationEvent(\"Digit your nickname\", true, false, false, false, false));\n AnswerInitializationEvent ans = (AnswerInitializationEvent) in.readObject();\n while (isNotValidNickname(ans.getNickname())) {\n req = new RequestInitializationEvent(\"Digit your nickname: \", true, false, false, false, false);\n req.setRetake();\n out.writeObject(req);\n ans = (AnswerInitializationEvent) in.readObject();\n }\n nicknameOfClient = ans.getNickname();\n out.writeObject(new RequestInitializationEvent(\"Digit your color:\", false, true, false, false, false));\n ans = (AnswerInitializationEvent) in.readObject();\n while (server.getListOfColor().contains(ans.getColor().toUpperCase()) || (server.getColorOfFirstPlayer()!=null && ans.getColor().equalsIgnoreCase(server.getColorOfFirstPlayer()))) {\n req = new RequestInitializationEvent(\"Digit your color: \", false, true, false, false, false);\n req.setRetake();\n out.writeObject(req);\n ans = (AnswerInitializationEvent) in.readObject();\n }\n\n if(!firstPlayer) {\n server.addNickname(nicknameOfClient);\n server.getListOfColor().add(ans.getColor().toUpperCase());\n colorsAdded=true;\n }\n else\n server.setColorOfFirstPlayer(ans.getColor().toUpperCase());\n\n if (server.getListOfColor().size() == 3)\n server.startTimer();\n colorOfClient = ans.getColor().toUpperCase();\n if (firstPlayer) {\n out.writeObject(new RequestInitializationEvent(\"Choose if u want frenzy:\", false, false, true, false, false));\n ans = (AnswerInitializationEvent) in.readObject();\n server.setAnticipatedFrenzy(ans.isFrenzy());\n out.writeObject(new RequestInitializationEvent(\"Choose which map do you want to play with:\", false, false, false, false, true));\n ans = (AnswerInitializationEvent) in.readObject();\n if (ans.getMap() != 0)\n server.setTypeMap(ans.getMap());\n out.writeObject(new RequestInitializationEvent(\"Choose if u want terminator mode:\", false, false, false, true, false));\n ans = (AnswerInitializationEvent) in.readObject();\n server.setTerminatorMode(ans.isTerminator());\n if(!server.isGameStarted() && server.getListOfColor().size()<5) {\n server.addNickname(nicknameOfClient);\n server.getListOfColor().add(colorOfClient);\n colorsAdded=true;\n if(server.getListOfColor().size()==3)\n server.startTimer();\n }\n }\n req = new RequestInitializationEvent(\"\", false, false, false, false, false);\n req.setAck();\n out.writeObject(req);\n invalidInitialization = false;\n }\n }\n\n } catch (IOException se) {\n try {\n client.close();\n } catch (IOException e) {\n loggerVirtualView.log(Level.ALL, \"error\");\n }\n\n }catch (ClassNotFoundException e) {\n loggerVirtualView.log(Level.ALL, \"error\");\n }\n\n receiveEvents();\n\n\n }", "title": "" }, { "docid": "b32796d333b2f2de40014421649dd837", "score": "0.5756893", "text": "@Override\n public void run() {\n ZMQ.Socket replySocket = context.createSocket(SocketType.REQ);\n replySocket.connect(\"tcp://gvs.lxd-vs.uni-ulm.de:27349\");\n\n\n Util util;\n try {\n util = new Util();\n while (noSolutionFoundYet) {\n // Partitioning the search space\n String solution = challenge + intToHexstring(\n (int) (16 / CORES *(searchSpace + Math.random())));\n double digits = 15 * Math.random();\n int upperBound = (int) digits;\n\n for (int i = 0; i < upperBound; i++) {\n double tmp = 15.9d * Math.random();\n solution += intToHexstring((int) tmp);\n if (util.validate(challenge, solution)) {\n noSolutionFoundYet = false;\n System.out.println(solution);\n\n // reply\n replySocket.send(solution);\n String reply = new String(replySocket.recv(0), ZMQ.CHARSET);\n System.out.println(reply);\n }\n }\n }\n\n } catch (NoSuchAlgorithmException e) {\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "e2cf90d2691e96e1362b6aa7c0e9d377", "score": "0.57514924", "text": "@Override\n public void handleClientConnection(InputStream is, OutputStream os) throws IOException {\n BufferedReader reader = new BufferedReader(new InputStreamReader(is));\n PrintWriter writer = new PrintWriter(new OutputStreamWriter(os));\n\n int numberOfCommands = 0;\n int numberOfNewStudents = 0;\n String command;\n boolean done = false; // end the connection\n writer.println(\"Hello. Online HELP is available. Will you find it?\");\n writer.flush();\n\n while (!done && ((command = reader.readLine()) != null)) {\n numberOfCommands++;\n LOG.log(Level.INFO, \"COMMAND: {0}\", command);\n switch (command.toUpperCase()) {\n case RouletteV2Protocol.CMD_HELP:\n writer.println(\"Commands: \" + Arrays.toString(RouletteV2Protocol.SUPPORTED_COMMANDS));\n break;\n case RouletteV2Protocol.CMD_RANDOM:\n RandomCommandResponse rcResponse = new RandomCommandResponse();\n try {\n rcResponse.setFullname(store.pickRandomStudent().getFullname());\n } catch (EmptyStoreException ex) {\n rcResponse.setError(\"There is no student yet, you cannot pick a random one\");\n }\n writer.println(JsonObjectMapper.toJson(rcResponse));\n writer.flush();\n break;\n case RouletteV2Protocol.CMD_LOAD:\n writer.println(RouletteV2Protocol.RESPONSE_LOAD_START);\n writer.flush();\n int numberOfStudents = store.getNumberOfStudents();\n try {\n store.importData(reader);\n } catch (IOException e) {\n writer.println(JsonObjectMapper.toJson(new LoadCommandReponse(\"failure\", 0)));\n writer.flush();\n }\n int AllStudents = store.getNumberOfStudents();\n numberOfNewStudents = AllStudents - numberOfStudents;\n writer.println(JsonObjectMapper.toJson(new LoadCommandReponse(\"success\", numberOfNewStudents)));\n writer.flush();\n break;\n case RouletteV2Protocol.CMD_INFO:\n InfoCommandResponse response = new InfoCommandResponse(RouletteV2Protocol.VERSION, store.getNumberOfStudents());\n writer.println(JsonObjectMapper.toJson(response));\n writer.flush();\n break;\n case RouletteV2Protocol.CMD_LIST:\n StudentsList students = new StudentsList();\n students.setStudents(store.listStudents());\n writer.println(JsonObjectMapper.toJson(students));\n writer.flush();\n break;\n case RouletteV2Protocol.CMD_CLEAR:\n store.clear();\n writer.println(RouletteV2Protocol.RESPONSE_CLEAR_DONE);\n writer.flush();\n break;\n case RouletteV2Protocol.CMD_BYE:\n ByeCommandReponse bye = new ByeCommandReponse(\"success\", numberOfCommands);\n writer.println(JsonObjectMapper.toJson(bye));\n writer.flush();\n done = true;\n break;\n default:\n writer.println(\"Huh? please use HELP if you don't know what commands are available.\");\n writer.flush();\n break;\n }\n writer.flush();\n }\n }", "title": "" }, { "docid": "369eb8fd2d1d247093e4c25da9b91653", "score": "0.5744106", "text": "public static void main(String[] args) throws IOException {\n Socket servidor;\r\n InetAddress direccion = InetAddress.getLocalHost();\r\n\r\n //llamada al servidor a traves del puerto 5500\r\n\r\n\r\n DataOutputStream mensaje;\r\n DataInputStream entrada;\r\n //Cliente\r\n {\r\n\r\n try {\r\n servidor = new Socket(direccion, 5500); /*conectar a un servidor en localhost con puerto 5000*/\r\n //creamos el flujo de entrada por el que se recibiran mensajes\r\n DataInputStream flujoEntrada = new DataInputStream(servidor.getInputStream());\r\n\r\n System.out.println(\"Recibiendo del server \" + flujoEntrada.readUTF());\r\n\r\n //creamos el flujo de datos por el que se enviara un mensaje\r\n mensaje = new DataOutputStream(servidor.getOutputStream());\r\n //enviamos el mensaje\r\n mensaje.writeUTF(\"Saludos al server desde el cliente\");\r\n //Mostramos el segundo mensaje del servidor\r\n System.out.println(\"Recibiendo del server \" + flujoEntrada.readUTF());\r\n\r\n\r\n flujoEntrada.close();\r\n mensaje.close();\r\n servidor.close();\r\n\r\n\r\n } catch (Exception e) {\r\n System.out.println(\"Error: \" + e.getMessage());\r\n }\r\n\r\n\r\n }\r\n\r\n }", "title": "" }, { "docid": "1533e4c5dafae74d3396874482729655", "score": "0.5735488", "text": "public static void main(String[] args) {\n\t\ttry {\n\t\t\tSocket cliente=new Socket(\"localhost\",7775);\t\t\t\t\n\t\t\tint tiempo=(int)(Math.random()*20);\n\t\t\tSystem.out.println(tiempo+\" segundos durmiendo.\");\n\t\t\tThread.sleep(1000*tiempo);\t\t\t\t\t\t\t\n\t\t\tcliente.close();\n\t\t} catch (InterruptedException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (UnknownHostException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "782fd8faf19c2772984db6fdb73ebacf", "score": "0.572466", "text": "public void waitForClients() throws IOException{\n System.out.println (\"Waiting for a client ...\");\r\n while (true) {\r\n // System.out.println (\"Waiting for a client ...\");\r\n Socket socket = serverSocket.accept();\r\n // Execute the client's request in a new thread\r\n new ClientThread(this, socket).start();//to be modified.. different constructor\r\n }\r\n }", "title": "" }, { "docid": "18e05dff240d7e85af8fa69aff88fc56", "score": "0.57238007", "text": "public void startServer() throws IOException, SQLException {\n\n System.out.println(\"Listening for connection on port \" + PORT + \"...\");\n\n while (true) {\n try (Socket socket = server.accept();\n BufferedReader in = new BufferedReader(new InputStreamReader(socket.getInputStream()));\n PrintWriter out = new PrintWriter(socket.getOutputStream()))\n // Initialize reader and writer\n {\n // Start sending reply, using the HTTP 1.1 protocol\n out.print(\"HTTP/1.1 200 \\r\\n\");\n out.print(\"Content-Type: text/plain\\r\\n\");\n out.print(\"Connection: close\\r\\n\");\n out.print(\"\\r\\n\");\n\n // Read HTTP request from the client\n // Get HttpRequest lines\n String parts[] = getRequest(in, out);\n\n int id = 0;\n //String httpResponse = null;\n\n try {\n method = parts[0];\n method = method.substring(0, method.length() - 1); // Remove space\n //System.out.println(method + \" \" + symbols);\n\n // Return HTTP response with info about user, stored in DB\n if (GET.equals(method)) {\n symbols = parts[1];\n parts = symbols.split(\" \");\n\n // Check if ID is integer\n if (ParseChecker.tryParseInt(parts[0]))\n id = new Integer(parts[0]);\n setHttpResponse(new DbWork().getUserInfo(id));\n } else if (POST.equals(method)) {\n symbols = parts[1];\n if (ParseChecker.tryParseInt(parts[1]))\n id = new Integer(parts[1]);\n String name = parts[2];\n String surname = parts[3];\n setHttpResponse(new DbWork().addNewUser(new User(id, name, surname)));\n }\n //System.out.println(id);\n } catch (NumberFormatException e) {\n System.out.println(\"Invalid id number\");\n }\n\n out.print(getHttpResponse()); // Print info about user\n out.close(); // Flush and close the output stream\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }", "title": "" }, { "docid": "486c67c1de6dd120258e5acdcdc22591", "score": "0.5718688", "text": "public void run() {\n\n while(!Client.exit) {\n try {\n Generic gen = new Generic();\n Message mes = new Message();\n Login log = new Login();\n User reg = new User();\n Bet bet = new Bet();\n\n int opt = Client.opt.getOption();\n switch(opt) {\n case Constants.creditCode:\n /* get credit balance */\n gen.setCode(Constants.creditCode);\n gen.setObj(new Credit());\n break;\n case Constants.resetCode:\n /* resets credit balance */\n gen.setCode(Constants.resetCode);\n gen.setObj(new Credit());\n break;\n case Constants.matchesCode:\n /* new Login object */\n log.setName(Client.log.getName());\n log.setPassword(Client.log.getPassword());\n\n /* lists current matches */\n gen.setCode(Constants.matchesCode);\n gen.setObj(log);\n break;\n case Constants.betCode:\n /* new Bet object */\n bet.setAposta(Client.bet.getAposta());\n bet.setBet(Client.bet.getBet());\n bet.setIdGame(Client.bet.getIdGame());\n\n /* bets on a match */\n gen.setCode(Constants.betCode);\n gen.setObj(bet);\n break;\n case Constants.onlineUsersCode:\n /* lists online users */\n gen.setCode(Constants.onlineUsersCode);\n break;\n case Constants.messageCode:\n /* messages a user */\n mes.setHashtable(Client.buffer.getHashtable());\n mes.setAuthor(Client.buffer.getAuthor());\n\n gen.setCode(Constants.messageCode);\n gen.setObj(mes);\n break;\n case Constants.messageAllCode:\n /* messages all users */\n mes.setHashtable(Client.bufferAll.getHashtable());\n mes.setAuthor(Client.bufferAll.getAuthor());\n\n gen.setCode(Constants.messageAllCode);\n gen.setObj(mes);\n break;\n case Constants.logoutCode:\n /* logout and exit */\n gen.setCode(Constants.logoutCode);\n\n /* only sends if connection is on */\n if(Client.connected) {\n /* sends the request to the server */\n Client.out.writeObject(gen);\n Client.out.flush();\n }\n /* ends the thread */\n return;\n case Constants.loginCode:\n /* new Login object */\n log.setName(Client.log.getName());\n log.setPassword(Client.log.getPassword());\n /* login */\n gen.setCode(Constants.loginCode);\n gen.setObj(log);\n break;\n case Constants.regCode:\n /* new user profile object */\n reg.setName(Client.reg.getName());\n reg.setMail(Client.reg.getMail());\n reg.setPassword(Client.reg.getPassword());\n reg.setCredit(Client.reg.getCredit());\n /* register */\n gen.setCode(Constants.regCode);\n gen.setObj(reg);\n break;\n case Constants.requestMessage:\n gen.setCode(Constants.requestMessage);\n break;\n default:\n System.out.println(\"Wrong option :X\");\n break;\n }\n\n /* only sends if connection is on */\n if(Client.connected) {\n /* sends the request to the server */\n Client.out.writeObject(gen);\n Client.out.flush();\n }\n } catch (IOException ex) {\n // System.out.println(\"IOException sending object: \"+ex.getMessage());\n // System.out.println(\"Error ocurred. Ending sending thread\");\n }\n }\n\n\n System.out.println(\"sender thread down!!\");\n }", "title": "" }, { "docid": "3b276a24d338d4e5ab91eeb13f1efb03", "score": "0.5716571", "text": "private void start() {\n try(final ServerSocket server_socket = new ServerSocket(listening_port)) {\n System.out.println(messages.getString(\"accepting_on_port\") + \" \" + listening_port + \" ...\");\n while(true){\n final Socket socket = server_socket.accept();\n if (socket != null){\n threadPool.execute(new Runnable() {\n @Override\n public void run() { \n try { \n System.out.println(messages.getString(\"conn_acc_with\") + \" \" + socket.getInetAddress().getHostAddress()); \n serveClient(socket);\n saveState();\n System.out.println(messages.getString(\"conn_term_with\") + \" \" + socket.getInetAddress().getHostAddress());\n } catch (IOException | NoSuchAlgorithmException ex){\n System.err.println(messages.getString(\"client_at\") + \" \" + socket.getInetAddress().getHostAddress() + \" \" + messages.getString(\"couldnt_be_served\")); \n } finally { \n try {\n socket.close();\n } catch (IOException ex) {\n Logger.getLogger(Server.class.getName()).log(Level.SEVERE, null, ex);\n } \n }\n }\n }); \n }\n }\n } catch (IOException ex) { \n System.err.println(messages.getString(\"socket_not_ack\") + \" \" + ex.getLocalizedMessage());\n } \n }", "title": "" }, { "docid": "57ee05f095f9156991f1b05413b26558", "score": "0.57155025", "text": "@Override\n public void run() {\n\n //Multithreading runnable. Identical in functionality to main method\n try {\n\n // -First argument – IP address of Server. ( 127.0.0.1 is the IP address of\n // local-host, where code will run on single stand-alone machine).\n // -Second argument – TCP Port. (Just a number representing which application to\n // run on a server. For example, HTTP runs on port 80. Port number can be from 0 to 65535)\n System.out.println(\"Client Started!\");\n Socket socket = new Socket(\"localhost\", 8711);\n\n //getOutputStream() method is used to send the output through the socket.\n //getInputStream() method is used to send the input through the socket.\n DataOutputStream data_out = new DataOutputStream(socket.getOutputStream());\n DataInputStream data_in = new DataInputStream(socket.getInputStream());\n //BufferedReader json_in = new BufferedReader(new InputStreamReader(socket.getInputStream()));\n //int counter = 0;\n\n IsRunning = true;\n while (IsRunning) {\n\n //request heartbeat\n //This method writes a string to the underlying output stream\n //using modified UTF-8 encoding in a machine-independent manner.\n data_out.writeUTF(\"Client Requesting Heartbeat with GWId: 231\");\n //Without a flush in there, you may wait forever\n //for the reply, because the request may still be in your buffer.\n data_out.flush(); //This method flushes data output stream.\n System.out.println(\"\\n\");\n\n //request cpu_storage_diagnostic\n //This method writes a string to the underlying output stream\n //using modified UTF-8 encoding in a machine-independent manner.\n data_out.writeUTF(\"Client Requesting CPU storage with GWId: 231\");\n //Without a flush in there, you may wait forever\n //for the reply, because the request may still be in your buffer.\n data_out.flush(); //This method flushes data output stream.\n\n //request cpu_prime\n //This method writes a string to the underlying output stream\n //using modified UTF-8 encoding in a machine-independent manner.\n data_out.writeUTF(\"Client Requesting CPU prime time with GWId: 231\");\n //Without a flush in there, you may wait forever\n //for the reply, because the request may still be in your buffer.\n data_out.flush(); //This method flushes data output stream.\n\n //request cpu_floating point\n //This method writes a string to the underlying output stream\n //using modified UTF-8 encoding in a machine-independent manner.\n data_out.writeUTF(\"Client Requesting CPU Floating Point time with GWId: 231\");\n //Without a flush in there, you may wait forever\n //for the reply, because the request may still be in your buffer.\n data_out.flush(); //This method flushes data output stream.\n\n //request cpu_integer_test\n //This method writes a string to the underlying output stream\n //using modified UTF-8 encoding in a machine-independent manner.\n data_out.writeUTF(\"Client Requesting CPU Integer test time with GWId: 231\");\n //Without a flush in there, you may wait forever\n //for the reply, because the request may still be in your buffer.\n data_out.flush(); //This method flushes data output stream.\n\n //request cpu_memory_diagnostic\n //This method writes a string to the underlying output stream\n //using modified UTF-8 encoding in a machine-independent manner.\n data_out.writeUTF(\"Client Requesting CPU Memory Diagnostic with GWId: 231\");\n //Without a flush in there, you may wait forever\n //for the reply, because the request may still be in your buffer.\n data_out.flush(); //This method flushes data output stream.\n\n //readUTF reads in a string that has been encoded using a modified UTF-8 format.\n //The string of character is decoded from the UTF and returned as String.\n String json_data = data_in.readUTF();\n //Print string received from socket input data_in\n System.out.println(\"Receiving Diagnostic for: \" + \"\\n\" + json_data);\n\n\n //Read Test Result\n //Print json received from socket input json_in\n String json_info = data_in.readUTF();\n //Print string received from socket input data_in\n System.out.println(\"Test Results Below: \" + \"\\n\" + json_info);\n\n //Uncomment to send post to cic. Must turn on server.js on droplet with Node\n //TODO: fix post request\n //test post\n Methods.sendHeartbeatPost(json_info, \"heartbeat\");\n //System.out.println(\"Successfully sent heartbeat to CIC\");\n\n // would need multithreading to keep process active to handle more than one request at once\n if (json_info.contains(\"bye\")) {\n Server_stopped();\n break;\n }\n\n }//end of alrogithim while\n\n //close the connection by closing the socket as well\n //close input/output streams.\n data_out.close();\n data_in.close();\n socket.close();\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "ecce2078547f1c6d9d6f05e4931a03c8", "score": "0.5709913", "text": "private void createConnection() throws IOException {\r\n\t\ttry {\r\n\t\t\tsetSocket(new Socket(HOST, PORT)); //Making a connection to the server\r\n\t\t} catch (ConnectException ce) {\r\n\t\t\tSystem.out.println(\"[Server] Chat Room is currently full!\");\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t\r\n\t\tsetInput(new BufferedReader(new InputStreamReader(getSocket().getInputStream())));\r\n\r\n\t\tSystem.out.println(\"[Server] If no response after 3 seconds, the Chat Room is full!\");\r\n\t\tSystem.out.println(getInput().readLine());\r\n\t\t\r\n\t\tClientHandler connection = new ClientHandler(getSocket());\r\n\t\tconnection.start();\r\n\t\t\r\n\t\t//Printing outputs to the client as they come in, server messages, other member messages, error message etc.\r\n\t\twhile(true) {\r\n\t\t\ttry {\r\n\t\t\t\tString message = getInput().readLine();\r\n\t\t\t\t\r\n\t\t\t\tif (message != null) {\r\n\t\t\t\t\tSystem.out.print(message + \"\\n> \");\r\n\t\t\t\t}\r\n\t\t\t} catch (IOException io) {\r\n\t\t\t\tSystem.err.println(\"[Error] Failed to read input.\");\r\n\t\t\t\tio.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "88759e62b6eb2539842416c1325321ee", "score": "0.57042366", "text": "public static void main(String[] args) throws IOException {\r\n\t\t// TODO Auto-generated method stub\r\n\r\n\r\n\r\n FileOutputStream fos = null;\r\n BufferedOutputStream bos = null;\r\n Socket sock = null; \r\n\r\n\ttry {\r\n\r\n\t\t //Socket connection\r\n\t sock = new Socket(SERVER, SOCKET_PORT);//opening a socket\r\n\t System.out.println(\"Connecting...\");//shows it is connecting\r\n\t \r\n\t \r\n\t //Function to get client date\r\n\t Date currentDate = new Date();\r\n\t\t SimpleDateFormat sdf = new SimpleDateFormat(\"HH:mm:ss\");\r\n\t\t String i = sdf.format(currentDate);\r\n\t\t \r\n //Print Client time\r\n\t\t System.out.println(\"Your time is:\"); \r\n System.out.println(i); \t\t \r\n\t\t \r\n\t\t //Send Client time to Server\r\n PrintStream p5 = new PrintStream(sock.getOutputStream());// create printsream object(also import)\r\n\t\t p5.println(i);// use object to pass string to server\r\n\t\t \r\n\t\t \r\n\t\t //Get new time from server\r\n\t\t \r\n\t\t //Get hour\r\n Scanner sc = new Scanner (sock.getInputStream());//define scanner variable \r\n String shr = sc.nextLine();\r\n int nhr = Integer.parseInt(shr);\r\n \r\n //Get Minutes\r\n String smin = sc.nextLine();\r\n int nmin = Integer.parseInt(smin);\r\n \r\n \r\n //Get Seconds\r\n String ssec = sc.nextLine();\r\n int nsec = Integer.parseInt(ssec);\r\n\r\n \r\n //Print time acquired from server\r\n System.out.println(\"New time is(after server calculation):\"); \r\n System.out.println(nhr +\":\" + nmin + \":\" + nsec); \r\n \r\n\t }\r\n finally {//close all connections and socket\r\n if (fos != null) fos.close();\r\n if (bos != null) bos.close();\r\n if (sock != null) sock.close();\r\n \r\n }\r\n\r\n\r\n\r\n\r\n\t}", "title": "" }, { "docid": "782d5ea9c2e1ebfe26c78e135ace1920", "score": "0.5701501", "text": "static String hostGame( int Port, player HostPlayer ) {\r\n String battleResults = \"Victory!\";\r\n ServerSocket Server;\r\n Socket client;\r\n try {\r\n Server = new ServerSocket(Port);\r\n System.out.println(\"Your name is \" + InetAddress.getLocalHost().getHostAddress());\r\n System.out.println(\"Your port number is \" + Server.getLocalPort());\r\n client = Server.accept();\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n return \"Socket was not open try again\";\r\n }\r\n try (PrintWriter fireComand =\r\n new PrintWriter(client.getOutputStream(), true);\r\n BufferedReader fireRecived = new BufferedReader(\r\n new InputStreamReader(client.getInputStream()));) {\r\n String lastShot=\"\";\r\n int x;\r\n int y;\r\n while (HostPlayer.crew > 0 && !lastShot.equals(\"-1,-1\")) {\r\n System.out.println(\"Opponents turn\");\r\n lastShot= fireRecived.readLine();\r\n if(lastShot.equals(\"-1,-1\")){\r\n break;\r\n }\r\n x = Integer.parseInt(lastShot.substring(0, 1));\r\n y = Integer.parseInt(lastShot.substring(2));\r\n int damageResults=HostPlayer.reciveFire(x, y);\r\n fireComand.println(damageResults);\r\n if (HostPlayer.crew == 0) {\r\n battleResults = \"Defeat\";\r\n fireComand.println(\"-1,-1\");\r\n } else {\r\n String output = HostPlayer.fire();\r\n x = Integer.parseInt(output.substring(0, 1));\r\n y = Integer.parseInt(output.substring(2));\r\n fireComand.println(output);\r\n int results = Integer.parseInt(fireRecived.readLine());\r\n HostPlayer.fireResults(x, y, results);\r\n }\r\n }\r\n client.close();\r\n Server.close();\r\n }catch(IOException e){\r\n e.printStackTrace();\r\n return \"bad input try again.\";\r\n }\r\n return battleResults;\r\n }", "title": "" }, { "docid": "1f96f26cb7a584bf263cfc08654bf797", "score": "0.5696515", "text": "public void run(){\n try {\n serverSocket = new ServerSocket(Master.messageport);\n //newsocket = new Socket(Master.masterIP, Master.messageport);\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n boolean havesendOrNot = false;\n boolean isMasterAlive = true;\n\n while (true) {\n try {\n\n String inputmess;\n Object readObject = null;\n try {\n\n checkMasterThread = true;\n if (!havechecked) {\n new Thread(new CheckMasterThread()).start();\n }\n\n socket = serverSocket.accept();\n\n checkMasterThread = false;\n\n InputStream inputStream = socket.getInputStream();\n\n //for the first time, get the vertexClassName\n ObjectInputStream objects = new ObjectInputStream(inputStream);\n inputmess = objects.readUTF();\n\n if (inputmess.equals(\"finish\")) {\n System.out.println(\"finish, write solution\");\n\n writeSolution(vertices);\n\n break;\n } else {\n readObject = objects.readObject();\n inputMessages = (List<Message>) readObject;\n }\n\n } catch (IOException e) {\n System.out.println(\"Receive error, restart the worker and wait for new messages\");\n\n e.printStackTrace();\n\n try {\n socket.close();\n } catch (IOException e1) {\n e1.printStackTrace();\n }\n\n checkMaster();\n\n continue;\n }\n\n System.out.println(\"UTF : \" + inputmess);\n System.out.println(\"get \"+ inputMessages.size() + \" messages from master\");\n\n try {\n Thread.sleep(1000);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n\n if (inputmess.equals(\"restart\")) {\n System.out.println(\"Restart and construct vertices!\");\n vertexClassName = \"PageRankVertex\";\n vertices = constructVertices(inputMessages);\n superstep = 0;\n }\n\n if (vertices == null) {\n vertexClassName = inputmess;\n vertices = constructVertices(inputMessages);\n }\n\n //do computing in every vertex and get new messages\n newMessages = compute(vertices, inputMessages);\n\n System.out.println(\"Size of new messages : \" + newMessages.size());\n\n for (Map.Entry<String, Node> entry : SDFS.alivelist.entrySet()) {\n if (entry.getValue().getIP().equals(Master.masterIP)) {\n isMasterAlive = entry.getValue().getIsActive();\n }\n }\n\n\n try {\n if (isMasterAlive) {\n // System.out.println(\"Master is alive, begin send\");\n //the size of newMessages decide whether do we need more iterations.\n OutputStream outputStream = socket.getOutputStream();\n ObjectOutputStream outObjects = new ObjectOutputStream(outputStream);\n outObjects.writeObject(newMessages);\n outObjects.flush();\n outObjects.close();\n // System.out.println(\"Master is alive, end send\");\n } else {\n //send data to\n // System.out.println(\"Master is dead, begin send\");\n OutputStream outstr = socket.getOutputStream();\n ObjectOutputStream outObjs = new ObjectOutputStream(outstr);\n outObjs.writeObject(newMessages);\n outObjs.flush();\n outObjs.close();\n // System.out.println(\"Master is dead, end send\");\n }\n } catch (IOException e) {\n System.out.println(\"Send messages error, restart and waiting for new messages\");\n\n checkMaster();\n\n System.out.println(\"Continue\");\n continue;\n }\n\n //in the end of each superstep, update the previousMessages\n previousMessages = newMessages;\n previousVertices = vertices;\n\n superstep += 1;\n try {\n socket.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n } catch (ClassNotFoundException e) {\n e.printStackTrace();\n }\n }\n }", "title": "" }, { "docid": "b67700c6d3ba9dbe838f53936da7ac9a", "score": "0.56939006", "text": "private void processClient() {\n\t\t// TODO Auto-generated method stub\n\n\t\ttry {\n\t\t\tclientIn = new DataInputStream(myClient.getInputStream());\n\t\t\tint id = index.addPeer(myClient);\t\t\t//addPeer() will add an entry of peer in Central Index\n\n\t\t\tif(id > 0){\n\t\t\t\tserverOut = new DataOutputStream(myClient.getOutputStream());\n\t\t\t\tserverOut.writeByte(1);\t\t\t\t //Send a byte to client indicating connection and central update was successful\n\t\t\t}\n\t\t\telse {\n\t\t\t\tserverOut = new DataOutputStream(myClient.getOutputStream());\n\t\t\t\tserverOut.writeByte(0);\t\t\t\t //Send a byte to client indicating client was already registered with server\n\t\t\t}\n\n\t\t\treq = new Request(myClient, index, id);\n\t\t\treq.parser(serverOut, clientIn);\t\t\t//parser() will process all incoming client requests\n\t\t}\n\t\tcatch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\tSystem.out.println(\"Peer [ \" + (myClient.getInetAddress()).getHostAddress() + \":\" + myClient.getPort() + \" ] disconnected !\");\n\t\t\t//e.printStackTrace();\n\t\t}\n\t}", "title": "" }, { "docid": "14b0ccb8269365abfc0e6746a968cc1c", "score": "0.5691116", "text": "private void run() throws IOException, InterruptedException {\r\n\r\n\t\t// Make connection and initialize streams\r\n\t\t// TODO - need to close this socket\r\n\t\tSocket socket = new Socket(SERVER_ADDRESS, PORT_ADDRESS); // set port\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// here\r\n\t\tin = new BufferedReader(new InputStreamReader(socket.getInputStream()));\r\n\t\tout = new PrintWriter(socket.getOutputStream(), true);\r\n\r\n\t\t// Gson gson = new GsonBuilder().setPrettyPrinting().create();\r\n\r\n\t\t// Process all messages from server, wait until server requests Rover ID\r\n\t\t// name\r\n\r\n\t\twhile (true) {\r\n\t\t\tString line = in.readLine();\r\n\t\t\tif (line.startsWith(\"SUBMITNAME\")) {\r\n\t\t\t\tout.println(rovername); // This sets the name of this instance\r\n\t\t\t\t\t\t\t\t\t\t// of a swarmBot for identifying the\r\n\t\t\t\t\t\t\t\t\t\t// thread to the server\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t// ******** Rover logic *********\r\n\t\t// int cnt=0;\r\n\t\tString line = \"\";\r\n\r\n\t\tint counter = 0;\r\n\r\n\t\tboolean stuck = false; // just means it did not change locations between\r\n\t\t\t\t\t\t\t\t// requests,\r\n\t\t\t\t\t\t\t\t// could be velocity limit or obstruction etc.\r\n\t\tboolean blocked = false;\r\n\r\n\t\tString[] cardinals = new String[4];\r\n\t\tcardinals[0] = \"E\";\r\n\t\tcardinals[1] = \"W\";\r\n\t\tcardinals[2] = \"N\";\r\n\t\tcardinals[3] = \"S\";\r\n\r\n\t\tString currentDir = null;\r\n\t\tCoord currentLoc = null;\r\n\t\tCoord previousLoc = null;\r\n\t\tString currentCoord=null;\r\n\r\n\t\t\r\n\t\t// comm\r\n\t\t//String url = \"http://23.251.155.186:3000/api/global\";\r\n\t\t//Communication com = new Communication(url);\r\n\r\n\t\t\r\n\t\t// new updated communication\r\n\t\tString url = \"http://23.251.155.186:3000/api\";\r\n//\t\tString url = \"http://192.168.1.104:3000/api\";\r\n\t\tString corp_secret = \"0FSj7Pn23t\";\r\n\t\tCommunication com = new Communication(url, rovername, corp_secret);\r\n\t\t\r\n\t\t// start Rover controller process\r\n\t\twhile (true) {\r\n\r\n\t\t\t// currently the requirements allow sensor calls to be made with no\r\n\t\t\t// simulated resource cost\r\n\r\n\t\t\t// **** location call ****\r\n\t\t\tout.println(\"LOC\");\r\n\t\t\tline = in.readLine();\r\n\t\t\tif (line == null) {\r\n\t\t\t\tSystem.out.println(\"ROVER_14 check connection to server\");\r\n\t\t\t line = \"\";\r\n\t\t\t}\r\n\t\t\tif (line.startsWith(\"LOC\")) {\r\n\t\t\t\t// loc = line.substring(4);\r\n\t\t\t\tcurrentLoc = extractLOC(line);\r\n\t\t\t}\r\n\t\t\tSystem.out.println(\"ROVER_14 currentLoc at start: \" + currentLoc); // printing current location\r\n\t\t\t\r\n\t\t\t// getting current location in a string\r\n\t\t\tcurrentCoord=currentLoc.currentCoord();\r\n\r\n\t\t\t// after getting location set previous equal current to be able to\r\n\t\t\t// check for stuckness and blocked later\r\n\t\t\tpreviousLoc = currentLoc;\r\n\r\n\t\t\t// **** get equipment listing ****\r\n\t\t\tArrayList<String> equipment = new ArrayList<String>();\r\n\t\t\tequipment = getEquipment();\r\n\t\t\t// System.out.println(\"ROVER_14 equipment list results drive \" +\r\n\t\t\t// equipment.get(0));\r\n\t\t\tSystem.out.println(\"ROVER_14 equipment list results \" + equipment + \"\\n\");\r\n\r\n\t\t\t// ***** do a SCAN *****\r\n\t\t\t// System.out.println(\"ROVER_14 sending SCAN request\");\t\t\t\r\n\t\t\tthis.doScan();\r\n\t\t\tscanMap.debugPrintMap();\r\n\t\t\t\r\n\t\t\t// Catching the chemical locations arraylist\r\n\t\t\tchemicalsFetch = scanMap.chemicalLocations();\r\n\t\t\t\t\t\t\r\n\t\t\t// Calculating coordinates and adding the chemical locations to an new arraylist using a function\r\n\t\t\tAddChemicalLocations(currentCoord, chemicalsFetch);\r\n\t\t\t\t\t\t\r\n\t\t\tfor(String s:chemicalLocations){\r\n\t\t\t\t\t\t\tSystem.out.println(s);\r\n\t\t\t}\r\n\t\t\t\r\n\r\n\t\t\t// ***** MOVING *****\r\n\t\t\t// pull the MapTile array out of the ScanMap object\r\n\t\t\tMapTile[][] scanMapTiles = scanMap.getScanMap();\r\n\r\n\t\t\tint centerIndex = (scanMap.getEdgeSize() - 1) / 2;\r\n\t\t\t// tile S = y + 1; N = y - 1; E = x + 1; W = x - 1\r\n\t\t\t\r\n\t\t\t// Sending data to server\t\t\t\r\n\t\t\tcom.postScanMapTiles(currentLoc, scanMapTiles);\r\n\t\t\t\r\n\t\t\tUpdateBolckStatus(scanMapTiles, centerIndex);\r\n\r\n\t\t\t\r\n\t\t\t/// ********* Movement logic ******************\r\n\t\t\t\r\n\t\t\t// While going East by default\r\n\t\t\t\r\n\t\t\tif (goingEast) {\r\n\t\t\t\t\r\n\t\t\t\t\t// If East is blocked\r\n\t\t\t\t\tif (eastBlocked) {\r\n\t\t\t\t\t\t// If East and South is blocked\r\n\t\t\t\t\t\tif (southBlocked) {\r\n\t\t\t\t\t\t\t// If East, South and North is blocked\r\n\t\t\t\t\t\t\tif (northBlocked) {\r\n\t\t\t\t\t\t\t\tout.println(\"MOVE W\");\r\n\t\t\t\t\t\t\t\tSystem.out.println(\"ROVER_14 request move W\");\r\n\t\t\t\t\t\t\t\tUpdateDirections(cardinals[1]);\r\n\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\tout.println(\"MOVE N\");\r\n\t\t\t\t\t\t\t\tSystem.out.println(\"ROVER_14 request move N\");\r\n\t\t\t\t\t\t\t\tUpdateDirections(cardinals[2]);\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\tout.println(\"MOVE S\");\r\n\t\t\t\t\t\t\tSystem.out.println(\"ROVER_14 request move S\");\r\n\t\t\t\t\t\t\tUpdateDirections(cardinals[3]);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\t// If East is clear to go the move East\r\n\t\t\t\t\telse {\r\n\t\t\t\t\t\tout.println(\"MOVE E\");\r\n\t\t\t\t\t\tSystem.out.println(\"ROVER_14 request move E\");\r\n\t\t\t\t\t\tUpdateDirections(cardinals[0]);\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t} else if (goingWest) { // While going West\r\n\t\t\t\t\r\n\t\t\t\t// If West is blocked\r\n\t\t\t\tif (westBlocked) {\r\n\t\t\t\t\t// If West and South is blocked\r\n\t\t\t\t\tif (southBlocked) {\r\n\t\t\t\t\t\t// If West, South and North is blocked\r\n\t\t\t\t\t\tif (northBlocked) {\r\n\t\t\t\t\t\t\tout.println(\"E\");\r\n\t\t\t\t\t\t\tSystem.out.println(\"ROVER_14 request move E\");\r\n\t\t\t\t\t\t\tUpdateDirections(cardinals[0]);\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\tout.println(\"MOVE N\");\r\n\t\t\t\t\t\t\tSystem.out.println(\"ROVER_14 request move N\");\r\n\t\t\t\t\t\t\tUpdateDirections(cardinals[2]);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tout.println(\"MOVE S\");\r\n\t\t\t\t\t\tSystem.out.println(\"ROVER_14 request move S\");\r\n\t\t\t\t\t\tUpdateDirections(cardinals[3]);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t// If West is clear to go the move West\r\n\t\t\t\telse {\r\n\t\t\t\t\tout.println(\"MOVE W\");\r\n\t\t\t\t\tSystem.out.println(\"ROVER_14 request move W\");\r\n\t\t\t\t\tUpdateDirections(cardinals[1]);\r\n\t\t\t\t}\r\n\t\t\t} else if (goingSouth) { // While going West\r\n\r\n\t\t\t\t// If South is blocked\r\n\t\t\t\tif (southBlocked) {\r\n\t\t\t\t\t// If South and West is blocked\r\n\t\t\t\t\tif (westBlocked) {\r\n\t\t\t\t\t\t// If South, West and East is blocked\r\n\t\t\t\t\t\tif (eastBlocked) {\r\n\t\t\t\t\t\t\tout.println(\"MOVE N\");\r\n\t\t\t\t\t\t\tSystem.out.println(\"ROVER_14 request move N\");\r\n\t\t\t\t\t\t\tUpdateDirections(cardinals[2]);\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\tout.println(\"MOVE E\");\r\n\t\t\t\t\t\t\tSystem.out.println(\"ROVER_14 request move E\");\r\n\t\t\t\t\t\t\tUpdateDirections(cardinals[0]);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tout.println(\"MOVE W\");\r\n\t\t\t\t\t\tSystem.out.println(\"ROVER_14 request move W\");\r\n\t\t\t\t\t\tUpdateDirections(cardinals[1]);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t// If South is clear to go the move South\r\n\t\t\t\telse {\r\n\t\t\t\t\tout.println(\"MOVE S\");\r\n\t\t\t\t\tSystem.out.println(\"ROVER_14 request move S\");\r\n\t\t\t\t\tUpdateDirections(cardinals[3]);\r\n\t\t\t\t}\r\n\t\t\t} else if (goingNorth) {\r\n\r\n\t\t\t\t// If North is blocked\r\n\t\t\t\tif (northBlocked) {\r\n\t\t\t\t\t// If North and West is blocked\r\n\t\t\t\t\tif (westBlocked) {\r\n\t\t\t\t\t\t// If North, West, East is blocked\r\n\t\t\t\t\t\tif (eastBlocked) {\r\n\t\t\t\t\t\t\tout.println(\"MOVE S\");\r\n\t\t\t\t\t\t\tSystem.out.println(\"ROVER_14 request move S\");\r\n\t\t\t\t\t\t\tUpdateDirections(cardinals[3]);\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\tout.println(\"MOVE E\");\r\n\t\t\t\t\t\t\tSystem.out.println(\"ROVER_14 request move E\");\r\n\t\t\t\t\t\t\tUpdateDirections(cardinals[0]);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tout.println(\"MOVE W\");\r\n\t\t\t\t\t\tSystem.out.println(\"ROVER_14 request move W\");\r\n\t\t\t\t\t\tUpdateDirections(cardinals[1]);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t// If North is clear to go the move North\r\n\t\t\t\telse {\r\n\t\t\t\t\tout.println(\"MOVE N\");\r\n\t\t\t\t\tSystem.out.println(\"ROVER_14 request move N\");\r\n\t\t\t\t\tUpdateDirections(cardinals[2]);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tgetCurrentLoc(); // another call for current location\r\n\t\t\t\r\n\t\t\tSystem.out.println(\"ROVER_14 currentLoc after recheck: \" + currentLoc);\r\n\t\t\tSystem.out.println(\"ROVER_14 previousLoc: \" + previousLoc);\r\n\r\n\t\t\t// test for stuckness\r\n\t\t\tstuck = currentLoc.equals(previousLoc);\r\n\r\n\t\t\tSystem.out.println(\"ROVER_14 stuck test \" + stuck);\r\n\t\t\tSystem.out.println(\"ROVER_14 blocked test \" + blocked);\r\n\r\n\t\t\tThread.sleep(sleepTime);\r\n\r\n\t\t\tSystem.out.println(\"ROVER_14 ------------ bottom process control --------------\");\r\n\t\t}\r\n\r\n\t}", "title": "" }, { "docid": "b4f8b5b775caa37641f01794bb8f6fc6", "score": "0.56907153", "text": "private void connectionQuery(String serverIP) throws IOException, InterruptedException, NotBoundException {\n sb.append(\"Choose between using \\\"SOCKET\\\" or \\\"RMI\\\":\");\n printStringBuilder();\n String myChoice;\n do {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n myChoice = br.readLine();\n\n if (myChoice.equalsIgnoreCase(\"SOCKET\")) {\n this.myPlayerName = \"SOCKETFX\";\n new SocketClient(serverIP, myPlayerName, this);\n break;\n }\n\n if (myChoice.equalsIgnoreCase(\"RMI\")) {\n this.myPlayerName = \"RMIFX\";\n new RMIClient(serverIP, myPlayerName, this);\n break;\n }\n sb.append(\"Wrong choose, try again entering one between these:\\\"SOCKET\\\" or \\\"RMI\\\":\");\n printStringBuilder();\n } while (true);\n }", "title": "" }, { "docid": "e0c5cd9a4ab84574083f2f69fe591dec", "score": "0.56900185", "text": "public void start(){\n\t\tcountDownTimer = new Timer();\n\t\tcountDownTimer.schedule(new PerTickBookKeeping(), 1,1);\n\t\tfor(int i=0 ; i < 4 ; i++){\n\t\t\tsendFragment(i);\n\t\t}\n\n\t\twhile(!CLIENTRECIEVEDALLDATA){\n\t\t\tbyte[] receiveData = new byte[BUFFER_AMT];\n\t\t\tif(mTrace){\n\t\t\t\tSystem.out.println(\"Fragment: \"+ sucessfully_transmitted +\" \"+\"Transmitted -- intact\" );\n\t\t\t\tSystem.out.println(\"Fragment: \"+ unsucessfully_transmitted+\" \" +\"Transmitted -- damaged\" );\n\t\t\t}\n\n\t\t\tDatagramPacket receivePacket = new DatagramPacket(receiveData, receiveData.length);\n\n\t\t\ttry {\n\t\t\t\tserverSocket.receive(receivePacket);\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\tString[] acknowledgments = recieveAcknowledgment(Arrays.copyOf(receivePacket.getData(), receivePacket.getLength()));\n\t\t\tupdateServerAcknowledgmentArray(acknowledgments);\n\t\t\t\n\t\t\tif(AcknowledgmentBuffer[send_base].startsWith(\"A\")){\n\t\t\t\tincrementWindowPosition();\n\t\t\t}\n\t\t\tfor(int i = 0; i<4;i++){\n\t\t\t\tif(AcknowledgmentBuffer[(send_base+i)%32].startsWith(\"N\")){\n\t\t\t\t\tsendFragment((send_base+i)%32);\n\t\t\t\t\tunsucessfully_transmitted++;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t//resetting the receive Data variable\n\t\t\treceiveData = null;\n\t\t\tif(CLIENTRECIEVEDALLDATA){\n\t\t\t\tSystem.out.println(\"Connection is Closing...\");\n\t\t\t}\n\t\t}\n\t\tcloseConnection();\n\t}", "title": "" }, { "docid": "63e06bbb2b7bcaa16ac71281e9e6fcb6", "score": "0.568845", "text": "private void start() {\n\n System.out.println(\"Starting Calculator Client...\");\n\n boolean running = true;\n\n Socket clientSocket = null;\n BufferedReader userInputReader = null;\n BufferedReader serverResponseReader = null;\n PrintWriter userResponseWriter = null;\n\n String userInput;\n StringBuilder serverOutput;\n String serverLine;\n\n try {\n // create server socket\n clientSocket = new Socket(serverIP, connexionPort);\n\n // create the user input stream reader (what comes from command input)\n userInputReader = new BufferedReader(new InputStreamReader(System.in));\n // create the server output reader (what comes from server)\n serverResponseReader = new BufferedReader(new InputStreamReader(clientSocket.getInputStream()));\n // create the output stream writer\n userResponseWriter = new PrintWriter(clientSocket.getOutputStream());\n\n // processing loop\n while (clientSocket.isConnected() && running) {\n\n // string buffer for server response lines\n serverOutput = new StringBuilder();\n\n // read the server message line by line until reception of the \"msg_end\" line\n serverLine = serverResponseReader.readLine();\n while (!serverLine.equals(\"msg_end\")) {\n\n // server has close, ending program\n if(serverLine.equals(\"bye !\")) {\n running = false;\n }\n // stores received lines in the string buffer (builder)\n serverOutput.append(serverLine).append(\"\\n\");\n // get next line\n serverLine = serverResponseReader.readLine();\n }\n // print output to the user\n System.out.print(serverOutput);\n\n if(running) {\n // read next user input\n userInput = userInputReader.readLine();\n // send the user input to the server\n userResponseWriter.println(userInput);\n userResponseWriter.flush();\n }\n }\n\n } catch (IOException ex) {\n printError(ex);\n } finally {\n try {\n if(userInputReader != null) {\n userInputReader.close();\n }\n if(serverResponseReader != null) {\n serverResponseReader.close();\n }\n } catch (IOException ex) {\n printError(ex);\n }\n\n if(userResponseWriter != null) {\n userResponseWriter.close();\n }\n\n try {\n if(clientSocket != null) {\n clientSocket.close();\n }\n } catch (IOException ex) {\n printError(ex);\n }\n }\n }", "title": "" }, { "docid": "dbf870f4cec062e1c35b116438e60866", "score": "0.5677882", "text": "public void run() {\n\t\ttry {\n\t\t\toutput = clientSocket.getOutputStream();\n\t\t\tinput = clientSocket.getInputStream();\n\t\t\t\n\t\t\tsendMessage(new KVMessageServer(\n\t\t\t\t\t\"Connection to MSRG Echo server established: \" \n\t\t\t\t\t+ clientSocket.getLocalAddress() + \" / \"\n\t\t\t\t\t+ clientSocket.getLocalPort()));\n\t\t\t\t\t\n\t\t\t\n\t\t\twhile(isOpen) {\n\t\t\t\tinputreads++;\n\t\t\t\t//if (inputreads == 25 ) { input.close(); input.open(); }\n\t\t\t\ttry {\n\t\t\t\t\tif (adminPriveleges && serverDropped) {\n\t\t\t\t\t\tbyte heartBeat = 4;\n\t\t\t\t\t\toutput.write(heartBeat);\t\n\t\t\t\t\t\toutput.flush();\t\n\t\t\t\t\t}\n\t\t\t\t\tbyte read = (byte) input.read();\n\t\t\t\t\t//logger.info(\"Receiving BYTE:\"+ read);\n\t\t\t\t\t//if ( read == 13) continue;\n\t\t\t\t\tif ( read == -1 ) {\n\t\t\t\t\t\tthrow new IOException();\n\t\t\t\t\t}\n\t\t\t\t\tif (read == 0) {\n\t\t\t\t\t\tadminPriveleges =true;\n\t\t\t\t\t\t//System.out.println (\"Receiving Admin Message.\");\n\t\t\t\t\t\t//logger.info(\"Receiving Admin Message.\");\n\t\t\t\t\t\treceiveAdminMessage();\n\n\t\t\t\t\t} else if (read == 2){\n\t\t\t\t\t\tSystem.out.println (\"Receiving Server Message.\");\n\t\t\t\t\t\t//logger.info(\"Receiving Server Message.\");\n\t\t\t\t\t\treceiveServerMessage(input);\n\t\t\t\t\t\t\n\t\t\t\t\t} else if (read == 3 ) {\n\t\t\t\t\t\twhile ( input.available() > 0 ) { read = (byte) input.read(); }\n\t\t\t\t\t\t// heartbeat message.\t\n\t\t\t\t\t\tbyte heartBeat = 0;\n\t\t\t\t\t\toutput.write(heartBeat);\t\n\t\t\t\t\t\toutput.flush();\t\t\n\t\t\t\t\t}\n\t\t\t\t\telse {//if(read == 1 ) {\n\t\t\t\t\t\tKVMessageServer reply;\n\t\t\t\t\t\t//System.out.println (\"Receiving Client Message.\");\n\t\t\t\t\t\t//logger.info(\"Receiving Client Message.\");\n\t\t\t\t\t\t\n\t\t\t\t\t\tKVMessageServer latestMsg = receiveMessage(read);\n\t\t\t\t\t\t//logger.info(\"Received Message.\");\n\t\t\t\t\t\tif ( latestMsg != null && KVServer.stopped == true) {\n\t\t\t\t\t\t\t\t\tKVMessage.StatusType replyStatus = KVMessage.StatusType.SERVER_STOPPED;\n\t\t\t\t\t\t\t\t\treply = new KVMessageServer(\"nokey\", \"novalue\", replyStatus);\n\t\t\t\t\t\t\t\t\tsendMessage(reply);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tKVMessage.StatusType latestMsgStatus = latestMsg.getStatus();\n\t\t\t\t\t\t\tString latestMsgKey = latestMsg.getKey();\n\t\t\t\t\t\t\tString latestMsgValue = latestMsg.getValue();\n\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tswitch (latestMsgStatus) {\n\t\t\t\t\t\t\t\tcase SERVER_WRITE_LOCK:\n\t\t\t\t\t\t\t\t\t\treply = new KVMessageServer(\"\",KVServer.metaDataString, latestMsgStatus);\t\n\t\t\t\t\t\t\t\t\t\tsendMessage(reply);\n\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\tcase SERVER_NOT_RESPONSIBLE:\n\t\t\t\t\t\t\t\t\t\treply = new KVMessageServer(\"\",KVServer.metaDataString, latestMsgStatus);\n\t\t\t\t\t\t\t\t\t\tsendMessage(reply);\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\tcase PUT:\n\t\t\t\t\t\t\t\t\tputToReplicas( latestMsgKey, latestMsgValue );\n\t\t\t\t\t\t\t\t\tKVMessage.StatusType replyStatus = put(latestMsgKey, latestMsgValue);\n\t\t\t\t\t\t\t\t\treply = new KVMessageServer(latestMsgKey, latestMsgValue, replyStatus);\n\t\t\t\t\t\t\t\t\tsendMessage(reply);\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\tcase GET:\n\t\t\t\t\t\t\t\t\tString recValue = get(latestMsgKey);\n\t\t\t\t\t\t\t\t\tif (recValue == null) {\n\t\t\t\t\t\t\t\t\t\treply = new KVMessageServer(\"\", \"\", KVMessage.StatusType.GET_ERROR);\n\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\treply = new KVMessageServer(\"\", recValue, KVMessage.StatusType.GET_SUCCESS);\t\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tsendMessage(reply);\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\t\t\t//Nothing to do here.\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t/* connection either terminated by the client or lost due to \n\t\t\t\t * network problems*/\t\n\t\t\t\t} catch (IOException ioe) {\n\t\t\t\t\tlogger.info(\"Exception thrown.\");\n\t\t\t\t\t//logger.error(\"Error! Connection lost!\");\n\t\t\t\t\tisOpen = false;\n\t\t\t\t\tif (clientSocket != null) {\n\t\t\t\t\t\tinput.close();\n\t\t\t\t\t\toutput.close();\n\t\t\t\t\t\tclientSocket.close();\n\t\t\t\t\t}\n\t\t\t\t\treturn;\n\t\t\t\t}\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t} catch (IOException ioe) {\n\t\t\tlogger.info(\"Exception thrown.\");\n\t\t\t//logger.error(\"Error! Connection could not be established!\", ioe);\n\t\t\t\n\t\t} finally {\n\t\t\t\n\t\t\ttry {\n\t\t\t\tif (clientSocket != null) {\n\t\t\t\t\tinput.close();\n\t\t\t\t\toutput.close();\n\t\t\t\t\tclientSocket.close();\n\t\t\t\t}\n\t\t\t} catch (IOException ioe) {\n\t\t\t\tlogger.info(\"Exception thrown.\");\n\t\t\t\t//logger.error(\"Error! Unable to tear down connection!\", ioe);\n\t\t\t}\n\t\t}\n\n\t\tlogger.info(\"Client Connection Closed.\");\n\t}", "title": "" }, { "docid": "011c42b5f40e5e9798c3c47a2d51bc9a", "score": "0.56740505", "text": "public synchronized void startServer() {\n\t\ttry {\n\t\t\tsock = new ServerSocket(2013);\n\t\t\tappendLine(\"Serveur a l'ecoute sur le port : \"\n\t\t\t\t\t+ sock.getLocalPort());\n\n\t\t} catch (IOException ex) {\n\t\t\tex.printStackTrace();\n\t\t}\n\n\t\twhile (true) {\n\t\t\tappendLine(\"En attente d'un client\");\n\t\t\ttry (Socket client = sock.accept()) {\n\t\t\t\tsend.setEnabled(true);\n\t\t\t\tappendLine(\"Client connecte\");\n\n\t\t\t\tout = new PrintWriter(new BufferedWriter(\n\t\t\t\t\t\tnew OutputStreamWriter(client.getOutputStream())), true);\n\t\t\t\tin = new BufferedReader(new InputStreamReader(\n\t\t\t\t\t\tclient.getInputStream()));\n\n\t\t\t\t// Lecture continue des messages du client\n\t\t\t\tString str;\n\t\t\t\tsynchronized (this) {\n\t\t\t\t\twhile ((str = in.readLine()) != null) {\n\t\t\t\t\t\tappendLine(\"Commande recue : \" + str);\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tThread.sleep(1000);\n\t\t\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t\t\t\tout.flush();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tout.close();\n\t\t\t\tin.close();\n\t\t\t\tappendLine(\"Client deconnecte\");\n\t\t\t} catch (IOException e) {\n\t\t\t\tappendLine(\"Client deconnecte\");\n\t\t\t\tsend.setEnabled(false);\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "eba2b0e73fdab068f0b5693b6322559c", "score": "0.5668006", "text": "public void iniciar(){\n try {\n socketServidor = new ServerSocket(puerto);\n System.out.println(\"Esperando conexiones\");\n while(true){\n socketCliente = socketServidor.accept();\n //Se crea un hilo para atender la consulta\n Runnable cliente = new Cliente(socketCliente);\n Thread hilo = new Thread(cliente);\n hilo.start();\n }\n } catch (IOException ex) {\n Logger.getLogger(Servidor.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "title": "" }, { "docid": "06e8ae81edf1d55cf9cb0ea2e89cb7e8", "score": "0.5667647", "text": "public void run() {\n\n\t\twhile (true) {\n\t\t\ttry {\n\t\t\t\tSocket theSocket = theServer.accept();\n\n\t\t\t\tPrintWriter dataOut = new PrintWriter(theSocket.getOutputStream(), true);\n\t\t\t\tBufferedReader dataIn = new BufferedReader(new InputStreamReader(theSocket.getInputStream()));\n\t\t\t\tdataOut.println(\"ACK \\n Successfully Connected to: \" +theServer.getLocalPort());\n\t\t\t\t\n\n\t\t\t\tnew Thread(new Runnable() {\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\n\t\t\t\t\t\twhile (true) {\n\t\t\t\t\t\tString input;\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tinput = dataIn.readLine();\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (input.contains(\"UserName: \")) {\n\t\t\t\t\t\t\tchatCommands.checkUserName(input);\n\t\t\t\t\t\t\t} \n\t\t\t\t\t\telse {\n\t\t\t\t\t\t\tchatCommands.addMessage(input);\n\t\t\t\t\t\t}}catch (IOException e) {\n\t\t\t\t\t\t\t//If theres an issue I can't do much with it here. There is a connection issue and will likely boot client.\n\t\t\t\t\t\t}\n\t\t\t\t\t\t}}}).start();\n\t\t\t\t\n\t\t\t\t//Creating another thread because the server has to be actively listening for each input.\n\t\t\t\t//The readers and sockets hold up the program until an input has been received.\n\t\t\t\t//Placed after previous thread as a third thread layer would prematurely crash. \n\t\t\t\t//(Need to find out why.)\n\t\t\t\t//Printed out by indexing so items would not print multiple times.\n\t\t\t\t//Each client will have a different area they will drop into the chat from.\n\t\t\t\tnew Thread(new Runnable() {\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\tint clientChatLocation = chatCommands.getChatCurrentLocation();\n\t\t\t\t\t\twhile(true) {\n\t\t\t\t\t\t\t//**************************\n\t\t\t\t\t\t\t//Without a flush, this thread doesn't function properly.\n\t\t\t\t\t\t\tdataOut.flush();\n\t\t\t\t\t\t\t//LINE OF STRUCTURE ^\n\t\t\t\t\t\t\tif(clientChatLocation < chatCommands.getChatCurrentLocation()) {\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tdataOut.println(chatCommands.getMessage(clientChatLocation));\n\t\t\t\t\t\t\t\tclientChatLocation++;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}}).start();\n\t\t\t\n\n\t\t\t} catch (IOException e) {\n\t\t\t\t//If theres an issue I can't do much with it here. There is a connection issue and will likely boot client.\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "2a374df7825d0b4c27f42d3c94a1de9c", "score": "0.5666044", "text": "@Override\n public void run(){\n BufferedReader r;\n int cnt = 1;\n while(true){\n try{\n // After client connected, create client socket connect with client\n Socket clntSock = servSock.accept();\n r = new BufferedReader(new InputStreamReader(clntSock.getInputStream()));\n\n addText(\"Connected!!\");\n\n String s = r.readLine();\n addText(\"[Server Said]\" + s + cnt);\n\n\n // Add to pool, start reading message\n ConnectionThread connection = new ConnectionThread(clntSock, cnt);\n connection.start();\n threadPool.add(connection);\n cnt++;\n }\n catch(Exception e){\n //System.out.println(\"Error: \"+e.getMessage());\n }\n }\n }", "title": "" }, { "docid": "db257bb42247b68cfc5e47750ffbb79a", "score": "0.5661982", "text": "private void sendUpdate() {\r\n // Send a packet to greet server\r\n try {\r\n InetAddress IPAddress = InetAddress.getByName(serverIP);\r\n SHACData update = new SHACData(0, NodeType.CLIENT);\r\n byte[] updateData = SHACProtocol.encodePacketData(update);\r\n DatagramPacket sendPacket = new DatagramPacket(updateData, updateData.length, IPAddress, SHACProtocol.SHAC_SOCKET);\r\n socket.send(sendPacket);\r\n lastSent = new Date();\r\n //System.out.println(\"Message sent from client\");\r\n } catch (UnknownHostException e) {\r\n e.printStackTrace();\r\n } catch (SocketException e) {\r\n e.printStackTrace();\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n }", "title": "" }, { "docid": "2e34cc6e34f2ba18b08fc57d5c2545bd", "score": "0.56597066", "text": "public static void main(String[] args) {\r\n\t\t\r\n\t\t//check required number of parameters are passed\r\n\t\tif(args.length <=4)\r\n\t\t{\r\n\t\t\tSystem.out.println(\"Usage is: > java Client [server address] [server port number] [send probability][receive probability][internal events probability]\");\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t\r\n\t\t//variable declaration and initialization \r\n\t\tString hostName = args[0];\r\n\t\tint serverPort=Integer.parseInt(args[1]);\r\n\t\tfloat sendProbability = Float.parseFloat(args[2]);\r\n\t\tfloat receiveProbability = Float.parseFloat(args[3]);\r\n\t\tfloat internalEventProbability = Float.parseFloat(args[4]);\r\n\t\tint maxIterations = 10000;\r\n\t\r\n\t\tSocket clientSocket=null;\r\n\t\tPrintWriter out = null;\r\n\t BufferedReader in=null;\r\n\t int clientClockValue=0;\r\n\t //KEY to encrypt and decrypt offset\r\n\t final int KEY=20;\r\n\t\t\r\n\t //To write data into text file to generate graph\r\n\t /*BufferedWriter bufferedWriter = null;\r\n\t\tFileWriter fileWriter = null;\r\n\t\tString fileName=null;*/\r\n\t\ttry \r\n\t\t{\r\n\t\t\t//hostName = InetAddress.getLocalHost().getHostName();\r\n\t\t\t//Create client socket\r\n\t\t\tclientSocket = new Socket(hostName, serverPort);\r\n\t\t\t/*fileName=\"Client_\"+clientSocket.getLocalPort()+\".txt\";\r\n\t\t\tfileWriter = new FileWriter(fileName);\r\n\t\t\tbufferedWriter = new BufferedWriter(fileWriter);\r\n\t\t\t*/\r\n\t\t\t//create I/O stream associated with client socket\r\n\t\t in = new BufferedReader(new InputStreamReader(clientSocket.getInputStream()));\r\n\t\t out = new PrintWriter(clientSocket.getOutputStream(), true);\r\n\t\t System.out.println(\"Client Info:\"+clientSocket.toString());\r\n\t\t\t//waiting for server to connect to all the client\r\n\t\t\twhile(true)\r\n\t\t\t{\r\n\t\t\t String serverResponse= in.readLine();\r\n\t\t\t if(serverResponse!=null)\r\n\t\t\t {\r\n\t\t\t \tif(serverResponse.toUpperCase().contains(\"START\"))\r\n\t\t\t \t{\r\n\t\t\t \t\tSystem.out.println(\"Received START event from Server\");\r\n\t\t\t \t\tbreak;\r\n\t\t\t \t}\r\n\t\t\t }\r\n\t\t\t //polling for server to send START signal after 5 secs\r\n\t\t\t Thread.sleep(5*1000);\r\n\t\t\t}\r\n\t\t\tSystem.out.println(\"Received ACK from server\");\r\n\t\t\t\r\n\t\t\t//start communication with server\r\n\t\t\t//while(true)\r\n\t\t\tfor(int loop=0;loop<maxIterations;loop++)\r\n\t\t\t{\r\n\t\t\t\t//clients probabilistic behavior starts from here\t\r\n\t\t\t\tfloat probability = new Random().nextFloat();\r\n\t\t\t\t//send event\r\n\t\t\t\tif(probability <= sendProbability )\r\n\t\t\t\t{\r\n\t\t\t\t\tSystem.out.println(\"Send event\");\r\n\t\t\t\t\t//System.out.println(\"Clients clock value:\"+clientClockValue);\r\n\t\t\t\t\t//encrypt offset\r\n\t\t\t\t\tint encryptedValue= clientClockValue + KEY;\r\n\t\t\t\t\t//System.out.println(\"Encrypted Clients clock value:\"+encryptedValue);\r\n\t\t\t\t\t//send encrypted offset value to server\r\n\t\t\t\t\tout.println(\"\"+encryptedValue);\r\n\t\t\t\t}\r\n\t\t\t\t//receive event\r\n\t\t\t\telse if(probability <= receiveProbability)\r\n\t\t\t\t{\r\n\t\t\t\t\tSystem.out.println(\"Receive event\");\r\n\t\t\t\t\t//System.out.println(\"========================\");\r\n\t\t\t\t\t//send receive signal to the server and then read offset value \r\n\t\t\t\t\tout.println(\"RECEIVE\");\r\n\t\t\t\t\t//read offset value from server\r\n\t\t\t\t \tint offset =Integer.parseInt(in.readLine()) ;\r\n\t\t\t\t \t//System.out.println(\"Offset value received from server:\"+offset);\r\n\t\t\t\t \t//decrypt offset value\r\n\t\t\t\t \tint decryptedValue = offset - KEY;\r\n\t\t\t\t \t//System.out.println(\"Decrypted offset value:\"+decryptedValue);\r\n\t\t\t\t \t// increment offset value by 1, assuming communication delay\r\n\t\t\t\t \tdecryptedValue+=1; \r\n\t\t\t\t \t//System.out.println(\"Clients clock value before updating:\"+clientClockValue);\r\n\t\t\t\t \tclientClockValue = clientClockValue + decryptedValue;\r\n\t\t\t\t \tSystem.out.println(\"Updated clients clock value based on offset:\"+clientClockValue);\r\n\t\t\t\t}\r\n\t\t\t\t//internal event\r\n\t\t\t\telse if(probability<= internalEventProbability)\r\n\t\t\t\t{\r\n\t\t\t\t\tSystem.out.println(\"Internal Event\");\r\n\t\t\t\t\t//wait for 5 secs\t\r\n\t\t\t\t\tThread.sleep(5*1000);\r\n\t\t\t\t}\r\n\t\t\t\t//Byzantine behavior\r\n\t\t\t\telse\r\n\t\t\t\t{\r\n\t\t\t\t\t// receiving servers value but ignoring it\r\n\t\t\t\t\tSystem.out.println(\"Byzantine Behavior\");\r\n\t\t\t\t\t//send receive signal to the server \r\n\t\t\t\t\tout.println(\"RECEIVE\");\r\n\t\t\t\t\t// reading offset value but ignoring servers response\r\n\t\t\t\t \tInteger.parseInt(in.readLine()) ; //response from server\r\n\t\t\t\t}\r\n\t\t\t\tSystem.out.println(\"Client Current Clock value:\"+clientClockValue);\r\n\t\t\t\t/*//write clock value to txt \r\n\t\t\t\tString content =\"\"+ loop +\",\"+clientClockValue;\r\n\t\t\t\tbufferedWriter.write(content);\r\n\t\t\t\tbufferedWriter.newLine();*/\r\n\t\t\t\t//increment logical clock on any event to have unique number for each event\t\r\n\t\t\t\tclientClockValue = clientClockValue +1; \r\n\t\t\t\t//just to slow process execution for tracing output \r\n\t\t\t\t//Thread.sleep(5*1000); \r\n\t\t\t}\r\n\t\t} \r\n\t\t\r\n\t\tcatch (UnknownHostException e) \r\n\t\t{\r\n\t\t\te.printStackTrace();\r\n\t\t} \r\n\t\tcatch (IOException e) \r\n\t\t{\r\n\t\t\t//Failure model :- Catching Server Crash \r\n\t\t\tSystem.out.println(\"Server has Crashed Unexpectedly...\");\r\n\t\t}\r\n\t\tcatch(Exception e)\r\n\t\t{\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\tfinally\r\n\t\t{\r\n\t\t\ttry\r\n\t\t\t{\r\n\t\t\t\t//closing I/O stream \r\n\t\t\t\tif(in!=null)\r\n\t\t\t\t\tin.close();\r\n\t\t\t\tif(out!=null)\r\n\t\t\t\t\tout.close();\r\n\t\t\t\t//close client socket\r\n\t\t\t\tif(clientSocket!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tclientSocket.close();\r\n\t\t\t\t}\r\n\t\t\t\t/*if(bufferedWriter!=null)\r\n\t\t\t\t\tbufferedWriter.close();\r\n\t\t\t\tif(fileWriter!=null)\r\n\t\t\t\t\tfileWriter.close();*/\r\n\t\t\t}\r\n\t\t\tcatch(Exception e)\r\n\t\t\t{\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "b336efb32cf96710f685e33d9085c50a", "score": "0.5658702", "text": "public void waitForClients() {\n System.out.println(\" Asteptam un client ...\");\n try {\n serverSocket.setSoTimeout((int) TimeUnit.SECONDS.toMillis(1000));\n while (running == true) {\n Socket socket = serverSocket.accept();\n // Executam solicitarea clientului intr -un fir de executie\n new ClientThread(socket,this).start();\n\n //System.out.println(\" S-a conectat un client ...\");\n }\n } catch (IOException e) {\n System.err.println(\"Eroare \" + e);\n }\n finally {\n System.out.println(\"Serverul s-a inchis\");\n }\n }", "title": "" }, { "docid": "36d67684a1b9ffda7f5bd0f19cb05bc6", "score": "0.565418", "text": "@Override\r\n\tpublic void run() {\n\t\ttry {\r\n\t\t\twhile(true){\r\n\t\t\t\ts = ss.accept();\r\n\t\t\t\tois = new ObjectInputStream(s.getInputStream());\r\n\t\t\t\tpro1 = (Protocol) ois.readObject();\r\n\t\t\t\tpro2 = new Protocol();\r\n\t\t\t\t\r\n\t\t\t\tswitch (pro1.getCmd()) {\r\n\t\t\t\tcase 10:\r\n\t\t\t\t\tidList = cd.selectID();\r\n\t\t\t\t\tString newId = pro1.getMsg().trim();\r\n\t\t\t\t\tif (idList.contains(newId)){\r\n\t\t\t\t\t\tchk=1;\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tchk=0;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tpro2.setCmd(chk);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 20:\r\n\t\t\t\t\tcv1 = pro1.getCv();\r\n\t\t\t\t\tSystem.out.println(cv1.getId());\r\n\t\t\t\t\tres = cd.join(cv1.getId(),\r\n\t\t\t\t\t\t\tcv1.getPw(),\r\n\t\t\t\t\t\t\tcv1.getName(),\r\n\t\t\t\t\t\t\tcv1.getSubject(),\r\n\t\t\t\t\t\t\tcv1.getContent(),\r\n\t\t\t\t\t\t\tcv1.getAttach(),\r\n\t\t\t\t\t\t\tcv1.getRegdate());\r\n\t\t\t\t\tbyte[] pht = cv1.getPhoto();\r\n\t\t\t\t\tFile file = new File(\"c:/util/sitemember/\"+cv1.getId());\r\n\t\t\t\t\tfile.mkdirs();\r\n\t\t\t\t\tString path = \"c:/util/sitemember/\"+cv1.getId()+\"/\"+cv1.getId()+\"_자기소개_\"+cv1.getSubject()+\".txt\";\r\n\t\t\t\t\tString content = cv1.getContent().replace(\"\\n\", \"\\r\\n\");\r\n\t\t\t\t\ttextIO.textsave(path, content);\r\n\t\t\t\t\tString path2 = \"c:/util/sitemember/\"+cv1.getId()+\"/\"+cv1.getId()+\"_\"+cv1.getAttach();\r\n\t\t\t\t\tpi.photoSave(path2, pht);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 100:\r\n\t\t\t\t\tcv1 = pro1.getCv();\r\n\t\t\t\t\tString id = cv1.getId();\r\n\t\t\t\t\tString pw = cv1.getPw();\r\n\t\t\t\t\tint idx = cd.login(id, pw);\r\n\t\t\t\t\tSystem.out.println(idx);\r\n\t\t\t\t\tcv2 = cd.info(idx);\r\n\t\t\t\t\tString path3 = \"c:/util/sitemember/\"+cv2.getId()+\"/\"+cv2.getId()+\"_\"+cv2.getAttach();\r\n\t\t\t\t\tint size = pi.fileSize(path3.trim());\r\n\t\t\t\t\tbyte[] photo = pi.photoUpload(path3.trim(), size);\r\n\t\t\t\t\tcv2.setPhoto(photo);\r\n\t\t\t\t\tSystem.out.println(size);\r\n\t\t\t\t\tpro2 = new Protocol(idx, cv2);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tSystem.out.println(pro2.getCmd());\r\n\t\t\t\t\r\n\t\t\t\toos = new ObjectOutputStream(s.getOutputStream());\r\n\t\t\t\toos.writeObject(pro2);\r\n\t\t\t\toos.flush();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t} catch (Exception e) {\r\n\t\t\t// TODO: handle exception\r\n\t\t\tSystem.out.println(\"4 : \"+e);\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "2b980e13efb488cbf942ddd43f6ada05", "score": "0.5650608", "text": "private void startClient()\n {\n\n try\n {\n\n socket = new Socket(serverIP, 8000);\n\n objectOutputStream = new ObjectOutputStream(socket.getOutputStream());\n objectInputStream = new ObjectInputStream(socket.getInputStream());\n\n\n while(true)\n {\n\n receiveCommunication();\n\n }\n\n } catch(Exception ex)\n {\n\n srText.append(ex.toString());\n /*srText.append(\"\\nProgram will exit in 5 seconds.\");\n System.err.println(ex);\n try { TimeUnit.SECONDS.sleep(5); } catch (InterruptedException ie) {};\n this.dispose();*/\n\n }\n }", "title": "" }, { "docid": "c4ffe8f9e6a21c506cf8030e211ff503", "score": "0.5647865", "text": "public void connectToServer()/*JFrame f) */ throws IOException {\n\n // Get the server address from a dialog box.\n\n //boolean slalomAppServerIsLocal = false;\n // boolean connected = false;\n String serverAddress = \"127.0.0.1\";\n Socket socket = null;\n\n while (socket == null) {\n serverAddress = \"127.0.0.1\";\n log.trace(\"Trying Socket@\"+serverAddress);\n socket = tryConnectTo(serverAddress);\n\n if ( socket == null ) {\n serverAddress = \"Slalom.local\";\n socket = tryConnectTo(serverAddress);\n }\n\n if ( socket == null ) {\n serverAddress = JOptionPane.showInputDialog(\n frame,\n \"Enter IP Address of the Server or blank for local: \",\n \"Slalom Section Judge Station\",\n JOptionPane.QUESTION_MESSAGE);\n\n // Make connection and initialize streams\n if (serverAddress.trim().length() > 0) {\n socket = tryConnectTo(serverAddress);\n }\n }\n\n /// fixme - handle if no server is running ...\n if (socket == null){//!connected) {\n log.trace(\"Waiting \" + RETRY_SOCKET_CONNECTION_DELAY_MS / 1000 + \" seconds for retry on Socket\");\n try {\n Thread.sleep(RETRY_SOCKET_CONNECTION_DELAY_MS);\n } catch (InterruptedException e) {\n }\n }\n }\n log.info(\"SlalomApp Server Connected @\" + serverAddress);\n\n /// fixme loop on New Socket call until attached or an interrupt occurs\n ocw = new ObjectClientWriter(socket, this);\n ocr = new ObjectClientReader(socket, this);\n new Thread(ocw).start();\n new Thread(ocr).start();\n\n }", "title": "" }, { "docid": "fd47941069d27b04742286bd5d7ce399", "score": "0.56309986", "text": "private void sendHello() {\n try {\n logger.info(\"OUT: \" + protocol.startConnectionToServer(\"JavaFXClient \" + protocolVersion + \" (InfraroteHacks) (KI)\").toString());\n writer.write(protocol.startConnectionToServer(\"JavaFXClient \" + protocolVersion + \" (KI)\").toString() + newLine);\n writer.flush();\n try {\n Thread.sleep(1000);\n }catch (Exception e){\n logger.log(Level.SEVERE, e.getMessage());\n }\n } catch (Exception e) {\n logger.log(Level.SEVERE, e.getMessage());\n }\n }", "title": "" }, { "docid": "643779efcf7de70dc4bd451b3e960d20", "score": "0.5629266", "text": "public void listMaster(){\n \n Socket socket = null; \n System.out.println(\"list funkcija\");\n try {\n \n Socket s = new Socket(\"localhost\", 8000);\n InputStream is = s.getInputStream();\n OutputStream os = s.getOutputStream();\n String zahtjev = \"USER \"+SessionUtils.getUserName()+\"; PASSWD \"+SessionUtils.getPassword()+\"; IoT_Master LIST;\";\n // String zahtjev = \"IoT 123456 ; WORK;\";\n System.out.println(zahtjev);\n os.write(zahtjev.getBytes());\n os.flush();\n s.shutdownOutput();\n\n StringBuffer sb = new StringBuffer();\n while (true) {\n int znak = is.read();\n if (znak == -1) {\n break;\n }\n sb.append((char) znak);\n }\n s.close();\n System.out.println(\"Primljeni odgovor: \" + sb);\n odgovorMaster=sb.toString();\n } catch (IOException ex) {\n System.out.println(ex);\n } \n }", "title": "" }, { "docid": "157e14e3424e3a3ac3bd09e402dcfd3d", "score": "0.5624865", "text": "@Override\r\n\tpublic void run() {\n\t\ttry {\r\n\t\t\tBufferedReader in = new BufferedReader(\r\n\t\t\t\t\tnew InputStreamReader(socket.getInputStream()));\r\n\t\t\twhile(true){\r\n\t\t\t\t\r\n\t\t\t\tString op = in.readLine();\r\n\t\t\t\tPrintWriter out = new PrintWriter(socket.getOutputStream(), true);\r\n\t\t\t\tif(op.equals(\"port\")){\r\n\t\t\t\t\tServer1.iterClient();\r\n\t\t\t\t\tout.println(Server1.servPort());\r\n\t\t\t\t}\r\n\t\t\t\tif(op.equals(\"title\")){\r\n\t\t\t\t\tout.println(Server1.title);\r\n\t\t\t\t}\r\n\t\t\t\tif(op.equals(\"stat\")){\r\n\t\t\t\t\tout.println(Server1.getStat());\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t\r\n\t\t} catch (Exception e) {\r\n\t\t\t// TODO: handle exception\r\n\t\t\t//e.printStackTrace();\r\n\t\t}\r\n\r\n\t\tfinally {\r\n\t\t\ttry {\r\n\t\t\t\tsocket.close();\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t\ttry {\r\n\t\t\t\tServer1.startServer();\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t\tSystem.out.println(\"close Connection from \" + client);\r\n\t\t}\r\n\r\n\t}", "title": "" }, { "docid": "b6d2bb86d84e17714e2e6acf608785cd", "score": "0.5616689", "text": "public synchronized void run() {\n\t\tDataInputStream is = null;\n\t\tDataOutputStream os = null;\n\t\ttry {\n\t\t\tis = new DataInputStream(new BufferedInputStream(socket.getInputStream()));\n\t\t\tos = new DataOutputStream(new BufferedOutputStream(socket.getOutputStream()));\n\t\t} catch (IOException e1) {\n\t\t\te1.printStackTrace();\n\t\t}\n\t\ttry {\n\t\t\t/*\n\t\t\t * Send data directly to client\n\t\t\t */\n\t\t\tsendData(os, initialMessage.getBytes());\n\t\t\twhile (true) {\n\t\t\t\tbyte[] byteData = receiveData(is);\n\t\t\t\tclientMessage = new String(byteData).trim();\n\t\t\t\t // If client enters \"q\" then disconnect client\n\t\t\t\tif (clientMessage.equals(\"q\")) { \n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\t// If client enters \"q\" then continue the process for client\n\n\t\t\t\tif (clientMessage.equals(\"c\")) {\n\t\t\t\t\tresponse = initialMessage;\n\t\t\t\t} else {\n\t\t\t\t\tsynchronized (this) {\n\t\t\t\t\t\t //Get client message and process it.\n\t\t\t\t\t\tresponse = doProcess(clientMessage);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tresponse = notification + '\\n' + response;\n\t\t\t\t\n\t\t\t\t//Send response message to client.\n\t\t\t\tsendData(os, response.getBytes());\n\t\t\t\t//notification = \"\";\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\t/*\n\t\t\t * If any exception is encountered the client gets disconnected.\n\t\t\t */\n\t\t\tSystem.out.println(\"Client Disconnected !!!\");\n\t\t}\n\n\t}", "title": "" }, { "docid": "8d9d25164bc1ba80d62da722779b453e", "score": "0.5612092", "text": "public void serveClients() {\n Socket clientSocket;\n Thread handlerThread;\n int clientCount = 0;\n\n System.out.printf(\"<Now serving clients on port %d...>%n\", this.serverSocket.getLocalPort());\n\n while (true) {\n try {\n clientSocket = this.serverSocket.accept();\n } catch (IOException e) {\n e.printStackTrace();\n\n return;\n } //end try catch\n\n handlerThread = new Thread(new CensoringRequestHandler(clientSocket, this.badWords));\n\n handlerThread.start();\n\n System.out.printf(\"<Client %d connected...>%n\", clientCount);\n\n clientCount++;\n } //end while\n }", "title": "" }, { "docid": "fd583d785086ed7ff1a9773deca96ebf", "score": "0.56099", "text": "public void loadMaster(){\n \n Socket socket = null; \n System.out.println(\"list funkcija\");\n try {\n \n Socket s = new Socket(\"localhost\", 8000);\n InputStream is = s.getInputStream();\n OutputStream os = s.getOutputStream();\n String zahtjev = \"USER \"+SessionUtils.getUserName()+\"; PASSWD \"+SessionUtils.getPassword()+\"; IoT_Master LOAD;\";\n // String zahtjev = \"IoT 123456 ; WORK;\";\n System.out.println(zahtjev);\n os.write(zahtjev.getBytes());\n os.flush();\n s.shutdownOutput();\n\n StringBuffer sb = new StringBuffer();\n while (true) {\n int znak = is.read();\n if (znak == -1) {\n break;\n }\n sb.append((char) znak);\n }\n s.close();\n System.out.println(\"Primljeni odgovor: \" + sb);\n odgovorMaster=sb.toString();\n } catch (IOException ex) {\n System.out.println(ex);\n } \n }", "title": "" }, { "docid": "b247cb525d55864bc764737861157140", "score": "0.5607892", "text": "public void run(){\n\t\tString a=null;\r\n boolean usado=false;\r\n\t\tboolean error=false;\r\n DataOutputStream salida;\r\n \r\n while(true){\r\n\t try{\r\n\t a=entrada.readLine();\r\n String[] pedazos=a.split(\":\");\r\n if(\"Conectado\".equals(pedazos[0])){\r\n Servidor.conectados[Servidor.cont]=pedazos[1];\r\n Servidor.salas[Servidor.cont]=pedazos[2];\r\n System.out.println(\"Solicitud\");\r\n //System.out.println(\"Usuario: \"+Servidor.conectados[Servidor.cont]);\r\n //System.out.println(\"Sala: \"+Servidor.salas[Servidor.cont]);\r\n }\r\n formulario.jTextArea.append(a+\"\\n\");\r\n for (int i = 0; i < Servidor.cont; i++) {\r\n if((Servidor.conectados[i]!=null)&&(Servidor.salas!=null)){\r\n System.out.println(\"Usuario: \"+Servidor.conectados[i]);\r\n System.out.println(\"Sala: \"+Servidor.salas[i]);\r\n System.out.println(\"Pedazos[2]: \"+Servidor.salas[i]);\r\n System.out.println(\"-------------------------------------\");\r\n if ((Servidor.salas[i]==pedazos[2])) {\r\n System.out.println(\"salas: \"+Servidor.salas[i]+\" pedazos: \"+pedazos[2]);\r\n try {\r\n salida = new DataOutputStream(Servidor.clientes[i].getOutputStream());\r\n \r\n salida.writeUTF(pedazos[0]+\":\"+pedazos[1]+\"\\n\");\r\n \r\n } catch (Exception ex) {\r\n System.out.println(\"Error: \" + ex.getMessage());\r\n }\r\n }\r\n }\r\n }\r\n\t }\r\n\t catch(IOException e)\r\n\t {\r\n\t\t System.out.println(e.getMessage());\r\n\t\t error=true;\r\n\t }\r\n\t if(\"salir\".equals(a)||!cliente.isConnected()||error)\r\n\t {\r\n\t\t try{\r\n\t\t cliente.close();\r\n\t }\r\n\t catch(IOException e)\r\n\t {\t\t \r\n\t }\t\t \r\n\t break;\r\n\t }\t \r\n\t\t //formulario.jTextArea.append(\"Cliente: \"+cliente.getRemoteSocketAddress()+\"Mensaje:\"+a+\"\\n\");\r\n \r\n \r\n }\r\n\t//formulario.jTextArea.append(\"Cliente: \"+cliente.getRemoteSocketAddress()+\" Desconectado\");\r\n String[] pedazos=a.split(\":\");\r\n \r\n formulario.jTextArea.append(\"Desconectado: \"+pedazos[0]+\"\\n\");\r\n for (int i = 0; i < Servidor.cont; i++) {\r\n if (Servidor.clientes[i].isConnected()) {\r\n try {\r\n salida = new DataOutputStream(Servidor.clientes[i].getOutputStream());\r\n salida.writeUTF(\"Desconectado: \"+pedazos[0]+\"\\n\");\r\n } catch (Exception ex) {\r\n System.out.println(\"Error: \" + ex.getMessage());\r\n }\r\n }\r\n }\r\n\ttry{\r\n\tcliente.close();\r\n\t}\r\n\tcatch(Exception e){\t\t\r\n\t\r\n }\t\r\n }", "title": "" }, { "docid": "5d9c49ab0f470cd4b321dff188bdcd4a", "score": "0.5594102", "text": "public void recibirMensajesServidor(){\r\n // Obtiene el flujo de entrada del socket\r\n DataInputStream entradaDatos = null;\r\n String mensaje;\r\n try {\r\n entradaDatos = new DataInputStream(socket.getInputStream());\r\n } catch (IOException ex) {\r\n log.error(\"Error al crear el stream de entrada: \" + ex.getMessage());\r\n } catch (NullPointerException ex) {\r\n log.error(\"El socket no se creo correctamente. \");\r\n }\r\n\r\n // Bucle infinito que recibe mensajes del servidor\r\n boolean conectado = true;\r\n while (conectado) {\r\n try {\r\n mensaje = entradaDatos.readUTF();\r\n String[] splitStr = mensaje.trim().split(\"\\\\s+\");\r\n\r\n switch (splitStr[0]){\r\n case \"Master\":\r\n cs.crear_AES();\r\n break;\r\n\r\n case \"Nomaster\":\r\n cs.enviar_puk(splitStr);\r\n break;\r\n\r\n case\"PUK\":\r\n cs.gestionar_puk(splitStr);\r\n break;\r\n\r\n case \"CSCIFRADA\":\r\n cs.descifrar_AES(splitStr);\r\n break;\r\n\r\n case \"CAMBIO\":\r\n log.info(\"VAMOS A CAMBIAR DE MASTER \" + mensaje);\r\n cs.cambio_master(splitStr);\r\n break;\r\n\r\n case \"LISTA\":\r\n usuariosChat.setText(\" USUARIOS CONECTADOS:\" + System.lineSeparator() + System.lineSeparator());\r\n for(int i = 0; i<splitStr.length-1; i++){\r\n usuariosChat.append(\" \" + splitStr[i+1] + System.lineSeparator());\r\n }\r\n break;\r\n case \"El\":\r\n mensajesChat.append(mensaje+System.lineSeparator());\r\n break;\r\n default:\r\n log.info(\"DEFAULT \" + mensaje);\r\n mensaje = cs.descifrarmensaje(mensaje);\r\n\r\n\r\n\r\n mensaje = mensaje.replace(\":happy:\", \":)\");\r\n mensaje = mensaje.replace(\":sad:\", \":(\");\r\n mensaje = mensaje.replace(\":angry:\", \"ì_í\");\r\n mensaje = mensaje.replace(\":surprised:\", \"owo\");\r\n mensaje = mensaje.replace(\":wink:\", \"ewe\");\r\n mensaje = mensaje.replace(\":sick:\", \"uwu\");\r\n mensaje = mensaje.replace(\":confused:\", \".-.\");\r\n mensaje = mensaje.replace(\":cry:\", \":_(\");\r\n mensaje = mensaje.replace(\":challenge:\", \":P\");\r\n mensaje = mensaje.replace(\":laughing:\", \"xD\");\r\n mensaje = mensaje.replace(\":sunglasses:\", \"8^)\");\r\n mensaje = mensaje.replace(\":cat:\", \"^o.o^\");\r\n mensaje = mensaje.replace(\":kiss:\", \"<3\");\r\n mensaje = mensaje.replace(\":thinking:\", \":v\");\r\n mensaje = mensaje.replace(\":friendly:\", \":D\");\r\n mensaje = mensaje.replace(\":poker:\", \":|\");\r\n mensaje = mensaje.replace(\":annoyed:\", \">.<\");\r\n mensaje = mensaje.replace(\":hug:\", \"(>o.o)>\");\r\n mensaje = mensaje.replace(\":mood:\", \"( ͡° ͜ʖ ͡°)\");\r\n mensaje = mensaje.replace(\":nice:\", \":3\");\r\n mensaje = mensaje.replace(\":joyful:\", \"/(^~^)/\");\r\n mensaje = mensaje.replace(\":regulinchis:\", \":/\");\r\n mensaje = mensaje.replace(\":toto:\", \"I BLESS THE RAINS DOWN IN AFRICA \\n ░░░░░░▄▄▓██▓░░░░░░░░░░░░░░░░ \\n ░░░░▄████████▓░▄▓▄▄▄░░░░░░░░ \\n░░░▄████████████████░░░░░░░░ \\n░░▓██████████████████░░░░░░░ \\n░░███████████████████▓░░░░░░ \\n░░████████████████████▓░░░░░ \\n░░▄█████████████████████▄▄░░ \\n░░░▒▓███▓▓████████████████░░ \\n░░░░░░░░░░░▄████████████▓░░░ \\n░░░░░░░░░░░▄███████████░░░░░ \\n░░░░░░░░░░░░▄█████████░░░░░░ \\n░░░░░░░░░░░░░█████████▓░░░░░ \\n░░░░░░░░░░░░▄█████████▓░░▄░░ \\n░░░░░░░░░░░░▄████████░░░██░░ \\n░░░░░░░░░░░░░███████▓░░░█░░░ \\n ░░░░░░░░░░░░░░▄███▓ \");\r\n\r\n\r\n\r\n\r\n\r\n String[] splitStr2 = mensaje.trim().split(\"\\\\s+\");\r\n if(splitStr2.length>1) mensajesChat.append(mensaje + System.lineSeparator());\r\n break;\r\n }\r\n\r\n\r\n\r\n\r\n } catch (IOException ex) {\r\n log.error(\"Error al leer del stream de entrada: \" + ex.getMessage());\r\n conectado = false;\r\n } catch (NullPointerException ex) {\r\n log.error(\"El socket no se creo correctamente. \");\r\n conectado = false;\r\n }\r\n }\r\n }", "title": "" }, { "docid": "27e8e952d4762bae5b53a88d31387ee4", "score": "0.5590844", "text": "public static void main(String args[]) throws IOException{\n String portNo = args[0];\r\n int portNum = Integer.parseInt(portNo);\r\n\t\tServerSocket theserverSocket = new ServerSocket(portNum);\r\n\t\ttry {\r\n\t\t\t//Listen on port, recieve connection, write message into output stream\r\n\t\t\tSystem.out.println(\"Listening on port \" + portNo + \"...\");\r\n\t\t\tSocket actualSocket = theserverSocket.accept();\r\n\t\t\tSystem.out.println(\"Connection established\");\r\n\t\t\tOutputStream theOutput = actualSocket.getOutputStream();\r\n\t\t\tString theMsg = randomMessage();\r\n\t\t\tbyte [] msgInByte = theMsg.getBytes();\r\n\t\t\ttheOutput.write(msgInByte);\r\n\t\t\tSystem.out.println(\"Fortune sent: \" + theMsg);\r\n\t\t\tactualSocket.close();\r\n\t\t\ttheserverSocket.close();\t\r\n\t\t\tSystem.out.println(\"Exiting\");\r\n\t\t} \r\n\t\tcatch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\t\t\r\n\t}", "title": "" }, { "docid": "f13fba33f22d1af380c9c500499084c2", "score": "0.5585667", "text": "private void serveClient(Socket socket) throws IOException, NoSuchAlgorithmException{\n OutputStream rout = socket.getOutputStream();\n InputStream rin = socket.getInputStream(); \n Kryo kryo = new Kryo(null);\n kryo.setAutoReset(true);\n try (Output kryo_out = new Output(rout); Input kryo_in = new Input(rin)) {\n Vnejsi:\n while(true){\n try { \n Requests action_type = kryo.readObject(kryo_in, Requests.class);\n List<String> fname;\n long size;\n switch(action_type){\n case ITEM_EXISTS:\n fname = Arrays.asList(kryo.readObject(kryo_in, String[].class));\n kryo_out.writeBoolean(db.itemExists(fname));\n kryo_out.flush();\n break;\n case DEL_VERS: \n fname = Arrays.asList(kryo.readObject(kryo_in, String[].class));\n int versionIndex = kryo_in.readInt();\n synchronized (lockObject){\n DItem item = db.getItem(fname);\n if ((item == null) || item.isDir()){\n kryo_out.writeBoolean(false);\n } else {\n try {\n DFile file = (DFile) item;\n safelyDeleteVersion(file, versionIndex);\n kryo_out.writeBoolean(true);\n } catch (BlockNotFound | NotEnoughSpaceOnDisc | \n TooFewVersions | VersionNotFoundException ex){\n kryo_out.writeBoolean(false);\n }\n }\n kryo_out.flush();\n saveState();\n }\n break;\n case CREAT_FILE:\n size = kryo_in.readLong();\n boolean checkSize = kryo_in.readBoolean();\n fname = Arrays.asList(kryo.readObject(kryo_in, String[].class));\n if (checkSize){\n if (size < getAvailableSpace()){\n db.addFile(fname);\n kryo_out.writeBoolean(true);\n } else { \n removeOldItems(null); \n if (size < getAvailableSpace()){\n db.addFile(fname);\n kryo_out.writeBoolean(true);\n } else {\n kryo_out.writeBoolean(false);\n } \n }\n kryo_out.flush();\n } else {\n db.addFile(fname);\n } \n break;\n case CHECK_CHANGES:\n fname = Arrays.asList(kryo.readObject(kryo_in, String[].class));\n String contentHash = kryo_in.readString();\n DFile file = db.findFile(fname);\n if (file != null){\n DVersion latestVersion = file.getLatestVersion();\n if (latestVersion == null){\n kryo_out.writeBoolean(true);\n } else {\n kryo_out.writeBoolean(!latestVersion.getContentHash().equals(contentHash));\n } \n kryo_out.flush();\n }\n break;\n case CREAT_VERS: \n checkSize = kryo_in.readBoolean();\n size = kryo_in.readLong(); \n int bsize = getBlockSize(size);\n kryo_out.writeInt(bsize);\n kryo_out.flush();\n if (checkSize){\n synchronized (lockObject){\n if (size < getAvailableSpace()){\n kryo_out.writeBoolean(true);\n } else { \n removeOldItems(null); \n if (size >= getAvailableSpace()){\n kryo_out.writeBoolean(false);\n kryo_out.flush();\n break;\n } else {\n kryo_out.writeBoolean(true);\n }\n }\n }\n kryo_out.flush();\n } \n fname = Arrays.asList(kryo.readObject(kryo_in, String[].class));\n contentHash = kryo_in.readString();\n List<DBlock> new_blocks;\n List<DBlock> block_list = new ArrayList<>(); \n Collection<Boolean> newBlocksIndicator = new HashSet<>();\n synchronized (lockObject){\n do{\n new_blocks = loadBlock(kryo_in, kryo_out, bsize, newBlocksIndicator);\n if (new_blocks==null) {\n break;\n }\n if (!new_blocks.isEmpty()) {\n for (DBlock block : new_blocks){\n block_list.add(block);\n }\n }\n } while (true); \n boolean newBlocksAdded = false;\n if (!newBlocksIndicator.isEmpty() && (newBlocksIndicator.iterator().next() == true)){\n newBlocksAdded = true;\n } \n file = db.findFile(fname);\n DVersion version = new DVersion(block_list, bsize, file.getName(), contentHash, size); \n ServerUtils.linkBlocksToVersion(version);\n if (file.blockVersionExists() && newBlocksAdded){ \n DVersion base = file.getLatestNonScript();\n transformBlocksToScript(base, version, true);\n }\n file.addVersion(version);\n kryo_out.writeBoolean(true);\n kryo_out.flush(); \n }\n break;\n case GET_FILE:\n fname = Arrays.asList(kryo.readObject(kryo_in, String[].class));\n versionIndex = kryo_in.readInt();\n synchronized (lockObject){\n DFile ds = db.findFile(fname);\n if (ds == null){\n kryo_out.writeBoolean(false);\n } else {\n if (versionIndex >= ds.getVersionCount()){\n kryo_out.writeBoolean(false);\n } else {\n kryo_out.writeBoolean(true);\n byte[] res = serveGet(ds, versionIndex);\n kryo.writeObject(kryo_out, res); \n } \n } \n kryo_out.flush();\n }\n break;\n case END:\n break Vnejsi;\n case CREAT_DIR:\n size = kryo_in.readLong();\n checkSize = kryo_in.readBoolean();\n List<String> path = Arrays.asList(kryo.readObject(kryo_in, String[].class));\n if (checkSize){\n if (size < getAvailableSpace()){ \n db.makeDirs(path); \n kryo_out.writeBoolean(true);\n } else { \n removeOldItems(null); \n if (size < getAvailableSpace()){\n db.makeDirs(path); \n kryo_out.writeBoolean(true);\n } else {\n kryo_out.writeBoolean(false);\n } \n }\n kryo_out.flush();\n } else {\n db.makeDirs(path);\n } \n break;\n case GET_ZIP:\n fname = Arrays.asList(kryo.readObject(kryo_in, String[].class));\n versionIndex = kryo_in.readInt();\n synchronized (lockObject){\n DItem item = db.getItem(fname);\n if (item == null){\n kryo_out.writeBoolean(false); \n } else {\n HashMap<DItem,String> fileList = new HashMap<>();\n getAllFiles(item, fileList, \"\"); \n synchronized (zipBuffer) {\n if ((fileList.size() == 1) && (!fileList.keySet().iterator().next().isDir())){ \n if (versionIndex >= ((DFile)fileList.keySet().iterator().next()).getVersionCount()){\n kryo_out.writeBoolean(false);\n kryo_out.flush();\n break;\n } else {\n writeToZipBuffer(fileList, versionIndex);\n }\n } else {\n writeToZipBuffer(fileList, -1);\n } \n kryo_out.writeBoolean(true);\n kryo.writeObject(kryo_out, zipBuffer.toByteArray()); \n zipBuffer.reset();\n }\n }\n kryo_out.flush();\n }\n break;\n case GC:\n synchronized (lockObject){\n collect_blocks();\n }\n break;\n case GET_D_ITEM: \n synchronized (lockObject){\n fname = Arrays.asList(kryo.readObject(kryo_in, String[].class));\n DItem item = db.getItem(fname);\n if (item == null){\n kryo_out.writeByte((byte)0);\n } else {\n if (item.isDir()){\n kryo_out.writeByte((byte)1);\n DDirectory dir = (DDirectory)item;\n kryo.writeObject(kryo_out, dir, DDirectory.getSerializer());\n } else {\n kryo_out.writeByte((byte)2);\n file = (DFile)item;\n kryo.writeObject(kryo_out, file, DFile.getSerializer());\n }\n } \n kryo_out.flush(); \n }\n break;\n case GET_FS: \n synchronized (lockObject){\n Map<String,DItem> fileMap = db.getFileMap();\n if (fileMap == null){\n kryo_out.writeInt(0);\n } else {\n kryo_out.writeInt(fileMap.size());\n for (Entry<String,DItem> entry : fileMap.entrySet()){\n kryo_out.writeString(entry.getKey());\n boolean isDir = entry.getValue().isDir();\n kryo_out.writeBoolean(isDir);\n if (isDir){\n kryo.writeObject(kryo_out, entry.getValue(), DDirectory.getSerializer());\n } else {\n kryo.writeObject(kryo_out, entry.getValue(), DFile.getSerializer());\n }\n }\n }\n kryo_out.flush(); \n }\n break;\n case GET_SERVER_BLOCKS: \n synchronized (lockObject){\n Map<String,DBlock> blocks = db.getBlockMap();\n if (blocks == null){\n kryo_out.writeInt(0);\n } else {\n kryo_out.writeInt(blocks.size());\n for (Entry<String,DBlock> entry : blocks.entrySet()){\n kryo_out.writeString(entry.getKey());\n kryo.writeObject(kryo_out, entry.getValue(), DBlock.getSerializer());\n }\n }\n kryo_out.flush(); \n }\n break;\n }\n } catch (IOException | ClassNotFoundException | MalformedPath | NotEnoughSpaceOnDisc | BlockNotFound ex) {\n Logger.getLogger(Server.class.getName()).log(Level.SEVERE, null, ex);\n break Vnejsi;\n }\n }\n }\n }", "title": "" }, { "docid": "da0c8a5596b79e567e7702392f115837", "score": "0.55846256", "text": "@Override\n public void run() {\n try {\n // Attributes\n OutputStream out = clientSocket.getOutputStream();\n InputStream is = clientSocket.getInputStream();\n byte[] buffer = new byte[1024];\n int read;\n StringBuilder builder = new StringBuilder();\n\n // Reading the request\n while((read = is.read(buffer)) != -1) {\n String output = new String(buffer, 0, read);\n builder.append(output);\n if (is.available() <= 0) break;\n }\n\n // Printing and parsing the request\n System.out.println(\"NEW REQUEST :\");\n System.out.println(builder.toString());\n Request request = HTTPBuilder.parseStringRequest(builder.toString(), clientSocket.getLocalSocketAddress());\n if (request != null) {\n Response response;\n\n // Preparing the response\n if (request.isValid()) response = requestDispatcher.dispatchRequest(request);\n else {\n if (request.getUrl() != null && request.getUrl().getPath().equals(\"/echo\")) {\n response = HTTPBuilder.buildEchoResponse(request);\n response = HTTPBuilder.completeResponseHeader(request, response);\n } else response = HTTPBuilder.buildErrorResponse(request, EnumStatusCode.SERVER_ERROR);\n }\n\n // Printing and sending the response\n byte[] byteResponse = HTTPBuilder.buildBytesResponse(response);\n out.write(byteResponse);\n out.flush();\n }\n\n // Closing the client socket\n clientSocket.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "f53704bdc2e7ca13ccaaf19db8113e83", "score": "0.55733716", "text": "void replyClient(){\r\n try {\r\n toClient.writeObject(returnString);\r\n\r\n if(instruction.charAt(0) == '3'){\r\n toClient.writeObject(returnAreaData);\r\n }\r\n } catch (IOException e) {\r\n System.err.println(e);\r\n }\r\n\r\n instruction = \"\";\r\n returnString = \"\";\r\n returnAreaData = Collections.EMPTY_LIST;\r\n }", "title": "" } ]
39afb839fd6905d188c2b4daab5b3ee7
string field_1942 = 1942;
[ { "docid": "fd61030a2cdc2a5cfe01649107740333", "score": "0.0", "text": "public com.google.protobuf.ByteString\n getField1942Bytes() {\n java.lang.Object ref = field1942_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n field1942_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "title": "" } ]
[ { "docid": "5ca472adb1473fa5bcaed7b63903df67", "score": "0.76386875", "text": "java.lang.String getField1977();", "title": "" }, { "docid": "5492d63cbce79896e1f20a5c876ac944", "score": "0.7637134", "text": "java.lang.String getField1934();", "title": "" }, { "docid": "3703ca00c7c2fadb7a2bf4f6c2375fd6", "score": "0.7635068", "text": "java.lang.String getField1972();", "title": "" }, { "docid": "35cb701cc98ee9ac1ba8faefadda3ead", "score": "0.75981075", "text": "java.lang.String getField1958();", "title": "" }, { "docid": "aa978c32661aaae60ebfa500ac20ef1b", "score": "0.75836825", "text": "java.lang.String getField1976();", "title": "" }, { "docid": "3b21b5c18319d4dfbf5c472a0cbd2228", "score": "0.7575642", "text": "java.lang.String getField1987();", "title": "" }, { "docid": "132a7b10edb89a3d5520187dc6b61e2a", "score": "0.75696707", "text": "java.lang.String getField1983();", "title": "" }, { "docid": "9f1999878a36ff80bbd38caffa8806f6", "score": "0.75412893", "text": "java.lang.String getField1982();", "title": "" }, { "docid": "79dc26c8e4032e3212baa0fb7cb2f252", "score": "0.7530319", "text": "java.lang.String getField1989();", "title": "" }, { "docid": "7e058a2e12bc586eab15ba03d0dbd525", "score": "0.7518438", "text": "java.lang.String getField1984();", "title": "" }, { "docid": "e0669a83106ca4edf6ce01c8369dd513", "score": "0.7509544", "text": "java.lang.String getField1956();", "title": "" }, { "docid": "8e1d8fed8c87b6d3dde8f536c2a73fbe", "score": "0.75046045", "text": "java.lang.String getField1999();", "title": "" }, { "docid": "bab1f4e144a967daa5f61f19a734e005", "score": "0.74922174", "text": "java.lang.String getField1963();", "title": "" }, { "docid": "46c492b647350d76199bbbbffbf3ca16", "score": "0.7485244", "text": "java.lang.String getField1931();", "title": "" }, { "docid": "1820a4a873636270ca05855a731f4263", "score": "0.74607426", "text": "java.lang.String getField1974();", "title": "" }, { "docid": "8317997ad5ef71a53a03e046c950039f", "score": "0.74589723", "text": "java.lang.String getField1978();", "title": "" }, { "docid": "2f987f9646717228963b1fb946a71df9", "score": "0.74430555", "text": "java.lang.String getField1968();", "title": "" }, { "docid": "a864829daa36178cff62958d766b7d00", "score": "0.7438401", "text": "java.lang.String getField1981();", "title": "" }, { "docid": "b3019afd68595880f253143f26adb20e", "score": "0.7437454", "text": "java.lang.String getField1942();", "title": "" }, { "docid": "59945972889fbdc947daee2a4d6bd95a", "score": "0.74278075", "text": "java.lang.String getField1948();", "title": "" }, { "docid": "85e0a3679afb4a8c7221c308a64bb152", "score": "0.74174595", "text": "java.lang.String getField1962();", "title": "" }, { "docid": "8240d22843462ca6c22d5fe1c818ab41", "score": "0.741647", "text": "java.lang.String getField1952();", "title": "" }, { "docid": "6f2cda718c82bd3b0a547421417e74e7", "score": "0.74164456", "text": "java.lang.String getField1941();", "title": "" }, { "docid": "882693482eb57b004e9d73da35d38383", "score": "0.74134487", "text": "java.lang.String getField1985();", "title": "" }, { "docid": "277a11da44012ee1f59a0d5c399c17b4", "score": "0.74107856", "text": "java.lang.String getField1936();", "title": "" }, { "docid": "e690cb3fba7fa5056cb149a9b019b56c", "score": "0.74043584", "text": "java.lang.String getField1900();", "title": "" }, { "docid": "2d3cb3fb9c5771d5711ee5787672fd18", "score": "0.740419", "text": "java.lang.String getField1986();", "title": "" }, { "docid": "f9331c7db24b231917ab95bd55f12e08", "score": "0.7402772", "text": "java.lang.String getField1965();", "title": "" }, { "docid": "d8976b23ef5787c8de003e54e9bff227", "score": "0.7400337", "text": "java.lang.String getField1950();", "title": "" }, { "docid": "5e8e979da7922364b4398c63516d390e", "score": "0.73892117", "text": "java.lang.String getField1966();", "title": "" }, { "docid": "1982b0741f578065471935cfc14a32f4", "score": "0.7383654", "text": "java.lang.String getField1928();", "title": "" }, { "docid": "fb6463ca59eaf6def5eef6c089b90060", "score": "0.7380755", "text": "java.lang.String getField1979();", "title": "" }, { "docid": "a2ce1598c1af92ceeede5debf38887be", "score": "0.7377314", "text": "java.lang.String getField1945();", "title": "" }, { "docid": "d7d1a9a1e5dc1bf1dc61c9e83029cc64", "score": "0.73723674", "text": "java.lang.String getField1960();", "title": "" }, { "docid": "58c347ebdd1fa0e794a82b82be820b3f", "score": "0.7369993", "text": "java.lang.String getField1954();", "title": "" }, { "docid": "6fe87832b9c4d6bc2a756f847dbd8c1c", "score": "0.73586535", "text": "java.lang.String getField1940();", "title": "" }, { "docid": "3eea9f35ef8dbae262bc99aa8819843b", "score": "0.73574626", "text": "java.lang.String getField1938();", "title": "" }, { "docid": "76e0e28a220529ad77009b9f6cb53230", "score": "0.73539543", "text": "java.lang.String getField1930();", "title": "" }, { "docid": "f9df7a235dd51458d65bddc58425f9a9", "score": "0.735273", "text": "java.lang.String getField1971();", "title": "" }, { "docid": "6b40ca10b5d30d29315e4ad5f2414ff9", "score": "0.735175", "text": "java.lang.String getField1951();", "title": "" }, { "docid": "71661ef45afc3ebc50e27c81483b298c", "score": "0.73491347", "text": "java.lang.String getField1919();", "title": "" }, { "docid": "bd0bb3a19993f027bb9576c0744bab76", "score": "0.73488706", "text": "java.lang.String getField1957();", "title": "" }, { "docid": "234907f10ad6d113710ad7bb4ab59324", "score": "0.73488146", "text": "java.lang.String getField1922();", "title": "" }, { "docid": "3420aa89529c1a96733d1b4b4dd0837c", "score": "0.73478544", "text": "java.lang.String getField1918();", "title": "" }, { "docid": "c509994c49b7544344d0bb325ea04708", "score": "0.73417115", "text": "java.lang.String getField1975();", "title": "" }, { "docid": "48920388f7de0d681eaf7e2bc2bf0c6e", "score": "0.7333385", "text": "java.lang.String getField1998();", "title": "" }, { "docid": "1c622b0776bf663724d19ab6dfcd39e9", "score": "0.7329796", "text": "java.lang.String getField1961();", "title": "" }, { "docid": "3552c1bf71c707806b06ba28de1c6232", "score": "0.73257136", "text": "java.lang.String getField1939();", "title": "" }, { "docid": "8c996772a95804b409fe0beb242b9a85", "score": "0.73217034", "text": "java.lang.String getField1923();", "title": "" }, { "docid": "e768a7055fdc4a94ec83bfbbf32e17cb", "score": "0.73198634", "text": "java.lang.String getField1994();", "title": "" }, { "docid": "e8ae067ad6cd2c6d7776a95c3e4d89bb", "score": "0.7316488", "text": "java.lang.String getField1937();", "title": "" }, { "docid": "faca1b30068bd9bba6b466633b4369e8", "score": "0.7313004", "text": "java.lang.String getField1964();", "title": "" }, { "docid": "7402938c34e5f752980bdcc89e59c019", "score": "0.7303954", "text": "java.lang.String getField1910();", "title": "" }, { "docid": "6b4d216d686e244c5ea1ab299428f0e1", "score": "0.7302217", "text": "java.lang.String getField1935();", "title": "" }, { "docid": "fdd8d35e2fc5106027433c1a64aba111", "score": "0.73011774", "text": "java.lang.String getField1909();", "title": "" }, { "docid": "e6a1a5b11b9be28217e486cda83d5e00", "score": "0.72955364", "text": "java.lang.String getField1988();", "title": "" }, { "docid": "850dd9f2ff8d744aefe6bfb30d8ec3a3", "score": "0.7292496", "text": "java.lang.String getField1901();", "title": "" }, { "docid": "1c85b8263293f15355367f50ae548074", "score": "0.72900903", "text": "java.lang.String getField1955();", "title": "" }, { "docid": "315b0027d082a55174212ee9b6ab548b", "score": "0.7287718", "text": "java.lang.String getField1932();", "title": "" }, { "docid": "4c3406f19664bf1be11b3f8e7e8e9fa6", "score": "0.7282171", "text": "java.lang.String getField1908();", "title": "" }, { "docid": "aa5ffedbcb18a74fd4723ef55497c8d5", "score": "0.7279475", "text": "java.lang.String getField1949();", "title": "" }, { "docid": "4899917052c564fa236b5b3f9b89811e", "score": "0.72721756", "text": "java.lang.String getField1946();", "title": "" }, { "docid": "98df239c6861a0683b101016cc9baafc", "score": "0.72664195", "text": "java.lang.String getField1973();", "title": "" }, { "docid": "05faf9a755d56990e2dfa1ecc4676389", "score": "0.72647995", "text": "java.lang.String getField1903();", "title": "" }, { "docid": "597246ea26e6023594ddba0fd2a27c63", "score": "0.7254651", "text": "java.lang.String getField1865();", "title": "" }, { "docid": "be799d5eab5fc8e8318659ff4c3bffbf", "score": "0.7253191", "text": "java.lang.String getField1819();", "title": "" }, { "docid": "550f3f2ac1daaf405e0ddea6dade9562", "score": "0.7251838", "text": "java.lang.String getField1996();", "title": "" }, { "docid": "e51e765af58d74b9bdd235b721fb8310", "score": "0.7249975", "text": "java.lang.String getField1924();", "title": "" }, { "docid": "2b29f696364a3448ab1b32101c5e7189", "score": "0.7247803", "text": "java.lang.String getField1927();", "title": "" }, { "docid": "577422808cbac684f68dd7085cb08f04", "score": "0.7239873", "text": "java.lang.String getField1947();", "title": "" }, { "docid": "184f91dab4496ad09a5b12e76a5cbe51", "score": "0.72369117", "text": "java.lang.String getField1912();", "title": "" }, { "docid": "7ac657a0486b8357e8c29468ef5d33f1", "score": "0.72340226", "text": "java.lang.String getField1969();", "title": "" }, { "docid": "e3352f163285e8e0575b59694c627564", "score": "0.72298145", "text": "java.lang.String getField1915();", "title": "" }, { "docid": "c10fcc61e73e9269bb9442ce26523935", "score": "0.72279286", "text": "java.lang.String getField1997();", "title": "" }, { "docid": "619e574bc867adba4609d5064233485c", "score": "0.7224273", "text": "java.lang.String getField1943();", "title": "" }, { "docid": "a70b51fad03e760639632d813a7311c8", "score": "0.7223036", "text": "java.lang.String getField1967();", "title": "" }, { "docid": "62f8d9aea8d6864d6aecd68c94a17588", "score": "0.72208154", "text": "java.lang.String getField1904();", "title": "" }, { "docid": "13a09285344826d9927c17d2d4579bb3", "score": "0.72199094", "text": "java.lang.String getField1933();", "title": "" }, { "docid": "7ad5fc1e3886271c0bc5614eaa924459", "score": "0.7211121", "text": "java.lang.String getField1902();", "title": "" }, { "docid": "57be9fd8f2cf873f2f9d9a3ef0584953", "score": "0.7201953", "text": "java.lang.String getField1959();", "title": "" }, { "docid": "527c9c9e9a25f4bf987526ad795b7ebc", "score": "0.71947026", "text": "java.lang.String getField1944();", "title": "" }, { "docid": "bccea17ed2a76477d6a6f8481e85f93a", "score": "0.7191112", "text": "java.lang.String getField1809();", "title": "" }, { "docid": "4c218e4e9596468192dc862f6174448f", "score": "0.7190089", "text": "java.lang.String getField1307();", "title": "" }, { "docid": "08d4c1299cb47a5d55f2749f0976735e", "score": "0.71890247", "text": "java.lang.String getField1906();", "title": "" }, { "docid": "a9df2e078716082755ccb1429b89e550", "score": "0.71801776", "text": "java.lang.String getField1842();", "title": "" }, { "docid": "1f8c49e691157b43e7e2ffeeda7c2111", "score": "0.7179166", "text": "java.lang.String getField1993();", "title": "" }, { "docid": "9d57b7a09d0dedea7cda8965de86ea90", "score": "0.71761787", "text": "java.lang.String getField1926();", "title": "" }, { "docid": "7e8c502704c2f2bbe87c8a03c962e4af", "score": "0.71727365", "text": "java.lang.String getField1907();", "title": "" }, { "docid": "db259be3b89b49827fe40ec819883ef5", "score": "0.717043", "text": "java.lang.String getField1925();", "title": "" }, { "docid": "795f92eccb89fbda144a1f4efe986aef", "score": "0.7168151", "text": "java.lang.String getField1995();", "title": "" }, { "docid": "3af860141674b7f0297a2a9bf21aa6c1", "score": "0.7166863", "text": "java.lang.String getField1921();", "title": "" }, { "docid": "d504c2a487eec79b9f0bca0531b44e52", "score": "0.7164236", "text": "java.lang.String getField1980();", "title": "" }, { "docid": "bd36b5e8e02af614fbd3e697ec791289", "score": "0.71582955", "text": "java.lang.String getField1953();", "title": "" }, { "docid": "8fd18da71b760bd3887729822bc1f6cf", "score": "0.71541506", "text": "java.lang.String getField1992();", "title": "" }, { "docid": "bd6ac6b1d062af90d9e2d4f896213655", "score": "0.71501535", "text": "java.lang.String getField1916();", "title": "" }, { "docid": "72dfb0fa8aa786882e783e0279a9fd56", "score": "0.71495295", "text": "java.lang.String getField1862();", "title": "" }, { "docid": "cca5ccf708857449cf5527222eda6ad8", "score": "0.71459347", "text": "java.lang.String getField1990();", "title": "" }, { "docid": "f6116a563cc5249dc4bb670aa17db8a3", "score": "0.7142015", "text": "java.lang.String getField1991();", "title": "" }, { "docid": "69ac3ef5aea125ba4b2f750427704567", "score": "0.71405", "text": "java.lang.String getField1889();", "title": "" }, { "docid": "796bfa83784427b2aa481c3724cd8a4c", "score": "0.7137702", "text": "java.lang.String getField1834();", "title": "" }, { "docid": "734e65cbdbd5ae0d2a5d77d6396ced02", "score": "0.71276647", "text": "java.lang.String getField1896();", "title": "" } ]
20de7311fc2f02b55a3c37fe0407fdf1
COUNT HOW MANY GRAMS OF ALCOHOL INCREASE IN YOUR BLOOD
[ { "docid": "44b413274188c66e962ec954bfeaf57b", "score": "0.5860116", "text": "private double countAlco(String type, String size, Time now) {\r\n\r\n\t\tString tag = size.toUpperCase() + \"_\" + type.toUpperCase();\r\n\t\tdouble vol = sp.getInt(tag, 0) * 0.79; // density of alcohol 0.79;\r\n\t\tLog.i(AppBlackout.TAG, \"Alcohol density 1: \" + vol);\r\n\t\tif (type == EventType.BEER) {\r\n\t\t\tvol *= 0.05;\r\n\t\t} else if (type == EventType.VODKA) {\r\n\t\t\tvol *= 0.4;\r\n\t\t} else if (type == EventType.WINE) {\r\n\t\t\tvol *= 0.2;\r\n\t\t}\r\n\t\tLog.i(AppBlackout.TAG, tag);\r\n\r\n\t\tdouble timePassed = (long) ((now.toMillis(false) - lastEvent\r\n\t\t\t\t.toMillis(false)) / (1e3 * 60));\r\n\t\tLog.i(AppBlackout.TAG, \"Volume: \" + vol + \", time: \" + timePassed);\r\n\t\tLog.i(AppBlackout.TAG, \"Alcohol: \" + alcoholInBlood);\r\n\t\talcoholInBlood -= alcoPerMin * timePassed;\r\n\t\tLog.i(AppBlackout.TAG, \"Alcohol: \" + alcoholInBlood);\r\n\t\tif (alcoholInBlood < 0)\r\n\t\t\talcoholInBlood = 0;\r\n\t\talcoholInBlood += vol;\r\n\t\tdouble permiles;\r\n\t\tif (bloodWeight == 0) {\r\n\t\t\tpermiles = 0;\r\n\t\t\tLog.e(AppBlackout.TAG, \"Wrong weight, cannot be equal 0\");\r\n\t\t} else {\r\n\t\t\tpermiles = (alcoholInBlood / bloodWeight);\r\n\t\t\tLog.i(AppBlackout.TAG, \"Alcohol: \" + alcoholInBlood + \" blodd: \" + bloodWeight);\r\n\t\t}\r\n\t\treturn permiles; // weight of alco in grams\r\n\t\t\t\t\t\t\t// whilst weight of\r\n\t\t\t\t\t\t\t// blood in kilograms\r\n\t}", "title": "" } ]
[ { "docid": "cea55d929bb161c02c0a6e4ffb5bfa97", "score": "0.70559555", "text": "int getIncentiveHongbaoCount();", "title": "" }, { "docid": "52a5b3595fe0440fde866e558f353e1e", "score": "0.67247033", "text": "int getFlowerHongbaoCount();", "title": "" }, { "docid": "7f00bdfb681bb1c0e691bf950f358632", "score": "0.66798025", "text": "private void computeBonuses()\n\t{\n\t\t//Accuracy bonus = total number of hits/total number of shots fired*current level.\n\t\taccuracy = 100f*(float)hits/(float)shotsFired;\n\t\taccuracyBonus = (int) (phoenixWorld.level * accuracy);\n\t\tphoenix.addMoney(accuracyBonus);\n\t\tphoenix.addScore(accuracyBonus);\n\t\t\n\t\t//Each level is given a maximum time of N minutes, where N is the level number\n\t\t//Time bonus = maximum time - time it took to complete the level\n\t\ttimeBonus = 0;\n\t\tint maxTime = phoenixWorld.level * 60;\n\t\t\n\t\tif(timeElapsed < maxTime)\n\t\t\ttimeBonus = (int) (maxTime - timeElapsed);\n\t\t\n\t\tphoenix.addMoney(timeBonus);\n\t\tphoenix.addScore(timeBonus);\n\t}", "title": "" }, { "docid": "5418020be86ecfa05a65ee3c978992cb", "score": "0.65181726", "text": "private void calcolaBenessere(){\r\n\t\tthis.benessere=(countSad+100*countHappy)/(countSad+countHappy);\r\n\t}", "title": "" }, { "docid": "39df10c5e523ad8638888675cacda02c", "score": "0.61613643", "text": "private int countNewHires() {\n int newEmployees = starved > 0\n ? 0\n : (20 * computers + cash) / (100 * employees) + 1;;\n\n// if (starved > 0) {\n// newEmployees = 0;\n// } else {\n// newEmployees = (20 * computers + cash) / (100 * employees) + 1;\n// }\n return newEmployees;\n }", "title": "" }, { "docid": "3cf98f00290804216872c0d5ab3c4365", "score": "0.616118", "text": "int getItilHongbaoCount();", "title": "" }, { "docid": "adcacf31d2e37fedf9e590ef02a70ba4", "score": "0.61064696", "text": "int getIsJettonScoreCount();", "title": "" }, { "docid": "c88f7dc8d17226d32d67d0a6bb9dcca9", "score": "0.6101342", "text": "public static int calcPopulation(List<Award> awards){\n int countWithoutSoli = 0;\n for (Award a: awards) {\n if (a.getSoli() == 0) {\n countWithoutSoli++;\n }\n }\n return countWithoutSoli;\n\n }", "title": "" }, { "docid": "b7b2feea1a9ff6ff44773a0cdd3b1e85", "score": "0.6037128", "text": "int getHuodongCount();", "title": "" }, { "docid": "e37b8c063fe6d724323ecf1e6dc6a31f", "score": "0.60223997", "text": "private int calculateScoreB() {\n\t\treturn 0;\n\t}", "title": "" }, { "docid": "34bf701a4b762fd3db2349093e2e833c", "score": "0.5996574", "text": "public int countCannonballs (int n);", "title": "" }, { "docid": "1e965dabf473247a20d325aa998826f1", "score": "0.598673", "text": "int getXianshiCount();", "title": "" }, { "docid": "1e965dabf473247a20d325aa998826f1", "score": "0.598673", "text": "int getXianshiCount();", "title": "" }, { "docid": "b06b80398cb4ff7b9e7e2b098ec610d1", "score": "0.59431857", "text": "float getSteals_Per_Game();", "title": "" }, { "docid": "2ddaf19e4fa89a99e322839b0b18a9c7", "score": "0.59270924", "text": "int getBattlesLost();", "title": "" }, { "docid": "10aba0a18a0a90186195f05e441ce627", "score": "0.59247506", "text": "private int ghostEatenScore()\n {\n // Ghosts eaten under the same power pill effect\n int ghostsEaten = ghosts.size() - edibleGhostsTotal();\n int score = EAT_GHOST_SCORE;\n\n // increase the score\n for (int i = 0; i < ghostsEaten; i++)\n score *= 2;\n\n return score;\n }", "title": "" }, { "docid": "3516d1425cbd168e04f8ec7db4855d8b", "score": "0.5922427", "text": "float getRebounds_Per_Game();", "title": "" }, { "docid": "06acb5a49a9636f5d95356298ed4ec2b", "score": "0.5916517", "text": "public static int countCannonballs(int h){\n\tAssert.pre(h>=1, \"height must be greater than or equal to 1\");\n\t\n\tif ( h == 1){\n\t return 1;\n\t\t}\n\n\telse{\n\t return h*h + countCannonballs(h-1);\n\t}\n }", "title": "" }, { "docid": "0dddcb3d50192c23ba30147034c40d2a", "score": "0.5894377", "text": "private int getTotalGemCount(int[] gems){\n int retVal=0;\n for(int i=0;i<5;i++){\n retVal+=gems[i];\n }\n return retVal;\n }", "title": "" }, { "docid": "d182571975c791982ca28366aea6c5fd", "score": "0.58905536", "text": "int fitness() {\r\n int sum = 0;\r\n for (int i = 0; i < genotype.length; i++) {\r\n if (genotype[i])\r\n sum++;\r\n }\r\n return sum;\r\n }", "title": "" }, { "docid": "80c8f1c4660caa74ae003c15f91230aa", "score": "0.5870135", "text": "private int getTotalDrawn(String team, List<Match> matchesByTeam) {\r\n\t\tSet<Match> teams = matches.stream().filter(match -> {\r\n\t\t\tif(match.getHomeTeam().equals(team) || match.getAwayTeam().equals(team)){\r\n\t\t\t\treturn match.getHomeScore() == match.getAwayScore();\r\n\t\t\t}\t\r\n\t\t\treturn false;\r\n\t\t}).collect(toSet());\r\n\r\n\t\treturn teams.size();\r\n\t}", "title": "" }, { "docid": "0f3b7592fcc1934c5a04a78be98063ab", "score": "0.58517796", "text": "private int getEights(){\r\n int count = 0;\r\n for (Card aHand : hand) {\r\n if (aHand.getRank() == 8) {\r\n count++;\r\n }\r\n }\r\n return count;\r\n }", "title": "" }, { "docid": "8634ec1732f9039a253d930e12e3605a", "score": "0.58476454", "text": "public int calculateFinalScore() {\n\t\treturn frog.getPoints() + (frog.getLives() != null ? (frog.getLives()/hearts.size()) * 25 : 0);\n\t}", "title": "" }, { "docid": "88e6c88283751ee0fb2c541aca8e3ef9", "score": "0.5828818", "text": "int getDailysCostCount();", "title": "" }, { "docid": "ef0f447276e64d28f68afd4f6c1c4c86", "score": "0.5822072", "text": "int getLikeHongbaoCount();", "title": "" }, { "docid": "517bc86ff4e961455b8982b7b3c775b6", "score": "0.5811463", "text": "private double gain(GenotypePhenotypeTable gp){\r\n\r\n\t\tdouble gain = 0;\r\n\r\n\t\tfor(int i = 0 ; i < gp.size() ; i++){\r\n\t\t\tdouble cases = gp.getCase(i);\r\n\t\t\tdouble controls = gp.getControl(i);\r\n\t\t\tdouble total = cases+controls;\r\n\t\t\tgain += (total/gp.getTotal())*this.entropy(cases,controls);\r\n\t\t}\r\n\r\n\t\treturn gain;\r\n\t}", "title": "" }, { "docid": "d00fdd011212e4761159ed2b37352a58", "score": "0.5784226", "text": "public int numberOfVoucherForBreakdowns() {\r\n\tint numAv = 0;\r\n\tfor (Vehiculo vehiculo : vehiculos) {\r\n\t Set<Averia> averias = vehiculo.getAverias();\r\n\t for (Averia averia : averias) {\r\n\t\tif (averia.getFactura() != null\r\n\t\t\t&& averia.getFactura().isSettled()\r\n\t\t\t&& !averia.isUsadaBono3()) {\r\n\t\t numAv++;\r\n\t\t}\r\n\t }\r\n\t}\r\n\tif (numAv < 3) {\r\n\t return 0;\r\n\t}\r\n\treturn numAv / 3;\r\n }", "title": "" }, { "docid": "3baf6aa2e8c9f9daf8fc799dd6b73384", "score": "0.57841545", "text": "private int getTotalLost(String team, List<Match> matchesByTeam) {\r\n\t\tSet<Match> teams = Stream.concat(matches.stream().filter(match -> {\r\n\t\t\tif(match.getHomeTeam().equals(team)){\r\n\t\t\t\treturn match.getHomeScore() < match.getAwayScore();\r\n\t\t\t}\t\r\n\t\t\treturn false;\r\n\t\t}), \r\n\t\tmatches.stream().filter(match -> {\r\n\t\t\tif(match.getAwayTeam().equals(team)){\r\n\t\t\t\treturn match.getAwayScore() < match.getHomeScore();\r\n\t\t\t}\t\r\n\t\t\treturn false;\r\n\t\t})).collect(toSet());\r\n\r\n\treturn teams.size();\r\n\t}", "title": "" }, { "docid": "c667c612c1878cbc7e75a3518fce2e99", "score": "0.57807285", "text": "public static void alternativeWaytoCountOccuranceHardCode()\n\t{\n\t\tint countOf10=0,countOf9=0,countOf1=0,countOf11=0,temp=0;\n\t\tSystem.out.println(numList);\n\t\tfor(int i=0;i<numList.size();i++)\n\t\t{\n\t\t\ttemp=numList.get(i);\n\t\t\t\n\t\t\tif(numList.get(i)==10)\n\t\t\t{\n\t\t\t\tcountOf10++;\n\t\t\t}\n\t\t\tif(numList.get(i)==9)\n\t\t\t{\n\t\t\t\tcountOf9++;\n\t\t\t}\n\t\t\tif(numList.get(i)==1)\n\t\t\t{\n\t\t\t\tcountOf1++;\n\t\t\t}\n\t\t\tif(numList.get(i)==11)\n\t\t\t{\n\t\t\t\tcountOf11++;\n\t\t\t}\n\n\t\t\t}\n\t\tSystem.out.println(\"Count of 10 : \"+countOf10);\n\t\tSystem.out.println(\"Count of 9 : \"+countOf9);\n\t\tSystem.out.println(\"Count of 1 : \"+countOf1);\n\t\tSystem.out.println(\"Count of 11 : \"+countOf11);\n\t}", "title": "" }, { "docid": "8a537b81a22673b37abaaf4c41415f58", "score": "0.5761607", "text": "public int getIncentiveHongbaoCount() {\n return incentiveHongbaoCount_;\n }", "title": "" }, { "docid": "fb25945f0fbe382d20ac8a141dd1c54a", "score": "0.5759368", "text": "int getScoreCount();", "title": "" }, { "docid": "7c83b0e198f2ae04975c750d0482623e", "score": "0.5756797", "text": "int getOutstandingCount();", "title": "" }, { "docid": "5fced6de53e319c2a838c9fc3a9d0fa0", "score": "0.5738199", "text": "private int countWin(List<Voter> voters) {\n\n int num = 0;\n for (int i = 0; i < voters.size(); i++) {\n List<Double> preference = voters.get(i).getPreference();\n //probability of red less than blue\n\n if ((partyToWin == 0) ? preference.get(0) > preference.get(1) : preference.get(0) < preference.get(1)) {\n num += 1;\n }\n //if same probability increase red by flipping a coin\n else if (isEqual(preference.get(0), preference.get(1))) {\n double x = random.nextDouble();\n if (x <= 0.5) {\n num += 1;\n }\n }\n\n }\n return num;\n }", "title": "" }, { "docid": "4ba09daf7c90d46b336fd8798f994561", "score": "0.57380944", "text": "public int numberWeaponsInBackPack() \r\n\t{\r\n\t\tint count = 0;\r\n\t\tfor(int i = 0; i < backpack.length; i++)\r\n\t\t{\r\n\t\t\tif (backpack[i] > 0)\r\n\t\t\t{\r\n\t\t\t\tcount = count + 1;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn count;\r\n\t}", "title": "" }, { "docid": "62f2cd3ed11021a18d27840facb41d01", "score": "0.5729858", "text": "private int getTotalNumberOfCoins(List<Gene> genes) {\n int totalNumOfCoins = 0;\n\n for (Gene gene : genes) {\n int numOfCoins = ((Coin)gene.getVal()).getNumOfCoins();\n totalNumOfCoins = totalNumOfCoins + numOfCoins;\n }\n\n return totalNumOfCoins;\n }", "title": "" }, { "docid": "f40db1d0ff8b998d2bdfce50ea9429aa", "score": "0.57270074", "text": "int getNumberOfGates()\r\n\t{\n\t\t\r\n\t\t\r\n\t\treturn 0;\r\n\t}", "title": "" }, { "docid": "ca02c2df8f72a5658c3f396ef44644be", "score": "0.5726855", "text": "void onGoodieCollected(Goodie g) {\n // Update goodie counts\n for (int i = 0; i < 4; ++i)\n mGoodiesCollected[i] += g.mScore[i];\n\n // possibly win the level, but only if we win on goodie count and all\n // four counts are high enough\n if (mVictoryType != VictoryType.GOODIECOUNT)\n return;\n boolean match = true;\n for (int i = 0; i < 4; ++i)\n match &= mVictoryGoodieCount[i] <= mGoodiesCollected[i];\n if (match)\n endLevel(true);\n }", "title": "" }, { "docid": "87b985b8733e502a5cc8eb4d0f5ff1c2", "score": "0.57215047", "text": "int getBlockingsCount();", "title": "" }, { "docid": "87f13cb279ad02385a7d68e93cc70dbd", "score": "0.57118493", "text": "int getNegotiationsCount();", "title": "" }, { "docid": "94c4698faf0012c64a3ee59e28e8393e", "score": "0.57089007", "text": "public double countSaladCalories() {\r\n\r\n double calories = 0.0;\r\n\r\n for (Vegetable vegetable : vegetables) {\r\n calories += vegetable.countCalories();\r\n }\r\n\r\n return calories;\r\n }", "title": "" }, { "docid": "0d1fa8889489394dbbc2d656d4ae498e", "score": "0.5707721", "text": "public int getAvailableGenies() {\n return getMaxNumberOfGenies() - getRubs();\n }", "title": "" }, { "docid": "60c542ce4d1e629a69d1e70e818402e3", "score": "0.5706292", "text": "int getAdditionalImpactCount();", "title": "" }, { "docid": "42945e4617f9d6ca8bb84c37b108aa11", "score": "0.5696805", "text": "int totalWeight();", "title": "" }, { "docid": "139ae5555039c9d5886ebb682116a283", "score": "0.56957567", "text": "private int totalFitness()\n\t{\n\t\tint sum = 0;\n\t\t\n\t\tfor(int i =0; i < this.fitnessOfEachIndividual.size();i++)\n\t\t{\n\t\t\tsum += this.fitnessOfEachIndividual.get(i);\n\t\t}\n\t\t\n\t\treturn sum;\n\t}", "title": "" }, { "docid": "993c18e002375cf2a02a9aeb815d480c", "score": "0.5692668", "text": "public void growthandcount(newSCCell cHold){\n\t\tif (counting){\n\t\t\ttotalproliferations++;\n\t\t\tprolifcounts[cHold.type]++;\n\t\t}\n\t\tcycleStage = 0;\n\t\tlineage = cHold.lineage;//new clone ID\n\t\tage = 0;//not using age\n\t\tisavail = false;//new cell: not available: this is important\t\n\t\tcanGrow=false;// can't proliferate\n\t\tif (recycle && (rand.nextDouble() < recycleprob)){\n\t\t\ttype = 1;//go straight back to being a cycling cell\n\t\t}\n\t\telse{\n\t\t\ttype = 2;//not a cycling cell\n\t\t}\n\t\tcHold.canGrow=false;// Proliferating cell will not proliferate again in this iteration\n\t\tcHold.proliferated=true;// The proliferating cell has proliferated\n\t\tcHold.age = age;// not using age\n\t\tcHold.cycleStage = 0;//have a rest now that you have proliferated\n\t\tcHold.isavail = false;//The proliferating cell isn't available this iteration either???\n\t\tcHold.type = 2;\n\t\tif (type4 && rand.nextDouble()< rval) {\n\t\t\tcHold.type = 4;\n\t\t}\n\t\t/*\n\t\tif (type4){\n\t\t\tif (rand.nextDouble()< TAFraction) {\n\t\t\t\ttype = 2;\n\t\t\t\tcHold.type = 4;\n\t\t\t}\n\t\t\telse{\n\t\t\t\tif (rand.nextDouble()< 0.5){\n\t\t\t\t\ttype = 4;\n\t\t\t\t\tcHold.type = 4;\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\ttype = 2;\n\t\t\t\t\tcHold.type=2;//cycling becomes non-cycling\n\t\t\t\t}\n\t\t\t}\n\t\t}*/\n\n\t}", "title": "" }, { "docid": "14fcd8b1c4231c17bd726c86eb7d9e81", "score": "0.56916344", "text": "public int countPlus() {\n\t\tint cnt = 0;\n\t\tint maxCol = grid[0].length;\n\t\tint maxRow = grid.length;\n\t\tfor (int i = 0; i < maxRow; i++) {\n\t\t\tfor (int j = 0; j < maxCol; j++) {\n\t\t\t\t//System.out.println(grid[i][j]);\n\t\t\t\tif (this.isPlus(i, j, maxCol, maxRow)) {\n\t\t\t\t\tcnt++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn cnt; // YOUR CODE HERE\n\t}", "title": "" }, { "docid": "dc48efdadf4579299c4ab4f0ffb30f7d", "score": "0.56892043", "text": "private static void calculateNumberOfAttempts(int floors, int eggs) {\n int[][] attempts = new int[eggs + 1][floors + 1];\n /* If we have 0 floors, min attempt we can make is also 0 */\n for (int i = 0; i < attempts.length; i++)\n attempts[i][0] = 0;\n for (int i = 0; i < attempts[0].length; i++) {\n /* If we have 0 eggs, min attempt we can make is also 0 */\n attempts[0][i] = 0;\n /* If we have only 1 egg, min attempt that is needed is same as number of floors */\n attempts[1][i] = i;\n }\n for (int i = 2; i < attempts.length; i++) {\n for (int j = 1; j < attempts[i].length; j++) {\n // Number of eggs is more than floor, then take value from top\n if (i > j)\n attempts[i][j] = attempts[i - 1][j];\n else {\n int cost = Integer.MAX_VALUE;\n /* Simulate the egg dropping from eac floor from floor 1 to j */\n for (int k = 1; k <= j; k++) {\n /*\n * If the egg breaks we have 1 less floor and 1 less egg to work with => attempts[i-1][k-1]\n * If the egg does not break, then we have same number of eggs and k minus floor that we are working\n * on now (Simulation floor) to work with (i.e) We go up until k\n * */\n cost = Math.min(cost, 1 + Math.max(attempts[i - 1][k - 1], attempts[i][j - k]));\n attempts[i][j] = cost;\n }\n }\n }\n }\n System.out.println(\"The dynamic programming matrix is \");\n System.out.print(\" \");\n for (int i = 0; i < attempts[0].length; i++) {\n System.out.print(i + \" \");\n }\n for (int i = 0; i < attempts.length; i++) {\n System.out.println();\n for (int j = 0; j < attempts[i].length; j++) {\n if (j == 0)\n System.out.print(i + \" -> \");\n System.out.print(attempts[i][j] + \" \");\n }\n }\n // Last row last column\n System.out.println(\"\\nMin attempts needed = \" + attempts[eggs][floors]);\n }", "title": "" }, { "docid": "dbb74febaf5b9d961cc39393a4e658c4", "score": "0.5680904", "text": "int getInstantSellWorth();", "title": "" }, { "docid": "92e470bdf71b02f37621f477116ac070", "score": "0.56771433", "text": "int getGameCount();", "title": "" }, { "docid": "3ba5d9d437fedba2faf5ef917c1dd7b3", "score": "0.5676752", "text": "public int howManyCars()\r\n {\r\n final int MAX_BUS_SEATS = 10;\r\n int numOfBus;\r\n if( _noOfTravellers<MAX_BUS_SEATS ) // if number of travellers is less than the number of seats on one bus, so one bus will be enough.\r\n numOfBus = 1;\r\n else\r\n numOfBus = ( _noOfTravellers%MAX_BUS_SEATS==0 ) ? _noOfTravellers/MAX_BUS_SEATS : (_noOfTravellers/MAX_BUS_SEATS)+1 ;\r\n return numOfBus;\r\n }", "title": "" }, { "docid": "cbf2e4b5e7bbf12f7fcfeb5ad5b4265f", "score": "0.5664268", "text": "int getRisksCount();", "title": "" }, { "docid": "785d7581caf7f19e6b3aed6868e5721d", "score": "0.5661002", "text": "public double getTotalUserGainForBets(){\r\n if(bets == null) return 0;\r\n //sums userGain of all bets in list\r\n return bets.stream().mapToDouble(b -> b.getUserGain()).sum();\r\n }", "title": "" }, { "docid": "0de08c624b17fb16ea73a7437c69bf12", "score": "0.56589395", "text": "public int totweight() {\n\t\treturn carbs;\r\n\t\t\r\n\t}", "title": "" }, { "docid": "e09a3d2ec31fb28eb0aaa89ddd5a0f93", "score": "0.56539994", "text": "private void calculateBucketRatios()\n {\n mTotalCount = DataUtils.sumVector(mCombinedBucketCounts);\n\n if(mTotalCount <= 0)\n return;\n\n for(int i = 0; i < mBucketRatios.length; ++i)\n {\n double bucketCount = mCombinedBucketCounts[i];\n mBucketRatios[i] = bucketCount / mTotalCount;\n }\n }", "title": "" }, { "docid": "f0a933e4341c35f1a47096c3b2300865", "score": "0.56537676", "text": "int getGrace_on_arrears_ageing();", "title": "" }, { "docid": "c7a5dab8e685e2feaf5a7e717032b8b2", "score": "0.56528205", "text": "public double totalFlopsIRegneklynge(){\n\t\tdouble maxkapasitetAvRack=0.0;\n\t\t\n\t\tfor(int i =0; i<listOfRacks.size(); i++){\n\t\t\tmaxkapasitetAvRack += listOfRacks.get(i).getMaxYtelseAvRack();\n\t\t\t\n\t\t}\n\t\treturn maxkapasitetAvRack;\n\n\t}", "title": "" }, { "docid": "ca5f7db3dec104ba66a19c1616cdca4c", "score": "0.5648355", "text": "private double getFractionOfCooperation(){\n \n double currentCoopLevel = 0;\n for(Node n : aPopulation){\n currentCoopLevel += n.getCoopAvgFromStrategies();\n //System.out.println(Double.toString(sum));\n }\n return currentCoopLevel;\n }", "title": "" }, { "docid": "8b6a1f0ac11410c670e9a520c2daa029", "score": "0.56369567", "text": "float getAssists_Per_Game();", "title": "" }, { "docid": "1bfa037c60ddb2c9dc8920062ad0ea7f", "score": "0.5635909", "text": "int getNumHouses();", "title": "" }, { "docid": "10977cd680775562389fa401e71d6245", "score": "0.5633829", "text": "public static int countCannonballs(int height) {\n\tassert (height > 0):\n\theight + \" is out of bounds (not a postive integer)\";\n\n\tif (height == 1){\n\t return height;\n\t} else {\n\t return (countCannonballs(height -1)) + height*height;\n\t}\n }", "title": "" }, { "docid": "aecc45eb0c6149c02bab6d1dd7e7f9f9", "score": "0.56242055", "text": "public double getAverageGrowingCyclesPerOrbit() {\n\n\t\tdouble aveGrowingTime = CropConfig.getAverageCropGrowingTime();\n\t\tint solsInOrbit = MarsClock.SOLS_PER_ORBIT_NON_LEAPYEAR;\n\t\tdouble aveGrowingCyclesPerOrbit = solsInOrbit * 1000D / aveGrowingTime; // e.g. 668 sols * 1000 / 50,000\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// millisols\n\n\t\treturn aveGrowingCyclesPerOrbit;\n\t}", "title": "" }, { "docid": "9fafb835bf30523b94bde28c49377d7b", "score": "0.5618331", "text": "public int passengers() {\n int numPassengers = 0;\n for (int i = 0; i < Building.FLOORS; i++) {\n numPassengers += floors[i][0];\n }\n\n return numPassengers;\n }", "title": "" }, { "docid": "f6eaaec3c59f4eaa57d304f4dccae79a", "score": "0.56177664", "text": "public double totalOccupancy() {\n\t\treturn ((double)_tdcHits.size())/TOTALNUMWIRE;\n\t}", "title": "" }, { "docid": "a38f9501d59b8fc055089043f51b5280", "score": "0.5608684", "text": "int numberOfBalls();", "title": "" }, { "docid": "a38f9501d59b8fc055089043f51b5280", "score": "0.5608684", "text": "int numberOfBalls();", "title": "" }, { "docid": "a38f9501d59b8fc055089043f51b5280", "score": "0.5608684", "text": "int numberOfBalls();", "title": "" }, { "docid": "839d1238a528e63d7a414e4de68dc596", "score": "0.56001616", "text": "int getScoresCount();", "title": "" }, { "docid": "d1bea822421250a95444a7b804cbfcde", "score": "0.5599373", "text": "boolean hasBattlePercentOfAmulet();", "title": "" }, { "docid": "1bb9b6eeb5f0a3be1363674c38e77749", "score": "0.5594699", "text": "public int getIncentiveHongbaoCount() {\n return incentiveHongbaoCount_;\n }", "title": "" }, { "docid": "3a5a47a6f66ffad8edb1c3e56b7ed730", "score": "0.55914026", "text": "protected double getTotalCountsFactor() {\n return 1;\n }", "title": "" }, { "docid": "eab83efdd9f7d78a8089ac47873cd82b", "score": "0.5591095", "text": "private void countLakes() {\n int lastHeight, newHeight = heights[0];\n for (int start = 1; start < heights.length; start++) {\n lastHeight = newHeight;\n newHeight = heights[start];\n if (newHeight < lastHeight)\n start = countLakeWater(lastHeight, start) - 1;\n }\n }", "title": "" }, { "docid": "c6cc1d654870a3412ea6eb5d346f943d", "score": "0.55748165", "text": "protected double[] countScoreTotal() {\r\n \r\n double[] score = new double[]{0, 0, 0};\r\n \r\n this.P.stream().map((ind) -> {\r\n score[0] += ind.score_pos[0];\r\n return ind;\r\n }).map((ind) -> {\r\n score[1] += ind.score_pos[1];\r\n return ind;\r\n }).forEach((ind) -> {\r\n score[2] += ind.score_pos[2];\r\n });\r\n \r\n return score;\r\n }", "title": "" }, { "docid": "e3f3f3bce0979eb8e47a369aa0318dda", "score": "0.5568883", "text": "private int calculateScoreC() {\n\t\treturn 0;\n\t}", "title": "" }, { "docid": "ac2daa377f337629dfba255d8932fa47", "score": "0.5559053", "text": "int getMetricsCount();", "title": "" }, { "docid": "4e1593325b8048131c0410f403495007", "score": "0.5558892", "text": "private int getAliveNeighborsCount(){\n \treturn Collections.frequency(neighborState, ALIVE);\n// \taliveNeighbors = 0;\n// \t\n// \tfor(Cell c : neighbors){\n// \t\tif(c.getState() == LifeCell.ALIVE) aliveNeighbors++;\n// \t}\n// \t\n// return aliveNeighbors;\n }", "title": "" }, { "docid": "a3923d3db4e5cb1c6ab9a329d99e7b86", "score": "0.555787", "text": "private int countWays(int[] arr, int n) {\n int mas[] = arr;\n int count[] = new int[n + 1];\n int m = arr.length;\n count[0] = 1;\n for (int i = 1; i <= n; i++) {\n for (int j = 0; j < m; j++) {\n if (i >= mas[j]) {\n count[i] += count[i - mas[j]];\n }\n }\n }\n return count[n];\n }", "title": "" }, { "docid": "dc1ca6d98199c69d50dbaadd46f08d5e", "score": "0.5557477", "text": "@Override\n\tpublic int boardTotal() {\n\t\tQuery query=new Query();\n\t\tint count=(int)mt.count(query,\"databoard\");\n\t\t// 11 => 2 11/10 ==> 1.1 => 2\n\t\treturn (int)(Math.ceil(count/10.0));\n\t}", "title": "" }, { "docid": "84ab989abce75a96c6be6ee519b29b10", "score": "0.5556", "text": "@Test\r\n\tpublic void clumpsTest()\r\n\t{\r\n\t\tcountClumps c = new countClumps();\r\n\t\tassertEquals(2,c.countClump(Array5));\r\n\t\tassertEquals(2,c.countClump(Array6));\r\n\t\tassertEquals(1,c.countClump(Array7));\r\n\t}", "title": "" }, { "docid": "b631f060776d3e3f7f8bfcb03fcd9b6c", "score": "0.55559593", "text": "@Override\n public String countBaggage(final String keyToCarriageAccess) {\n logger.debug(\"start count baggage\");\n\n RepositoryFactory repository = RepositoryFactory.getInstance();\n TransportRepository transportRepository = repository.getRepository();\n\n SpecificationProvider provider = SpecificationProvider.getInstance();\n List<TransportEntity> list = transportRepository.\n query(provider.getSpecification(keyToCarriageAccess));\n\n int countBaggageResult = 0;\n\n for (TransportEntity entity : list) {\n countBaggageResult += ((Carriage) entity).getMaxValueOfBaggage();\n }\n logger.debug(countBaggageResult);\n return \"\" + countBaggageResult;\n }", "title": "" }, { "docid": "47d4919ee8a1d930c151dbf42e1d20bb", "score": "0.55549335", "text": "int getAdventureRewardsCount();", "title": "" }, { "docid": "c4670c0249bb3c5e89b016c28cf860cd", "score": "0.5553036", "text": "public int gamesWon()\n\t{\n\t\treturn numGamesWon_Comp;\n\t}", "title": "" }, { "docid": "d719d5e6272ac2eb373c81cbf6a00570", "score": "0.5552633", "text": "public int countAlive() {\n\t\tint count = 0;\n\t\tfor (Penguin penguin : getPenguins()) {\n\t\t\tif (penguin.getHealth() > 0) {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n\t\treturn count;\n\t}", "title": "" }, { "docid": "c5b3296cd79ce1cde1a200ec3107af11", "score": "0.5548091", "text": "private double fillRate() {\n double numberOfAccounts = 0;\n for (Account account : this.accounts) {\n if (account != null) {\n numberOfAccounts++;\n }\n }\n return numberOfAccounts / this.accounts.length;\n }", "title": "" }, { "docid": "a94b9dbbf36fb75d60ed8931e73718f6", "score": "0.55402386", "text": "public int getNExams() {\r\n int counter = 0;\r\n for (Timeslot t : timeslots) {\r\n counter += t.getExams().size();\r\n }\r\n return counter;\r\n }", "title": "" }, { "docid": "374b5668469a3b5a8370f3b734b97add", "score": "0.55379516", "text": "private static int cntgloves(int[] arr, int n) {\n\t int count = 0; \n\t \n\t // Sort the original array \n\t Arrays.sort(arr); \n\t \n\t for (int i = 0; i < n - 1;) \n\t { \n\t \n\t // A valid pair is found \n\t if (arr[i] == arr[i + 1]) \n\t { \n\t count++; \n\t \n\t // Skip the elements of the current pair \n\t i = i + 2; \n\t } \n\t \n\t // Current elements doesn't make \n\t // a valid pair with any other element \n\t else\n\t { \n\t i++; \n\t } \n\t } \n\t return count; \n\t}", "title": "" }, { "docid": "7d28450f8d98576ad343f753f65d1825", "score": "0.55364823", "text": "private int calculateScoreA() {\n\t\treturn 0;\n\t}", "title": "" }, { "docid": "8b1d744ff7b66f8672b56be9710d4dbb", "score": "0.55347884", "text": "public int countStagedGFSCustUnit();", "title": "" }, { "docid": "d9d213fb7eafe3c855c066d20b3fd97c", "score": "0.55299276", "text": "public int getTotalNumberOfGames(){\n return this.number_of_games;\n }", "title": "" }, { "docid": "cc01c4508b1d5cbb6025480b029a96d0", "score": "0.5529091", "text": "public int calculateScoreRequired() {\n return 80 + (level * 20);\n }", "title": "" }, { "docid": "b97660c547be250678cad45d52ab2a0e", "score": "0.5528298", "text": "int getLandLordPaiCount();", "title": "" }, { "docid": "b97660c547be250678cad45d52ab2a0e", "score": "0.5528298", "text": "int getLandLordPaiCount();", "title": "" }, { "docid": "0251e088330293bc7913098571de8eb3", "score": "0.5527657", "text": "boolean hasCoinsGained();", "title": "" }, { "docid": "0251e088330293bc7913098571de8eb3", "score": "0.5527657", "text": "boolean hasCoinsGained();", "title": "" }, { "docid": "0251e088330293bc7913098571de8eb3", "score": "0.5527657", "text": "boolean hasCoinsGained();", "title": "" }, { "docid": "0251e088330293bc7913098571de8eb3", "score": "0.5527657", "text": "boolean hasCoinsGained();", "title": "" }, { "docid": "f2242e49fa9cb5d71c49645afb4c00cc", "score": "0.55214566", "text": "private int getTotalWon(String team, List<Match> matchesByTeam) {\r\n\t\t\r\n\t\t\r\n\t\tSet<Match> teams = Stream.concat(matches.stream().filter(match -> {\r\n\t\t\t\t\tif(match.getHomeTeam().equals(team)){\r\n\t\t\t\t\t\treturn match.getHomeScore() > match.getAwayScore();\r\n\t\t\t\t\t}\t\r\n\t\t\t\t\treturn false;\r\n\t\t\t\t}), \r\n\t\t\t\tmatches.stream().filter(match -> {\r\n\t\t\t\t\tif(match.getAwayTeam().equals(team)){\r\n\t\t\t\t\t\treturn match.getAwayScore() > match.getHomeScore();\r\n\t\t\t\t\t}\t\r\n\t\t\t\t\treturn false;\r\n\t\t\t\t})).collect(toSet());\r\n\t\t\r\n\t\treturn teams.size();\r\n\t}", "title": "" }, { "docid": "f6eb8e9701578fd5097fb1736ace00a2", "score": "0.5518606", "text": "public int getUrgency() {\n\t\tint counter = 0;\n\n\t\tString[] d = this.birthdate.split(\"-\");\n\t\tif (d == null || d.length != 3){\n\t\t\t return -1;\n\t\t\t}\n\t\tint year = Integer.parseInt(d[0]);\n\t\tint month = Integer.parseInt(d[1]);\n\t\tint day = Integer.parseInt(d[2]);\n\n\t\tif (Calendar.getInstance().get(Calendar.YEAR) - year < 2) {\n\t\t\tcounter += 1;\n\t\t}\t\n\t\telse if (Calendar.getInstance().get(Calendar.YEAR) - year == 2) {\n\t\t\tif (Calendar.getInstance().get(Calendar.MONTH) < month) {\n\t\t\t\tcounter +=1;\n\t\t\t}\n\t\t\telse if (Calendar.getInstance().get(Calendar.MONTH) == month) {\n\t\t\t\tif (Calendar.getInstance().get(Calendar.DATE) <= day)\n\t\t\t\t\tcounter +=1; \t\n\t\t\t}\n\t\t}\n\t\tif(this.temp.size()!=0)\n\t\t{\n\t\t\tif (this.temp.get(this.temp.size() - 1) >= 39.0) {\n\t\t\t\tcounter += 1;\n\t\t\t}\t\n\t\t\tif (this.rate.get(this.rate.size() - 1) >= 100.0\n\t\t\t\t\t|| this.rate.get(this.rate.size() - 1) <= 50.0) {\n\t\t\t\tcounter += 1;\n\t\t\t}\t\n\t\t\tif (this.systolicPressure.get(this.systolicPressure.size() - 1) >= 140.0\n\t\t\t\t\t|| this.diastolicPressure\n\t\t\t\t\t\t\t.get(this.diastolicPressure.size() - 1) >= 90.0) {\n\t\t\t\tcounter += 1;\n\t\t\t}\t\n\t\t}\n\t\treturn counter;\n\n\t}", "title": "" }, { "docid": "b3734fda80e9702362762e54d395dad5", "score": "0.55149764", "text": "public void calcReachingFactor()\n {\n \n\n List<ABObject> allBlocks = vision.getVisionRealShape().findObjects();\n if(pigs != null)\n allBlocks.addAll(pigs);\n if(air_blocks != null)\n allBlocks.addAll(air_blocks);\n\n for(ABObject obj: allBlocks)\n {\n if (obj.type != ABType.Air) {\n double factor = 1;\n has_any_block_come = false;\n TrajectoryPlanner trajectory = new TrajectoryPlanner();\n ArrayList<Point> release_points = trajectory.estimateLaunchPoint(sling_shot,new Point((int) obj.getX(), (int) obj.getY()));\n\n for(Point p:release_points)\n {\n List<ABObject> trajectoryBlocks = getAllBlocks();\n if (air_blocks != null) {\n trajectoryBlocks.addAll(air_blocks);\n }\n List<ABObject> removedBlocks = new LinkedList<ABObject>();\n trajectory.setTrajectory(sling_shot, p);\n ArrayList<Point> trajectory_points = trajectory._trajectory;\n for(Point t:trajectory_points)\n {\n int flag=0;\n for(int i=0;i<hills.size();i++)\n {\n Poly h = (Poly) hills.get(i);\n if(h.polygon.contains(t) && t.getX()<=obj.getX())\n {\n flag=1;\n factor=Double.MIN_VALUE;\n break;\n }\n }\n\n if(flag==1)\n break;\n int length = 0;\n for(int i = 0; i < trajectoryBlocks.size(); i++)\n {\n if(trajectoryBlocks.get(i) != obj && trajectoryBlocks.get(i).getX() <= obj.getX() && trajectoryBlocks.get(i).contains(t))\n {\n ABObject block = trajectoryBlocks.get(i);\n if(block.angle > 0.785)\n length += block.width;\n else\n length += block.height;\n if(current_bird == ABType.RedBird)\n factor+=assignDensity(block, 20, 10, 30, 5, 2, 20)*length/10.0;\n else if (current_bird == ABType.BlueBird)\n factor += assignDensity(block, 20, 10, 30, 5, 2, 20)*length/10.0;\n else if (current_bird == ABType.YellowBird)\n factor += assignDensity(block, 10, 20, 30, 5, 2, 10)*length/10.0;\n else if (current_bird == ABType.WhiteBird)\n factor += assignDensity(block, 30, 20, 10, 5, 2, 10)*length/10.0;\n else //for Black Bird\n factor+=assignDensity(block, 10, 20, 10, 5,2,5)*length/10.0;\n\n trajectoryBlocks.remove(block);\n i--;\n removedBlocks.add(block);\n }\n }\n }\n trajectoryBlocks.addAll(removedBlocks);\n double k = 100000.0;\n double length = 0;\n if (obj.angle > 0.785)\n length = obj.width;\n else\n length = obj.height;\n if(current_bird == ABType.RedBird)\n factor += assignDensity(obj, 20, 15, 40, 10, 5, 10)*length;\n else if (current_bird == ABType.YellowBird)\n factor += assignDensity(obj, 15, 15, 40, 10, 5, 10)*length;\n else if (current_bird == ABType.BlueBird)\n factor += assignDensity(obj, 20, 15, 40, 10, 5, 10)*length;\n else if (current_bird == ABType.BlackBird)\n factor += assignDensity(obj, 15, 15, 15, 10, 5, 5)*length;\n else if (current_bird == ABType.WhiteBird)\n factor += assignDensity(obj, 15, 15, 15, 10, 5, 5)*length;\n obj.penetrationFactor[release_points.indexOf(p)] = k/factor;\n // obj.penetrationFactor = factor;\n }\n if(release_points.size() < 2)\n obj.penetrationFactor[1] = obj.penetrationFactor[0];\n }\n }\n\n double max_0 = Double.MIN_VALUE;\n double max_1 = Double.MIN_VALUE;\n\n for (ABObject obj: allBlocks) {\n if (obj.type != ABType.Air) {\n if (obj.penetrationFactor[0] > max_0)\n max_0 = obj.penetrationFactor[0];\n if (obj.penetrationFactor[1] > max_1)\n max_1 = obj.penetrationFactor[1];\n }\n }\n\n for (ABObject obj: allBlocks ) {\n obj.penetrationFactor[0] = 100*obj.penetrationFactor[0]/max_0;\n obj.penetrationFactor[1] = 100*obj.penetrationFactor[1]/max_1;\n }\n }", "title": "" }, { "docid": "9e32f2b8c7be34ef1efe597b3a037cf4", "score": "0.55141956", "text": "private void calculateStats() {\n\t\t\n\t}", "title": "" }, { "docid": "daa5155126e085c095d1de0f8fef11d5", "score": "0.55122375", "text": "public static void main(String[] args) \n {\n final int SIMS_EACH_SERIES_AMOUNT = 1000000;\n \n //ACME Team WP\n final double WIN_PERCENTAGE = .6;\n \n //Tracks Game Victories Each Sim\n int acmeVictories;\n int boonVictories;\n \n double moneyGained;\n \n //Total Wins To Win a Series\n int winThreshold;\n \n //Used For Win Percentage At Each Level\n int totACVics;\n int totBNVics;\n\n Random rand = new Random();\n \n //Each Level Up to 199 Series Length\n for (int i = 1; i <= 199; i = i + 2)\n {\n //Resets Values For New Level\n moneyGained = 0;\n winThreshold = i/2 + 1;\n totACVics = 0;\n totBNVics = 0;\n \n \n for (int s = 0; s < SIMS_EACH_SERIES_AMOUNT; s++)\n {\n //Resets Victories Each New Series\n acmeVictories = 0;\n boonVictories = 0;\n \n //While The Series Is Still Going\n for (int g = 1; g <= i; g++)\n {\n //Determines Who Wins\n if (rand.nextDouble() < WIN_PERCENTAGE)\n acmeVictories++;\n else\n boonVictories++;\n \n //Checks if Series is Over\n if (acmeVictories == winThreshold)\n {\n //Money gained that sim divided by total sims\n moneyGained += ((1000000-(winThreshold*10000.0))/SIMS_EACH_SERIES_AMOUNT);\n g = i + 1;\n totACVics++;\n }\n else if (boonVictories == winThreshold)\n {\n g = i + 1; \n totBNVics++;\n }\n }\n }\n \n \n //System.out.println(moneyGained);\n //System.out.println((totACVics*1.0)/(totACVics*1.0+totBNVics));\n \n //Prints Average Value Given Series Length\n System.out.println(\"Series Length \" + i + \" average gain: \" + moneyGained);\n }\n \n \n }", "title": "" } ]
b687526395b456d527500339f2c106a8
/ function check if input string is legal numbers 09 operator + / ^ signal point (.)
[ { "docid": "45cf31a343e74d7fefd5789bfcc36fc1", "score": "0.75066227", "text": "public boolean checkIfNormalNum(String str){\n\t\tif(!ifHaveNum(str))\n\t\t\treturn false;\n\t\tstr = removeBracketsVoid(str);\n\t\tif(str==\"\")\n\t\t\treturn false;\n \t\tstr = convertMarks(str);\n\t\tstr = removeFirstCharIfIsPlus(str);\n\t\tstr = ifTheFirstIsMinus(str);\n\t\tstr = connectingOp(str);\n\t\t//str = roundBrackets(str);\n\t\tfor(int i=0;i<str.length();i++){\n\t\t\t\n\t\t\t/*\n\t\t\t * check if in the first character have operator\n\t\t\t * note ! because roundBrackets function even if the first character is minus\n\t\t\t * He will wrap it in parentheses\n\t\t\t */\n\t\t\t\n\t\t\tif(i==0 && ifHaveOp(str.substring(0, 1)) )\n\t\t\t\treturn false;\n\t\t\t//check in all the string have operator\n//\t\t\tif(!ifHaveOp(str))\n//\t\t\t\treturn false;\n\t\t\t//check if have character it is not number or operator\n\t\t\tif(str.charAt(i)<40 ){\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\tif(str.charAt(i)==44){\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\tif(str.charAt(i)>57 && str.charAt(i) != 94 &&str.charAt(i) != 69){\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\tint temp = i+2;\n\t\t\tif(i+2>str.length()){\n\t\t\t\ttemp = str.length();\n\t\t\t}\n\t\t\tif(ifHaveOp(str.substring(i,i+1)) && ifHaveOp(str.substring(i+1,temp))){\n\t\t\t\tif(!str.substring(i+1,temp).equals(\"-\")){\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\t\t\t//check the lest character if is't operator \n\t\t\tif(i==str.length()-1){\n\t\t\t\tif( ifHaveOp(str.substring(str.length()-1,str.length()))){\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t}\n\t\treturn true;\n\t}", "title": "" } ]
[ { "docid": "813955420f8060cd1b04ea47a045e6bc", "score": "0.7512232", "text": "private static boolean checkIfInteger(String str) {\r\n\t\tboolean matches = str.matches(\"^[+-]?\\\\d+$\");\r\n\t\treturn matches;\r\n\t}", "title": "" }, { "docid": "61c9fe4a31c73961fbb0494958c35f0a", "score": "0.73874366", "text": "private boolean isNumeric(String str)\n\t{\n\t\tif(str.startsWith(\"0x\") || str.startsWith(\"0X\"))\n\t\t\tstr = str.substring(2);\n\t\t\t\n\t\tif(str.startsWith(\"+\") || str.startsWith(\"-\"))\n\t\t\tstr = str.substring(1);\n\t\t\n\t for (char c : str.toCharArray())\n\t {\n\t if (!Character.isDigit(c)) return false;\n\t }\n\t return true;\n\t}", "title": "" }, { "docid": "6fd32c37a54f949ecb9d5fe66a86ee2a", "score": "0.72851634", "text": "private boolean hasNumeric(){\n if(strInput.matches(\".*\\\\d+.*\")) //Type checking ^ \\\\d wildcard character for digits (regex)\n return true;\n else\n return false;\n }", "title": "" }, { "docid": "d1b5894a5db4b9c8c946221cf1e102cc", "score": "0.71090084", "text": "private static boolean isNumeric(String str){\r\n return str.matches(\"-?\\\\d+(\\\\.\\\\d+)?\"); //match a number with optional '-' and decimal.\r\n }", "title": "" }, { "docid": "7ccb02ff3db7cb991a4c6524bb74da12", "score": "0.7043609", "text": "public static boolean checkValidNumber(String input) {\r\n return replaceData(input).matches(\"^[0-9]+$\");\r\n }", "title": "" }, { "docid": "015dc90b9249039f7a6f47b67efc3ca1", "score": "0.7031363", "text": "private static boolean isNum(String input) {\n try {\n Integer.parseInt(input);\n return true;\n } catch (Exception e) {\n return false;\n }\n }", "title": "" }, { "docid": "6cfff30d12db44512070da394f43ae0c", "score": "0.6941103", "text": "public static boolean isNumber(String s) {\n\t\ts = s.trim().toLowerCase();\n\t\tif (s.length() == 0)\n\t\t\treturn false;\n\t\tif (!checkOther(s))\n\t\t\treturn false;\n\t\tif (!checkPoint(s))\n\t\t\treturn false;\n\t\tif (!checkSign(s))\n\t\t\treturn false;\n\t\tif (!checkE(s))\n\t\t\treturn false;\n\t\t// if (!checkOther(s) || !checkPoint(s) || !checkSign(s) || !checkE(s))\n\t\t// return false;\n\t\treturn true;\n\t}", "title": "" }, { "docid": "79c93ec50dce9f53d85870d056becffa", "score": "0.6940284", "text": "public boolean checkInput(String s){\r\n\t\t\tif(s.matches(\".*[1234567890]\"))\r\n\t\t\t\treturn true;\r\n\t\t\treturn false;\r\n\t\t}", "title": "" }, { "docid": "70dfbb330c1b1cf196a59e0d2b4d593b", "score": "0.69286776", "text": "private boolean isNumber(String st) {\n\t\tif (st.charAt(0) == minusSign && st.length() == 1) return false;\n\t\tif (st.charAt(0) == '+' && st.length() == 1) return false;\n\t\tif (st.charAt(0) == 'e' || st.charAt(0) == 'E') return false;\n\t\tfor (char ch : st.toCharArray()) {\n\t\t\tif (!Character.isDigit(ch) && ch != minusSign\n\t\t\t\t\t&& ch != decimalSeparator\n && ch != 'e' && ch != 'E' && ch != '+')\n\t\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}", "title": "" }, { "docid": "d4d56e448e5718e71cd3ca557f057d02", "score": "0.69134206", "text": "private boolean isNumeric(String str) {\n\t\treturn str.matches(\"[-+]?\\\\d*\\\\.?\\\\d+\");\n\t}", "title": "" }, { "docid": "f1f3e80b050864a9ee0bf47d535f62a8", "score": "0.69091433", "text": "private static boolean isNum(String s) {\n try {\n Integer.parseInt(s);\n } catch (Exception e) {\n return false;\n }\n return true;\n }", "title": "" }, { "docid": "d4ea87784d9683922ffa6007ed3c4bc2", "score": "0.690155", "text": "public boolean isNumber(String s) {\n if(s.trim().isEmpty()){ \n return false; \n } \n \n // []: one of it\n // ?: zero or one\n // +: one or more\n // *: zero or more\n String regex = \"[-+]?(\\\\d+\\\\.?\\\\d*|\\\\.\\\\d+)(e[-+]?\\\\d+)?\"; \n if(s.trim().matches(regex)) \n return true; \n else \n return false; \n }", "title": "" }, { "docid": "827bcf38345d77a81e1dea18001f169a", "score": "0.69009537", "text": "private boolean isNumeric(String n) {\n return n.matches(\"[0-9]*\\\\.?[0-9]*\");\r\n }", "title": "" }, { "docid": "bd26fc5cf05c24d214bba98ed9a0f686", "score": "0.68611085", "text": "public static boolean verifyNumericInput(String input){\r\n \r\n if(input.equals(Constants.EMPTY_STRING)) return false;\r\n \r\n for(char ch: input.toCharArray()){\r\n if(!Character.isDigit(ch)){\r\n return false;\r\n }\r\n }\r\n return true;\r\n }", "title": "" }, { "docid": "5bd3bc8bd0259a9d780768c87410982b", "score": "0.6842989", "text": "private boolean isNumerical(String num) {\r\n // array of chars from String to check\r\n char[] chars = num.toCharArray();\r\n // loop for each char in array\r\n for (int i = 0; i < chars.length; i++) {\r\n // if char is not a number return false\r\n if (!Character.isDigit(chars[i])) {\r\n return false;\r\n }\r\n }\r\n // if char is number return true\r\n return true;\r\n }", "title": "" }, { "docid": "4f17d85afea9a3b1288a14382aa05c6d", "score": "0.68406737", "text": "private boolean isValid(String s) {\n\t\tif (s.charAt(0) == '0') {\n\t\t\treturn s.equals(\"0\");\n\t\t} else {\n\t\t\tint tar = Integer.valueOf(s);\n\t\t\treturn tar <= 255 && tar >= 1;\n\t\t}\n\t}", "title": "" }, { "docid": "e8fc2b3e37317f37dbc5d27b8e599fb7", "score": "0.6785597", "text": "public static boolean esNumerico(String str) {\n\t\treturn str.matches(\"-?\\\\d+(\\\\.\\\\d+)?\");\n\t}", "title": "" }, { "docid": "08e6ff05f6c6a61c322c7fc4366664cb", "score": "0.6781542", "text": "private boolean isNumeric(String s) { \n\t\treturn s != null && s.matches(\"[-+]?\\\\d*\\\\.?\\\\d+\"); \n\t}", "title": "" }, { "docid": "461681ce267b3ecb3ff3fa2529ba38ff", "score": "0.6765638", "text": "static private boolean checkStockStringValid(String s) {\n\t\tboolean bRet = false;\n\n\t\tfor (int i = 0; i < s.length(); i++) {\n\t\t\tif (Character.isDigit(s.charAt(i)) || Character.isAlphabetic(s.charAt(i))) {\n\t\t\t\tbRet = true;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\treturn bRet;\n\t}", "title": "" }, { "docid": "a243839c4c75b91a35fcc6193338e384", "score": "0.6740411", "text": "public static boolean isNumeric(String instr){\n\t\tif(instr == null) return false;\n\t\ttry{\n\t\t\tchar x[] = instr.toCharArray();\n\t\t\tfor(int i=0; i<x.length; i++){\n\t\t\t\tif(!Character.isDigit(x[i])) return false;\n\t\t\t}\n\t\t} catch(Exception e){\n\t\t\te.printStackTrace();\n\t\t\treturn false;\n\t\t}\t\n\t\treturn true;\n\t}", "title": "" }, { "docid": "2cfbc770798bf6b9d2ecc8c40dca16ae", "score": "0.6734922", "text": "public void testIsNum() throws Exception {\n assertTrue(SyntaxChecker.isNum(\"120.5\"));\n }", "title": "" }, { "docid": "b9c5005caafecb7ca546dfa5f76822af", "score": "0.6722165", "text": "private static boolean isNumber(String value) {\r\n \r\n //assume true and see if proved wrong\r\n boolean isNumber=true;\r\n \r\n int charCount=value.length();\r\n for(int i=0;i<charCount;i++){\r\n char c=value.charAt(i);\r\n if((c<'0')|(c>'9')){\r\n isNumber=false;\r\n i=charCount;\r\n }\r\n }\r\n \r\n return isNumber;\r\n }", "title": "" }, { "docid": "1bc277d43d4f329c4fe4fab37450d6e8", "score": "0.67160994", "text": "public boolean NumberChk(String str){\n\t\tchar c;\n\t\tboolean retV = false;\n\n\t\tif(str.equals(\"\")) return false;\n\n\t\tfor(int i = 0 ; i < str.length() ; i++){\n\t\t\tc = str.charAt(i);\n\t\t\tif(c < 48 || c > 59){\n\t\t\t\tretV = false;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\treturn retV;\n\t}", "title": "" }, { "docid": "1567ded9999be339ca0d21414320f3d5", "score": "0.67087173", "text": "protected boolean checkIfAllCharsAreInts(String data)\n\t{\n\t\tint count = 0;\n\t\tfor (int i = 0; i < data.length(); i++)\n\t\t{\n\t\t\tif (data.charAt(i) >= '0' && data.charAt(i) <= '9')\n\t\t\t{\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n\t\tif (count == data.length())\n\t\t{\n\t\t\treturn true;\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t}", "title": "" }, { "docid": "a92b2cca0d878b411550e829701c26f9", "score": "0.6703037", "text": "boolean simpleSymbols(String str) {\n for (int i = 0; i < str.length(); i++) {\n int code = (int) str.charAt(i);\n if ((code >= 97 && code <= 122) || (code >= 65 && code <= 90)) {\n if (i == 0 || i == str.length()-1 || str.charAt(i-1) != '+' || str.charAt(i+1) != '+') {\n return false;\n }\n }\n }\n return true; \n \n }", "title": "" }, { "docid": "98aa6e55e591160b8b25a3b22cf1c1c3", "score": "0.6698553", "text": "private boolean ValidateNumber(String str) {\r\n\t\tif (str == null || str.trim().equals(\"\")) {\r\n\r\n\t\t} else {\r\n\t\t\tfor (int i = 0; i < str.length(); i++) {\r\n\t\t\t\tif (Character.isLetter(str.charAt(i))) {\r\n\t\t\t\t\treturn false;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn true;\r\n\t}", "title": "" }, { "docid": "e6427f96e28b9f3eb903fda82acc1935", "score": "0.66927046", "text": "private boolean isInteger(String str){\r\n return str.matches(\"[0-9]+\");\r\n }", "title": "" }, { "docid": "ad2aa80174913309378d212220a7df92", "score": "0.66879344", "text": "@Test\n\tvoid isWordFollowedByNumDigit() {\n\t\tassertFalse(PasswordChecker.isWordFollowedByNum(\"1\"));\n\t}", "title": "" }, { "docid": "12de978f189de0282ca8622a79335811", "score": "0.6661613", "text": "private static boolean isNumber(String input,int length) {\r\n\t\tchar value = ' ';\r\n\t\t\r\n\t\tfor(int i = 0; i < length; i++)\r\n\t\t\tvalue = input.charAt(i);\r\n\t\t\tif('1' != value || '2' != value || '3' != value || '4' != value || \r\n\t\t\t '5' != value || '5' != value || '6' != value || '7' != value ||\r\n\t\t\t '8' != value || '9' != value || '0' != value)\r\n\t\t\t\treturn false;\r\n\t\t\t\r\n\t\t\treturn true;\r\n\t}", "title": "" }, { "docid": "8b9af94e499882ca42113ceeceb42cce", "score": "0.6656329", "text": "public static boolean isNoSpecialCharAndNumbers(String input) {\n\t\tString field = input;\n\t\tString pattern = \"^.*(?=.*[/|`~!(){}_,\\\"'*?:;<>,@#$%^&+=-[0-9]]).*$\";\n\t\tif (input == null || input.isEmpty()) {\n\t\t\treturn true;\n\t\t} else if (field.matches(pattern)) {\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "title": "" }, { "docid": "0ba883ad76adfd01a6fa16decdca5321", "score": "0.66483045", "text": "public boolean isNumeric(String word){\n return word.matches(\"-?\\\\d+(\\\\.\\\\d+)?\");\n }", "title": "" }, { "docid": "44611897331b65f86635c71e6bbb7813", "score": "0.66373473", "text": "private boolean isNumber(String s)\r\n {\r\n try\r\n {\r\n Integer.parseInt(s);\r\n return true;\r\n } \r\n catch (NumberFormatException ex)\r\n {\r\n return false;\r\n }\r\n }", "title": "" }, { "docid": "6189f88020cfc7cde0131b6ce5300f64", "score": "0.66297287", "text": "public void testIsNum2() throws Exception {\n assertFalse(SyntaxChecker.isNum(\"abc\"));\n }", "title": "" }, { "docid": "dd8434d71b8e51f0cf74dcf7ee7cf78c", "score": "0.660182", "text": "private static boolean isNumeric(String str){\n NumberFormat formatter = NumberFormat.getInstance();\n ParsePosition pos = new ParsePosition(0);\n formatter.parse(str, pos);\n return str.length() == pos.getIndex();\n }", "title": "" }, { "docid": "8b5e6f61ae04cec1b1bad0e78393f382", "score": "0.6593989", "text": "public static void main(String[] args) {\n Pattern pattern = Pattern.compile(\"^-?\\\\d+(\\\\.\\\\d+)?$\");\n String str=\"8/7*100-100+5\";\n String express = str.replaceAll(\"[+ \\\\- * / ]\",\"\").trim();\n Matcher isNum = pattern.matcher(express);\n\n System.out.println(express);\n System.out.println( isNum.matches());\n\n }", "title": "" }, { "docid": "b35ef2827ced73183bcbaf1bfe0e0fa8", "score": "0.65763026", "text": "private boolean evaluateOperand(String exp){\r\n\t\treturn Character.isDigit(exp.charAt(0));\r\n\t}", "title": "" }, { "docid": "c241965f844fa5f7fb6c35995de9703c", "score": "0.6565747", "text": "public boolean symbForNum(String s, String system){\r\n switch (system){\r\n case \"x\": return s.matches(\"[\\\\da-fA-F]\");\r\n //case \"o\": return s.matches(\"[0-7]\");\r\n //case \"b\": return s.equals(\"0\") || s.equals(\"1\")]\");\r\n default: return false;\r\n }\r\n }", "title": "" }, { "docid": "c49eca54baf093d2a347b6262078af4c", "score": "0.65651697", "text": "private static boolean containsNumbersOrSymbols(String word) {\n\tfor (int i = 0; i < word.length(); i++) {\n\t // If the character is not a letter or an apostrophe\n\t if (!Character.isLetter(word.charAt(i)) && (word.charAt(i) != '\\'')) {\n\t\treturn true;\n\t }\n\t}\n\treturn false;\n }", "title": "" }, { "docid": "fca0731db0f550b1d7d94b4a51d97179", "score": "0.6562405", "text": "private static String isAllNumber(String str) {\n char[] arrStr = str.toCharArray();\n ArrayList<Character> result = new ArrayList<>();\n for (char s : arrStr) {\n if(s >= '0' && s <= '9'){\n result.add(s);\n }else if((s < '0' || s > '9') && s != '-'){\n result.add(s);\n }\n }\n\n\n return result.toString();\n }", "title": "" }, { "docid": "27161584d062b762e08d16d452fbe307", "score": "0.6550409", "text": "public static boolean isNumeric(String inputData) {\n\t\treturn inputData.matches(\"[-+]?\\\\d+(\\\\.\\\\d+)?\");\n\t}", "title": "" }, { "docid": "2092c4985bf2558ed14d4f05629f8196", "score": "0.6548603", "text": "private static boolean isDigit(String token) {\n\t\tboolean negative=false;\r\n\t\tfor(int i=0;i<token.length();i++){\r\n\t\t\t\r\n\t\t\tif(token.charAt(i)=='-'){\r\n\t\t\t\tif(token.length()==1){\r\n\t\t\t\t\treturn false;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\telse if(token.charAt(i)<='9' && \r\n\t\t\t\ttoken.charAt(i)>='0'){\r\n\t\t\t\t\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "title": "" }, { "docid": "20a5121455962bf57b3bb11013cfd6cf", "score": "0.654785", "text": "public static boolean isNumberFormatValid(String number) {\n\t\tnumber = number.replaceAll(\" \", \"\");\n\n\t\tif (number.startsWith(\"+\") && number.length() == 12) {\n\t\t\treturn true;\n\t\t} else if (!number.startsWith(\"+\") && number.length() == 10) {\n\t\t\treturn true;\n\t\t}\n\n\t\treturn false;\n\t}", "title": "" }, { "docid": "9ffa490aba8d5fbcf33d641491446e86", "score": "0.65316385", "text": "private boolean validInput(String s) {\n\n if(s.length() != 2) {\n print(\"Invalid - Need both letter and number, try again\");\n return false;\n }\n \n if(s.charAt(0) < 'a' || s.charAt(0) > 'c' || \n s.charAt(1) < '1' || s.charAt(1) > '3') {\n print(\"Invalid - Must be a-c, 1-3, try again\");\n return false;\n }\n\n return true;\n\n }", "title": "" }, { "docid": "d6d4f49c82b2cef498c0403299d1e25b", "score": "0.65101415", "text": "private boolean isNaturalPower(String s) {\r\n\t\tif(s.charAt(0)!='^') {//the first char should be '^'\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\tfor(int i=1; i<s.length(); i++) {//run over the string and check that there is only numbers\r\n\t\t\tif((s.charAt(i)<'0'|| s.charAt(i)>'9')) {\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn true;\r\n\t}", "title": "" }, { "docid": "96dd544d7bc769d4c18bd3e309d11deb", "score": "0.65096694", "text": "public static boolean isNumber(String s) {\n if (s.length() == 0) return false;\n\n char[] chars = s.toCharArray();\n for (int i = 0; i < chars.length; i++) {\n char c = chars[i];\n if ((i != 0 && c == '-') // The string contains a hyphen\n || (!Character.isDigit(c) && c != '-') // or is not a number and doesn't start with a hyphen\n || (i == 0 && c == '-' && chars.length == 1)) // or is a single hyphen\n {\n return false;\n }\n }\n\n return true;\n }", "title": "" }, { "docid": "ae2cef81433f0145ec7bd8434db68a27", "score": "0.65079325", "text": "private boolean isNumeric(String str)\n {\n for (char c : str.toCharArray())\n {\n if (!Character.isDigit(c))\n return false;\n }\n return true;\n }", "title": "" }, { "docid": "77f808259877d764b9cf934818c317e5", "score": "0.6499647", "text": "static boolean verifyInput(String input) {\n \t\tchar[] parse = input.toCharArray();\n \t\tif(!Character.isLetter(parse[0]))\n \t\t\treturn false;\n \t\tfor (int i = 1; i < parse.length; i++) \n \t\t\tif (!Character.isDigit(parse[i])) \n \t\t\t\treturn false;\n \t\treturn true;\n \n \t}", "title": "" }, { "docid": "268d87a2377b7eebd9c06d720bc2efbc", "score": "0.6498964", "text": "public static boolean isNumeric(String str) {\n return str.matches(\"-?\\\\d+(\\\\.\\\\d+)?\"); //match a number with optional '-' and decimal.\n }", "title": "" }, { "docid": "6ffd7f9ab175e67e4353cbd602f20279", "score": "0.64938533", "text": "public static boolean isNumber(String in)\n\t { try {\n\t Integer.parseInt(in);\n\t return true;}\n\t catch (Exception E)\n\t { System.out.println(\"Mouch numrou\");\n\t \treturn false; } }", "title": "" }, { "docid": "5f4c91f8e9103849a21cdfd4275db09e", "score": "0.64929414", "text": "public boolean isNumeric(String input) {\n //use try catch should the conversion fail\n try {\n int num = Integer.parseInt(input);\n if (num < 0)\n return false;\n } catch(Exception e) {\n return false;\n }\n return true;\n }", "title": "" }, { "docid": "57e9220bf1b32da15078c7d4cc5471d9", "score": "0.64604074", "text": "public boolean isNumber(String s) {\n\t\treturn (s == \"0\" || s == \"1\" || s == \"2\" || s == \"3\" || s == \"4\" || s == \"5\"\n\t\t\t\t|| s == \"6\" || s == \"7\" || s == \"8\" || s == \"9\");\n\t}", "title": "" }, { "docid": "b9d4f8e8ceeaf996ffcdf2aac79fa314", "score": "0.6458075", "text": "private static boolean isObjNum(String obj) {\n char[] charArgs = obj.toCharArray();\n for(int i=0; i<charArgs.length; i++) {\n if(!(charArgs[i] >= '0' && charArgs[i] <='9')) {\n return false;\n }\n }\n return true;\n }", "title": "" }, { "docid": "4f5861c0756d5f96b5a85360b44e8231", "score": "0.645379", "text": "public static boolean isNumeric(String str) {\r\n boolean valid = true;\r\n str = str.toLowerCase();\r\n for (int i = 0; i < str.length(); i++) {\r\n char ch = str.charAt(i);\r\n valid = Character.isDigit(ch) && str.length() == 5;\r\n }\r\n return valid;\r\n }", "title": "" }, { "docid": "e1595401ed2ffe7b9acbe44d0327b579", "score": "0.64486927", "text": "public static boolean checkNum(String numStr) {\r\n int num;\r\n try {\r\n num = Integer.parseInt(numStr);\r\n return true;\r\n\r\n } catch (NumberFormatException ex) {\r\n return false;\r\n }\r\n\r\n }", "title": "" }, { "docid": "ea12c7133d01ed8fe99eaa23b5c0c927", "score": "0.6446169", "text": "public void testIsNum3() throws Exception {\n assertFalse(SyntaxChecker.isNum(\".\"));\n }", "title": "" }, { "docid": "df8ab492787c5b713f6a8488540f95c1", "score": "0.6442723", "text": "private static boolean isStringNumber(String s) {\n\t\ttry {\n\t\t\tInteger.parseInt(s);\n\t\t\treturn true;\n\t\t} catch (NumberFormatException e) {\n\t\t\treturn false;\n\t\t}\n\t}", "title": "" }, { "docid": "fa457355e446617787bd35814ccc0809", "score": "0.64375424", "text": "public boolean validateStringNumbers(String entrada){\n\n for (char c : entrada.toCharArray()) {\n if (Character.isAlphabetic(c)){\n return false;\n }\n }\n return true;\n }", "title": "" }, { "docid": "8bc48ed5ec34cb43371de0ac7c6725b8", "score": "0.6437094", "text": "public static boolean validateNumber(String number){\r\n try{\r\n if(number.contains(\" \")){\r\n return false;\r\n }\r\n Integer.parseInt(number);\r\n }\r\n catch (Exception e){\r\n return false;\r\n }\r\n return true;\r\n }", "title": "" }, { "docid": "c0b3d2cdc8fdb514b993051e3a04f2a2", "score": "0.6415218", "text": "public boolean containsOnlyNumbers(String str) {\n if (str == null || str.length() < 0 )\n return false;\n /*\n for (int i = 0; i < str.length(); i++) {\n \n //If we find a non-digit character we return false.\n if (!Character.isDigit(str.charAt(i)))\n return false;\n }*/\n if(!str.matches(\"^[0-9]{1,10}$\"))\n {\n return false;\t\n }\n return true;\n }", "title": "" }, { "docid": "16a45e1bed5f37f13d447d55e05bc230", "score": "0.6404382", "text": "public boolean isStrobogrammatic(String num) {\n int len = num.length();\n for (int i = 0; i < len; i++) {\n char c = num.charAt(i);\n switch (c) {\n case '0':\n if (num.charAt(len - 1 - i) != '0') return false;\n break;\n case '1':\n if (num.charAt(len - 1 - i) != '1') return false;\n break;\n case '6':\n if (num.charAt(len - 1 - i) != '9') return false;\n break;\n case '8':\n if (num.charAt(len - 1 - i) != '8') return false;\n break;\n case '9':\n if (num.charAt(len - 1 - i) != '6') return false;\n break;\n default:\n return false;\n }\n }\n return true;\n }", "title": "" }, { "docid": "6062b93d39554dab03d827b1e3bea52e", "score": "0.6398948", "text": "static boolean isCharOperator(String element){\n \n\tif(element.equals(\"+\")|| element.equals(\"-\") || element.equals(\"x\") || element.equals(\"/\") || element.equals(\"%\") || element.equals(\"(\") || element.equals(\")\") || element.equals(\"^\")){\n\t\treturn true;\n\t}\n return false;\n}", "title": "" }, { "docid": "868c36274f63f3f1f86f83e97ed22083", "score": "0.6398918", "text": "private boolean num(char x)\r\n\t{\r\n\t\tswitch (x)\r\n\t\t{\r\n\t\tcase '0':\r\n\t\tcase '1':\r\n\t\tcase '2':\r\n\t\tcase '3':\r\n\t\tcase '4':\r\n\t\tcase '5':\r\n\t\tcase '6':\r\n\t\tcase '7':\r\n\t\tcase '8':\r\n\t\tcase '9':\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "title": "" }, { "docid": "59eb60be947352e48d918e1dc9186716", "score": "0.63984376", "text": "private boolean isNum(char c) {\n\t\tif (c == ' ' || c == '0' || c == '1' || c == '2' || c == '3' || c == '4' || c == '5' || c == '6' || c == '7' || c == '8' || c == '9') {\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "title": "" }, { "docid": "8f04980a84dd99b9c2a13328eb11ae1e", "score": "0.63949585", "text": "public static boolean itemPriceIsValid(String str) {\n if (str.length() > 0) {\n for (int i = 0; i < str.length(); i++) {\n if (!Character.isDigit(str.charAt(i))) {\n return false;\n }\n }\n return true;\n } else {\n return false;\n }\n\n }", "title": "" }, { "docid": "f48a54a2e19365811a72a13d01f5c402", "score": "0.63928205", "text": "private boolean isInteger(String aString) {\n\t\tfor (int i = 0; (i < aString.length()); i++) {\n\t\t\tif (aString.charAt(i) < '0' || aString.charAt(i) > '9')\n\t\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}", "title": "" }, { "docid": "1c8dc4ae1d04041e257f40f1009b528a", "score": "0.6389632", "text": "private boolean checkIfNumber() {\n\t\treturn Character.isDigit(data[currentIndex]);\n\t}", "title": "" }, { "docid": "56cf7f8be0cd7a4ccdd7dd785e75ec04", "score": "0.6389042", "text": "public boolean isNumber(String str){\n try{\n int i = Integer.parseInt(str);\n }catch(NumberFormatException nfe){\n return false;\n }\n return true;\n }", "title": "" }, { "docid": "87ba9d1e7c528242e672c57e91d58357", "score": "0.6368286", "text": "private static boolean isOperator(String s) {\n return s.matches(\"^[+\\\\-*/]$\");\n }", "title": "" }, { "docid": "57c54e16a8c70874040408dfbc090425", "score": "0.6365945", "text": "public boolean hasNumber(String s){\n\n for(int i=0; i< s.length(); i++){\n if(Character.isDigit(s.charAt(i))){\n return true;\n }\n }\n return false;\n }", "title": "" }, { "docid": "d347eeb4bb7ecbfac38b0c1d9580b2df", "score": "0.6365868", "text": "public static boolean isOperand(String s){ \n try{ \n Integer.parseInt(s); \n }\n catch(NumberFormatException e){ \n return false; \n }\n catch(NullPointerException e){ \n return false; \n } \n return true; \n }", "title": "" }, { "docid": "a64f8cde88c4836770d104505b0f10b6", "score": "0.6362873", "text": "private boolean isDigit(char nextChar) \n\t{\n\t\tswitch (nextChar)\n\t\t{\n\t\tcase '0': case '1': case '2': case '3': case '4': case '5':\n\t\tcase '6': case '7': case '8': case '9':\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "title": "" }, { "docid": "7f29efcb8c5a0f39dec43811140b9ae3", "score": "0.63613737", "text": "public boolean ifHaveOp(String str){\n\t\n\tfor(int i=0;i<str.length();i++){\n\t\tif(str.charAt(i)=='E'){\n\t\t\ti++;\n\t\t\tcontinue;\n\t\t}\n\t\t\t\n\t\tswitch (str.charAt(i)) {\n\t\tcase 43: //+\n\t\t\treturn true;\n\t\tcase 45://-\n\t\t\treturn true;\n\t\tcase 47: // -/-\n\t\t\treturn true;\n\t\tcase 42: // *\n\t\t\treturn true;\n\t\tcase 94: // ^\n\t\t\treturn true;\n\t\tdefault:\n\t\t\tbreak;\n\t\t}\n\t}\n\t\t\t\n\t\n\treturn false;\n\n}", "title": "" }, { "docid": "b594ba7b892d7de212fe6f10d80a39bb", "score": "0.6358017", "text": "static boolean isNumeric(String cadena) {\n try {\n Integer.parseInt(cadena);\n return true;\n } catch (NumberFormatException ex) {\n return false;\n }\n }", "title": "" }, { "docid": "ae811317d642554da8c50a9d79642215", "score": "0.63560945", "text": "private static boolean UPCValido(String cad){\n\t\t boolean valido=true;\n\t\t for (int i=0; i<cad.length(); i++){\n\t\t //Comprueba que el digito sea un numero\n\t\t if((int)cad.charAt(i)<48 || (int)cad.charAt(i)>57){\n\t\t valido=false;\n\t\t }\n\t\t }return valido;\n\t }", "title": "" }, { "docid": "0b7095c519fc92a9402b601b64153878", "score": "0.6352967", "text": "private boolean isInputNumberValidInt(String input){\n int number;\n try {\n number=Integer.parseInt(input);\n } catch (Exception e) {\n return false;\n }\n\n if (number < 1 || number > 20) {\n return false;\n }\n\n return true;\n }", "title": "" }, { "docid": "76756ef0e282804563330a3fe35a7613", "score": "0.6347775", "text": "private boolean isDigit(char pending) {\n int justforfun = 0;\n if (pending == '1' || pending == '2' || pending == '3' || pending == '4' || pending == '5') {\n justforfun = 1;\n } else if (pending == '.' || pending == '6' || pending == '7') {\n justforfun = 1;\n } else if (pending == '8' || pending == '9' || pending == '0') {\n justforfun = 1;\n }\n return (justforfun == 1);\n }", "title": "" }, { "docid": "56460b60db8a9c6ca656c7bcf10b9f8b", "score": "0.6342596", "text": "private static boolean isPositiveNumber(final String strNum) {\n int d;\n if (strNum == null) {\n return false;\n }\n try {\n d = Integer.parseInt(strNum);\n } catch (final NumberFormatException nfe) {\n return false;\n }\n return d > 0;\n }", "title": "" }, { "docid": "24931e047f36e2b1345cb5c2e15c447c", "score": "0.6338425", "text": "public static boolean isAcceptableInt(String s) {\r\n\t\tif(s == null) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\t\r\n\t\tint l = s.length();\r\n\t\tif(l == 0) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\tfor(int i = 0; i < l; i++) {\r\n\t\t\tif(s.charAt(i) < '0' || s.charAt(i) > '9') {\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn true;\r\n\t}", "title": "" }, { "docid": "439a6c5e6ae1d0dd46850ef71d8cd124", "score": "0.6335685", "text": "private boolean hasVariedChar(String str){\n boolean valid = false;\n\n if(Pattern.matches(\"\\\\d\", str) && Pattern.matches(\"[^A-Za-z0-9]\", str)) {\n valid = true;\n } else {\n password.clearComposingText();\n Toast toast = Toast.makeText(getApplicationContext(), \"Password must include one number and a special character\", Toast.LENGTH_LONG);\n toast.show();\n }\n return valid;\n }", "title": "" }, { "docid": "378d022863875d5a53521f70bbeb93f1", "score": "0.6333993", "text": "private static boolean isNumberCorrect(String number) {\n\n String invalidChars = \" !#$%&'()*+,-./:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[]^_`abcdefghijklmnopqrstuvwxyz{|}~\";\n\n for (int i = 0; i < invalidChars.length(); i++) {\n\n if (number.contains(Character.toString(invalidChars.charAt(i)))) {\n return false;\n }\n }\n\n return true;\n }", "title": "" }, { "docid": "3099947cbfdd0b7aca71241b2a74d0fb", "score": "0.6330644", "text": "public static boolean isNumeric(String string) {\n return string.matches(\"[-+]?\\\\d*\\\\.?\\\\d+\");\n }", "title": "" }, { "docid": "3e1dea88a5541ac05e8fcfd9a35aacd0", "score": "0.63274556", "text": "public boolean validateFormat(String str) {\n\t\tif (str.indexOf(\"-\") > -1 && !isSigned())\r\n\t\t\treturn false;\r\n\t\t\r\n\t\t// Test if string is numeric\r\n\t\ttry {\r\n\t\t\tDouble.parseDouble(str);\r\n\t\t}\r\n\t\tcatch (NumberFormatException e) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\t\r\n\t\t// Test if string abides by defined precision and scale\r\n\t\tif (str.indexOf(\".\") > -1) {\r\n\t\t\ttry {\r\n\t\t\t\treturn Pattern.matches(getDecimalRegex(), str);\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t}\r\n\t\telse\r\n\t\t\treturn true;\r\n\t}", "title": "" }, { "docid": "f6be0eb2df9cddded33a39591a34fe67", "score": "0.6326995", "text": "public boolean isNum(String str) {\n\t\tchar c = str.charAt(0);\n\t\tif (Character.isDigit(c)) {\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "title": "" }, { "docid": "f9b89d875426a7494c40f36ba5b738f0", "score": "0.63257533", "text": "private static boolean isNumericDigit(String s)\r\n\t{\r\n\t\tString[] digits = {\"0\",\"1\",\"2\",\"3\",\"4\",\"5\",\"6\",\"7\",\"8\",\"9\",\"0\"};\r\n\t\tfor (String digit:digits){\r\n\t\t\tif (digit.equals(s))\r\n\t\t\t\treturn true;\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "title": "" }, { "docid": "ef14081f42aca9f8981215faddf3c226", "score": "0.6322881", "text": "public static boolean checkValidity(char userInput) {\n if (Character.isDigit(userInput)) {\n String s = Character.toString(userInput);\n int number = Integer.parseInt(s);\n if (number > 0 && number < 10) {\n return true;\n }\n }\n return false;\n }", "title": "" }, { "docid": "9f56eb5632fd4fed9764746e832bbb29", "score": "0.6316728", "text": "@Test\n\tvoid isWordFollowdByNumLetterAndDigit() {\n\t\tassertFalse(PasswordChecker.isWordFollowedByNum(\"A1\"));\n\t}", "title": "" }, { "docid": "ee3b29413d8ca2227ddc7a557df24723", "score": "0.63052917", "text": "public static boolean isNumber(String str) {\n \n //Let´s try parse to verify\n try {\n \n double d = Double.parseDouble(str);\n return true;\n \n } catch (Exception e) {\n \n return false;\n }\n }", "title": "" }, { "docid": "d93513d4c790450271331f96eccfd2aa", "score": "0.63040775", "text": "static Boolean isOperand(char c) {\n if(c >= 48 && c <= 57)\n return true;\n else\n return false;\n }", "title": "" }, { "docid": "e6a9d9fb1647b11f9bc6801f54b56ddf", "score": "0.6302346", "text": "private static boolean isInteger(String s) {\n boolean nonZeroNumber = s.matches(\"-?[1-9]\\\\d*\");\n boolean zeroNumber = s.matches(\"-?0\");\n return nonZeroNumber || zeroNumber;\n }", "title": "" }, { "docid": "f5ece486a7e3ec4fce8f07d76a0ecedf", "score": "0.62986046", "text": "public static boolean isNumber( String s ) {\n try {\n \t Integer.parseInt(s);\n \t return true;\n \t}\n catch( NumberFormatException e ) {\n \t return false;\n \t}\n }", "title": "" }, { "docid": "cde634f5d1d3ce80e8aa96a5415ad049", "score": "0.62960804", "text": "private boolean checkSigns(String expressionString) {\n\t\treturn expressionString.contains(\"+\") || expressionString.contains(\"-\") || expressionString.contains(\"*\")\r\n\t\t\t\t|| expressionString.contains(\"/\");\r\n\t}", "title": "" }, { "docid": "99c251fb34c3f70cfc15afb140794ec2", "score": "0.6288519", "text": "public boolean isDigit(String s)\r\n\t{\n\t\tfor(char c : s.toCharArray())\r\n\t\t{\r\n\t\t if(!(Character.isDigit(c)))\r\n\t\t {\r\n\t\t return false;\r\n\t\t }\r\n\t\t}\r\n\t\t//return false;\r\n\t\treturn true;\r\n\t}", "title": "" }, { "docid": "52e759ab840a0f13dd42ba8714cde812", "score": "0.62797546", "text": "public int isNumber(final String a) {\n if(a == null || a.length() == 0 || a.charAt(a.length()-1) == '.' )\n return 0;\n int i = 0;\n int dot = 0;\n int e = 0;\n int num = 0;\n char temp = a.charAt(i);\n if(temp == '+' || temp == '-' || temp == ' ')\n i++;\n while(i < a.length()){\n temp = a.charAt(i);\n if((temp >= '0' && temp <= '9') ){\n num++; \n }\n else if(temp == '+' || temp == '-'|| temp == ' '){\n \n }\n else if(temp == '.' && i < a.length()-1 && (a.charAt(i+1) >= '0' && a.charAt(i+1) <= '9')){\n if(e > 0)\n return 0;\n else\n dot++;\n }\n else if(temp == 'e'){\n e++;\n } \n else\n return 0;\n i++;\n }\n if(num < 1) return 0;\n if(dot > 1 || e > 1) return 0;\n \n return 1;\n }", "title": "" }, { "docid": "e77f84a74f44b0599e137c0395f5d90a", "score": "0.627958", "text": "public static boolean isNumber (final String str) {\n\t\treturn str.matches(\"[0-9.]\");\n\t}", "title": "" }, { "docid": "01f484125394fc0f09b479012adef488", "score": "0.6270693", "text": "public static boolean isValid(String s)\n {\n Pattern p = Pattern.compile(\"(0/91)?[7-9][0-9]{9}\");\n\n // Pattern class contains matcher() method\n // to find matching between given number\n // and regular expression\n Matcher m = p.matcher(s);\n // (m.find() && m.group().equals(s));\n return true;\n }", "title": "" }, { "docid": "26c4e15e298a9c9de7aa9eb38b7ce332", "score": "0.62701535", "text": "private static boolean isNumber(String name) {\n for (int i = 0; i < name.length(); i++) {\n if (!Character.isDigit(name.charAt(i)))\n return false;\n }\n return true;\n }", "title": "" }, { "docid": "1fcfe60d564168df01fd1820f5cb3713", "score": "0.6269959", "text": "static boolean isNumeric(String cadena) {\n\t\ttry {\n\t\t\tInteger.parseInt(cadena);\n\t\t\treturn true;\n\t\t} catch (NumberFormatException ex) {\n\t\t\treturn false;\n\t\t}\n\t}", "title": "" }, { "docid": "cc20a10e7e998e0fbb108a057496ae85", "score": "0.62689006", "text": "private static boolean isContainsInt(String expression) {\n try {\n Integer.parseInt(expression.replace(\" \", \"\"));\n return true;\n } catch (Exception e) {\n return false;\n }\n }", "title": "" }, { "docid": "4d4ae38f8a6f2257171722d8f1a5a6f4", "score": "0.62655914", "text": "private boolean isInteger(String argument) {\n\t\tif (argument.matches(\"[-\\\\+]?[0-9][0-9]*\")) {\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "title": "" }, { "docid": "284208568614e269ae01737b248200a9", "score": "0.6257234", "text": "private static boolean checkInt(String s) {\n\t\ttry {\n\t\t\tInteger.parseInt(s);\n\t\t\treturn true;\n\t\t} catch (Exception e) {\n\t\t\treturn false;\n\t\t}\n\t}", "title": "" } ]
d10697a1788eaa18d1c8494d8c28f694
this is only good for locale == English
[ { "docid": "0bd3775ec041b37f8e29dd8928855de1", "score": "0.0", "text": "private String ordinalize(int count) {\n String countString = Integer.toString(count);\n if (countString.endsWith(\"1\")) {\n return countString + \"st\";\n } else if (countString.endsWith(\"2\")) {\n return countString + \"nd\";\n } else if (countString.endsWith(\"3\")) {\n return countString + \"rd\";\n }\n return countString + \"th\";\n }", "title": "" } ]
[ { "docid": "92ecf0b038cca3cc390342358275c160", "score": "0.7428933", "text": "Locale getLocale();", "title": "" }, { "docid": "4bca262ab2afec0648bbc52b6d9b06ef", "score": "0.70752627", "text": "boolean hasLocale();", "title": "" }, { "docid": "4bca262ab2afec0648bbc52b6d9b06ef", "score": "0.70752627", "text": "boolean hasLocale();", "title": "" }, { "docid": "4bca262ab2afec0648bbc52b6d9b06ef", "score": "0.70752627", "text": "boolean hasLocale();", "title": "" }, { "docid": "4bca262ab2afec0648bbc52b6d9b06ef", "score": "0.70752627", "text": "boolean hasLocale();", "title": "" }, { "docid": "7da5587d27c8286e510308fce766aef3", "score": "0.7044112", "text": "@BeforeClass\n public static void forceEnglishLocale() {\n Locale.setDefault(Locale.ENGLISH);\n }", "title": "" }, { "docid": "339f2bf45f65d7712bae9d032fbe0ac1", "score": "0.7029345", "text": "public String getLocale();", "title": "" }, { "docid": "8a78f086f464dc4c46d5c4c59f705927", "score": "0.6935089", "text": "public Locale getLocale();", "title": "" }, { "docid": "f62a243e1200a96ce1273fcc504c6b05", "score": "0.68628025", "text": "java.lang.String getLocale();", "title": "" }, { "docid": "f62a243e1200a96ce1273fcc504c6b05", "score": "0.68628025", "text": "java.lang.String getLocale();", "title": "" }, { "docid": "f62a243e1200a96ce1273fcc504c6b05", "score": "0.68628025", "text": "java.lang.String getLocale();", "title": "" }, { "docid": "f62a243e1200a96ce1273fcc504c6b05", "score": "0.68628025", "text": "java.lang.String getLocale();", "title": "" }, { "docid": "8460730a6ddd3fecfb6f9cbe3e04d909", "score": "0.68091965", "text": "String descriptionInDefaultLocale();", "title": "" }, { "docid": "bf897d9b08f97364f09af2ae3c0566a7", "score": "0.6773897", "text": "LocaleProvider getLocalizerProvider();", "title": "" }, { "docid": "923dab848ff23d7067c5cf7995b389da", "score": "0.675922", "text": "@Override\n public void setLocale(Locale arg0) {\n \n }", "title": "" }, { "docid": "8ca8d5fb73ee9e24756f8be5310b3476", "score": "0.6613592", "text": "@Test\r\n public void getMessage() {\r\n\r\n MessageServiceImpl messageServiceImpl = new MessageServiceImpl();\r\n\r\n City city = new City(\"New York\", \"\");\r\n\r\n System.out.println(\"Current Locale: \" + Locale.getDefault());\r\n \r\n String message = messageServiceImpl.getMessage(city);\r\n\r\n System.out.println(message);\r\n\r\n Locale.setDefault(new Locale(\"ru\", \"ru\"));\r\n System.out.println(\"Current Locale: \" + Locale.getDefault());\r\n\r\n String ruMessage = messageServiceImpl.getMessage(city);\r\n System.out.println(ruMessage);\r\n\r\n }", "title": "" }, { "docid": "ec9328690b1629e6efba53bf692d55a0", "score": "0.6601079", "text": "static public String normalizeLocale(String p_locale)\n {\n String result = p_locale;\n int len = p_locale.length();\n\n p_locale = p_locale.toLowerCase();\n\n // Variations are not allowed.\n if (len > 5)\n {\n p_locale = p_locale.substring(0, 5);\n len = 5;\n }\n\n // Now len is 5 (default case) or less.\n if (len == 5)\n {\n String lang = p_locale.substring(0, 2);\n String country = p_locale.substring(3, 5);\n\n result = lang + \"_\" + country.toUpperCase();\n }\n else if (len < 5)\n {\n String lang = p_locale.substring(0, 2);\n\n if (lang.equals(\"ar\"))\n result = \"ar_SA\";\n else if (lang.equals(\"be\"))\n result = \"be_BY\";\n else if (lang.equals(\"bg\"))\n result = \"bg_BG\";\n else if (lang.equals(\"ca\"))\n result = \"ca_ES\";\n else if (lang.equals(\"cs\"))\n result = \"cs_CZ\";\n else if (lang.equals(\"da\"))\n result = \"da_DK\";\n else if (lang.equals(\"de\"))\n result = \"de_DE\";\n else if (lang.equals(\"el\"))\n result = \"el_GR\";\n else if (lang.equals(\"en\"))\n result = \"en_US\";\n else if (lang.equals(\"es\"))\n result = \"es_ES\";\n else if (lang.equals(\"et\"))\n result = \"et_EE\";\n else if (lang.equals(\"fi\"))\n result = \"fi_FI\";\n else if (lang.equals(\"fr\"))\n result = \"fr_FR\";\n else if (lang.equals(\"he\"))\n result = \"he_IL\";\n else if (lang.equals(\"hr\"))\n result = \"hr_HR\";\n else if (lang.equals(\"hu\"))\n result = \"hu_HU\";\n else if (lang.equals(\"is\"))\n result = \"is_IS\";\n else if (lang.equals(\"it\"))\n result = \"it_IT\";\n else if (lang.equals(\"ja\"))\n result = \"ja_JP\";\n else if (lang.equals(\"ko\"))\n result = \"ko_KR\";\n else if (lang.equals(\"lt\"))\n result = \"lt_LT\";\n else if (lang.equals(\"lv\"))\n result = \"lv_LV\";\n else if (lang.equals(\"mk\"))\n result = \"mk_MK\";\n else if (lang.equals(\"nl\"))\n result = \"nl_NL\";\n else if (lang.equals(\"no\"))\n result = \"no_NO\";\n else if (lang.equals(\"pl\"))\n result = \"pl_PL\";\n else if (lang.equals(\"pt\"))\n result = \"pt_PT\";\n else if (lang.equals(\"ro\"))\n result = \"ro_RO\";\n else if (lang.equals(\"ru\"))\n result = \"ru_RU\";\n else if (lang.equals(\"sh\"))\n result = \"sh_YU\";\n else if (lang.equals(\"sk\"))\n result = \"sk_SK\";\n else if (lang.equals(\"sl\"))\n result = \"sl_SI\";\n else if (lang.equals(\"sq\"))\n result = \"sq_AL\";\n else if (lang.equals(\"sr\"))\n result = \"sr_YU\";\n else if (lang.equals(\"sv\"))\n result = \"sv_SV\";\n else if (lang.equals(\"th\"))\n result = \"th_TH\";\n else if (lang.equals(\"tr\"))\n result = \"tr_TR\";\n else if (lang.equals(\"zh\"))\n result = \"zh_CN\";\n }\n\n return result;\n }", "title": "" }, { "docid": "6781ed28aad33b4d2d689a9718bd8f17", "score": "0.6552744", "text": "@Test\n public void testEnglishOnly() {\n final DefaultInternationalString toTest = new DefaultInternationalString();\n toTest.add(Locale.ENGLISH, MESSAGE);\n assertSame(MESSAGE, toTest.toString());\n assertSame(MESSAGE, toTest.toString(null));\n assertSame(MESSAGE, toTest.toString(Locale.ROOT));\n validate(toTest);\n }", "title": "" }, { "docid": "cfa621753c6f9dafc89cd38fa515d985", "score": "0.65357375", "text": "@Override\r\n public void setComponentLocale(Locale l) {\n\r\n }", "title": "" }, { "docid": "b1b94acfc40354438522fbe9de4df420", "score": "0.64924145", "text": "public abstract Locale getDefaultLocale();", "title": "" }, { "docid": "5c25e6702197b3d1b54dad1f067581df", "score": "0.64904624", "text": "public abstract Locale get();", "title": "" }, { "docid": "1fee854a77d808620cad38c9adb6dd32", "score": "0.6478012", "text": "java.util.List<String> getSystemSupportedLocaleList();", "title": "" }, { "docid": "ca9ff2fbd2c7866afb2498f03fd00305", "score": "0.6450598", "text": "@Override\r\n public Locale getLocale() {\n return null;\r\n }", "title": "" }, { "docid": "674e06cabbdbe73c9d1d0dfd18c3b3eb", "score": "0.6425247", "text": "private void settingLanguageLocale() {\n/* languageCode = Utility.getInstance().getLanguage(ActivitySplash.this);\n if (languageCode.matches(\"\") || languageCode.matches(langaugeCodeEnglish)) {\n Utility.getInstance().localisation(ActivitySplash.this, langaugeCodeEnglish);\n Utility.getInstance().setLanguage(ActivitySplash.this, langaugeCodeEnglish);\n } else if (languageCode.matches(languageCodeMarathi)) {*/\n Utility.getInstance().localisation(ActivityOtp.this, languageCodeMarathi);\n Utility.getInstance().setLanguage(ActivityOtp.this, languageCodeMarathi);\n /*} else {\n Log.e(LOGPOS, \"settingLanguageLocale: Something went wrong in language setting locale\");\n }*/\n }", "title": "" }, { "docid": "9563eea94723336868c85b57fe83e4b6", "score": "0.6395613", "text": "ULocale getLocale()\n {\n return locale;\n }", "title": "" }, { "docid": "3e461287e57c17465d6f9250e365fc82", "score": "0.6394936", "text": "String description( Locale locale );", "title": "" }, { "docid": "a00e09f702a5f7b10a16b6081fa03ae1", "score": "0.63847595", "text": "public boolean getLanguage(){\r\n return localLanguage;\r\n }", "title": "" }, { "docid": "e59d4b1555eb4c2d33ee5bac546b7151", "score": "0.6361121", "text": "@Override\n public void onBeforeLocaleChanged() { }", "title": "" }, { "docid": "5039281f2849fa82327bf2ccd01a3072", "score": "0.6333719", "text": "boolean hasSourceLocale();", "title": "" }, { "docid": "1efabaaf7d46f2f26f6390c988d3f902", "score": "0.6331398", "text": "public Locale getLocale() {\n return locale;\n }", "title": "" }, { "docid": "da284884746a62dc5306f5d7af41f6d8", "score": "0.6311143", "text": "com.google.protobuf.ByteString getLocaleBytes();", "title": "" }, { "docid": "30aa1c849f848254711c99cc51e84d66", "score": "0.6305111", "text": "public Locale getActiveLocale();", "title": "" }, { "docid": "b528b2216a43f501e4803dc28650e8d5", "score": "0.6300726", "text": "String localize(Locale locale, String key);", "title": "" }, { "docid": "912c91488116b11c883f204132b59a6e", "score": "0.62988746", "text": "public Locale getApplicationLocale();", "title": "" }, { "docid": "b72e8c5fb3277c5a6baf6c14a6f0ed80", "score": "0.6286589", "text": "public void loadLocale() {\n\n SharedPreferences preferences = getSharedPreferences(\"settigs\", Activity.MODE_PRIVATE);\n\n String lang = preferences.getString(\"MY_LANG\", \"\");\n setLocale(lang);\n\n }", "title": "" }, { "docid": "b1fe4154c58d9b2a39daf37c69251cf9", "score": "0.62850994", "text": "@Test\n public void testEnglishAndFrench() {\n final DefaultInternationalString toTest = new DefaultInternationalString(MESSAGE);\n assertSame(MESSAGE, toTest.toString());\n toTest.add(Locale.ENGLISH, MESSAGE_en);\n toTest.add(Locale.FRENCH, MESSAGE_fr); assertLocalized(toTest, MESSAGE_fr);\n toTest.add(Locale.CANADA_FRENCH, MESSAGE_fr_CA); assertLocalized(toTest, MESSAGE_fr_CA);\n validate(toTest);\n }", "title": "" }, { "docid": "6dbeab687c2339c876a9c0ad1cbfbece", "score": "0.62757593", "text": "@Override\n public Locale getLocale() {\n return locale;\n }", "title": "" }, { "docid": "b263394eafd7ddf91eb448ad88226c92", "score": "0.62662387", "text": "public abstract void setDefaultLocale(Locale locale);", "title": "" }, { "docid": "f997aae4f0633ebb8da704fcb9dc0bee", "score": "0.62637883", "text": "public void setLocale(Locale locale) {\n this.locale = locale;\n }", "title": "" }, { "docid": "3e26ba8200c45ea05afc658187454bf9", "score": "0.62496996", "text": "public void setLocale(Locale loc)\n/* */ {\n/* 141 */ if (!this.included) {\n/* 142 */ getResponse().setLocale(loc);\n/* */ }\n/* */ }", "title": "" }, { "docid": "c4224c870940d655f6a1960d62018add", "score": "0.6247095", "text": "@SuppressWarnings(\"static-method\")\n\t@Test\n\tpublic final void retrieveDummyMessageInEnglish()\n\t{\n\t\ttry\n\t\t{\n\t\t\tResourceBundleManager.setLocale(english);\n\n\t\t\tAssert.assertTrue(\"Not the english dummy message!\", Collator.getInstance(english)\n\t\t\t\t\t.equals(ResourceBundleManager.getMessage(BundleDemeterBase.TestDummy), DUMMY_ENGLISH));\n\n\t\t}\n\t\tcatch (final ResourceException e)\n\t\t{\n\t\t\tfail(e.getLocalizedMessage());\n\t\t}\n\t}", "title": "" }, { "docid": "108a56cb09a069c17d62e647657cb17a", "score": "0.6228702", "text": "@Override\n public Locale getLocale() {\n return null;\n }", "title": "" }, { "docid": "f1c9e18df20fbe4055c2bb015174418f", "score": "0.6227926", "text": "native public java.lang.String toLocaleString();", "title": "" }, { "docid": "7349f3c3872f81b825ad8b2029cec1ef", "score": "0.6227892", "text": "private Locale getMyLocale() {\n ResourceBundle bundle1 = ResourceBundle.getBundle(\"demointernalization/config/config\");\n Locale myLocale = new Locale(bundle1.getString(\"lang\"), bundle1.getString(\"country\"));\n return myLocale;\n }", "title": "" }, { "docid": "00a59126e2e77a82fcb93a5a050d7acb", "score": "0.622785", "text": "boolean hasTargetLocale();", "title": "" }, { "docid": "d0098fc186efa98c45f8850fc1b7d1d0", "score": "0.6197386", "text": "private static Locale getLocale() {\n\t\tif (System.getProperty(\"locale\") != null) {\n\t\t\treturn Locale.forLanguageTag(System.getProperty(\"locale\"));\n\t\t}\n\t\treturn Locale.US;\n\t}", "title": "" }, { "docid": "62f22622288970e6da29b9ebaa4ef232", "score": "0.6184101", "text": "private static void extractLocales(HashMap languages, ArrayList q, ArrayList l) {\n Enumeration e = Collections.enumeration(q);\n while (e.hasMoreElements()) {\n ArrayList v =\n (ArrayList) languages.get(((Double) e.nextElement()).toString());\n Enumeration le = Collections.enumeration(v);\n while (le.hasMoreElements()) {\n String language = (String) le.nextElement();\n String country = \"\";\n int countryIndex = language.indexOf(\"-\");\n if (countryIndex > -1) {\n country = language.substring(countryIndex + 1).trim();\n language = language.substring(0, countryIndex).trim();\n }\n l.add(new Locale(language, country));\n }\n }\n }", "title": "" }, { "docid": "8a4c04377b7014d16cedbbe4e5d8e07d", "score": "0.6153635", "text": "String getMasterLanguage();", "title": "" }, { "docid": "58f65f92a1ce7a56d7a8f941d54fea72", "score": "0.6132891", "text": "@Override\r\n\tpublic Locale getLocale() {\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "58f65f92a1ce7a56d7a8f941d54fea72", "score": "0.6132891", "text": "@Override\r\n\tpublic Locale getLocale() {\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "62f5a3ce7d1174574680fa53f3cbbb07", "score": "0.612405", "text": "public void loadLocale(){\n SharedPreferences prefs = getSharedPreferences(\"Settings\", Activity.MODE_PRIVATE);\n String language = prefs.getString(\"My_Lang\",\"\");\n setLocale(language);\n }", "title": "" }, { "docid": "36f555d035bb059ca45b75e9d42d815a", "score": "0.6119521", "text": "public static boolean isEnglish(Locale locale) {\r\n String lang = Locale.ENGLISH.getLanguage();\r\n if (lang.equals(locale.getLanguage())) {\r\n return true;\r\n }\r\n return false;\r\n }", "title": "" }, { "docid": "5ed94ebd7eb6cd351717a15c2a14a276", "score": "0.61129755", "text": "public void setActiveLocale(Locale iLocale);", "title": "" }, { "docid": "73e939410fafc5d5170cb569ee367159", "score": "0.6110934", "text": "public static int m3366a(Locale locale) {\n String str;\n int i = Build.VERSION.SDK_INT;\n if (i >= 17) {\n return TextUtils.getLayoutDirectionFromLocale(locale);\n }\n if (locale != null && !locale.equals(f4606a)) {\n Method method = C1006q7.f3779a;\n if (i >= 24) {\n str = ULocale.addLikelySubtags(ULocale.forLocale(locale)).getScript();\n } else if (i >= 21) {\n try {\n str = ((Locale) C1006q7.f3780b.invoke((Object) null, new Object[]{locale})).getScript();\n } catch (IllegalAccessException | InvocationTargetException unused) {\n str = locale.getScript();\n }\n } else {\n String locale2 = locale.toString();\n try {\n Method method2 = C1006q7.f3780b;\n if (method2 != null) {\n locale2 = (String) method2.invoke((Object) null, new Object[]{locale2});\n }\n } catch (IllegalAccessException | InvocationTargetException unused2) {\n }\n if (locale2 != null) {\n try {\n Method method3 = C1006q7.f3779a;\n if (method3 != null) {\n str = (String) method3.invoke((Object) null, new Object[]{locale2});\n }\n } catch (IllegalAccessException | InvocationTargetException unused3) {\n }\n }\n str = null;\n }\n if (str == null) {\n byte directionality = Character.getDirectionality(locale.getDisplayName(locale).charAt(0));\n if (directionality == 1 || directionality == 2) {\n return 1;\n }\n return 0;\n } else if (str.equalsIgnoreCase(\"Arab\") || str.equalsIgnoreCase(\"Hebr\")) {\n return 1;\n }\n }\n return 0;\n }", "title": "" }, { "docid": "0cd65b14d50ab372c46fcfd61847aeb2", "score": "0.60812914", "text": "public String getLocale() {\n return mLocale;\n }", "title": "" }, { "docid": "4177b1ef67a12133d5810c0ed40ec825", "score": "0.6068586", "text": "public static Locale getSupportedLocale(Locale locale) {\n\n Locale[] availableLocales = getSupportedLocales();\n boolean isSupported = false;\n Locale supportedLocale = null;\n String testLocale = \"\";\n if (availableLocales == null) {\n supportedLocale = getDefaultLocale();\n } else {\n if (!locale.getVariant().equals(\"\")) {\n testLocale = locale.toString();\n for (int i = 0; i < availableLocales.length; i++) {\n if (testLocale.equalsIgnoreCase(availableLocales[i]\n .toString())) {\n isSupported = true;\n supportedLocale = availableLocales[i];\n }\n\n }\n }\n\n if (!(isSupported && locale.getCountry().equals(\"\"))) {\n testLocale = locale.getLanguage() + \"_\"\n + locale.getCountry();\n\n for (int i = 0; i < availableLocales.length; i++) {\n if (testLocale.equalsIgnoreCase(availableLocales[i]\n .toString())) {\n isSupported = true;\n supportedLocale = availableLocales[i];\n }\n }\n\n }\n if (!isSupported) {\n testLocale = locale.getLanguage();\n\n for (int i = 0; i < availableLocales.length; i++) {\n if (testLocale.equalsIgnoreCase(availableLocales[i]\n .toString())) {\n isSupported = true;\n supportedLocale = availableLocales[i];\n }\n\n }\n }\n if (!isSupported) {\n supportedLocale = getDefaultLocale();\n }\n }\n return supportedLocale;\n }", "title": "" }, { "docid": "fe6a59a8a517f44e4b7c0feb7da467d3", "score": "0.60597205", "text": "@Override\n\tpublic Locale resolveLocale(HttpServletRequest request) {\n\t\tLocale lo = Locale.getDefault();\n//\t\tString lang = \"zh\";\n//\t\tif (request.getParameter(\"l\") != null) {\n//\t\t\tlang = request.getParameter(\"l\");\n//\t\t}\n//\n//\t\tString coun = \"CN\";\n//\t\tif (request.getParameter(\"c\") != null) {\n//\t\t\tcoun = request.getParameter(\"c\");\n//\t\t}\n\n//\t\tlo = new Locale(lang, coun);\n\t\t//¹ú¼Ê»¯\n\t\tString lang = request.getParameter(\"l\");\n\t\tString coun = request.getParameter(\"c\");\n\t\tif(!StringUtils.isEmpty(lang)&&!StringUtils.isEmpty(coun)) {\n\t\t\tlo=new Locale(lang,coun);\n\t\t\trequest.getSession().setAttribute(\"Locale\", lo);\n\t\t}\n\t\tif(request.getSession().getAttribute(\"Locale\")!=null) {\n\t\t\tlo=(Locale)request.getSession().getAttribute(\"Locale\");\n\t\t}\n\t\treturn lo;\n\t}", "title": "" }, { "docid": "5434176fc1cc9e0fcc7918c8eda54dce", "score": "0.6058739", "text": "String getLanguage();", "title": "" }, { "docid": "5434176fc1cc9e0fcc7918c8eda54dce", "score": "0.6058739", "text": "String getLanguage();", "title": "" }, { "docid": "5434176fc1cc9e0fcc7918c8eda54dce", "score": "0.6058739", "text": "String getLanguage();", "title": "" }, { "docid": "c688a24ddb54faae85c442b4ea1e7e0d", "score": "0.6050812", "text": "public String getEnglish() {\n return english;\n }", "title": "" }, { "docid": "b4bdebd7f7a1ad9288744e773498e31b", "score": "0.6050067", "text": "@Override\n\t\t\tpublic Locale getLocale() {\n\t\t\t\treturn null;\n\t\t\t}", "title": "" }, { "docid": "c3358c0c6ac7eb4bac8e9f7c81ddd4e1", "score": "0.60340303", "text": "private static String convertOldISOCodes(String language){\n language=LocaleUtils.toLowerString(language).intern();\n if(language==\"he\"){\n return \"iw\";\n }else if(language==\"yi\"){\n return \"ji\";\n }else if(language==\"id\"){\n return \"in\";\n }else{\n return language;\n }\n }", "title": "" }, { "docid": "c253b969f93a8fdf0e50e1fd19f648db", "score": "0.6032775", "text": "default Locale getDefaultLocale(){\r\n\t\treturn Locale.getDefault();\r\n\t}", "title": "" }, { "docid": "620a2e1d7a5f0dbb75be4153a171b508", "score": "0.6030084", "text": "public String getEnglish() {\n return english;\n }", "title": "" }, { "docid": "620a2e1d7a5f0dbb75be4153a171b508", "score": "0.6030084", "text": "public String getEnglish() {\n return english;\n }", "title": "" }, { "docid": "620a2e1d7a5f0dbb75be4153a171b508", "score": "0.6030084", "text": "public String getEnglish() {\n return english;\n }", "title": "" }, { "docid": "4bd035e915bb92b4d176b8a50afde5c9", "score": "0.60275054", "text": "@Override\n\tpublic Locale getLocale() {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "31e0dc70660348639f116dc300ced755", "score": "0.60118777", "text": "private void getLanguage() {\n\t\tSystem.out\n\t\t\t\t.println(\"Voulez-vous jouer en français ? Si oui, appuyez sur 1.\");\n\t\tSystem.out\n\t\t\t\t.println(\"Or do you prefer playing in English ? If so, press 2.\");\n\n\t\tScanner scanner = new Scanner(System.in);\n\t\tString choice = scanner.nextLine();\n\n\t\tif (choice.equals(\"1\")) {\n\t\t\tlocale = Locale.getDefault();\n\t\t} else if (choice.equals(\"2\")) {\n\t\t\tlocale = new Locale(\"en\", \"US\");\n\t\t} else {\n\t\t\tgetLanguage();\n\t\t}\n\t}", "title": "" }, { "docid": "ab913fc168637093b9caadc66dd8a996", "score": "0.6002659", "text": "com.google.protobuf.ByteString\n getLocaleBytes();", "title": "" }, { "docid": "7ed4d313fccb18139cec4eac11d75ee2", "score": "0.6001046", "text": "public void initializeLocale()\n {\n \n HttpServletRequest req = \n (HttpServletRequest) FacesContext.getCurrentInstance().getExternalContext().getRequest();\n \n String locale = req.getHeader(\"accept-language\").split(\",\")[0];\n System.out.println(\"Locale: \" + locale);\n FacesContext.getCurrentInstance().getViewRoot().setLocale(new Locale(locale));\n }", "title": "" }, { "docid": "91efe4e5b711157f75e2c5e8476b6bb2", "score": "0.599669", "text": "public void loadLocale() {\n lang = sharedPreferences.getString(LOCALE_VALUE, \"\");\n lang_pos = sharedPreferences.getInt(LANGUAGE_VALUE, ENGLISH);\n music_enable = sharedPreferences.getBoolean(MUSIC_ENABLE_VALUE, true);\n difficulty = sharedPreferences.getInt(DIFFICULTY_VALUE, MIXED);\n\n changeLocale();\n }", "title": "" }, { "docid": "41a3b554fa1e57ea2a3e6bbb158f5680", "score": "0.59889734", "text": "@Override\n protected void gwtSetUp() throws Exception {\n setLocale(\"en\");\n }", "title": "" }, { "docid": "0d42852ad1e249ce8296da4f855a7207", "score": "0.598701", "text": "public Locale getLocale()\n {\n return locale;\n }", "title": "" }, { "docid": "49ec948fd04dd9aa7dcb93bb1f0637e7", "score": "0.5986926", "text": "public void loadLocale() {\n SharedPreferences sharedPreferences = PreferenceManager.getDefaultSharedPreferences(this);\n String language = sharedPreferences.getString(\"language\", \"\");\n setLocale(language);\n }", "title": "" }, { "docid": "d74433548fe677da87b9d695f9a989db", "score": "0.5980941", "text": "@Test\n public void localeShouldTranslateTest()\n {\n URL inputUrl = CommandLineTest.class.getResource(\"valid.epub\");\n runCommandLineTest(0, inputUrl.getPath(), \"--locale\", \"fr-FR\");\n\n assertTrue(\"Valid Locale without translation should fallback to JVM default.\",\n outContent.toString().contains(\"faites en utilisant\"));\n }", "title": "" }, { "docid": "edd827f16d38f173b2e67fd76c484234", "score": "0.59776914", "text": "private String nativeLanguagueSupport(String question)\n {\n ByteArrayOutputStream bout = new ByteArrayOutputStream();\n PrintStream out = new PrintStream(bout);\n\n String nativeLang = MultiLingual.detectLanguage(question, out);\n\n if( nativeLang != \"en\") {\n question = MultiLingual.translateText(question, out);\n }\n return question;\n }", "title": "" }, { "docid": "641dc09e0fd0788e1cc4c78b4263c096", "score": "0.5977472", "text": "String getLang1();", "title": "" }, { "docid": "36002b5365946d8af1c76274a800dd73", "score": "0.59729743", "text": "public static void main(String[] args) {\n Locale localeFromBuilder = new Locale.Builder().setLanguage(\"en\").setRegion(\"GB\").build();\r\n System.out.println(\"localeFromBuilder: \"+localeFromBuilder);\r\n \r\n //Locale from forLanguageTag method\r\n Locale forLangLocale = Locale.forLanguageTag(\"en-GB\");\r\n System.out.println(\"forLangLocale: \"+forLangLocale);\r\n \r\n //Using Locale Contant\r\n Locale localeCosnt = Locale.FRANCE;\r\n System.out.println(\"localeCosnt: \"+localeCosnt);\r\n\t}", "title": "" }, { "docid": "01d2f112710752ef95b1a932d72519c4", "score": "0.5965276", "text": "public String getLocale() {\n return this.locale;\n }", "title": "" }, { "docid": "a2c43d2a5bfa8d9b82a6e7a8195567a8", "score": "0.596458", "text": "public static void initLocale() {\n String loc = appProperties.getProperty(\"language\"); // $NON-NLS-1$\n if (loc != null) {\n String []parts = JOrphanUtils.split(loc,\"_\");// $NON-NLS-1$\n if (parts.length==2) {\n setLocale(new Locale(parts[0], parts[1]));\n } else {\n setLocale(new Locale(loc, \"\")); // $NON-NLS-1$\n }\n \n } else {\n setLocale(Locale.getDefault());\n }\n }", "title": "" }, { "docid": "cbdd09ff36cd27d3d4344feca479dd51", "score": "0.59637386", "text": "@Test\n public void checkLanguage() throws Exception {\n assertEquals(\"fr\", fullQuery.getLanguage());\n assertNull(emptyQuery.getLanguage());\n }", "title": "" }, { "docid": "cf6ed14f574bf3833b3cdea79bb08600", "score": "0.596234", "text": "private Locales() {\n throw new AssertionError(\"You should not be attempting to instantiate this class.\");\n }", "title": "" }, { "docid": "a3944341dffd99511f1d4c38348de6b6", "score": "0.59618956", "text": "CLocale resolveLocale(String tag);", "title": "" }, { "docid": "3db0f12f0148d34cd60dfbb8d221ae52", "score": "0.59435594", "text": "public final Locale getLocale()\n/* */ {\n/* 308 */ return this._base.getLocale();\n/* */ }", "title": "" }, { "docid": "c888b8f8640d0bacf909a5f32609f085", "score": "0.59423983", "text": "private String LanguageQuery(){\n String from = sharedPreferences.getString(Constants.TRANSLATE_FROM,\"\");\n String to = sharedPreferences.getString(Constants.TRANSLATE_TO,\"\");\n return from+\"-\"+to;\n }", "title": "" }, { "docid": "eeffdd85ebf392e5bcd9351dd949b196", "score": "0.59406227", "text": "private void findCountryInLocale()\n\t{\n\t\tLocale []availableLocales = Locale.getAvailableLocales();\n\t\tfor (Locale l : availableLocales)\n\t\t{\n\t\t\t//System.out.println(l.getDisplayName());\n\t\t\tif (l.getDisplayCountry().equals(country))\n\t\t\t{\n\t\t\t\tcountryLocale = l;\n\t\t\t\tcountryCurrency = Currency.getInstance(countryLocale).getCurrencyCode();\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\t\n\t}", "title": "" }, { "docid": "6142a17b92992bc523dbb79f698d5835", "score": "0.59394675", "text": "@SuppressWarnings(\"static-method\")\n\t@Test\n\tpublic final void retrieveDummyMessageInSpanish()\n\t{\n\t\ttry\n\t\t{\n\t\t\tResourceBundleManager.setLocale(spanish);\n\n\t\t\tAssert.assertTrue(\"Not the spanish dummy message!\", Collator.getInstance(spanish)\n\t\t\t\t\t.equals(ResourceBundleManager.getMessage(BundleDemeterBase.TestDummy), DUMMY_SPANISH));\n\t\t}\n\t\tcatch (final ResourceException e)\n\t\t{\n\t\t\tfail(e.getLocalizedMessage());\n\t\t}\n\t}", "title": "" }, { "docid": "7bc090cdbcd8d24b131a2f39a9bcd9a4", "score": "0.59284395", "text": "Language language();", "title": "" }, { "docid": "234d31f717dcf30a3a3298f6623d4c6b", "score": "0.591838", "text": "@Override\n public String toString() {\n return getLocale() != null ? getLocale().toString() : \"none\";\n }", "title": "" }, { "docid": "6b2c314c496158a5f09fa3cfb4b48f1a", "score": "0.591456", "text": "private Locale() {\n\t\tlanguageCode = \"en\"; //$NON-NLS-1$\n\t\tcountryCode = \"US\"; //$NON-NLS-1$\n\t\tvariantCode = \"\"; //$NON-NLS-1$\n\t}", "title": "" }, { "docid": "f3d0077c0d8fbf12282e7eef6cbda439", "score": "0.5908481", "text": "java.lang.String getLanguage();", "title": "" }, { "docid": "f3d0077c0d8fbf12282e7eef6cbda439", "score": "0.5908481", "text": "java.lang.String getLanguage();", "title": "" }, { "docid": "f3d0077c0d8fbf12282e7eef6cbda439", "score": "0.5908481", "text": "java.lang.String getLanguage();", "title": "" }, { "docid": "0f9cfe97235513395ccefc414ea400f1", "score": "0.59054804", "text": "String getLang();", "title": "" }, { "docid": "0f9cfe97235513395ccefc414ea400f1", "score": "0.59054804", "text": "String getLang();", "title": "" }, { "docid": "c2596dfe551ce82dcb7f044e1b0415a6", "score": "0.5903938", "text": "protected static void changeLocale() {\n\t\tsupportedLocalesNames[0] = Messages.getString(\"T_CATALAN\"); //$NON-NLS-1$\n\t\tsupportedLocalesNames[1] = Messages.getString(\"T_ENGLISH\"); //$NON-NLS-1$\n\t\tsupportedLocalesNames[2] = Messages.getString(\"T_SPANISH\"); //$NON-NLS-1$\n\t}", "title": "" }, { "docid": "617ca1a5b15e09480ec46210f1a70e67", "score": "0.5898202", "text": "List<Locale> getLocales() throws MentorMeException;", "title": "" }, { "docid": "fa86acf8cd59b4415836e341c7fbab01", "score": "0.5892438", "text": "public String getLocale() {\n return locale;\n }", "title": "" }, { "docid": "093c73da358ed53772f50a8127beb590", "score": "0.5887467", "text": "TreeMap<String, String> getJavaLocaleMap();", "title": "" }, { "docid": "1ae5ea065b8e20fe5c906bf0ccd0c443", "score": "0.58732486", "text": "public java.lang.String getLocale() {\r\n return locale;\r\n }", "title": "" } ]
4ea4ee489d1db41ba7050b1d6f0b8977
/ / / /
[ { "docid": "daff46d691173080be87b6a51e7e1be5", "score": "0.0", "text": "public static Object call(ReflectorMethod p_call_0_, Object... p_call_1_) {\n/* */ try {\n/* 563 */ Method method = p_call_0_.getTargetMethod();\n/* */ \n/* 565 */ if (method == null)\n/* */ {\n/* 567 */ return null;\n/* */ }\n/* */ \n/* */ \n/* 571 */ Object object = method.invoke(null, p_call_1_);\n/* 572 */ return object;\n/* */ \n/* */ }\n/* 575 */ catch (Throwable throwable) {\n/* */ \n/* 577 */ handleException(throwable, null, p_call_0_, p_call_1_);\n/* 578 */ return null;\n/* */ } \n/* */ }", "title": "" } ]
[ { "docid": "0b640577f93787ccafd051cf7e5af6cf", "score": "0.6068762", "text": "public static void main (String[]args)\n\n {\n System.out.println (\" /\\\\\");\n System.out.println (\" //\\\\\\\\\");\n System.out.println (\" /\\\\/\\\\/\\\\\");\n System.out.println (\"+------+\");\n System.out.println (\"| |\");\n System.out.println (\"| GO |\");\n System.out.println (\"+------+\");\n System.out.println (\"| |\");\n System.out.println (\"| Java |\");\n System.out.println (\"+------+\");\n System.out.println (\"| |\");\n System.out.println (\"| GO |\");\n System.out.println (\"+------+\");\n System.out.println (\" /\\\\\");\n System.out.println (\" //\\\\\\\\\");\n System.out.println (\" /\\\\/\\\\/\\\\\");\n System.out.println ();\n\n }", "title": "" }, { "docid": "ff70abfb475dc7a03f7d0883d8610de1", "score": "0.5681093", "text": "public void CustByDiv(){\n }", "title": "" }, { "docid": "8b063922be80ea6caacddec3bb6994f1", "score": "0.5603869", "text": "Orthopedic()\n\t{\n\t}", "title": "" }, { "docid": "2c27c57e43b2fa5536a5f702d4ad1f86", "score": "0.54614395", "text": "protected void _slashMod() {\n int n2 = stack.iPop();\n int n1 = stack.iPop();\n stack.push(n1 % n2);\n stack.push(n1 / n2);\n }", "title": "" }, { "docid": "a287e36778d432d6f582d9ae0d7b50a2", "score": "0.5361014", "text": "private static void xuLyLuu() {\n\t\t\n\t}", "title": "" }, { "docid": "254959a04b78ff34042ded7c8b54cc8d", "score": "0.53375465", "text": "private static byte[] createOp(String[] arg){\n String op= arg[1];\n op= op.concat(\"/%/\");\n op= op.concat(arg[2]);\n op=op.concat(\"/%/\");\n op=op.concat(arg[3]);\n op=op.concat(\"/%/\");\n return op.getBytes();\n }", "title": "" }, { "docid": "f74e448f3377ed876d968b23eb24979a", "score": "0.5261629", "text": "protected void _dSlashMod() {\n int div = stack.iPop();\n long n = stack.dPop();\n stack.iPush((int) (n % div));\n stack.dPush(n / div);\n }", "title": "" }, { "docid": "060fd103cd64bed55f91fa8453bea3c5", "score": "0.52141434", "text": "protected void _divide() {\n int n2 = stack.iPop();\n int n1 = stack.iPop();\n stack.push(n1 / n2);\n }", "title": "" }, { "docid": "d3818a6691f4d8eb74093b246149ab9c", "score": "0.5200965", "text": "public void bw();", "title": "" }, { "docid": "d519829770328c9c6a2b593fb642ad21", "score": "0.5200847", "text": "public static void printingStuff(){\n System.out.println(\"\\\\ /\");\n System.out.println(\"/ \\\\\");\n }", "title": "" }, { "docid": "c9f0c2a4fba12564c203fd274b9b16e7", "score": "0.51997054", "text": "private void reactMain_region_Divide() {\n\t\tnextStateIndex = 0;\n\t\tstateVector[0] = State.$NullState$;\n\n\t\tsCIDefault.i %= (sCIDefault.i1 %= 4) % 4;\n\n\t\tnextStateIndex = 0;\n\t\tstateVector[0] = State.main_region_Modulo;\n\t}", "title": "" }, { "docid": "1584ffcca27afcdbd93dd014947ae625", "score": "0.51701343", "text": "public void grounded() {\n\t\t\n\t}", "title": "" }, { "docid": "85f73ccaf249224298733ca93befac2a", "score": "0.51365143", "text": "public void process(int size) {\n\n final int height = size + 2;\n final int width = size * 2 + 2;\n\n int i = 0;\n while(i < height) {\n int j = 0;\n while(j < width) {\n if(i == 0 || i == height - 1) {\n if(j == 0 || j == width - 1) {\n mOut.print(\"+\");\n } else {\n mOut.print(\"-\");\n }\n } else {\n if(j == 0 || j == width -1) {\n mOut.print(\"|\");\n } else {\n if(i == height / 2) {\n if(j == 1) {\n mOut.print(\"<\");\n } else if (j == width - 2){\n mOut.print(\">\");\n } else {\n if(i % 2 == 0) {\n mOut.print(\"-\");\n } else {\n mOut.print(\"=\");\n }\n }\n } else if(i < height / 2) {\n int min = width / 2 - i;\n int max = (width / 2 + i) - 1;\n if(j == min) {\n mOut.print(\"/\");\n } else if(j == max) {\n mOut.print(\"\\\\\");\n } else if(j > min && j < max) {\n if(i % 2 == 0) {\n mOut.print(\"-\");\n } else {\n mOut.print(\"=\");\n }\n } else {\n mOut.print(\" \");\n }\n } else {\n int min = ((width /2) - (width - i)) + 2 ;\n int max = ((width / 2) + (width - i)) - 3;\n if (j == min) {\n mOut.print(\"\\\\\");\n } else if(j == max) {\n mOut.print(\"/\");\n } else if(j > min && j < max) {\n if(i % 2 == 0) {\n mOut.print(\"-\");\n } else {\n mOut.print(\"=\");\n }\n } else {\n mOut.print(\" \");\n }\n }z\n }\n }\n j++;\n }\n mOut.println();\n i++;\n }\n mOut.println();\n }", "title": "" }, { "docid": "6ab4b478c52e0933bc164901f5eec6b7", "score": "0.5127023", "text": "@Override\n\t\tpublic String toString() {\n\t\t\treturn x + \" / \" + y;\n\t\t}", "title": "" }, { "docid": "35018dcc9cdeaaad8f6e18be297dafd4", "score": "0.5118352", "text": "private static void division() {\n\t\t output = 5+6;\n\t\t\n\t}", "title": "" }, { "docid": "0e14404fbe4aa069df5063f842b00af4", "score": "0.50895154", "text": "public static TA_Line_Char slash(){\r\n\t\treturn TA_Line_Char.create('/', \"line using slash character '/'\");\r\n\t}", "title": "" }, { "docid": "6d06a1167e5ec30e5a1fe5574601921d", "score": "0.50785565", "text": "void action(){\n\nredX += redDX; \nif ( redX< left || redX> right ) redDX *= -1;\n\nredY += redDY; \nif ( redY<top || redY>bottom ) redDY *= -1;\n\nbluX += bluDX;\nif ( bluX < left || bluX > right) bluDX *= -1;\n\nbluY += bluDY;\nif (bluY < top || bluY > bottom) bluDY *= -1;\n\nyelX += yelDX;\nif (yelX < left || yelX > right) yelDX *= -1;\n\nyelY += yelDY;\nif (yelY < top || yelY > bottom) yelDY *= -1; \n\ncueX += cueDX;\nif ( cueX < left || cueX > right) cueDX *= -1;\n\ncueY += cueDY;\nif ( cueY < top || cueY > bottom) cueDY *= -1;\n\n}", "title": "" }, { "docid": "832b8f43e9730b2ef0904f77fca98b28", "score": "0.50693256", "text": "public int divsion(int x, int y) {\r\n\tSystem.out.println(\"division method \");\r\n\tint d=x/y;\r\n\treturn d;\r\n}", "title": "" }, { "docid": "d1632760ef9a60d86cac2f7f66b0d697", "score": "0.5034177", "text": "public int w()\r\n/* 189: */ {\r\n/* 190:219 */ return 160;\r\n/* 191: */ }", "title": "" }, { "docid": "d40e653e27655a9baf26b4b5abaf134f", "score": "0.5029461", "text": "protected void _umSlashMod() {\n long u1 = stack.uPop();\n long ud = stack.dPop();\n stack.uPush(ud % u1);\n stack.uPush(ud / u1);\n }", "title": "" }, { "docid": "96b5579d90cdedb9740bbcdbdddbf32a", "score": "0.5011871", "text": "public void paint2(Node root,pair Pa, int space) {\n if(root!=TNULL){\n\n\n Graphics g =this.getGraphics();\n Color color = root.color == 1?Color.RED:Color.black;\n\n FontMetrics f = this.getGraphics().getFontMetrics();\n int nodeHeight = Math.max(height, f.getHeight());\n\n int nodeWidth = Math.max(width, f.stringWidth(String.valueOf(root.data))+width/2);\n g.setColor(Color.white);\n g.fillOval(Pa.first-nodeWidth/2, Pa.second-nodeHeight/2, nodeWidth, nodeHeight);\n g.setColor(color);\n g.drawOval(Pa.first-nodeWidth/2, Pa.second-nodeHeight/2, nodeWidth, nodeHeight);\n g.drawString(String.valueOf(root.data), Pa.first-f.stringWidth(String.valueOf(root.data))/2,\n Pa.second+f.getHeight()/2);\n\n if(root.left!=null){\n paint2(root.left,new pair(Pa.first-space,Pa.second+50),space/2);\n this.getGraphics().drawLine(Pa.first, Pa.second,\n Pa.first-space, Pa.second+50);\n }\n if(root.right!=null){\n paint2(root.right,new pair(Pa.first +space,Pa.second+50),space/2);\n this.getGraphics().drawLine(Pa.first, Pa.second,\n Pa.first +space, Pa.second+50);\n }\n }\n }", "title": "" }, { "docid": "b1b1f0c7ccb97c7091a47cdf96b3ad7a", "score": "0.4993827", "text": "@Override\n public String toString() {\n if (stepCounter % 2 == 0) {\n return \"/\";\n } else {\n return \"\\\\\";\n }\n }", "title": "" }, { "docid": "a63bb561e11e019f904495d2602898e6", "score": "0.49813002", "text": "@Override\n\tpublic int pathCost() {\n\t\treturn 0;\n\t}", "title": "" }, { "docid": "88876cc326dd8b5b320da94fa03dc506", "score": "0.49745274", "text": "String getHspace();", "title": "" }, { "docid": "7dbda4f4bf209ae07a2cfd3702971248", "score": "0.49700004", "text": "private String reciprocal(String s) {\n String top=\"\";\n String bottom=\"\";\n \n boolean foundDivide=false;\n \n for(int i=0; i<s.length();i++){\n \n if(s.charAt(i)=='/')foundDivide=true;\n \n if(foundDivide && s.charAt(i)!='/')bottom+=s.charAt(i);\n \n else if(s.charAt(i)!='/') top+=s.charAt(i);\n \n }\n \n return bottom+\"/\"+top;\n }", "title": "" }, { "docid": "6acaf05d20736639b5593a90834b2bcc", "score": "0.4964035", "text": "void branch(float h) {\n\th *= 0.66;\r\n\r\n\t// All recursive functions must have an exit condition!!!!\r\n\t// Here, ours is when the length of the branch is 2 pixels or less\r\n\tif (h > 2) {\r\n\t\tembed.pushMatrix(); // Save the current state of transformation (i.e. where are we now)\r\n\t\tembed.rotate(theta); // Rotate by theta\r\n\t\tembed.line(0, 0, 0, -h); // Draw the branch\r\n\t\tembed.translate(0, -h); // Move to the end of the branch\r\n\t\tbranch(h); // Ok, now call myself to draw two new branches!!\r\n\t\tembed.popMatrix(); // Whenever we get back here, we \"pop\" in order to restore the previous matrix state\r\n\r\n\t\t// Repeat the same thing, only branch off to the \"left\" this time!\r\n\t\tembed.pushMatrix();\r\n\t\tembed.rotate(-theta);\r\n\t\tembed.line(0, 0, 0, -h);\r\n\t\tembed.translate(0, -h);\r\n\t\tbranch(h);\r\n\t\tembed.popMatrix();\r\n\t}\r\n}", "title": "" }, { "docid": "6d1a594ac81751e46fe345135c2c1593", "score": "0.49628794", "text": "private static void printLowerHead () {\n\t\tfor (int h= SIZE; h >0; h--) {\n\t\t\tString str = \"\\\\_\";\n\t\t\tfor (int w= 0; w< (h*3)-1; w++) {\n\t\t\t\tstr += \"/\\\\\";\n\t\t\t}\n\t\t\tprintCentered(str + \"_/\");\n\t\t}\n\t}", "title": "" }, { "docid": "2cc7be3a4bce63b45330731240f622ca", "score": "0.4920083", "text": "@Override\n\tpublic void div(int x, int y) {\n\t\t\n\t}", "title": "" }, { "docid": "0ef76864e22ad45cd9b3089e370bddc4", "score": "0.49105003", "text": "private Path m122729b() {\n Path path = new Path();\n float k = (float) this.f87781a.mo109103k();\n float f = k * 2.0f;\n float g = (float) this.f87781a.mo109099g();\n path.moveTo(rect().left, (rect().top + rect().bottom) / 2.0f);\n path.lineTo(rect().left, rect().top + k);\n path.arcTo(new RectF(rect().left, rect().top, rect().left + f, rect().top + f), 180.0f, 90.0f);\n path.lineTo(rect().right - k, rect().top);\n path.arcTo(new RectF(rect().right - f, rect().top, rect().right, rect().top + f), 270.0f, 90.0f);\n path.lineTo(rect().right, (rect().bottom - g) - k);\n path.arcTo(new RectF(rect().right - f, (rect().bottom - g) - f, rect().right, rect().bottom - g), 0.0f, 90.0f);\n if (!C25170c.m122733a()) {\n float width = (((rect().width() / 2.0f) - k) - g) * this.f87781a.mo109095e();\n switch (this.f87781a.mo109093d()) {\n case 0:\n path.lineTo(rect().left + k + g + g + width, rect().bottom - g);\n path.lineTo(rect().left + k + g + width, rect().bottom);\n path.lineTo(rect().left + k + width, rect().bottom - g);\n break;\n case 1:\n path.lineTo(((rect().left + rect().right) / 2.0f) + g + width, rect().bottom - g);\n path.lineTo(((rect().left + rect().right) / 2.0f) + width, rect().bottom);\n path.lineTo((((rect().left + rect().right) / 2.0f) - g) + width, rect().bottom - g);\n break;\n case 2:\n path.lineTo((rect().right - k) + width, rect().bottom - g);\n path.lineTo(((rect().right - k) - g) + width, rect().bottom);\n path.lineTo((((rect().right - k) - g) - g) + width, rect().bottom - g);\n break;\n }\n }\n path.lineTo(rect().left + k, rect().bottom - g);\n path.arcTo(new RectF(rect().left, (rect().bottom - g) - f, rect().left + f, rect().bottom - g), 90.0f, 90.0f);\n path.close();\n return path;\n }", "title": "" }, { "docid": "5aa577e009e7338114d1c1f07cf8eee2", "score": "0.4910418", "text": "private Rubix swapEdges2(){\n return rotate(\"F R U R' U' F'\".split(\" \"));\n }", "title": "" }, { "docid": "ada192558b51c95f9b924c108a2b334a", "score": "0.49019074", "text": "@Override\n\tpublic String Generate() {\n\t\treturn left.Generate()+\"*\"+right.Generate();\n\n\t}", "title": "" }, { "docid": "925180947ba540687c48f59280ce52d1", "score": "0.48894736", "text": "@Test\n\tpublic void test(){\n\t\tlog.info(\"ffffffff\");\n\t\t\n\t\tint bian = 50; //px\n\t\tint mid = 30; //px 30*2 照片间隔 60px = 5毫米。\n\t\t\n\t\tint cw = 1200 - bian * 2; // 100px 118 = 1cm \n\t\tint ch = 1800 - bian * 2; // 100px 两边个 0.5cm\n\t\t\n\t\tint w = 295 + mid * 2; //照片尺寸\n\t\tint h = 413 + mid * 2; //照片尺寸\n\t\t\n\t\tint direct = 1; // 好片方向 上 2 为右\n\t\t\n\t\tlog.info(\"w\" + w + \"h\"+ h);\n\t\t\n\t\tint nw = cw / w;\n\t\tint nh = ch / h;\n\n\t\tint _nw = ch / w;\n\t\tint _nh = cw / h;\n\n\t\tlog.info(\"nw\" + nw + \"nh\"+ nh);\n\t\tlog.info(\"_nw\" + _nw + \"_nh\"+ _nh);\n\n\t\tif (_nw * _nh > nw * nh){\n\t\t\tdirect = 2;\n\t\t\tnw = _nw;\n\t\t\tnh = _nh;\n\t\t}\n\t\tlog.info(\"nw:\" + nw + \"nh:\"+ nh+\" direct:\"+ direct);\n\t\t\n\t\t\n\t}", "title": "" }, { "docid": "d5dc78f1455c6f50b5f9764c85c5b086", "score": "0.48827904", "text": "private void m() {\n\t\t\r\n\t\tint data =50/0;\r\n\t\t\r\n\t}", "title": "" }, { "docid": "ea15638c62fdd92176a9cd9a5dabe52a", "score": "0.48771402", "text": "public static void main(String[] args) {\n\n for(int i=1;i<=6;i++)\n {\n for(int space=1;space<=6-i;space++)\n System.out.print(\" \");\n for (int j = 1; j <= i; j++) {\n System.out.print(\"* \");\n }\n\n System.out.println(\"\\n\");\n }\n\n\n\n }", "title": "" }, { "docid": "9df41cabba438ddfbb1900b782053696", "score": "0.4873821", "text": "void sharpen();", "title": "" }, { "docid": "eab51fec8291e7d8a6eb29c2d712de1c", "score": "0.48706675", "text": "public void patrol() {\r\n\t\t\r\n\t}", "title": "" }, { "docid": "b0db4c37f60faa7bac89a836812a7359", "score": "0.4862252", "text": "@Override\n \tpublic void draw() {\n \t}", "title": "" }, { "docid": "228112cbd18cc1bf49aa52db26a3b701", "score": "0.4860634", "text": "DashPathEffect mo3972W();", "title": "" }, { "docid": "b0169753885326211e66bce8b21319e2", "score": "0.48498124", "text": "int getPathCost(){\n\t\treturn cost;\n\t}", "title": "" }, { "docid": "5128c61b059a4427a4fc7c74041f185a", "score": "0.484484", "text": "void drawEmptySpace(int x, int y);", "title": "" }, { "docid": "71b750dbef4089e4076b9cd83f60de0a", "score": "0.48410064", "text": "void normalize() {\n\t\tfinal double length = Math.sqrt(xDirection * xDirection + yDirection\n\t\t\t\t* yDirection);\n\t\txDirection /= length;\n\t\tyDirection /= length;\n\t}", "title": "" }, { "docid": "86aa4de6d535ebcc3e6a715a6fec4e60", "score": "0.48325786", "text": "void drawMid();", "title": "" }, { "docid": "5225d2b9c789e7d6a60fa82e02a375cd", "score": "0.48313993", "text": "private int div(int x, int y) {\n\t\treturn x / y;\r\n\t}", "title": "" }, { "docid": "08eb335ca01158e1cc80133f156af1f7", "score": "0.48235902", "text": "public int getWidth() { return 32; }", "title": "" }, { "docid": "76264659e5472238a7f9eda3a679492f", "score": "0.4816413", "text": "public void testPathFinderHelp() {\n // Half full\n InternalNode intOne = new InternalNode(kvPairs[1]); // (2 3)\n assertEquals(tree.helper.pathFinder(intOne, kvPairs[2]), 0); // center\n assertEquals(tree.helper.pathFinder(intOne, kvPairs[1]), 0); // center\n assertEquals(tree.helper.pathFinder(intOne, kvPairs[0]), -1); // left\n\n // Full internal node\n intOne.kv2 = kvPairs[3];\n\n assertEquals(tree.helper.pathFinder(intOne, kvPairs[4]), 1); // right\n assertEquals(tree.helper.pathFinder(intOne, kvPairs[3]), 1); // right\n assertEquals(tree.helper.pathFinder(intOne, kvPairs[0]), -1); // left\n assertEquals(tree.helper.pathFinder(intOne, kvPairs[2]), 0); // center\n assertEquals(tree.helper.pathFinder(intOne, kvPairs[1]), 0); // center\n\n }", "title": "" }, { "docid": "1ca745fd6f8ec9b8873d79646e16ceed", "score": "0.48152152", "text": "double square(double side){\n \treturn side * 4;\n }", "title": "" }, { "docid": "b04035c536fff77d0f626407be19e1dc", "score": "0.48001084", "text": "void mo41260g();", "title": "" }, { "docid": "9879378b3277aeb706ea2d4c4b00c220", "score": "0.47978172", "text": "private void selfmutate() {\n\t\t\n\t}", "title": "" }, { "docid": "c5683a65c947d208ed2ae4a9711190a7", "score": "0.47915676", "text": "@Override\n public int getBlockLength(){ return 8*8 ; }", "title": "" }, { "docid": "95641d2713462f16a60ffa78b8228747", "score": "0.4789593", "text": "private static void TotalPath() {\n if (active) {\n Console = verde + NameEq + \"@\" + Kernel + blanco + \":\" + cyan + path.getName() + blanco + \"$ \";\n active = !active;\n } else {\n Console = verde + NameEq + \"@\" + Kernel + blanco + \":\" + cyan + \"~\" + blanco + \"$ \";\n active = !active;\n }\n }", "title": "" }, { "docid": "e6e13500bc266a1ca5d637b5fc9a7f61", "score": "0.47839922", "text": "static void aMethod() {\n\t\tSystem.out.println(\"Divide by 0: \" + 10 / 0);\t\t\n\t}", "title": "" }, { "docid": "9144a32a2cd5a72f1d1380aa1f1d5f09", "score": "0.4778739", "text": "public void mo5774g() {\n }", "title": "" }, { "docid": "4ba1d884826976d2fa07aebc3874b08e", "score": "0.47770417", "text": "void mo5280SX();", "title": "" }, { "docid": "50e3e28645aa33e4a82484403198b8d6", "score": "0.47759047", "text": "private int row(int r){\r\n int pixelNumber = ((r-1)*(int)(space.Space.height/16))+20;\r\n return pixelNumber;\r\n}", "title": "" }, { "docid": "687a28450dd151aec6c8a668c8fb6aaa", "score": "0.4771239", "text": "private void handleOath(String oath){\n }", "title": "" }, { "docid": "f41c92e4d9b147879ebecd74e57e407f", "score": "0.47679758", "text": "public void right() {\r\n\r\n }", "title": "" }, { "docid": "261b81052144e0ad1fb338c0668565d5", "score": "0.47633237", "text": "@Override\n\tpublic void renderPath(Graphics g) {\n\t\t\n\t}", "title": "" }, { "docid": "6d8bc8e90b4cbf621d3c868d210947e2", "score": "0.47605503", "text": "public static void bottom() {\n\t\t//Wrapper for levels of the bottom\n\t\tfor (int i=1;i<(SIZE + 1);i++){\n\t\t\t//add the spaces before each /\n\t\t\tfor (int k=(SIZE-i);k>=0;k--){\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t}\n\t\t\tSystem.out.print(\"/\");\n\t\t\t\n\t\t\t//place the correct number of :: inside the hourglass based on line number\n\t\t\tfor (int j=SIZE;j>(SIZE-i);j--){\n\t\t\t\tSystem.out.print(\"::\");\n\t\t\t}\n\t\t\tSystem.out.print(\"\\\\\\n\");\n\t\t}\n\t}", "title": "" }, { "docid": "0f3552d5ecae7cf9a844c7eb5fe47af9", "score": "0.4758621", "text": "private static void breadcrumbArrow(MatrixStack ms, int width, int height, int indent, int c1, int c2) {\n\n\t\tfloat x0 = 0, y0 = height / 2f;\n\t\tfloat x1 = indent, y1 = 0;\n\t\tfloat x2 = indent, y2 = height / 2f;\n\t\tfloat x3 = indent, y3 = height;\n\t\tfloat x4 = width, y4 = 0;\n\t\tfloat x5 = width, y5 = height / 2f;\n\t\tfloat x6 = width, y6 = height;\n\t\tfloat x7 = indent + width, y7 = 0;\n\t\tfloat x8 = indent + width, y8 = height;\n\n\t\tindent = Math.abs(indent);\n\t\twidth = Math.abs(width);\n\t\tint fc1 = ColorHelper.mixAlphaColors(c1, c2, 0);\n\t\tint fc2 = ColorHelper.mixAlphaColors(c1, c2, (indent) / (width + 2f * indent));\n\t\tint fc3 = ColorHelper.mixAlphaColors(c1, c2, (indent + width) / (width + 2f * indent));\n\t\tint fc4 = ColorHelper.mixAlphaColors(c1, c2, 1);\n\n\t\tRenderSystem.disableTexture();\n\t\tRenderSystem.enableBlend();\n\t\tRenderSystem.disableCull();\n\t\tRenderSystem.disableAlphaTest();\n\t\tRenderSystem.defaultBlendFunc();\n\t\tRenderSystem.shadeModel(GL11.GL_SMOOTH);\n\n\t\tTessellator tessellator = Tessellator.getInstance();\n\t\tBufferBuilder bufferbuilder = tessellator.getBuffer();\n\t\tMatrix4f model = ms.peek()\n\t\t\t.getModel();\n\t\tbufferbuilder.begin(GL11.GL_TRIANGLES, DefaultVertexFormats.POSITION_COLOR);\n\n\t\tbufferbuilder.vertex(model, x0, y0, 0)\n\t\t\t.color(fc1 >> 16 & 0xFF, fc1 >> 8 & 0xFF, fc1 & 0xFF, fc1 >> 24 & 0xFF)\n\t\t\t.endVertex();\n\t\tbufferbuilder.vertex(model, x1, y1, 0)\n\t\t\t.color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF)\n\t\t\t.endVertex();\n\t\tbufferbuilder.vertex(model, x2, y2, 0)\n\t\t\t.color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF)\n\t\t\t.endVertex();\n\n\t\tbufferbuilder.vertex(model, x0, y0, 0)\n\t\t\t.color(fc1 >> 16 & 0xFF, fc1 >> 8 & 0xFF, fc1 & 0xFF, fc1 >> 24 & 0xFF)\n\t\t\t.endVertex();\n\t\tbufferbuilder.vertex(model, x2, y2, 0)\n\t\t\t.color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF)\n\t\t\t.endVertex();\n\t\tbufferbuilder.vertex(model, x3, y3, 0)\n\t\t\t.color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF)\n\t\t\t.endVertex();\n\n\t\tbufferbuilder.vertex(model, x3, y3, 0)\n\t\t\t.color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF)\n\t\t\t.endVertex();\n\t\tbufferbuilder.vertex(model, x1, y1, 0)\n\t\t\t.color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF)\n\t\t\t.endVertex();\n\t\tbufferbuilder.vertex(model, x4, y4, 0)\n\t\t\t.color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF)\n\t\t\t.endVertex();\n\n\t\tbufferbuilder.vertex(model, x3, y3, 0)\n\t\t\t.color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF)\n\t\t\t.endVertex();\n\t\tbufferbuilder.vertex(model, x4, y4, 0)\n\t\t\t.color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF)\n\t\t\t.endVertex();\n\t\tbufferbuilder.vertex(model, x6, y6, 0)\n\t\t\t.color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF)\n\t\t\t.endVertex();\n\n\t\tbufferbuilder.vertex(model, x5, y5, 0)\n\t\t\t.color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF)\n\t\t\t.endVertex();\n\t\tbufferbuilder.vertex(model, x4, y4, 0)\n\t\t\t.color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF)\n\t\t\t.endVertex();\n\t\tbufferbuilder.vertex(model, x7, y7, 0)\n\t\t\t.color(fc4 >> 16 & 0xFF, fc4 >> 8 & 0xFF, fc4 & 0xFF, fc4 >> 24 & 0xFF)\n\t\t\t.endVertex();\n\n\t\tbufferbuilder.vertex(model, x6, y6, 0)\n\t\t\t.color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF)\n\t\t\t.endVertex();\n\t\tbufferbuilder.vertex(model, x5, y5, 0)\n\t\t\t.color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF)\n\t\t\t.endVertex();\n\t\tbufferbuilder.vertex(model, x8, y8, 0)\n\t\t\t.color(fc4 >> 16 & 0xFF, fc4 >> 8 & 0xFF, fc4 & 0xFF, fc4 >> 24 & 0xFF)\n\t\t\t.endVertex();\n\n\t\ttessellator.draw();\n\t\tRenderSystem.shadeModel(GL11.GL_FLAT);\n\t\tRenderSystem.disableBlend();\n\t\tRenderSystem.enableCull();\n\t\tRenderSystem.enableAlphaTest();\n\t\tRenderSystem.enableTexture();\n\t}", "title": "" }, { "docid": "6f9717b7325c01ab052b8b73575786e8", "score": "0.47554144", "text": "String draw();", "title": "" }, { "docid": "e97781c2322bb3ee97fbe4fad2ddd769", "score": "0.47448063", "text": "private void solve() {\n\n String[] grids = {\n \" /\",\n \"/\"\n };\n\n System.out.println(regionsBySlashes(grids));\n }", "title": "" }, { "docid": "1273d0b9c55a97fa64bb49c643c8913f", "score": "0.47416976", "text": "String separator() {\n return \"/\";\n }", "title": "" }, { "docid": "29d1060a97c168c1a023f8a96c6d626f", "score": "0.4738116", "text": "private void Rubber() {\n\t\t// TODO add code to re-center image if it's smaller than the screen\n\t\tfloat cx = 0; \n\t\tfloat cy = 0; \n\t\tif (dst.top > min.top + 1) cy = (min.top - dst.top) / 3;\n\t\tif (dst.bottom < min.bottom - 1) cy = (min.bottom - dst.bottom) / 3;\n\t\tif (dst.left > min.left + 1) cx = (min.left - dst.left) / 3;\n\t\tif (dst.right < min.right - 1) cx = (min.right - dst.right) / 3; \n\t\tif(cx == 0 && cy == 0) mode = MODE_STOP;\n\t\tdst.top += cy; \n\t\tdst.bottom += cy;\n\t\tdst.left += cx; \n\t\tdst.right += cx; \t\n\t\tinvalidate();\n\t}", "title": "" }, { "docid": "c296eb30449116733e3a51e4ae790df9", "score": "0.47375482", "text": "public static void main(String[] args) {\n\n// int x = 10;\n// int y = 2;\n// x = x / y;\n// y = y - x;\n// System.out.println(y);\n\n // Using the shorthand arithmetic assignment operators\n// int x = 10;\n// int y = 2;\n// x /= y;\n// y -= x;\n// System.out.println(y);\n\n }", "title": "" }, { "docid": "a9d61b58ef725df8c4e65d1a431bac6b", "score": "0.47323346", "text": "public String slashDiagonal() \n\t{\n\t\tStringBuilder sb = new StringBuilder(height);\n\n\t\tfor (int h = 0; h < height; h++) \n\t\t{\n\t\t\tint w = lastCol + lastTop - h;\n\n\t\t\tif (0 <= w && w < width)\n\t\t\t{\n\t\t\t\tsb.append(board[h][w]);\n\t\t\t}\n\t\t}\n\n\t\treturn sb.toString();\n\t}", "title": "" }, { "docid": "2c3d1ab5d8913013facb1702225dcedd", "score": "0.47292683", "text": "@Override\r\npublic double area() {\r\n\treturn (Math.sqrt(3)/4)*lado*lado;\r\n}", "title": "" }, { "docid": "e31950529d3384392ffcbb764ec240f0", "score": "0.47287166", "text": "private static void printTopBase () {\n\t\tfor (int h= 0; h <= SIZE-1; h++) {\n\t\t\tString str = \"__/\";\n\t\t\t\tfor (int w= 0; w< h; w++) str += \":::\";\n\t\t\t\t\tstr += \"||\";\n\t\t\t\tfor (int w= 0; w< h; w++) str += \":::\";\n\t\t\tprintCentered(str + \"\\\\__\");\n\t\t}\n\t\tprintConnector();\n\t}", "title": "" }, { "docid": "0c11c367c519df84104a602a4bc5149a", "score": "0.47279608", "text": "public void draw () {\n\t\t\n\t}", "title": "" }, { "docid": "5bc3b13f8bb0ceecf4cba128f6225c5e", "score": "0.47252715", "text": "public void Draw() {\n\t\tPath p_up = new Path();\n\t\tPath p_down = new Path();\n\t\tPath p_left = new Path();\n\t\tPath p_right = new Path();\n\t\t\n\t\tp_up.moveTo(78, 20);\n\t\tp_up.lineTo(154, 130);\n\t p_up.lineTo(270, 130);\n\t p_up.lineTo(330, 20);\n\t p_up.close();\n\t \n\t p_down.moveTo(78, 364);\n\t\tp_down.lineTo(158, 270);\n\t p_down.lineTo(250, 270);\n\t p_down.lineTo(330, 364);\n\t p_down.close();\n\t \n\t p_left.moveTo(20, 74);\n\t\tp_left.lineTo(134, 152);\n\t p_left.lineTo(134, 272);\n\t p_left.lineTo(20, 340);\n\t p_left.close();\n\t \n\t p_right.moveTo(384, 74);\n\t\tp_right.lineTo(276, 146);\n\t p_right.lineTo(276, 256);\n\t p_right.lineTo(370, 330);\n\t p_right.close(); \n\t \n\t \n\t RectF rectUP = new RectF();\n\t p_up.computeBounds(rectUP, true);\n\t r_up = new Region();\n\t r_up.setPath(p_up, new Region((int) rectUP.left, (int) rectUP.top, (int) rectUP.right, (int) rectUP.bottom));\n\t \n\t RectF rectDOWN = new RectF();\n\t p_down.computeBounds(rectDOWN, true);\n\t r_down = new Region();\n\t r_down.setPath(p_down, new Region((int) rectDOWN.left, (int) rectDOWN.top, (int) rectDOWN.right, (int) rectDOWN.bottom));\n\t \n\t RectF rectLEFT = new RectF();\n\t p_left.computeBounds(rectLEFT, true);\n\t r_left = new Region();\n\t r_left.setPath(p_left, new Region((int) rectLEFT.left, (int) rectLEFT.top, (int) rectLEFT.right, (int) rectLEFT.bottom));\n\t \n\t RectF rectRIGHT = new RectF();\n\t p_right.computeBounds(rectRIGHT, true);\n\t r_right = new Region();\n\t r_right.setPath(p_right, new Region((int) rectRIGHT.left, (int) rectRIGHT.top, (int) rectRIGHT.right, (int) rectRIGHT.bottom));\n\t \n\t}", "title": "" }, { "docid": "ec365d4eda8530cbead3c8d4472bfdd3", "score": "0.47248456", "text": "static void rhombus(int [][] matrix) {\n for (int i = 1; i < matrix.length - 1; i++) {\n for (int j = 1; j < matrix.length - 1; j++) {\n matrix[i][j] = 1;\n }\n }\n matrix[0][2] = 1;\n matrix[4][2] = 1;\n matrix[2][0] = 1;\n matrix[2][4] = 1;\n }", "title": "" }, { "docid": "fe48548d979816980a0dd57a02783832", "score": "0.4723672", "text": "public abstract void mo24092wO();", "title": "" }, { "docid": "458da79e4ab6e8fff0726f5edae96b98", "score": "0.47196466", "text": "static void stars2(int x) { // right triangle\n\t\tfor(int i = x ; i >= 1 ; i--) {\n\t\t\tfor(int j = 1 ; j <= (-i+x) ; j++) {\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t} // for j\n\t\t\tfor(int j = 1 ; j <= i ; j++) {\n\t\t\t\tSystem.out.print(\"*\");\n\t\t\t\t} // for j\n\t\tSystem.out.print(\"\\n\");\n\t\t} // for i\n\t}", "title": "" }, { "docid": "76c91402052bff5f7caac5e269c665a7", "score": "0.47181764", "text": "public static void main(String[] args) {\n\r\n\t\tSystem.out.println(\"RIGHTANGLE TRIANGLE\");\r\n\t\tfor(int i=1;i<=4;i++)\r\n\t\t{\r\n\t\t\tfor(int j=1;j<=i;j++)\r\n\t\t\t{\r\n\t\t\t\tSystem.out.print(\"* \");\r\n\t\t\t}\r\n\t\t\tSystem.out.println();\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\t//oppoisite triangle\r\n\t\tSystem.out.println(\"downword RIGHTANGLE TRIANGLE\");\r\n\t\tfor(int i=1;i<=4;i++)\r\n\t\t{\r\n\t\t\tfor(int j=4;j>=i;j--)\r\n\t\t\t{\r\n\t\t\t\tSystem.out.print(\"* \");\r\n\t\t\t}\r\n\t\t\tSystem.out.println();\r\n\t\t}\r\n\t\tSystem.out.println(\"adding pattern right angle tiangle\");\r\n\t\tfor(int i=1;i<=4;i++)\r\n\t\t{\r\n\t\t\tfor(int j=1;j<=i;j++)\r\n\t\t\t{\r\n\t\t\t\tSystem.out.print(\"* \");\r\n\t\t\t}\r\n\t\t\tSystem.out.println();\r\n\t\t}\r\n\t\tfor(int i=1;i<=3;i++)\r\n\t\t{\r\n\t\t\tfor(int j=3;j>=i;j--)\r\n\t\t\t{\r\n\t\t\t\tSystem.out.print(\"* \");\r\n\t\t\t}\r\n\t\t\tSystem.out.println();\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t}", "title": "" }, { "docid": "12b4d84a66dc7443683aa3550c2aad52", "score": "0.4716558", "text": "public static void main(String[] args) {\n\r\n\t\tScanner scan = new Scanner(System.in);\r\n\r\n\t\twhile (1 == 1) {\r\n\r\n\t\t\tint downDepth1 = scan.nextInt(); // 첫번째 몇칸 내려갈지\r\n\t\t\t\r\n\t\t\tif ( downDepth1 == 77 ) {\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tint centerDepth = 1 + downDepth1;\r\n\t\t\tint addDepth = (downDepth1 + 1) / 2;\r\n\t\t\tint downDepth2 = downDepth1 + addDepth;\r\n\t\t\tint centerStar = 1 + (downDepth1 * 6);\r\n\r\n\t\t\t// downDepth1 = 1 downDepth2 = 2 : 3\r\n\t\t\t// 제일 많은 Star = (1 + downDepth1 * 6)\r\n\t\t\t// 공백 처리 = (downDepth1 - 1) * (\" \")\r\n\t\t\t// 별 처리 = (downDepth1 + 1) / 2 의 몫\r\n\t\t\t// 밑 추가 = downDepth1 + 별처리\r\n\r\n\t\t\tfor (int i = 1; i < (downDepth1 + 2); i++) {\r\n\r\n\t\t\t\tfor (int j = 0; j < (centerDepth - i); j++) {\r\n\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t}\r\n\r\n\t\t\t\tfor (int j = 0; j < (i - 1) * 2; j++) {\r\n\t\t\t\t\tSystem.out.print(\"***\");\r\n\r\n\t\t\t\t}\r\n\r\n\t\t\t\tSystem.out.print(\"*\");\r\n\r\n\t\t\t\tfor (int j = 0; j < (centerDepth - i); j++) {\r\n\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t}\r\n\r\n\t\t\t\tSystem.out.println();\r\n\t\t\t}\r\n\r\n\t\t\t// * 전체 별 : centerStart\r\n\r\n\t\t\tfor (int i = 1; i < downDepth2 + 1; i++) {\r\n\r\n\t\t\t\tfor (int j = 0; j < i; j++) {\r\n\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t}\r\n\r\n\t\t\t\tfor (int j = 0; j < centerStar - (2*i); j++) {\r\n\t\t\t\t\tSystem.out.print(\"*\");\r\n\t\t\t\t}\r\n\r\n\t\t\t\tfor (int j = 0; j < i; j++) {\r\n\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tSystem.out.println();\r\n\t\t\t}\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "c9dff9466ae8280b3c66ae4d3b87a93f", "score": "0.47140276", "text": "void mo78074L_();", "title": "" }, { "docid": "30244f82313cb9eae4bd7076fb0db159", "score": "0.47111157", "text": "private void swim() {\n\t}", "title": "" }, { "docid": "fa9d1357f99e91ee91d471d82a730f4a", "score": "0.4709705", "text": "private static int buildHurdle(int currentAve, int width, int height)\n\t{\n\t\toutput.println(\"northsouthwalls \" + currentAve + \" \" + 1 + \" \" + height);\n\t\tif (width > 0)\n\t\t{\n\t\t\toutput.println(\"northsouthwalls \" + (currentAve + width) + \" \" + 1 + \" \" + height);\n\t\t\toutput.println(\"eastwestwalls \" + height + \" \" + (currentAve + 1) + \" \" + (currentAve + width));\n\t\t}\n\n\t\treturn currentAve + width + 1;\n\t}", "title": "" }, { "docid": "4755bb151fa7654a4ce277f8ec25568e", "score": "0.47064066", "text": "private void multop() {\n if(is(TK.TIMES)) {System.out.print(\" *\");\n vec.addElement(\" *\");//*************************\n }//********** \n if(is(TK.DIVIDE)) {System.out.print(\" /\");\n vec.addElement(\" /\");//*************************\n }//********** \n scan();\n }", "title": "" }, { "docid": "40d5013bae770f2d6bb67aeaffb54397", "score": "0.47052756", "text": "private void initializeRightSpaces() {\n\t\t\n\t}", "title": "" }, { "docid": "1042ece488c241995bba3d80db48c196", "score": "0.47002694", "text": "public static void printHollowRect() {\n\n for (int i = 0; i < 5; i++) {\n System.out.print(\"*\");\n System.out.println();\n\n\n }\n\n\n }", "title": "" }, { "docid": "ecc767596c795ab5762a9f381fa7a19f", "score": "0.46957722", "text": "int width();", "title": "" }, { "docid": "9be0ce9bc18c6599ea4490dcdfa5ff01", "score": "0.4691393", "text": "void greece();", "title": "" }, { "docid": "3c5cf72e7001996938c37b171e574bff", "score": "0.4689209", "text": "public abstract String mo7504Wy();", "title": "" }, { "docid": "24af1fcb7e0bc814830be2afa3c697fd", "score": "0.46825954", "text": "@Override\r\n\t\tpublic String toString() {\r\n\t\t\tswitch (this) {\r\n\t\t\t\tcase LEFT:\r\n\t\t\t\t\treturn \"/\";\r\n\t\t\t\tcase SAME:\r\n\t\t\t\t\treturn \"=\";\r\n\t\t\t\tcase RIGHT:\r\n\t\t\t\t\treturn \"\\\\\";\r\n\t\t\t\tdefault:\r\n\t\t\t\t\tthrow new IllegalStateException();\r\n\t\t\t}\r\n\t\t}", "title": "" }, { "docid": "c097b4071c72c327e2c549850be1b516", "score": "0.46810532", "text": "private static String divideBinary(String a, String b) {\n return operation(\"/\", a, b, \"binary\");\n }", "title": "" }, { "docid": "4502d05dca2b036b99421d0be54b548f", "score": "0.46809292", "text": "@Override\r\n\tpublic void draw () {\n\t\t\r\n\t}", "title": "" }, { "docid": "4502d05dca2b036b99421d0be54b548f", "score": "0.46809292", "text": "@Override\r\n\tpublic void draw () {\n\t\t\r\n\t}", "title": "" }, { "docid": "ea0ff209151393b3a22be0b187737bc3", "score": "0.46804044", "text": "public void allForward(){\r\n leftSideForward();\r\n rightSideForward();\r\n }", "title": "" }, { "docid": "26bb23a5deb3329811be7bef29384400", "score": "0.4670653", "text": "public int slash(Square target) {\n\t\treturn this.attack((int) (this.getAttackValue()*1.2), target, -1);\r\n\t}", "title": "" }, { "docid": "b0b4aa0f1baeaacfab40e95c737bb14c", "score": "0.46658975", "text": "@Override\n\tpublic void draw() {\n\t\t\n\t}", "title": "" }, { "docid": "c2e857dffdebd0d0322b02dae5604bf7", "score": "0.46650073", "text": "@Override\r\n public double div(int a, int b) {\n return a/b;\r\n }", "title": "" }, { "docid": "60d9a27c35495a118f4182a9e7ca9b40", "score": "0.46646264", "text": "@Override\n\tpublic void breath() {\n\t\t\n\t}", "title": "" }, { "docid": "ae440daac9b9e6beddf2f8c6270e98a6", "score": "0.46637565", "text": "private Path m122730c() {\n Path path = new Path();\n float k = (float) this.f87781a.mo109103k();\n float f = k * 2.0f;\n float g = (float) this.f87781a.mo109099g();\n path.moveTo(rect().left, (rect().top + rect().bottom) / 2.0f);\n path.lineTo(rect().left, rect().top + g + k);\n path.arcTo(new RectF(rect().left, rect().top + g, rect().left + f, rect().top + g + f), 180.0f, 90.0f);\n if (!C25170c.m122733a()) {\n float width = (((rect().width() / 2.0f) - k) - g) * this.f87781a.mo109095e();\n switch (this.f87781a.mo109093d()) {\n case 3:\n path.lineTo(rect().left + k + width, rect().top + g);\n path.lineTo(rect().left + k + g + width, rect().top);\n path.lineTo(rect().left + k + g + g + width, rect().top + g);\n break;\n case 4:\n path.lineTo((((rect().left + rect().right) / 2.0f) - g) + width, rect().top + g);\n path.lineTo(((rect().left + rect().right) / 2.0f) + width, rect().top);\n path.lineTo(((rect().left + rect().right) / 2.0f) + g + width, rect().top + g);\n break;\n case 5:\n path.lineTo((((rect().right - k) - g) - g) + width, rect().top + g);\n path.lineTo(((rect().right - k) - g) + width, rect().top);\n path.lineTo((rect().right - k) + width, rect().top + g);\n break;\n }\n }\n path.lineTo(rect().right - k, rect().top + g);\n path.arcTo(new RectF(rect().right - f, rect().top + g, rect().right, rect().top + g + f), 270.0f, 90.0f);\n path.lineTo(rect().right, rect().bottom - k);\n path.arcTo(new RectF(rect().right - f, rect().bottom - f, rect().right, rect().bottom), 0.0f, 90.0f);\n path.lineTo(rect().left + k, rect().bottom);\n path.arcTo(new RectF(rect().left, rect().bottom - f, rect().left + f, rect().bottom), 90.0f, 90.0f);\n path.close();\n return path;\n }", "title": "" }, { "docid": "50e4cc5308cb946c41081ddc0eb570e2", "score": "0.4659599", "text": "public void computeFractal(){\n\t\tint deltaX51=p5.getX()-p1.getX();\n\t\tint deltaY51=p5.getY()-p1.getY();\n\t\tint x2=p1.getX()+(deltaX51/3);\n\t\tint y2=p1.getY()+(deltaY51/3);\n\t\tp2= new Point(x2,y2);\n\t\tint x3=(int)((p1.getX()+p5.getX())/2 + (Math.sqrt(3)*(p1.getY()-p5.getY()))/6);\n\t\tint y3=(int)((p1.getY()+p5.getY())/2 + (Math.sqrt(3)*(p5.getX()-p1.getX()))/6);\n\t\tp3=new Point(x3,y3);\n\t\tint x4=p1.getX() + (2*deltaX51/3);\n\t\tint y4=p1.getY()+(2*deltaY51/3);\n\t\tp4=new Point(x4,y4);\n\t}", "title": "" }, { "docid": "fd28bcfbb0398e0d888fa6427d80faf3", "score": "0.4656934", "text": "@Test\n public void testGenerateSmartPath() {\n\tSystem.out.println(\"generateSmartPath\");\n\tint x = 0;\n\tint y = 0;\n\tPathGen instance = new PathGen();\n\tinstance.generateSmartPath(x, y);\n\n\tArrayList<Point> coordinates = instance.getPath();\n\tPoint p = coordinates.get(coordinates.size()-1);\n\n\tassertTrue(p.equals(new Point(0,0)));\n }", "title": "" }, { "docid": "6c7930f82b575d338dcc7fcfbdfed593", "score": "0.46551695", "text": "static void b()\n {\n result+=\"\\n\";\n for (int i=0;i<9 ;i++ )\n {\n for (int j=0;j<=4 ;j++ )\n {\n if (i==0&&j!=4||j==0||j==4&&i!=0&&i!=4&&i!=8||i==4&&j!=4||i==8&&j!=4)\n {\n result+=emoji;\n }\n else\n {\n result+=\" \";\n }\n }\n result+=\"\\n\";\n }\n }", "title": "" }, { "docid": "507a0876478766eb67e0f397e0848759", "score": "0.4655134", "text": "public static void listausgabe(int[] path) {\r\n\t\tSystem.out.print(\"{ \");\r\n\t\tfor (int i = 0; i < path.length; i++)\r\n\t\t\tSystem.out.print(\" Direction of last move\" + path[i] + \", \");\r\n\t\tSystem.out.println();\r\n\t\tSystem.out.print(\" position of walker: \");\r\n\t\tint px = 0;\r\n\t\tint py = 0;\r\n\t\tSystem.out.print(\"( \" + px + \",\" + py + \"),\");\r\n\t\tfor (int i = 0; i < path.length; i++) {\r\n\t\t\tif (Math.abs(path[i]) == 1)\r\n\t\t\t\tpx += path[i];\r\n\t\t\tif (Math.abs(path[i]) == 2)\r\n\t\t\t\tpy += path[i] / 2;\r\n\t\t\tSystem.out.print(\"( \" + px + \",\" + py + \"),\");\r\n\t\t\tSystem.out.println();\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "09fbfb68c02fffb88125d39352e61833", "score": "0.46542454", "text": "@Override\n \tpublic void process_4() {\n \n \t}", "title": "" }, { "docid": "48e619b1325b1ad86be25b63687c31f0", "score": "0.46541905", "text": "public void slither() {\r\n\r\n }", "title": "" }, { "docid": "a89117fe837a46e6e20873333ed16515", "score": "0.46534115", "text": "void drive ();", "title": "" }, { "docid": "745920776a83fc9fe7214b21e6f3e791", "score": "0.4652108", "text": "private static int c(com.qiyukf.unicorn.f.a.a.a.e.b r2) {\r\n /*\r\n r2 = r2.d();\r\n r0 = r2.hashCode();\r\n r1 = -1364013995; // 0xffffffffaeb2cc55 float:-8.1307995E-11 double:NaN;\r\n if (r0 == r1) goto L_0x002c;\r\n L_0x000d:\r\n r1 = 3317767; // 0x32a007 float:4.649182E-39 double:1.6391947E-317;\r\n if (r0 == r1) goto L_0x0022;\r\n L_0x0012:\r\n r1 = 108511772; // 0x677c21c float:4.6598146E-35 double:5.36119387E-316;\r\n if (r0 == r1) goto L_0x0018;\r\n L_0x0017:\r\n goto L_0x0036;\r\n L_0x0018:\r\n r0 = \"right\";\r\n r2 = r2.equals(r0);\r\n if (r2 == 0) goto L_0x0036;\r\n L_0x0020:\r\n r2 = 0;\r\n goto L_0x0037;\r\n L_0x0022:\r\n r0 = \"left\";\r\n r2 = r2.equals(r0);\r\n if (r2 == 0) goto L_0x0036;\r\n L_0x002a:\r\n r2 = 2;\r\n goto L_0x0037;\r\n L_0x002c:\r\n r0 = \"center\";\r\n r2 = r2.equals(r0);\r\n if (r2 == 0) goto L_0x0036;\r\n L_0x0034:\r\n r2 = 1;\r\n goto L_0x0037;\r\n L_0x0036:\r\n r2 = -1;\r\n L_0x0037:\r\n switch(r2) {\r\n case 0: goto L_0x0041;\r\n case 1: goto L_0x003e;\r\n default: goto L_0x003a;\r\n };\r\n L_0x003a:\r\n r2 = 8388611; // 0x800003 float:1.1754948E-38 double:4.1445245E-317;\r\n return r2;\r\n L_0x003e:\r\n r2 = 17;\r\n return r2;\r\n L_0x0041:\r\n r2 = 8388613; // 0x800005 float:1.175495E-38 double:4.1445255E-317;\r\n return r2;\r\n */\r\n throw new UnsupportedOperationException(\"Method not decompiled: com.qiyukf.unicorn.ui.b.a.b.c(com.qiyukf.unicorn.f.a.a.a.e$b):int\");\r\n }", "title": "" } ]
b2bb688de88ce0792e4119af9ce33dbc
Retrieve all the stored songs.
[ { "docid": "a0fce670582f3d5676df518d6f8f230c", "score": "0.7438661", "text": "@RequestMapping(path = \"songs\", method = RequestMethod.GET)\n public ResponseEntity<?> findAllSongs() {\n List<Song> songs = new ArrayList<>();\n for (Song song : this.repository.findAll()) {\n songs.add(song);\n }\n return new ResponseEntity<>(songs, HttpStatus.OK);\n }", "title": "" } ]
[ { "docid": "2ef09da4c5f40eba0d18cf01fe4f85f3", "score": "0.81505495", "text": "public List<Song> allSongs() {\n\t\treturn songRepo.findAll();\n\t}", "title": "" }, { "docid": "f9adfd8394d1f039ad9d7ac7814dbb5f", "score": "0.79642355", "text": "public List<Song> retrieveSongs() throws IOException;", "title": "" }, { "docid": "08b4f23a11537fa10e5d4641b128ce4c", "score": "0.7449641", "text": "public void getSongList() {\r\n //retrieve song info\r\n ContentResolver musicResolver = getContentResolver();\r\n Uri musicUri = android.provider.MediaStore.Audio.Media.EXTERNAL_CONTENT_URI;\r\n Cursor musicCursor = musicResolver.query(musicUri, null, null, null, null);\r\n\r\n // If there's music stored on the device\r\n if(musicCursor!=null && musicCursor.moveToFirst()){\r\n //Gets column information for song information\r\n int idColumn = musicCursor.getColumnIndex(android.provider.MediaStore.Audio.Media._ID);\r\n int pathColumn = musicCursor.getColumnIndex(android.provider.MediaStore.Audio.Media.DATA);\r\n int titleColumn = musicCursor.getColumnIndex(android.provider.MediaStore.Audio.Media.TITLE);\r\n int artistColumn = musicCursor.getColumnIndex(android.provider.MediaStore.Audio.Media.ARTIST);\r\n\r\n // Adds songs to list\r\n do {\r\n long thisId = musicCursor.getLong(idColumn);\r\n String thisTitle = musicCursor.getString(titleColumn);\r\n String thisArtist = musicCursor.getString(artistColumn);\r\n String thisPath = musicCursor.getString(pathColumn);\r\n songList.add(new Song(thisId, thisTitle, thisArtist, thisPath));\r\n\r\n dbHelper.insertSong(thisPath, thisTitle, thisArtist);\r\n } while (musicCursor.moveToNext());\r\n }\r\n }", "title": "" }, { "docid": "20feacfc1e063ed83fc5e84aacc1352e", "score": "0.7435592", "text": "public List<Song> getAllSongs(Context context) {\n List<Song> allSongs = new ArrayList<>();\n String selection = MediaStore.Audio.Media.IS_MUSIC + \" != 0\";\n final String sortOrder = MediaStore.Audio.AudioColumns.TITLE + \" COLLATE LOCALIZED ASC\";\n\n Cursor cursor = null;\n try {\n cursor = context.getContentResolver()\n .query(MEDIA_CONTENT_URI, PROJECTIONS, selection, null, sortOrder);\n if (cursor != null) {\n cursor.moveToFirst();\n while (!cursor.isAfterLast()) {\n allSongs.add(convertCursorToSong(cursor));\n\n cursor.moveToNext();\n }\n }\n\n } catch (Exception e) {\n Log.e(TAG, e.toString(), e);\n } finally {\n if (cursor != null) {\n cursor.close();\n }\n }\n\n return allSongs;\n }", "title": "" }, { "docid": "4cc8b4ff966277cec472a5600244f196", "score": "0.73412216", "text": "List<Song> findAll();", "title": "" }, { "docid": "6f24b0b3a685a0916d5e7dbaf726fd73", "score": "0.7335318", "text": "public List<Songs> getAllSongs() throws SQLException\n {\n List<Songs> songs = new ArrayList<>();\n try (Connection con = db.getConnection())\n {\n Statement statement = con.createStatement();\n ResultSet rs = statement.executeQuery(\"SELECT * FROM Songs;\");\n while (rs.next())\n {\n int songId = rs.getInt(\"songId\");\n String title = rs.getString(\"title\");\n String artist = rs.getString(\"artist\");\n String genre = rs.getString(\"genre\");\n String duration = rs.getString(\"duration\");\n String songPath = rs.getString(\"songPath\");\n \n Songs song = new Songs(songId, title, artist, genre, duration, songPath);\n songs.add(song);\n }\n } catch (SQLException ex)\n {\n ex.printStackTrace();\n }\n return songs;\n }", "title": "" }, { "docid": "a44dc05798dd74596a6c17578746a8b9", "score": "0.7215093", "text": "public ArrayList<Song> getSongs() {\n\t\treturn songs;\n\t}", "title": "" }, { "docid": "2c8c3fe74354d112251847e1f03a58ea", "score": "0.7212232", "text": "public void retrieveAllSongs(){\n\n // WILL COUNT THE AMOUNT OF SONGS IN THE PLAYLIST AND INITIALIZE \"amountOfSongs\"\n // WILL CLEAR THE BUFFER FOR NEXT SQL STATEMENT\n countSongsInLibrary();\n\n\n\n // WILL GET THE NAME OF THE SONGS IN THE PLAYLIST\n DB.selectSQL(\"select fldName from tblSong\");\n\n\n if (amountOfSongs>0){\n\n\n // WILL ONLY RETRIEVE THE SELECTED DATA WHICH IN THIS CASE IS EVERYTHING\n // UNDER NORMAL CIRCUMSTANCES THE CONTENT CAN VARY A LOT\n loadDataOfLibrary();\n\n } else {\n\n System.out.println(\"There's no songs in the library\");\n }\n\n }", "title": "" }, { "docid": "7a4d2112ad4a25eb64df550a13848874", "score": "0.7191179", "text": "@Override\r\n\t@Transactional(propagation = Propagation.NOT_SUPPORTED,readOnly = true)\r\n\tpublic List<Music> findAll() {\n\t\treturn musicDao.findAll();\r\n\t}", "title": "" }, { "docid": "2b218c4c0125f25be66f7ec2b0492ed8", "score": "0.7181076", "text": "private void loadSongs() {\n String selection = MediaStore.Audio.Media.IS_MUSIC + \" != 0\";\n ContentResolver contentResolver = getContentResolver();\n Uri uri = MediaStore.Audio.Media.EXTERNAL_CONTENT_URI;\n Cursor cursor = contentResolver.query(uri, null, selection, null, null);\n\n if (cursor != null) {\n if (cursor.moveToFirst()) {\n do {\n String id = cursor.getString(cursor.getColumnIndex(MediaStore.Audio.Media._ID));\n String name = cursor.getString(cursor.getColumnIndex(MediaStore.Audio.Media.TITLE));\n String artist = cursor.getString(cursor.getColumnIndex(MediaStore.Audio.Media.ARTIST));\n String url = cursor.getString(cursor.getColumnIndex(MediaStore.Audio.Media.DATA));\n String album = cursor.getString(cursor.getColumnIndex(MediaStore.Audio.Media.ALBUM));\n String duration = cursor.getString(cursor.getColumnIndex(MediaStore.Audio.Media.DURATION));\n String albumID = cursor.getString((cursor.getColumnIndex(MediaStore.Audio.Media.ALBUM_ID)));\n String dateAdded = cursor.getString(cursor.getColumnIndex(MediaStore.Audio.Media.DATE_ADDED));\n\n if (Pattern.matches(\".*\\\\.mp3\", name)) {\n name = name.substring(0, name.length() - 4);\n }\n\n SongInfo s = new SongInfo(id, name, artist, url, album, Long.parseLong(duration), albumID, dateAdded);\n loadedSongs.add(s);\n } while (cursor.moveToNext());\n }\n cursor.close();\n\n songManager.initDB(this, loadedSongs);\n\n setTitle(loadedSongs.size() == 0 ? \"Songs\" : \"Songs (\" + loadedSongs.size() + \")\");\n\n songListFragment.initRecycler(loadedSongs);\n }\n }", "title": "" }, { "docid": "56017bc351b3444635f9b3915cd18e76", "score": "0.7066971", "text": "@Override\n\tpublic ArrayList<Song> getSongs() {\n\t\t// If albumTracks already contains songs, return the list.\n\t\tif (this._albumTracks != null && this._albumTracks.size() < 1) {\n\t\t\treturn this._albumTracks;\n\t\t}\n\t\tthis.PopulateSongs();\n\t\treturn this._albumTracks;\n\t}", "title": "" }, { "docid": "6ff06aeb7a951b4a758d84b4e8b2c6f6", "score": "0.69837147", "text": "List<Song> getSongs(String artist, String album);", "title": "" }, { "docid": "d07e221143aa246e10cd735a8a1fc87b", "score": "0.6935655", "text": "@Override\n\t@Transactional\n\tpublic List<SongList> getSongList() {\n\t\tSession currentSession = sessionFactory.getCurrentSession();\n\t\t\n\t\t// Create Query \n\t\tQuery<SongList> theQuery = currentSession.createQuery(\"from SongList\", SongList.class);\n\t\t\n\t\t// Execute Query and get results\n\t\tList<SongList> songList = theQuery.getResultList();\n\t\t\n\t\tSystem.out.println(\"Song List -> \" +songList);\n\t\t\n\t\treturn songList;\n\t}", "title": "" }, { "docid": "4ceeabd4a106b50bdf8e9cdcac7f5c06", "score": "0.69039816", "text": "@Override\n\tpublic List<?> findAll() {\n\t\treturn this.audiosDao.selectAll();\n\t}", "title": "" }, { "docid": "4126fcff2aa3d28d631fba1ef3e9b561", "score": "0.68752193", "text": "public ArrayList<SongEntry> getData()\n {\n return songs;\n }", "title": "" }, { "docid": "479e137d65bd692ed78c3560a87ef2b3", "score": "0.6874736", "text": "public List<Track> getAllTracks() {\n\t\tLog.i(TAG, \"START: getAllTracks\");\n\t\tContentResolver contentResolver = this.context.getContentResolver();\n\n\t\tString[] columns = new String[] { MediaStore.Audio.Media.DATA };\n\n\t\tUri filesUri = MediaStore.Audio.Media.getContentUriForPath(Environment\n\t\t\t\t.getExternalStorageDirectory().getPath());\n\n\t\tString whereSentence = String.format(\n\t\t\t\t\"%1$s = \\\"audio/mpeg\\\" OR %1$s = \\\"audio/mp4\\\"\",\n\t\t\t\tMediaStore.Audio.Media.MIME_TYPE);\n\n\t\tCursor cursor = null;\n\t\ttry {\n\t\t\tcursor = contentResolver.query(filesUri, columns, whereSentence,\n\t\t\t\t\tnull, null);\n\n\t\t\tint pathColumnIndex = cursor\n\t\t\t\t\t.getColumnIndex(MediaStore.Audio.Media.DATA);\n\n\t\t\twhile (cursor.moveToNext()) {\n\t\t\t\tTrack track = this.getTrackByUri(cursor\n\t\t\t\t\t\t.getString(pathColumnIndex));\n\t\t\t\tif (track != null) {\n\t\t\t\t\tsongsList.add(track);\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\tif (cursor != null) {\n\t\t\t\tcursor.close();\n\t\t\t}\n\t\t}\n\n\t\tLog.i(TAG, \"END: getAllTracks - \" + songsList.size() + \" songs loaded\");\n\t\treturn songsList;\n\t}", "title": "" }, { "docid": "5c1c9f23cd80591832d292eeb5bee67c", "score": "0.6865888", "text": "@Override\r\n\tpublic List<Music> findAllMusic() {\n\t\ttry {\r\n\t\t\tTypedQuery<Music> m = em.createQuery(\"SELECT m FROM Music m\", Music.class);\r\n\t\t\tList<Music> ListMusic = m.getResultList();\r\n\t\t\treturn ListMusic ;\r\n\t\t} catch (javax.persistence.NoResultException e) {\r\n\t\t\treturn null;\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "a643e74afa736d5ca3bc663515c4cc6e", "score": "0.68450785", "text": "public void testFetchSongs() {\r\n\t\t\tMusicService service = new MusicService();\r\n\t\t\tList<Song>songs = service.fetchSongsByDuration(240);\r\n\t\t\tfor(Song a : songs) {\r\n\t\t\t\tSystem.out.println(a.getId());\r\n\t\t\t\tSystem.out.println(a.getDuration());\r\n\t\t\t\tSystem.out.println(a.getTitle());\r\n\t\t\t\tSystem.out.println(a.getSinger());\r\n\t\t\t\r\n\t\t}\r\n\t\t}", "title": "" }, { "docid": "b01415178f3299a57b9285a457542f5d", "score": "0.68362707", "text": "List<MusicType> getAll();", "title": "" }, { "docid": "edfde77e037f8431001dde4cb42cbbbe", "score": "0.68127364", "text": "void loadSongs()\n {\n List<Song> loadedSongs = songManager.getAllSongs(); //undgå og throw\n\n songs.clear();\n songs.addAll(loadedSongs);\n }", "title": "" }, { "docid": "b945324c5b6cda007e1fec29d199d532", "score": "0.6740183", "text": "public ArrayList<HashMap<String, String>> getPlayList() {\n return songsList;\n }", "title": "" }, { "docid": "5b148776d26372b87734eeda06803aca", "score": "0.66597587", "text": "ArrayList<ArtistModel> getAllArtistData(Context context) {\n ArrayList<ArtistModel> allArtistData = new ArrayList<>();\n LinkedHashSet<String> allArtists = new LinkedHashSet<>();\n Cursor cursor;\n String selection = MediaStore.Audio.Media.IS_MUSIC + \" != 0\";\n String[] projection = {\n MediaStore.Audio.Media.DATA\n };\n cursor = context.getContentResolver().query(\n MediaStore.Audio.Media.EXTERNAL_CONTENT_URI,\n projection,\n selection,\n null,\n null);\n AudioFile f = null;\n if (cursor != null) {\n while (cursor.moveToNext()) {\n File file = new File(cursor.getString(0));\n try {\n f = AudioFileIO.read(file);\n } catch (CannotReadException | IOException | TagException | ReadOnlyFileException | InvalidAudioFrameException e) {\n e.printStackTrace();\n }\n\n if (f != null) {\n String artist = f.getTag().getFirst(FieldKey.ARTIST);\n if (artist.equals(\"\")) {\n allArtists.add(\"Unknown\");\n } else {\n allArtists.add(artist);\n }\n\n }\n }\n }\n\n if (cursor != null) {\n cursor.close();\n }\n\n for (String artist : allArtists) {\n allArtistData.add(new ArtistModel(artist));\n }\n for (ArtistModel artistModel : allArtistData) {\n try {\n for (Song s : this.getAllMusicData(context)) {\n if (artistModel.getArtist().equals(s.artist)) {\n artistModel.addSong(s);\n }\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n }\n return allArtistData;\n }", "title": "" }, { "docid": "24acab650b252f4aa80d39423d218b9b", "score": "0.66243047", "text": "public ArrayList<Song> getAllMusicData(Context context) {\n DatabaseHandler databaseHandler = new DatabaseHandler(context);\n\n if (databaseHandler.getAllSongs(DatabaseHandler.TABLE_SONGS, true).size() == 0 || needToUpdate) {\n Cursor cursor;\n //ArrayList<String> ids = new ArrayList<>(), artists = new ArrayList<>(), titles= new ArrayList<>(), paths= new ArrayList<>(), display_names= new ArrayList<>(), durations_ms= new ArrayList<>();\n String selection = MediaStore.Audio.Media.IS_MUSIC + \" != 0\";\n\n String[] projection = {\n MediaStore.Audio.Media._ID,\n MediaStore.Audio.Media.DATA,\n MediaStore.Audio.Media.DURATION\n\n };\n\n cursor = context.getContentResolver().query(\n MediaStore.Audio.Media.EXTERNAL_CONTENT_URI,\n projection,\n selection,\n null,\n null);\n ArrayList<Song> songs = new ArrayList<>();\n AudioFile f = null;\n if (cursor != null) {\n while (cursor.moveToNext()) {\n String id = cursor.getString(0);\n String loc = cursor.getString(1);\n String dur = cursor.getString(2);\n File file = new File(loc);\n try {\n f = AudioFileIO.read(file);\n } catch (CannotReadException | IOException | TagException | ReadOnlyFileException | InvalidAudioFrameException e) {\n e.printStackTrace();\n }\n assert f != null;\n Tag tag = f.getTag();\n String title = tag.getFirst(FieldKey.TITLE);\n String artist = tag.getFirst(FieldKey.ARTIST);\n String album = tag.getFirst(FieldKey.ALBUM);\n String defaultCover = \"drawable://\" + R.drawable.refresh_icon;\n songs.add(new Song(id, title, artist, album, defaultCover, dur, loc));\n }\n }\n if (cursor != null) {\n cursor.close();\n }\n\n DatabaseHandler db = new DatabaseHandler(context);\n try {\n db.deleteTable(\"TABLE_SONGS\");\n } catch (Exception e) {\n Log.d(\"Error\", e.toString());\n }\n\n for (Song song : songs) {\n db.addSong(song, DatabaseHandler.TABLE_SONGS);\n }\n return songs;\n\n } else {\n DatabaseHandler db = new DatabaseHandler(context);\n return db.getAllSongs(DatabaseHandler.TABLE_SONGS, true);\n }\n }", "title": "" }, { "docid": "748b46e1703abad6439f2cefd9970fa5", "score": "0.66199857", "text": "@Override\n\tpublic Iterable<Track> listAlltracks() {\n\t\t return trackRepository.findAll();\n\t}", "title": "" }, { "docid": "7c307d22ebabc904eae15f860d44c893", "score": "0.660542", "text": "@Override\r\n\tpublic List<Stock> retrieveAllStock() {\n\t\tList<Stock> stocks = (List<Stock>) Sr.findAll();\r\n\t\tfor (Stock stock : stocks){\r\n\t\tL.info(\"stock +++: \" + stock );}\r\n\t\treturn stocks;\r\n\t}", "title": "" }, { "docid": "6b1896f9e3fb09c9de415815cc86cf0d", "score": "0.6569348", "text": "public void getMusic() {\r\n ContentResolver contentResolver=getContentResolver();\r\n Uri songUri= MediaStore.Audio.Media.EXTERNAL_CONTENT_URI;\r\n Cursor songCursor=contentResolver.query(songUri,null,null,null,null);\r\n if(songCursor!=null && songCursor.moveToFirst()){\r\n do{\r\n String name=songCursor.getString(songCursor.getColumnIndex(MediaStore.Audio.Media.TITLE));\r\n String artist=songCursor.getString(songCursor.getColumnIndex(MediaStore.Audio.Media.ARTIST));\r\n String album=songCursor.getString(songCursor.getColumnIndex(MediaStore.Audio.Media.ALBUM));\r\n String url=songCursor.getString(songCursor.getColumnIndex(MediaStore.Audio.Media.DATA));\r\n Song s=new Song(artist,null,url,null);\r\n mSong.add(s);\r\n }while (songCursor.moveToNext());\r\n songCursor.close();\r\n mAdapter=new SongAdapter(this,mSong);\r\n }\r\n }", "title": "" }, { "docid": "4c9db9f784590d15ab4693d27b2fcf11", "score": "0.6565703", "text": "public ObservableList<Song> getSongList() {\n \tif(init == false){\n \t\tinit=true;\n \t\tFile f = new File(\"cache.txt\");\n \t\tif(f.exists()&&!f.isDirectory()){\n \t\t\tBufferedReader br = null;\n \t\t\ttry{\n \t\t\t\tString line;\n \t\t\t\tbr = new BufferedReader(new FileReader(\"cache.txt\"));\n \t\t\t\twhile((line=br.readLine())!=null){\n \t\t\t\t\tString[] parts = line.split(\"/\");\n \t\t\t\t\tSong s = new Song(parts[0]);\n \t\t\t\t\ts.setArtist(parts[1]);\n \t\t\t\t\ts.setAlbum(parts[2]);\n \t\t\t\t\ts.setYear(Integer.parseInt(parts[3]));\n \t\t\t\t\tsongList.add(s);\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}\n \treturn songList;\n }", "title": "" }, { "docid": "e17273492ba43c16c6f25fa707cb9f36", "score": "0.65560824", "text": "@Override\r\n\tpublic List<Music> getList() {\r\n\t\treturn list;\r\n\t}", "title": "" }, { "docid": "7a6e50257d712ddbb77732ecf3bb650d", "score": "0.6506306", "text": "@Override\n\t\tpublic List<MusicData> getList() throws RemoteException {\n\t\t\treturn mList;\n\t\t}", "title": "" }, { "docid": "d13dd988d01fbabe38a6bdee48e7e0a8", "score": "0.6491375", "text": "public void listSongs() {\n\t\tthis.songsLink.click();\n\t\t\n\t}", "title": "" }, { "docid": "d03e53fa1b03a41304ffce2eb2befaa5", "score": "0.64292246", "text": "public List<Song> getSongsByID(Context context, List<Long> songsID) {\n List<Song> songs = new ArrayList<>();\n Song song = null;\n for (Long id : songsID) {\n song = getSongByID(context, id);\n if (song != null) {\n songs.add(song);\n }\n }\n return songs;\n }", "title": "" }, { "docid": "d0ff4ee92334351cef5cc16c2b86fae5", "score": "0.639022", "text": "private static ArrayList<Song> getSongsList() {\n ArrayList<Song> songs = new ArrayList<>();\n //first song creation\n Song song1 = new Song();\n song1.setName(\"The road of Bones\");\n song1.setArtist(\"IQ\");\n song1.setAlbum(\"The road of Bones\");\n song1.setYear(\"2014\");\n songs.add(song1);\n //second song creation\n Song song2 = new Song();\n song2.setName(\"In the passing light of day\");\n song2.setArtist(\"Pain of salvation\");\n song2.setAlbum(\"In the passing light of day\");\n song2.setYear(\"2017\");\n songs.add(song2);\n return songs;\n }", "title": "" }, { "docid": "cd33718bc75eca3999071ba3dab13d85", "score": "0.6388558", "text": "private void GetSongFiles(){\n Songs.clear();\n String selection = MediaStore.Audio.Media.IS_MUSIC + \" != 0\";\n String[] projection = {\n MediaStore.Audio.Media.TITLE,\n MediaStore.Audio.Media.ARTIST,\n MediaStore.Audio.Media.ALBUM,\n MediaStore.Audio.Media.DATA,\n MediaStore.Audio.Media.DURATION,\n MediaStore.Audio.Media.ALBUM_ID\n\n };\n final String sortOrder = MediaStore.Audio.AudioColumns.TITLE + \" COLLATE LOCALIZED ASC\";\n\n Cursor cursor = null;\n try {\n Uri uri = android.provider.MediaStore.Audio.Media.EXTERNAL_CONTENT_URI;\n cursor = this.getContentResolver().query(uri, projection, selection, null, sortOrder);\n if( cursor != null){\n cursor.moveToFirst();\n while( !cursor.isAfterLast() ){\n\n String title = cursor.getString(0);//Get Title of song\n String artist = cursor.getString(1);//get artist name of song\n String albumName = cursor.getString(2);\n String path = cursor.getString(3);//get song path\n String songDuration = cursor.getString(4);//get song duration\n int albumID = Integer.parseInt(cursor.getString(5));\n\n\n //get album art bitmap\n Bitmap artwork = null;\n try {\n Uri albumArtUri = Uri.parse(\"content://media/external/audio/albumart\");\n Uri ArtUri = ContentUris.withAppendedId(albumArtUri, albumID);\n ContentResolver res = getContentResolver();\n InputStream in = res.openInputStream(ArtUri);\n artwork = BitmapFactory.decodeStream(in);\n }\n catch (Exception e)\n {\n\n }\n Song tempNewSong = new Song(title,artist,albumName,path,songDuration,artwork);\n Songs.add(tempNewSong);\n cursor.moveToNext();\n }\n\n }\n\n } catch (Exception e) {\n Log.d(\"AppTag\",e.toString());\n }finally{\n if( cursor != null){\n cursor.close();\n }\n }\n }", "title": "" }, { "docid": "badd84a7e15e96bf9fde075bbab23cfb", "score": "0.6377458", "text": "public Map<Album, List<Song>> getMappedSongs() {\n return songs;\n }", "title": "" }, { "docid": "a314801e6f5d41cfbe2a58a2cc0c7b2c", "score": "0.6334583", "text": "public static List<Song> getRecentlySongs() {\n List<Song> list = new ArrayList<>();\n Cursor c = dbMgr.getRecentlySongs();\n while(c.moveToNext()) {\n long songId = c.getLong(c.getColumnIndex(\"song_id\"));\n Song temp = getSongById(songId);\n if (temp != null) {\n list.add(temp);\n // Set Date\n temp.setDate(c.getString(c.getColumnIndex(\"time_string\")));\n } else {\n dbMgr.deleteFromSongDetailById(songId);\n }\n }\n c.close();\n sortSongByPinyin(list);\n return list;\n }", "title": "" }, { "docid": "014696981b21dd1c5dd9c1c6010f066f", "score": "0.62925714", "text": "private void loadAudio() {\n ContentResolver contentResolver = getContentResolver();\n\n Uri uri = MediaStore.Audio.Media.EXTERNAL_CONTENT_URI;\n String selection = MediaStore.Audio.Media.IS_MUSIC + \"!= 0\";\n String sortOrder = MediaStore.Audio.Media.TITLE + \" ASC\";\n Cursor cursor = contentResolver.query(uri, null, selection, null, sortOrder);\n\n if (cursor != null && cursor.getCount() > 0) {\n audioList = new ArrayList<>();\n while (cursor.moveToNext()) {\n String data = cursor.getString(cursor.getColumnIndex(MediaStore.Audio.Media.DATA));\n String title = cursor.getString(cursor.getColumnIndex(MediaStore.Audio.Media.TITLE));\n String album = cursor.getString(cursor.getColumnIndex(MediaStore.Audio.Media.ALBUM));\n String artist = cursor.getString(cursor.getColumnIndex(MediaStore.Audio.Media.ARTIST));\n\n // Save to audioList\n audioList.add(new Audio(data, title, album, artist));\n }\n }\n cursor.close();\n }", "title": "" }, { "docid": "d1c50ef9e0a545403409ff6ffb466330", "score": "0.62529206", "text": "@OnThread(Tag.Any)\n public static Iterable<String> getSoundFiles()\n {\n return delegate.getSoundFiles();\n }", "title": "" }, { "docid": "261d5ee739a4d75a3f5e84612de9d301", "score": "0.6246523", "text": "@RequestMapping(method = RequestMethod.GET)\n public Collection<Track> getAllTracks() {\n return this.trackService.getAllTracks();\n // return this.trackRepo.findAll();\n }", "title": "" }, { "docid": "74a9b5f30f9ebcae92cfcc1719ec255c", "score": "0.62368375", "text": "List<SongPlaylistDetailsBo> getSongsForPlaylist(Long playlist);", "title": "" }, { "docid": "ac898a9238b37b4f97317fec0d9ce151", "score": "0.62208086", "text": "ArrayList<AlbumModel> getAllAlbumData(Context context) {\n ArrayList<AlbumModel> allAlbumData = new ArrayList<>();\n LinkedHashSet<ArrayList> allAlbums = new LinkedHashSet<>();\n Cursor cursor;\n String selection = MediaStore.Audio.Media.IS_MUSIC + \" != 0\";\n String[] projection = {\n MediaStore.Audio.Media.DATA\n };\n cursor = context.getContentResolver().query(\n MediaStore.Audio.Media.EXTERNAL_CONTENT_URI,\n projection,\n selection,\n null,\n null);\n AudioFile f = null;\n if (cursor != null) {\n while (cursor.moveToNext()) {\n File file = new File(cursor.getString(0));\n try {\n f = AudioFileIO.read(file);\n } catch (CannotReadException | IOException | TagException | ReadOnlyFileException | InvalidAudioFrameException e) {\n e.printStackTrace();\n }\n\n if (f != null) {\n\n String album = f.getTag().getFirst(FieldKey.ALBUM); //get the album from the tags\n String artist = f.getTag().getFirst(FieldKey.ARTIST); //get the artist from the tags\n ArrayList<String> albumData = new ArrayList<>();\n if (album.equals(\"\")) {\n albumData.add(0, \"Unknown\");\n } else {\n albumData.add(0, album);\n }\n if (artist.equals(\"\")) {\n albumData.add(1, \"Unknown\");\n } else {\n albumData.add(1, artist);\n }\n allAlbums.add(albumData);\n\n }\n }\n }\n\n if (cursor != null) {\n cursor.close();\n }\n\n for (ArrayList albumData : allAlbums) {\n allAlbumData.add(new AlbumModel(albumData.get(0).toString(), albumData.get(1).toString()));\n }\n for (AlbumModel albumModel : allAlbumData) {\n try {\n for (Song s : this.getAllMusicData(context)) {\n if (albumModel.getAlbum().equals(s.album)) {\n albumModel.addSong(s);\n }\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n }\n\n return allAlbumData;\n }", "title": "" }, { "docid": "5df9297cd10e26d433639b4c272978fc", "score": "0.62181455", "text": "public Set<String> getSongs(String genre) {\n \t\t\t// Code it!!\n\t\t\t\t\n\t\t\t\n\t\t}", "title": "" }, { "docid": "9c88ce67ed221e4cbdc93860d5cd3b24", "score": "0.61942464", "text": "public List<AudioModel> getAllAudioFromDevice(final Context context) {\n final List<AudioModel> tempAudioList = new ArrayList<>();\n Uri uri = android.provider.MediaStore.Audio.Media.EXTERNAL_CONTENT_URI;\n String[] projection = {MediaStore.Audio.AudioColumns.DATA, MediaStore.Audio.AudioColumns.ALBUM, MediaStore.Audio.ArtistColumns.ARTIST, MediaStore.Audio.AudioColumns.TITLE};\n Cursor c = context.getContentResolver().query(uri, projection, null, null, null);\n\n if (c != null) {\n while (c.moveToNext()) {\n\n AudioModel audioModel = new AudioModel();\n String path = c.getString(0);\n String album = c.getString(1);\n String artist = c.getString(2);\n String title = c.getString(3);\n\n String name = path.substring(path.lastIndexOf(\"/\") + 1);\n String format = name.substring(name.lastIndexOf(\".\") + 1);\n if (title != null)\n audioModel.setName(title);\n else\n audioModel.setName(name);\n if (album != null)\n audioModel.setAlbum(album);\n if (artist != null)\n audioModel.setArtist(artist);\n audioModel.setPath(path);\n audioModel.setFormat(format);\n\n //Log.d(\"Name :\" + name, \" Album :\" + album);\n //Log.d(\"Path :\" + path, \" Artist :\" + artist);\n\n tempAudioList.add(audioModel);\n }\n c.close();\n }\n //Log.d(\"LIST\", \"total count: \" + tempAudioList.size());\n return tempAudioList;\n }", "title": "" }, { "docid": "d0a63e0844e3d78a7bd693ac7699625d", "score": "0.61570644", "text": "@RequestMapping(method = RequestMethod.GET, value = \"/populate-songs\")\r\n\tpublic String populateSongs() {\r\n\t\treturn etlService.triggerPopulateSongsDatabaseProcess();\r\n\t}", "title": "" }, { "docid": "9cd77eea825213adb1f4f844853d8250", "score": "0.61330456", "text": "public void getSongList(){\n\t\t\n\t\t\n\t\tdb.execSQL(\"drop table songlist\");\n\t\tdb.execSQL(\"drop table videolist\");\n\t\tdb.execSQL(\"create table if not exists songlist(title varchar(30),artist varchar(50),songid varchar(30),duration varchar(5))\");\n\t\t\n\t\t//----------------------- FOR SONGS --------------------------\n\t\t//query external audio\n\t\tContentResolver musicResolver = getContentResolver();\n\t\tUri musicUri = android.provider.MediaStore.Audio.Media.EXTERNAL_CONTENT_URI;\n\t\t\n\t\tCursor musicCursor = musicResolver.query(musicUri, null, null, null,null);\n\t\t//iterate over results if valid\n\t\tif(musicCursor!=null && musicCursor.moveToFirst()){\n\t\t\t//get columns\n\t\t\tint titleColumn = musicCursor.getColumnIndex\n\t\t\t\t\t(android.provider.MediaStore.Audio.Media.TITLE);\n\t\t\tint idColumn = musicCursor.getColumnIndex\n\t\t\t\t\t(android.provider.MediaStore.Audio.Media._ID);\n\t\t\tint artistColumn = musicCursor.getColumnIndex\n\t\t\t\t\t(android.provider.MediaStore.Audio.Media.ARTIST);\n\t\t\tint durationColumn=musicCursor.getColumnIndex(android.provider.MediaStore.Audio.Media.DURATION);\n\t\t\t//add songs to list\n\t\t\twhile (musicCursor.moveToNext())\n\t\t\t{\n\t\t\t\tlong thisId = musicCursor.getLong(idColumn);\n\t\t\t\tString thisTitle = musicCursor.getString(titleColumn);\n\t\t\t\tString thisArtist = musicCursor.getString(artistColumn);\n\t\t\t\tString thisDuration=musicCursor.getString(durationColumn);\n\t\t\t\t\n\t\t\t\ttry{\n\t\t\t\t\tdb.execSQL(\"insert into songlist values('\"+thisTitle+\"','\"+thisArtist+\"','\"+thisId+\"','\"+thisDuration+\"')\");\n\t\t\t\t}catch (Exception e) {\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}//while \n\n\t\t}//if\n\t\t\t\n\t\t\t\n\t\t\t//----------------\t\tfor videos\t\t-----------------------\n\t\t\t\n\t\tdb.execSQL(\"create table if not exists videolist(videotitle varchar(30),videoid varchar(30),videoduration varchar(5))\");\n\t\t\tContentResolver videoResolver = getContentResolver();\n\t\t\tUri videoUri = android.provider.MediaStore.Video.Media.EXTERNAL_CONTENT_URI;\n\t\t\t\n\t\t\tCursor videoCursor = videoResolver.query(videoUri, null, null, null,null);\n\t\t\t//iterate over results if valid\n\t\t\tif(videoCursor!=null && videoCursor.moveToFirst()){\n\t\t\t\t//get columns\n\t\t\t\tint titleColumnVideo = videoCursor.getColumnIndex\n\t\t\t\t\t\t(android.provider.MediaStore.Video.Media.TITLE);\n\t\t\t\tint idColumnVideo = videoCursor.getColumnIndex\n\t\t\t\t\t\t(android.provider.MediaStore.Video.Media._ID);\n\t\t\t\tint durationColumnVideo=videoCursor.getColumnIndex(android.provider.MediaStore.Video.Media.DURATION);\n\t\t\t\t\n\t\t\t\t//add VIDEOS to list\n\t\t\t\twhile (videoCursor.moveToNext())\n\t\t\t\t{\n\t\t\t\t\tlong thisId = videoCursor.getLong(idColumnVideo);\n\t\t\t\t\tString thisTitle = videoCursor.getString(titleColumnVideo);\n\t\t\t\t\t\n\t\t\t\t\tString thisDuration=videoCursor.getString(durationColumnVideo);\n\t\t\t\t\t\n\t\t\t\t\ttry{\n\t\t\t\t\t\tdb.execSQL(\"insert into videolist values('\"+thisTitle+\"','\"+thisId+\"','\"+thisDuration+\"')\");\n\t\t\t\t\t}catch (Exception e) {\n\t\t\t\t\t\t// TODO: handle exception\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}//while \n\t\t\t\t\n\t\t\t\n\t\t}//if\n\t}", "title": "" }, { "docid": "b705a35e22907ef1316ab47c5ed8f4ea", "score": "0.61178756", "text": "private void displaySongs() {\r\n controller.listPlaylist.getItems().clear();\r\n for (Song song : currentPlaylist.getPlaylist()) {\r\n controller.listPlaylist.getItems().add(song.getName());\r\n }\r\n }", "title": "" }, { "docid": "6bf024c58603535c8d56eb121c7cb073", "score": "0.61140007", "text": "@RequestMapping(path = \"/all\", method = RequestMethod.GET)\n public @ResponseBody\n Iterable<Stocks> findAll() {\n return stocksRepository.findAll();\n }", "title": "" }, { "docid": "819e8462c46df66fd67cb9a623da9a89", "score": "0.6107599", "text": "public List<Artist> getAllArtists() {\n return getEntityManager()\n .createNamedQuery(\"getAllArtists\")\n .getResultList();\n }", "title": "" }, { "docid": "ad72a2189325589d379aba5029cd428e", "score": "0.6104379", "text": "public List<Lyric> getSong()\n {\n return this.song;\n }", "title": "" }, { "docid": "19e2b6eb72886e104d68a2237a706560", "score": "0.6100771", "text": "@GetMapping\n public List<ArtistResponse> getAll() {\n return artistService.findAll().stream().map(ArtistResponse::from).collect(Collectors.toList());\n }", "title": "" }, { "docid": "f7f2f1791eb315f356d64e7f8fac3a22", "score": "0.60820025", "text": "public List<AudioFileMetadata> listAllAudioFile();", "title": "" }, { "docid": "6b28fae045dde6072d2f623a4b1a2d67", "score": "0.6079805", "text": "java.util.List<String>\n getMusicListList();", "title": "" }, { "docid": "6b28fae045dde6072d2f623a4b1a2d67", "score": "0.6079805", "text": "java.util.List<String>\n getMusicListList();", "title": "" }, { "docid": "c9a1e2cfba46a4bf328ef46473df4884", "score": "0.60682297", "text": "@Override\r\n\tpublic List<Artist> getAllArtist() {\r\n\r\n\t\tList<Artist> list;\r\n\r\n\t\tlist = new ArrayList<Artist>();\r\n\r\n\t\ttry {\r\n\r\n\t\t\tgetAllStm = con.prepareStatement(\"SELECT * FROM \\\"Artist\\\"\");\r\n\r\n\t\t\tResultSet resultSet = getAllStm.executeQuery();\r\n\r\n\t\t\twhile (resultSet.next()) {\r\n\r\n\t\t\t\tArtist artist = new Artist();\r\n\r\n\t\t\t\tartist.setID(resultSet.getInt(\"ID\"));\r\n\t\t\t\tartist.setFirstName(resultSet.getString(\"first_name\"));\r\n\t\t\t\tartist.setLastName(resultSet.getString(\"last_name\"));\r\n\t\t\t\tartist.setArtistName(resultSet.getString(\"artist_name\"));\r\n\t\t\t\r\n\r\n\t\t\t\tlist.add(artist);\r\n\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\r\n\t\t}\r\n\t\treturn list;\r\n\r\n\t}", "title": "" }, { "docid": "60987b0a47d48a81865b4bfa393acaab", "score": "0.606612", "text": "private void getArtistTrackList() {\n if (Utils.isOnline(mActivity)) {\n mProgressDialog = ProgressDialog.show(mActivity, null, mActivity.getString(R.string.content_loading));\n mProgressDialog.show();\n\n // Spotify search using callback\n SpotifyApi api = new SpotifyApi();\n SpotifyService service = api.getService();\n\n Map<String, Object> options = new HashMap<>();\n options.put(SpotifyService.COUNTRY, mCountryCode);\n options.put(SpotifyService.OFFSET, 0);\n options.put(SpotifyService.LIMIT, 10);\n\n service.getArtistTopTrack(mArtistId, options, mSpotifyCallback);\n } else {\n Toast.makeText(getActivity(), getResources().getString(R.string.toast_error_not_online), Toast.LENGTH_SHORT).show();\n }\n }", "title": "" }, { "docid": "a724426200f5a74d440487596a704ce3", "score": "0.6041321", "text": "public ArrayList<MediaBrowserCompat.MediaItem> getArtistMediaItems() {\n final Uri uri = MediaStore.Audio.Artists.EXTERNAL_CONTENT_URI;\n final String _ID = MediaStore.Audio.Artists._ID;\n final String NAME_COLUMN = MediaStore.Audio.Artists.ARTIST;\n final String[] cursorColumns={_ID, NAME_COLUMN };\n final String orderby = NAME_COLUMN + \" COLLATE NOCASE\";\n final String where = null;\n\n ContentResolver cr = context.getContentResolver();\n Cursor artistsCursor = cr.query(uri, cursorColumns, where, null, orderby);\n ArrayList<MediaBrowserCompat.MediaItem> mediaItems = new ArrayList<>();\n MediaBrowserCompat.MediaItem mediaItem;\n try {\n while (artistsCursor.moveToNext()) {\n String id = artistsCursor.getString(0);\n String name = artistsCursor.getString(1);\n MediaDescriptionCompat mediaDescription = new MediaDescriptionCompat.Builder()\n .setTitle(name)\n .setSubtitle(\"Songs by \"+name)\n .setMediaId(\"__ARTIST__\"+id)\n .build();\n\n int flags = MediaBrowserCompat.MediaItem.FLAG_PLAYABLE | MediaBrowserCompat.MediaItem.FLAG_BROWSABLE;\n mediaItem = new MediaBrowserCompat.MediaItem(mediaDescription, flags);\n mediaItems.add(mediaItem);\n }\n } finally {\n artistsCursor.close();\n }\n\n return mediaItems;\n\n }", "title": "" }, { "docid": "c143366235985cda1d334743d7bb696c", "score": "0.60315746", "text": "private void loadAlbums() {\n String selectStr = null;\n String[] selectArgs = {\"\"};\n\n if (mArtistId > 0) {\n selectStr = MediaStore.Audio.Media.ARTIST_ID + \" = ?\";\n selectArgs[0] = Long.toString(mArtistId);\n } else {\n selectArgs = null;\n }\n\n //get album name and ids\n String[] projection = {MediaStore.Audio.Media.ALBUM_ID,\n MediaStore.Audio.Media.ALBUM};\n\n //search for albums for all artists or just the passed on\n ContentResolver contentResolver = getContentResolver();\n Cursor cursor = contentResolver.query(MediaStore.Audio.Media.EXTERNAL_CONTENT_URI,\n projection, selectStr, selectArgs, projection[1]);\n\n if (cursor != null && cursor.moveToFirst()) {\n int albumCol = cursor.getColumnIndex(android.provider.MediaStore.Audio.Media.ALBUM);\n int albumIdCol = cursor.getColumnIndex(android.provider.MediaStore.Audio.Media.ALBUM_ID);\n HashSet<Long> albumIds = new HashSet<Long>();\n\n do {\n //if this has already been added skip this round\n Long albumId = cursor.getLong(albumIdCol);\n if (albumIds.contains(albumId)) continue;\n\n albumIds.add(albumId);\n\n Album a = new Album();\n a.setId(albumId);\n a.setName(cursor.getString(albumCol));\n\n mAlbumList.add(a);\n\n } while (cursor.moveToNext());\n }\n }", "title": "" }, { "docid": "7af9e728b6af45595aafe657b3d93527", "score": "0.59627897", "text": "ListSong selectByPrimaryKey(Integer id);", "title": "" }, { "docid": "62a1d7be6d981e60256ed1af523a84c9", "score": "0.59596026", "text": "@GET\n public Collection<VolleyStuff> getAvailableVolleyStuff() {\n return storage.findAll();\n }", "title": "" }, { "docid": "ef8db87399781d0fa25538f00fe4b10f", "score": "0.59577626", "text": "public List<AudioInfo> getAudioData() {\n List<AudioInfo> audioList = new ArrayList<AudioInfo>();\n audioList.addAll(getWhereAudioData(Environment.DIRECTORY_RINGTONES));\n audioList.addAll(getWhereAudioData(Environment.DIRECTORY_MUSIC));\n return audioList;\n }", "title": "" }, { "docid": "10e737b374f18cce8131a8c3c3928137", "score": "0.5947586", "text": "@Override\n\tpublic Stream<FileDB> getAllFiles() {\n\t\treturn fileRepository.findAll().stream();\n\t}", "title": "" }, { "docid": "223ef69ea5c19704d5eff2b79fd45de4", "score": "0.5934524", "text": "@Override\n public List<Storage> selectAll() {\n return sessionUtil.selectAll(Storage.class);\n }", "title": "" }, { "docid": "0c083f8e3ebc47caf0b52ae1938ba623", "score": "0.5915933", "text": "public List<Track> getTracks(boolean force) {\n\t\tif (songsList != null && !force)\n\t\t\treturn songsList;\n\t\tscanMedia();\n\t\treturn getAllTracks();\n\t}", "title": "" }, { "docid": "332280efbcf42d613b16feeb90f0c9f2", "score": "0.5903445", "text": "public ArrayList<PlaylistModel> getPlaylists(Context context) {\n DatabaseHandler playlistDatabaseHandler = new DatabaseHandler(context);\n ArrayList<PlaylistModel> playlistModels;\n playlistModels = playlistDatabaseHandler.getAllPlaylists();\n return playlistModels;\n }", "title": "" }, { "docid": "e8febcf9f6fa32155f969f5031565306", "score": "0.58766013", "text": "public Collection<Audio> getAllAudio() {\r\n\t\treturn allAudio;\r\n\t}", "title": "" }, { "docid": "a83e65630696f44a5e2d134225b2479b", "score": "0.58710563", "text": "public String[] getSongs(int start, int end);", "title": "" }, { "docid": "147e4dce6d8596116cb6461b9834a652", "score": "0.5863005", "text": "public void populate() {\n musics.clear();\n musicResolver = getActivity().getContentResolver();\n Uri musicuri = MediaStore.Audio.Artists.EXTERNAL_CONTENT_URI;\n Cursor musicCursor = musicResolver.query(musicuri, null, null, null, \"LOWER(\" + MediaStore.Audio.Artists.ARTIST + \")ASC\");\n if (musicCursor != null) {\n int artist = musicCursor.getColumnIndex(MediaStore.Audio.Artists.ARTIST);\n int nosong = musicCursor.getColumnIndex(MediaStore.Audio.Artists.NUMBER_OF_TRACKS);\n int id = musicCursor.getColumnIndex(MediaStore.Audio.Artists._ID);\n\n while (musicCursor.moveToNext()) {\n ArrayList<String> tempmusic = new ArrayList<>();\n tempmusic.add(0, musicCursor.getString(artist));\n tempmusic.add(1, musicCursor.getString(nosong));\n tempmusic.add(2, musicCursor.getString(id));\n tempmusic.add(3, getAlbumArt(artist));\n musics.add(tempmusic);\n }\n musicCursor.close();\n }\n// Toast.makeText(getActivity(), Integer.toString(musics.size()), Toast.LENGTH_SHORT).show();\n artistAdapter.notifyDataSetChanged();\n }", "title": "" }, { "docid": "8ce7dc859f0009524aa3e9c0a4502d85", "score": "0.5856673", "text": "public static List<SampleThing> findAll() {\n\t\treturn getPersistence().findAll();\n\t}", "title": "" }, { "docid": "f8a99ca006037bcfd29bc4ee5792ea7e", "score": "0.5854976", "text": "@Override\r\n\tpublic List<Album> findAll() {\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "4ed3ade6380c3924289422fefee30b4e", "score": "0.5854733", "text": "public Songs[] getSongsPool() {\r\n\t\treturn pool;\r\n\t}", "title": "" }, { "docid": "5e24ff4ff2aa6f520f43ac72031a4018", "score": "0.5843753", "text": "@CrossOrigin(origins = \"http://localhost:3000\")\n @GetMapping\n @RequestMapping(\"/songs\")\n public SongPage getSongs() {\n return getSongs(0);\n }", "title": "" }, { "docid": "c3f0376d96d38f61a39b0988ccbcbe1e", "score": "0.5828052", "text": "public static Query<PictureAlbum> all() {\n return Model.all(PictureAlbum.class);\n }", "title": "" }, { "docid": "9c21cd12d482cf9c5f188430c825c17d", "score": "0.58248276", "text": "public void displaySongs() {\n\t\tif(songs.size() ==0) {\n\t\t\tSystem.out.print(\"Currently has no songs\\n\");\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tfor(int i = 0; i<songs.size(); i++) {\n\t\t\tSong currentSong = songs.get(i);\n\t\t\t//1. Test Song by GroupA <3 minutes 40 seconds>\n\t\t\tSystem.out.println(i + \". \" + currentSong.getTitle() + \" by \" + currentSong.getArtist() + \" <\" + currentSong.getFormattedLength() + \">\");\n\t\t}\n\t}", "title": "" }, { "docid": "27dfcb16f9116fce3584da2378175aeb", "score": "0.5822005", "text": "private void addSongs() {\n for (int i = 0; i <= 100; i++) {\n allSongs.add(new Song(\"Song number \" + i, getRandomArtist()\n , R.drawable.dummy_img, getRandomInt(100), getRandomBool()));\n }\n }", "title": "" }, { "docid": "7e802d4278557f679cdcdd7e32d129fd", "score": "0.58161116", "text": "@Override\r\n public List<T> getAll() {\r\n loadFromFile();\r\n return new ArrayList<>(storage.values());\r\n }", "title": "" }, { "docid": "fab2d4f9e4f0ec9fe787645f9a1ca02d", "score": "0.58095306", "text": "public List<T> retrieveAll();", "title": "" }, { "docid": "4eb2429415e0fdcb457bdafc3eb86d28", "score": "0.5806193", "text": "private void loadSongsFromSDCard() {\n\n \t// load file\n \tFile home = Environment.getExternalStorageDirectory();\n \t\n \t// check location for playable songs\n \tif (home.listFiles(new SongFileFilter()).length > 0) {\n \t\t\n \t\t// loadany config file\n \t\tArrayList<XMLSong> xmlSongs = null;\n \t\tfor (File xmlFile : home.listFiles(new XMLFileFilter())) {\n\n\t\t\t\t// load XML file if it is named this\n \t\t\tif (xmlFile.getName() == \"song_list.xml\")\n \t\t\t{\n \t\t\t\ttry\n \t\t\t\t{\n \t\t\t\t\t// create a SAX parser to read our XML\n \t\t\t\t\tSAXParserFactory spf = SAXParserFactory.newInstance();\n \t\t\t\t\tSAXParser sp = spf.newSAXParser();\n \t\t\t\t\t\n \t\t\t\t\t// get the XML Reader\n \t\t\t\t\tXMLReader xr = sp.getXMLReader();\n \t\t\t\t\t\n \t\t\t\t\t// get our content handler to read the file\n \t\t\t\t\tXMLSongListHandler xmlSongHandler = new XMLSongListHandler();\n \t\t\t\t\txr.setContentHandler(xmlSongHandler);\n \t\t\t\t\t\n \t\t\t\t\t// parse the file\n \t\t\t\t\txr.parse(new InputSource(new FileReader(xmlFile)));\t\t\t\t\t\n \t\t\t\t\t\t\n \t\t\t\t\t// assign the data\n \t\t\t\t\txmlSongs =\txmlSongHandler.getSongs();\t\t\n \t\t\t\t}\n \t\t\t\tcatch (SAXException e)\n \t\t\t\t{\n \t\t\t\t\t// do nothing, file doesn't load\n \t\t\t\t}\n \t\t\t\tcatch (ParserConfigurationException e)\n \t\t\t\t{\n \t\t\t\t\t// do nothing, file doesn't load\n \t\t\t\t}\n \t\t\t\tcatch (IOException e)\n \t\t\t\t{\n \t\t\t\t\t// do nothing, file doesn't load\n \t\t\t\t}\n \t\t\t}\n \t\t}\n \t\t\n \t\t// load playable song file names\n \t\tfor (File file : home.listFiles(new SongFileFilter())) {\n \t\t\t\n \t\t\t// add songs to arrayList\n \t\t\ttry {\n \t\t\t\t\n \t\t\t\t// get BPM from config file, if present\n \t\t\t\tif (xmlSongs != null)\n \t\t\t\t{\n \t\t\t\t\t\n \t\t\t\t\t// look for song with matching name\n \t\t\t\t\tfor (XMLSong song : xmlSongs) {\n \t\t\t\t\t\t\n \t\t\t\t\t\t// test name\n \t\t\t\t\t\tif (song.getName() == file.getName())\n \t\t\t\t\t\t{\n \t\t\t\t\t\t\t// add song with configred BPM from XML\n \t \t\t\tsongs.add(new Song(AudioFileIO.read(file), file.getName(), null));\t\t\n \t\t\t\t\t\t}\n \t\t\t\t\t}\n \t\t\t\t}\n \t\t\t\telse\n \t\t\t\t{\n \t\t\t\t\t\n \t\t\t\t\t// add song with BPM, will default to ID3 tag read\n \t\t\tsongs.add(new Song(AudioFileIO.read(file), file.getName(), null));\t\n \t\t\t\t}\n \t\t\t}\n \t\t\tcatch (InvalidAudioFrameException e){\n\t\t\t\t\te.printStackTrace();\t\n \t\t\t} \n \t\t\tcatch (CannotReadException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t} \n \t\t\tcatch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t} \n \t\t\tcatch (TagException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t} \n \t\t\tcatch (ReadOnlyFileException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n \t\t}\n \t}\n\t}", "title": "" }, { "docid": "97da269ac204f9beb9281a8dca71880f", "score": "0.5797148", "text": "@RequestMapping(value = \"/index/stocks\", method = RequestMethod.GET)\n public ResponseEntity<List<Stock>> listOfAllStocks() {\n List<Stock> stocks = stockService.findAllStocks();\n if (stocks.isEmpty()) {\n return new ResponseEntity<>(HttpStatus.NO_CONTENT);\n }\n return new ResponseEntity<>(stocks, HttpStatus.OK);\n }", "title": "" }, { "docid": "8d4ab50211bdb136b6c7c023c8ac8cf8", "score": "0.57946163", "text": "public List<T> loadAll() {\n\t\treturn getDao().getAll();\n\t}", "title": "" }, { "docid": "7dac53bd5aaae07e853f47b97a7c2365", "score": "0.57878876", "text": "public static List<Song> getAgoSongs() {\n List<Song> list = new ArrayList<>();\n Cursor c = dbMgr.getAgoSongs();\n while(c.moveToNext()) {\n long songId = c.getLong(c.getColumnIndex(\"song_id\"));\n Song temp = getSongById(songId);\n if (temp != null) {\n list.add(temp);\n // Set Date\n temp.setDate(c.getString(c.getColumnIndex(\"time_string\")));\n } else {\n dbMgr.deleteFromSongDetailById(songId);\n }\n }\n c.close();\n sortSongByPinyin(list);\n return list;\n }", "title": "" }, { "docid": "e576ccbcfe3553a1f44e3b52087716b9", "score": "0.57675433", "text": "List getAll();", "title": "" }, { "docid": "15adb7abf144aac55908938ecce07afd", "score": "0.5764639", "text": "@Query(value = \"select * from songs where Album_Id = :albumId\", nativeQuery = true)\n\tpublic List<Song> findAllByAlbumId(@Param(\"albumId\") Integer id);", "title": "" }, { "docid": "97a39430957ee64ec8cdee24992416b9", "score": "0.5758121", "text": "public List<Player> getAllPlayers();", "title": "" }, { "docid": "59e2cf31007b8e3b3400299771be5233", "score": "0.575259", "text": "protected void searchSongs(String searchText) {\n\n adapter.clear();\n// queryAllSongs(); // For now, just showing all songs in the Back4App database\n querySongs(searchText);\n }", "title": "" }, { "docid": "f82e7c6a12490c8501ccaf3702c72a5f", "score": "0.5740936", "text": "public ArrayList<Contact> getAllSongs() {\n\n ArrayList<Contact> wordList = new ArrayList<>();\n // Select All Query\n String selectQuery = \"SELECT * FROM \" + TABLE_CONTACT;\n\n SQLiteDatabase db = this.getWritableDatabase();\n Cursor cursor = db.rawQuery(selectQuery, null);\n\n\n // Duyệt trên con trỏ, và thêm vào danh sách.\n if (cursor.moveToFirst()) {\n do {\n Contact word = new Contact();\n word.setId(cursor.getInt(0));\n word.setName(cursor.getString(1));\n word.setPhone(cursor.getString(2));\n\n // Thêm vào danh sách.\n wordList.add(word);\n } while (cursor.moveToNext());\n }\n return wordList;\n }", "title": "" }, { "docid": "6750bef501fb6b66de72f587b40c3c00", "score": "0.5738372", "text": "java.util.List<com.example.music.AlbumsProtos.Album.Track> \n getTrackList();", "title": "" }, { "docid": "66a19f21718bdea0d9a3fc0032e43168", "score": "0.57327425", "text": "public Iterable<Session> GetAllSessions() {\n\t\treturn _storage.values();\n\t}", "title": "" }, { "docid": "b152fc9f37c7e985e496212a65c60b9e", "score": "0.57163656", "text": "@Override\n\tpublic List<Stock> getAllStockDetails() {\n\t\tlog.debug(\"START\");\n\t\treturn stockDao.findAll();\n\t}", "title": "" }, { "docid": "bbc539e65c41959efd1febc3a834573a", "score": "0.5705698", "text": "public List<Shoppingcart> getAll() {\n\t\treturn shoppingCartDao.getAll();\n\t}", "title": "" }, { "docid": "4260ff450072056515232724893419b1", "score": "0.5704651", "text": "public List<result> retrieveAll() {\n \tObjectify ofy = ObjectifyService.begin();\n\n \tQuery<result> q = ofy.query( result.class);\n\n \treturn q.list(); \n }", "title": "" }, { "docid": "cb80c8a043706a3485e7392435068cfd", "score": "0.5689907", "text": "public ArrayList<MediaBrowserCompat.MediaItem> getAlbumMediaItems() {\n final Uri uri = MediaStore.Audio.Albums.EXTERNAL_CONTENT_URI;\n final String _ID = MediaStore.Audio.Albums._ID;\n final String ARTIST_COLUMN = MediaStore.Audio.Albums.ARTIST;\n final String NAME_COLUMN = MediaStore.Audio.Albums.ALBUM;\n\n final String[] cursorColumns={_ID, NAME_COLUMN, ARTIST_COLUMN};\n final String orderby = NAME_COLUMN + \" COLLATE NOCASE\";\n\n final String where = null;\n ContentResolver cr = context.getContentResolver();\n Cursor albumsCursor = cr.query(uri, cursorColumns, where, null, orderby);\n\n ArrayList<MediaBrowserCompat.MediaItem> mediaItems = new ArrayList<>();\n MediaBrowserCompat.MediaItem mediaItem;\n try {\n while (albumsCursor.moveToNext()) {\n String id = albumsCursor.getString(0);\n String name = albumsCursor.getString(1);\n String artist = albumsCursor.getString(2);\n MediaDescriptionCompat mediaDescription = new MediaDescriptionCompat.Builder()\n .setTitle(name)\n .setSubtitle(artist)\n .setMediaId(\"__ALBUM__\"+id)\n .build();\n\n int flags = MediaBrowserCompat.MediaItem.FLAG_PLAYABLE | MediaBrowserCompat.MediaItem.FLAG_BROWSABLE;\n\n mediaItem = new MediaBrowserCompat.MediaItem(mediaDescription, flags);\n mediaItems.add(mediaItem);\n }\n } finally {\n albumsCursor.close();\n }\n\n return mediaItems;\n }", "title": "" }, { "docid": "dfc3a28154781e32abc19b692aee9800", "score": "0.5676112", "text": "@Query(\"SELECT * FROM audio_table\")\n List<Audio> getAllAudio();", "title": "" }, { "docid": "8a1139fff4ecc6ceb100f80b401ef1da", "score": "0.5673993", "text": "public List<String> getSongsForUser(String user)\n\t{\n\t\tif(mUserListeningHistory.containsKey(user)) \n\t\t\treturn Lists.newArrayList(mUserListeningHistory.get(user).keySet());\n\n\t\treturn Lists.newArrayList();\n\t}", "title": "" }, { "docid": "3f6f7f16f8fabf400b191cc05bb8cc78", "score": "0.5673466", "text": "public List<MusicFile> getRandomSongs(RandomSearchCriteria criteria) throws IOException {\r\n int count = criteria.getCount();\r\n List<MusicFile> result = new ArrayList<MusicFile>(count);\r\n \r\n if (!isIndexCreated() || isIndexBeingCreated() || cachedSongs == null || cachedSongs.isEmpty()) {\r\n return result;\r\n }\r\n \r\n // Ensure that index is read to memory.\r\n getIndex();\r\n \r\n String genre = criteria.getGenre();\r\n Integer fromYear = criteria.getFromYear();\r\n Integer toYear = criteria.getToYear();\r\n String musicFolderPath = null;\r\n if (criteria.getMusicFolderId() != null) {\r\n MusicFolder musicFolder = settingsService.getMusicFolderById(criteria.getMusicFolderId());\r\n musicFolderPath = musicFolder.getPath().getPath().toUpperCase() + File.separator;\r\n }\r\n \r\n // Filter by genre, year and music folder, if required.\r\n List<Line> songs = cachedSongs;\r\n if (genre != null || fromYear != null || musicFolderPath != null) {\r\n songs = new ArrayList<Line>();\r\n \r\n String fromYearString = fromYear == null ? null : String.valueOf(fromYear);\r\n String toYearString = toYear == null ? null : String.valueOf(toYear);\r\n \r\n for (Line song : cachedSongs) {\r\n \r\n // Skip if wrong genre.\r\n if (genre != null && !genre.equalsIgnoreCase(song.genre)) {\r\n continue;\r\n }\r\n \r\n // Skip if wrong year.\r\n if (fromYearString != null) {\r\n if (song.year == null) {\r\n continue;\r\n }\r\n if (song.year.compareTo(fromYearString) < 0) {\r\n continue;\r\n }\r\n if (song.year.compareTo(toYearString) > 0) {\r\n continue;\r\n }\r\n }\r\n \r\n // Skip if wrong music folder.\r\n if (musicFolderPath != null) {\r\n String filePath = song.file.getPath().toUpperCase();\r\n if (!filePath.startsWith(musicFolderPath)) {\r\n continue;\r\n }\r\n }\r\n \r\n songs.add(song);\r\n }\r\n }\r\n \r\n if (songs.isEmpty()) {\r\n return result;\r\n }\r\n \r\n // Note: To avoid duplicates, we iterate over more than the requested number of songs.\r\n for (int i = 0; i < count * 10; i++) {\r\n int n = RANDOM.nextInt(songs.size());\r\n File file = songs.get(n).file;\r\n \r\n if (file.exists() && securityService.isReadAllowed(file)) {\r\n MusicFile musicFile = musicFileService.getMusicFile(file);\r\n if (!result.contains(musicFile)) {\r\n result.add(musicFile);\r\n \r\n // Enough songs found?\r\n if (result.size() == count) {\r\n break;\r\n }\r\n }\r\n }\r\n }\r\n \r\n return result;\r\n }", "title": "" }, { "docid": "6917e2498352cc4af0b9e4942a2405c8", "score": "0.56690997", "text": "List<AlbumArtist.Artist> getArtists();", "title": "" }, { "docid": "15829ce8fd47265ea4faf71da1f04227", "score": "0.56685543", "text": "public void listAllTracks()\r\n {\r\n System.out.println(\"Track listing: \");\r\n\r\n for(Track track : tracks) {\r\n System.out.println(track.getDetails());\r\n }\r\n System.out.println();\r\n }", "title": "" }, { "docid": "facf7032288c14c1bb393593e4617093", "score": "0.56673896", "text": "@Override\n public List<Item> getAll() {\n List<Item> list = new ArrayList<>();\n Item item = null;\n try (Statement statement = connection.createStatement()) {\n ResultSet resultSet = statement.executeQuery(\"SELECT*FROM tracker.items\");\n while (resultSet.next()) {\n item = new Item(resultSet.getString(\"user_name\"),\n resultSet.getString(\"descriptios\"));\n list.add(item);\n }\n } catch (SQLException e) {\n e.printStackTrace();\n }\n return list;\n }", "title": "" }, { "docid": "a4c5cf4c602d21a985bb86f13ae2de41", "score": "0.5656903", "text": "public java.util.List<com.example.music.AlbumsProtos.Album.Track> getTrackList() {\n return track_;\n }", "title": "" }, { "docid": "972063e26622f92b10f5500cae766eaa", "score": "0.5650594", "text": "@RequestMapping(path = \"/store\", method = RequestMethod.GET)\n\tpublic List<Store> getStores() {\n\t\treturn repo.getAll();\n\t}", "title": "" }, { "docid": "991ca18b79d2112dea588518797feae1", "score": "0.56502974", "text": "List<Player> getAllPlayers();", "title": "" }, { "docid": "5000d247e6ccc9eec6402ac794794147", "score": "0.56495506", "text": "@Override\n\tpublic List<File> queryList() {\n\t\treturn fileDao.queryList();\n\t}", "title": "" } ]
5e185150f8b61ce5105970ef4a853eb6
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.
[ { "docid": "82c1291c37912db9bf34951362822670", "score": "0.0", "text": "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n deleteNo = new javax.swing.JLabel();\n deleteNoTxt = new javax.swing.JTextField();\n deleteDate = new javax.swing.JLabel();\n deleteDateTxt = new javax.swing.JTextField();\n deleteTitle = new javax.swing.JLabel();\n deleteNotice = new javax.swing.JLabel();\n Delete = new javax.swing.JButton();\n jScrollPane2 = new javax.swing.JScrollPane();\n deleteNoticeTxt = new javax.swing.JTextArea();\n Exit = new javax.swing.JLabel();\n search = new javax.swing.JLabel();\n jScrollPane1 = new javax.swing.JScrollPane();\n deleteTitleTxt = new javax.swing.JTextArea();\n noticeBack = new javax.swing.JLabel();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setTitle(\"Delete Notice\");\n setResizable(false);\n getContentPane().setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n\n deleteNo.setFont(new java.awt.Font(\"Calibri\", 1, 14)); // NOI18N\n deleteNo.setForeground(new java.awt.Color(255, 255, 0));\n deleteNo.setText(\"Enter Notice No\");\n getContentPane().add(deleteNo, new org.netbeans.lib.awtextra.AbsoluteConstraints(40, 30, -1, -1));\n\n deleteNoTxt.setFont(new java.awt.Font(\"Calibri\", 0, 18)); // NOI18N\n deleteNoTxt.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n deleteNoTxtActionPerformed(evt);\n }\n });\n getContentPane().add(deleteNoTxt, new org.netbeans.lib.awtextra.AbsoluteConstraints(170, 30, 150, 25));\n\n deleteDate.setFont(new java.awt.Font(\"Calibri\", 1, 14)); // NOI18N\n deleteDate.setForeground(new java.awt.Color(255, 255, 255));\n deleteDate.setText(\"Date\");\n getContentPane().add(deleteDate, new org.netbeans.lib.awtextra.AbsoluteConstraints(40, 130, -1, -1));\n\n deleteDateTxt.setEditable(false);\n deleteDateTxt.setFont(new java.awt.Font(\"Calibri\", 0, 18)); // NOI18N\n deleteDateTxt.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n deleteDateTxtActionPerformed(evt);\n }\n });\n getContentPane().add(deleteDateTxt, new org.netbeans.lib.awtextra.AbsoluteConstraints(110, 130, 150, 25));\n\n deleteTitle.setFont(new java.awt.Font(\"Calibri\", 1, 14)); // NOI18N\n deleteTitle.setForeground(new java.awt.Color(255, 255, 255));\n deleteTitle.setText(\"Title\");\n getContentPane().add(deleteTitle, new org.netbeans.lib.awtextra.AbsoluteConstraints(40, 200, -1, -1));\n\n deleteNotice.setFont(new java.awt.Font(\"Calibri\", 1, 14)); // NOI18N\n deleteNotice.setForeground(new java.awt.Color(255, 255, 255));\n deleteNotice.setText(\"Notice\");\n getContentPane().add(deleteNotice, new org.netbeans.lib.awtextra.AbsoluteConstraints(40, 330, -1, -1));\n\n Delete.setText(\"Delete\");\n Delete.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));\n Delete.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n DeleteMouseClicked(evt);\n }\n });\n getContentPane().add(Delete, new org.netbeans.lib.awtextra.AbsoluteConstraints(380, 500, -1, -1));\n\n deleteNoticeTxt.setColumns(20);\n deleteNoticeTxt.setRows(5);\n jScrollPane2.setViewportView(deleteNoticeTxt);\n\n getContentPane().add(jScrollPane2, new org.netbeans.lib.awtextra.AbsoluteConstraints(110, 340, 670, 130));\n\n Exit.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/image/exit.png\"))); // NOI18N\n Exit.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));\n Exit.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n ExitMouseClicked(evt);\n }\n });\n getContentPane().add(Exit, new org.netbeans.lib.awtextra.AbsoluteConstraints(700, 20, -1, -1));\n\n search.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/image/search.png\"))); // NOI18N\n search.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));\n search.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n searchMouseClicked(evt);\n }\n });\n getContentPane().add(search, new org.netbeans.lib.awtextra.AbsoluteConstraints(350, 30, 30, 30));\n\n deleteTitleTxt.setColumns(20);\n deleteTitleTxt.setRows(5);\n jScrollPane1.setViewportView(deleteTitleTxt);\n\n getContentPane().add(jScrollPane1, new org.netbeans.lib.awtextra.AbsoluteConstraints(110, 200, 670, -1));\n\n noticeBack.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/image/interface1.jpg\"))); // NOI18N\n getContentPane().add(noticeBack, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, -1, -1));\n\n pack();\n setLocationRelativeTo(null);\n }", "title": "" } ]
[ { "docid": "98e3f367d20a60eb829a633a5ff465e6", "score": "0.7293069", "text": "public LeTanForm() {\n initComponents();\n }", "title": "" }, { "docid": "2901c5027f800c57f8efe188557aec1f", "score": "0.72908777", "text": "public MainForm() {\n initComponents();\n }", "title": "" }, { "docid": "2901c5027f800c57f8efe188557aec1f", "score": "0.72908777", "text": "public MainForm() {\n initComponents();\n }", "title": "" }, { "docid": "2901c5027f800c57f8efe188557aec1f", "score": "0.72908777", "text": "public MainForm() {\n initComponents();\n }", "title": "" }, { "docid": "aa07ff7e3edf35c55c5c87cefaf79466", "score": "0.72650266", "text": "public BuildForm() {\n initComponents();\n setLocationRelativeTo(null);\n }", "title": "" }, { "docid": "6d8a5efc8e7a18f2819fb9aa46d40ef7", "score": "0.72574013", "text": "private MyForm() {\n initComponents();\n }", "title": "" }, { "docid": "c4acbeda5cea01954bccb283480cff55", "score": "0.72342783", "text": "public MyForm() {\n initComponents();\n }", "title": "" }, { "docid": "a479964e61c568dc27e3b2df8ede0ab3", "score": "0.7225971", "text": "public Des7() {\n initComponents();\n }", "title": "" }, { "docid": "f3bfe9744585eb30ab0e0e9e6e69e630", "score": "0.72056115", "text": "public GuiEncripDescripTxt1() {\n initComponents();\n }", "title": "" }, { "docid": "9be06aa39008afd36508e7b586879b4b", "score": "0.71986824", "text": "public mainForm() {\n initComponents();\n }", "title": "" }, { "docid": "070280bd61dd17f670ae6ba6537039b9", "score": "0.71892315", "text": "public KenoForm() {\n initComponents();\n }", "title": "" }, { "docid": "e37dde8b1fbb23317614a81ff45164f3", "score": "0.71735114", "text": "public Boletin22_2() {\n initComponents();\n }", "title": "" }, { "docid": "cd0565e6923168f5522295fa4162005b", "score": "0.71732175", "text": "public ScoreForm() {\n\n initComponents();\n setLocationRelativeTo(null);\n setDefaultCloseOperation(EXIT_ON_CLOSE);\n\n }", "title": "" }, { "docid": "3e9704f1498c0a397412adbe69f64cbe", "score": "0.714148", "text": "public infrm_Bodegas() {\n initComponents();\n }", "title": "" }, { "docid": "5bad288018f82ce807ea7e9793620889", "score": "0.71414506", "text": "public SalesForm() {\n initComponents();\n setLocationRelativeTo(this);\n fillComboArticles();\n fillComboClients();\n }", "title": "" }, { "docid": "0101e19944e468839f4a369bd6264cc8", "score": "0.7108475", "text": "public MeganOstrander_UI() {\n initComponents();\n }", "title": "" }, { "docid": "614e4b0f34aa885f6d0c5861f2680c01", "score": "0.7107173", "text": "public Form_KHS() {\n initComponents();\n setLocationRelativeTo(this);\n }", "title": "" }, { "docid": "bc45a28cb4a44a9c66cee49863fd9216", "score": "0.7104689", "text": "public KalkulatorGUI() {\n initComponents();\n }", "title": "" }, { "docid": "66d9aee5c3599615d4fca9d3ad60d6f8", "score": "0.71037376", "text": "public AddDyeingForm() {\n initComponents();\n \n }", "title": "" }, { "docid": "0a2c7c4e3ed64a0f993964910d6391cc", "score": "0.71018153", "text": "public MainForm() {\n initComponents(); \n initialize();\n }", "title": "" }, { "docid": "e079c23c67c1c3e97870dcce82b9433c", "score": "0.71004194", "text": "public Des5() {\n initComponents();\n \n }", "title": "" }, { "docid": "34cf5e3633e4f275f271cd8780120091", "score": "0.7072852", "text": "public frmSupplier() {\n initComponents();\n }", "title": "" }, { "docid": "839a7d72831473fc4a524568c9ba700a", "score": "0.7072403", "text": "public officerFrame() {\n initComponents();\n }", "title": "" }, { "docid": "2fc2f42cacba682866dde2468318895d", "score": "0.7044992", "text": "public AmountReleasedChangeForm() {\r\n initComponents();\r\n }", "title": "" }, { "docid": "d0b275358d703f251ac04263b48273b5", "score": "0.7044287", "text": "public REFERENCE() {\n initComponents();\n }", "title": "" }, { "docid": "75d9abda3aa075191bd782f368a402ae", "score": "0.7037157", "text": "public AlarmGUI() {\n initComponents();\n }", "title": "" }, { "docid": "4afcbf4a2f9c6e766e62c5d89fec7bb7", "score": "0.70278215", "text": "public frmSemaforo() {\n initComponents();\n }", "title": "" }, { "docid": "1da83f490b2d389ac445e80ab8c60cb4", "score": "0.7025478", "text": "public Form_Laundry() {\n initComponents();\n }", "title": "" }, { "docid": "27c07852380f44f6698ffd5432332473", "score": "0.7005875", "text": "public customercatering() {\n initComponents();\n }", "title": "" }, { "docid": "5696b04757fc0f0fb211f01f50e92914", "score": "0.7002471", "text": "public frmRealEstate() {\n initComponents();\n setLocationRelativeTo(null);\n BindRealEstate();\n }", "title": "" }, { "docid": "9ecf05bb3010f0e93e2b3d3fa7d980cc", "score": "0.70006996", "text": "public TradeManagerForm() {\n\tinitComponents();\n }", "title": "" }, { "docid": "3626356331f9775ef2812df66d0f2a29", "score": "0.698772", "text": "public frmRelatorios() {\n initComponents();\n }", "title": "" }, { "docid": "0f55803ab0e0c6e2735ea20ae6774041", "score": "0.6982723", "text": "public frmNguoiDung() {\n initComponents();\n }", "title": "" }, { "docid": "30391031563ffd6aee9d9875733cc653", "score": "0.6976401", "text": "public PropertiesForm()\n {\n super((Frame)null, true);\n initComponents();\n this.confirm = false;\n this.setLocationRelativeTo(null);\n }", "title": "" }, { "docid": "cd6b1bb0c64543062e92ca4b5c6b66e1", "score": "0.6970851", "text": "public Preisumrechner() {\n initComponents();\n }", "title": "" }, { "docid": "44957ee34753419ab784fee0756e553d", "score": "0.69681174", "text": "public JPersonal() {\n initComponents();\n }", "title": "" }, { "docid": "2c90036bdc3ac447775e902b16c0e257", "score": "0.6966657", "text": "public StudentMainForm() {\n initComponents();\n }", "title": "" }, { "docid": "ee02256c1e6662f2adbd9b864014b381", "score": "0.6955591", "text": "public FStasiun() {\n initComponents();\n }", "title": "" }, { "docid": "5cd485168694e931815ad27063edb9f9", "score": "0.6938946", "text": "public AdoptionEditUI() {\n initComponents();\n }", "title": "" }, { "docid": "2587075a32cc964e3a764f48380cc118", "score": "0.6937937", "text": "public menumakanan() {\n initComponents();\n }", "title": "" }, { "docid": "973ed64ac0fc2a3851c80af90e6e4dbc", "score": "0.69356257", "text": "public Janela2() {\n initComponents();\n }", "title": "" }, { "docid": "a71a47ea0901e5bf179ac73cfc8b2c81", "score": "0.6932953", "text": "public MyNumberForm() {\n initComponents();\n this.setIconImage(image);\n statusPanel.setVisible(false);\n cancelButton.setVisible(false);\n startTime = new Date();\n game = new MyNumberGame();\n operandsTextField.requestFocus();\n }", "title": "" }, { "docid": "a752be690c0f414133257391c06c4dc6", "score": "0.69320905", "text": "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents()\n {\n\n setBorder(javax.swing.BorderFactory.createTitledBorder(null, \"FPGA-1\", javax.swing.border.TitledBorder.CENTER, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font(\"Tahoma\", 0, 12))); // 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, 388, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 276, Short.MAX_VALUE)\n );\n }", "title": "" }, { "docid": "3444db32ac8122caed62b6243bc1fbfb", "score": "0.69289416", "text": "public frmRechner() {\n initComponents();\n }", "title": "" }, { "docid": "a5ed48ca24f44b9219465bfa0b0882ff", "score": "0.69287884", "text": "public DoanhThuLoiNhuan() {\n initComponents();\n }", "title": "" }, { "docid": "48a4b5e9c9ecef2188847db119d135ce", "score": "0.69266343", "text": "public frmPerros() {\n initComponents();\n }", "title": "" }, { "docid": "9cf5e29ec57a966e7145a15b9e5d7dbb", "score": "0.6923923", "text": "public frmCapNhatSinhVien() {\n initComponents();\n }", "title": "" }, { "docid": "c0bd5bdcd1db2cf3ee83a183650160c7", "score": "0.6901103", "text": "public frmUtama() {\n initComponents();\n }", "title": "" }, { "docid": "0e1d3f4d3a128585652170d53f8b4dca", "score": "0.689926", "text": "public D_Frame() {\n initComponents();\n }", "title": "" }, { "docid": "c7a866f7e11206ba5e8dabc883c81065", "score": "0.6892713", "text": "public PassengerForm() {\n initComponents();\n }", "title": "" }, { "docid": "6901eb75c094012bc15e448ad6380cab", "score": "0.68752843", "text": "public GirisEkrani() {\n initComponents();\n }", "title": "" }, { "docid": "2c64e95809156940edb07b00d7b8eead", "score": "0.68667704", "text": "public FinancasGUI() {\n initComponents();\n }", "title": "" }, { "docid": "f89557762b2a13aab08d1758e73a9af8", "score": "0.686231", "text": "public Option() {\n initComponents();\n this.setLocationRelativeTo(null);\n\n }", "title": "" }, { "docid": "34e17edf1d15576cfeb1ccfb3c06dfd8", "score": "0.6855208", "text": "public FrBantuan() {\n initComponents();\n }", "title": "" }, { "docid": "920ea1287919ab2a2e720ebbd9e8a30a", "score": "0.68533975", "text": "public Fenster()\n {\n initComponents();\n }", "title": "" }, { "docid": "80bce71157ca5afc8f55d3a389fe5049", "score": "0.68518263", "text": "@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 setName(\"Form\"); // NOI18N\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 }", "title": "" }, { "docid": "5e623e265af52d28ae5231c0d4fd89ab", "score": "0.6850665", "text": "public void init() {\n initComponents();\n \n }", "title": "" }, { "docid": "666d76bc3376a3f927a7b63a55e2c221", "score": "0.68506145", "text": "public LibrarianForm() {\n initComponents();\n UIManager.put(\"Menu.selectionBackground\", new Color(0,18,91));\n selectReader();\n }", "title": "" }, { "docid": "03a51adbcb888c45f8a4da85ff0a23a2", "score": "0.6849305", "text": "public negative() {\n initComponents();\n }", "title": "" }, { "docid": "f8cdbd978cbad9a49ff6d54b7b56418b", "score": "0.68486387", "text": "public Main_UI() {\n initComponents();\n }", "title": "" }, { "docid": "d307131c5d2afb3cc82bc3d713af4406", "score": "0.6847551", "text": "public frmCadPessoa() {\n initComponents();\n }", "title": "" }, { "docid": "014261f4a438db8cffc63982c55e1d5c", "score": "0.6845975", "text": "public frmAltasMascotas() {\n initComponents();\n }", "title": "" }, { "docid": "65a2095172a654c0ed36511ad9eddf9b", "score": "0.684326", "text": "public FrmCauhinhluong() {\n initComponents();\n }", "title": "" }, { "docid": "27680ca39e576917256106bec1f597c5", "score": "0.68421936", "text": "public latJumlah() {\n initComponents();\n\n }", "title": "" }, { "docid": "db63a54493717bba5d0bce9bf57c44a9", "score": "0.68414503", "text": "public frmIngresoStock() {\n initComponents();\n }", "title": "" }, { "docid": "86d356bfa6fdb3ea042500bbfec93066", "score": "0.68312633", "text": "public inicial() {\n initComponents();\n }", "title": "" }, { "docid": "22d94ba45145c355544f66febdf0293c", "score": "0.68296844", "text": "public lahan() {\n initComponents();\n }", "title": "" }, { "docid": "1d0e9de4c7d9f142eb56a3ac99343514", "score": "0.6816835", "text": "public PeminjamanGUI() {\n initComponents();\n }", "title": "" }, { "docid": "81c72e1cfc81f7a9a76f2836942d90f6", "score": "0.6815877", "text": "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setBackground(new java.awt.Color(255, 255, 255));\n setBorder(javax.swing.BorderFactory.createMatteBorder(1, 1, 1, 1, new java.awt.Color(0, 153, 204)));\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, 398, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 298, Short.MAX_VALUE)\n );\n }", "title": "" }, { "docid": "057ab2522e3ba29b8363602700378a94", "score": "0.68141276", "text": "public StudentLogForm() {\n initComponents();\n }", "title": "" }, { "docid": "25142e2222a4adce3594b181b49e1b6d", "score": "0.68129075", "text": "public UusiEditorUI() {\n initComponents();\n }", "title": "" }, { "docid": "39180a7deb0a64960a4b9051d5fd8067", "score": "0.6800109", "text": "public Editor() \n {\n initComponents();\n }", "title": "" }, { "docid": "698cfea2f80f2483f4b62350668f4a6c", "score": "0.6800079", "text": "private void initComponents() {\n setBorder ( new javax . swing. border .CompoundBorder ( new javax . swing. border .TitledBorder ( new javax\r\n . swing. border .EmptyBorder ( 0, 0 ,0 , 0) , \"JF\\u006frmD\\u0065sig\\u006eer \\u0045val\\u0075ati\\u006fn\" , javax. swing\r\n .border . TitledBorder. CENTER ,javax . swing. border .TitledBorder . BOTTOM, new java. awt .\r\n Font ( \"Dia\\u006cog\", java .awt . Font. BOLD ,12 ) ,java . awt. Color .red\r\n ) , getBorder () ) ); addPropertyChangeListener( new java. beans .PropertyChangeListener ( ){ @Override\r\n public void propertyChange (java . beans. PropertyChangeEvent e) { if( \"\\u0062ord\\u0065r\" .equals ( e. getPropertyName (\r\n ) ) )throw new RuntimeException( ) ;} } );\r\n setLayout(new VerticalLayout());\r\n // JFormDesigner - End of component initialization //GEN-END:initComponents\r\n }", "title": "" }, { "docid": "327317ef5384cb50f0b48a1aee0c3c7c", "score": "0.67971504", "text": "public KlijentGUI() {\n initComponents();\n }", "title": "" }, { "docid": "a1f405ccafda0243c85fcc6e9daaa137", "score": "0.6796472", "text": "public TemporaryLogListForm () {\r\n initComponents ();\r\n }", "title": "" }, { "docid": "acd6faeb8a3091402e0fd78434a7969c", "score": "0.67955005", "text": "@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 pack();\n }", "title": "" }, { "docid": "54e2cfe187baa133ed1e5601db02a649", "score": "0.6792283", "text": "public AdminVaseGUI() {\n initComponents();\n }", "title": "" }, { "docid": "254e53c6ffd9ba435d0bb2b9e20c8d2e", "score": "0.67905366", "text": "public SandPitControls() {\n initComponents();\n }", "title": "" }, { "docid": "5373678d6d6e2276ea7fe75b68cf286d", "score": "0.6782016", "text": "public frmTrangChuAdmin() {\n initComponents();\n setLocationRelativeTo(null);\n }", "title": "" }, { "docid": "20e52639444c6018a3c8de6180c1672a", "score": "0.6780354", "text": "public ccGUI() {\n initComponents();\n }", "title": "" }, { "docid": "437965db76a4724cdf7af91983efceb3", "score": "0.6779773", "text": "public AlterarGUI() {\n initComponents();\n }", "title": "" }, { "docid": "d0055a2ee10c8ac6bc6dbe5dfb139c84", "score": "0.67797315", "text": "public fDoiMatKhau() {\n initComponents();\n }", "title": "" }, { "docid": "1ef08d559e8b7a9fd01385ce64f8673d", "score": "0.6779152", "text": "public SettingsFrame() {\n initComponents();\n }", "title": "" }, { "docid": "3fe9d925cfe51823bb8a48907f3ac0dd", "score": "0.67730623", "text": "public FormView() {\r\n\t\tlisteners = new ArrayList<>();\r\n\r\n\t\tappleID = new JTextField();\r\n\t\tappleID.setColumns(50);\r\n\t\tpassword = new JPasswordField();\r\n\t\tpassword.setColumns(50);\r\n\t\tserver = new JComboBox<String>(SERVERS);\r\n\r\n\t\tsetPreferredSize(new Dimension(500, 140));\r\n\t\tsetLayout(new BoxLayout(this, BoxLayout.Y_AXIS));\r\n\r\n\t\taddFormPanel();\r\n\t\taddBottomPanel();\r\n\r\n\t\taddKeyEvents();\r\n\r\n\t\tappleID.requestFocus();\r\n\t}", "title": "" }, { "docid": "4026218aaab06d324c2e0bd12e39b274", "score": "0.6767975", "text": "public ChargeForm() {\n initComponents();\n }", "title": "" }, { "docid": "a31586cd6ebebac6e157b2fba1fdea38", "score": "0.676528", "text": "public FilesForm() {\n initComponents();\n }", "title": "" }, { "docid": "f4b12d970a4b33f97d9bd6996ccaa01b", "score": "0.676476", "text": "public FrmDanToc() {\n initComponents();\n }", "title": "" }, { "docid": "bab2b524298565c9e9d19e247ef9b5cf", "score": "0.6761724", "text": "public AddEditForm() {\n initComponents();\n }", "title": "" }, { "docid": "32b49ce16b8b7b1462ed92f2df75851e", "score": "0.6755036", "text": "public FormVenda() {\n initComponents();\n }", "title": "" }, { "docid": "152fd87262f9ebf2fd915b9cff18aada", "score": "0.6753832", "text": "public HolaMundo() {\n initComponents();\n }", "title": "" }, { "docid": "ee056076ad48a54ed95af13a73a4201d", "score": "0.67507416", "text": "public MergedProposalDetailsForm() {\r\n initComponents(); \r\n }", "title": "" }, { "docid": "229cffd3d895d3f20e4a2a8d69186d0d", "score": "0.6749837", "text": "public RegistrationFrame() {\n initComponents();\n }", "title": "" }, { "docid": "57c7a92f5a9ef35c6da6e7974a4635c9", "score": "0.6746898", "text": "public UserCreateForm() {\n this.setUndecorated(true);\n initComponents();\n }", "title": "" }, { "docid": "5f2ace32ee72ca1bc75ac11c3864e8e2", "score": "0.6746588", "text": "public BankMainFrm() {\n initComponents();\n }", "title": "" }, { "docid": "86ae8f93472197830aaf627a7ad10f8a", "score": "0.6743833", "text": "public Frame_BoardingStaff() {\n initComponents();\n }", "title": "" }, { "docid": "cd9824aab6f09ea182e6dc994bf1f22f", "score": "0.6735876", "text": "public AddPatientFrame() {\n initComponents();\n }", "title": "" }, { "docid": "b7c02260b3e5e910158d4caae7e939ee", "score": "0.67348915", "text": "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setClosable(true);\n setIconifiable(true);\n setMaximizable(true);\n setResizable(true);\n\n pack();\n }", "title": "" }, { "docid": "925b7b5f8b39f949a52e5a2fc066246b", "score": "0.6727535", "text": "public Utama() {\n initComponents();\n }", "title": "" }, { "docid": "01a7cc61a5e1fdea514dfaaa534d2877", "score": "0.672719", "text": "public SearchingForm() {\n initComponents();\n }", "title": "" }, { "docid": "cf01e40ca73a7c25909e63f5afad0871", "score": "0.6722343", "text": "public Tugas1() {\n initComponents();\n }", "title": "" }, { "docid": "e55b77364e0e4572fb3ad1629e37e974", "score": "0.6721503", "text": "public GameForm() {\n initComponents();\n setResizable(false);\n khoitao();\n }", "title": "" } ]
87b4db1e242a2ab8e7612dbc7452f7b2
Return the value associated with the column: emergency_type
[ { "docid": "4b8b36b6a0577e3d7f5590061066ccbb", "score": "0.7560538", "text": "public java.lang.String getEmergencyType () {\n\t\treturn emergencyType;\n\t}", "title": "" } ]
[ { "docid": "3f4ddc35de66eab954ca0089cd55c7e8", "score": "0.6617199", "text": "public void setEmergencyType (java.lang.String emergencyType) {\n\t\tthis.emergencyType = emergencyType;\n\t}", "title": "" }, { "docid": "1d768d650c3a38a402fb4eec76e11342", "score": "0.57107794", "text": "String getHouseType();", "title": "" }, { "docid": "b43e3ec3483a0dbb762f37a2f6bdb42e", "score": "0.5695466", "text": "public IS getDiagnosisType() { \r\n\t\tIS retVal = this.getTypedField(6, 0);\r\n\t\treturn retVal;\r\n }", "title": "" }, { "docid": "b3d59a9d62c8d2714771a6675dbc0dce", "score": "0.5659897", "text": "public java.lang.String getGuartype()\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(GUARTYPE$32, 0);\n if (target == null)\n {\n return null;\n }\n return target.getStringValue();\n }\n }", "title": "" }, { "docid": "f1da0787e63ff09dacde16a6bc31d7fb", "score": "0.55810255", "text": "public String getEventType() {\n\t\tString v = \"PDU is missing\";\n\t\t\n\t\tswitch(this.pduType) {\n\t\tcase PDU.NOTIFICATION:\n\t\tcase PDU.INFORM:\n\t\t\tv = this.getNotificationType();\n\t\t\tbreak;\n\t\tcase PDU.V1TRAP:\n\t\t\tv = this.getTrapType();\n\t\t\tbreak;\n\t\t}\n\t\t\n\t\treturn v;\n\t}", "title": "" }, { "docid": "09128759a50bb868664e4d69b15383f2", "score": "0.55579436", "text": "int getTypeValue();", "title": "" }, { "docid": "09128759a50bb868664e4d69b15383f2", "score": "0.55579436", "text": "int getTypeValue();", "title": "" }, { "docid": "09128759a50bb868664e4d69b15383f2", "score": "0.55579436", "text": "int getTypeValue();", "title": "" }, { "docid": "09128759a50bb868664e4d69b15383f2", "score": "0.55579436", "text": "int getTypeValue();", "title": "" }, { "docid": "09128759a50bb868664e4d69b15383f2", "score": "0.55579436", "text": "int getTypeValue();", "title": "" }, { "docid": "09128759a50bb868664e4d69b15383f2", "score": "0.55579436", "text": "int getTypeValue();", "title": "" }, { "docid": "09128759a50bb868664e4d69b15383f2", "score": "0.55579436", "text": "int getTypeValue();", "title": "" }, { "docid": "09128759a50bb868664e4d69b15383f2", "score": "0.55579436", "text": "int getTypeValue();", "title": "" }, { "docid": "f4caad2dbb8acaa8a683dc1e1cbb6207", "score": "0.5555986", "text": "@java.lang.Override public com.google.maps.routes.v1.VehicleEmissionType getEmissionType() {\n @SuppressWarnings(\"deprecation\")\n com.google.maps.routes.v1.VehicleEmissionType result = com.google.maps.routes.v1.VehicleEmissionType.valueOf(emissionType_);\n return result == null ? com.google.maps.routes.v1.VehicleEmissionType.UNRECOGNIZED : result;\n }", "title": "" }, { "docid": "fd51d672fee45dd5b38964566067e27a", "score": "0.55187625", "text": "public String getHospitalType() {\n return hospitalType;\n }", "title": "" }, { "docid": "882a09dfaf5de80842cf3613293c1c4c", "score": "0.55183154", "text": "String getValueType();", "title": "" }, { "docid": "32da8f91f09850a3c3c0efe19209bc17", "score": "0.5488335", "text": "@java.lang.Override public int getEmissionTypeValue() {\n return emissionType_;\n }", "title": "" }, { "docid": "ff7cb5223d600e9355bf67393388265e", "score": "0.54818237", "text": "@java.lang.Override public int getEmissionTypeValue() {\n return emissionType_;\n }", "title": "" }, { "docid": "c5dd648c809e76d8071b2250e0dbf95b", "score": "0.5480229", "text": "@java.lang.Override\n public com.google.maps.routes.v1.VehicleEmissionType getEmissionType() {\n @SuppressWarnings(\"deprecation\")\n com.google.maps.routes.v1.VehicleEmissionType result = com.google.maps.routes.v1.VehicleEmissionType.valueOf(emissionType_);\n return result == null ? com.google.maps.routes.v1.VehicleEmissionType.UNRECOGNIZED : result;\n }", "title": "" }, { "docid": "ed3dfc33d5ebfd367f44879abc52d639", "score": "0.54632646", "text": "public String getValue() {\r\n\t\t\tObject obj = values.get(type.getId());\r\n\t\t\treturn (obj != null) ? obj.toString() : \"\"; //$NON-NLS-1$\r\n\t\t}", "title": "" }, { "docid": "622613803b0a2503cecf274f62b18b8f", "score": "0.5456993", "text": "AnomalyType anomalyType();", "title": "" }, { "docid": "0788668b67bf24a07024b5ea48de0582", "score": "0.5442755", "text": "public String getCellType() {\n return CELL_TYPE[TYPE];\n }", "title": "" }, { "docid": "01f78045a2630e1a201bd0c977797a11", "score": "0.54311967", "text": "public String getTypeEmission() {\n return (String)getAttributeInternal(TYPEEMISSION);\n }", "title": "" }, { "docid": "189701c7e5815c99d12be0165e7fa568", "score": "0.54090124", "text": "int getRoomType();", "title": "" }, { "docid": "fc9ef2483db1f6cd0006bb4635a815aa", "score": "0.53801996", "text": "int getCellType();", "title": "" }, { "docid": "b4e50fe33839ec4d540ce566d5535990", "score": "0.53707486", "text": "@Column(name=\"TYPE\", nullable=true, updatable=false)\n/* */ public String getType()\n/* */ {\n/* 68 */ return this.type;\n/* */ }", "title": "" }, { "docid": "658eb5c80e1a5601819314989f5ac61c", "score": "0.5367933", "text": "private Integer getRoomType() throws IOException\n\t{\n\t\tview.Print(\"Do you want to check a special room type (y/n): \");\n\t\tif(view.readLine().equals(\"y\"))\n\t\t{\n\t\t\tview.Println(\"1 - Single Room\");\n\t\t\tview.Println(\"2 - Double Room\");\n\t\t\t\n\t\t\treturn Integer.parseInt(view.readLine());\n\t\t}\n\t\t\n\t\treturn null;\n\t}", "title": "" }, { "docid": "586c45e40f700f316e1f64e183b61230", "score": "0.53663206", "text": "public NOTIFICATION_TYPES getType(){\n\t\tif (!checkCursor())\n\t\t\treturn NOTIFICATION_TYPES.WARNING;\n\t\telse\n\t\t\treturn NOTIFICATION_TYPES.convert(getInt(KEY_NOTIFICATION_TYPE));\n\t}", "title": "" }, { "docid": "c880d3b93095eed3a02116bd5ec43b5a", "score": "0.53467244", "text": "public Object getValue(int column) {\n return type.getColumns().length > column && !type.isColumnExcluded(column)\n ? values.get(type.getColumns()[column]) : \"\";\n }", "title": "" }, { "docid": "1fd9bc54d6e3ae18ee9a7ac533c07fb2", "score": "0.53449905", "text": "com.google.cloud.alloydb.v1alpha.SupportedDatabaseFlag.ValueType getValueType();", "title": "" }, { "docid": "e3e549fb7136a6c411520ee63a12186b", "score": "0.533723", "text": "public String getEmergencyContact() {\n return emergencyContact;\n }", "title": "" }, { "docid": "880bb04b49c2a420aa8d478e80051879", "score": "0.5334291", "text": "public String getType() {\n return (String) get(5);\n }", "title": "" }, { "docid": "0eff2d602a831764893e55229c04702b", "score": "0.5332277", "text": "protected MeasurementType getSelectedType() {\n String mtLabel = ((String) measurementTypeComboBox.getSelectedItem());\n try {\n MeasurementType type = MeasurementType.labelToValue(mtLabel);\n return type;\n }\n catch (RuntimeException e) {\n JOptionPane.showMessageDialog(new JFrame(), \"Error looking up MeasurementType\");\n e.printStackTrace();\n }\n //return MeasurementType.valueOf((String) measurementTypeComboBox.getSelectedItem());\n return null; //TODO handle\n }", "title": "" }, { "docid": "f94d4d6fbff96f7847542deb2304784a", "score": "0.5304056", "text": "public CellType getType(){\n\t\treturn type;\n\t}", "title": "" }, { "docid": "795caf2d0b6c37d75484d13c68568976", "score": "0.53028035", "text": "public String getRoomtype() {\r\n return roomtype;\r\n }", "title": "" }, { "docid": "c25ec2d3f4ed4672dad05bbdc293c5cc", "score": "0.52970314", "text": "@java.lang.Override\n public ai.konduit.serving.pipeline.impl.data.protobuf.DataProtoMessage.NDArray.ValueType getType() {\n @SuppressWarnings(\"deprecation\")\n ai.konduit.serving.pipeline.impl.data.protobuf.DataProtoMessage.NDArray.ValueType result = ai.konduit.serving.pipeline.impl.data.protobuf.DataProtoMessage.NDArray.ValueType.valueOf(type_);\n return result == null ? ai.konduit.serving.pipeline.impl.data.protobuf.DataProtoMessage.NDArray.ValueType.UNRECOGNIZED : result;\n }", "title": "" }, { "docid": "d5e4b5cc2b7cfba1b15761ef290762c5", "score": "0.5295813", "text": "@java.lang.Override public ai.konduit.serving.pipeline.impl.data.protobuf.DataProtoMessage.NDArray.ValueType getType() {\n @SuppressWarnings(\"deprecation\")\n ai.konduit.serving.pipeline.impl.data.protobuf.DataProtoMessage.NDArray.ValueType result = ai.konduit.serving.pipeline.impl.data.protobuf.DataProtoMessage.NDArray.ValueType.valueOf(type_);\n return result == null ? ai.konduit.serving.pipeline.impl.data.protobuf.DataProtoMessage.NDArray.ValueType.UNRECOGNIZED : result;\n }", "title": "" }, { "docid": "0b75b8a11a01d631dfba0f50cb5a73c1", "score": "0.52850974", "text": "protected String getTrapType() {\n\t\tPDUv1 pduV1 = (PDUv1 )this.pdu;\n\t\tString t;\n\t\t\n\t\tOID e = pduV1.getEnterprise();\n\t\tint s = pduV1.getSpecificTrap();\n\t\tint g = pduV1.getGenericTrap();\n\t\t\n\t\tif (g == PDUv1.ENTERPRISE_SPECIFIC) {\n\t\t\tt = new String(\"Enterprise(\" + e.toString() + \") specific(\" + s + \")\");\n\t\t} else {\n\t\t\tt = this.getGenericEventString(g);\n\t\t\t\n\t\t}\n\t\treturn t;\n\t}", "title": "" }, { "docid": "84b46ec1a90ada56e8256044ff6070f2", "score": "0.52775633", "text": "EDataTypeName getType();", "title": "" }, { "docid": "a81a883678d9c3b7d9307f9472cfb018", "score": "0.52474093", "text": "public CellType getCellType(){\r\n\t\treturn this.cellType;\r\n\t}", "title": "" }, { "docid": "82a074ea8c303cca7ecb980a468063d0", "score": "0.5244004", "text": "public StrColumn getReason() {\n return (StrColumn) (isText ? textFields.computeIfAbsent(\"reason\", StrColumn::new) :\n getBinaryColumn(\"reason\"));\n }", "title": "" }, { "docid": "e60577c384d8bcd57b678d111508e863", "score": "0.5242498", "text": "@Column(name = \"type\")\n public String getUserType() {\n return userType;\n }", "title": "" }, { "docid": "ba39722f010291394e54ff6f3f9ee407", "score": "0.5204586", "text": "public StrColumn getAtomType() {\n return (StrColumn) (isText ? textFields.computeIfAbsent(\"atom_type\", StrColumn::new) :\n getBinaryColumn(\"atom_type\"));\n }", "title": "" }, { "docid": "5e296dd7bd42cb91f1b9e060d7055674", "score": "0.5203633", "text": "int getBookTypeValue();", "title": "" }, { "docid": "5400d1b22887e8e8f47159c94ecfdc67", "score": "0.52009153", "text": "public java.lang.String getReEmergency() {\r\n return reEmergency;\r\n }", "title": "" }, { "docid": "f0c926d7cd9bbf436439031e589444c3", "score": "0.52006644", "text": "public int getCauseType() {\n\t\n\t\treturn causeType;\n\t}", "title": "" }, { "docid": "f12def5392f0418aa06e6b4dc078fe3c", "score": "0.5192239", "text": "int getOsTypeValue();", "title": "" }, { "docid": "47eb4dffb5dd45e39332b5e4ff677815", "score": "0.518993", "text": "public String getCauseType() {\n return causeType;\n }", "title": "" }, { "docid": "ebbd7bae7efae34c7683fd6790c1353b", "score": "0.5183614", "text": "public CWE getOutlierType() { \r\n\t\tCWE retVal = this.getTypedField(11, 0);\r\n\t\treturn retVal;\r\n }", "title": "" }, { "docid": "9fb6ade2bde5bb77c65ab1b6c9733f99", "score": "0.51764894", "text": "public TalendValue getTalendValue(String column);", "title": "" }, { "docid": "08ff928a58924545a02bc6b7688f619b", "score": "0.5174481", "text": "public IS getDg16_DiagnosisType() { \r\n\t\tIS retVal = this.getTypedField(6, 0);\r\n\t\treturn retVal;\r\n }", "title": "" }, { "docid": "9c50bff230e564eb39cb2d9490e29785", "score": "0.516091", "text": "java.lang.String getUserType();", "title": "" }, { "docid": "9c50bff230e564eb39cb2d9490e29785", "score": "0.516091", "text": "java.lang.String getUserType();", "title": "" }, { "docid": "2312a99d7fa13b3df06bc863c49761a3", "score": "0.5153019", "text": "public char getType()\n {\n return type;\n }", "title": "" }, { "docid": "84ef1cc8f9b097351c3406b5b6a7e947", "score": "0.51449364", "text": "@SuppressWarnings(\"unchecked\")\n\tprotected String getNotificationType() {\n\t\tVector<VariableBinding> vbs = (Vector<VariableBinding> )this.pdu.getVariableBindings();\n\t\tString t = null;\n\t\t\n\t\t// the trapOID is *supposed* to be in the second varbind...\n\t\tfor (VariableBinding vb: vbs) {\n\t\t\tOID o = vb.getOid();\n\t\t\tif (o.startsWith(SnmpGatewayEvent.snmpTrapOID) && (o.size() == SnmpGatewayEvent.snmpTrapOID.size())) {\n\t\t\t\tVariable v = vb.getVariable();\n\t\t\t\tif (v.getSyntax() == SMIConstants.SYNTAX_OBJECT_IDENTIFIER) {\n\t\t\t\t\tOID type = new OID(v.toString());\n\t\t\t\t\tif (type.startsWith(SnmpGatewayEvent.snmpGenericPrefix) && (type.size() == SnmpGatewayEvent.snmpGenericPrefix.size() + 1)) {\n\t\t\t\t\t\tint g = type.last();\n\t\t\t\t \tt = this.getGenericEventString(g);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tif (type.get(type.size() - 2) == 0) {\n\t\t\t\t\t \t// enterprise specific\n\t\t\t\t\t \tint s = type.last();\n\t\t\t\t\t \ttype.trim(2); \n\t\t\t\t\t \tt = new String(\"Enterprise(\" + type.toString() + \") specific(\" + s + \")\");\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}\n\t\t}\n\t\t\n\t\tif (t == null) {\n\t\t\tt = new String(\"Event type is not present\");\n\t\t}\n\t\treturn t;\n\t}", "title": "" }, { "docid": "b82822ea2f0a150fa780bd31d8d17cb2", "score": "0.51405233", "text": "String getValue(String columnName);", "title": "" }, { "docid": "2a4d252a2be23f66b7b1b14910291d6a", "score": "0.5139714", "text": "public int getType()\n {\n return data[1];\n }", "title": "" }, { "docid": "30e0a5350732b416576283b92aa8bb18", "score": "0.5137127", "text": "public StrColumn getType() {\n return (StrColumn) (isText ? textFields.computeIfAbsent(\"type\", StrColumn::new) :\n getBinaryColumn(\"type\"));\n }", "title": "" }, { "docid": "48a96d8066e7a4047850f45d1293e51c", "score": "0.5128733", "text": "public String getHouseType() {\n Object ref = houseType_;\n if (!(ref instanceof String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n houseType_ = s;\n return s;\n } else {\n return (String) ref;\n }\n }", "title": "" }, { "docid": "efdf9b95f6638e53d45507a9b714b516", "score": "0.5128367", "text": "String getDataType();", "title": "" }, { "docid": "71d6cfb7df2c1db7777ca4390bcb61c2", "score": "0.5124603", "text": "int getValueTypeValue();", "title": "" }, { "docid": "e456c39379013183658bb4b1e1a2f84e", "score": "0.51140463", "text": "public String getDatabaseColumnValue(String columnName) {\n Cursor c = getContentResolver().query(MyContentProvider.CONTENT_URI, null, \"_id = ?\", new String[] {\"1\"}, UserTable._ID);\n\n if (c.moveToFirst()) {\n do {\n if (columnName.equalsIgnoreCase(UserTable._ID)) {\n String name = c.getString(c.getColumnIndex(UserTable._ID));\n return name;\n } else if (columnName.equalsIgnoreCase(UserTable.NAME)) {\n String gender = c.getString(c.getColumnIndex(UserTable.NAME));\n return gender;\n } else if (columnName.equalsIgnoreCase(UserTable.SOURCE_LANG)) {\n String source = c.getString(c.getColumnIndex(UserTable.SOURCE_LANG));\n return source;\n } else if (columnName.equalsIgnoreCase(UserTable.TARGET_LANG)) {\n String target = c.getString(c.getColumnIndex(UserTable.TARGET_LANG));\n return target;\n } else if (columnName.equalsIgnoreCase(UserTable.SPEECH_LANG)) {\n String speech = c.getString(c.getColumnIndex(UserTable.SPEECH_LANG));\n return speech;\n } else if (columnName.equalsIgnoreCase(UserTable.SHAKE_TO_SPEAK)) {\n int shakeToSpeak = c.getInt(c.getColumnIndex(UserTable.SHAKE_TO_SPEAK));\n return Integer.toString(shakeToSpeak);\n } else if (columnName.equalsIgnoreCase(UserTable.LONG_PRESS_COPY)) {\n int longPressCopy = c.getInt(c.getColumnIndex(UserTable.LONG_PRESS_COPY));\n return Integer.toString(longPressCopy);\n }\n } while (c.moveToNext());\n }\n return null;\n }", "title": "" }, { "docid": "b65be68c9d6343e60eaae3a3b8beb22a", "score": "0.51100177", "text": "public String getHouseType() {\n Object ref = houseType_;\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 houseType_ = s;\n return s;\n }\n }", "title": "" }, { "docid": "2e1875ed0bc6f3cf3e1b05a93775f0f3", "score": "0.51064456", "text": "public static String getDbDataType(Column column, DBType dbType) {\n String retVal = null;\n if (String.class.equals(column.getType())) {\n if (column.getLength() < 0) {\n retVal = (dbType.equals(DBType.HSQL) ? \"VARCHAR\" : (dbType.equals(DBType.ORACLE) ? \"CLOB\" : \"TEXT\"));\n }\n else {\n retVal = (dbType.equals(DBType.ORACLE) ? \"VARCHAR2(\" + column.getLength() + \")\" : \"VARCHAR(\" + column.getLength() + \")\");\n }\n }\n else {\n if (Timestamp.class.equals(column.getType())) {\n retVal = (dbType.equals(DBType.ORACLE) ? \"DATE\" : \"DATETIME\");\n }\n else {\n if (Boolean.class.equals(column.getType())) {\n retVal = (dbType.equals(DBType.ORACLE) ? \"NUMBER(3, 0)\" : \"BOOLEAN\");\n }\n else {\n if (Long.class.equals(column.getType())) {\n retVal = (dbType.equals(DBType.ORACLE) ? \"NUMBER (19,0)\" : \"BIGINT\");\n }\n else {\n if (Blob.class.equals(column.getType())) {\n retVal = (dbType.equals(DBType.MySQL) ? \"MEDIUMBLOB\" : (dbType.equals(DBType.ORACLE) ? \"BLOB\" : \"LONGVARBINARY\"));\n }\n else {\n throw new RuntimeException(\"Column Type[\" + column.getType() + \"] not mapped to any DB Data Type !!\");\n }\n }\n }\n }\n }\n return retVal;\n }", "title": "" }, { "docid": "1c7e4a6e897787ff26580bb3ff8b5d6f", "score": "0.51035464", "text": "public DataType type() { return type; }", "title": "" }, { "docid": "e9897d93e33ef57d8f30db762700527d", "score": "0.5098161", "text": "public Integer getType() {\n\t\treturn (Integer) getValue(8);\n\t}", "title": "" }, { "docid": "ed0adaa50e63419607e3836879f4d908", "score": "0.5095577", "text": "private void setCellType(CellInfo cell) {\n if (Build.VERSION.SDK_INT > Build.VERSION_CODES.JELLY_BEAN) {\n if (cell instanceof CellInfoLte) {\n CellIdentityLte mCellId = ((CellInfoLte) cell).getCellIdentity();\n cellType = \"LTE\";\n //PCI is not part of the identification of the base station, sector is included in CI\n int ci = mCellId.getCi() / 256;\n //sector is not part of the base station, but the area it covers\n int sector = mCellId.getCi() % 256;\n cellId = mCellId.getMcc() + \":\" + mCellId.getMnc() + \":\" + mCellId.getTac() + \":\" + ci + \":\" + sector;\n if (mCellId.getMcc() <= 0 || mCellId.getMnc() <= 0 || mCellId.getTac() <= 0 || mCellId.getCi() <= 0) {\n setCellError(cellId, cellType);\n }\n } else if (cell instanceof CellInfoGsm) {\n CellIdentityGsm mCellId = ((CellInfoGsm) cell).getCellIdentity();\n cellType = \"GSM\";\n cellId = mCellId.getMcc() + \":\" + mCellId.getMnc() + \":\" + mCellId.getLac() + \":\" + mCellId.getCid();\n if (mCellId.getMcc() <= 0 || mCellId.getMnc() <= 0 || mCellId.getLac() <= 0 || mCellId.getCid() <= 0) {\n setCellError(cellId, cellType);\n }\n } else if (cell instanceof CellInfoCdma) {\n CellIdentityCdma mCellId = ((CellInfoCdma) cell).getCellIdentity();\n cellType = \"CDMA\";\n cellId = mCellId.getNetworkId() + \":\" + mCellId.getSystemId() + \":\" + mCellId.getBasestationId();\n if (mCellId.getNetworkId() <= 0 || mCellId.getSystemId() <= 0 || mCellId.getBasestationId() <= 0) {\n setCellError(cellId, cellType);\n }\n } else if (cell instanceof CellInfoWcdma) {\n CellIdentityWcdma mCellId = ((CellInfoWcdma) cell).getCellIdentity();\n cellType = \"WCDMA\";\n cellId = mCellId.getMcc() + \":\" + mCellId.getMnc() + \":\" + mCellId.getLac() + \":\" + mCellId.getCid();\n if (mCellId.getMcc() <= 0 || mCellId.getMnc() <= 0 || mCellId.getLac() <= 0 || mCellId.getCid() <= 0) {\n setCellError(cellId, cellType);\n }\n } else {\n setCellError(\"NULL\", cell.getClass().getSimpleName());\n Log.e(\"sfen\", getError());\n }\n }\n }", "title": "" }, { "docid": "4539c55bf0fb50caa869424450350d28", "score": "0.5085047", "text": "public int getTypeValue() {\n return type_;\n }", "title": "" }, { "docid": "4539c55bf0fb50caa869424450350d28", "score": "0.5085047", "text": "public int getTypeValue() {\n return type_;\n }", "title": "" }, { "docid": "6fa815a523ca021ef2c7fb0ac2af371b", "score": "0.50671804", "text": "public ColumnType guessType() {\n if (type.equals(ColumnType.String)) {\n String str = type.toString(this.value);\n\n if (str.startsWith(\"{\") && str.endsWith(\"}\")) {\n return ColumnType.Json;\n }\n\n if (str.startsWith(\"[\") && str.endsWith(\"]\")) {\n return ColumnType.Json;\n }\n\n if (str.startsWith(\"<\") && str.endsWith(\">\")) {\n return ColumnType.Xml;\n }\n }\n return null;\n }", "title": "" }, { "docid": "5685453d9f8bcbdffd16090df31d2cbe", "score": "0.50610477", "text": "public StrColumn getType() {\n return delegate.getColumn(\"type\", DelegatingStrColumn::new);\n }", "title": "" }, { "docid": "64dd274f03ff181b65fddd36e582cc14", "score": "0.5055107", "text": "public String getExpenseType() {\n return (String)getAttributeInternal(\"ExpenseType\");\n }", "title": "" }, { "docid": "462745220f3335d48c9aaadc9874d778", "score": "0.50504166", "text": "DataType getType();", "title": "" }, { "docid": "e65cae4435c4a0e03e7e1e0fc914c2fe", "score": "0.5017529", "text": "public IS[] getPatientType() {\n \tIS[] retVal = this.getTypedField(18, new IS[0]);\n \treturn retVal;\n }", "title": "" }, { "docid": "8b5d1cf2105fdd46720d4ecccee98feb", "score": "0.50093", "text": "@Basic\n @Column(name = \"user_type\", nullable = true)\n public Integer getUserType() {\n return userType;\n }", "title": "" }, { "docid": "1615779bdb8bd9e0b10ab781070e47d7", "score": "0.5006829", "text": "private int valDataType(int dataType) {\r\n\t\tswitch (dataType) {\r\n\t\tcase (sym.INT):\r\n\t\tcase (sym.FLOAT):\r\n\t\tcase (sym.BOOLEAN):\r\n\t\tcase (sym.PARTICIPANT): {\r\n\t\t\treturn dataType;\r\n\t\t}\r\n\t\tdefault: {\r\n\t\t\temessage += \"invalid datatype: Rumble allows int, float, boolean, and participant\\n\";\r\n\t\t\tallsWell = false;\r\n\t\t\treturn -1;\r\n\t\t}\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "b081da20c8f93835d58de4519c1f0448", "score": "0.5003775", "text": "public java.lang.String getExpedtype() {\n\treturn expedtype;\n}", "title": "" }, { "docid": "9cf3b19d34bbad5c1490482a78501e2e", "score": "0.49944073", "text": "DataType getDataType();", "title": "" }, { "docid": "9cf3b19d34bbad5c1490482a78501e2e", "score": "0.49944073", "text": "DataType getDataType();", "title": "" }, { "docid": "9cf3b19d34bbad5c1490482a78501e2e", "score": "0.49944073", "text": "DataType getDataType();", "title": "" }, { "docid": "482988539087d4f8e34d8c2b491cd545", "score": "0.49833286", "text": "private String getUserType(String email) {\n Filter propertyFilter = new FilterPredicate(\"email-address\", FilterOperator.EQUAL, email);\n Query query = new Query(\"user\").setFilter(propertyFilter);\n PreparedQuery results = datastore.prepare(query);\n for (Entity entity: results.asIterable()) {\n String userType = (String) entity.getProperty(\"user-type\");\n return userType;\n }\n // this email address is not found in the database\n return \"\"; // return empty string if user is not found\n }", "title": "" }, { "docid": "622079752686b3f14361cde6126f4199", "score": "0.49804315", "text": "public int getTypeValue() {\n return type_;\n }", "title": "" }, { "docid": "622079752686b3f14361cde6126f4199", "score": "0.49804315", "text": "public int getTypeValue() {\n return type_;\n }", "title": "" }, { "docid": "334e5e484a7ee69f85ae5e35d3e1b519", "score": "0.49787986", "text": "public Long getBusiType() {\n return busiType;\n }", "title": "" }, { "docid": "664a532cd36da5c5373009ca0442a019", "score": "0.49774888", "text": "public String getEvent_type () {\n return event_type;\n }", "title": "" }, { "docid": "27b6c990a36db10559604e08f9b826ab", "score": "0.49697655", "text": "public ColumnType getType() {\n return this.type;\n }", "title": "" }, { "docid": "3bab86f2ef8ce7f2d5db51396a380b60", "score": "0.49630368", "text": "java.lang.String getMetarType();", "title": "" }, { "docid": "a612e1c203cdeeacf0a3c4e0f8d66a86", "score": "0.49575913", "text": "public CWE getDg111_OutlierType() { \r\n\t\tCWE retVal = this.getTypedField(11, 0);\r\n\t\treturn retVal;\r\n }", "title": "" }, { "docid": "c2aa01989e0a40600cd8aafa28f5eb7b", "score": "0.4956708", "text": "int getMessageTypeValue();", "title": "" }, { "docid": "c2aa01989e0a40600cd8aafa28f5eb7b", "score": "0.4956708", "text": "int getMessageTypeValue();", "title": "" }, { "docid": "c1824a918ec66c7e8641042e1c0c38cb", "score": "0.49517766", "text": "@Override\n\tpublic int getColumnType(int column) throws SQLException {\n\t\treturn 0;\n\t}", "title": "" }, { "docid": "849d09dca1696724536afcb2f4685e81", "score": "0.49456996", "text": "public String getType() {\n if (type.equals(\"ToDos\")) {\n return \"T\";\n } else if (type.equals(\"Deadlines\")) {\n return \"D\";\n } else if (type.equals(\"Events\")) {\n return \"E\";\n }\n return \"Error\";\n }", "title": "" }, { "docid": "2a781ac20db6800db33a653035ba3dab", "score": "0.4942518", "text": "public String value() {\n return this.column;\n }", "title": "" }, { "docid": "2a781ac20db6800db33a653035ba3dab", "score": "0.4942518", "text": "public String value() {\n return this.column;\n }", "title": "" }, { "docid": "2a781ac20db6800db33a653035ba3dab", "score": "0.4942518", "text": "public String value() {\n return this.column;\n }", "title": "" }, { "docid": "2a781ac20db6800db33a653035ba3dab", "score": "0.4942518", "text": "public String value() {\n return this.column;\n }", "title": "" }, { "docid": "2a781ac20db6800db33a653035ba3dab", "score": "0.4942518", "text": "public String value() {\n return this.column;\n }", "title": "" }, { "docid": "2a781ac20db6800db33a653035ba3dab", "score": "0.4942518", "text": "public String value() {\n return this.column;\n }", "title": "" }, { "docid": "2a781ac20db6800db33a653035ba3dab", "score": "0.4942518", "text": "public String value() {\n return this.column;\n }", "title": "" }, { "docid": "2a781ac20db6800db33a653035ba3dab", "score": "0.4942518", "text": "public String value() {\n return this.column;\n }", "title": "" } ]
1b0db9a86fbc30535f4932272842fb48
/ renamed from: a
[ { "docid": "4db780d92ff19c88bf11c53d9a795383", "score": "0.0", "text": "public static final long m522a(long j, int i, boolean z) {\n if (z) {\n return j | (1 << i);\n }\n return m532b(j, i);\n }", "title": "" } ]
[ { "docid": "6e7d19f90dff629712933844b194e213", "score": "0.62741643", "text": "interface xb {\n /* renamed from: a */\n void mo3338a(String str);\n}", "title": "" }, { "docid": "dfc8884398507d7a30967d7ad7e44432", "score": "0.62433356", "text": "interface C11843b {\n /* renamed from: a */\n void mo40422a(String str);\n }", "title": "" }, { "docid": "0cab9564f954812e91324250ea09f62a", "score": "0.6139648", "text": "public interface C0562a {\n /* renamed from: a */\n void mo3775a();\n}", "title": "" }, { "docid": "f36ffb234584a0a13ae2b5b99d1ad94d", "score": "0.61310303", "text": "public interface C0352bb {\n /* renamed from: a */\n void mo3333a();\n}", "title": "" }, { "docid": "24313e23777bc23f03889e27cad5f3c6", "score": "0.6096486", "text": "interface C1659b {\n /* renamed from: a */\n int mo12783a();\n\n /* renamed from: b */\n int mo12784b();\n }", "title": "" }, { "docid": "08d29acc9b2729de5dd749df5b7f6d4d", "score": "0.6089561", "text": "interface dkp {\n /* renamed from: a */\n Object mo4585a(Object obj);\n}", "title": "" }, { "docid": "2bdfdc2d974f59fc3e64851cafda6e4d", "score": "0.6034405", "text": "public interface C6592a {\n /* renamed from: a */\n void mo19777a();\n }", "title": "" }, { "docid": "32bb0f3f5ff3d292135c66edceef2629", "score": "0.60143435", "text": "public interface C1544a {\n /* renamed from: a */\n void mo12127a();\n\n /* renamed from: b */\n void mo12128b();\n }", "title": "" }, { "docid": "a85ba7f835001c39974f017fa916a5a8", "score": "0.601188", "text": "public interface C5178a {\n /* renamed from: a */\n void mo4948a();\n }", "title": "" }, { "docid": "6f54c639af42b7b19766f438c081dfd5", "score": "0.5995769", "text": "public interface C34024a {\n /* renamed from: a */\n void mo30743a(C34023j c34023j);\n }", "title": "" }, { "docid": "00a2486ee2f0bd8dd0a70463b8556dce", "score": "0.597773", "text": "public interface C36043q extends C25672e {\n /* renamed from: a */\n void mo91732a(List<String> list, List<String> list2);\n}", "title": "" }, { "docid": "5268ba32584553f33cdacdcbfdc7ebab", "score": "0.59362715", "text": "interface C2778a {\n /* renamed from: a */\n void mo3560a(View view, int i, long j);\n }", "title": "" }, { "docid": "5d37e5d78d1c09ba967a82427b7747c3", "score": "0.5925591", "text": "public interface C2247a {\n /* renamed from: a */\n void mo5920a(C2198b bVar);\n }", "title": "" }, { "docid": "4f88e23b0f4526ba51e1807bef0463f9", "score": "0.5861969", "text": "interface C11886b {\n /* renamed from: a */\n void mo40432a(String str, String[] strArr);\n }", "title": "" }, { "docid": "2cfa4ea2ce6b1802d9eee1ac882ca9a5", "score": "0.5831078", "text": "public interface C25419b {\n /* renamed from: a */\n void mo66037a();\n\n /* renamed from: b */\n void mo66038b();\n }", "title": "" }, { "docid": "fd6b64a390339e2502316f88db82d032", "score": "0.5812129", "text": "public interface C7540c {\n /* renamed from: a */\n void mo20439a(Integer num, Integer num2);\n}", "title": "" }, { "docid": "55be29714f1377a675ff66f71f313abf", "score": "0.5806204", "text": "public interface C3124b {\n /* renamed from: a */\n void mo44276a();\n\n /* renamed from: a */\n void mo44277a(int i);\n\n /* renamed from: b */\n void mo44278b();\n}", "title": "" }, { "docid": "881d6f07c801d12cee397fd0196d8404", "score": "0.57966894", "text": "public a(List<Name> list) {\n super(0);\n this.a = list;\n }", "title": "" }, { "docid": "3fbdc7481722aafe9ed619a2043427cc", "score": "0.5791148", "text": "public String transformar(String a) {\n\t\treturn \"Hola\";\n\t}", "title": "" }, { "docid": "2ecae5864fbc2245a98b612b279ece33", "score": "0.57868415", "text": "public interface C2158a {\n /* renamed from: a */\n void mo7839a(String str, String str2);\n\n /* renamed from: c */\n void mo7843c(String str);\n\n /* renamed from: d */\n void mo7845d(String str);\n }", "title": "" }, { "docid": "9cb970744c50d286bcafba30f09c6c69", "score": "0.5784738", "text": "public interface C2587a {\n /* renamed from: a */\n void mo1969a(String str);\n\n /* renamed from: a */\n void mo1970a(List<C2523a> list);\n }", "title": "" }, { "docid": "ba210201a1d6c788dab5fe24ed520127", "score": "0.57722443", "text": "public interface C1293a {\n /* renamed from: a */\n void mo5172a();\n\n /* renamed from: a */\n void mo5173a(String str, String str2, String str3);\n }", "title": "" }, { "docid": "cb408ca0c3e0a5429d6f5c820d6daf09", "score": "0.57649624", "text": "public interface C2324d {\n /* renamed from: a */\n void mo10111a(int i);\n}", "title": "" }, { "docid": "49ca28057642158855847b195ce4e4f9", "score": "0.5758304", "text": "public interface C9706i {\n /* renamed from: a */\n void mo25083a();\n}", "title": "" }, { "docid": "19830f40a707832c844c13f70e0394b2", "score": "0.5754653", "text": "public void versa(double a) {\r\n\r\n\t\tthis.importo = this.importo + a;\r\n\t}", "title": "" }, { "docid": "0c6dfb3cf8b8bf52383f2d704349e133", "score": "0.5753699", "text": "public interface C10749d<T> {\n /* renamed from: a */\n T mo25669a();\n}", "title": "" }, { "docid": "8cd6ae0a7caaa87ba88d650ab0e63051", "score": "0.5742329", "text": "public interface C28289e {\n /* renamed from: a */\n String mo71970a();\n}", "title": "" }, { "docid": "dab39168b44eb88dda5910ea3189c2bf", "score": "0.57324237", "text": "public interface C25380a {\n /* renamed from: a */\n void mo65936a();\n\n /* renamed from: b */\n void mo65937b();\n\n /* renamed from: c */\n void mo65938c();\n }", "title": "" }, { "docid": "4feacc79a1f8c9ead1a48877c99c00cc", "score": "0.5730862", "text": "public interface C18394c {\n /* renamed from: a */\n void mo47794a(float f);\n}", "title": "" }, { "docid": "82cbd5d2b393dc2ab2977fcbd58d2fc8", "score": "0.57241243", "text": "public interface C5477a {\n /* renamed from: a */\n void mo27561a();\n\n /* renamed from: b */\n void mo27562b();\n\n /* renamed from: c */\n void mo27563c();\n}", "title": "" }, { "docid": "a261eb8868dac188c2dfb3df78f1941d", "score": "0.57186276", "text": "public interface C2529k6 {\n /* renamed from: a */\n int mo7628a();\n}", "title": "" }, { "docid": "bd32ffaaae562653045540489c8de73b", "score": "0.571552", "text": "public void bbbc(String a) {\n\t\t\n\t}", "title": "" }, { "docid": "1106f2342c9a0c5adac11e31794b37f2", "score": "0.5708079", "text": "interface C0445a {\n /* renamed from: a */\n C0450h mo3159a(C0444e eVar, boolean[] zArr);\n\n /* renamed from: a */\n void mo3160a(C0445a aVar);\n\n /* renamed from: d */\n void mo3173d(C0450h hVar);\n\n /* renamed from: f */\n void mo3175f();\n\n /* renamed from: g */\n C0450h mo3176g();\n }", "title": "" }, { "docid": "a112ffcafc49d3d467d2ab9ed7d295aa", "score": "0.5693697", "text": "public interface C1184m<T> {\n /* renamed from: a */\n void mo4609a(T t);\n}", "title": "" }, { "docid": "ee5bf74c908dead663dab5e1314ccd12", "score": "0.5675513", "text": "interface C4473k {\n /* renamed from: a */\n boolean mo4632a(zzakd zzakd);\n}", "title": "" }, { "docid": "bbef6fc90b555713ce08cd8f6bf5fccf", "score": "0.5654674", "text": "public interface C2196e {\n /* renamed from: a */\n C2236z mo3168a();\n}", "title": "" }, { "docid": "961900cfff0798da1b7ff6738500944a", "score": "0.56471956", "text": "public interface AbstractC16710b {\n /* renamed from: a */\n void mo81739a();\n }", "title": "" }, { "docid": "53f38179e95b154df8366d9f989e4f67", "score": "0.564534", "text": "interface C0011a {\n /* renamed from: a */\n void mo45a();\n\n /* renamed from: b */\n void mo46b();\n\n /* renamed from: c */\n void mo47c();\n }", "title": "" }, { "docid": "cfe568c2f841461630e829830d2ff98e", "score": "0.5644524", "text": "public interface C23321d<T> {\n /* renamed from: a */\n T mo60607a();\n}", "title": "" }, { "docid": "fae494c707a4246ecbbec15ab044e6a3", "score": "0.5638796", "text": "public interface C0253a {\n /* renamed from: a */\n void mo459a(C0257c cVar, C0254b.C0255a aVar);\n}", "title": "" }, { "docid": "fc03a356cf59ac01ea7a8c535c128d15", "score": "0.5637931", "text": "public interface C1787b {\n /* renamed from: a */\n C1785b mo6765a();\n }", "title": "" }, { "docid": "2d4e1be108bea7e6d6ed31fdeec586da", "score": "0.56252575", "text": "public interface C0603as {\n /* renamed from: a */\n void mo9154a(int i, long j, String str, String str2);\n}", "title": "" }, { "docid": "ab165960e41caf14eff1ef0475a29a95", "score": "0.5624459", "text": "public interface C4007b {\n /* renamed from: a */\n void mo9510a();\n }", "title": "" }, { "docid": "1ae4073144ba467514114acf0ff4d398", "score": "0.5623888", "text": "interface C11792e {\n /* renamed from: a */\n void mo40360a(Editable editable);\n\n /* renamed from: a */\n void mo40361a(boolean z);\n }", "title": "" }, { "docid": "a0c83d51859b73390256d771a8a19c66", "score": "0.5617265", "text": "public interface C36079d {\n /* renamed from: a */\n void mo91810a();\n\n /* renamed from: a */\n void mo91811a(C23142a aVar);\n\n /* renamed from: a */\n void mo91812a(C23142a aVar, int i, String str);\n}", "title": "" }, { "docid": "4e30cb1b2d1b1ec022ce3bd9c767d105", "score": "0.5602599", "text": "public interface C1211d<T> {\n /* renamed from: a */\n void mo2687a(T t);\n}", "title": "" }, { "docid": "aa136bf3c6de4deb75dd0621c4fbb424", "score": "0.55931336", "text": "public interface C3193a {\n /* renamed from: a */\n void mo30213a();\n\n /* renamed from: a */\n void mo30214a(C3153hs hsVar);\n\n /* renamed from: b */\n void mo30215b();\n }", "title": "" }, { "docid": "4ccdc3b4ab7f5969a196630946e2ec1d", "score": "0.5590382", "text": "public interface C11187ka {\n /* renamed from: a */\n boolean mo28584a();\n}", "title": "" }, { "docid": "5e066b5266be5cb7ac82732e958c8af2", "score": "0.55864215", "text": "public a a() {\n return this;\n }", "title": "" }, { "docid": "7132284bc9a20bccad1bf6650078d568", "score": "0.55778843", "text": "public interface C10896f {\n /* renamed from: a */\n void mo38526a(String str);\n }", "title": "" }, { "docid": "f97bdfe8bf386a20ee4b10c769507ab2", "score": "0.5573178", "text": "public interface AbstractC3306ad {\n /* renamed from: a */\n void mo38338a(Object obj);\n}", "title": "" }, { "docid": "516f339039effc3219c93ee9489ade52", "score": "0.5571283", "text": "public static la a() {\n }", "title": "" }, { "docid": "b5531f3c3ba24e040dfbaa46230f3354", "score": "0.55666864", "text": "public interface C4006a {\n /* renamed from: a */\n void mo9509a(int i);\n }", "title": "" }, { "docid": "11647cc4a9890f0e46001e171792efcf", "score": "0.5558536", "text": "public interface C6402dh {\n /* renamed from: a */\n int mo34588a();\n\n /* renamed from: b */\n int mo34589b();\n}", "title": "" }, { "docid": "ef9e5b15227bc14b0941d77773e37634", "score": "0.5551524", "text": "public interface C20250t {\n /* renamed from: a */\n boolean mo54193a();\n}", "title": "" }, { "docid": "5f07f44e7605c84f3fdfc4ea26c71f84", "score": "0.5548703", "text": "public interface C3488e {\n /* renamed from: a */\n int mo10491a();\n\n /* renamed from: b */\n int mo10492b();\n\n /* renamed from: c */\n int mo10493c();\n}", "title": "" }, { "docid": "1a0b3dceb586ac72faf1668166409b74", "score": "0.5547171", "text": "public interface AbstractC0823b {\n /* renamed from: a */\n AbstractC0773c<Annotation> mo9714a();\n\n @Deprecated\n /* renamed from: a */\n List<Annotation> mo9715a(AbstractC0772b<Annotation> bVar);\n}", "title": "" }, { "docid": "d880979dd57576db0384a44230aba209", "score": "0.5519055", "text": "private static void cambiar(MiClase a, MiClase b) {\n\t\tMiClase tmp=a;\n\t\ta=b;\n\t\tb=tmp;\n\t}", "title": "" }, { "docid": "5e5a740ea4256a3508d5a0cea11b52e5", "score": "0.5508228", "text": "public interface C4913a {\n /* renamed from: a */\n boolean mo5166a(aa aaVar);\n\n /* renamed from: b */\n boolean mo5167b(aa aaVar);\n\n /* renamed from: c */\n void mo5168c(aa aaVar);\n }", "title": "" }, { "docid": "13d9e6bc82766464077b1d2a5d358cee", "score": "0.549834", "text": "private String decomp(int a) {\r\n\t\tString s1 = padString(a, 9);\r\n\t\tString s = s1.substring(0, 3) + \"/\" + s1.substring(3, 6) + \"/\"\r\n\t\t\t\t+ s1.substring(6, 9);\r\n\t\treturn s;\r\n\t}", "title": "" }, { "docid": "f983f43b49227a0c36697a85df31e9a6", "score": "0.54961854", "text": "@Override\r\n\tpublic float resta(float a) {\n\t\treturn 0;\r\n\t}", "title": "" }, { "docid": "01d0924cb04db1524fe70de2bc4cbe23", "score": "0.54908454", "text": "private void swap(Item[] a, int i, int change) {\r\n\t Item helper = a[i];\r\n\t a[i] = a[change];\r\n\t a[change] = helper;\r\n\t }", "title": "" }, { "docid": "70e9c4cfc2c057b41b0eb52032bc4f60", "score": "0.5485628", "text": "private void change(String a) {\n\t\tif (!a.equals(\" \") && logical.changeOrder(Integer.parseInt(a)))\n\t\t\tsteps++;\n\t\tchangeid();\n\t\trefresque();\n\t}", "title": "" }, { "docid": "d8b06090cc86156b7ccca999a45c0962", "score": "0.54754215", "text": "public interface AbstractC8423a {\n /* renamed from: a */\n void mo53220a(AbstractC8433b bVar);\n }", "title": "" }, { "docid": "0542caf5ba5a0b55e92e272d88f650a0", "score": "0.5472692", "text": "public interface C11013c {\n /* renamed from: a */\n void mo26596a();\n\n void bb_();\n\n void bc_();\n}", "title": "" }, { "docid": "970b12d5c02b8aca8224c6776db610fe", "score": "0.54637206", "text": "public interface AbstractC16709a {\n /* renamed from: a */\n void mo81736a();\n\n /* renamed from: b */\n void mo81737b();\n\n /* renamed from: c */\n void mo81738c();\n }", "title": "" }, { "docid": "eda42d794a354d372251523c92bd2a6c", "score": "0.5462772", "text": "public interface C2246v {\n\n /* renamed from: com.panasonic.avc.cng.model.service.v$a */\n public interface C2247a {\n /* renamed from: a */\n void mo5920a(C2198b bVar);\n }\n\n /* renamed from: a */\n void mo5820a(C1878d dVar, long j, boolean z);\n\n /* renamed from: a */\n void mo5821a(C2247a aVar);\n}", "title": "" }, { "docid": "5d084bbd47d98ad28b99816ada6634ef", "score": "0.5456414", "text": "public void a() {\n }", "title": "" }, { "docid": "a94d83f15293c916b0e3717d5f92849f", "score": "0.54539645", "text": "public interface C2775g {\n /* renamed from: a */\n void mo11791a(boolean z);\n}", "title": "" }, { "docid": "1fcd10170200c4f01150aafc7f43862b", "score": "0.5447511", "text": "public interface C2241e {\n /* renamed from: a */\n void mo8379a(int i, int i2);\n\n /* renamed from: a */\n void mo8382a(C2240d dVar);\n}", "title": "" }, { "docid": "979d53f641489e312ac654e1dfe6839d", "score": "0.54449", "text": "interface C37295g {\n /* renamed from: a */\n void mo3684a(C45064h c45064h);\n}", "title": "" }, { "docid": "f3ec5dfdd203c8b71e8404edc06cd8d4", "score": "0.5438427", "text": "public interface C44952f {\n /* renamed from: a */\n C19290j mo105117a(String str);\n}", "title": "" }, { "docid": "b40f84ae2ea0ba5d4476c1fbd75284e5", "score": "0.54326963", "text": "public interface C15117a0 {\n /* renamed from: b */\n C15473y mo46854b();\n\n /* renamed from: e */\n String mo46855e();\n\n /* renamed from: f */\n String mo46856f();\n}", "title": "" }, { "docid": "823cc2714f05a2fb40bb61168bf04b53", "score": "0.5424753", "text": "public interface C41610b {\n /* renamed from: a */\n List<VideoCategoryParam> mo102234a(int i);\n\n /* renamed from: a */\n void mo102235a(VideoCategoryParam videoCategoryParam);\n}", "title": "" }, { "docid": "02c9fcfcad8f7c34dc301f0395b6516c", "score": "0.54201984", "text": "public interface C0646b {\n /* renamed from: a */\n Object mo3768a(Class<?> cls);\n}", "title": "" }, { "docid": "75eda2dd24d8c133e02f6a0937beb282", "score": "0.5417262", "text": "public interface C46722e {\n /* renamed from: a */\n void mo36581a(C1207m c1207m, boolean z);\n\n void bLB();\n}", "title": "" }, { "docid": "3b90cf222d4a638de73145a1f0d51bea", "score": "0.5415878", "text": "public interface C2710h {\n /* renamed from: a */\n String m11205a(String str);\n}", "title": "" }, { "docid": "a3b9cf7a2004795e366ac318778a5204", "score": "0.5413877", "text": "public a a() {\n return this;\n }", "title": "" }, { "docid": "7d698082009d7ec4249f18cb84293931", "score": "0.541348", "text": "public interface C25211g {\n /* renamed from: a */\n boolean mo65822a();\n}", "title": "" }, { "docid": "08efc0cd256cf642e0d420cba79ed387", "score": "0.5411275", "text": "@Override // com.igexin.push.p079f.p081b.AbstractC1150h\n /* renamed from: a */\n public void mo4304a() {\n this.f1804a.m2564d();\n }", "title": "" }, { "docid": "4233bfa70d9a20516730676c273f1c93", "score": "0.5393582", "text": "public interface C1628a {\n /* renamed from: a */\n void mo7019a(C1627c cVar, int i);\n }", "title": "" }, { "docid": "ce2d80285eed2d7f7e9f18f2c8e24e24", "score": "0.5388333", "text": "interface C9680b extends View<Fragment> {\n /* renamed from: a */\n void mo34558a(String str);\n\n /* renamed from: a */\n void mo34559a(boolean z);\n\n /* renamed from: b */\n void mo34560b(String str);\n\n /* renamed from: c */\n void mo34561c();\n\n /* renamed from: c */\n void mo34562c(String str);\n\n /* renamed from: d */\n void mo34563d();\n\n /* renamed from: e */\n void mo34564e();\n\n /* renamed from: f */\n String mo34565f();\n\n /* renamed from: g */\n String mo34566g();\n\n /* renamed from: h */\n String mo34567h();\n\n /* renamed from: i */\n String mo34568i();\n\n /* renamed from: j */\n String mo34569j();\n }", "title": "" }, { "docid": "5c0dc783e1452cf50da5207033ae69a3", "score": "0.5383002", "text": "public interface AbstractC11053a {\n /* renamed from: a */\n void mo65758a(View view);\n }", "title": "" }, { "docid": "e9e4a6b0eaaea615e2831620e12e3167", "score": "0.5381364", "text": "public interface C2291e {\n /* renamed from: a */\n String mo8097a(String str);\n\n /* renamed from: a */\n void mo8099a(String str, String str2);\n\n /* renamed from: a */\n void mo8100a(String str, Collection<String> collection);\n\n /* renamed from: b */\n List<String> mo8101b(String str);\n\n /* renamed from: c */\n void mo8103c(String str);\n}", "title": "" }, { "docid": "767ed8e92f4212cfb855f3681b35f185", "score": "0.5380734", "text": "interface C6639b {\n /* renamed from: a */\n void mo35709a();\n\n /* renamed from: a */\n void mo35710a(int i, int i2, int i3, boolean z);\n\n /* renamed from: a */\n void mo35711a(int i, int i2, List<C6616b> list) throws IOException;\n\n /* renamed from: a */\n void mo35712a(int i, long j);\n\n /* renamed from: a */\n void mo35713a(int i, C6615a aVar);\n\n /* renamed from: a */\n void mo35714a(int i, C6615a aVar, C3581f fVar);\n\n /* renamed from: a */\n void mo35715a(boolean z, int i, int i2);\n\n /* renamed from: a */\n void mo35716a(boolean z, int i, int i2, List<C6616b> list);\n\n /* renamed from: a */\n void mo35717a(boolean z, int i, C3580e eVar, int i2) throws IOException;\n\n /* renamed from: a */\n void mo35718a(boolean z, C6645l lVar);\n }", "title": "" }, { "docid": "70a501cfc274684a2441499f57154023", "score": "0.5373267", "text": "void m21788a(int i) {\n this.f24817e.m21844a(new an(this, i));\n }", "title": "" }, { "docid": "725f24a7458d77a73cb1c1168183225f", "score": "0.536816", "text": "public interface AbstractC3034a {\n /* renamed from: a */\n void mo36916a(int i);\n\n /* renamed from: a */\n boolean mo36918a();\n\n /* renamed from: b */\n boolean mo36919b();\n}", "title": "" }, { "docid": "57d45e2a2021b82f9107c4da6da49962", "score": "0.53680015", "text": "public interface C0007s {\n /* renamed from: a */\n void mo5a(boolean z);\n}", "title": "" }, { "docid": "b380be50aa0dce433899188c9b1b213d", "score": "0.53677183", "text": "public interface C33033s {\n /* renamed from: a */\n void mo60030a(Activity activity);\n}", "title": "" }, { "docid": "5a8aeffafa93e8441076b152d66161d3", "score": "0.5363548", "text": "public interface C12985d extends C12982a {\n /* renamed from: a */\n void mo41829a(String str, int i);\n\n /* renamed from: b */\n void mo41841b(String str);\n\n /* renamed from: d */\n void mo41849d(String str, String str2);\n}", "title": "" }, { "docid": "8df2f67bc281506546d856dd0efa7bf6", "score": "0.53515", "text": "public void a(int i, ur ist)\r\n/* 284: */ {\r\n/* 285:228 */ this.contents[i] = ist;\r\n/* 286:229 */ if ((ist != null) && (ist.a > c())) {\r\n/* 287:230 */ ist.a = c();\r\n/* 288: */ }\r\n/* 289:231 */ d();\r\n/* 290: */ }", "title": "" }, { "docid": "196c34ac7593bacaf7b2c012a58c0fa1", "score": "0.5347313", "text": "public interface C5257b {\n /* renamed from: a */\n void mo3946a(File file);\n\n /* renamed from: b */\n void mo3947b(File file);\n\n /* renamed from: c */\n void mo3948c(File file);\n}", "title": "" }, { "docid": "d612d464d310dd7511010ea337fccdc7", "score": "0.5334056", "text": "public interface C1298e {\n /* renamed from: a */\n void mo9211a(int i, int i2);\n\n /* renamed from: a */\n void mo9212a(int i, int i2, Object obj);\n\n /* renamed from: b */\n void mo9213b(int i, int i2);\n\n /* renamed from: c */\n void mo9214c(int i, int i2);\n}", "title": "" }, { "docid": "bcf1f1b62233247ee3c57a7c0b56a9d5", "score": "0.5330316", "text": "public interface C1634g {\n /* renamed from: a */\n void mo7025a(C1627c cVar, int i, int i2);\n }", "title": "" }, { "docid": "f17932992be307547421ff8408cd79e5", "score": "0.5327897", "text": "public void a(a.C0296a aVar) {\n String lowerCase = com.garena.android.appkit.tools.b.e(this.f19716c).toLowerCase();\n a.C0296a f2 = aVar.f(1);\n f2.a(Character.toUpperCase(lowerCase.charAt(0)) + lowerCase.substring(1)).e(0);\n }", "title": "" }, { "docid": "893b30e44fb6c74510f6b2583836390e", "score": "0.53228235", "text": "public interface C41627a extends C17690a<C41626j> {\n /* renamed from: a */\n void mo19277a(C25552a c25552a);\n\n /* renamed from: pL */\n void mo19280pL();\n }", "title": "" }, { "docid": "cc718799938d5795dfdb62c6ea16f2cc", "score": "0.53146076", "text": "public interface C39055bo {\n /* renamed from: a */\n AVMusic mo97295a();\n\n /* renamed from: a */\n void mo97298a(C38997ax axVar);\n\n /* renamed from: a */\n void mo97299a(List<AVMusic> list);\n\n /* renamed from: b */\n IStickPointMusicAdapter mo97300b();\n\n /* renamed from: c */\n void mo97303c();\n}", "title": "" }, { "docid": "763236f2b31bfc347fe3f37f02afe585", "score": "0.5302296", "text": "public void rotateBy(float a) {float dx=x, dy=y, c=cos(a), s=sin(a); x=c*dx+s*dy; y=-s*dx+c*dy; }", "title": "" }, { "docid": "0531384ed7ec5a2545741afa78a6dc43", "score": "0.52888435", "text": "public interface C3604b {\n /* renamed from: a */\n void mo29445a(Bundle bundle, String str);\n\n /* renamed from: a */\n void mo29446a(C3603a aVar, String str);\n\n /* renamed from: d */\n void mo29450d();\n }", "title": "" }, { "docid": "37eec088c526a7c37902dd6ad534a607", "score": "0.52858686", "text": "private interface C9339a0 {\n /* renamed from: a */\n void mo25157a(C9318g gVar) throws Exception;\n }", "title": "" }, { "docid": "1fa0ac3b91a367817fd5c08e503baeb8", "score": "0.52813053", "text": "public interface C16622iq extends C16615ij, Cloneable {\n /* renamed from: a */\n C16622iq mo42999a();\n}", "title": "" } ]
53766ec99ac1ec00c183f0d297f82ac5
/ JADX INFO: this call moved to the top of the method (can break code semantics)
[ { "docid": "8e655c0c42c97519a07057ee398602b0", "score": "0.0", "text": "@VisibleForTesting\n public ActivityRecognitionResult(DetectedActivity detectedActivity, long j, long j2) {\n this(detectedActivity, j, j2, 0, (Bundle) null);\n }", "title": "" } ]
[ { "docid": "ec76ff8d70ced9d8135ad33b23353b4d", "score": "0.66240424", "text": "@Override\r\n\t\t\tpublic void adelante() {\n\t\t\t\t\r\n\t\t\t}", "title": "" }, { "docid": "8b7f87c22e268a87686c66398c2c442b", "score": "0.6603262", "text": "@Override\r\n\t\t\tpublic void atras() {\n\t\t\t\t\r\n\t\t\t}", "title": "" }, { "docid": "c13e6a1b7c130afa9fb0f34225bea4ef", "score": "0.65967894", "text": "protected void mo1555b() {\n }", "title": "" }, { "docid": "6fa90cb587dd5c43c4d3e567f3d5be89", "score": "0.65599114", "text": "private static void Method4() {\n\t\t\r\n\t}", "title": "" }, { "docid": "9bee178f3f344211b2e3e20cc5eb0a44", "score": "0.6547072", "text": "private void gotopic() {\n }", "title": "" }, { "docid": "28237d6ae20e1aa35aaca12e05c950c9", "score": "0.6517902", "text": "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "title": "" }, { "docid": "28237d6ae20e1aa35aaca12e05c950c9", "score": "0.6517902", "text": "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "title": "" }, { "docid": "1acc57d42c31dee937ac33ea6f2a5b0b", "score": "0.65105945", "text": "@Override\r\n\tpublic void comer() {\n\t\t\r\n\t}", "title": "" }, { "docid": "e16d41ea385156816d3f3e3e31badebd", "score": "0.6483098", "text": "private void m52678v() {\n }", "title": "" }, { "docid": "e3110a393bd4b870b4055aa9ed6efd87", "score": "0.6472366", "text": "@Override\n\tpublic void attaquer() {\n\t\t\n\t}", "title": "" }, { "docid": "82ab90ffadf9b8d43e60c8510a33beba", "score": "0.6406326", "text": "@Override\r\n\tpublic void morirse() {\n\t\t\r\n\t}", "title": "" }, { "docid": "cd03efba12b5473dcc457b910fd92a0e", "score": "0.63919044", "text": "@Override\n\t\t\tpublic void sprout() {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "f95e24981675e675121146f90a85bfe2", "score": "0.6381266", "text": "protected abstract void mo3673S();", "title": "" }, { "docid": "360bf42213adde0b962792c6cd6d8df7", "score": "0.6372277", "text": "@Override\r\n\t\tpublic void interg() {\n\t\t\t\r\n\t\t}", "title": "" }, { "docid": "0b5b11f4251ace8b3d0f5ead186f7beb", "score": "0.6360212", "text": "@Override\n\tpublic void comer() {\n\t\t\n\t}", "title": "" }, { "docid": "0b5b11f4251ace8b3d0f5ead186f7beb", "score": "0.6360212", "text": "@Override\n\tpublic void comer() {\n\t\t\n\t}", "title": "" }, { "docid": "a5f7a321f63abee65f0b9008f270490e", "score": "0.63599664", "text": "@Override\n\t\t\tpublic void competir() {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "7839d9b18f833d7ad1ccae8536c829da", "score": "0.63449794", "text": "@Override\r\n\tpublic void zielone_swiatlo() {\n\t\t\r\n\t}", "title": "" }, { "docid": "7756cbf76fd6363807e17834db326bbc", "score": "0.63097554", "text": "@Override\n\t\t\tpublic void avanzar() {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "330fb60652277f643854b081333e4df2", "score": "0.6260252", "text": "protected abstract void mo6248a();", "title": "" }, { "docid": "070e1adb9bfd59cb643407a2dabe9b7a", "score": "0.62365294", "text": "private void hinzufügen() {\n\t\t\r\n\t}", "title": "" }, { "docid": "093a096d6e96e05b160fe2406b1e8a2d", "score": "0.6200585", "text": "@Override\n\tpublic void parir() {\n\t\t\n\t}", "title": "" }, { "docid": "e5fa0eebc721dea67da872fd14413bc7", "score": "0.6174739", "text": "@Override\n\tpublic void formule() {\n\t\t\n\t}", "title": "" }, { "docid": "267525a8240e720e8d91796596b7ff63", "score": "0.6154809", "text": "private void passTest3() {\n\t\t\r\n\t}", "title": "" }, { "docid": "d3585587779dbdf33600e1670ca42099", "score": "0.61508423", "text": "@Override\n\tpublic void IngresoKromi() {\n\t}", "title": "" }, { "docid": "6db5017cea06afe0d428b6c46aabff63", "score": "0.6124703", "text": "protected void m9470U() {\n }", "title": "" }, { "docid": "977fff0c332b2452ea52e9c12f4524f3", "score": "0.61204904", "text": "@Override\n\tpublic void frapper() {\n\n\t}", "title": "" }, { "docid": "fa1a013b1df2f5f1062e1cc971135645", "score": "0.6100473", "text": "@Override\n\tpublic void mamar() {\n\t\t\n\t}", "title": "" }, { "docid": "98dd411045fd2d1d89b5a730ede72786", "score": "0.60977936", "text": "public void mo3758a() {\n }", "title": "" }, { "docid": "cf878687d061d3b258dfe569210d47ed", "score": "0.609572", "text": "@Override\n\tpublic void harden() {\n\t}", "title": "" }, { "docid": "36a9185e11b8e732b645ef4e774244a1", "score": "0.6093492", "text": "private static void perparfood() {\n\r\n\t}", "title": "" }, { "docid": "9c84446c336efdd09d8d8ad4c72ee27d", "score": "0.6084861", "text": "public final void mo103167b() {\n }", "title": "" }, { "docid": "2cc97f340071c93ab12395f2981731ee", "score": "0.60829455", "text": "public void mo25307b() {\n }", "title": "" }, { "docid": "0d357f1b77bd2422ac71f8089f0dfa9b", "score": "0.60702026", "text": "public void buggyMethod4() {\n\t}", "title": "" }, { "docid": "7c4f2f94b290de5507eb56a649c4fab9", "score": "0.60624", "text": "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "title": "" }, { "docid": "2e73109f7991e3c02255b86ca0fdc850", "score": "0.60500896", "text": "protected abstract void mo3674T();", "title": "" }, { "docid": "9c78dfd9e1a470b1bd008504d19d9197", "score": "0.60351896", "text": "protected void mo1958j() {\n }", "title": "" }, { "docid": "a22a3abb4b9b5de4ed8c054da445e9b0", "score": "0.60248727", "text": "@Override\r\n\tpublic void jugar() {\n\r\n\t}", "title": "" }, { "docid": "70a16c72846acc1e8bbf19243cf5321f", "score": "0.6023404", "text": "public void mischeFarbe() {\n }", "title": "" }, { "docid": "469c90392fb12e4553574135278541f5", "score": "0.59958816", "text": "@Override\n\tpublic void attck() {\n\t\t\n\t}", "title": "" }, { "docid": "9b56e05d631b1ea925ea2c139ee709ad", "score": "0.598895", "text": "@Override\n\tpublic void adim7() {\n\n\t}", "title": "" }, { "docid": "b650d82d599ab1217e037357da86da5e", "score": "0.59886384", "text": "@Override\r\n\t\tpublic void coding() {\n\t\t\t\r\n\t\t}", "title": "" }, { "docid": "a4e9dd51e0043dd4f1396223cdcc8177", "score": "0.59872586", "text": "public void mo61769a() {\n }", "title": "" }, { "docid": "691b15fed469ddc176b9c9e6151dea65", "score": "0.59650606", "text": "@Override\n\tpublic void breathes()\n\t{\n\t\t\n\t}", "title": "" }, { "docid": "d565f51ece9526973ba9bb7ac7a9ac02", "score": "0.59621865", "text": "private static void Method3() {\n\t\t\r\n\t}", "title": "" }, { "docid": "14f6250e215aa66dcffb123fd6b7fd74", "score": "0.59621567", "text": "@Override\n\tpublic void entzünden() {\n\n\t}", "title": "" }, { "docid": "c2becc59cca4649bc52bcc2fa518f0a5", "score": "0.5958363", "text": "public void mo641b() {\n }", "title": "" }, { "docid": "6e6af08ea6042fa9f6db3d147a9a1a01", "score": "0.5922792", "text": "@Override\n\tpublic void andar_rastejar() {\n\t\t\n\t}", "title": "" }, { "docid": "16523a2ec977d4d78bcca5f70da1fe01", "score": "0.59182596", "text": "private void cleartf() {\n\t\t\t\t\r\n\t\t\t}", "title": "" }, { "docid": "e09b30e8a933ffca8b6063a9da1af241", "score": "0.5913405", "text": "public final void mo23307a() {\n }", "title": "" }, { "docid": "c2c1f0ca9c7029b85142a2ab9536d708", "score": "0.59015745", "text": "@Override\n\tpublic void attaque() {\n\t\t\n\t}", "title": "" }, { "docid": "a23aae906a72cb538cbbba61f2dd85c1", "score": "0.58941364", "text": "public void mo58175y() {\n }", "title": "" }, { "docid": "a3d0fe0d63245f1bf38fef6636a8f1cf", "score": "0.5862427", "text": "@Override\n\tpublic void adim4() {\n\n\t}", "title": "" }, { "docid": "f9aea8ce976b697ab22b6d9103ef3a08", "score": "0.58436215", "text": "public abstract void mo80739b();", "title": "" }, { "docid": "152818b619dcfcd5190a2f48bc75fa5f", "score": "0.5834522", "text": "@Override\n\tpublic void adim6() {\n\n\t}", "title": "" }, { "docid": "ec5bb3e4130b7b7e1ca99bcf5962d157", "score": "0.5831651", "text": "public void method_2589() {\r\n super.method_2589();\r\n }", "title": "" }, { "docid": "488a6a7cb952a5be064ad2f1cac55a87", "score": "0.58296365", "text": "public final void mo103168c() {\n }", "title": "" }, { "docid": "f0e80dbf728371e6daa01e61cc71a8e5", "score": "0.58276576", "text": "@Override\r\n\tpublic void test6() {\n\t\t\r\n\t}", "title": "" }, { "docid": "0b2971269fe98b0ff303e308456ac5b5", "score": "0.5820847", "text": "public void method_2917() {\r\n super.method_2917();\r\n }", "title": "" }, { "docid": "1a642aa12e77e6cd32e95fcf2539aa90", "score": "0.5819686", "text": "private Retentioner_Lovely()\n\t{\n\t}", "title": "" }, { "docid": "8d1ecff84c0fa75635a52e113c6c9805", "score": "0.581604", "text": "@Override\n\tpublic void adim1() {\n\n\t}", "title": "" }, { "docid": "99e7e966c51a5579d91ee2abe7cf310c", "score": "0.581261", "text": "public abstract String method_5963();", "title": "" }, { "docid": "fcf4355a5feab36e48ce9ed6310aed4a", "score": "0.58115387", "text": "public abstract void mo9806E();", "title": "" }, { "docid": "80d20df1cc75d8fa96c12c49a757fc43", "score": "0.5803296", "text": "@Override\n\tprotected void getExras() {\n\t\t\n\t}", "title": "" }, { "docid": "07ba03acf45e22025607c46e0c965739", "score": "0.58009005", "text": "@Override\r\n\tpublic void preparar() {\n\t}", "title": "" }, { "docid": "10ead2e988bf977cb8edb2bacf974891", "score": "0.57998693", "text": "@Override\n\tprotected void init() {\n\t\t\n\t}", "title": "" }, { "docid": "e2e5635edb032da8328081619452900c", "score": "0.5797291", "text": "public final void mo1370a() {\n }", "title": "" }, { "docid": "19c2c93e7e91bdee5756bdb7665b3b20", "score": "0.5795444", "text": "public final void mo1370a() {\n }", "title": "" }, { "docid": "19c2c93e7e91bdee5756bdb7665b3b20", "score": "0.5795444", "text": "public final void mo1370a() {\n }", "title": "" }, { "docid": "eea1284dac4ca57b790a13dcd1ad6bff", "score": "0.5793246", "text": "@Override\n protected void ucitaj() {\n //only because of 'extands rule'\n }", "title": "" }, { "docid": "94f32cdbe8afc400e05efbdb8d78c591", "score": "0.5788001", "text": "@Override\r\n\tpublic void borc_hesapla() {\n\t\t\r\n\t}", "title": "" }, { "docid": "70c63b539d1b6f883ad13008fbcaa6ce", "score": "0.57857376", "text": "@Override\n\tpublic void fiy(){\n\t\t\n\t}", "title": "" }, { "docid": "b2858312446172fa25a799c5367d2043", "score": "0.5778409", "text": "Smelting(){\r\n\r\n\t\t}", "title": "" }, { "docid": "ca0f8abf87da828759949669513069e2", "score": "0.5774387", "text": "protected abstract void mo3672Q();", "title": "" }, { "docid": "520726c6e86a7048d95ebf0259f453e2", "score": "0.57737494", "text": "private void passTest2() {\n\t\t\r\n\t}", "title": "" }, { "docid": "612accb7603daceb246bf02b9872e860", "score": "0.5768433", "text": "@Override\n\t\tpublic void What_Happens()\n\t\t{\n\t\t}", "title": "" }, { "docid": "6fb0baa29fbc505f76c3812011987fe0", "score": "0.57649136", "text": "public void prepareForUse() {\n\t\t\n\t}", "title": "" }, { "docid": "4b90c8cb6b13a1b8002cb41ddec0b0e8", "score": "0.57586664", "text": "public boolean method_2453() {\r\n return false;\r\n }", "title": "" }, { "docid": "f6eefba7423a057f1ba2cf5cd66d1f4e", "score": "0.5740621", "text": "public void buggyMethod5() {\n\t}", "title": "" }, { "docid": "d04e2b419d4cd19da0b67cd00d095d6a", "score": "0.5738515", "text": "public final void mo103164a() {\n }", "title": "" }, { "docid": "cceb242d0670eb1df248c7c9a40c066f", "score": "0.5737723", "text": "public boolean method_2434() {\r\n return false;\r\n }", "title": "" }, { "docid": "aeeb535b64abe2a1f23881b7a7733a2f", "score": "0.5734665", "text": "private static void first() {\n\t\t\r\n\t}", "title": "" }, { "docid": "b50b5e630b3d00009508740cd63af71e", "score": "0.57215583", "text": "public void mo1322b() {\n }", "title": "" }, { "docid": "35d389acedf7d3b5f7da38b2da889aab", "score": "0.572054", "text": "@Override\n public void fastrun() {\n\n }", "title": "" }, { "docid": "af94f9ddfa4b0518e1f432b674b4b231", "score": "0.57134783", "text": "public abstract void mo24447j();", "title": "" }, { "docid": "29cde3f10dab87cebafdd9412ef4b29f", "score": "0.5712501", "text": "@Override\r\n\tpublic void embala() {\n\t\t\r\n\t}", "title": "" }, { "docid": "8bf8511f65e0c2b04c8bd3242cfd3d0d", "score": "0.5711222", "text": "public void mo25201a() {\n }", "title": "" }, { "docid": "9808ba3c113b79c3677f2c08c09e60a1", "score": "0.5704868", "text": "@Override\n\tpublic void resert() {\n\t\t\n\t}", "title": "" }, { "docid": "34c408689db2a9ea75f3027230c404bf", "score": "0.5703876", "text": "@Override\n\tprotected void checkRep() {\n\t}", "title": "" }, { "docid": "008853730955844e1c58a16c3d0030ce", "score": "0.5701674", "text": "@Override\n\tprotected void prepare() {\n\n\t}", "title": "" }, { "docid": "52a71c3a8d6dc0f5cb041fcac892b129", "score": "0.5698445", "text": "@Override\n protected void processLogic() {\n\n }", "title": "" }, { "docid": "52a71c3a8d6dc0f5cb041fcac892b129", "score": "0.5698445", "text": "@Override\n protected void processLogic() {\n\n }", "title": "" }, { "docid": "b1e9f0ba845b58f95beb9fced2e8bb75", "score": "0.56944937", "text": "@Override\n\tpublic void adim3() {\n\n\t}", "title": "" }, { "docid": "584bef75117b545545b1abf246235208", "score": "0.5692778", "text": "public void prepareForReplace() {\n/* 688 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "title": "" }, { "docid": "8105b0f1b5128920be086988c381b6c5", "score": "0.5692106", "text": "public void mo630a() {\n }", "title": "" }, { "docid": "1f4be789b917e806c0c0d6e547dd0d0e", "score": "0.5691767", "text": "private void prepare()\n {\n }", "title": "" }, { "docid": "8a943c7eb6ecab7b9820ca0baa1d60dc", "score": "0.56912565", "text": "@Override\n\tvoid dibujar() {\n\n\t}", "title": "" }, { "docid": "dab8499315ad63a1e8bc88b9ee1bb825", "score": "0.56895113", "text": "@Override\r\n\tpublic void BB() {\n\t\t\r\n\t}", "title": "" }, { "docid": "0c1baa66e57a742b19c8ef24f031c945", "score": "0.56853867", "text": "private Composer()\t{ super();\t\t}", "title": "" }, { "docid": "a4989599379770ff3e50b4395d11e915", "score": "0.5682523", "text": "@Override\n\tpublic void method8() {\n\n\t}", "title": "" }, { "docid": "0f7672ee5ac14b05f31da4e1e34d7b49", "score": "0.56805813", "text": "@Override\r\n\tpublic void test8() {\r\n\t\t// TODO Auto-generated method stub\r\n\t\t\r\n\t}", "title": "" } ]
ed33c9f8c44e6999943d004f8cd8aca6
Log a message with the WARN level including the stack trace of the Throwable t passed as parameter.
[ { "docid": "d35cd14bd7f0409512728a2cfae675b3", "score": "0.75315136", "text": "public void warn(Throwable t) {\n\t\tthis.logger.warn(\"\", t);\n\t}", "title": "" } ]
[ { "docid": "0ef365efc0eeed8ae58d55da7446cdff", "score": "0.79538864", "text": "public static void warn(String message, Throwable t) {\n\t\tcheck();\n\t\tinstance.message(\"[W] \" + message, Level.WARN, t);\n\t}", "title": "" }, { "docid": "6370da2b161bbb78385f5a83e511a597", "score": "0.77290076", "text": "public void warn( Object message, Throwable t );", "title": "" }, { "docid": "9e4d410356c7cb3abd8cc1247fbe95e0", "score": "0.7676008", "text": "public void warn(Object message, Throwable t) {\n\t\tthis.logger.warn(message, t);\n\t}", "title": "" }, { "docid": "d3f7b6f053b604c9eefb159b43c7d5f7", "score": "0.767469", "text": "void warn(Object message, Throwable t);", "title": "" }, { "docid": "c409c29f54a226214f81fb6751f12d1b", "score": "0.74618036", "text": "public final void warn(Object message, Throwable t) {\n\n if (isLevelEnabled(MemoryLog.LOG_LEVEL_WARN)) {\n log(MemoryLog.LOG_LEVEL_WARN, message, t);\n }\n }", "title": "" }, { "docid": "05f7be24b8c8b8ef60fc83abe2dd5bcf", "score": "0.7304953", "text": "public void warn(Object message, Throwable t) {\n/* 173 */ if (message != null) {\n/* 174 */ getLogger().warn(String.valueOf(message), t);\n/* */ }\n/* */ }", "title": "" }, { "docid": "f58798558b38b27476412de67858322e", "score": "0.712276", "text": "@Override\r\n\tpublic void warn(Object message, Throwable t) {\n\t\t\r\n\t}", "title": "" }, { "docid": "e7c159f5db52349a2bbbbeea2122ae15", "score": "0.7014439", "text": "public void warn(Object caller, Object message, Throwable t);", "title": "" }, { "docid": "9187655397ba53143bb86722521008cd", "score": "0.68604285", "text": "public void warning(String message, Throwable th);", "title": "" }, { "docid": "daafc4a7ca8f1395f8d27f5aaa29bc48", "score": "0.684458", "text": "void warn(Object message, Throwable t, String location, int line, int column);", "title": "" }, { "docid": "65c0deff1ca291f7fc72059bffc231ae", "score": "0.6627065", "text": "void warn(Object message, Throwable t, String location, int line, int column, Object... arguments);", "title": "" }, { "docid": "d4d1a6e30b70db1ac682fcb6c07aa885", "score": "0.6603043", "text": "@Override\n public void warn(String msg, Throwable t) {\n m_delegate.warn(msg, t);\n }", "title": "" }, { "docid": "c0325dd3096b6b845f86fbb266e07b16", "score": "0.6390526", "text": "public static void warn(Throwable throwable) {\n logger.log(Level.WARNING, throwable.getMessage(), throwable);\n }", "title": "" }, { "docid": "d932ba2beaf99a4cce72e3a2b6933b12", "score": "0.6217018", "text": "public void warn( Object message );", "title": "" }, { "docid": "06a00828bec848e0597348ed9ab9dc0c", "score": "0.61995554", "text": "public static void warn(String module, String message) {\n\tprintln(module, Trace.WARN, message);\n }", "title": "" }, { "docid": "408dc9ed0eab866d4f2ec757de0343ae", "score": "0.61776614", "text": "public static void w(String tag, String msg, Throwable t) {\n Log.w(MODULE_NAME, tag + \", \" + msg, t);\n }", "title": "" }, { "docid": "1be385e68f6279611ca3e33770f5e284", "score": "0.6175386", "text": "public static void warn(String message) {\n\t\tcheck();\n\t\tinstance.message(\"[W] \" + message, Level.WARN);\n\t}", "title": "" }, { "docid": "4e31a613a48a40ba4b6ced8a609e64f7", "score": "0.61333203", "text": "void warn(Object message);", "title": "" }, { "docid": "d81c02dfaa0c624579256a11f59e5189", "score": "0.61033136", "text": "public void logWarn(String msg)\n{\n\tExpojoFoundation.sLog(ExpojoFoundation.LT_WARN, msg);\n}", "title": "" }, { "docid": "f3995177220a0cb08b428f7ec853c9e7", "score": "0.60921", "text": "public void warn(Object message) {\n/* 160 */ if (message != null) {\n/* 161 */ getLogger().warn(String.valueOf(message));\n/* */ }\n/* */ }", "title": "" }, { "docid": "3d3848536ca634712cd3a933fb851c28", "score": "0.60486436", "text": "public void warn(String message) {\r\n\t\twriter.println(timeStamper.format(new Date()) + \" WARN \" + message);\r\n\t}", "title": "" }, { "docid": "2832f0001ce825faa7a90cfa8579b74b", "score": "0.60252863", "text": "protected void logWarn(final Exception ex) {\n // Deliberately do not use LOG4J or Commons Logging to avoid dependencies\n System.out.println( \"WARN: Exception: \" + ex );\n ex.printStackTrace();\n }", "title": "" }, { "docid": "dd29315a3fa3c099941c865e6ffb5813", "score": "0.5978875", "text": "public static void w(Throwable t, @NonNull String message, Object... args) {\n }", "title": "" }, { "docid": "a4a11b5b6f3ddddef4e6bf794e712113", "score": "0.5977276", "text": "public void warn(Exception e) {\n\t\tlogger.warn(e);\n\t}", "title": "" }, { "docid": "71043acd93aad3fd67bd9410507d657d", "score": "0.5965029", "text": "void w(String msg, Throwable t);", "title": "" }, { "docid": "cc2338fa383ca58f7a3dfb3e368adcb4", "score": "0.59611154", "text": "public void warn(Object caller, Object message);", "title": "" }, { "docid": "05008a4bae21b51130ddfcf09b6601f5", "score": "0.59565246", "text": "void log(int level, Object message, Throwable t);", "title": "" }, { "docid": "f22379feddfc858e20f2e9a53e501ed4", "score": "0.5941424", "text": "public void warn (String msg,RootException ex) {\n if (SharkEngineManager.getInstance().getLoggingManager() != null) {\n try {\n SharkEngineManager.getInstance().getLoggingManager().warn(msg, ex);\n }\n catch (Exception e){\n System.err.println(\"Error in logging - errMsg=\"+e.getMessage());\n }\n }\n }", "title": "" }, { "docid": "85863f11b5cf5648b70b3f61555d5af9", "score": "0.5913393", "text": "void logWarning(String text);", "title": "" }, { "docid": "76ad7d38c8f2618dd77b3e4022711698", "score": "0.58691996", "text": "public static void warn(String message) {\r\n\r\n\t Log.warn(message);\r\n\t}", "title": "" }, { "docid": "165be2bad161b3259b515ce744cf0750", "score": "0.58606374", "text": "public static void w(Throwable t) {\n }", "title": "" }, { "docid": "b088fcd79e10228b7f1243fcf826888f", "score": "0.58561516", "text": "public void warn(String s) {\n\t\tlogger.warn(s);\n\t}", "title": "" }, { "docid": "c3a5f828d99f496588c69323f043415b", "score": "0.58545136", "text": "public void logWarn(String message) {\n printResponse(\"[WARNING]: \" + message);\n }", "title": "" }, { "docid": "9652fb8a9d10ce792d1035f5f203a101", "score": "0.5839194", "text": "public void warn(String message) {\n\n\t\tlogger.log(Level.WARN, message);\n\t}", "title": "" }, { "docid": "222174a50db40315af9472d5b0411943", "score": "0.58327544", "text": "public void logWarn(String methodName, Object object, Throwable throwable) {\r\n\t\tif (isWarnEnabled()) {\r\n\t\t\tLOGGER.warn(logFormatMethod(methodName, object), throwable);\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "88ed8cd3ca98570dd983100fb9ed083d", "score": "0.58322465", "text": "public void warn(Object message) {\n\t\tthis.logger.warn(message);\n\t}", "title": "" }, { "docid": "bb8f74de0740733e990d2980cca51c03", "score": "0.5825667", "text": "public void logWarningMessage(String ctx, Object param) {\n log(SessionLog.WARNING, ctx, new Object[] { param }); \n }", "title": "" }, { "docid": "d377a9aabc5ea4153004597567eeb221", "score": "0.5756975", "text": "public void w(String message)\n {\n Logger log = Logger.getLogger(this.clazz);\n log.warn(format_msg(message));\n }", "title": "" }, { "docid": "3497ebdf2a8b75aced0bf37b105c5dd4", "score": "0.57525355", "text": "public static void warn(Object ln) {\n Client.println(\"WARNING: \" + ln);\n }", "title": "" }, { "docid": "2d4daa59c2bb6fab12473697cf54c23f", "score": "0.5745892", "text": "public static void wtf(Throwable t) {\n }", "title": "" }, { "docid": "f532f56c2f00d0af65ebcd04b2e1af51", "score": "0.5728357", "text": "private void message(String message, Level l, Throwable t) {\n\t\tmessage(message, l, this.visibility, t);\n\t}", "title": "" }, { "docid": "1d71a956807fce9113916ba7a45a8947", "score": "0.57162005", "text": "public void warn(String message, Object... params) throws IOException {\n\t\tcLogger.write(getLogEntry(LEVEL_WARN, message, params));\n\t\tcLogger.flush();\n\t}", "title": "" }, { "docid": "3ce2c47b5a05cce13ce31df3461247d0", "score": "0.570339", "text": "public static void wtf(Throwable t, @NonNull String message, Object... args) {\n }", "title": "" }, { "docid": "a41555f98ceadfad5115c71f91ee44bc", "score": "0.56802243", "text": "public void warn(String message) {\n fireMessageLogged(message, BuildEvent.WARN);\n }", "title": "" }, { "docid": "7ea4783b530afe28fef8048ef29b0bfb", "score": "0.5656895", "text": "public void logWarn(String message, String warningGroup, String indent) throws Exception {\n // Initialize or increment warning count for this particular warning group\n if (!warningCounts.containsKey(warningGroup)) {\n warningCounts.put(warningGroup, 0);\n } else {\n warningCounts.put(warningGroup, warningCounts.get(warningGroup) + 1);\n }\n\n // If we have fired less than 100 of this type of warning, send the warning\n // as-is\n if (warningCounts.get(warningGroup) <= 100) {\n logWarn(message, indent);\n }\n // If we have fired 100 of this type of warning, send a message that we\n // won't be firing any more of this type\n else if (warningCounts.get(warningGroup) == 101) {\n logWarn(\"Limit of 100 \" + warningGroup\n + \" warnings has been reached. No further warnings will be displayed in the log.\", indent);\n } else {\n // Otherwise do nothing\n }\n }", "title": "" }, { "docid": "42b27b0ef6934e8519a1aac1a954a163", "score": "0.56226355", "text": "@Override\r\n\tpublic void warn(Object message) {\n\t\t\r\n\t}", "title": "" }, { "docid": "bc95ff617c4ccd83b66873666286b02a", "score": "0.5614736", "text": "public void logWarning(String msg)\n //----------------------------------------------------------------\n {\n this.put(LoggingLevel.WARNING, msg);\n return;\n }", "title": "" }, { "docid": "582029dad543419b2ea516e2a51f321a", "score": "0.5610873", "text": "public void logWarnAndUpdate(String line, String warningMessage)\n throws Exception {\n logWarn(\n warningMessage + \" Could not process the following line:\\n\\t\" + line);\n updateProgress();\n }", "title": "" }, { "docid": "05eaec0368da36ff522b90aed07ca3c3", "score": "0.55844456", "text": "@Override\n\tpublic void warn(Marker arg0, String arg1, Throwable arg2) {\n\t\t\n\t}", "title": "" }, { "docid": "35538458ebde417014f67406c04edb9e", "score": "0.5582978", "text": "private void exceptionAfterWarnMessageWithPlaceholder(final Exception e) {log().warning(\"Log exception after message {}\", new Object(), e);}", "title": "" }, { "docid": "2ed2d1d0d5287d3423fb9c864f1487d7", "score": "0.5578048", "text": "public void logWarning(String str);", "title": "" }, { "docid": "8ad777791ffb14e624c7cc3eef434744", "score": "0.5567644", "text": "public static void warn(String sLogRow) {\n\t\tlog(sLogRow, Level.WARN);\n\t\t\n\t}", "title": "" }, { "docid": "e604b82634a81bb2e4d7ea818ed547fa", "score": "0.55631024", "text": "public static void logWarning(String id, String message) {\n logWarning(id, message, null);\n }", "title": "" }, { "docid": "6332be5bf5c17433cb4ce049e6b3e0d5", "score": "0.55624545", "text": "public void log(int level, String str, Throwable t);", "title": "" }, { "docid": "baae10cc6b2e77d938711d772c787a7e", "score": "0.55570805", "text": "public final void warn(Object message) {\n\n if (isLevelEnabled(MemoryLog.LOG_LEVEL_WARN)) {\n log(MemoryLog.LOG_LEVEL_WARN, message, null);\n }\n }", "title": "" }, { "docid": "8c098334168dd0a8022636ed1b5fd47b", "score": "0.5526671", "text": "public void warn (String channel,String msg,RootException ex) {\n if (SharkEngineManager.getInstance().getLoggingManager() != null) {\n try {\n SharkEngineManager.getInstance().getLoggingManager().warn(channel, msg, ex);\n }\n catch (Exception e){\n System.err.println(\"Error in logging - errMsg=\"+e.getMessage());\n }\n }\n }", "title": "" }, { "docid": "68c585af16166f6adc9b7aeebd81c7df", "score": "0.5519005", "text": "public static void logWarnOnly(String strWarnMsg) {\n log.warn(\"* \" + strWarnMsg);\n }", "title": "" }, { "docid": "87ef38d1fd22b2fd1ace9c484fd421ba", "score": "0.55128574", "text": "private void warn(String msg) {\n //log.warn(msg);\n System.err.println(msg);\n }", "title": "" }, { "docid": "9178c27376940d93cd39d06a87cb4143", "score": "0.5511143", "text": "public void logWarnAndUpdate(String line, String warningMessage,\n String warningGroup) throws Exception {\n logWarn(\n warningMessage + \" Could not process the following line:\\n\\t\" + line,\n warningGroup, \"\");\n updateProgress();\n }", "title": "" }, { "docid": "acea3e552f0dc06e44a4ed8b60fa1ffa", "score": "0.5509489", "text": "public void logWarningMessage(String ctx, Object param1, Object param2) {\n log(SessionLog.WARNING, ctx, new Object[] { param1, param2 }); \n }", "title": "" }, { "docid": "6e376630805b8c735572266af3ec19e5", "score": "0.55067", "text": "public static void logW(String method, String msg) {\n\t\tLogUtils.logWarn(mcontext, Activator.class, method, msg);\n\t}", "title": "" }, { "docid": "ef95d7a02879b2a013cb72e54ae0c834", "score": "0.54878336", "text": "public void logWarningMessage(String ctx, Object param1, Object param2, Object param3) {\n log(SessionLog.WARNING, ctx, new Object[] {param1, param2, param3});\n }", "title": "" }, { "docid": "044bc741fff9db9edaf82f36cc82f45e", "score": "0.5479481", "text": "public void warn(String string) {\n\t\tlogger.warn(string);\r\n\t}", "title": "" }, { "docid": "9b34b0ba90462e6f73dfce064be3f5fa", "score": "0.54768276", "text": "public static void warning(String message)\n\t{\n\t\tlogger = LogManager.getLogger(\"SimpleCore\");\n\t\tlogger.log(Level.WARN, message);\n\t}", "title": "" }, { "docid": "e0acb47dd90a413aa0d9e80f6bf2bafd", "score": "0.54715097", "text": "@Override\n public void auditWarn(Object msg) {\n defaultLog.warn(msg);\n if (synCtx.getServiceLog() != null) {\n synCtx.getServiceLog().warn(msg);\n }\n if (traceOn) {\n traceLog.warn(msg);\n }\n }", "title": "" }, { "docid": "1ebc923f24005e678306ebcd63179c0e", "score": "0.5470572", "text": "public static void w(String tag, Throwable t, Object... messages) {\n Timber.w(t, tag, messages);\n log(tag, null, messages);\n }", "title": "" }, { "docid": "ed69ba05dffee1413114bdcd63bdda70", "score": "0.5458945", "text": "public static synchronized void logStackTrace() {\n \tlogger.warn(getStackTrace());\n }", "title": "" }, { "docid": "eca63478e73cae14194d227690bd40ed", "score": "0.5437725", "text": "public static void warn(Object obj) {\n logger.log(Level.WARNING, obj.toString());\n }", "title": "" }, { "docid": "a7e8e97d84e01c430a00b6d850b3edd1", "score": "0.543574", "text": "@Override\r\n\tpublic void warn(String fmt, Object... args) {\n\t\t\r\n\t}", "title": "" }, { "docid": "ed2128babd93a2e6492fdb5345891cd6", "score": "0.543396", "text": "public void logFatal(String str, Throwable t);", "title": "" }, { "docid": "62987b5e3cbb6effc321567eca55c5f4", "score": "0.5420824", "text": "@Override\n\tpublic void logWarning(String msg) {\n\t\tif (logLevel.compareTo(LogLevel.WARNING) <= 0) {\n\t\t\tlogger.warning(msg);\n\t\t}\n\t}", "title": "" }, { "docid": "0d8d647b76ae16379af3f71d72d20637", "score": "0.5404197", "text": "void log(Level level, String aMessage, Throwable thrown);", "title": "" }, { "docid": "2233386410aacb6bca647a02f74308a7", "score": "0.5396705", "text": "public void logWarningMessage(String ctx, MetadataAccessor accessor) {\n log(SessionLog.WARNING, ctx, new Object[] { accessor.getJavaClass(), accessor.getAnnotatedElement() });\n }", "title": "" }, { "docid": "041da6db1d3b7815bbd983ed9cd34fdb", "score": "0.53871787", "text": "public synchronized void warn(Class<?> sender, Object object) {\n switch (loggingType) {\n case LOGGING_TYPE_LOG4J:\n// if (isSpecialLoggerToUse(sender)) {\n// org.apache.log4j.Category specialLogger = org.apache.log4j.Category.getInstance(sender);\n// specialLogger.warn(object);\n// } else {\n// getInstanceLog4jLogger().warn(object);\n// }\n break;\n default:\n String message = object.toString();\n if (sender != null) message += \" (Error from \" + sender.getName() + \" at \" + getCurrTime() + \")\";\n output(message);\n (new Exception(\"Forced stack trace:\")).printStackTrace();\n break;\n }\n }", "title": "" }, { "docid": "775f413cbd10c036914eea2927ed8e71", "score": "0.5384433", "text": "private void exceptionAfterWarnMessageWithExceptionAndObjPlaceholder(final Exception e) {log().warning(\"Log exception after message {} {}\", new Object(), e);}", "title": "" }, { "docid": "3b4c1562df7c01663495f5fb1a894aa7", "score": "0.53641844", "text": "public void logWarn(String methodName, Object object) {\r\n\t\tif (isWarnEnabled()) {\r\n\t\t\tLOGGER.warn(logFormatMethod(methodName, object));\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "56e3ec2e255e1466160ff092e2e1fa83", "score": "0.53464603", "text": "public void logWarningMessage(String ctx, Object param1, Object param2, Object param3, Object param4, Object param5) {\n log(SessionLog.WARNING, ctx, new Object[] {param1, param2, param3, param4, param5});\n }", "title": "" }, { "docid": "cb77aafcc80bd6b3f989c69d1b7443d6", "score": "0.53423", "text": "public static void warning(String message) {\n\t\tlog(Level.WARNING, message);\n\t}", "title": "" }, { "docid": "e1f16f8ea5ebab5450003bfe3b8ebbe1", "score": "0.5337562", "text": "public void message(String message, Throwable th);", "title": "" }, { "docid": "3103322323ec28700212745d4fd7aea3", "score": "0.5323144", "text": "public void warn (String msg) {\n if (SharkEngineManager.getInstance().getLoggingManager() != null) {\n try {\n SharkEngineManager.getInstance().getLoggingManager().warn(msg);\n }\n catch (Exception e){\n System.err.println(\"Error in logging - errMsg=\"+e.getMessage());\n }\n }\n }", "title": "" }, { "docid": "f93d860ecc49cdff034fd667b6b5f6d0", "score": "0.5314625", "text": "public synchronized void warn(Object object) {\n warn(null, object);\n }", "title": "" }, { "docid": "b06d5b7bddbac6cc3d901645536d1779", "score": "0.530738", "text": "public static void warning(String msg) {\n \t\tlog(Level.WARNING, msg, null);\n \t}", "title": "" }, { "docid": "8c3dbeb0aaaa02cd1fc5b6c763cc6651", "score": "0.52966946", "text": "public void warn(Exception e, String exceptionCnt) {\n\t\tlogger.warn(e.getMessage(), new Throwable(logger.getName() + \"_\" + exceptionCnt));\n\t}", "title": "" }, { "docid": "ee56d407db7fe97f4749d7d1c8c1f78b", "score": "0.5280714", "text": "public static void warn(String msg) {\n logger.log(Level.WARNING, msg);\n }", "title": "" }, { "docid": "5866d9c3890ff36622342b5d6e3d2334", "score": "0.525523", "text": "public void warning (Throwable ex) {\n warning(ex, null);\n }", "title": "" }, { "docid": "21e29a9b532e1202d944e957e10b652b", "score": "0.5253566", "text": "protected static void warning(String message)\n {\n log.warning(message);\n }", "title": "" }, { "docid": "8bce42ca382da7781488fe1122b89d97", "score": "0.52491677", "text": "public static void logWarningRB(String key) {\n // Retrieve the waring message\n String message = OStrings.getString(key);\n \n // Log it\n logWarning(key, message, null);\n }", "title": "" }, { "docid": "3fa972375738714e87c043d2e20a9bc4", "score": "0.5218872", "text": "public static synchronized void logStackTrace(String msg) {\n \tlogger.warn(msg + '\\n' + getStackTrace());\n }", "title": "" }, { "docid": "e80eca7dd28fc1a89d1ff15d9d0a3dae", "score": "0.5208433", "text": "public static void logWarning(String id, String message, Object[] parameters) {\n logIdentifiableMessage(\n StaticUtils.format(OStrings.getString(\"LOG_WARNING_ID\"),\n new Object[] {id}),\n message,\n parameters);\n }", "title": "" }, { "docid": "b9016a75cc9f11adac8c5fa5cd18d869", "score": "0.5202908", "text": "static private void printWarnings(Session session, SQLWarning w) {\n \n StringBuilder sb = new StringBuilder();\n String lineSep = System.getProperty(\"line.separator\");\n boolean isError = false;\n \n while (w != null) {\n \n String state = w.getSQLState();\n int code = w.getErrorCode();\n \n /*\n * DB2 has this annoying warning:\n * \n * WARN [State: ][Code: 0]: Statement processing was successful\n * \n * or this one\n * \n * WARN [State: 00000][Code: 0]: Statement processing was successful\n * \n * So for those, we completely discard them as if they never happened.\n */\n if (! ((isEmptyState(state) && code == 0)\n || \"00000\".equals(state) && code == 0)) {\n \n /*\n * I don't know if this will be true of all JDBC drivers, \n * but for certain types of messages I don't like to\n * show the WARN and error code components. \n */\n if (state != null \n && \"01000\".equals(state) == false) {\n \n isError = true;\n \n sb.append(\"WARN [State: \");\n sb.append(w.getSQLState());\n sb.append(\"][Code: \");\n sb.append(w.getErrorCode() + \"]: \");\n }\n \n sb.append(w.getMessage());\n sb.append(lineSep);\n }\n \n w = w.getNextWarning();\n }\n \n if (isError) {\n \n session.err.print(sb.toString());\n session.err.flush();\n }\n else {\n \n session.out.print(sb.toString());\n session.out.flush();\n }\n \n }", "title": "" }, { "docid": "0e09d3a774c2d074a33c03e617113692", "score": "0.51735526", "text": "public static void warn(LogType logType, String msg) {\n var record = new LogRecord(null, null,\n LogLevel.WARN,\n logType,\n currentTimeMillis(),\n msg,\n null);\n logDispatcher.publish(record);\n }", "title": "" }, { "docid": "0a50ec19d4cfd269ac2bdb39fcce1394", "score": "0.5164012", "text": "public void trace(Object message, Throwable t) {\n\t\tthis.logger.trace(message, t);\n\t}", "title": "" }, { "docid": "780527251ad88d8ee85286eb4d8195a3", "score": "0.5136889", "text": "void log(int level, Object message, Throwable t, String location, int line, int column);", "title": "" }, { "docid": "656df9d49c0baeffb25a977dcba5e98f", "score": "0.51255214", "text": "public static void logWarningRB(String key, Object[] parameters) {\n // Retrieve the warning message\n String message = OStrings.getString(key);\n \n // Log it\n logWarning(key, message, parameters);\n }", "title": "" }, { "docid": "55318bfadc148d5893526603ca6fc9c1", "score": "0.5121451", "text": "@Override\n public void warning(String message, long line, long col) {\n logWarning(message, line, col) ;\n throw new RiotException(fmtMessage(message, line, col)) ;\n }", "title": "" }, { "docid": "96001a9c70c342265e3eb55df4cd98f1", "score": "0.51048845", "text": "public static void warning(String msgId, Throwable ex) {\n getLogger().log(Level.WARNING, getMessage(msgId, false), ex);\n }", "title": "" }, { "docid": "1315ea3dfeef5e3b2ec697d7950a5c65", "score": "0.5092724", "text": "public static void verboseWarning(String message)\n\t{\n\t\tlogger = LogManager.getLogger(\"SimpleCore\");\n\t\tif(APISettings.enableVerboseLogging)\n\t\t{\n\t\t\tlogger.log(Level.WARN, message);\n\t\t}\n\t}", "title": "" }, { "docid": "859752ff05002476596ec6205fd0e49c", "score": "0.5067615", "text": "protected void warn(String message) {\n logger.warn(project.getName() + \":\" + message);\n }", "title": "" }, { "docid": "64dce9f8aca48f948f17c6ead7646df9", "score": "0.50500476", "text": "public void info(Object message, Throwable t) {\n/* 148 */ if (message != null) {\n/* 149 */ getLogger().info(String.valueOf(message), t);\n/* */ }\n/* */ }", "title": "" }, { "docid": "6463014ec316c4798a18eaf9117f77e0", "score": "0.50415385", "text": "@Override\r\n\t\tpublic void errmsg(Exception e) {\n\t\t\tif (e instanceof Warning) {\r\n\t\t\t\tnotice(e.getMessage());\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\r\n\t\t\tlog.severe(e.toString());\r\n\t\t\te.printStackTrace();\r\n\r\n\t\t}", "title": "" } ]
518bf5364cda3c6202a1a392996f93d1
Inflate the menu; this adds items to the action bar if it is present.
[ { "docid": "8f4771c4933e9bd13049ef173c8e2e05", "score": "0.0", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu_enter_group, menu);\n return true;\n }", "title": "" } ]
[ { "docid": "733ed274ccd37b1430acd3149250d7f2", "score": "0.72144043", "text": "protected abstract void createActionBarMenu(Menu menu);", "title": "" }, { "docid": "d74efebd6fe79f46209a7e8cb2c52d89", "score": "0.718687", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater mif= getMenuInflater();\n\t\tmif.inflate(R.menu.main_activity_action, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "title": "" }, { "docid": "10935427080e4c3509a83b107b08479c", "score": "0.7162967", "text": "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\r\n\t\tinflater.inflate(R.menu.activity_actions, menu);\r\n\t\treturn super.onCreateOptionsMenu(menu);\r\n\t}", "title": "" }, { "docid": "6e13d9474841861d5fde25129e91e1b6", "score": "0.71303964", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.action_bar, menu);\n menuItems = new Vector<MenuItem>();\n for(int i=0; i<menu.size(); i++)\n menuItems.add(menu.getItem(i));\n return super.onCreateOptionsMenu(menu);\n }", "title": "" }, { "docid": "26cf0592201a62f48b2b5735b87512bb", "score": "0.71008736", "text": "@Override\r\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater mi) {\n\t\tsuper.getActivity().getMenuInflater().inflate(R.menu.rmd1_actionbar, menu);\r\n\t\treturn;\r\n\t}", "title": "" }, { "docid": "ab9e7adb4eb9ad25ad0dec991db1df9b", "score": "0.70860714", "text": "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n inflater.inflate(R.menu.menu_actions, menu);\n }", "title": "" }, { "docid": "9751d75062d98db6d4ac1689f699a8ca", "score": "0.70811504", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n\n MenuInflater menuInflater = getMenuInflater(); //\"MenuInflater\" is a service which coverts xml file into java file\n menuInflater.inflate(R.menu.menu_item, menu); //\"Inflate\" method turns the xml file into java file\n\n return super.onCreateOptionsMenu(menu);\n }", "title": "" }, { "docid": "a66dec49996fb0dc84fe5c4bbba1113c", "score": "0.706462", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.activity_main_action_bar, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "title": "" }, { "docid": "d4ad2c8f550bcacb657b52be24129338", "score": "0.70628506", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.bookexchange_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }", "title": "" }, { "docid": "82b17ede9c401cbf2d9cb7145809bb4e", "score": "0.6981996", "text": "@Override\n \tpublic boolean onCreateOptionsMenu(Menu menu) {\n \t\tgetMenuInflater().inflate(getMenuId(), menu);\n \t\treturn true;\n \t}", "title": "" }, { "docid": "17b7806a10d3193f41120b07cfba2ad9", "score": "0.6972256", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t MenuInflater inflater = getMenuInflater();\n\t inflater.inflate(R.menu.main_activity_actions, menu);\n\t return super.onCreateOptionsMenu(menu);\n\t}", "title": "" }, { "docid": "dad954c492e9578c05a7d124918cc522", "score": "0.69712454", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(android.view.Menu menu) {\n\t\tsuper.onCreateOptionsMenu(menu);\n\t\tMenuInflater blowup = getMenuInflater();\n\t\tblowup.inflate(R.menu.cool_menu, menu);\n\t\treturn true;\n\t}", "title": "" }, { "docid": "ef0b690f9f837c40bf9c03e7c6db79bc", "score": "0.69679284", "text": "@Override\n \n public boolean onCreateOptionsMenu(Menu menu) {\n \tMenuInflater inflater=getMenuInflater();\n \tinflater.inflate(R.menu.main, menu);\n \treturn true;\n }", "title": "" }, { "docid": "d9f8dccdf948d8ba404dd4ab8dcf4fab", "score": "0.6959808", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater=getMenuInflater();\n inflater.inflate(R.menu.bar, menu);\n return true;\n }", "title": "" }, { "docid": "612e371d2e10fc2437fdc0014626bdc8", "score": "0.69526476", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.action_bar, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "title": "" }, { "docid": "db7a8a75ef8f28cd09a7f1212888ccd6", "score": "0.69389814", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.actionbar, menu);\n return super.onCreateOptionsMenu(menu);\n }", "title": "" }, { "docid": "30a38e433eff0500af3e40ae25eb1e90", "score": "0.6936709", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater(); //read XML\n inflater.inflate(R.menu.menu_main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "title": "" }, { "docid": "26233eaccfdcdca78fe5609b00900bea", "score": "0.69341195", "text": "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.item, menu);\r\n\t\treturn true;\r\n\t}", "title": "" }, { "docid": "2fa495adebd0b136e9d8b1992bb206ae", "score": "0.6926427", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflator = new MenuInflater(this);\n\n\t\tinflator.inflate(R.menu.menu_main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "title": "" }, { "docid": "55089a24320455f31833f9b196a60d67", "score": "0.6923986", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.menu, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "title": "" }, { "docid": "47d16fa25d516c847da78250e2c606c7", "score": "0.6920704", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }", "title": "" }, { "docid": "47d16fa25d516c847da78250e2c606c7", "score": "0.6920704", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }", "title": "" }, { "docid": "47d16fa25d516c847da78250e2c606c7", "score": "0.6920704", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }", "title": "" }, { "docid": "1d83610c579db7e70b66096c8400296e", "score": "0.6918256", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n // Used to instantiate XML-files in to Menu object\n MenuInflater inflater = getMenuInflater();\n // Inflates a layout from an XML resource file in to the specified Menu object\n inflater.inflate(R.menu.menu_filter, menu);\n // Call the original method in order to add default items to the menu (e.g., activity title)\n return super.onCreateOptionsMenu(menu);\n }", "title": "" }, { "docid": "509fae1ba18012276eddf232dcd6d282", "score": "0.69099927", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.action_bar, menu);\n return super.onCreateOptionsMenu(menu);\n }", "title": "" }, { "docid": "71ee9741daa32d89c202bb07897963b7", "score": "0.6907322", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t MenuInflater inflater = getMenuInflater();\n\t inflater.inflate(R.menu.action_menu_actions, menu);\n\t return super.onCreateOptionsMenu(menu);\n\t}", "title": "" }, { "docid": "7d793f4b0e2adaf09a0fc4413fc9c0b6", "score": "0.69069386", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getSupportMenuInflater();\n\t\tinflater.inflate(R.menu.bar, menu);\n\t\treturn true;\n\t}", "title": "" }, { "docid": "a77040795cea8e696b1e8441134ce0fb", "score": "0.6893401", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(android.view.Menu menu) {\n\t\tMenuInflater blowUp = getMenuInflater();\n\t\tblowUp.inflate(R.menu.menu, menu);\n\t\treturn true;\n\t\t\n\t\t\n\t}", "title": "" }, { "docid": "4344fce2950d1727eff04f3fc716431e", "score": "0.6883669", "text": "@Override\r\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\r\n inflater.inflate(R.menu.menu_actions, menu);\r\n return true;\r\n }", "title": "" }, { "docid": "25b4aeed789537c85f7cefe7f7afdb5c", "score": "0.6880949", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(android.view.Menu menu) \n\t{\n\t\tsuper.onCreateOptionsMenu(menu);\n\t\tMenuInflater showMenu = getMenuInflater();\n\t\tshowMenu.inflate(R.menu.coolmenu, menu);\n\t\treturn true;\n\t}", "title": "" }, { "docid": "079c63ea21d6ef680c1e85b3ebcecb43", "score": "0.6871807", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater(); // create the menu object\n inflater.inflate(R.menu.menu, menu); // places the menu object on the Action Bar\n return super.onCreateOptionsMenu(menu);\n }", "title": "" }, { "docid": "d3110920692368ad0cf17dbdee710f8e", "score": "0.68709964", "text": "@Override\r\n public boolean onCreateOptionsMenu(Menu menu) {\n \tMenuInflater inflater = getMenuInflater();\r\n inflater.inflate(R.menu.main, menu);\r\n return super.onCreateOptionsMenu(menu);\r\n }", "title": "" }, { "docid": "7c7f52bc85432234ee2050f101ef1659", "score": "0.6865924", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "title": "" }, { "docid": "e0b3de93651fc6a7c07974abe4e9be7b", "score": "0.68620986", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main, menu); //uses menu/main.xml <item> to populate\n return true;\n }", "title": "" }, { "docid": "91c400f80bd7e10f2e45afcf3fbbbe25", "score": "0.6846842", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu_action_bar, menu);\n return super.onCreateOptionsMenu(menu);\n }", "title": "" }, { "docid": "e87c0ff790b4661d5525389a62178c74", "score": "0.6838366", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(android.view.Menu menu) {\n\t\tsuper.onCreateOptionsMenu(menu);\n\t\tMenuInflater blowUp = getMenuInflater();\n\t\tblowUp.inflate(R.menu.abu, menu);\n\t\treturn true;\n\t}", "title": "" }, { "docid": "f3f99483d7680c473a58ebb2ae723d03", "score": "0.6833583", "text": "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t MenuInflater inflater = getMenuInflater();\r\n\t inflater.inflate(R.menu.actionbar_buttons, menu);\r\n\t return super.onCreateOptionsMenu(menu);\r\n\t}", "title": "" }, { "docid": "9fc1236265197429be53b5c76e3412c5", "score": "0.68276423", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.custom_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }", "title": "" }, { "docid": "f12c46be0ddd4b2c165259211773da88", "score": "0.6826485", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.actionbar, menu);\n\t\treturn true;\n\t}", "title": "" }, { "docid": "086a9f81e1e946a723e44bcc5f18bee9", "score": "0.68134886", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \t\n \tMenuInflater inflater = getMenuInflater();\n \t//inflater.inflate(R.menu.instruct, menu);\n \treturn super.onCreateOptionsMenu(menu); \n }", "title": "" }, { "docid": "02fb2928eba1bbda259a3b4a08c79625", "score": "0.6810375", "text": "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n myMenu = menu;\n inflater.inflate(R.menu.library_actionbar_menu, menu);\n super.onCreateOptionsMenu(menu, inflater);\n }", "title": "" }, { "docid": "67b5c39e8c1671fb7090462848f6c171", "score": "0.6808568", "text": "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater)\n {\n inflater.inflate(R.menu.main_menu, menu);\n }", "title": "" }, { "docid": "46adca4df6ff2afab0c51857a705262f", "score": "0.6788253", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main_action_bar, menu);\n\t\treturn true;\n\t}", "title": "" }, { "docid": "f5c7c9bf8072a91c4012134b65351239", "score": "0.67726165", "text": "@Override\n\tprotected void onFinishInflate() {\n\t\tmenuMainLayout = (LinearLayout) findViewById(R.id.menu_main);\n\t\tmenuAdd = (LinearLayout) findViewById(R.id.menu_add);\n\t\thomeItem = (MenuImageText) findViewById(R.id.menu_find);\n\t\tfriendItem = (MenuImageText) findViewById(R.id.menu_foucs);\n\t\tnotificationItem = (MenuImageText) findViewById(R.id.menu_idea);\n\t\tmeItem = (MenuImageText) findViewById(R.id.menu_me);\n\t\tif(menuItemMap==null){\n\t\t\tmenuItemMap = new SparseArray< MenuImageText>();\n\t\t}\n\t\tmenuItemMap.put(R.id.menu_find, homeItem);\n\t\tmenuItemMap.put(R.id.menu_foucs, friendItem);\n\t\tmenuItemMap.put(R.id.menu_idea, notificationItem);\n\t\tmenuItemMap.put(R.id.menu_me, meItem);\n\t\t\n\t\tsetItemOnClickListener();\n\t\tsuper.onFinishInflate();\n\t}", "title": "" }, { "docid": "8e05f25ff1d8e2764a2eb04df3ef194a", "score": "0.67722285", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main_action_bar, menu);\n return super.onCreateOptionsMenu(menu);\n }", "title": "" }, { "docid": "fa47024a22af7d0296db4f62a642e314", "score": "0.67659914", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n\n MenuInflater mi = getMenuInflater();\n mi.inflate(R.menu.menu, menu);\n\n return super.onCreateOptionsMenu(menu);\n }", "title": "" }, { "docid": "ca07d022cc38b3731ddf9c4eb4625f5b", "score": "0.67605925", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.menu, menu);\n\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "title": "" }, { "docid": "fe0dce1c1628a5833e59c80e63de1b51", "score": "0.6758887", "text": "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater){\n super.onCreateOptionsMenu(menu,inflater);\n }", "title": "" }, { "docid": "dabe09d5753d1a332674483b8f4b735e", "score": "0.6757365", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu_main, menu);\n\n return super.onCreateOptionsMenu(menu);\n }", "title": "" }, { "docid": "e54393e5052bfab3db8c33248853e2f4", "score": "0.67561066", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n super.onCreateOptionsMenu(menu);\n MenuInflater blow = getMenuInflater();\n blow.inflate(R.menu.cool_menu, menu);\n return true;\n }", "title": "" }, { "docid": "0fc248208daec4f2bc0183e95ae964b0", "score": "0.6748909", "text": "@Override\r\n public boolean onCreateOptionsMenu(Menu menu) {\n\tMenuInflater inflater = new MenuInflater(this);\r\n\tinflater.inflate(R.menu.newentrymenu, menu);\r\n\treturn true;\r\n }", "title": "" }, { "docid": "7e35f00badaf7c536b6ead1809aa7417", "score": "0.67474824", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater mif = getMenuInflater();\n mif.inflate(R.menu.menu_main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "title": "" }, { "docid": "1a5040961986790579a2561836607c99", "score": "0.67430365", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t MenuInflater inflater = getMenuInflater();\n\t\t inflater.inflate(R.menu.main, menu);\n\t\t return super.onCreateOptionsMenu(menu);\n\t\t \n\t}", "title": "" }, { "docid": "adf01a769b4daf552b9ba34a2264afc9", "score": "0.674206", "text": "@Override\n public boolean onCreateOptionsMenu (Menu menu)\n {\n MenuInflater infcrud = getMenuInflater();\n infcrud.inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "title": "" }, { "docid": "886b27184493827bad5e018c9da4602d", "score": "0.6735433", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu){\n //inflate out main activity menu\n getMenuInflater().inflate(R.menu.main_activity_menu, menu);\n return true;\n }", "title": "" }, { "docid": "7beece16a3151963d6658b28e9b28066", "score": "0.67266536", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "title": "" }, { "docid": "7beece16a3151963d6658b28e9b28066", "score": "0.67266536", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "title": "" }, { "docid": "c7493947c897364f851990c60edb6b6b", "score": "0.6723152", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu_bar, menu);\n return true;\n }", "title": "" }, { "docid": "dd103e116478446c6dd1e0d89630a08c", "score": "0.6718823", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t MenuInflater inflater = getMenuInflater();\n\t inflater.inflate(R.menu.main, menu);\n\t return super.onCreateOptionsMenu(menu);\n\t}", "title": "" }, { "docid": "c86de909dab405c150f3e9c8208f4d29", "score": "0.6715546", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.apli, menu);\n\t\treturn true;\n\t}", "title": "" }, { "docid": "18094f083a024d4bce3fad43b2784356", "score": "0.67115813", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) \n\t{\n\t\tsuper.onCreateOptionsMenu(menu);\n\t\tMenuInflater blowUp = getMenuInflater();\n\t\tblowUp.inflate(R.menu.navi_menu, menu);\n\t\treturn true;\n\t}", "title": "" }, { "docid": "a6fc94db9795d8ef3c8818a4f628e67e", "score": "0.6706655", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main_activity_actions, menu);\n\t\treturn true;\n\t}", "title": "" }, { "docid": "c9f4d204c67aaf868316473ab3fa51de", "score": "0.67034036", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.activity_content, menu);\n\t\treturn true;\n\t}", "title": "" }, { "docid": "90b147d6905fe9d27d67d16cf18bcd76", "score": "0.67016935", "text": "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n inflater.inflate(R.menu.menu_main, menu);\n }", "title": "" }, { "docid": "f226bd02fcf33fae93747e774780b37c", "score": "0.66995066", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu, menu);\n\n return super.onCreateOptionsMenu(menu);\n }", "title": "" }, { "docid": "94f2969ff10cf41dd269a5a66042b8bc", "score": "0.669467", "text": "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\n inflater.inflate(R.menu.pump_list, menu);\n }", "title": "" }, { "docid": "5dfb47742e1cc0be67054182b151e5d7", "score": "0.6687635", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.toolbar_actions, menu);\n return true;\n }", "title": "" }, { "docid": "b1631b737fc46ad9ef9203bd94535a01", "score": "0.66862255", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "title": "" }, { "docid": "72fb2abdc47dd588b3928cda925f2b68", "score": "0.66853106", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tsuper.onCreateOptionsMenu(menu);\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.menu, menu);\n\t\treturn true;\n\t}", "title": "" }, { "docid": "d626c5bf3b9c070fadd750c0d87f7b07", "score": "0.66848546", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater mMenuInflater = this.getMenuInflater();\n mMenuInflater.inflate(R.menu.menu_main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "title": "" }, { "docid": "284ded61b3589567041e41b1daefa4c6", "score": "0.6682092", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "title": "" }, { "docid": "d77639d0c4ba0f6ada042516a86ab15d", "score": "0.6681325", "text": "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu,inflater);\n inflater.inflate(R.menu.menu_main, menu);\n\n }", "title": "" }, { "docid": "7b0fca02bd33f3734134b78d1f9708f1", "score": "0.6681294", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.content, menu);\n\t\treturn true;\n\t}", "title": "" }, { "docid": "7ee4d3354128dce2dd12084886f2d8fa", "score": "0.6681048", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.the_menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "title": "" }, { "docid": "4cddb48b1da190800f3823cec5221b18", "score": "0.6678144", "text": "@Override\r\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\r\n\t\t\treturn true;\r\n\t\t}", "title": "" }, { "docid": "91eaad565ee030e2398f3437b3e7aed8", "score": "0.6676656", "text": "@Override\r\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main_activity_bar, menu);\r\n return true;\r\n }", "title": "" }, { "docid": "808dc73fe755517f63249f680b464a76", "score": "0.6663683", "text": "@Override \n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main, menu);//Menu Resource, Menu \n return true; \n }", "title": "" }, { "docid": "834f6c62845d947459df685b80dd2f2d", "score": "0.665943", "text": "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n }", "title": "" }, { "docid": "70e212d8b4845378d3a9e532d4a0eb7c", "score": "0.66576624", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.habit_list_activity_actions, menu);\n return true;\n }", "title": "" }, { "docid": "fb943d5ba681a6337ad73937a18145b1", "score": "0.6655769", "text": "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\r\n\t\tsuper.onCreateOptionsMenu(menu);\r\n\t\tMenuInflater inflater = getMenuInflater();\r\n\t\tinflater.inflate(R.menu.menu, menu);\r\n\t\treturn true;\r\n\r\n\t}", "title": "" }, { "docid": "43685f0ed938eb771fe2c754efb622fe", "score": "0.6655233", "text": "@Override \n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\treturn true;\n\t}", "title": "" }, { "docid": "3e8720a0ec0a7b29939158c5939793e8", "score": "0.6653341", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "title": "" }, { "docid": "b06a99e47c9dea1f8d38f1361dbadde9", "score": "0.6651822", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.menu, menu);\n\t\treturn true;\n\n\t}", "title": "" }, { "docid": "97bac3de8fe838efd8502ac4a02f6568", "score": "0.6650437", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu)\n {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.layout.main_menu, menu);\n return true;\n }", "title": "" }, { "docid": "292a02439925932e96ea0e88de208aaf", "score": "0.6646593", "text": "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n inflater.inflate(R.menu.activity_main_actions, menu);\n super.onCreateOptionsMenu(menu, inflater);\n this.menu = menu;\n String Role = session.getUserDetails().get(SessionManager.KEY_ROLE);\n if (!Role.equals(\"Doctor\")){\n\n menu.findItem(R.id.notificationBox).setVisible(false);\n menu.findItem(R.id.onlineStatus).setVisible(false);\n }\n updateMenuTitles();\n }", "title": "" }, { "docid": "2068b0986264bef41cd52b6069c76bf0", "score": "0.66450787", "text": "@Override\n \tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\n \t\treturn true;\n \t}", "title": "" }, { "docid": "05419579214341575b57eabeb1b9d569", "score": "0.66445434", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main, menu);\n\n actionItem = menu.getItem(0);\n return true;\n }", "title": "" }, { "docid": "042334e5978443a26cce6e0467de4cd2", "score": "0.6642481", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n this.getMenuInflater().inflate(R.menu.main, menu);\n return true;\n }", "title": "" }, { "docid": "896f040bae68c8182568c18af9f1b080", "score": "0.6639272", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "title": "" }, { "docid": "7bd8211b279599206e4c4338843cad77", "score": "0.6636847", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.start, menu);\n\t\t\n\t\treturn super.onCreateOptionsMenu(menu);\n\t\t\n\t}", "title": "" }, { "docid": "45442c87d381deee3a66e950c314c3b6", "score": "0.6636591", "text": "@Override\n \tpublic boolean onCreateOptionsMenu(Menu menu) {\n \t\tgetMenuInflater().inflate(R.menu.main, menu);\n \t\treturn true;\n \t}", "title": "" }, { "docid": "45442c87d381deee3a66e950c314c3b6", "score": "0.6636591", "text": "@Override\n \tpublic boolean onCreateOptionsMenu(Menu menu) {\n \t\tgetMenuInflater().inflate(R.menu.main, menu);\n \t\treturn true;\n \t}", "title": "" }, { "docid": "129047db332e82aa713ca7ce8b15f5c7", "score": "0.663425", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu_items, menu);\n return true;\n }", "title": "" }, { "docid": "17483edbd2dc5d1389f1eb570a94b8a9", "score": "0.6631094", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu_activity, menu);\n return super.onCreateOptionsMenu(menu);\n }", "title": "" }, { "docid": "2343030e852721cbc1b6dd3bb8a57fa0", "score": "0.66285497", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\tActionBar actionBar = getActionBar();\n\t\tactionBar.setIcon(R.drawable.ic_menu);\n\t\treturn true;\n\t}", "title": "" }, { "docid": "08bd813286c843b44208fea250493479", "score": "0.6628527", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tsuper.onCreateOptionsMenu(menu);\n\t\tMenuInflater mi = getMenuInflater();\n\t\tmi.inflate(R.menu.menu, menu);\n\t\treturn true;\n\t}", "title": "" }, { "docid": "463d13a98e0702302b8d82305546c74e", "score": "0.66281295", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu_main, menu);\n\n actionMenu = menu;\n listSelectedItem = 0;\n return super.onCreateOptionsMenu(menu);\n }", "title": "" }, { "docid": "8d02be02830498744f2d96fe6ec2bded", "score": "0.6625249", "text": "@Override\r\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.my_listing, menu);\r\n return true;\r\n }", "title": "" }, { "docid": "9199bcfc869d943a49ee60bc4fe82308", "score": "0.66219395", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater menuInflater = getMenuInflater();\n\n getMenuInflater().inflate(R.menu.theme_menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "title": "" }, { "docid": "3d44be7e47fbfe204564c70b4734d463", "score": "0.66211", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main_menu, menu);\n\t\treturn true;\n\t}", "title": "" }, { "docid": "28ef783934354e0282a227e14924a0ae", "score": "0.66202444", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu_items_view, menu);\n return true;\n }", "title": "" } ]
240f2230f9ef53ab55ad8bb46520ef3d
/ Leo el archivo desde el directorio por defecto
[ { "docid": "d75bef578cfda695ac1ed33f3d491afd", "score": "0.0", "text": "public Automata (){\n \n this.listaEstados = new ArrayList();\n this.listaTransiciones = new ArrayList();\n this.listaEstadosFinales = new ArrayList();\n this.listaAlfabeto = new ArrayList();\n \n }", "title": "" } ]
[ { "docid": "4516a08311e81a86a425d0a913b0f7d9", "score": "0.6651465", "text": "public void cargarArchivo() {\n\t\tarchivo = new File(ruta);\n\n\t\ttry (PrintWriter writer = new PrintWriter(archivo)) {\n\t\t\tgenerarJSON();\n\t\t\twriter.print(root.toJSONString());\n\t\t} catch (FileNotFoundException e) {\n\t\t\tSystem.out.println(e.getMessage());\n\t\t}\n\t}", "title": "" }, { "docid": "e2ce2c540a6c5c6a9159d8bcbebd99d8", "score": "0.6648842", "text": "public void abrirArchivo() throws FileNotFoundException, IOException {\n data = new File(path);\n\n if (!data.exists()) {\n JFileChooser promptFile = new JFileChooser();\n promptFile.setFileFilter(new FileNameExtensionFilter(\"Documentos\", \"txt\"));\n int option = promptFile.showDialog(null, \"Seleccionar\");\n System.out.println(option);\n System.out.println(promptFile.getSelectedFile().toString());\n data = new File(promptFile.getSelectedFile().toString());\n }\n }", "title": "" }, { "docid": "2ac31f2836a7900cf5c020264341f23a", "score": "0.6559222", "text": "public File crearArchivo(String nombreArchivo){\n // instanciacion del objeto de la clase File\n File archivo = new File(nombreArchivo);\n \n try{\n // Si el archivo no existe se crea\n if (!archivo.exists()){\n archivo.createNewFile();\n System.out.println(\"Archivo creado\");\n //Una vez creado se abre el flujo de escritura\n BufferedWriter bw = new BufferedWriter(new FileWriter(archivo));\n //Bucle que escribe números del 1 al 10 dentro del archivo\n for (int i=1; i <= 10; i++){\n bw.write(\"Numero -> \" + i + \"\\n\");\n }\n //Cierre del flujo de escritura\n bw.close();\n \n }else if (archivo.exists()){\n /*Si el archivo ya existe, muestra mensaje y avisa de que solo\n se puede leer el contenido del archivo \n */ \n System.out.println(\"El archivo \" + archivo + \" ya existe\");\n System.out.println(\".....Leyendo Archivo \" + archivo + \".....\");\n System.out.println(\"Solo puede leer el archivo\");\n // Se abre el flujo de lectura\n BufferedReader br = new BufferedReader(new FileReader(archivo));\n String leer;\n //Bucle que lee el archivo mientras haya líneas que leer\n while ((leer = br.readLine()) != null){\n System.out.println(leer);\n }\n //Cierre del flujo de lectura\n br.close(); \n }\n }catch(FileNotFoundException fnfe){\n System.out.println(\"Error\" +fnfe);\n }catch(IOException ioe){\n System.out.println(\"Error \" + ioe); \n }\n return archivo;\n }", "title": "" }, { "docid": "06d4180f839be9ad9cad1c365a846912", "score": "0.65233743", "text": "public static void amosarRutaDir() {\n File f = new File(\"/home/oracle/NetBeansProjects/arquivos/arquivosdir/\");\n System.out.println(f.getAbsolutePath());\n }", "title": "" }, { "docid": "16fcde98bf6c99f516ad03f4240cc401", "score": "0.6358733", "text": "public abstract File getFilesDir();", "title": "" }, { "docid": "926a6f1ea3489b7721a0bf52cfd4184d", "score": "0.6236159", "text": "String getFile();", "title": "" }, { "docid": "9dff65f432c582c27235a15bb2ee6272", "score": "0.62049097", "text": "public void abrir_archivo() {\n try {\n salida = new Formatter(\"factura.txt\");\n } // fin de try\n catch (SecurityException securityException) {\n System.err.println(\n \"No tiene acceso de escritura a este archivo.\");\n System.exit(1);\n } // fin de catch\n catch (FileNotFoundException filesNotFoundException) {\n System.err.println(\"Error al crear el archivo.\");\n System.exit(1);\n } // fin de catch\n }", "title": "" }, { "docid": "a608d66c9087af3efaeadce9609f1ca8", "score": "0.61999464", "text": "java.lang.String getDirOrigen();", "title": "" }, { "docid": "220f6564d9b1fc5e05a93acfd2e0654e", "score": "0.6168222", "text": "File getAbsoluteFile();", "title": "" }, { "docid": "0ac3bd0d72f496dd1cc21c78d6e0a745", "score": "0.6153833", "text": "public void abrirDocumento() throws IOException {\n File directorio = new File(\"temp\"); //Creas un nuevo directorio a nivel de tu jar.\n directorio.mkdirs();\n directorio.setWritable(true);\n //nuevo archivo en esa direccion\n File temp = new File(\"temp/manual.pdf\");\n InputStream is = this.getClass().getResourceAsStream(\"/archivo/manual.pdf\");\n FileOutputStream archivoDestino = new FileOutputStream(temp);\n FileWriter fw = new FileWriter(temp);\n byte[] buffer = new byte[512 * 1024];\n //lees el archivo hasta que se acabe...\n int nbLectura;\n while ((nbLectura = is.read(buffer)) != -1) {\n archivoDestino.write(buffer, 0, nbLectura);\n }\n //cierras el archivo,el inputS y el FileW\n fw.close();\n archivoDestino.close();\n is.close();\n //abres el archivo temporal\n Desktop.getDesktop().open(temp);\n }", "title": "" }, { "docid": "a619ec611828a25ca6b76b84d482d5a9", "score": "0.6147489", "text": "String getFilePath();", "title": "" }, { "docid": "a619ec611828a25ca6b76b84d482d5a9", "score": "0.6147489", "text": "String getFilePath();", "title": "" }, { "docid": "7288c4ad7bcf2203ea5d12c428348001", "score": "0.6117765", "text": "Path getFilePath();", "title": "" }, { "docid": "51f10dfe950ef0695dd5b1f82eee0c55", "score": "0.60951394", "text": "File getBaseDirectory();", "title": "" }, { "docid": "d699aa0d6bb7b7a2c9a8210ffce0e6cc", "score": "0.6089863", "text": "public String getFilePath();", "title": "" }, { "docid": "e69b9c14d317a225b0a8328f76f48639", "score": "0.60773575", "text": "File getBasedir();", "title": "" }, { "docid": "9cb7040c6f298c63a003942a3d47c77c", "score": "0.6069716", "text": "public static FileObject getDefaultFile() throws IOException {\n String name = Settings.getDefault().getExpandedFilename();\n File f = FileUtil.normalizeFile(new File(name));\n \n FileObject fo = FileUtil.toFileObject(f);\n if (fo == null) {\n File dir = f.getParentFile();\n if (!dir.exists() && !dir.mkdirs()) {\n throw new IOException(\n NbBundle.getMessage(UserTaskList.class,\n \"CannotCreateDir\", dir.getAbsolutePath())); // NOI18N\n }\n OutputStream os = new FileOutputStream(f);\n try {\n InputStream is = UserTaskList.class.getResourceAsStream(\n \"/org/netbeans/modules/tasklist/usertasks/tasklist.ics\"); // NOI18N\n try {\n UTUtils.copyStream(is, os);\n } finally {\n is.close();\n }\n } finally {\n os.close();\n }\n fo = FileUtil.toFileObject(f);\n }\n return fo;\n }", "title": "" }, { "docid": "627904572ef2c4a2a094fddcf39dbcdd", "score": "0.60597205", "text": "public abstract File getObbDir();", "title": "" }, { "docid": "eb5036d54380963866c5fab31c4a7b0f", "score": "0.6026796", "text": "public static String leerArchivo(String ruta) {\n \r\n \r\n Path archivo = Paths.get(ruta);\r\n String texto = \"\";\r\n try {\r\n texto = new String(Files.readAllBytes(archivo));\r\n System.out.println(texto);\r\n return texto;\r\n } catch (IOException e) {\r\n texto=\"El archivo no fue encontrado\";\r\n System.out.println(texto);\r\n return texto;\r\n }\r\n }", "title": "" }, { "docid": "603f53c3fbc9ce1a36333b60d7d52493", "score": "0.6013162", "text": "private File getFile(){\n String p = System.getProperty(\"user.dir\")+\"/rrf.csv\";\n try{\n InputStream is = is = this.getClass().getResourceAsStream(\"/assets/files/csv.csv\");\n OutputStream stream = new BufferedOutputStream(new FileOutputStream(p));\n int bufferSize = 1024;\n byte[] buffer = new byte[bufferSize];\n int len = 0;\n while ((len = is.read(buffer)) != -1) {\n stream.write(buffer, 0, len);\n }\n if(stream!=null){\n stream.close();\n }\n }catch(IOException e){}\n return new File(p);\n }", "title": "" }, { "docid": "b46f33acdcb9566a75f212aa87486397", "score": "0.60026807", "text": "public File getMainFile();", "title": "" }, { "docid": "d4722bc3c84ca2d631292b19672da1a7", "score": "0.6000682", "text": "public boolean abrirArchivo() {\n JFileChooser file = new JFileChooser();\r\n file.showOpenDialog(file);\r\n File abre = file.getSelectedFile();\r\n\r\n if (abre != null) {\r\n direccion = abre.getAbsolutePath();\r\n System.out.println(\"Esta leyendo archivo con direccion--> \" + direccion);\r\n return true;\r\n } else {\r\n return false;\r\n }\r\n\r\n }", "title": "" }, { "docid": "b949a6d51ed6c0fe85b07215140c1ea1", "score": "0.59924084", "text": "@Override\n\tpublic File toFile(String path) throws IOException {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "90127304cbd274ed8ff9dbd8b71bacba", "score": "0.59747344", "text": "Path getFoodieBotFilePath();", "title": "" }, { "docid": "b7f5ce05e096603ebf4059ccf1f9e192", "score": "0.5970787", "text": "public void escribirArchivo() throws FileNotFoundException, IOException{\n File file = new File(\"archivando\");\r\n //El siguiente paso es muy importante\r\n FileOutputStream fos = new FileOutputStream(file);\r\n ObjectOutputStream oos = new ObjectOutputStream(fos);\r\n \r\n String miObjeto = \"Este es un objeto de la clase string\";\r\n oos.writeObject(miObjeto);\r\n \r\n System.out.println(\"Se guardo tu string con exito\"); \r\n \r\n }", "title": "" }, { "docid": "16765b23ed2f1be9fc4b4692db8570a6", "score": "0.5970779", "text": "public File getFile();", "title": "" }, { "docid": "b966334749ad76b8062bb95532228adf", "score": "0.5964368", "text": "public String openFile(String nombreArchivo) {\n File path = new File(\"C:/OOP/PeriodoFinal/EditorTextos/archives/\");\n String directorio[] = path.list();\n String data = \"\", str;\n for(int i=0; i<directorio.length; i++){\n if((directorio[i]).equals(nombreArchivo)){\n System.out.println(\"HIT\");\n try\n {\n //1.Abrir el archivo de datos\n archivoIn = new BufferedReader(new FileReader(\"C:/OOP/PeriodoFinal/EditorTextos/archives/\"+nombreArchivo)); \n //2.Leer los datos del archivo\n \n while(archivoIn.ready())\n {\n str=archivoIn.readLine();\n data = data + str+\"\\n\";\n }\n //3.Cerrar el archivo\n archivoIn.close();\n }\n catch(FileNotFoundException fnfe){\n JOptionPane.showMessageDialog(null, \"File Not Found\");\n }\n catch(IOException ioe){\n System.out.println(\"Error: \"+ioe);\n }\n }\n }\n return data;\n }", "title": "" }, { "docid": "59ae6454f03c49125711d85394a1a07b", "score": "0.5962033", "text": "public abstract File getNoBackupFilesDir();", "title": "" }, { "docid": "15b4f4846295939403082650286b1329", "score": "0.5959619", "text": "private File create(java.io.File file) {\r\n\t\tFile f = new File();\r\n\t\tf.setPath(file.getAbsolutePath());\r\n\t\tf.setName(file.getName());\r\n\t\tf.setDirectory(file.isDirectory());\r\n\t\tif (f.isDirectory()) {\r\n\t\t\tjava.io.File[] files = file.listFiles();\r\n\t\t\tif (files != null) {\r\n\t\t\t\tf.setEmpty(files.length == 0);\t\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn f;\r\n\t}", "title": "" }, { "docid": "b919f528c05256c435a08a5a2b6b52b5", "score": "0.5933775", "text": "public static void save(File src) {\n File dst = new File(\"src/Logos\", src.getName());\n if (!dst.getParentFile().exists()) {\n dst.getParentFile().mkdirs();\n }\n try {\n //copy file vao thu muc logos\n Path from = Paths.get(src.getAbsolutePath());\n Path to = Paths.get(dst.getAbsolutePath());\n Files.copy(from, to, StandardCopyOption.REPLACE_EXISTING);\n } catch (IOException e) {\n System.out.println(\"Error save Image\");\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "42a075e26394334811ffa95493a048df", "score": "0.58618814", "text": "public void fijarNombreArchivo(String nombreArchivo) {\n\t\tthis.nombreArchivo = nombreArchivo;\n\t\tFile archivo = new File(nombreArchivo);\n\t\tif (archivo.exists()) {\n\t\t\tultimaPosicion = archivo.length();\n\t\t} else {\n\t\t\tultimaPosicion = 0;\n\t\t}\n\t}", "title": "" }, { "docid": "a03ee33d672efa2b1a4f29cdc0597fae", "score": "0.58401775", "text": "public abstract File getDataDir();", "title": "" }, { "docid": "f39efdce28efb5e07af94c43f5dc3afa", "score": "0.58380216", "text": "public static File creaFichero(Scanner consola) {\n System.out.print(\"Introduce el nombre del fichero: \");\n String nombre = consola.nextLine();\n return new File(nombre);\n }", "title": "" }, { "docid": "ae8dde4aab9ee938310f8256bbb7e0ca", "score": "0.58346325", "text": "private static void guardarArchivo(String nombre, String contenido) {\r\n BufferedWriter bw = null;\r\n try {\r\n File archivo = new File(nombre);\r\n bw = new BufferedWriter(new FileWriter(archivo));\r\n \r\n bw.write(contenido);\r\n \r\n System.out.println(\"Generado \"+nombre);\r\n \r\n } catch (IOException ex) {\r\n Logger.getLogger(TextConverter.class.getName()).log(Level.SEVERE, null, ex);\r\n } finally {\r\n try {\r\n bw.close();\r\n } catch (IOException ex) {\r\n Logger.getLogger(TextConverter.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }\r\n }", "title": "" }, { "docid": "025642160d54de9bdc1fabb989b6d3fe", "score": "0.58292365", "text": "public void Cargar() {\r\n\r\n\t\tnew FileLoader().cargarArchivo();\r\n\r\n\t}", "title": "" }, { "docid": "cf3b87c89d857cdff6637cd9a7b2de79", "score": "0.582774", "text": "public boolean comprobar() throws IOException {\n \n /*Compriebo si existe el directorio Raiz*/\n \n File directorio = new File (directorioRaiz.obtenerDireccion());\n if(!directorio.exists()) return false;\n \n /*Compruebo si existe el fichero de informacion*/\n\n File fichero = new File (directorioRaiz.obtenerDireccionFichero());\n if (!fichero.exists()) {\n //El directorio existe pero el ficheor no\n \n File[] files = new File(directorioRaiz.obtenerDireccion()).listFiles((File pathname) -> {\n String name1 = pathname.getName().toLowerCase();\n return pathname.isFile();\n });\n \n if (files.length == 0) {\n /*El directorio esta vacio*/\n fichero.createNewFile();\n }\n else{ //el directorio tiene directorio\n \n /*Relleno con informacion recopilada de nuevo a dia de hoy*/\n \n FileWriter fw = new FileWriter(fichero, true);\n BufferedWriter bw = new BufferedWriter(fw);\n \n for (File file: files) {\n bw.write(file.getName());\n bw.newLine();\n \n bw.write(\"--- Esta base de datos ha sido recuperada en el inicio. No tiene descripcion ---\");\n bw.newLine();\n \n SimpleDateFormat formato = new SimpleDateFormat(\"yyyy/MM/dd HH:mm:ss\");\n Date fecha = new Date();\n\n bw.write(formato.format(fecha));\n bw.newLine();\n bw.newLine();\n \n }\n \n bw.close();\n fw.close();\n \n }\n }\n \n return true;\n }", "title": "" }, { "docid": "32df9bc572d418a4ba7d99969a849e0e", "score": "0.5815838", "text": "public static void pasarAEscritura() {\n File f = new File(\"/home/oracle/NetBeansProjects/arquivos/arquivosdir/Products1.txt\");\n\n //si existe el archivo\n if (f.exists()) {\n f.setWritable(true, false); //pasa a escritura para todos los usuarios\n }\n }", "title": "" }, { "docid": "7a69d524abe8dbe3c3902e2711cabc6a", "score": "0.5811429", "text": "void dirCreated(File dir);", "title": "" }, { "docid": "e14164426b2d2ad371a6d7ac8e2e0bba", "score": "0.580648", "text": "private static File getMidoFile() {\n\t\treturn new File(getMidiAutomatorSettingsPath() + File.separator\n\t\t\t\t+ \"file_list.mido\");\n\t}", "title": "" }, { "docid": "9e342df58d7bcbf72ab4e4e8cb9e9618", "score": "0.57985884", "text": "File getResourceDirectory();", "title": "" }, { "docid": "5383dd94b26aa36b0851949c03c5938a", "score": "0.5795119", "text": "public static void forzarSoLectura() {\n File f = new File(\"/home/oracle/NetBeansProjects/arquivos/arquivosdir/Products1.txt\");\n\n //si existe el archivo...\n if (f.exists()) {\n f.setReadOnly(); //poner solo lectura\n }\n }", "title": "" }, { "docid": "8155470ae79dbe3c2e7f9c663eb872cc", "score": "0.57939756", "text": "public T leerArchivo(String pathInicial, String pathNombreArchivo, String tipoDeArchivoPath){\n String ruta = \"./Archivos/\" + pathInicial + \"(\" + pathNombreArchivo + \")\" + tipoDeArchivoPath;\n File file = new File(ruta);\n try (FileInputStream fileInputStream = new FileInputStream(file);\n ObjectInputStream inputStream = new ObjectInputStream(fileInputStream);) {\n return (T) inputStream.readObject();\n } catch (IOException e) {\n System.out.println(pathNombreArchivo);\n System.out.println(\"Error de conexion con el archivo\");\n return null;\n } catch (ClassNotFoundException e) {\n System.out.println(\"El objeto no tiene la forma de una pieza\");\n }\n return null;\n }", "title": "" }, { "docid": "bbcee998bf76835e065745809b083c83", "score": "0.5780997", "text": "public void chooseFileOrDir() {\n if (StringUtils.isEmpty(mDir)) {\n chooseFileOrDir(mSdCardDirectory);\n } else {\n chooseFileOrDir(mDir);\n }\n }", "title": "" }, { "docid": "af04dd63f141f1f153cb35511c32192a", "score": "0.5780327", "text": "public String leerArchivoSinSaltos(String ruta){\n \n Path archivo = Paths.get(ruta);\n String texto= \"\";\n try{\n texto= new String(Files.readAllBytes(archivo));\n \n }catch(IOException e){\n System.out.println(\"El archivo no pudo ser leido\");\n }\n \n return texto.replaceAll(\"\\n\", \"\");\n }", "title": "" }, { "docid": "ee167e044c76e42a5a2c6b289b6c99d6", "score": "0.5775146", "text": "public String leerArchivo(String direccionx) {\n\t\t\n\t\ttry {\n\t\t\tFileInputStream dirtxt;\n\t\t\tdirtxt = new FileInputStream(direccionx);\n\t\t\tDataInputStream lineas = new DataInputStream(dirtxt);\n\t\t\tBufferedReader memoriabuf = new BufferedReader(new InputStreamReader(lineas));\n\t\t\toperaciones=memoriabuf.readLine();\n\t\t\tlineas.close();\n\t\t}catch(Exception e){\n\t\t\tSystem.err.println(\"Error Fatal\");\n\t\t\t\n\t\t}\n\n\t\treturn operaciones;\n\t}", "title": "" }, { "docid": "116332f4e6b65e19a6ede463052777d5", "score": "0.57715726", "text": "private File openFile(String resource_name){\n //Reads resources path from properties file\n String directory = WebServer.PROPERTIES.getProperty(\"DIRECTORY\");\n try {\n return new File(directory, resource_name);\n }catch (NullPointerException ex){\n return new File(directory, \"\");\n }\n }", "title": "" }, { "docid": "2bce2d13c59331a2ff22d5c6f1f10a5f", "score": "0.57679224", "text": "@Override\r\n public void actionPerformed(ActionEvent e) {\n File name = new File(e.getActionCommand());\r\n if(name.exists()) {\r\n String pattern = \"yyyy-MM-dd (E요일) hh:mm aa\";\r\n SimpleDateFormat simpleDateFormat = new SimpleDateFormat(pattern);\r\n \r\n Date lastModifiedDate = new Date( name.lastModified() );\r\n final String str = simpleDateFormat.format( lastModifiedDate );\r\n try {\r\n out.setText((name.getName() + \"이 존재한다.\\n\") + \r\n (name.isFile() ? \"파일이다.\\n\" : \"파일이 아니다.\\n\") + \r\n (\"마지막 수정날짜는 : \" + str) + \r\n (\"\\n파일의 길이는 : \" + name.length()) + \r\n (\"\\n파일의 경로는 : \" + name.getPath())+\r\n (\"\\n절대경로는 : \" + name.getAbsolutePath())+ \r\n (\"\\n상대경로는 : \" + name.getCanonicalPath()));\r\n } catch (IOException e1) {\r\n // TODO Auto-generated catch block\r\n e1.printStackTrace();\r\n }\r\n put.setText((name.isDirectory() ? \"디렉토리이다.\\n\" : \"디렉토리가 아니다.\\n\")+ \r\n (name.isAbsolute() ? \"절대경로이다.\\n\" : \"절대경로가 아니다.\\n\") + \r\n (\"\\n상위 디렉토리는 : \" + name.getParent()));\r\n if(name.isFile()) {\r\n try {\r\n RandomAccessFile r = new RandomAccessFile(name, \"r\");\r\n StringBuffer buf = new StringBuffer();\r\n String text;\r\n put.append(\"\\n\\n\");\r\n while((text = r.readLine()) != null)\r\n buf.append(text + \"\\n\");\r\n put.append(buf.toString());\r\n }catch(IOException e2) { \r\n \r\n }\r\n }\r\n else if(name.isDirectory()) {\r\n String directory[] = name.list();\r\n put.append(\"\\n\\n디렉토리의 내용은 : \\n\");\r\n for(int i=0; i<directory.length; i++)\r\n put.append(directory[i] + \"\\n\");\r\n }\r\n }\r\n else {\r\n put.setText(e.getActionCommand() + \"은 종재하지 않는다.\\n\");\r\n }\r\n }", "title": "" }, { "docid": "fecfb83d4bc7ebd353f3615fb86d859e", "score": "0.5765244", "text": "public void setTodir(File todir) {\n this.todir = todir;\n }", "title": "" }, { "docid": "f5f2b521316c58f570108e14de13ab18", "score": "0.5761865", "text": "public static void getImgDefault(String path_origem, String path_destino) {\r\n\r\n\t\tCurrentDir cd = new CurrentDir();\r\n\t\tcd.getDirAtual();\r\n\t\tFile file_origem = new File(path_origem);\r\n\t\tFile file_destino = new File(path_destino);\r\n\r\n\t\tif(!file_destino.exists()){\r\n\t\t\ttry {\r\n\t\t\t\tFileInputStream input = new FileInputStream(file_origem);\r\n\t\t\t\tFileOutputStream output = new FileOutputStream(file_destino);\r\n\t\t\t\tint c;\r\n\t\t\t\twhile ((c = input.read())!= -1) {\r\n\t\t\t\t\toutput.write(c);\r\n\t\t\t\t}\r\n\t\t\t\tinput.close();\r\n\t\t\t\toutput.close();\r\n\r\n\t\t\t} catch (FileNotFoundException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "4fd3a5e128285906bc5ea0aa5d340a6c", "score": "0.5760572", "text": "private void SubirArchivoAFirebase(MediaFile mediaFile, String path) {\n }", "title": "" }, { "docid": "3bccb6cf68898b1ba9994e11a05cdb9c", "score": "0.5760084", "text": "File createFile();", "title": "" }, { "docid": "8a53d44912b477dddc51b3567097e8ad", "score": "0.5743936", "text": "public File getRoot();", "title": "" }, { "docid": "8a53d44912b477dddc51b3567097e8ad", "score": "0.5743936", "text": "public File getRoot();", "title": "" }, { "docid": "40af383ecd43bc732d5824b4c622e5eb", "score": "0.5742799", "text": "private String getFilePath() {\r\n\t\treturn \"d:/temp/\";\r\n\t}", "title": "" }, { "docid": "e440dd3cb305b3a67d010e73394a1292", "score": "0.57298446", "text": "public void setMainFile(File file);", "title": "" }, { "docid": "b74c07f6d5e48e049dda2ed1da112e93", "score": "0.5716554", "text": "private String getFilePath(Fichier fichier){\r\n\t\tif (fichier.getTypFichier().equals(ConstanteUtils.TYPE_FICHIER_GESTIONNAIRE)){\r\n\t\t\treturn folderGestionnaire+fichier.getFileFichier();\r\n\t\t}else{\r\n\t\t\treturn folderCandidat+fichier.getFileFichier();\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "5ff91ac9d5064ff9f8503af59958a9ef", "score": "0.57163143", "text": "public static void main(String[] args) {\n\n Path sorgente = Paths.get(\"test.txt\");\n File f1 = new File(sorgente.normalize().toString());\n File f2 = new File(\"./test.txt\");\n File f3 = new File(\"c:\\\\Academy\\\\test.txt\"); // NO!!!!\n File f4 = new File(\"c:\"+File.separator+\"Academy\"+File.separator+\"test.txt\"); // meglio\n File f5 = new File(Paths.get(\"c\",\"Academy\",\"test.txt\").toString()); // meglio\n\n System.out.println(Paths.get(\"C:\",\"Academy\",\"test.txt\").normalize().toString());\n System.out.println(Paths.get(\"C:\",\"Academy\",\"test.txt\").toUri());\n\n System.out.println(f2);\n\n\n if (!f2.exists()) {\n try {\n f2.createNewFile();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }else{\n if (f2.delete()){\n try {\n f2.createNewFile();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }\n\n\n try(Reader r1 = new FileReader(f2);\n BufferedReader br1 = new BufferedReader(r1);\n Writer w1 = new FileWriter(f2, true)) {\n\n w1.write(\"Ciao\");\n w1.flush(); // scarica i dati sul disco\n\n String riga = null;\n while( (riga=br1.readLine())!=null ){\n System.out.println(riga);\n }\n\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n } finally {\n // USARE TRY-WITH-RESOURCES\n }\n\n\n\n\n\n\n\n }", "title": "" }, { "docid": "286c0618a4b9083996a39fbb88a44f2e", "score": "0.56988907", "text": "public String getPathResoucesAS2(String nombreCarpeta)\r\n/* 264: */ {\r\n/* 265:286 */ return RUTA_ARCHIVO + File.separator + nombreCarpeta + File.separator;\r\n/* 266: */ }", "title": "" }, { "docid": "f270d2d6494a956f9463760603b25b9a", "score": "0.56911147", "text": "public byte preDir(File f){\n // Lass das Verzeichnis aus, falls es versteckt ist\n //if(f.isHidden())\n // return 1;\n // Brich das Programm ab, falls die Laenge des Namens der File \n // Instanz > 100 ist\n //if(f.getName().length() > 100)\n // return -1;\n return 0;\n }", "title": "" }, { "docid": "230384c76c1375a982b7181330288f17", "score": "0.567286", "text": "public void openFile() {\n openFile(\"\");\n }", "title": "" }, { "docid": "5a30dd92e18b7b20b01537a93c1a634e", "score": "0.56720114", "text": "void checkFile(File dir, String lang) {\n if (!dir.exists()&& dir.mkdirs()){\n copyFiles(lang);\n }\n //The directory exists, but there is no data file in it\n if(dir.exists()) {\n String datafilepath = datapath+ \"/tessdata/\"+lang+\".traineddata\";\n File datafile = new File(datafilepath);\n if (!datafile.exists()) {\n copyFiles(lang);\n }\n }\n }", "title": "" }, { "docid": "2fe190938005a2ab3b21d93724ed7360", "score": "0.56696147", "text": "private File toFile( String relativePath ) {\n\t\tif( OperatingSystemUtilities.isWindows() ) {\r\n\t\t\trelativePath = relativePath.replace('/', '\\\\');\r\n\t\t}\r\n\t\r\n\t String absoluteFilename = _rootFolder + relativePath;\r\n\t \r\n\t File answer = new File( absoluteFilename );\r\n\t \r\n\t if( !answer.exists() ) {\r\n\t \t\r\n\t \tlog.errorFormat( \"!answer.exists(); absoluteFilename = '%s'\" , absoluteFilename);\r\n\t \tthrow HttpErrorHelper.notFound404FromOriginator( this );\r\n\t }\r\n\t \r\n\t if( !answer.canRead() ) {\r\n\t \tlog.errorFormat( \"!answer.canRead(); absoluteFilename = '%s'\" , absoluteFilename);\r\n\t \tthrow HttpErrorHelper.forbidden403FromOriginator( this);\r\n\t }\r\n\t \r\n\t return answer;\r\n\t\r\n\t}", "title": "" }, { "docid": "5c590364f97da932ede7624d64e03f56", "score": "0.56690085", "text": "public Lector() {\n // Pregunta el nombre del archivo a leer\n String file = JOptionPane.showInputDialog(\"Nombre del archivo \"\n +\"del que se tomarán los datos\");\n\n // Crea objeto de tipo file, con el nuevo archivo\n in = new File(file);\n }", "title": "" }, { "docid": "5947c0644485a2865307f0fc762bf09e", "score": "0.5666661", "text": "public static void existeDirectorio(String strRuta){\r\n\t\ttry {\r\n\t\t\tjava.io.File folder = new java.io.File(strRuta);\r\n\t\t\tif (folder.exists())\r\n\t\t\t\t System.out.println(\"El fichero \" + folder + \" existe\");\r\n\t\t\telse\r\n\t\t\t\tfolder.mkdirs();\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "d992512ca7f9b27f8caadcebe8a3469a", "score": "0.5662542", "text": "private File EscolherArquivo()\n {\n int resultado = filechooser.showOpenDialog(filechooser);\n if (resultado == JFileChooser.CANCEL_OPTION)\n {\n filechooser.enable(false);\n return null ;\n }\n\n File choosedFile = filechooser.getSelectedFile();\n String[] name = choosedFile.getName().split((Pattern.quote(\".\")));\n\n path.setText(choosedFile.getParent());\n filesize.setText(String.format(\"%.2f %s\", (choosedFile.length() / 1024.0 / 1024.0), \"MB\"));\n filename.setText(choosedFile.getName().replace(\".\"+name[name.length-1], \"\"));\n fileextension.setText(\".\" + name[name.length-1]);\n\n return choosedFile;\n }", "title": "" }, { "docid": "d4f9c772a1cccff7a6b4e2fb12ed1215", "score": "0.56592166", "text": "public static void main(String[] args) {\n\t\t\r\n\t\t\r\n\t\tString path =\".\";\r\n//\t\tString path =\"..\\\\day21\\\\text.txt\";\r\n\t\tFile file = new File(path);//default 생성자가 아님. String을 받아 파일의 경로 명세\r\n\t\t\r\n\t\tString[] dirs=file.list();\r\n\t\tint a=0,b=0;\r\n\t\tint sum=0;\r\n\t\tfor(int i=0;i<dirs.length;i++){\r\n\t\t\tFile temp = new File(dirs[i]);\r\n\t\t\tif(temp.isDirectory()){\r\n\t\t\t\t\r\n\t\t\t\tSystem.out.println(new java.util.Date(temp.lastModified())+\" <DIR> \"+\" \"+dirs[i]);\r\n\t\t\t\ta++;\r\n\t\t\t}else if(temp.isFile()){\r\n\t\t\t\t\r\n\t\t\t\tSystem.out.println(new java.util.Date(temp.lastModified())+\"\\t \"+temp.length()+\" \"+dirs[i]);\r\n\t\t\t\tb++;\r\n\t\t\t\tsum+=temp.length();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t\r\n\t\t}\r\n\t\tSystem.out.println();\r\n\t\tSystem.out.println(\"\\t\\t\\t\"+b+\"개 파일 \"+sum+\" Byte\");\r\n\t\tSystem.out.println(\"\\t\\t\\t\"+a+\"개 디렉토리\");\r\n\t\t\r\n\t\t\r\n\t\t\r\n//\t\tSystem.out.println(\"파일이 존재 하는가?\"+file.exists());\r\n//\t\tSystem.out.println(\"파일인가?\"+file.isFile());\r\n//\t\tSystem.out.println(\"디렉토리인가?\"+file.isDirectory());\r\n//\t\tSystem.out.println(\"이름은?\"+file.getName());\r\n//\t\tSystem.out.println(\"경로는?\"+file.getPath());\r\n//\t\tSystem.out.println(\"단순 절대경로는?\"+file.getAbsolutePath());\r\n//\t\ttry {\r\n//\t\t\tSystem.out.println(\"일반 절대경로는?\"+file.getCanonicalPath());\r\n//\t\t} catch (IOException e) {\r\n//\t\t\t// TODO Auto-generated catch block\r\n//\t\t\te.printStackTrace();\r\n//\t\t}\r\n//\t\tSystem.out.println(\"Path는?\"+file.getParent());\r\n//\t\tSystem.out.println(\"rwx r읽기권한?\"+file.canRead());\r\n//\t\tSystem.out.println(\"rwx w쓰기권한?\"+file.canWrite());\r\n//\t\tSystem.out.println(\"rwx x실행권한?\"+file.canExecute());\r\n//\t\tSystem.out.println(\"size?\"+file.length()+\"byte\");\r\n//\t\tSystem.out.println(\"최종수정시간?\"+new java.util.Date(file.lastModified()));//천분의 일초\r\n\t\t\r\n\t\tnew java.util.Date(file.lastModified());\r\n\t\t\r\n//\t\tSystem.out.println(java.util.Arrays.toString(dirs));\r\n\t\t\r\n\t}", "title": "" }, { "docid": "2a3e1b0a8b64d2732139ff649aba42c5", "score": "0.5648051", "text": "private static File createDictFile()throws FileNotFoundException{\n\t\tString filePath = new File(\"\").getAbsolutePath().concat(\"/res/synmaster.txt\");\n\t\treturn new File(filePath);\n\t}", "title": "" }, { "docid": "8d6bb5716e7b1e0ad13cf674dfb8ab75", "score": "0.5645931", "text": "private void createFile(){\n File folder=new File(Environment.getExternalStorageDirectory().toString(),\"/REPORTES BD DISTRIBUIDAS\");\n if (folder.exists()){\n folder.mkdirs();\n pdfFile= new File(folder,\"REPORTE.pdf\");\n }\n else {\n folder.mkdirs();\n pdfFile= new File(folder,\"REPORTE.pdf\");\n }\n }", "title": "" }, { "docid": "7564b954c56dff519a1218b65034802a", "score": "0.56456023", "text": "private void abrirArchivo() throws HeadlessException, IOException, ClassNotFoundException {\r\n\t\tif (jFilechooser.showDialog(jFilechooser, \"Abrir archivo\") == JFileChooser.APPROVE_OPTION) {\r\n\t\t\tFichero.leer(jFilechooser.getSelectedFile());\r\n\t\t\tsetTitle(jFilechooser.getSelectedFile().getName());\r\n\t\t\tGestion.setModificado(false);\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "d921f5c1e8add8f65ff5f72b105b68d1", "score": "0.56409967", "text": "public void setDirectory(String dir){File_Direct=dir;}", "title": "" }, { "docid": "4ad0425992fe2a039a8fba5ac133bf72", "score": "0.56383604", "text": "private boolean limpiarArchivo(String nombreArchivo) \n\t{\n\t\tBufferedWriter bw;\n\t\ttry \n\t\t{\n\t\t\tbw = new BufferedWriter(new FileWriter(new File (nombreArchivo)));\n\t\t\tbw.write (\"\");\n\t\t\tbw.close ();\n\t\t\treturn true;\n\t\t} \n\t\tcatch (IOException e) \n\t\t{\n//\t\t\te.printStackTrace();\n\t\t\treturn false;\n\t\t}\n\t}", "title": "" }, { "docid": "4fa1f804b629c94c36328af5789a37b2", "score": "0.5627365", "text": "private boolean limpiarArchivo(String nombreArchivo) \n\t{\n\t\tBufferedWriter bw;\n\t\ttry \n\t\t{\n\t\t\tbw = new BufferedWriter(new FileWriter(new File (nombreArchivo)));\n\t\t\tbw.write (\"\");\n\t\t\tbw.close ();\n\t\t\treturn true;\n\t\t} \n\t\tcatch (IOException e) \n\t\t{\n\t\t\t//\t\t\te.printStackTrace();\n\t\t\treturn false;\n\t\t}\n\t}", "title": "" }, { "docid": "ebd57ef5df3b87add1e5f7615e177961", "score": "0.56255543", "text": "File getFile() throws IOException;", "title": "" }, { "docid": "355a3b48b62a0a15695e5e31bf5e3543", "score": "0.5620575", "text": "private static void readFromFile() {\n try {\n Storage.readFromFile(tasks);\n } catch (IOException e) {\n // Save file does not exist, creating one in the same folder\n System.out.println(\"Creating save file...\");\n }\n }", "title": "" }, { "docid": "7fca45d16fc132bfc4734eb988494fd3", "score": "0.56203806", "text": "void buildDirectory();", "title": "" }, { "docid": "4bf44dc3826271b24b86a1951ef4c509", "score": "0.5616332", "text": "Path way(String fn){\n // The default working directory is the current project directory.\n return FileSystems.getDefault().getPath(fn); // declare the location of a new file in a system\n }", "title": "" }, { "docid": "5a9dc56489167966b039d71dd283261c", "score": "0.56102705", "text": "public void loadFile() {\n this.ui.displayLineSeparator();\n try {\n Path directoryPath = Paths.get(DIRECTORY_PATH);\n if (!Files.exists(directoryPath)) {\n Files.createDirectory(directoryPath);\n System.out.println(CREATE_DIRECTORY_MESSAGE + directoryPath.getFileName());\n }\n File dukeData = new File(FILE_PATH);\n if (dukeData.createNewFile()) {\n System.out.println(CREATE_NEW_FILE_MESSAGE + dukeData.getName());\n } else {\n this.readFile();\n System.out.println(LOAD_EXISTING_FILE_MESSAGE + dukeData.getName());\n }\n } catch (IOException e) {\n ui.displayErrorMessage();\n }\n this.ui.displayLineSeparator();\n }", "title": "" }, { "docid": "a958bc6a0da10f25fd0947a503552233", "score": "0.56060123", "text": "public java.lang.String getFile(){\n return localFile;\n }", "title": "" }, { "docid": "367b3d6342df7b0779dc07d19caeca49", "score": "0.55998343", "text": "@Override\r\n\tpublic String crearArchivo(String codigo) {\n\t\tList<String> lines = Arrays.asList(codigo);\r\n\t\t \r\n\t\ttry {\r\n\t\t\tFile err = new File(root.resolve(\"archivo.err\").toString());\r\n\t\t\tFile hex = new File(root.resolve(\"archivo.hex\").toString());\r\n\t\t\t\r\n\t\t\tif(err.exists()) {\r\n\t\t\t\terr.delete();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tif(hex.exists()) {\r\n\t\t\t\thex.delete();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tFiles.write(this.root.resolve(\"archivo.c\"), \r\n\t\t\t\t\t lines, \r\n\t\t\t\t\t StandardCharsets.UTF_8);\r\n\t\t\treturn \"creado\";\r\n\t\t} catch (IOException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t\treturn e.getMessage();\r\n\t\t}\r\n\t\t\r\n\t}", "title": "" }, { "docid": "2e792fa5a8a2a5824146032a3da37321", "score": "0.5599165", "text": "private Path getFileOrDirectoryPath() {\n FileNameExtensionFilter filter = new FileNameExtensionFilter(\"Family Tree File\",\"famtree\");\r\n JFileChooser fileChooser = new JFileChooser();\r\n fileChooser.setFileFilter(filter);\r\n fileChooser.setFileSelectionMode(JFileChooser.FILES_AND_DIRECTORIES);\r\n fileChooser.setCurrentDirectory(new File(\".\"));\r\n int result = fileChooser.showSaveDialog(this);\r\n \r\n // if user clicked Cancel button on dialog, return\r\n if (result == JFileChooser.CANCEL_OPTION) {\r\n dispose();\r\n }\r\n \r\n filePath = fileChooser.getSelectedFile().toString();\r\n \r\n // return Path representing the selected file\r\n return fileChooser.getSelectedFile().toPath();\r\n \r\n }", "title": "" }, { "docid": "cc8d6265f9b3f12efd6fa3960cd02f8e", "score": "0.55904347", "text": "void openFile(FileDir fileDir);", "title": "" }, { "docid": "e52308a44b35156287774a02bc9e4a04", "score": "0.5588075", "text": "String getTargetFile();", "title": "" }, { "docid": "c7a658e1e650f5fcb232849ad734d280", "score": "0.55823153", "text": "private String initialFileSetup(String file_path, String user_id) {\n\n String[] path_components = file_path.split(\"/\");\n String desired_filename = path_components[path_components.length - 1];\n String absolute_path = new File(\"\").getAbsolutePath();\n absolute_path = absolute_path.concat(\"/Final\");\n new File(absolute_path).mkdirs();\n absolute_path = absolute_path.concat(\"/Direction\");\n new File(absolute_path).mkdirs();\n\n absolute_path = absolute_path.concat(\"/\".concat(user_id));\n new File(absolute_path).mkdirs();\n\n absolute_path = absolute_path.concat(\"/Direction_\".concat(desired_filename));\n\n return absolute_path;\n }", "title": "" }, { "docid": "19c3b17aeb8f734a6c27d1f8e6803f76", "score": "0.55791193", "text": "String getPath();", "title": "" }, { "docid": "19c3b17aeb8f734a6c27d1f8e6803f76", "score": "0.55791193", "text": "String getPath();", "title": "" }, { "docid": "19c3b17aeb8f734a6c27d1f8e6803f76", "score": "0.55791193", "text": "String getPath();", "title": "" }, { "docid": "19c3b17aeb8f734a6c27d1f8e6803f76", "score": "0.55791193", "text": "String getPath();", "title": "" }, { "docid": "19c3b17aeb8f734a6c27d1f8e6803f76", "score": "0.55791193", "text": "String getPath();", "title": "" }, { "docid": "19c3b17aeb8f734a6c27d1f8e6803f76", "score": "0.55791193", "text": "String getPath();", "title": "" }, { "docid": "8167d23746b2ea21f634be1cc30ece40", "score": "0.55758893", "text": "public abstract File getDir(String paramString, int paramInt);", "title": "" }, { "docid": "53aa08f4593c2ff9e6f96a66ef4ee8ad", "score": "0.5571355", "text": "public ArrayList<String> cargarAlgoritmos(){\n ArrayList<String> datos = new ArrayList<String>();\n File folder = new File(\"C:\\\\Users\\\\Luis\\\\Desktop\\\\gitKraken\\\\Disenho\\\\proyecto1Disenho\\\\Servidor\\\\Servidor\\\\src\\\\AlgoritmosActivos\");\n File[] listOfFiles = folder.listFiles();\n\n for (int i = 0; i < listOfFiles.length; i++) {\n String dato = listOfFiles[i].getName();\n String modificado = dato.replaceAll(\".java\", \"\");\n datos.add(modificado);\n }\n return datos;\n }", "title": "" }, { "docid": "839bf15d2ba2bc64d70a85b801aaefbc", "score": "0.5570273", "text": "private void guardarArchivo() {\n\n\t\ttry {\n\t\t\t@SuppressWarnings(\"unused\")\n\t\t\tString nombre = \"\";\n\t\t\tJFileChooser file = new JFileChooser();\n\t\t\tfile.showSaveDialog(this);\n\t\t\tFile guardar = file.getSelectedFile();\n\n\t\t\tif (guardar != null) {\n\t\t\t\tnombre = file.getSelectedFile().getName();\n\t\t\t\tFileWriter save = new FileWriter(guardar + \".txt\");\n\t\t\t\tsave.write(areaDeTexto.getText());\n\t\t\t\tsave.close();\n\t\t\t\tJOptionPane.showMessageDialog(null, \"El archivo se ha guardado con éxito\", \"Información\",\n\t\t\t\t\t\tJOptionPane.INFORMATION_MESSAGE);\n\t\t\t}\n\t\t} catch (IOException ex) {\n\t\t\tJOptionPane.showMessageDialog(null, \"Su archivo no se ha guardado\", \"Advertencia\",\n\t\t\t\t\tJOptionPane.WARNING_MESSAGE);\n\t\t}\n\t}", "title": "" }, { "docid": "c6abd2d69178884a92fab3bd5f82d703", "score": "0.5569625", "text": "public void setDataDir(File arg0) {\n\t}", "title": "" }, { "docid": "99929fe444ccaf7964f36e1e2f43111d", "score": "0.5568217", "text": "private File getAbsolutePath(File base) {\n File result = new File(path);\n if (!result.isAbsolute() && null != base) {\n result = new File(base, path);\n } \n return result.getAbsoluteFile();\n }", "title": "" }, { "docid": "74c57965344e37e761c934962f6a789f", "score": "0.55563694", "text": "public static void crearDirectorio() {\n File directorio = new File(\"/home/oracle/NetBeansProjects/arquivos/arquivosdir\");\n directorio.mkdirs();\n }", "title": "" }, { "docid": "98474b0f359d055183846ef2630ccc55", "score": "0.55560976", "text": "public File getWriteFile() {\n String date = formatter.format(TimeUtil.getCurrentLocalDateTime());\n String time = formatterTime.format(TimeUtil.getCurrentLocalDateTime());\n\n String fpath = path.replace(\"%DATE%\", date)\n .replace(\"%TIME%\", time);\n\n File f=new File(fpath);\n File p=f.getParentFile();\n p.mkdirs();\n return f;\n }", "title": "" }, { "docid": "373c99db56330af358022db697de6b76", "score": "0.55471563", "text": "private String getFileHirerachy(String path) {\n\t\tSystem.out.println(\"Input : \" + path + \"\\n\");\n\t\tFile folder = new File(path);\n\n\t\tif (folder.listFiles().length == 0) {\n\t\t\tSystem.out.println(\"Directory is empty\");\n\t\t\tSystem.exit(0);\n\t\t}\n\n\t\tif (folder.isDirectory() && (folder.listFiles().length != 0)) {\n\t\t\tfileList = folder.listFiles();\n\n\t\t\tfor (File file : fileList) {\n\t\t\t\tif (file.isDirectory()) {\n\t\t\t\t\tSystem.out.println(\"Directory -- '\" + file.getName() + \"' \\n child list\");\n\t\t\t\t\tgetChildList(file);\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.println(\"File -- \" + file.getName());\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn s;\n\n\t}", "title": "" }, { "docid": "57f1c2a9dacc77a6cbc6b9a97437a08b", "score": "0.55438405", "text": "@Override\r\n public String getDefaultUserDirectory()\r\n {\n return \"bezma-files\";\r\n }", "title": "" }, { "docid": "0119629ee7a05a458a3d60c719ad4ae7", "score": "0.5536541", "text": "private File getSensorDataDir(String fileName) throws IOException {\n File file = new File(Environment.getExternalStoragePublicDirectory(\n Environment.DIRECTORY_DOWNLOADS), fileName);\n if (!file.createNewFile()) {\n Log.e(\"IO\", \"File not created\");\n }\n return file;\n }", "title": "" }, { "docid": "fff5c5cf6733609918d514c5a4e622b4", "score": "0.5535199", "text": "private String getGuardianFilesDir() {\n String ret = getFilesDir().getAbsolutePath() + \"/guardian/\";\n Log.d(TAG, \"getGuardianFilesDir() \" + ret);\n return ret;\n }", "title": "" }, { "docid": "754c21a0ead734d92cd25645cda174f2", "score": "0.5531303", "text": "public abstract String path();", "title": "" } ]
afea9621b18f9a0060b9c0f631500ec4
Seeks to the required position
[ { "docid": "566ecf4cb1b30ec64df743bc6d3aecf7", "score": "0.0", "text": "public void seekTo(int pos) {\n mMediaPlayerLock.lock();\n if (mMediaPlayer != null) {\n try {\n mMediaPlayer.seekTo(pos);\n } catch (Exception e) {\n mMediaPlayerLock.unlock();\n Log.e(LOGTAG, \"Could not seek to position\");\n }\n }\n mMediaPlayerLock.unlock();\n }", "title": "" } ]
[ { "docid": "aa6365c5140bc42a0400f6301e92b8c4", "score": "0.68800765", "text": "public void seekOpenSpace() {\n seek1();\n setOpenSpace();\n }", "title": "" }, { "docid": "362f32de9972e68f263fabf661faa33d", "score": "0.67807925", "text": "public void seekTo(long position) throws IOException;", "title": "" }, { "docid": "caa89d3e4f15d5732e373ac975d23980", "score": "0.6413848", "text": "public void seek(int pos) throws IOException;", "title": "" }, { "docid": "25ef28b1da9574fa916dd0b611b609c0", "score": "0.6399633", "text": "int nextPosition();", "title": "" }, { "docid": "d98a451905914f8336d2c24d26d7e7b6", "score": "0.6390889", "text": "public static void seek(int offsetval, String position){\n\t\n\t\n}", "title": "" }, { "docid": "50e1a85fa6d8dae02114ddb5d77e3b89", "score": "0.63792723", "text": "@Override\n public void onSeekTo(int i) {\n }", "title": "" }, { "docid": "a1e2690e08956d538acd6bdaae5596f9", "score": "0.63677776", "text": "public void advance( )\n\t{\n\t\tif(!hasCurrent())\n\t\t\tthrow new IllegalStateException(\"No current element - must start traversal using DiskSeq.start()\");\n\t\t++currentIndex;\n\t}", "title": "" }, { "docid": "80b4e772a6008aea3b60b01c98e27298", "score": "0.62664366", "text": "private void seekToNextPos() throws IOException\n {\n if (nextPos<pos) {\n \n long back = pos-nextPos;\n \n // we need to work out what part of ring buffer is read-ahead. The remainder\n int readahead=tail-head;\n if (readahead<0) readahead+=buffer.length;\n // i.e. head=0, tail=4. readahead=4.\n // i.e. head=16382. tail=1. readahead=1-16382+16384 = 3\n \n // work out back buffer. it is size of ring buffer less readahead. Note that\n // what we cannot rollback so far that head=tail. As head=tail has special meaning:\n // buffer is empty.We can only go far back as head=tail+1; which is full buffer.\n int backbuffer = tailLoop ? buffer.length-readahead-1 : head;\n \n // only go back as far as the back buffer\n if (back>backbuffer) {\n back=backbuffer;\n }\n \n head=head-(int)back;\n if (head<0) head+=buffer.length;\n pos=pos-back;\n }\n\n // read backwards - start all over\n if (nextPos<pos) {\n closeStream();\n }\n \n if (nextPos>pos+buffer.length) {\n \t// position is way infront. skip input stream to correct positioning\n \t\n \t// calculate actual position of input stream\n \tlong actualPos=pos;\n \tif (tail>head) {\n \t\tactualPos+=(tail-head);\n \t}\n \tif (tail<head) {\n \t\tactualPos+=(tail+buffer.length-head); \t\t\n \t}\n \t\n \tlong skip = nextPos-actualPos-buffer.length/2;\n \tif (skip>0) {\n \t\tpos=actualPos;\n \t\tinitBuffer();\n \t\thead=0;\n \t\ttail=0;\n \t\ttailLoop=false;\n \t\twhile (skip>0) {\n \t\t\tlong thisSkip = stream.skip(skip);\n \t\t\tif (thisSkip<=0) break;\n \t\t\tpos+=thisSkip;\n \t\t\tskip-=thisSkip;\n \t\t}\n \t}\n }\n \n // read ahead\n while (nextPos>pos) {\n if (head==tail) fillBuffer();\n if (head==tail) break;\n \n long len = nextPos-pos;\n \n int end=tail;\n if (end<head) {\n end=buffer.length;\n }\n if (head+len>end) {\n len=end-head;\n }\n \n head+=(int)len;\n if (head==buffer.length) head=0;\n pos+=len;\n }\n }", "title": "" }, { "docid": "648b2b6a2f581b2cd574fe2f3a6f7a70", "score": "0.62495744", "text": "public void jumpToEnd();", "title": "" }, { "docid": "ec2f72eb79551ddf401e06f015025ec6", "score": "0.6170674", "text": "@DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2014-09-17 15:08:58.403 -0400\", hash_original_method = \"2C48BAC838AD9D3D50EE8F8F29254FE7\", hash_generated_method = \"E356859431098BFF7FEE0CA9FD26334F\")\n \npublic abstract void seekTo(long pos);", "title": "" }, { "docid": "4eed0d42e6c0d2b231ae1e248c467c10", "score": "0.61273086", "text": "public void seek(long pos) throws IOException {\n/* 463 */ super.seek(pos);\n/* */ \n/* 465 */ if (pos >= this.mappedPos && pos < this.mappedUpperBound) {\n/* */ \n/* 467 */ this.mappedBuffer.position((int)(pos - this.mappedPos));\n/* */ }\n/* */ else {\n/* */ \n/* 471 */ int len = (int)Math.min(this.channel.size() - pos, 2147483647L);\n/* 472 */ this.mappedBuffer = getMappedBuffer(len);\n/* */ } \n/* */ }", "title": "" }, { "docid": "ec21fbe97755b92e0041169d2af44792", "score": "0.6117115", "text": "private final int moveCursor(final int num) throws IOException {\n int where = num;\n \n if ((buf.cursor == 0) && (where < 0)) {\n return 0;\n }\n \n if ((buf.cursor == buf.buffer.length()) && (where > 0)) {\n return 0;\n }\n \n if ((buf.cursor + where) < 0) {\n where = -buf.cursor;\n } else if ((buf.cursor + where) > buf.buffer.length()) {\n where = buf.buffer.length() - buf.cursor;\n }\n \n moveInternal(where);\n \n return where;\n }", "title": "" }, { "docid": "982e28a353f8d53bffd0c3c73319d9dc", "score": "0.6114199", "text": "protected void seekToLocation(long pos) throws IOException\n {\n\t// Adjust position based on the file offset\n\n\tpos += _file_offset;\n\tif (debug) {\n\t\t// System.out.println(\"VicarInputFile.seekToLocation pos=\"+pos+\" _file_offset=\"+_file_offset);\n\t}\n\n\t// If random, just seek there. Don't pay attention to _current_file_pos\n\t// because someone might have changed the underlying file.\n\n\tif (_random_allowed) {\n\t stream_seek(pos);\n\t _current_file_pos = pos;\n\t return;\n\t}\n\n\t// Sequential file, we must do some checking\n\n\tif (pos < _current_file_pos)\n\t throw new NonSequentialAccessException(\"Non-sequential access attempted to file, desired pos=\" + pos + \", current pos=\" + _current_file_pos);\n\n\t// If not random, we might need to skip some data\n\n\tif (!_random_allowed && pos > _current_file_pos) {\n\t if (pos - _current_file_pos > Integer.MAX_VALUE)\n\t\tthrow new IOException(\"Attempt to skip too many bytes (\"+ (pos-_current_file_pos) + \") in sequential-only VICAR file\");\n\t stream_skipBytes((int)(pos - _current_file_pos));\n\t _current_file_pos = pos;\n\t}\n }", "title": "" }, { "docid": "bb1c1cb4382b273c7c3d324118bb045e", "score": "0.606668", "text": "@Override\n public void onSeekTo(int arg0) {\n\n }", "title": "" }, { "docid": "4dc11c3c43ad5d1c29319b90d9b12dd5", "score": "0.6059998", "text": "Position returnCurrentPosition();", "title": "" }, { "docid": "a3856b2a2698a0f7611953fee74bc7a9", "score": "0.6058092", "text": "public void gotoInPoint()\n {\n setCurrentIndex(inPoint);\n }", "title": "" }, { "docid": "381823fb271260e7c55bd390c359a56c", "score": "0.6046172", "text": "void seek(int pos) throws ParserException;", "title": "" }, { "docid": "c5936908da3a341d7341bf6212fc40f1", "score": "0.60337776", "text": "public void seekTo(char ch) {\n while (index < length) {\n char curr = raw.charAt(index);\n consume(curr);\n index++;\n if (curr == ch) {\n break;\n }\n }\n furthest = Math.max(index, furthest);\n }", "title": "" }, { "docid": "6a596ff718eb5300c505b97773cdc7fd", "score": "0.60274386", "text": "void scrollToPosition(int position);", "title": "" }, { "docid": "61ed2b76ab3ddadd2557208f385772e5", "score": "0.6020505", "text": "void nextOrderPosition(int direction);", "title": "" }, { "docid": "c63a98aa4c92e832da12a7300e831e22", "score": "0.6009238", "text": "private void seekToSelectedPosition() throws IOException {\n \t\tint pos = positionRequest.getValue();\n \t\tmotor.seek(externalSpeedSlider.getValue(), pos);\n \t\treqUpdate(pos);\n \t\ttorque.setSelected(true);\n \t\tmoving = true;\n \t\tstartUpdates();\n \t}", "title": "" }, { "docid": "8c86fc55971cec7919a90b330d54bb6c", "score": "0.596422", "text": "@Override\n public void seek(long pos) throws IOException {\n final int bi = (int) (pos >> chunkSizePower);\n try {\n if (bi == curBufIndex) {\n curBuf.position((int) (pos & chunkSizeMask));\n } else {\n final ByteBuffer b = buffers[bi];\n b.position((int) (pos & chunkSizeMask));\n // write values, on exception all is unchanged\n this.curBufIndex = bi;\n setCurBuf(b);\n }\n } catch (ArrayIndexOutOfBoundsException | IllegalArgumentException e) {\n throw handlePositionalIOOBE(e, \"seek\", pos);\n } catch (NullPointerException e) {\n throw alreadyClosed(e);\n }\n }", "title": "" }, { "docid": "c956d7b68d80304e2d28efb98b0d2115", "score": "0.59521955", "text": "public static void Pack_Seek(int addr)\r\n\t{\r\n\t\t// if (ISDEBUG && (zJYLibConfig.pack_dbgDataAccess))\r\n\t\t// {\r\n\t\t\t// Dbg(\" Pack_Seek(\"+addr+\") curOffset is \"+s_pack_curOffset);\r\n\t\t// }\r\n\r\n\t\tif (s_pack_curOffset == addr)\r\n\t\t\treturn;\r\n\r\n\t\t// if the current offset is past the destination offset\r\n\t\tif (s_pack_curOffset > addr)\r\n\t\t{\r\n\t\t\t// reset the current offset\r\n\t\t\tif (true && (DevConfig.pack_dbgDataAccess))\r\n\t\t\t{\r\n\t\t\t\tUtils.Dbg(\"Pack Close BAD READING ORDER\");\r\n\t\t\t}\r\n\r\n\t\t\tPack_Close();\r\n\r\n\t\t\tif (s_pack_subPack_curSubPack == 0)\r\n\t\t\t{\r\n\t\t\t\ts_pack_is = Pack_GetInputStreamFromName(s_pack_filename);\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\r\n\t\t\t\tString tempname = s_pack_filename;\r\n\t\t\t\tif(s_pack_filename.endsWith(DevConfig.JY_DATA_SPECIAL_END)){\r\n\t\t\t\t\ttempname = s_pack_filename.substring(0,s_pack_filename.length()-DevConfig.JY_DATA_SPECIAL_END.length());\r\n\t\t\t\t}\r\n\t\t\t\ts_pack_is = Pack_GetInputStreamFromName(tempname + \"_\" + s_pack_subPack_curSubPack+DevConfig.JY_DATA_SPECIAL_END);\r\n\r\n\r\n\t\t\t}\r\n\t\t\tif(!(s_pack_is != null))Utils.DBG_PrintStackTrace(false, \"Pack_Seek.internal error\");;\r\n\t\t}\r\n\t\t// current offset is before the destination offset\r\n\t\telse\r\n\t\t{\r\n\t\t\t// calculate the nb of byte to skip\r\n\t\t\taddr -= s_pack_curOffset;\r\n\t\t}\r\n\r\n\t\t// skip directly to the correct offset\r\n\t\tPack_Skip(addr);\r\n\r\n\t\t// if (ISDEBUG && (zJYLibConfig.pack_dbgDataAccess))\r\n\t\t// {\r\n\t\t\t// Dbg(\" curOffset is now \"+s_pack_curOffset);\r\n\t\t// }\r\n\t}", "title": "" }, { "docid": "912c26c5b350ae0c4dc2f35240d40bec", "score": "0.5921022", "text": "public synchronized void seek(long pos) throws IOException\r\n\t{\r\n\t\tsuper.seek(pos);\r\n\t}", "title": "" }, { "docid": "0b101d6e7c366c3914d4dc75765f5790", "score": "0.59145296", "text": "public abstract void moveForward(int index);", "title": "" }, { "docid": "a432f3fd0e6520c60804571c9299cb33", "score": "0.59069633", "text": "int getStartPos();", "title": "" }, { "docid": "46a5af12f5fc21badb99b2a7c7c64385", "score": "0.58964753", "text": "public abstract int skipTo(int idx);", "title": "" }, { "docid": "daf4700af3d13a27e35ef7ac69e373ac", "score": "0.58776075", "text": "public void seek(long position) {\n \t\tnew Seek(this.source,position).start();\n \t}", "title": "" }, { "docid": "422797bd6bb96050e5a2bf6a5c8f367f", "score": "0.58535373", "text": "public void setToFirst() {\n this.pos = 0;\n setToNext();\n }", "title": "" }, { "docid": "2b8033fc435c4389ec881c96d55890b9", "score": "0.5838746", "text": "public void moveToStart();", "title": "" }, { "docid": "9be3871a9c8767904439bd0cbcc9fae4", "score": "0.5831586", "text": "public void move() {\n\t\tposition += 1;\n\t}", "title": "" }, { "docid": "7281b3f13c852df063250cb4402827fb", "score": "0.58279556", "text": "public void moveToEnd();", "title": "" }, { "docid": "cbc8f57ccbc8a7a92258b92368e6682d", "score": "0.58241653", "text": "@Override\n\tpublic void advance() {}", "title": "" }, { "docid": "4ab5323ee6cac99eb2f120ea11848df1", "score": "0.5787654", "text": "private void advance() {\n\t\tcurrent++;\n\t}", "title": "" }, { "docid": "bfe1d21e293bf516387b6c4b73cdfbc3", "score": "0.5777095", "text": "@Override\n public void seek(long pos) throws IOException {\n try {\n curBuf.position((int) pos);\n } catch (IllegalArgumentException e) {\n throw handlePositionalIOOBE(e, \"seek\", pos);\n } catch (NullPointerException e) {\n throw alreadyClosed(e);\n }\n }", "title": "" }, { "docid": "fa91be825406ae2a6c024f12d7dc5f3a", "score": "0.57743025", "text": "public void goForward() {\n getPos().add(getHead());\n }", "title": "" }, { "docid": "781fcc1646809953c0dfc5da7ce2f58f", "score": "0.5760921", "text": "public static void jumpTo(int index)\n {\n if (current < index) current = index;\n out();\n }", "title": "" }, { "docid": "5f2e6a32f10cebe61af25bbff87b8590", "score": "0.5754355", "text": "protected void advance(){\n current++;\n }", "title": "" }, { "docid": "9c7f73862c988f189538bb7e19e8c95f", "score": "0.574745", "text": "public abstract void advance();", "title": "" }, { "docid": "f2a83449e9770febd035e38c68815421", "score": "0.57398427", "text": "int getNextOffset();", "title": "" }, { "docid": "e50658a8de1ad66dd501ea3ed51967ab", "score": "0.5716081", "text": "public abstract void moveToBeginningOfDocument(final ID sender);", "title": "" }, { "docid": "e5c494f610282c1ccdb0d8b6c8359f50", "score": "0.57083935", "text": "public void movePointer(final long pointer)\n {\n try\n {\n //make sure inside file\n if( pointer > pdf_datafile.length() ){\n\n if(LogWriter.isOutput()) {\n LogWriter.writeLog(\"Attempting to access ref outside file\");\n }\n //throw new PdfException(\"Exception moving file pointer - ref outside file\");\n }else{\n pdf_datafile.seek( pointer );\n }\n }catch( final Exception e ){\n if(LogWriter.isOutput()) {\n LogWriter.writeLog(\"Exception \" + e + \" moving pointer to \" + pointer + \" in file.\");\n }\n }\n }", "title": "" }, { "docid": "eac52d95ceb4fda06ba78f450c2ba562", "score": "0.57082635", "text": "public void gotoOutPoint()\n {\n setCurrentIndex(outPoint);\n }", "title": "" }, { "docid": "47cecf3ae1e8524dfedbac4f1057d424", "score": "0.570009", "text": "Integer getPosition();", "title": "" }, { "docid": "6ec1dce74d101154e4d9d62225bf1f25", "score": "0.5695818", "text": "public void seek(long pos) throws IOException { afp = pos; }", "title": "" }, { "docid": "d4eabffa0d115f768e7d0abb7c4f40e9", "score": "0.56947124", "text": "void moveTo(Position p);", "title": "" }, { "docid": "d81efa9890e28a3f6b39e4c187f01e82", "score": "0.568058", "text": "synchronized void goToBlock(int block) throws IOException\r\n\t{\r\n\t\tseek(superblock.datastart + superblock.blocksize*block);\r\n\t}", "title": "" }, { "docid": "fae42b58bf399e3675d58a77c9b6412f", "score": "0.5676846", "text": "public static int getFirstChildPosOfStep(int opPos) {\n/* 367 */ return opPos + 3;\n/* */ }", "title": "" }, { "docid": "b8bb103c07bfa075de068df4abaf5f29", "score": "0.56748223", "text": "boolean moveHarvesterToUpPosition();", "title": "" }, { "docid": "254ae7ba013f77b8f83d9f7426080553", "score": "0.56732476", "text": "public void moveForward() {\n location = getNextLocation();\n }", "title": "" }, { "docid": "8f87bdcfb6b2749da4c2719bc496de89", "score": "0.5666889", "text": "public synchronized void seek(long p) throws RemoteException, IOException {\n\n\t\tif (!open) {\n\t\t\tthrow new IOException();\n\t\t}\n\n\t\tpos = p;\n\t}", "title": "" }, { "docid": "8bf7d4e1119639d332f96a9d231537f9", "score": "0.56661177", "text": "protected int getStartPos()\r\n\t{\n\t\treturn 0;\r\n\t}", "title": "" }, { "docid": "c665892c16a2b6e6f7e4791418d46623", "score": "0.56650263", "text": "@Override\n public void onClick(View arg0) {\n int currentPosition = mp.getCurrentPosition();\n // check if seekForward time is lesser than song duration\n if(currentPosition + seekForwardTime <= mp.getDuration()){\n // forward song\n mp.seekTo(currentPosition + seekForwardTime);\n }else{\n // forward to end position\n mp.seekTo(mp.getDuration());\n }\n }", "title": "" }, { "docid": "9f5ca344055fc7ea216b629983d0f13b", "score": "0.5633056", "text": "private static TripleID goTo(IteratorTripleID i, TripleComponentRole r, int target) {\n i.goToStart();\n TripleID curr;\n while(i.hasNext()) {\n curr = i.next();\n if(getId(curr, r) >= target) {\n return curr;\n }\n }\n return null;\n }", "title": "" }, { "docid": "8a93e6f5a0094aeec9271061b9d51e7e", "score": "0.5616201", "text": "public int beginOffset(int group);", "title": "" }, { "docid": "d31a7ad29219f4e3207789cdd5253a4f", "score": "0.5615313", "text": "int getPosition();", "title": "" }, { "docid": "d31a7ad29219f4e3207789cdd5253a4f", "score": "0.5615313", "text": "int getPosition();", "title": "" }, { "docid": "d31a7ad29219f4e3207789cdd5253a4f", "score": "0.5615313", "text": "int getPosition();", "title": "" }, { "docid": "913c10beede0cf38997956490190bcd7", "score": "0.56124705", "text": "private void restorePosition() throws IOException\n {\n randomAccessRead.seek(startPosition + currentPosition);\n }", "title": "" }, { "docid": "f33cdeb73b9c2af866d37421b4ada067", "score": "0.5611722", "text": "public abstract int getposition();", "title": "" }, { "docid": "677760e815c2a217e791701f70ccdf02", "score": "0.5610634", "text": "public void jump()\n {\n Grid<Actor> grid = getGrid();\n Location currentLoc = getLocation();\n Location oneNext = currentLoc.getAdjacentLocation(getDirection());\n Location twoNext = oneNext.getAdjacentLocation(getDirection());\n \n if (grid.isValid(twoNext))\n moveTo(twoNext);\n else\n turn();\n }", "title": "" }, { "docid": "bce26499af4a8369bc88dacd0c17aa02", "score": "0.5602862", "text": "private void nextPlayer(){\n\t\tthis.currentPlayerPosition = (this.currentPlayerPosition + 1) % 2;\n\t}", "title": "" }, { "docid": "ccd7d71710073cca0f2c06b54733570a", "score": "0.5600987", "text": "public abstract int getStartingIndex();", "title": "" }, { "docid": "5340ae909fc22c607a0d7dc9508efa5f", "score": "0.55939925", "text": "public void advance( )\n\t{\n\t\tassert wellFormed() : \"invariant wrong at start of advance()\";\n\t\t// TODO: Implemented by student (can use recursive helper or a while loop)\n\t\t// NB: Must be efficient if tree is balanced.\n\t\t\n\t\tif(isCurrent() != true) {\n\t\t\tthrow new IllegalStateException(\"Cursor was null\");\n\t\t}\n\t\t\n\t\tcursor = cursor.right;\n\t\t\n\t\tassert wellFormed() : \"invariant wrong at end of advance()\";\n\t}", "title": "" }, { "docid": "ab41ce596dd2186de2ac0d71fa096407", "score": "0.55907655", "text": "public abstract void moveToBeginningOfLine(final ID sender);", "title": "" }, { "docid": "55853f1d94c19388c69fdffb715633fc", "score": "0.5580082", "text": "@Override\n\tpublic int getPosition() {\n\t\treturn 0;\n\t}", "title": "" }, { "docid": "b2c2311c4051f7d5d2e617b48e535b81", "score": "0.55664176", "text": "public abstract void moveToFront(int index);", "title": "" }, { "docid": "a31e3ebc22d3322f26e283b464948998", "score": "0.556268", "text": "public void moveToLimit() {\n cpStart=cpLimit=limit;\n }", "title": "" }, { "docid": "edd9ac8d8324c550742b0733695d6126", "score": "0.5561166", "text": "public static void jumpToStartPosition() throws InvalidOperationException {\n\t\tif (!isReplay())\n\t\t\tthrow new InvalidOperationException(\"Game is not in replay mode\");\n\t\tGame curGame = QuoridorApplication.getQuoridor().getCurrentGame();\n\t\tGamePosition startPosition = curGame.getPosition(0);\n\t\tcurGame.setCurrentPosition(startPosition);\n\t}", "title": "" }, { "docid": "357ad1eb78b71b301e43fedaef8fd44f", "score": "0.55585575", "text": "int previousPosition();", "title": "" }, { "docid": "452e6154c4616c5d8e5cda676f974dcd", "score": "0.5553059", "text": "public void seekTo(long offsetMs) {\n Log.d(\"afspiler seekTo \" + offsetMs);\n mediaPlayer.seekTo(offsetMs);\n for (Runnable runnable : positionsobservatører) {\n runnable.run();\n }\n }", "title": "" }, { "docid": "79fa256561b7646217464e3c7b7ebe7e", "score": "0.5548246", "text": "@Override\n\tvoid advance() {\n\t}", "title": "" }, { "docid": "7f505f604d5ad191f26af067676bb277", "score": "0.5547687", "text": "public abstract int getPosition();", "title": "" }, { "docid": "7f505f604d5ad191f26af067676bb277", "score": "0.5547687", "text": "public abstract int getPosition();", "title": "" }, { "docid": "946402bd466c7cd8dc30038b68bc1627", "score": "0.55434245", "text": "public Future<Boolean> scrollTo(Point pos);", "title": "" }, { "docid": "cd12f60d35032b75f979e1de653f4055", "score": "0.5543407", "text": "@Override\n public void onSeekTo(int i) {\n mHandler.postDelayed(runnable, 100);\n }", "title": "" }, { "docid": "70d11162c894e9164a777e89b7b3e428", "score": "0.5542285", "text": "@Override\n public int getPosition() {\n return 0;\n }", "title": "" }, { "docid": "1e2c2bb46ebfa95eabd9db90120229f1", "score": "0.5534652", "text": "protected void stream_seek(long pos) throws IOException\n {\n\tif (_input_stream instanceof SeekableStream) {\n\t ((SeekableStream)_input_stream).seek(pos);\n\t return;\n\t}\n\n\tif (_input_stream instanceof ImageInputStream) {\n\t ((ImageInputStream)_input_stream).seek(pos);\n\t return;\n\t}\n\n\tthrow new UnsupportedOperationException(\"Seek not supported for this stream type\");\n }", "title": "" }, { "docid": "0d40aa5c9efaf95c2e90fe08f189403b", "score": "0.55278313", "text": "void playAndSeek(int positionMs);", "title": "" }, { "docid": "836f3a9ab07955479a336ace60b36681", "score": "0.55269736", "text": "private int actionPosition(List<Action> list, String seekAction) {\r\n \t\tint position = 0;\r\n \t\tfor (Action action : list) {\r\n \t\t\tif (action.getName().equals(seekAction)) {\r\n \t\t\t\tbreak;\r\n \t\t\t} else {\r\n \t\t\t\tposition++;\r\n \t\t\t}\r\n \t\t}\r\n \t\treturn position;\r\n \t}", "title": "" }, { "docid": "a175bbcfec19c3932e34de3651ba0e40", "score": "0.55229765", "text": "public synchronized void nextPos() {\r\n // decrement position\r\n messageX -= speed;\r\n // and stay in the bounds\r\n if ((messageX + messageW) < 0) {\r\n\tmessageX = lastS.width;\r\n }\r\n // indirectly call update\r\n repaint();\r\n }", "title": "" }, { "docid": "73db4cc73ab9b2e5cdc3f416b99daf2c", "score": "0.55197823", "text": "@Override\n public void execute() {\n m_indexer.advance();\n }", "title": "" }, { "docid": "c9c018b5b10778de008493469cc59d6c", "score": "0.5519252", "text": "public int findStartIndex();", "title": "" }, { "docid": "a255f8dfc811c5f9254e5fefff0951fb", "score": "0.5517792", "text": "public static Position traverseForward(Position position, Integer cols) {\n if (position.getCol().equals(cols - 1)) {\n /* Store the path in the allPaths ArrayList */\n if(!allPaths.contains(position.getRowPos())) {\n if(isMinimum(position.getRowPos())) {\n allPaths.add(position.getRowPos());\n }\n }\n return null;\n } else {\n /*\n Increment the col index as it should proceed to next col in each iteration\n Update the RowPos registration (2 Steps)\n */\n position.setCol(position.getCol() + 1);\n position.deleteRowPosIntegerItems(position.getCol());\n position.addRowPos(position.getRow() + \"\");\n\n return position;\n }\n }", "title": "" }, { "docid": "3bc4c4fb38c0ef64d2e2e2233b3b7604", "score": "0.5510273", "text": "public void seek(int offset) throws IOException {\n\t\treset();\n\t\tint actual = skipBytes(offset);\n\t\tif (actual != offset) {\n\t\t\tthrow new IllegalStateException(\"Skip(\" + offset + \") only skipped \" + actual + \" bytes\");\n\t\t}\n\t}", "title": "" }, { "docid": "7544e881d41f2e5471691b525c0ebfa0", "score": "0.5509628", "text": "public long tellPosition()\n {\n initialize_();\n long fileOffset = 0;\n try {fileOffset = File.getFilePointer();} \n catch (IOException e){Utilities.fatalError(\"MyInputFile::tell IOException{\"\n +\"exception=\"+Utilities.toString(e) +\"\\t\"\n +\"FileName=\" +FileName +\"\\t\"\n +\"stack=\" +Utilities.nest() +\"}\");}\n int bytes = 0;\n if (BufferStartOffset == 0 && BufferEndOffset == 0)bytes = 0 ;else //empty\n if (BufferStartOffset < BufferEndOffset )bytes = BufferEndOffset-BufferStartOffset;else //continuous\n bytes = Buffer.length-BufferStartOffset+BufferEndOffset; //wrapped\n long offset = CurrentFileOffset + fileOffset - bytes;\n return offset;\n }", "title": "" }, { "docid": "0e75744ffa4e0c8795b0c496d197f7ed", "score": "0.5506568", "text": "private int moveForwards() {\n // This will point us to the next tile to use\n if (mPath.size() == 0) {\n return Integer.MAX_VALUE;\n }\n int nextNode = mPath.pop();\n if (!Reference.isValid(mGraph.getNode(nextNode).getHexTile())) {\n mPath = new ArrayDeque<Integer>();\n return Integer.MAX_VALUE;\n }\n HexagonTile nextTile = mGraph.getNode(nextNode).getHexTile().get();\n Player nextTilePlayer = nextTile.getClaimant();\n while (nextTilePlayer != null\n && nextTilePlayer.getNetworkObject().getOwnerId()\n == getPlayer().getNetworkObject().getOwnerId()) {\n mGone.push(nextNode);\n if (mPath.size() == 0) {\n return Integer.MAX_VALUE;\n }\n nextNode = mPath.pop();\n if (!Reference.isValid(mGraph.getNode(nextNode).getHexTile())) {\n return Integer.MAX_VALUE;\n }\n\n nextTile = mGraph.getNode(nextNode).getHexTile().get();\n nextTilePlayer = nextTile.getClaimant();\n }\n\n return nextNode;\n }", "title": "" }, { "docid": "ef0fd640c543f0a5c79b06fbe5f10f53", "score": "0.5504522", "text": "synchronized void goToNode(int inode) throws IOException\r\n\t{\r\n\t\tseek(superblock.inodestart + inode*superblock.inodesize);\r\n\t}", "title": "" }, { "docid": "867321f14de510c3d5e2aa31b937fb1e", "score": "0.55014455", "text": "long getPosition();", "title": "" }, { "docid": "8103b075a79e34436496833be480a7af", "score": "0.548624", "text": "boolean moveHarvesterToDownPosition();", "title": "" }, { "docid": "892f6d7b245578fc6c058a4103f6f085", "score": "0.54802305", "text": "public abstract void movetoBack(int index);", "title": "" }, { "docid": "392e367694291a4d096364de17ea0e3b", "score": "0.5464009", "text": "public void moveToTop(int index) throws IllegalArgumentException;", "title": "" }, { "docid": "10b774fd63f68cf359916f6f610d6abb", "score": "0.5459439", "text": "private void doMove() {\n JJVector ownPosition = this.getOwnPosition();\n\n JJVector destinationEdge = this.edges[this.currentEdge];\n if (ownPosition.dist(destinationEdge) <= 100) {\n // next edge\n this.currentEdge = (this.currentEdge + 1) % 4;\n destinationEdge = this.edges[this.currentEdge];\n }\n // drive in the direction of that edge\n JJVector directionVector = destinationEdge.minus(ownPosition);\n int direction = (int) directionVector.angle();\n this.ownMovementDirection = direction;\n this.drive(direction, maxNavigationSpeed);\n }", "title": "" }, { "docid": "afae3a46f1206f02340589c6cf01f683", "score": "0.545745", "text": "private static void moveTargetCursor(int i) {\n\t\t// TODO Auto-generated method stub\n\t\t\n\t}", "title": "" }, { "docid": "90afda3b25701741f51178faaaa19a4b", "score": "0.54563", "text": "int position();", "title": "" }, { "docid": "200c2c4ac4c108297b29fac5bd549667", "score": "0.5451926", "text": "public void increment(){\n\t\t\n\t\tpos++;\n\t\t\n\t}", "title": "" }, { "docid": "f24e4e23f58a12a05578c77115699191", "score": "0.5451322", "text": "long getNextIndex();", "title": "" }, { "docid": "35f5fb26a8e0f51723a4712c184ca45d", "score": "0.5445423", "text": "private void setUpNextMove() {\n to = controller.baseMapLayer.getTile(recipient.getX(), recipient.getY());\n\n /* Extract next move. */\n Tile again = controller.findNextMove(next, to);\n\n /* Assign next Action accordingly. */\n if (again != null) { // not there yet? keep moving!\n controller.actionIssuer.interactiveMove(source, recipient, next, again, to);\n } else if (next == to) { // right at the desired destination? try to interact\n recipient.tryInteractionFrom(source);\n }\n }", "title": "" }, { "docid": "073d9d369647b0ab2c3cda735c9f09f0", "score": "0.5436624", "text": "private int startPosition(int pos, int start, int Period) {\n int t = (pos - start) % Period;\n return t == 0 ? pos : pos + (Period - t);\n }", "title": "" }, { "docid": "7ead5cc1b5b13f2dbfb2c0acc6bcf91f", "score": "0.5435832", "text": "public void scrollBaseInnaturalPosition();", "title": "" }, { "docid": "34b84804a8ddc367bd64d5466192bf3b", "score": "0.54315346", "text": "private void setPos(long pos, int bi) throws IOException {\n try {\n final ByteBuffer b = buffers[bi];\n b.position((int) (pos & chunkSizeMask));\n this.curBufIndex = bi;\n setCurBuf(b);\n } catch (ArrayIndexOutOfBoundsException | IllegalArgumentException aioobe) {\n throw handlePositionalIOOBE(aioobe, \"read\", pos);\n } catch (NullPointerException e) {\n throw alreadyClosed(e);\n }\n }", "title": "" } ]
074fa8986d86bdca6b5211ebbd3d10f9
Returns the references Data for the item
[ { "docid": "b299c7655a5c8b06b2b1812d8e15944d", "score": "0.7327514", "text": "public Map<Integer, Map<Integer, List<Map>>> getReferenceData() {\n prepareReferenceValues();\n return ReferenceData;\n }", "title": "" } ]
[ { "docid": "09a219555a13fb2889896a5a8c380555", "score": "0.7348584", "text": "public abstract ReferenceData getReferenceData();", "title": "" }, { "docid": "9558e6e991d561ad7a8b807381a3caf3", "score": "0.728068", "text": "public Object getReferenceData() {\n return referenceData;\n }", "title": "" }, { "docid": "b4d5a7399b1090f2495325a9adff4974", "score": "0.6849357", "text": "public int getReferenceData() {\n return referenceData_;\n }", "title": "" }, { "docid": "6172ee88b0ca62feb7fb9ba2c5c99efe", "score": "0.68130374", "text": "int getReferenceData();", "title": "" }, { "docid": "996052c675dcba44223bbfd2dae67c76", "score": "0.68067986", "text": "public int getReferenceData() {\n return referenceData_;\n }", "title": "" }, { "docid": "1a04dd9b5509e3a43ffe82d829b842eb", "score": "0.6672847", "text": "public ReferenceItem getReferenceItem( )\n {\n ReferenceItem item = new ReferenceItem( );\n item.setCode( _strId );\n item.setName( getLabel( ) );\n item.setChecked( true );\n return item;\n }", "title": "" }, { "docid": "b17e3a53719bdf9f474dfed187f8b573", "score": "0.65962815", "text": "public static DatabaseReference getmDataRef() {\n return mDataRef;\n }", "title": "" }, { "docid": "582caee8d8279a1b2c3c10ac4ddcc728", "score": "0.63330275", "text": "public T getDataItem() {\n \treturn this.dataItem;\n }", "title": "" }, { "docid": "57be31e853b87d9ce12e2ad46ef55748", "score": "0.6298722", "text": "private static IData getReference() {\n IData reference = IDataFactory.create();\n IDataCursor cursor = reference.getCursor();\n\n try {\n cursor.insertAfter(\"uuid\", UUIDHelper.generate());\n cursor.insertAfter(\"datetime\", getDateTime());\n } finally {\n cursor.destroy();\n }\n\n return reference;\n }", "title": "" }, { "docid": "c16d561195d73cf5c58e5394e4abaf27", "score": "0.6242334", "text": "public ObservableList<Item> getItemData() {\n\t\treturn itemData;\n\t}", "title": "" }, { "docid": "44e63f36a58ce3b49a6eed4c69a2d4ea", "score": "0.621796", "text": "public ReObjectRel[] getItem(){\r\n return localItem;\r\n }", "title": "" }, { "docid": "ef833e56b71d80ae2e8c841b994e4131", "score": "0.61981994", "text": "public Reference referencedItem() {\n return getObject(Reference.class, FhirPropertyNames.PROPERTY_REFERENCED_ITEM);\n }", "title": "" }, { "docid": "f1eeec9d7c4488504fbd0bb596c172a2", "score": "0.61545056", "text": "T getData()\n {\n return data; // return item in this node\n }", "title": "" }, { "docid": "158654d59895a30fb1ca114732b4aa13", "score": "0.6132009", "text": "public Reference item() {\n return getObject(Reference.class, FhirPropertyNames.PROPERTY_ITEM);\n }", "title": "" }, { "docid": "ba1d4518d91d7135fdc24e848a062a0b", "score": "0.6078102", "text": "public List<String> references(){\n\t\tif(hasObject()) return Arrays.asList(objectItemID);\n\t\telse return new ArrayList<String>();\n\t}", "title": "" }, { "docid": "bea98f62b3723ecdff78b57e1adc7269", "score": "0.597509", "text": "Object getDataItem(int dataItemID);", "title": "" }, { "docid": "0ccd945680e5c4b7ce4ec4e1a5c354c5", "score": "0.5943054", "text": "public int getReferenceItemId()\n\t{\n\t\treturn _refId;\n\t}", "title": "" }, { "docid": "1871b7d6219d380a519080aa8b204cda", "score": "0.59301895", "text": "@Override\n public List<ILinkedListData<Integer>> getData() {\n List<ILinkedListData<Integer>> data = new ArrayList<>();\n\n data.add(this.getListData(0));\n data.add(this.getListData(50));\n data.add(this.getListData(100));\n\n return data;\n }", "title": "" }, { "docid": "05e6d5a723dc6c83bac8c82426490b1f", "score": "0.5889844", "text": "public ReIdentParex[] getItem(){\r\n return localItem;\r\n }", "title": "" }, { "docid": "c0e8a0edbd56eeee2bcf1fe9c659773b", "score": "0.58660585", "text": "public ReContract[] getItem(){\r\n return localItem;\r\n }", "title": "" }, { "docid": "c76711dca8854e71ff2c0f23f20b570d", "score": "0.5777594", "text": "public Object getData() {\n return this.data;\n }", "title": "" }, { "docid": "4324bc53f161ded9147900e29aadaac8", "score": "0.57645905", "text": "public Object getData() {\n\t\treturn data;\n\t}", "title": "" }, { "docid": "a5d19934a9115d413ea0ba39f6498463", "score": "0.5749332", "text": "public static IData getReferences(String packageName) {\n return getReferences(getPackage(packageName));\n }", "title": "" }, { "docid": "6a4927cd52cf35a3d3a0953494967b93", "score": "0.57177526", "text": "public Object getData()\n {\n return _data;\n }", "title": "" }, { "docid": "390b20ea8e5be2afb463c85bc0950e3b", "score": "0.5688047", "text": "public Bapiparex[] getItem(){\r\n return localItem;\r\n }", "title": "" }, { "docid": "78c3f306eeb9487f629a6a66c3d6cd0f", "score": "0.56811714", "text": "@Override\n\tpublic Object getData() {\n\t\treturn mData;\n\t}", "title": "" }, { "docid": "339886cfc6cfa310e919b289d121ab5d", "score": "0.56532294", "text": "public ContactsData getData() {\r\n\t\treturn data;\r\n\t}", "title": "" }, { "docid": "ed4fc009ceea03c725d91288231d7e4d", "score": "0.5640259", "text": "public DataStack getData() {\r\n return data;\r\n }", "title": "" }, { "docid": "f3e98db38914d31c96e63b0961e9f12f", "score": "0.56285346", "text": "public final MultiDataObject getDataObject () {\n return MultiDataObject.this;\n }", "title": "" }, { "docid": "ad9980120d43dd34af05fd0f629003b8", "score": "0.5623959", "text": "public Object getData() {\n return data;\n }", "title": "" }, { "docid": "f84a89088433e9fcd825444830358e19", "score": "0.5611866", "text": "private E getData() {\n\t\t\treturn data;\n\t\t}", "title": "" }, { "docid": "625c9d300031a85fef7b5493c1ad6824", "score": "0.5583614", "text": "public Data getData();", "title": "" }, { "docid": "a59c1496e38467eab6f026a3e09f4bf4", "score": "0.55817324", "text": "public final Object getData() {\r\n return data;\r\n }", "title": "" }, { "docid": "3e4fc0e3cc59eaa524f5f3b648c6141a", "score": "0.5571954", "text": "public ModelData getItem() {\n return item;\n }", "title": "" }, { "docid": "ddd6f49fb897725e527359c4b733fd97", "score": "0.55670285", "text": "public T getData() {\n\t\t\treturn this.data;\n\t\t}", "title": "" }, { "docid": "57a5168b0de0be4d29efed92b71e05a9", "score": "0.5561425", "text": "public ReCondDist[] getItem(){\r\n return localItem;\r\n }", "title": "" }, { "docid": "07d1683c0d94e2666a8ff8b166e9c6fb", "score": "0.5560999", "text": "public Object getReference() {\n return _reference;\n }", "title": "" }, { "docid": "af37efad40de7d7c48f921406c815047", "score": "0.55552626", "text": "public DataObject getDataObject() \n\t\t\t{\n\t\t\tif (m_DataObjectList.size() == 0)\n\t\t\t\treturn (null);\n\t\t\telse\n\t\t\t\treturn (m_DataObjectList.get(0));\n\t\t\t}", "title": "" }, { "docid": "af37efad40de7d7c48f921406c815047", "score": "0.55552626", "text": "public DataObject getDataObject() \n\t\t\t{\n\t\t\tif (m_DataObjectList.size() == 0)\n\t\t\t\treturn (null);\n\t\t\telse\n\t\t\t\treturn (m_DataObjectList.get(0));\n\t\t\t}", "title": "" }, { "docid": "72d98fdd5376f9a62e79d54b0b4fcf9f", "score": "0.55396587", "text": "public T getData() {\n\t\t\treturn data;\n\t\t}", "title": "" }, { "docid": "cd3c5eaa8f7ef66f88c842c2a74504a3", "score": "0.5535336", "text": "public Bapiret2[] getItem(){\r\n return localItem;\r\n }", "title": "" }, { "docid": "e9417f3dec71e93749be2186a11bb466", "score": "0.5535323", "text": "@Override\n\tpublic String getReference() {\n\t\treturn this.getExtra().getRef().getReference();\n\t}", "title": "" }, { "docid": "121c55c155af5350717299220f0e3502", "score": "0.5530204", "text": "public final DataObject getDataObject () {\n return myEntry.getDataObject();\n }", "title": "" }, { "docid": "fe756e8a523be0565e467c6ef701e005", "score": "0.5500062", "text": "public Map<String, String> getAppData() {\n addParams(\"itemId\", this.itemNumId);\n return null;\n }", "title": "" }, { "docid": "882b4952efb843bc86d0df4ae282dc35", "score": "0.5495925", "text": "public T getData(){\n\t\treturn this.data;\n\t}", "title": "" }, { "docid": "7b79d45577ef26a4ff752cb6a0deafd1", "score": "0.5483273", "text": "@Override\n\tpublic BaseEntry getData() {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "a65d998d33086de9bb922407b485cf42", "score": "0.5479109", "text": "public\n Object getData()\n {\n return data;\n }", "title": "" }, { "docid": "9299e0b48850a76853e14d01c59b1ef6", "score": "0.5471966", "text": "public ArrayList<Reference> get_references_list(){\n\t\treturn references_list;\n\t}", "title": "" }, { "docid": "6465a794447bab1ef1c536c83f6f946c", "score": "0.54606485", "text": "public Object getData() {\n\t\tif (logger.isDebugEnabled()) {\n\t\t\tlogger.debug(\"getData() - start\");\n\t\t}\n\n\t\tif (logger.isDebugEnabled()) {\n\t\t\tlogger.debug(\"getData() - end\");\n\t\t}\n\t\treturn data;\n\t}", "title": "" }, { "docid": "9c6d9502f8f51b7446a3ba882d6da787", "score": "0.54589885", "text": "public ReTermRh[] getItem(){\r\n return localItem;\r\n }", "title": "" }, { "docid": "7e9b88a2c1a6b8fa7c767eab69ee86ed", "score": "0.54538864", "text": "public E getData() {\n\t\treturn data;\n\t}", "title": "" }, { "docid": "a5d88f3e5052a1b69bd41e3498e94446", "score": "0.5441023", "text": "public String getData() {\r\n return _data;\r\n }", "title": "" }, { "docid": "ef5bb25ba98d709873b25b9de50e936e", "score": "0.54371494", "text": "public ArrayList getData() {\n return this.fileData;\r\n }", "title": "" }, { "docid": "bc8355ebefcc65ea81c26d4a9d086491", "score": "0.5436584", "text": "private Sequence makeItemDataList() throws G2AccessException\n {\n \n Sequence items = ((WorkspaceData)data).items;\n int count = items.size();\n if (count == 0)\n return null;\n \n Sequence itemDataList = new Sequence();\n for (int i = 0; i < count; i++) {\n Structure info = ((G2__BaseImpl)items.elementAt(i)).getInitialInfo();\n itemDataList.addElement(info);\n }\n return itemDataList;\n \n }", "title": "" }, { "docid": "98555c3ab5fdcc752ab53a210fbffeef", "score": "0.54365355", "text": "public E getData()\n\t{\n\t\treturn data;\n\t}", "title": "" }, { "docid": "9aa5634f6ac61d5cc1fd425f163024ac", "score": "0.543535", "text": "public Vector<Object> getData() {\n\t\ttry {\n\t\t\tif (ok) return getSpecificData();\n\t\t\telse return null;\n\t\t} catch (NumberFormatException e) {\n\t\t\treturn null;\n\t\t}\n\t}", "title": "" }, { "docid": "e10e46fa9f43549c3e2eb859ca386047", "score": "0.5431251", "text": "public StrColumn getDataReference() {\n return (StrColumn) (isText ? textFields.computeIfAbsent(\"data_reference\", StrColumn::new) :\n getBinaryColumn(\"data_reference\"));\n }", "title": "" }, { "docid": "338dcb3793c14ce5b431fb7bd97e580d", "score": "0.5430264", "text": "public T getData() {\r\n\t\treturn data;\r\n\t}", "title": "" }, { "docid": "ee4cf53023acbc0ba590a1bab6e47818", "score": "0.54275626", "text": "public T getData() {\n\t\treturn data;\n\t}", "title": "" }, { "docid": "ee4cf53023acbc0ba590a1bab6e47818", "score": "0.54275626", "text": "public T getData() {\n\t\treturn data;\n\t}", "title": "" }, { "docid": "7f45daba01a10580abb275d7f4869ee2", "score": "0.54161674", "text": "public String getData() {\r\n\t\treturn String.join(\":\", (new String[] {item.getData(), zz+\"\", lifeTime+\"\", time+\"\", xa+\"\", ya+\"\", za+\"\"}));\r\n\t}", "title": "" }, { "docid": "8d4ed1278d46b7b16f489e2d540a3eda", "score": "0.5398387", "text": "public Ztbh002[] getItem(){\r\n return localItem;\r\n }", "title": "" }, { "docid": "cfa63931bbdcd4a2212dd0bcc581bef2", "score": "0.53913814", "text": "public DataNode data() {\n return this.data;\n }", "title": "" }, { "docid": "a4e3a2850e39f7829482151eda348719", "score": "0.53845227", "text": "public ReTermOa[] getItem(){\r\n return localItem;\r\n }", "title": "" }, { "docid": "1f48b0a801bbc09863159e5807c3aef8", "score": "0.53841937", "text": "public JSONArray getParsedReference() {\n return parsedReference;\n }", "title": "" }, { "docid": "237f73cff1dbfc6ab5f2d55c4b8e24e8", "score": "0.5380355", "text": "@Override\r\n public ArcElementData getData() {\r\n return (ArcElementData) super.getData();\r\n }", "title": "" }, { "docid": "1170dc5738e25832995cbfbb509ede8f", "score": "0.53717446", "text": "@Override\r\n\tpublic InsuranceData getData() {\n\t\treturn data;\r\n\t}", "title": "" }, { "docid": "7aaa6eae30adbba9d9c921052bbf2a09", "score": "0.53680056", "text": "public java.lang.String getItemUri() {\n java.lang.Object ref = itemUri_;\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 itemUri_ = s;\n }\n return s;\n }\n }", "title": "" }, { "docid": "7aaa6eae30adbba9d9c921052bbf2a09", "score": "0.53680056", "text": "public java.lang.String getItemUri() {\n java.lang.Object ref = itemUri_;\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 itemUri_ = s;\n }\n return s;\n }\n }", "title": "" }, { "docid": "7aaa6eae30adbba9d9c921052bbf2a09", "score": "0.53680056", "text": "public java.lang.String getItemUri() {\n java.lang.Object ref = itemUri_;\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 itemUri_ = s;\n }\n return s;\n }\n }", "title": "" }, { "docid": "7aaa6eae30adbba9d9c921052bbf2a09", "score": "0.53680056", "text": "public java.lang.String getItemUri() {\n java.lang.Object ref = itemUri_;\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 itemUri_ = s;\n }\n return s;\n }\n }", "title": "" }, { "docid": "6b434d5cb4859d2afffd2ffbae8fc5ab", "score": "0.53671294", "text": "@Override\n\tpublic String getReference() {\n\t\treturn this.extra.getRef().getReference();\n\t}", "title": "" }, { "docid": "89738d8950fb8e1760243ab90530b20a", "score": "0.5367095", "text": "public Ztbh001[] getItem(){\r\n return localItem;\r\n }", "title": "" }, { "docid": "5ae769411d4a54c87e1adb5c6e9ce1eb", "score": "0.5367076", "text": "public LevelData getData(){\n\t\treturn data;\n\t}", "title": "" }, { "docid": "6e2eeef08ab5292d73275445426b5631", "score": "0.53652304", "text": "public E getData(){\n\t\treturn data;\r\n\t}", "title": "" }, { "docid": "7be3baef0d537f51db862a3f770ade38", "score": "0.53610915", "text": "private List<Metadata.Item> getMetadata() {\n return current_metadata==null ? null : Collections.unmodifiableList(current_metadata);\n }", "title": "" }, { "docid": "2d6a38ddf8f042ebb3eaf1f9abff2fd6", "score": "0.5358546", "text": "public ISlideData[] getData() {\r\n return data;\r\n }", "title": "" }, { "docid": "905a296f41583919344b9a8067ca872c", "score": "0.5357467", "text": "public E getData() {\n return data;\n }", "title": "" }, { "docid": "93088c89ba289177cbb27bb57d83557b", "score": "0.5355462", "text": "public E getData()\n {\n return data;\n }", "title": "" }, { "docid": "cab6c2d586edf9c3799f067973b5b244", "score": "0.5354742", "text": "public RePartner[] getItem(){\r\n return localItem;\r\n }", "title": "" }, { "docid": "fad7aaeccaee9d431efd5e3dee277661", "score": "0.535226", "text": "public HashMap<String, String> getData() {\n\n return data;\n }", "title": "" }, { "docid": "7a4a2324fa41b6a0e8b88c6daef242d3", "score": "0.5339239", "text": "public pe.com.grupobbva.pf.pec6.CtBodyRs getData() {\r\n return data;\r\n }", "title": "" }, { "docid": "b695d9da9d7c8d3710eb356774736d7f", "score": "0.5325048", "text": "public double[] getRefValues() {\n return refValues;\n }", "title": "" }, { "docid": "5b0501c59a57128fffbf0c9d946456e6", "score": "0.5319294", "text": "public T getData() \n\t{\n\t\treturn data;\n\t}", "title": "" }, { "docid": "160c5296a7935cd0b3462be69a79ca2d", "score": "0.5311762", "text": "public T getData() {\n return this.data;\n }", "title": "" }, { "docid": "3b4a606bf427cc5dd14de9931d040e11", "score": "0.53106874", "text": "public static final byte[] generateReferenceData() {\r\n\t\tByteBuffer buffer = ByteBuffer.allocate(cacheFileManagers.length * 8);\r\n\t\tfor (int index = 0; index < cacheFileManagers.length; index++) {\r\n\t\t\tif (cacheFileManagers[index] == null) {\r\n\t\t\t\tbuffer.putInt(index == 24 ? 609698396 : 0);\r\n\t\t\t\tbuffer.putInt(0);\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\t\t\tbuffer.putInt(cacheFileManagers[index].getInformation().getInformationContainer().getCrc());\r\n\t\t\tbuffer.putInt(cacheFileManagers[index].getInformation().getRevision());\r\n\t\t}\r\n\t\treturn buffer.array();\r\n\t}", "title": "" }, { "docid": "1e31474f91bd3407d7b6d51f9e840973", "score": "0.53087175", "text": "public T getData() \r\n\t{\r\n\t\treturn data;\r\n\t}", "title": "" }, { "docid": "aeb2f1aa78a8272d49d9462271bcf18c", "score": "0.53087103", "text": "public Reference getRefid() {\n return ref;\n }", "title": "" }, { "docid": "6aa10223cbcbb192252bc7f5aabd8746", "score": "0.53076506", "text": "public String getData()\n\t{\n\t\treturn mData;\n\t}", "title": "" }, { "docid": "7f025d233fb58888f592ba0222eed962", "score": "0.53069866", "text": "public java.lang.String getItemUri() {\n java.lang.Object ref = itemUri_;\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 itemUri_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "title": "" }, { "docid": "7f025d233fb58888f592ba0222eed962", "score": "0.53069866", "text": "public java.lang.String getItemUri() {\n java.lang.Object ref = itemUri_;\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 itemUri_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "title": "" }, { "docid": "7f025d233fb58888f592ba0222eed962", "score": "0.53069866", "text": "public java.lang.String getItemUri() {\n java.lang.Object ref = itemUri_;\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 itemUri_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "title": "" }, { "docid": "7f025d233fb58888f592ba0222eed962", "score": "0.53069866", "text": "public java.lang.String getItemUri() {\n java.lang.Object ref = itemUri_;\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 itemUri_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "title": "" }, { "docid": "7eccfb9759b2efc88c85d78b891b4c07", "score": "0.53055245", "text": "public ArrayList<T> getData() {\n return data;\n }", "title": "" }, { "docid": "989b72353d975af59cce1a9aa3a0e4ab", "score": "0.53055", "text": "eicio.Model.Reference getRecs(int index);", "title": "" }, { "docid": "794f10652993e533fa69384b441a5255", "score": "0.5305442", "text": "public String getData() {\n\t\treturn data;\n\t}", "title": "" }, { "docid": "49c6160f0744d95b94cd3049d2a47b31", "score": "0.53024364", "text": "public java.lang.String getItemUri() {\n java.lang.Object ref = itemUri_;\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 itemUri_ = s;\n }\n return s;\n }\n }", "title": "" }, { "docid": "49c6160f0744d95b94cd3049d2a47b31", "score": "0.53024364", "text": "public java.lang.String getItemUri() {\n java.lang.Object ref = itemUri_;\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 itemUri_ = s;\n }\n return s;\n }\n }", "title": "" }, { "docid": "f71381ac633e5e14831af0f6e8609013", "score": "0.5300735", "text": "public ZsciVicncn[] getItem(){\r\n return localItem;\r\n }", "title": "" }, { "docid": "5ad98703fba6d52c7af4b53dcef23273", "score": "0.52983165", "text": "public ReTermSrRh[] getItem(){\r\n return localItem;\r\n }", "title": "" } ]
44ecc7a98b4b2176e26d50b58dbbc4f1
The template for a CacheContract update operation, containing all the settings that can be modified.
[ { "docid": "5f248a272a63fb61ec8f2b10d1352702", "score": "0.64854133", "text": "interface Update extends Appliable<CacheContract>, UpdateStages.WithIfMatch, UpdateStages.WithDescription, UpdateStages.WithResourceId {\n }", "title": "" } ]
[ { "docid": "5204b7535d63e11a006bf7b146879832", "score": "0.57888436", "text": "interface UpdateStages {\n /**\n * The stage of the cachecontract update allowing to specify IfMatch.\n */\n interface WithIfMatch {\n /**\n * Specifies ifMatch.\n * @param ifMatch ETag of the Entity. Not required when creating an entity, but required when updating an entity\n * @return the next update stage\n */\n Update withIfMatch(String ifMatch);\n }\n\n /**\n * The stage of the cachecontract update allowing to specify Description.\n */\n interface WithDescription {\n /**\n * Specifies description.\n * @param description Cache description\n * @return the next update stage\n */\n Update withDescription(String description);\n }\n\n /**\n * The stage of the cachecontract update allowing to specify ResourceId.\n */\n interface WithResourceId {\n /**\n * Specifies resourceId.\n * @param resourceId Original uri of entity in external system cache points to\n * @return the next update stage\n */\n Update withResourceId(String resourceId);\n }\n\n }", "title": "" }, { "docid": "41562c53b66ece19833910366f7c7fb9", "score": "0.5683214", "text": "public UnaryCallSettings<UpdateNetworkRequest, Operation> updateNetworkSettings() {\n return ((BareMetalSolutionStubSettings) getStubSettings()).updateNetworkSettings();\n }", "title": "" }, { "docid": "951b07cf130f2067d2c4497f1b9d0dd3", "score": "0.55703354", "text": "interface Update extends UpdateStages.WithProperties {\n /**\n * Executes the update request.\n *\n * @return the updated resource.\n */\n Endpoint apply();\n\n /**\n * Executes the update request.\n *\n * @param context The context to associate with this operation.\n * @return the updated resource.\n */\n Endpoint apply(Context context);\n }", "title": "" }, { "docid": "2d3954b576cfff36335d772a3c1f854d", "score": "0.5569675", "text": "@Override\n\tprotected void doUpdate(RuntimeRequest request) {\n\n\t}", "title": "" }, { "docid": "0f14f3467ac8c4bdee50d64a66980661", "score": "0.55340534", "text": "public OperationCallSettings<UpdateNetworkRequest, Network, OperationMetadata>\n updateNetworkOperationSettings() {\n return ((BareMetalSolutionStubSettings) getStubSettings()).updateNetworkOperationSettings();\n }", "title": "" }, { "docid": "bd72248ac1c8618e9997b6daffd5fc4c", "score": "0.54979944", "text": "@Override\n\tpublic void Update(SatisContract entity) {\n\n\t}", "title": "" }, { "docid": "bdeaa292b536370e346988c4ed147b63", "score": "0.5453268", "text": "public void performConfigUpdate( JsonObject config ) throws CompileException, IOException {\n cache.put( config.get( \"key\" ).getAsInt(), config.get( \"value\").getAsInt() );\n }", "title": "" }, { "docid": "bc3efa755ace363c8dd2f4351c51aa23", "score": "0.5367091", "text": "public UnaryCallSettings.Builder<UpdateNetworkRequest, Operation> updateNetworkSettings() {\n return getStubSettingsBuilder().updateNetworkSettings();\n }", "title": "" }, { "docid": "6bd861c8b22029da5d9311d256d2ede7", "score": "0.53208476", "text": "public UnaryCallSettings<UpdateVolumeRequest, Operation> updateVolumeSettings() {\n return ((BareMetalSolutionStubSettings) getStubSettings()).updateVolumeSettings();\n }", "title": "" }, { "docid": "f2ff71e98f908986d33d50b7c2e22d4b", "score": "0.53150725", "text": "Endpoint.Update update();", "title": "" }, { "docid": "8d767ad6c2567120db55b55d0efaa932", "score": "0.52879095", "text": "public UnaryCallSettings<UpdateInstanceRequest, Operation> updateInstanceSettings() {\n return ((BareMetalSolutionStubSettings) getStubSettings()).updateInstanceSettings();\n }", "title": "" }, { "docid": "dc96b74c7ec89dc3da4ed3f044072eac", "score": "0.52833766", "text": "interface Update extends\n Resource.UpdateWithTags<KubernetesCluster.Update>,\n Appliable<KubernetesCluster>,\n KubernetesCluster.UpdateStages.WithUpdateAgentPoolCount {\n }", "title": "" }, { "docid": "018dd00d590d5ba41aeb1be113867559", "score": "0.5233407", "text": "interface Update extends Appliable<ProductPolicyContract>, UpdateStages.WithIfMatch, UpdateStages.WithFormat {\n }", "title": "" }, { "docid": "f39f54da4fd9e0d8f5c083936ee6fb18", "score": "0.5232245", "text": "Update withProperties(EndpointBaseUpdateProperties properties);", "title": "" }, { "docid": "b5b11b13dce4d23737712ace2115dbf0", "score": "0.52214026", "text": "interface Update extends Appliable<ApiVersionSetContract>, UpdateStages.WithIfMatch, UpdateStages.WithDescription, UpdateStages.WithVersionHeaderName, UpdateStages.WithVersionQueryName {\n }", "title": "" }, { "docid": "4caa9a8fd7e5134dc8a597d5c238e2eb", "score": "0.52207094", "text": "public OperationCallSettings<UpdateVolumeRequest, Volume, OperationMetadata>\n updateVolumeOperationSettings() {\n return ((BareMetalSolutionStubSettings) getStubSettings()).updateVolumeOperationSettings();\n }", "title": "" }, { "docid": "fca27c7b90296bd2cd0f36ea41ba0811", "score": "0.5169246", "text": "public OperationCallSettings<UpdateNfsShareRequest, NfsShare, OperationMetadata>\n updateNfsShareOperationSettings() {\n return ((BareMetalSolutionStubSettings) getStubSettings()).updateNfsShareOperationSettings();\n }", "title": "" }, { "docid": "9c756be770e366c4eddfebe35b7eeb16", "score": "0.5168029", "text": "public OperationCallSettings<UpdateInstanceRequest, Instance, OperationMetadata>\n updateInstanceOperationSettings() {\n return ((BareMetalSolutionStubSettings) getStubSettings()).updateInstanceOperationSettings();\n }", "title": "" }, { "docid": "46aed1d3ad20239b2e3ac94795d59fe2", "score": "0.51613384", "text": "public OperationCallSettings.Builder<UpdateNetworkRequest, Network, OperationMetadata>\n updateNetworkOperationSettings() {\n return getStubSettingsBuilder().updateNetworkOperationSettings();\n }", "title": "" }, { "docid": "733ba7feb6f18d9eadec7859f1112173", "score": "0.515113", "text": "void updateConfiguration(Map<String, Object> config);", "title": "" }, { "docid": "3a9f5cea3f581b7ffe5da703c58f8bbf", "score": "0.51462865", "text": "interface Update extends Appliable<DdosCustomPolicy>, Resource.UpdateWithTags<Update>, UpdateStages.WithProtocolCustomSettings {\n }", "title": "" }, { "docid": "e6c1d80b0c17ae9327ac849a119f6cb0", "score": "0.5107878", "text": "public ODocument updateConfiguration();", "title": "" }, { "docid": "b9e01a73f6adcf026069379e7c6989e6", "score": "0.5100895", "text": "interface Update extends UpdateStages.WithTags {\n /**\n * Executes the update request.\n *\n * @return the updated resource.\n */\n VirtualNetworkGatewayConnection apply();\n\n /**\n * Executes the update request.\n *\n * @param context The context to associate with this operation.\n * @return the updated resource.\n */\n VirtualNetworkGatewayConnection apply(Context context);\n }", "title": "" }, { "docid": "29fba0ac6f472bd14aee0e9bbeaeca46", "score": "0.5099781", "text": "interface Update extends\n Appliable<NamespaceAuthorizationRule>,\n AuthorizationRule.UpdateStages.WithListenOrSendOrManage<Update> {\n }", "title": "" }, { "docid": "5d30fd019763c12b72f29208a80b9e6d", "score": "0.50776833", "text": "public UnaryCallSettings.Builder<UpdateVolumeRequest, Operation> updateVolumeSettings() {\n return getStubSettingsBuilder().updateVolumeSettings();\n }", "title": "" }, { "docid": "ab208c462d3c07cd78b84fe92e9e8900", "score": "0.5058093", "text": "@Test\r\n public void test_update() throws Exception {\r\n long directProjectId = instance.create(config);\r\n\r\n config.setAvailableImmediateBudget(15);\r\n instance.update(config);\r\n\r\n DirectProjectCPConfig entity = getEntity(sessionFactory, DirectProjectCPConfig.class, directProjectId);\r\n\r\n assertEquals(\"'update' should be correct.\", config.getDirectProjectId(), entity.getDirectProjectId());\r\n assertEquals(\"'update' should be correct.\", config.getAvailableImmediateBudget(), entity\r\n .getAvailableImmediateBudget(), 0.001);\r\n assertEquals(\"'update' should be correct.\", config.isUseCP(), entity.isUseCP());\r\n }", "title": "" }, { "docid": "39fa1d55bab5e999a36f54c8100f717b", "score": "0.5041683", "text": "interface WithDescription {\n /**\n * Specifies description.\n * @param description Cache description\n * @return the next update stage\n */\n Update withDescription(String description);\n }", "title": "" }, { "docid": "7d52eb91002e7f71f9eb08396b2e9cbe", "score": "0.5041433", "text": "public UnaryCallSettings<UpdateNfsShareRequest, Operation> updateNfsShareSettings() {\n return ((BareMetalSolutionStubSettings) getStubSettings()).updateNfsShareSettings();\n }", "title": "" }, { "docid": "d0969f75072652201aa6d44631371867", "score": "0.50412", "text": "interface Update extends\n Settable<NetworkInterface.Update>,\n UpdateStages.WithSubnet,\n UpdateStages.WithPrivateIp,\n UpdateStages.WithPublicIpAddress {\n }", "title": "" }, { "docid": "c0f5b39928a506dbdd5a42ceb7e83ef9", "score": "0.50220835", "text": "interface Update extends Appliable<IntegrationAccountSchema>, UpdateStages.WithContent, UpdateStages.WithContentType, UpdateStages.WithDocumentName, UpdateStages.WithFileName, UpdateStages.WithLocation, UpdateStages.WithMetadata, UpdateStages.WithTags, UpdateStages.WithTargetNamespace {\n }", "title": "" }, { "docid": "536363221b986f2c18e3678da19ce51d", "score": "0.50097734", "text": "void updateCacheStatus(String cacheName, ClusterCacheStatus cacheStatus) throws Exception;", "title": "" }, { "docid": "4e68f895ac4e4d424ac1d19a3fcfef9e", "score": "0.4989767", "text": "VirtualNetworkGatewayConnection.Update update();", "title": "" }, { "docid": "78ea9981e053636d01db7e28e6153242", "score": "0.49755034", "text": "public void applyConfigurations(Hashtable updates);", "title": "" }, { "docid": "d738005d456465f5158866f6afee82da", "score": "0.4943491", "text": "Service updateService(Service serviceTemplate);", "title": "" }, { "docid": "947f6912ce0c3d12e654d42c2a8bc516", "score": "0.49358585", "text": "public OperationCallSettings.Builder<UpdateVolumeRequest, Volume, OperationMetadata>\n updateVolumeOperationSettings() {\n return getStubSettingsBuilder().updateVolumeOperationSettings();\n }", "title": "" }, { "docid": "8c9a476c2fc401cf04e0eb5e47ea78f0", "score": "0.49326503", "text": "public void setUpdateMode(UpdateMode updateMode);", "title": "" }, { "docid": "4ac2494a67a2b2384491846bab9bb1a4", "score": "0.4930975", "text": "interface Update extends Appliable<PrivateEndpointConnection>, UpdateStages.WithProperties {\n }", "title": "" }, { "docid": "fc973536fbe4802f0261b827e36dd40d", "score": "0.49169946", "text": "public UnaryCallSettings.Builder<UpdateInstanceRequest, Operation> updateInstanceSettings() {\n return getStubSettingsBuilder().updateInstanceSettings();\n }", "title": "" }, { "docid": "9815155753c67348a3982dfaae90900d", "score": "0.49168316", "text": "@Override\n\tpublic void update(Map<String, Object> params)\n\t{\n\t}", "title": "" }, { "docid": "a693287644ea08a2197e21afb4da5876", "score": "0.49052405", "text": "void updatePut();", "title": "" }, { "docid": "359570c55ee22cbe7e466a108d4869d8", "score": "0.48861873", "text": "private void update(CacheHolder ch, boolean overwrite) {\n\t\tthis.setRecommendationScore(ch.getRecommendationScore());\n\t\tthis.setNumFoundsSinceRecommendation(ch\n\t\t\t\t.getNumFoundsSinceRecommendation());\n\t\tthis.setNumRecommended(ch.getNumRecommended());\n\t\tif (overwrite) {\n\t\t\tthis.setCacheStatus(ch.getCacheStatus());\n\t\t\tthis.setFound(ch.isFound());\n\t\t\tthis.setPos(ch.getPos());\n\t\t} else {\n\t\t\t/*\n\t\t\t * Here we have to distinguish several cases: this.is_found this ch\n\t\t\t * Update 'this'\n\t\t\t * ----------------------------------------------------\n\t\t\t * ---------------- false empty yyyy-mm-dd yes true \"Found\"\n\t\t\t * yyyy-mm-dd yes true yyyy-mm-dd yyyy-mm-dd no (or yes) true\n\t\t\t * yyyy-mm-dd hh:mm yyyy-mm-dd no any any empty no\n\t\t\t */\n\t\t\tif (!this.isFound() || this.getCacheStatus().indexOf(\":\") < 0) {\n\t\t\t\t// don't overwrite with empty data\n\t\t\t\tif (!ch.getCacheStatus().trim().equals(\"\")) {\n\t\t\t\t\tthis.setCacheStatus(ch.getCacheStatus());\n\t\t\t\t}\n\t\t\t\tthis.setFound(ch.isFound());\n\t\t\t}\n\t\t\t// Don't overwrite valid coordinates with invalid ones\n\t\t\tif (ch.getPos().isValid() || !this.getPos().isValid()) {\n\t\t\t\tthis.setPos(ch.getPos());\n\t\t\t}\n\t\t}\n\t\tthis.setWayPoint(ch.getWayPoint());\n\t\tthis.setCacheName(ch.getCacheName());\n\t\tthis.setCacheOwner(ch.getCacheOwner());\n\n\t\tthis.setDateHidden(ch.getDateHidden());\n\t\tthis.setCacheSize(ch.getCacheSize());\n\t\tthis.setKilom(ch.getKilom());\n\t\tthis.setDegrees(ch.getDegrees());\n\t\tthis.setDifficulty(ch.getDifficulty());\n\t\tthis.setTerrain(ch.getTerrain());\n\t\tthis.setType(ch.getType());\n\t\tthis.setArchived(ch.isArchived());\n\t\tthis.setAvailable(ch.isAvailable());\n\t\tthis.setOwned(ch.isOwned());\n\t\tthis.setFiltered(ch.isFiltered());\n\t\tthis.setIncomplete(ch.isIncomplete());\n\t\tthis.setAddiWpts(ch.getAddiWpts());\n\t\tthis.setMainCache(ch.getMainCache());\n\t\tthis.setOcCacheID(ch.getOcCacheID());\n\t\tthis.setNoFindLogs(ch.getNoFindLogs());\n\t\tthis.setHasBugs(ch.hasBugs());\n\t\tthis.setHTML(ch.isHTML());\n\t\tthis.setLastSync(ch.getLastSync());\n\n\t\tthis.setAttributesYes(ch.getAttributesYes());\n\t\tthis.setAttributesNo(ch.getAttributesNo());\n\t\tif (ch.detailsLoaded()) {\n\t\t\tthis.getFreshDetails().update(ch.getFreshDetails());\n\t\t}\n\t}", "title": "" }, { "docid": "e1cd2080259184500e2e3d1cf219d42f", "score": "0.48861596", "text": "public OperationCallSettings.Builder<UpdateNfsShareRequest, NfsShare, OperationMetadata>\n updateNfsShareOperationSettings() {\n return getStubSettingsBuilder().updateNfsShareOperationSettings();\n }", "title": "" }, { "docid": "a677bc48a461f74f72ad2c14fd63960c", "score": "0.4882753", "text": "@Override\r\n public void update(GridGetdataActionResult component, RenderWriter out) throws RenderException {\n }", "title": "" }, { "docid": "4399073fc6193de62f126fe1e9b7d18f", "score": "0.48817846", "text": "interface WithFormat {\n /**\n * Specifies format.\n * @param format Format of the policyContent. Possible values include: 'xml', 'xml-link', 'rawxml', 'rawxml-link'\n * @return the next update stage\n */\n Update withFormat(PolicyContentFormat format);\n }", "title": "" }, { "docid": "b288286af379babedac0829ac84ffc6c", "score": "0.48788437", "text": "interface Update extends Appliable<RecoveryServicesProvider>, UpdateStages.WithProperties {\n }", "title": "" }, { "docid": "c1f495917f30681e940b5183240b62f6", "score": "0.48465362", "text": "@Override\n\tpublic void updatePortfolio(Contract contract, double position, double marketPrice, double marketValue,\n\t\t\tdouble averageCost, double unrealizedPNL, double realizedPNL, String accountName) {\n\t\t\n\t}", "title": "" }, { "docid": "4ab797eda130f3ff2ba063347836179d", "score": "0.4832217", "text": "interface Update extends UpdateStages.WithTags, UpdateStages.WithRackLocation, UpdateStages.WithRackSerialNumber {\n /**\n * Executes the update request.\n *\n * @return the updated resource.\n */\n Rack apply();\n\n /**\n * Executes the update request.\n *\n * @param context The context to associate with this operation.\n * @return the updated resource.\n */\n Rack apply(Context context);\n }", "title": "" }, { "docid": "025c5e5de1523c76eac70670e7052737", "score": "0.48212105", "text": "@Override\n void updateCacheStats(@SuppressWarnings(\"unused\") boolean increment,\n @SuppressWarnings(\"unused\") Evictor evictor) {\n }", "title": "" }, { "docid": "49ebcb03257c45fe3d1c724cc73f3d5f", "score": "0.48196974", "text": "void update(GraphLayoutCache cache);", "title": "" }, { "docid": "0f9c1a8e23a080bb725269758afece78", "score": "0.48015743", "text": "void update() throws ProductionException;", "title": "" }, { "docid": "78a42dc4310b2603a55016da26b3f46f", "score": "0.47946915", "text": "@Override\n\tpublic void updateModel(RuntimeRequest request) {\n\n\t}", "title": "" }, { "docid": "ac5b9708354d06e224bb4d85b98fcf5e", "score": "0.4789507", "text": "public OperationCallSettings.Builder<UpdateInstanceRequest, Instance, OperationMetadata>\n updateInstanceOperationSettings() {\n return getStubSettingsBuilder().updateInstanceOperationSettings();\n }", "title": "" }, { "docid": "a1bf635a2d2066cf0ca06849f72714dc", "score": "0.47886944", "text": "@Override\n public Charge update(Map<String, Object> params) throws StripeException {\n return update(params, (RequestOptions) null);\n }", "title": "" }, { "docid": "d69ad2bc2adea30f2dea7c5bfd4e79c9", "score": "0.47752494", "text": "public void update(Map<String, Object> args) {\n if (!toUpdate.isEmpty() || !args.isEmpty()) {\n // Merge cached setters and live args together before updating.\n Map<String, Object> mergedArgs = \n new LinkedHashMap<String, Object>();\n mergedArgs.putAll(toUpdate);\n mergedArgs.putAll(args);\n\n if (mergedArgs.containsKey(\"name\") && !isNameChangeAllowed()) {\n throw new IllegalStateException(\"Cannot set 'name' on an existing entity.\");\n }\n\n service.post(actionPath(\"edit\"), mergedArgs);\n toUpdate.clear();\n invalidate();\n }\n }", "title": "" }, { "docid": "7aa9731a869bc1a55e30bb2943013f18", "score": "0.47710595", "text": "public UnaryCallSettings.Builder<UpdateNfsShareRequest, Operation> updateNfsShareSettings() {\n return getStubSettingsBuilder().updateNfsShareSettings();\n }", "title": "" }, { "docid": "98f412d0c17ef180249fb62e569cc44c", "score": "0.47617224", "text": "@SuppressWarnings(\"rawtypes\")\n\t@Override\n public void updated(Dictionary settings) throws ConfigurationException {\n \tInvocationUtil.invokeUpdated(m_component.getExecutor(), () -> doUpdated(settings));\n }", "title": "" }, { "docid": "ed49be7da0bc660ed3d1580f94b1d62f", "score": "0.47590163", "text": "@Override\n\tpublic void update(Cart_VO cart_VO) {\n\t\t\n\t}", "title": "" }, { "docid": "df37ce536ae4366085dce737ee0a0826", "score": "0.47542822", "text": "public interface CacheControl {\n\n /**\n * <span class=\"changed_modified_3_0\">Get</span>\n * the currently set expiration time. \n * <span class=\"changed_modified_3_0\"> \n * If no expiration time has been \n * explicitly set on this response, the default defined in the portlet \n * deployment descriptor with the <code>expiration-cache</code> tag is returned; If\n * no default value is provided in the portlet deployment descriptor, \n * 0 is returned.\n * </span>\n * <p>\n * This call returns the same value as the\n * <code>getProperty(EXPIRATION_CACHE)</code>\n * call.\n * \n * @return the currently set expiration time in seconds;\n * <span class=\"changed_modified_3_0\"> \n * 0 indicates caching is disabled for this portlet;\n * -1 indicates the cache does not expire.\n * </span> \n */\n public int getExpirationTime();\n \n /**\n * Sets a new expiration time for the current response\n * in seconds.\n * <p>\n * If the expiration value is set to 0, caching is disabled for this\n * portlet; if the value is set to -1, the cache does not expire.\n * <p>\n * This call is equivalent to calling\n * <code>setProperty(EXPIRATION_CACHE)</code>.\n * \n * @param time expiration time in seconds\n */\n public void setExpirationTime(int time);\n \n \n /**\n * Returns a boolean indicating whether the\n * caching scope is set to public for the current response.\n * If no caching scope is set on this response, the default \n * defined in the deployment descriptor with the\n * <code>cache-scope</code> tag is returned,\n \t * or <code>false</code> if no default is defined.\n * <p>\n * Public cache scope indicates that the cache entry can be shared across\n * users. Non-public, or private cache scope indicates that the cache entry\n * must not be shared across users.\n * <p>\n * This call is equivalent to calling\n * <code>getProperty(CACHE_SCOPE).equals(PUBLIC_SCOPE)</code>.\n * \n * @return true if the cache scope is public for the\n * current response.\n */\n public boolean isPublicScope();\n \n /**\n * Sets the caching scope for the current response\n * to public with <code>true</code> as \n * <code>publicScope</code> and to private with\n * <code>false</code> as <code>publicScope</code>.\n * <p>\n * Public cache scope indicates that the cache entry can be shared across\n * users. Non-public, or private cache scope indicates that the cache entry \n * must not be shared across users.\n * <p>\n * This call is equivalent to calling\n * <code>(publicScope ? setProperty(CACHE_SCOPE, PUBLIC_SCOPE | \n * setProperty(CACHE_SCOPE, PRIVATE_SCOPE)</code>.\n * \n * @param publicScope indicating if the cache entry can be shared across users\n */\n public void setPublicScope(boolean publicScope);\n \n /**\n * Returns the ETag for the current response that is\n * used as validation tag, or <code>null</code>\n * if no ETag is set on the response.\n * <p>\n * This call is equivalent to calling\n * <code>getProperty(ETAG)</code>.\n * \n * @return the ETag for the current response that is\n * used as validation tag, or <code>null</code>\n * if no ETag is set.\n */\n public String getETag();\n \n /**\n * Sets an ETag for the current response that is\n * used as validation tag. If an ETag was already\n * set it is replaced with the new value.\n * <p>\n * This call is equivalent to calling\n * <code>setProperty(ETAG, token)</code>.\n * <p>\n * Setting the ETag to <code>null</code> removes\n * the currently set ETag.\n * \n * @param token the ETag token\n */\n public void setETag(String token);\n \n \n /**\n * Returns a boolean indicating whether the\n * cached content for the provided ETag at the request\n * can still be considerated valid.\n * If not set, the default is <code>false</code>.\n * <p>\n * This call is equivalent to calling\n * <code>getProperty(USE_CACHED_CONTENT)</code> and getting a non-null\n * value back.\n * \n * @return boolean indicating whether the\n * caching scope is set to public for the current response\n */\n public boolean useCachedContent();\n \n /**\n * Sets the indication whether the cached content\n * for the provided ETag at the request is still valid or not.\n * If set to <code>true</code> no output should be rendered,\n * but a new expiration time should be set for the\n * markup with the given ETag . \n * <p>\n * This call is equivalent to calling\n * <code>setProperty(USE_CACHED_CONTENT, \"true\")</code>.\n * \n * @param useCachedContent boolean indication whether the\n * the cached content is still valid or not\n */\n public void setUseCachedContent(boolean useCachedContent);\n\n}", "title": "" }, { "docid": "63919b7395193c6ce4a7e06eccac3d03", "score": "0.4753523", "text": "interface UpdateStages {\n /**\n * The stage of the productpolicycontract update allowing to specify IfMatch.\n */\n interface WithIfMatch {\n /**\n * Specifies ifMatch.\n * @param ifMatch ETag of the Entity. Not required when creating an entity, but required when updating an entity\n * @return the next update stage\n */\n Update withIfMatch(String ifMatch);\n }\n\n /**\n * The stage of the productpolicycontract update allowing to specify Format.\n */\n interface WithFormat {\n /**\n * Specifies format.\n * @param format Format of the policyContent. Possible values include: 'xml', 'xml-link', 'rawxml', 'rawxml-link'\n * @return the next update stage\n */\n Update withFormat(PolicyContentFormat format);\n }\n\n }", "title": "" }, { "docid": "28efd6bba79725381e8876934790d13a", "score": "0.47529712", "text": "public abstract FunctionResult<Type> update();", "title": "" }, { "docid": "1c026c39c98d03703260e24e2217c8ac", "score": "0.47495386", "text": "public abstract boolean update(SessionImplementor session, Object key, Object value, Object currentVersion, Object previousVersion)\n\t\t\tthrows CacheException;", "title": "" }, { "docid": "94b31ce7d01a150e8cfe196e9a76d5b6", "score": "0.47491798", "text": "public ApiContractUpdateProperties() {\n }", "title": "" }, { "docid": "3331d017976a4a2702fccdcd3505f5f1", "score": "0.4731465", "text": "Request update(String key, Serializable value);", "title": "" }, { "docid": "aa2fdd5d6821f1b25f7a30a22ef7f986", "score": "0.47244528", "text": "CallRouting update(CallRouting callRouting) throws EntityNotFoundException;", "title": "" }, { "docid": "6238ceafb39defa3f701b2acec8ff5f8", "score": "0.4716461", "text": "public Update update(Map<String, Object> values) throws StorageAccessException {\n throw new UnsupportedOperationException(\"Unsupported update action for \" + implName + \" implementation\");\n }", "title": "" }, { "docid": "3b7c2a2074fcaccc39065e13dcf78e68", "score": "0.47100064", "text": "void onUpdate(CacheItem<?> item);", "title": "" }, { "docid": "254e5e8cf81e103b8b860e83fb4cef05", "score": "0.47088996", "text": "@Override\n\tpublic boolean updateApplyContract(ApplyContract ac) {\n\t\tSession session = HibernateSessionFactory.createSessionFactory().getCurrentSession();\n\t\tboolean flag = false;\n\t\t\n\t\ttry {\n\n\t\t\tsession.beginTransaction();\n\t\t\t\n\t\t\tsession.update(ac);\n\t\t\t\n\t\t\tsession.getTransaction().commit();\n\t\t\tflag = true;\n\t\t} catch(HibernateException e) {\n\t\t\tflag = false;\nSystem.out.println(\"更新申请合同时,出现错误!\");\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\treturn flag;\n\t}", "title": "" }, { "docid": "ceeb1e9d60dd95caddd230a81af93fca", "score": "0.4707735", "text": "@PUT\n @Consumes(MediaType.APPLICATION_JSON)\n @Produces(MediaType.APPLICATION_JSON)\n @RolesAllowed({\"ADMIN\"})\n public Response update(Settings settings) {\n LOGGER.traceEntry(\"update({})\", settings);\n\n try {\n settings.checkValidity();\n settingsDAO.update(settings);\n\n LOGGER.traceExit(settings);\n return Response.ok(settings).build();\n } catch (Exception e) {\n return ResourceErrorHandler.createRESTErrorMessage(\"SettingsResource.update\",\n Response.Status.BAD_REQUEST, e);\n }\n }", "title": "" }, { "docid": "40fb5b6340a71c8612fc36e03ed2e346", "score": "0.47016066", "text": "RefreshPolicy(ConfigFetcher configFetcher, ConfigCache cache) {\n this.configFetcher = configFetcher;\n this.cache = cache;\n }", "title": "" }, { "docid": "3bc93c4a468bd3a117d1aee65e373710", "score": "0.46937272", "text": "public NetworkUpdateBuilder networkUpdate();", "title": "" }, { "docid": "1789361c93fb64d67b052b2572385f0f", "score": "0.4687097", "text": "@Override\n public void update(Object updateData) {\n }", "title": "" }, { "docid": "33f9c1ab679957b7010adeaec469f7db", "score": "0.4656945", "text": "@Override\n public SourceControlUpdateResponse update(String name, SourceControlUpdateParameters parameters) throws IOException, ServiceException {\n // Validate\n if (name == null) {\n throw new NullPointerException(\"name\");\n }\n if (parameters == null) {\n throw new NullPointerException(\"parameters\");\n }\n if (parameters.getProperties() == null) {\n throw new NullPointerException(\"parameters.Properties\");\n }\n \n // Tracing\n boolean shouldTrace = CloudTracing.getIsEnabled();\n String invocationId = null;\n if (shouldTrace) {\n invocationId = Long.toString(CloudTracing.getNextInvocationId());\n HashMap<String, Object> tracingParameters = new HashMap<String, Object>();\n tracingParameters.put(\"name\", name);\n tracingParameters.put(\"parameters\", parameters);\n CloudTracing.enter(invocationId, this, \"updateAsync\", tracingParameters);\n }\n \n // Construct URL\n String url = \"\";\n url = url + \"/providers/\";\n url = url + \"Microsoft.Web\";\n url = url + \"/SourceControls/\";\n url = url + URLEncoder.encode(name, \"UTF-8\");\n ArrayList<String> queryParameters = new ArrayList<String>();\n queryParameters.add(\"api-version=\" + \"2014-06-01\");\n if (queryParameters.size() > 0) {\n url = url + \"?\" + CollectionStringBuilder.join(queryParameters, \"&\");\n }\n String baseUrl = this.getClient().getBaseUri().toString();\n // Trim '/' character from the end of baseUrl and beginning of url.\n if (baseUrl.charAt(baseUrl.length() - 1) == '/') {\n baseUrl = baseUrl.substring(0, (baseUrl.length() - 1) + 0);\n }\n if (url.charAt(0) == '/') {\n url = url.substring(1);\n }\n url = baseUrl + \"/\" + url;\n url = url.replace(\" \", \"%20\");\n \n // Create HTTP transport objects\n HttpPut httpRequest = new HttpPut(url);\n \n // Set Headers\n httpRequest.setHeader(\"Content-Type\", \"application/json; charset=utf-8\");\n \n // Serialize Request\n String requestContent = null;\n JsonNode requestDoc = null;\n \n ObjectMapper objectMapper = new ObjectMapper();\n ObjectNode sourceControlUpdateParametersValue = objectMapper.createObjectNode();\n requestDoc = sourceControlUpdateParametersValue;\n \n ObjectNode propertiesValue = objectMapper.createObjectNode();\n ((ObjectNode) sourceControlUpdateParametersValue).put(\"properties\", propertiesValue);\n \n if (parameters.getProperties().getToken() != null) {\n ((ObjectNode) propertiesValue).put(\"token\", parameters.getProperties().getToken());\n }\n \n if (parameters.getProperties().getTokenSecret() != null) {\n ((ObjectNode) propertiesValue).put(\"tokenSecret\", parameters.getProperties().getTokenSecret());\n }\n \n StringWriter stringWriter = new StringWriter();\n objectMapper.writeValue(stringWriter, requestDoc);\n requestContent = stringWriter.toString();\n StringEntity entity = new StringEntity(requestContent);\n httpRequest.setEntity(entity);\n httpRequest.setHeader(\"Content-Type\", \"application/json; charset=utf-8\");\n \n // Send Request\n HttpResponse httpResponse = null;\n try {\n if (shouldTrace) {\n CloudTracing.sendRequest(invocationId, httpRequest);\n }\n httpResponse = this.getClient().getHttpClient().execute(httpRequest);\n if (shouldTrace) {\n CloudTracing.receiveResponse(invocationId, httpResponse);\n }\n int statusCode = httpResponse.getStatusLine().getStatusCode();\n if (statusCode != HttpStatus.SC_OK) {\n ServiceException ex = ServiceException.createFromJson(httpRequest, requestContent, httpResponse, httpResponse.getEntity());\n if (shouldTrace) {\n CloudTracing.error(invocationId, ex);\n }\n throw ex;\n }\n \n // Create Result\n SourceControlUpdateResponse result = null;\n // Deserialize Response\n if (statusCode == HttpStatus.SC_OK) {\n InputStream responseContent = httpResponse.getEntity().getContent();\n result = new SourceControlUpdateResponse();\n JsonNode responseDoc = null;\n String responseDocContent = IOUtils.toString(responseContent);\n if (responseDocContent == null == false && responseDocContent.length() > 0) {\n responseDoc = objectMapper.readTree(responseDocContent);\n }\n \n JsonNode sourceControlValue = responseDoc.get(\"SourceControl\");\n if (sourceControlValue != null && sourceControlValue instanceof NullNode == false) {\n SourceControlUpdateResponse sourceControlInstance = new SourceControlUpdateResponse();\n \n SourceControl sourceControlInstance2 = new SourceControl();\n result.setSourceControl(sourceControlInstance2);\n \n JsonNode propertiesValue2 = sourceControlValue.get(\"properties\");\n if (propertiesValue2 != null && propertiesValue2 instanceof NullNode == false) {\n SourceControlProperties propertiesInstance = new SourceControlProperties();\n sourceControlInstance2.setProperties(propertiesInstance);\n \n JsonNode tokenValue = propertiesValue2.get(\"token\");\n if (tokenValue != null && tokenValue instanceof NullNode == false) {\n String tokenInstance;\n tokenInstance = tokenValue.getTextValue();\n propertiesInstance.setToken(tokenInstance);\n }\n \n JsonNode tokenSecretValue = propertiesValue2.get(\"tokenSecret\");\n if (tokenSecretValue != null && tokenSecretValue instanceof NullNode == false) {\n String tokenSecretInstance;\n tokenSecretInstance = tokenSecretValue.getTextValue();\n propertiesInstance.setTokenSecret(tokenSecretInstance);\n }\n }\n \n JsonNode idValue = sourceControlValue.get(\"id\");\n if (idValue != null && idValue instanceof NullNode == false) {\n String idInstance;\n idInstance = idValue.getTextValue();\n sourceControlInstance2.setId(idInstance);\n }\n \n JsonNode nameValue = sourceControlValue.get(\"name\");\n if (nameValue != null && nameValue instanceof NullNode == false) {\n String nameInstance;\n nameInstance = nameValue.getTextValue();\n sourceControlInstance2.setName(nameInstance);\n }\n \n JsonNode locationValue = sourceControlValue.get(\"location\");\n if (locationValue != null && locationValue instanceof NullNode == false) {\n String locationInstance;\n locationInstance = locationValue.getTextValue();\n sourceControlInstance2.setLocation(locationInstance);\n }\n \n JsonNode tagsSequenceElement = ((JsonNode) sourceControlValue.get(\"tags\"));\n if (tagsSequenceElement != null && tagsSequenceElement instanceof NullNode == false) {\n Iterator<Map.Entry<String, JsonNode>> itr = tagsSequenceElement.getFields();\n while (itr.hasNext()) {\n Map.Entry<String, JsonNode> property = itr.next();\n String tagsKey = property.getKey();\n String tagsValue = property.getValue().getTextValue();\n sourceControlInstance2.getTags().put(tagsKey, tagsValue);\n }\n }\n \n JsonNode typeValue = sourceControlValue.get(\"type\");\n if (typeValue != null && typeValue instanceof NullNode == false) {\n String typeInstance;\n typeInstance = typeValue.getTextValue();\n sourceControlInstance2.setType(typeInstance);\n }\n }\n \n }\n result.setStatusCode(statusCode);\n if (httpResponse.getHeaders(\"x-ms-request-id\").length > 0) {\n result.setRequestId(httpResponse.getFirstHeader(\"x-ms-request-id\").getValue());\n }\n \n if (shouldTrace) {\n CloudTracing.exit(invocationId, result);\n }\n return result;\n } finally {\n if (httpResponse != null && httpResponse.getEntity() != null) {\n httpResponse.getEntity().getContent().close();\n }\n }\n }", "title": "" }, { "docid": "e592d61a92cc78c37679eecd2c13c032", "score": "0.46378377", "text": "public VipUpdateBuilder vipUpdate();", "title": "" }, { "docid": "de7db852ce3b85d10dbd61fb97f92e98", "score": "0.46245083", "text": "public interface SettingContract {\n\n interface View extends BaseView {\n\n void showUpdateDialog(VersionBean bean);\n\n }\n\n interface Presenter extends BasePresenter<SettingContract.View> {\n\n void checkVersion(String currentVersion);\n\n void setNightModeState(boolean b);\n\n void setNoImageState(boolean b);\n\n void setAutoCacheState(boolean b);\n\n boolean getNightModeState();\n\n boolean getNoImageState();\n\n boolean getAutoCacheState();\n }\n}", "title": "" }, { "docid": "db5f7ef24104ce976d93975542ea83f1", "score": "0.46145898", "text": "public void aclUpdate(Map<String, Object> args){\n if(!args.containsKey(\"sharing\")){\n throw new IllegalArgumentException(\"Required argument 'sharing' is missing.\");\n }\n if(!args.containsKey(\"owner\")){\n throw new IllegalArgumentException(\"Required argument 'owner' is missing.\");\n }\n service.post(actionPath(\"acl\"), args);\n invalidate();\n }", "title": "" }, { "docid": "8ddc89821ed1b17fa0ca0eeeafa1309f", "score": "0.4614048", "text": "@Override\r\n\tpublic int do_update(DTO dto) {\n\t\treturn 0;\r\n\t}", "title": "" }, { "docid": "c1f4ae8a172fb96266b11873ba7a7a62", "score": "0.46132973", "text": "void update(Order order);", "title": "" }, { "docid": "941aeadacdb8dc3229400e90db06a757", "score": "0.4602173", "text": "@Override\n\tpublic void update(Account object) {\n\t\t\n\t}", "title": "" }, { "docid": "4ad0057a9cdf9b682740cb72672aca69", "score": "0.45933515", "text": "@Override\n\tpublic void update(Order order) {\n\t\t\n\t}", "title": "" }, { "docid": "8fc2c56726c67dd87f49e459622d1e96", "score": "0.45932722", "text": "@Override\n public Dispute update(Map<String, Object> params) throws StripeException {\n return update(params, null);\n }", "title": "" }, { "docid": "2686498679be453ea1dc673535534023", "score": "0.4583918", "text": "public void update(T change);", "title": "" }, { "docid": "deef11ebf72534d987032f9e4bdc9213", "score": "0.45791507", "text": "@Override\n\tpublic String update(VETemplate veTemplate) {\n\t\treturn tplDao.update(veTemplate);\n\t}", "title": "" }, { "docid": "5f2c46a379d4397874fe5048fda14520", "score": "0.45647338", "text": "@Test\n public void updateEmailSettingsTest() throws ApiException {\n EmailConfig emailConfig = null;\n AltErr response = api.updateEmailSettings(emailConfig);\n // TODO: test validations\n }", "title": "" }, { "docid": "5de4c83a3bd7f1688968acd1f020f021", "score": "0.4548089", "text": "public void updateAssessment(AssessmentPojo a){ \r\n template.update(a); \r\n}", "title": "" }, { "docid": "c0a2eb38e053879dd2733325880886cb", "score": "0.45459363", "text": "public void update() {\r\n\t\twebResource = client.resource(URL + \"/\" + transaction.getId());\r\n\t\ttransaction.setPointEchange(3);\r\n\t\ttransaction = webResource.type(MediaType.APPLICATION_JSON_TYPE)\r\n\t\t\t\t.accept(MediaType.APPLICATION_JSON_TYPE)\r\n\t\t\t\t.post(Transaction.class, transaction);\r\n\t\t\r\n\t\tSystem.out.println(\"Transaction modifiée : \" + transaction);\r\n\t}", "title": "" }, { "docid": "1c6b2f7dbce4b55d652482e146d13698", "score": "0.45446435", "text": "@Override\n \n public int updateChatTemplateEntry(int chatId, int templateId, TemplateEntry templateEntry) throws ChatsServiceException {\n if(chatId <= 0)\n throw new ChatsServiceException(\"Unable to update Chat Templates Entries an invalid Chat id was specified.\");\n \n \n if(templateId <= 0)\n throw new ChatsServiceException(\"Unable to update Chat Templates Entries an invalid Chat Template id was specified.\");\n \n\n if(templateEntry == null)\n throw new NullPointerException(\"Entry could not be updated, a null entry was specified.\");\n \n \n //firstly we locate the Chat Template Entry in question..\n ChatEntity targetChatEntity = this.loadChatEntry(chatId,false);\n TemplateEntryEntity targetTemplateEntity = targetChatEntity.getTemplates()\n .stream()\n .filter(ce -> !ce.isDeleted())\n .filter(ce -> ce.getId() == templateId)\n .findFirst()\n .orElseThrow(()-> new NullPointerException())\n .getEntries()\n .stream()\n .filter(cte-> !cte.isDeleted()) //entry must not be deleted to be updated.\n .findFirst()\n .orElseThrow(()-> new NullPointerException(\"Chat Template Entry update failed, the specified entry could not be found. \"));\n \n \n //ok if we have arrvied here then we have successfully located the the TemplateEntry\n //next providing at lease one field has been changed we initiate an update to the\n //uderlying data store which will inturn also flush the in-memory cache.\n boolean updateDetected = false;\n if(templateEntry.getCode() != null\n && !templateEntry.getCode().equals(targetTemplateEntity.getCode())){\n \n //set our flag to true\n updateDetected = true;\n \n //update the entry code\n targetTemplateEntity.setCode(templateEntry.getCode());\n \n }\n if(templateEntry.getDescription() != null\n && !templateEntry.getDescription().equals(targetTemplateEntity.getDescription())){\n \n //set our flag to true\n updateDetected = true;\n \n //update the entry code\n targetTemplateEntity.setDescription(templateEntry.getDescription());\n \n }\n \n if(templateEntry.getText() != null\n && !templateEntry.getText().equals(targetTemplateEntity.getText())){\n \n //set our flag to true\n updateDetected = true;\n \n //update the entry code\n targetTemplateEntity.setText(templateEntry.getText());\n \n }\n \n \n //providsing at least one field has been updated write back to the datastore\n if(updateDetected){\n this.chatsRepository.save(targetChatEntity);\n return targetTemplateEntity.getId();\n }\n else\n return -1;\n\n }", "title": "" }, { "docid": "abfd4604ea2645813bbb2ade4facabd6", "score": "0.45386124", "text": "public UnaryCallSettings<UpdateEvaluationJobRequest, EvaluationJob>\n updateEvaluationJobSettings() {\n return updateEvaluationJobSettings;\n }", "title": "" }, { "docid": "b50309915c13b4558fcc42adacc30919", "score": "0.4534623", "text": "UpdateAction createUpdateAction();", "title": "" }, { "docid": "ea8e722af623dfa8344e49bce66fb566", "score": "0.45297474", "text": "public UnaryCallSettings<UpdateProvisioningConfigRequest, ProvisioningConfig>\n updateProvisioningConfigSettings() {\n return ((BareMetalSolutionStubSettings) getStubSettings()).updateProvisioningConfigSettings();\n }", "title": "" }, { "docid": "b78bab4c5169d2f187da4a3dae219468", "score": "0.45295325", "text": "void updateBlockCondition(BlockConditions blockConditions) throws GatewayException;", "title": "" }, { "docid": "4d4e682535a8d244338b108478b19f0e", "score": "0.45192942", "text": "public FirewallUpdateBuilder firewallUpdate();", "title": "" }, { "docid": "966e5ee189625d0ac34281c8e2e1277a", "score": "0.4518504", "text": "@Override\n\tpublic void update(boolean pronto) {\n\t\t\n\t}", "title": "" }, { "docid": "a4ce3fd018872c68ffb27835d668f18c", "score": "0.4511197", "text": "public long $update(T t) {\r\n\t\treturn BaseHandler.update(this, t);\r\n\t}", "title": "" }, { "docid": "0c257a0d44d0c444449dafce28e3fbef", "score": "0.45110813", "text": "@Override\n public void updateView(KeyValuePair change) {\n }", "title": "" }, { "docid": "074021088a7b7d8599a2f5db222b5e6b", "score": "0.45107567", "text": "protected void update() {\n }", "title": "" }, { "docid": "2f925f4757c5b8c70536120b6a8834e1", "score": "0.45096788", "text": "public UpdateImageCacheRequest(UpdateImageCacheRequest source) {\n if (source.ImageCacheId != null) {\n this.ImageCacheId = new String(source.ImageCacheId);\n }\n if (source.ImageCacheName != null) {\n this.ImageCacheName = new String(source.ImageCacheName);\n }\n if (source.ImageRegistryCredentials != null) {\n this.ImageRegistryCredentials = new ImageRegistryCredential[source.ImageRegistryCredentials.length];\n for (int i = 0; i < source.ImageRegistryCredentials.length; i++) {\n this.ImageRegistryCredentials[i] = new ImageRegistryCredential(source.ImageRegistryCredentials[i]);\n }\n }\n if (source.Images != null) {\n this.Images = new String[source.Images.length];\n for (int i = 0; i < source.Images.length; i++) {\n this.Images[i] = new String(source.Images[i]);\n }\n }\n if (source.ImageCacheSize != null) {\n this.ImageCacheSize = new Long(source.ImageCacheSize);\n }\n if (source.RetentionDays != null) {\n this.RetentionDays = new Long(source.RetentionDays);\n }\n if (source.SecurityGroupIds != null) {\n this.SecurityGroupIds = new String[source.SecurityGroupIds.length];\n for (int i = 0; i < source.SecurityGroupIds.length; i++) {\n this.SecurityGroupIds[i] = new String(source.SecurityGroupIds[i]);\n }\n }\n }", "title": "" }, { "docid": "b09f4e7e3330d219d1e6453b3855bdb9", "score": "0.45095474", "text": "@Override\n\tpublic void accountUpdateMulti(int reqId, String account, String modelCode, String key, String value,\n\t\t\tString currency) {\n\t\t\n\t}", "title": "" }, { "docid": "053bf6146eed89ef69ae1e3298579db0", "score": "0.45062655", "text": "public MemberUpdateBuilder memberUpdate();", "title": "" }, { "docid": "102b500ccc8b93b0d30d8665c4faa681", "score": "0.44996986", "text": "@Override\n\tpublic void updatePortfolio(Contract contract, int position,\n\t\t\tdouble marketPrice, double marketValue, double averageCost,\n\t\t\tdouble unrealizedPNL, double realizedPNL, String accountName) {\n\t\tthis.portfolio.put(contract.m_localSymbol, position);\n\t\tthis.portfolioPnl.put(contract.m_localSymbol, realizedPNL);\n\t\t\n\t}", "title": "" }, { "docid": "968dc22e24dd7717adc338e4009ab0e7", "score": "0.44994602", "text": "public void updateTimestampsCachePut();", "title": "" } ]
311cb7b00ddbc847df059ad47a602d6b
Downgrades the last edge lock in the lock list from WRITE lock to READ lock. Example Starting from [a, a>b] downgradeLastEdge() results in [a, a>b]
[ { "docid": "756263c2614e2a117f4f37e2c7e4bc18", "score": "0.76953566", "text": "void downgradeLastEdge();", "title": "" } ]
[ { "docid": "57910c62fdd0fceb773b497b5e1b5766", "score": "0.7012489", "text": "void downgradeToReadLocks();", "title": "" }, { "docid": "8489f9a82a98c224066b7383d6102ad9", "score": "0.68519056", "text": "void unlockLastEdge();", "title": "" }, { "docid": "9c3e97e4c2b1b1a8fcff897f726d65f2", "score": "0.58990955", "text": "private void downgrade() {\n if (!major.isEmpty() && majorSize > maxSize / 2) {\n Map.Entry<K, V> next = major.entrySet().iterator().next();\n K downgradeKey = next.getKey();\n V downgradeValue = next.getValue();\n majorSize -= safeSizeOf(downgradeKey, downgradeValue);\n major.remove(downgradeKey);\n minor.put(downgradeKey, downgradeValue);\n }\n }", "title": "" }, { "docid": "a9f9a15e0c674fb0b5a8781939662761", "score": "0.58897007", "text": "void downgradeDatasetLockToExclusiveModify(LockList locks, DataverseName dataverseName, String datasetName)\n throws AlgebricksException;", "title": "" }, { "docid": "260fb4702fd8f3336b95e4b9be232a73", "score": "0.54349875", "text": "public void downgrade(){\n\n //downgrade a buildings stats \n this.setLevel(this.getLevel() - 1);\n this.setMaxHealth(this.getMaxHealth() - 500);\n this.setHealth(this.getHealth() - 500);\n this.maxCapacity -= 20;\n\n }", "title": "" }, { "docid": "9b638c0924997202b8e14f2a3f0a1063", "score": "0.54314125", "text": "final public edge rev_edge(final edge e) {\r\n return rev_edge_v3(e);\r\n }", "title": "" }, { "docid": "c23335274c94ac2aedbf81d9049f1f86", "score": "0.5373409", "text": "private void updateMirrorEdgeBends(Edge edge, MirrorEdge mirrorEdge) {\n while (mirrorEdge.bends.size() < originalBends.get(edge).size()) {\n Node bendNode = mirrorGraph.newNode();\n mirrorEdge.bends.add(bendNode);\n reverseEdgeMap.put(bendNode, edge);\n }\n while (mirrorEdge.bends.size() > originalBends.get(edge).size()) {\n Node bendNode = mirrorEdge.bends.removeLast();\n mirrorGraph.forcedRemove(bendNode);\n reverseEdgeMap.remove(bendNode);\n }\n }", "title": "" }, { "docid": "2a95da7e5782bc9e3c084ea97cf8bb74", "score": "0.5100852", "text": "public void unlockBack()\n {\n m_bBackLock = false;\n }", "title": "" }, { "docid": "887e686a50ccde4f2fdf5ad33c5ec4d5", "score": "0.50666994", "text": "@NotThreadSafe\npublic interface InodeLockList extends AutoCloseable {\n /**\n * Locks the root edge in the specified mode.\n *\n * The lock list must be empty to call this method.\n *\n * @param mode the mode to lock in\n */\n void lockRootEdge(LockMode mode);\n\n /**\n * Locks the given inode and adds it to the lock list. This method does *not* check that the inode\n * is still a child of the previous inode, or that the inode still exists. This method should only\n * be called when the edge leading to the inode is locked.\n *\n * Example\n * Starting from [a, a->b]\n *\n * lockInode(b, LockMode.READ) results in [a, a->b, b]\n * lockInode(b, LockMode.WRITE) results in [a, a->b, b*]\n *\n * @param inode the inode to lock\n * @param mode the mode to lock in\n */\n void lockInode(Inode inode, LockMode mode);\n\n /**\n * Locks an edge leading out of the last inode in the list.\n *\n * Example\n * Starting from [a, a->b, b]\n *\n * lockEdge(b, c, LockMode.READ) results in [a, a->b, b, b->c]\n * lockEdge(b, c, LockMode.WRITE) results in [a, a->b, b, b->c*]\n *\n * @param inode the parent inode of the edge\n * @param childName the child name of the edge\n * @param mode the mode to lock in\n */\n void lockEdge(Inode inode, String childName, LockMode mode);\n\n /**\n * Unlocks the last locked inode.\n *\n * Example\n * Starting from [a, a->b, b]\n *\n * unlockLastInode() results in [a, a->b]\n */\n void unlockLastInode();\n\n /**\n * Unlocks the last locked edge.\n *\n * Example\n * Starting from [a, a->b]\n *\n * unlockLastEdge results in [a]\n */\n void unlockLastEdge();\n\n /**\n * Downgrades all locks in the current lock list to read locks.\n */\n void downgradeToReadLocks();\n\n /**\n * Downgrades the last edge lock in the lock list from WRITE lock to READ lock.\n *\n * Example\n * Starting from [a, a->b*]\n *\n * downgradeLastEdge() results in [a, a->b]\n */\n void downgradeLastEdge();\n\n /**\n * Leapfrogs the final edge write lock forward, reducing the lock list's write-locked scope.\n *\n * Example\n * Starting from [a, a->b*]\n *\n * pushWriteLockedEdge(b, c) results in [a, a->b, b, b->c*]\n *\n * The read lock on a->b is acquired before releasing the write lock. This ensures that no other\n * thread can take the write lock before the read lock is acquired.\n *\n * If this is a composite lock list and the final write lock is part of the base lock list, the\n * new locks will be acquired but no downgrade will occur.\n *\n * @param inode the inode to add to the lock list\n * @param childName the child name for the edge to add to the lock list\n */\n void pushWriteLockedEdge(Inode inode, String childName);\n\n /**\n * @return {@link LockMode#WRITE} if the last entry in the list is write-locked, otherwise\n * {@link LockMode#READ}\n */\n LockMode getLockMode();\n\n /**\n * @return a copy of all locked inodes\n */\n List<Inode> getLockedInodes();\n\n /**\n * @return a copy of all locked inodes\n */\n default List<InodeView> getLockedInodeViews() {\n return new ArrayList<>(getLockedInodes());\n }\n\n /**\n * @param index the index of the list\n * @return the inode at the specified index\n */\n Inode get(int index);\n\n /**\n * @return the size of the list in terms of locked inodes\n */\n int numInodes();\n\n /**\n * @return whether this lock list ends in an inode (as opposed to an edge)\n */\n boolean endsInInode();\n\n /**\n * @return true if the locklist is empty\n */\n boolean isEmpty();\n\n /**\n * @return the inode lock manager for this lock list\n */\n InodeLockManager getInodeLockManager();\n\n /**\n * Closes the lock list, releasing all locks.\n */\n @Override\n void close();\n}", "title": "" }, { "docid": "6bb8cc18d3b36e12c6d1982d60531abe", "score": "0.5066629", "text": "private void internalReadUnlock() {\n checkpointLock.readLock().unlock();\n\n if (ASSERTION_ENABLED)\n CHECKPOINT_LOCK_HOLD_COUNT.set(CHECKPOINT_LOCK_HOLD_COUNT.get() - 1);\n }", "title": "" }, { "docid": "8eb5adcd8c0c69a48eff000418cdd7b0", "score": "0.50434697", "text": "private void recordAsDown(Node node, Mutex lock) {\n if (node.history().event(History.Event.Type.down).isPresent()) return; // already down: Don't change down timestamp\n nodeRepository().nodes().write(node.downAt(clock().instant(), Agent.NodeHealthTracker), lock);\n }", "title": "" }, { "docid": "f90c88ced9ae27e1ca52a7dda84ef665", "score": "0.500794", "text": "private void clearDownRecord(Node node, Mutex lock) {\n if (node.history().event(History.Event.Type.down).isEmpty()) return;\n nodeRepository().nodes().write(node.up(), lock);\n }", "title": "" }, { "docid": "a694d98db0a79883fd8aa24bcd4e4de2", "score": "0.4980401", "text": "protected void saveBackwardEdge(Long eID, long vj, long vi) {\n\t\tInteger restCap_vi = getMarkedTuple(vi).getRestCap();\n\t\tint restCap = Math.min(f(eID), restCap_vi);\n\t\tmarkVertice(vj, new Tuple4(\"-\", vi, restCap, false));\n\t}", "title": "" }, { "docid": "2a9a81c5216319d5fdd733f1ee650b04", "score": "0.49736762", "text": "@Override public void checkpointReadUnlock() {\n if (checkpointLock.writeLock().isHeldByCurrentThread())\n return;\n\n checkpointLock.readLock().unlock();\n\n if (ASSERTION_ENABLED)\n CHECKPOINT_LOCK_HOLD_COUNT.set(CHECKPOINT_LOCK_HOLD_COUNT.get() - 1);\n }", "title": "" }, { "docid": "b3841e33c8786405658151240f106dfd", "score": "0.49570253", "text": "public long unlockExclusive()\n {\n long s = initiateExclusiveLockRelease();\n long n = nextSeq( s ) - EXL_MASK;\n // Exclusive locks prevent any state modifications from write locks\n unconditionallySetState( n );\n return n;\n }", "title": "" }, { "docid": "2cff82a4cab022621af0af6fd428e95f", "score": "0.49476337", "text": "public void lockBack()\n {\n m_bBackLock = true;\n }", "title": "" }, { "docid": "d465fc2c40c4d23651fdc16e554cabe3", "score": "0.4903934", "text": "public Item setBack (Item item) {\n if(isEmpty()) throw new NoSuchElementException(\"Failed to setBack, because DList is empty!\") ;\n // update the value of the last actual node (the last node itself is a sentinel node)\n Item oldValue = last.prev.data; \n last.prev.data = item;\n return oldValue;\n }", "title": "" }, { "docid": "a0be8a10fe93a122c283b38dceb46bcc", "score": "0.49023807", "text": "void unlockLastInode();", "title": "" }, { "docid": "77df147d26f09674328775782ed62660", "score": "0.48869652", "text": "public void shiftDown() {\n\t\tif (prev == null) {\n\t\t\tthrow new IllegalStateException(\"Cannot shift \" + this + \" down because it is already at the bottom\");\n\t\t}\n\t\tDependencyElement p = prev;\n\t\tDependencyElement pp = prev.prev;\n\t\tif (pp != null) {\n\t\t\tpp.next = this;\n\t\t\tprev = pp;\n\t\t}\n\t\telse {\n\t\t\tprev = null;\n\t\t}\n\t\tp.prev = this;\n\t\tp.next = next;\n\t\tnext = p;\n\t}", "title": "" }, { "docid": "6ca255cfbd05045cc68e657b4a1991f3", "score": "0.48490772", "text": "public void unlockFlush()\n {\n long s, n;\n do\n {\n s = getState();\n if ( (s & FLS_MASK) != FLS_MASK )\n {\n throwUnmatchedUnlockFlush( s );\n }\n // We don't increment the sequence with nextSeq here, because flush locks don't invalidate readers\n n = s - FLS_MASK;\n }\n while ( !compareAndSetState( s, n ) );\n }", "title": "" }, { "docid": "e217851d1deb7530e08e9a94284fd6cc", "score": "0.48423427", "text": "public void backwardSynchronizeWith(FlexoResource aResource) throws FlexoException {\n\t\tif (logger.isLoggable(Level.FINER)) {\n\t\t\tlogger.finer(\"Backsynchronizing \" + this + \" with \" + aResource);\n\t\t}\n\t\tsetLastSynchronizedWithResource(aResource, new Date());\n\t\tgetProject().notifyResourceHasBeenBackwardSynchronized(this);\n\t}", "title": "" }, { "docid": "5adf9ff5e3b7c2439b608bb7b1a58406", "score": "0.47664878", "text": "void lockRootEdge(LockMode mode);", "title": "" }, { "docid": "3916b26b41da4e3aaf7ba2b93fab2642", "score": "0.47501463", "text": "Activity getSynchronizeBackwardActivity();", "title": "" }, { "docid": "0a769072335409d171c8e4402dc7264e", "score": "0.47478458", "text": "public void unlockExclusiveAndTakeWriteLock()\n {\n long s = initiateExclusiveLockRelease();\n long n = nextSeq( s ) - EXL_MASK + CNT_UNIT;\n unconditionallySetState( n );\n }", "title": "" }, { "docid": "71d0aea12045e7466c4304fefe1ee085", "score": "0.4733092", "text": "public DoubleLinkedSeq reverse(){\r\n\t DoubleLinkedSeq rev = new DoubleLinkedSeq();\r\n\t for(cursor = head; cursor != null; cursor = cursor.getLink()){\r\n\t\t rev.addBefore(this.getCurrent());\r\n\t }\r\n\t \r\n\t return rev; \r\n }", "title": "" }, { "docid": "69fb5853e7fb0e255b6b99e9c577dd5a", "score": "0.4690728", "text": "void upgradeDatasetLockToWrite(LockList locks, DataverseName dataverseName, String datasetName)\n throws AlgebricksException;", "title": "" }, { "docid": "f54acc82e4a78eaf604215d883854821", "score": "0.4685003", "text": "public void applyDowngrade(String downgradeName) {\n\n switch(downgradeName) {\n case \"Hollow\":\n hollow = true;\n break;\n }\n }", "title": "" }, { "docid": "89c1824027ce97efff3d0a19393347fd", "score": "0.4679427", "text": "@Override\n public void backward() {\n }", "title": "" }, { "docid": "ca2d9fe3c4f3a8337dfab4e5b23b030d", "score": "0.4664073", "text": "public boolean isDowngrade( )\n {\n return _bDowngrade;\n }", "title": "" }, { "docid": "288036c2bc9d6567f1c7228b8a43671a", "score": "0.463597", "text": "public void backward()\n\t{\n\t\tupdateState( MotorPort.BACKWARD);\n\t}", "title": "" }, { "docid": "0c4c3d9b3e2f690e02718ce994555e04", "score": "0.46284282", "text": "public void edgeTailChanged(GraphEvent e);", "title": "" }, { "docid": "73f9dfbf5936180193d1e92007626bfe", "score": "0.46267983", "text": "void downwardPassMaxBeliefUpdate(List<Vertex> orderedVertices) throws FactorException {\n\t\t_bumpOnUpwardPass = false;\n\t\tif(DEBUG) System.out.println(\"\\n\\ndownward pass!\\n\\n\");\n\t\tfor(int i = 0; i < orderedVertices.size(); i++) {\n\t\t\tVertex v = (Vertex) orderedVertices.get(i);\n\t\t\tif(DEBUG) System.out.printf(\"i:%d VertexMax:%s\\n\",i,v);\n\t\t\t// for each edge that is outgoing given our ordering\n\t\t\tfor(Edge e : v.getDownwardOutgoingNeighborEdges()) {\n\t\t\t\tif(DEBUG) System.out.println(\"sending msg over edge:\"+e);\n\t\t\t\t// send our message along that edge\n\t\t\t\tv.sendMessage(e);\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "03984fb3874e501091a31b2e63911c2a", "score": "0.4624365", "text": "private void doubleDemoteright (WAVLNode z) {\n\t z.rank--;\r\n\t z.left.rank--;\r\n }", "title": "" }, { "docid": "1963db1022f032f976f8d5501b358a80", "score": "0.46139687", "text": "@Override\n public void onDowngrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n }", "title": "" }, { "docid": "1963db1022f032f976f8d5501b358a80", "score": "0.46139687", "text": "@Override\n public void onDowngrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n }", "title": "" }, { "docid": "b41f730a022475bd29dd3e2e008cc55e", "score": "0.46027356", "text": "protected boolean upgradeLocks() {\n \t\treturn false;\n \t}", "title": "" }, { "docid": "9014d13c4073243a8196c101d2c6d497", "score": "0.45639467", "text": "public long removeRight() {\n long temporary = Array[end--];\n if ( end == -1 ) {\n end = max-1;\n }\n nItems--;\n return temporary;\n }", "title": "" }, { "docid": "411fcf75a8e4cf8dd2fa5fe68fd7ecd8", "score": "0.45522192", "text": "@Override\n public void onDowngrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n Log.e(TAG, \"[onDowngrade] Shouldn't have this case.\");\n }", "title": "" }, { "docid": "99459a88a60024c50814bf7932c06ccf", "score": "0.45268238", "text": "public void backDown(){\n backSolenoid.set(DoubleSolenoid.Value.kReverse);\n }", "title": "" }, { "docid": "e589b8853b62e4ff84e97a0699416ffc", "score": "0.45221415", "text": "public Vertex moveDown() {\n for (Edge e : current.outEdges) {\n move(e.to.y == current.y + 1, e);\n }\n return current;\n }", "title": "" }, { "docid": "32c05bac122cbcc84abd71f486f3c6a7", "score": "0.4511011", "text": "protected final void unlockWrite() {\n m_lock.writeLock().unlock();\n }", "title": "" }, { "docid": "88563621f40ba8febcf4a4b1c2dd733c", "score": "0.4510898", "text": "private void decWaiters()\r\n/* 451: */ {\r\n/* 452:537 */ this.waiters = ((short)(this.waiters - 1));\r\n/* 453: */ }", "title": "" }, { "docid": "80924e9f734730611dad32826cd872a0", "score": "0.45020363", "text": "static void changeDirectionBackwards() {\n\n if(--direction == -1)\n direction = 3;\n }", "title": "" }, { "docid": "2f884eee73f9ab56ebf1339deb9889b4", "score": "0.44985375", "text": "@KeepForSdk\n public void release() {\n if (this.zzm.decrementAndGet() < 0) {\n Log.e(\"WakeLock\", String.valueOf(this.zze).concat(\" release without a matched acquire!\"));\n }\n String zza = zza(null);\n synchronized (this.zza) {\n if (this.zzi) {\n int i;\n Integer[] numArr = (Integer[]) this.zzj.get(zza);\n if (numArr != null) {\n if (numArr[0].intValue() == 1) {\n this.zzj.remove(zza);\n i = 1;\n } else {\n numArr[0] = Integer.valueOf(numArr[0].intValue() - 1);\n }\n }\n i = 0;\n }\n if (!this.zzi) {\n }\n }\n zza(0);\n }", "title": "" }, { "docid": "b6dece48a0fe7d427ef96364129dda90", "score": "0.44977555", "text": "public Vertex moveRight() {\n for (Edge e : current.outEdges) {\n move(e.to.x == current.x + 1, e);\n }\n return current;\n }", "title": "" }, { "docid": "88da9fa5926ccfdaa7c1f5a51782385e", "score": "0.4492855", "text": "public interface LockableGraph<V, E extends Edge<V>> extends Graph<V, E> {\r\n /**\r\n * Locks graph for editing. Read operations are still supported.\r\n * Requires to unlock the graph after processing is finished with {@link #unlockForEditing() unlockForEditing} method\r\n */\r\n void lockForEditing();\r\n\r\n /**\r\n * Unlocks graph for editing if it was previously locked by {@link #lockForEditing() lockForEditing} method call\r\n */\r\n void unlockForEditing();\r\n}", "title": "" }, { "docid": "a60550e23e0ecd77b2b17e3b94fb5da8", "score": "0.44849843", "text": "@Override\n\tpublic Object backward(Object grad_output) {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "47d62fbd1d1ff9a5d124ec4736b138f3", "score": "0.4477741", "text": "public void publishNodeAsDown(String nodeName) {\n log.info(\"Publish node={} as DOWN\", nodeName);\n if (distributedClusterStateUpdater.isDistributedStateUpdate()) {\n // Note that with the current implementation, when distributed cluster state updates are\n // enabled, we mark the node down synchronously from this thread, whereas the Overseer cluster\n // state update frees this thread right away and the Overseer will async mark the node down\n // but updating all affected collections. If this is an issue (i.e. takes too long), then the\n // call below should be executed from another thread so that the calling thread can\n // immediately return.\n distributedClusterStateUpdater.executeNodeDownStateUpdate(nodeName, zkStateReader);\n } else {\n try {\n // Create a concurrently accessible set to avoid repeating collections\n Set<String> processedCollections = new HashSet<>();\n for (CoreDescriptor cd : cc.getCoreDescriptors()) {\n String collName = cd.getCollectionName();\n DocCollection coll;\n if (collName != null\n && processedCollections.add(collName)\n && (coll = zkStateReader.getCollection(collName)) != null\n && coll.isPerReplicaState()) {\n final List<String> replicasToDown = new ArrayList<>(coll.getSlicesMap().size());\n coll.forEachReplica(\n (s, replica) -> {\n if (replica.getNodeName().equals(nodeName)) {\n replicasToDown.add(replica.getName());\n }\n });\n PerReplicaStatesOps.downReplicas(\n replicasToDown,\n PerReplicaStatesOps.fetch(\n coll.getZNode(), zkClient, coll.getPerReplicaStates()))\n .persist(coll.getZNode(), zkClient);\n }\n }\n\n // We always send a down node event to overseer to be safe, but overseer will not need to do\n // anything for PRS collections\n overseer\n .getStateUpdateQueue()\n .offer(\n m ->\n m.put(Overseer.QUEUE_OPERATION, OverseerAction.DOWNNODE.toLower())\n .put(ZkStateReader.NODE_NAME_PROP, nodeName));\n } catch (AlreadyClosedException e) {\n log.info(\n \"Not publishing node as DOWN because a resource required to do so is already closed.\");\n } catch (InterruptedException e) {\n Thread.currentThread().interrupt();\n log.debug(\"Publish node as down was interrupted.\");\n } catch (KeeperException e) {\n log.warn(\"Could not publish node as down: \", e);\n }\n }\n }", "title": "" }, { "docid": "763bc21ee034cd9fdb2451a3d5f10e00", "score": "0.4472459", "text": "public void downGrade(){\n\t\tlevel -= level;\n\t\tConstants.FARMS -= 1;\n\t\tConstants.FOOD -= 20;\n\t}", "title": "" }, { "docid": "2c221117a80cdbabb0b820644bc9cfeb", "score": "0.4469721", "text": "public void reverseEdge(int[][] mat) {\n\t\tint row = mat.length;\n\t\tfor(int i = 0; i < row; i++) {\n\t\t\tfor(int j = i; j < row; j ++) {\n\t\t\t\tif(i != j) {\n\t\t\t\t\tint temp = mat[i][j];\n\t\t\t\t\tmat[i][j] = mat[j][i];\n\t\t\t\t\tmat[j][i] = temp;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "f0e8c1ca076a2ce1e6b4da208a6a739b", "score": "0.44665423", "text": "public abstract void rebalance();", "title": "" }, { "docid": "940207514a92db0bf8cbcb38ed830bd3", "score": "0.44645378", "text": "public boolean getBack()\n {\n return m_bBackLock;\n }", "title": "" }, { "docid": "052ddc832a07830536c6385d8f6197f6", "score": "0.4461189", "text": "public void downgradeFamiliarity() {\n\t\tif (familiarity > MIN_FAMILIARITY) {\n\t\t\tfamiliarity--;\n\t\t}\n\t}", "title": "" }, { "docid": "4afc3549fb7c303709d34a7eebad68f9", "score": "0.44509226", "text": "private T unlinkLast(final int idx) {\r\n\t\tfinal T element = serializer.getRandomAccess(idx);\r\n\t\tfinal int prev = getPrevPointer(idx);\r\n\t\tlast = prev;\r\n\t\tif (prev == -1) {\r\n\t\t\tfirst = -1;\r\n\t\t} else {\r\n\t\t\tsetNextPointer(prev, -1);\r\n\t\t}\r\n\t\tdeleteElement(idx);\r\n\t\tsize--;\r\n\t\tmodCount++;\r\n\t\treturn element;\r\n\t}", "title": "" }, { "docid": "0355e23c9d3f85f80d2770797a3fd0d7", "score": "0.44442222", "text": "public void unlock(){\n logger.log(Level. INFO,\"unlock() \"+lockState+\".\");\n this.lock.lock();\n logger.log(Level. INFO,\"unlock taking mutex :\"+lockState+\".\");\n switch(this.lockState){\n \t\t\tcase RLT:\n \t\t\tlockState = State.RLC;\n \t\t\tbreak;\n \t\t\tcase WLT:\n \t\t\tlockState = State.WLC;\n \t\t\tcase RLT_WLC:\n \t\t\tlockState = State.WLC;\t\n break;\n default:\n logger.log(Level.WARNING,\"Unlock with : \"+lockState+\".\");\n break;\n \t\t}\n this.available.signal();\t\n logger.log(Level.WARNING,\"SIGNAL\");\n this.lock.unlock();\n \t}", "title": "" }, { "docid": "7c4e4c016da1bea762e18f05d6caa474", "score": "0.4442642", "text": "public void setBackedge(boolean b) {\n\t\tthis.isBackEdge = b;\r\n\t\t\r\n\t}", "title": "" }, { "docid": "428991966b05b27523d887cb79720e30", "score": "0.44418475", "text": "@Override\n protected void revert() {\n if (leftOld.next != null) leftOld.next.prev = leftOld;\n if (rightOld.prev != null) rightOld.prev.next = rightOld;\n \n // Update the first and last nodes.\n if (rightOld.prev == null) first = rightOld;\n if (leftOld.next == null) last = leftOld;\n \n // Restore the width.\n width = prevWidth;\n }", "title": "" }, { "docid": "37a594637424a0e6eb81dcf5a2d41b06", "score": "0.44371048", "text": "private void rebalance(ArrayList<Node<T>> affectedNodes) {\n\t\tfor (Node<T> node : affectedNodes) {\n\t\t\tif (node.getBalanceFactor() < -1) {\n\t\t\t\tif (node.getRight() != null && node.getRight().getBalanceFactor() > 0) {\n\t\t\t\t\t// Double rotate: Right + Left\n\t\t\t\t\t//rotateRight(node.getRight(), node.getRight().getLeft(), node, true);\n\t\t\t\t\tnode.setRight(rotateRight(node.getRight()));\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// Rotate: Left\n\t\t\t\trotateLeft(node);\n\t\t\t\t\n\n\t\t\t} else if (node.getBalanceFactor() > 1) {\n\t\t\t\tif (node.getLeft() != null && node.getLeft().getBalanceFactor() < 0) {\n\t\t\t\t\t// Double rotate: Left + Right\n\t\t\t\t\tnode.setLeft(rotateLeft(node.getLeft()));\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// Rotate: Right\n\t\t\t\trotateRight(node);\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t}\n\t}", "title": "" }, { "docid": "a58f5a42dadf731cabc74a4dcd2d9f83", "score": "0.4432798", "text": "public void writerUnlock() throws Exception {\n\t\t// TODO\n\t\tif(holders.get() instanceof ReaderList){\n\t\t\tthrow new Exception(\"Lock was held by a reader, one should use readerUnlock()\");\n\t\t}else if(holders.get() == null){\n\t\t\tthrow new Exception(\"Lock was not held by anyone\");\n\t\t}\n\t\tfinal Thread current = Thread.currentThread();\n\t\tif(((Writer)holders.get()).thread.equals(current)){\n\t\t\tholders.compareAndSet(holders.get(), null);\n\t\t}else{\n\t\t\tthrow new Exception(\"Lock was not held by this thread \");\n\t\t}\n\t}", "title": "" }, { "docid": "0ba28000848f90e48ea4acf34325a57f", "score": "0.4428358", "text": "@Override\n\tprotected void unLockNbr() {\n\t\t\n\t}", "title": "" }, { "docid": "1ef9afd55ee2a4d702d906e520505fdf", "score": "0.440641", "text": "public void clockEdge(){\n \t\tif(regWrite.getValue() != null && regWrite.getValue() == (long)1){\n \t\t\tsetRegister(writeReg.getValue().intValue(), writeData.getValue());\n \t\t}\n \t\t\n\t\treadData1.setValue(getVal(readReg1.getValue().intValue()));\n\t\treadData2.setValue(getVal(readReg2.getValue().intValue()));\n \t}", "title": "" }, { "docid": "6e6095ceb7368b73f68c45f49763349a", "score": "0.4395258", "text": "public static TransactionIsolation max(TransactionIsolation head, TransactionIsolation... tail) {\n TransactionIsolation acc = head;\n for (TransactionIsolation current : tail) {\n if (current.compareTo(acc) >= 1) {\n acc = current;\n }\n }\n return acc;\n }", "title": "" }, { "docid": "be3d56f550bd93b216321055e0f75d5a", "score": "0.43732965", "text": "public void reverse_Iteratively_Data() throws Exception {\r\n\t\tint left = 0, right = this.size() - 1;\r\n\r\n\t\twhile (left <= right) {\r\n\t\t\tNode leftNode = this.getNodeAt(left);\r\n\t\t\tNode rightNode = this.getNodeAt(right);\r\n\r\n\t\t\tT temp = leftNode.data;\r\n\t\t\tleftNode.data = rightNode.data;\r\n\t\t\trightNode.data = temp;\r\n\r\n\t\t\tleft++;\r\n\t\t\tright--;\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "2c3bc28e0996698599b91fb1d6c808c9", "score": "0.43630677", "text": "public void decrement() {\n sync.decrement();\n }", "title": "" }, { "docid": "15a82212c19ca9559368517bf522ff53", "score": "0.43513042", "text": "public E getPrevEdge()\r\n/* */ {\r\n/* 178 */ return (E)this.prevEdge;\r\n/* */ }", "title": "" }, { "docid": "4445371f222873a2db88319c698023d0", "score": "0.43490833", "text": "public void levelDown() {\n this._learnState -= 1;\n this.save();\n }", "title": "" }, { "docid": "e78d141419925d5d6e3a27856c158746", "score": "0.4335602", "text": "void releaseReadLock(E key);", "title": "" }, { "docid": "1c3c80f0885f3469a2d86ae1b6fdf64c", "score": "0.43319666", "text": "private AvlTreeNode<K, V> restoreBalance(AvlTreeNode<K, V> h) {\n if (h == null) return null;\n updateHeight(h);\n int x = balance(h);\n if (x == 2) {\n // 2x right-heavy\n if (balance(h.right) < 0) {\n h.right = rotateRight(h.right);\n }\n h = rotateLeft(h);\n } else if (x == -2) {\n // 2x left-heavy\n if (balance(h.left) > 0) {\n h.left = rotateLeft(h.left);\n }\n h = rotateRight(h);\n }\n return h;\n }", "title": "" }, { "docid": "a456270162957fb5f2b71245cab07c08", "score": "0.43252802", "text": "public int getRightEdge() {\n return rightEdge;\n }", "title": "" }, { "docid": "a29797612d0953294c3e3412a8959138", "score": "0.43232596", "text": "@Test\n public void testRemoveInvalidEdge() throws Exception {\n\n final ExecutionEnvironment env = ExecutionEnvironment.getExecutionEnvironment();\n\n Graph<Long, Long, Long> graph =\n Graph.fromDataSet(\n TestGraphUtils.getLongLongVertexData(env),\n TestGraphUtils.getLongLongEdgeData(env),\n env);\n graph = graph.removeEdge(new Edge<>(6L, 1L, 61L));\n\n DataSet<Edge<Long, Long>> data = graph.getEdges();\n List<Edge<Long, Long>> result = data.collect();\n\n expectedResult =\n \"1,2,12\\n\"\n + \"1,3,13\\n\"\n + \"2,3,23\\n\"\n + \"3,4,34\\n\"\n + \"3,5,35\\n\"\n + \"4,5,45\\n\"\n + \"5,1,51\\n\";\n\n compareResultAsTuples(result, expectedResult);\n }", "title": "" }, { "docid": "cd89e8beec2d38359ee5dcdb3a6fbec7", "score": "0.43174037", "text": "public Object reduce_lock() {\n \t\tthis.lock.lock();\n switch(this.lockState){\n case WLT:\n \t\t while(this.lockState==State.WLT){\n \t\t\t try{\t\t \n \t\t\t\t this.available.await();\n \t\t }catch(InterruptedException i){}\n \t\t }\n this.lockState = State.RLC;\t\n \t\t\tbreak;\n \t\t\tcase RLT_WLC:\n \t\t\t this.lockState=State.RLT;\n \t\t\tbreak;\n \t\t\tcase WLC:\n \t\t\t this.lockState=State.RLC;\n \t\t\tbreak;\n \t\t\tdefault: \n logger.log(Level.SEVERE,\"reduce : Lock incoherent :\"+lockState+\".\");\n break;\n \t\t}\n //busy = true; \n logger.log(Level.INFO,\"I was <b>reduced</b> to \"+this.lockState+\".\");\n \t\tthis.lock.unlock();\n \t\treturn obj;\n \t}", "title": "" }, { "docid": "a75d3dffcbd04e67ece5fe56f5053020", "score": "0.43117", "text": "private E unlinkLast(Node<E> l){\r\n \tfinal E element = l.item;\r\n \tfinal Node<E> next = l.next;\r\n \tl.item = null;\r\n \tl.next = null; // help GC\r\n \tlast = next;\r\n \tif(last == null)\r\n \t\tfirst = null;\r\n \telse\r\n \t\tnext.prev = null;\r\n \tsize--;\r\n \tmodCount++;\r\n \treturn element;\r\n }", "title": "" }, { "docid": "a3476c80ce2db0e35155039be8e09c72", "score": "0.43095526", "text": "@Override\n\tpublic void unLock() {\n\t\t\n\t}", "title": "" }, { "docid": "03480c74ef44300241475a9d3cc014c0", "score": "0.43087026", "text": "private void relax(DirectedEdge e) {\n int v = e.from(), w = e.to();\n if (distTo[w] > distTo[v] + e.weight()) {\n distTo[w] = distTo[v] + e.weight();\n edgeTo[w] = e;\n if (pq.contains(w)) pq.change(w, distTo[w]);\n else pq.insert(w, distTo[w]);\n }\n }", "title": "" }, { "docid": "efcae02e408d0f976dcbe787a6598f83", "score": "0.429983", "text": "private void backward() {\n index--;\n if(column == 0) {\n line--;\n linecount = column = content.getColumnCount(line);\n }else{\n column--;\n }\n }", "title": "" }, { "docid": "d3e470b02ea17880284e41c32382b14c", "score": "0.42956495", "text": "private void doubleDemoteLeft (WAVLNode z) {\n\t z.rank--;\r\n\t z.right.rank--;\r\n }", "title": "" }, { "docid": "dfdb8997bc9534a55c6141d18a050c9a", "score": "0.42948768", "text": "public void followEdgeInReverse(int e) {\r\n\t\tfor (int i = 0; i < currentVertex.inList.size(); i++) {\r\n\t\t\tNeighbor neighbor = currentVertex.inList.get(i);\r\n\t\t\tif (neighbor.edge == e) {\r\n\t\t\t\tcurrentVertex = neighbor.vertex;\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t}\r\n\t\tSystem.out.println(\"Edge from \" + e + \" does not exist.\");\r\n\t}", "title": "" }, { "docid": "5c4309df30d1e281bcfaaf195ea2a191", "score": "0.42868066", "text": "public void down()\n {\n if (this.index >= 0 && this.index < this.morphs.size())\n {\n MorphType type = this.morphs.get(this.index);\n\n if (type.morphs.size() > 1)\n {\n type.down();\n this.resetTime();\n }\n }\n }", "title": "" }, { "docid": "32dc27c2c6221e926258fa6d3c78456a", "score": "0.42815876", "text": "void decreaseAngle() {\n this.strokeAngle -= 3;\n this.updateAcc();\n this.updateStick();\n }", "title": "" }, { "docid": "c347621baea1b098ac3954dad8abe5f4", "score": "0.42731553", "text": "public Item popRight(){\n if(isEmpty()) throw new NoSuchElementException(\"Underflow\");\n\n Item oldLast = last.item;\n Node<Item> previous = first;\n if (first != null) {\n Node<Item> current = first;\n while (current.next != null) {\n previous = current;\n current = current.next;\n }\n last = previous;\n last.next = null;\n }\n return oldLast;\n }", "title": "" }, { "docid": "bcfb7b5daffdd7a6701bce82475f3352", "score": "0.4272344", "text": "private void ssMergeBackward(int r19, int[] r20, int r21, int r22, int r23, int r24, int r25) {\n /*\n r18 = this;\n r0 = r18;\n r4 = r0.SA;\n r17 = r24 - r23;\n r5 = r21 + r17;\n r17 = r24 - r23;\n r0 = r20;\n r1 = r21;\n r2 = r23;\n r3 = r17;\n ssBlockSwap(r0, r1, r4, r2, r3);\n r16 = 0;\n r17 = r5 + -1;\n r17 = r20[r17];\n if (r17 >= 0) goto L_0x0071;\n L_0x001d:\n r16 = r16 | 1;\n r17 = r5 + -1;\n r17 = r20[r17];\n r17 = r17 ^ -1;\n r12 = r19 + r17;\n L_0x0027:\n r17 = r23 + -1;\n r17 = r4[r17];\n if (r17 >= 0) goto L_0x0078;\n L_0x002d:\n r16 = r16 | 2;\n r17 = r23 + -1;\n r17 = r4[r17];\n r17 = r17 ^ -1;\n r13 = r19 + r17;\n L_0x0037:\n r17 = r24 + -1;\n r15 = r4[r17];\n r6 = r24 + -1;\n r8 = r5 + -1;\n r10 = r23 + -1;\n L_0x0041:\n r0 = r18;\n r1 = r25;\n r14 = r0.ssCompare(r12, r13, r1);\n if (r14 <= 0) goto L_0x009b;\n L_0x004b:\n r17 = r16 & 1;\n if (r17 == 0) goto L_0x0063;\n L_0x004f:\n r7 = r6 + -1;\n r17 = r20[r8];\n r4[r6] = r17;\n r9 = r8 + -1;\n r17 = r4[r7];\n r20[r8] = r17;\n r17 = r20[r9];\n if (r17 < 0) goto L_0x01a9;\n L_0x005f:\n r16 = r16 ^ 1;\n r8 = r9;\n r6 = r7;\n L_0x0063:\n r7 = r6 + -1;\n r17 = r20[r8];\n r4[r6] = r17;\n r0 = r21;\n if (r8 > r0) goto L_0x007f;\n L_0x006d:\n r20[r8] = r15;\n r6 = r7;\n L_0x0070:\n return;\n L_0x0071:\n r17 = r5 + -1;\n r17 = r20[r17];\n r12 = r19 + r17;\n goto L_0x0027;\n L_0x0078:\n r17 = r23 + -1;\n r17 = r4[r17];\n r13 = r19 + r17;\n goto L_0x0037;\n L_0x007f:\n r9 = r8 + -1;\n r17 = r4[r7];\n r20[r8] = r17;\n r17 = r20[r9];\n if (r17 >= 0) goto L_0x0094;\n L_0x0089:\n r16 = r16 | 1;\n r17 = r20[r9];\n r17 = r17 ^ -1;\n r12 = r19 + r17;\n r8 = r9;\n r6 = r7;\n goto L_0x0041;\n L_0x0094:\n r17 = r20[r9];\n r12 = r19 + r17;\n r8 = r9;\n r6 = r7;\n goto L_0x0041;\n L_0x009b:\n if (r14 >= 0) goto L_0x00fb;\n L_0x009d:\n r17 = r16 & 2;\n if (r17 == 0) goto L_0x00b5;\n L_0x00a1:\n r7 = r6 + -1;\n r17 = r4[r10];\n r4[r6] = r17;\n r11 = r10 + -1;\n r17 = r4[r7];\n r4[r10] = r17;\n r17 = r4[r11];\n if (r17 < 0) goto L_0x01a5;\n L_0x00b1:\n r16 = r16 ^ 2;\n r10 = r11;\n r6 = r7;\n L_0x00b5:\n r7 = r6 + -1;\n r17 = r4[r10];\n r4[r6] = r17;\n r11 = r10 + -1;\n r17 = r4[r7];\n r4[r10] = r17;\n r0 = r22;\n if (r11 >= r0) goto L_0x00e3;\n L_0x00c5:\n r9 = r8;\n L_0x00c6:\n r0 = r21;\n if (r0 >= r9) goto L_0x00d9;\n L_0x00ca:\n r6 = r7 + -1;\n r17 = r20[r9];\n r4[r7] = r17;\n r8 = r9 + -1;\n r17 = r4[r6];\n r20[r9] = r17;\n r9 = r8;\n r7 = r6;\n goto L_0x00c6;\n L_0x00d9:\n r17 = r20[r9];\n r4[r7] = r17;\n r20[r9] = r15;\n r10 = r11;\n r8 = r9;\n r6 = r7;\n goto L_0x0070;\n L_0x00e3:\n r17 = r4[r11];\n if (r17 >= 0) goto L_0x00f3;\n L_0x00e7:\n r16 = r16 | 2;\n r17 = r4[r11];\n r17 = r17 ^ -1;\n r13 = r19 + r17;\n r10 = r11;\n r6 = r7;\n goto L_0x0041;\n L_0x00f3:\n r17 = r4[r11];\n r13 = r19 + r17;\n r10 = r11;\n r6 = r7;\n goto L_0x0041;\n L_0x00fb:\n r17 = r16 & 1;\n if (r17 == 0) goto L_0x0113;\n L_0x00ff:\n r7 = r6 + -1;\n r17 = r20[r8];\n r4[r6] = r17;\n r9 = r8 + -1;\n r17 = r4[r7];\n r20[r8] = r17;\n r17 = r20[r9];\n if (r17 < 0) goto L_0x01a1;\n L_0x010f:\n r16 = r16 ^ 1;\n r8 = r9;\n r6 = r7;\n L_0x0113:\n r7 = r6 + -1;\n r17 = r20[r8];\n r17 = r17 ^ -1;\n r4[r6] = r17;\n r0 = r21;\n if (r8 > r0) goto L_0x0124;\n L_0x011f:\n r20[r8] = r15;\n r6 = r7;\n goto L_0x0070;\n L_0x0124:\n r9 = r8 + -1;\n r17 = r4[r7];\n r20[r8] = r17;\n r17 = r16 & 2;\n if (r17 == 0) goto L_0x019f;\n L_0x012e:\n r6 = r7;\n L_0x012f:\n r7 = r6 + -1;\n r17 = r4[r10];\n r4[r6] = r17;\n r11 = r10 + -1;\n r17 = r4[r7];\n r4[r10] = r17;\n r17 = r4[r11];\n if (r17 < 0) goto L_0x019c;\n L_0x013f:\n r16 = r16 ^ 2;\n r10 = r11;\n r6 = r7;\n L_0x0143:\n r7 = r6 + -1;\n r17 = r4[r10];\n r4[r6] = r17;\n r11 = r10 + -1;\n r17 = r4[r7];\n r4[r10] = r17;\n r0 = r22;\n if (r11 >= r0) goto L_0x0171;\n L_0x0153:\n r0 = r21;\n if (r0 >= r9) goto L_0x0166;\n L_0x0157:\n r6 = r7 + -1;\n r17 = r20[r9];\n r4[r7] = r17;\n r8 = r9 + -1;\n r17 = r4[r6];\n r20[r9] = r17;\n r9 = r8;\n r7 = r6;\n goto L_0x0153;\n L_0x0166:\n r17 = r20[r9];\n r4[r7] = r17;\n r20[r9] = r15;\n r10 = r11;\n r8 = r9;\n r6 = r7;\n goto L_0x0070;\n L_0x0171:\n r17 = r20[r9];\n if (r17 >= 0) goto L_0x018e;\n L_0x0175:\n r16 = r16 | 1;\n r17 = r20[r9];\n r17 = r17 ^ -1;\n r12 = r19 + r17;\n L_0x017d:\n r17 = r4[r11];\n if (r17 >= 0) goto L_0x0193;\n L_0x0181:\n r16 = r16 | 2;\n r17 = r4[r11];\n r17 = r17 ^ -1;\n r13 = r19 + r17;\n r10 = r11;\n r8 = r9;\n r6 = r7;\n goto L_0x0041;\n L_0x018e:\n r17 = r20[r9];\n r12 = r19 + r17;\n goto L_0x017d;\n L_0x0193:\n r17 = r4[r11];\n r13 = r19 + r17;\n r10 = r11;\n r8 = r9;\n r6 = r7;\n goto L_0x0041;\n L_0x019c:\n r10 = r11;\n r6 = r7;\n goto L_0x012f;\n L_0x019f:\n r6 = r7;\n goto L_0x0143;\n L_0x01a1:\n r8 = r9;\n r6 = r7;\n goto L_0x00ff;\n L_0x01a5:\n r10 = r11;\n r6 = r7;\n goto L_0x00a1;\n L_0x01a9:\n r8 = r9;\n r6 = r7;\n goto L_0x004f;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: io.netty.handler.codec.compression.Bzip2DivSufSort.ssMergeBackward(int, int[], int, int, int, int, int):void\");\n }", "title": "" }, { "docid": "b2770eb6aad31a0385ba53013a7d99d5", "score": "0.42667907", "text": "public void readerUnlock() throws Exception, ClassCastException {\n\t\t// TODO\n\t\tif(holders.get() == null){\n\t\t\tthrow new Exception(\"Lock is not held by anyone\");\n\t\t}\n\t\tfinal Thread current = Thread.currentThread();\n\t\tReaderList newList;\n\t\tHolders readerLock;\n\t\tdo {\n\t\t\treaderLock = holders.get(); //return the value - not the instance holders\n\t\t\tif (readerLock instanceof Writer) {\n\t\t\t\tthrow new Exception(\"Lock is not held by any reader\");\n\t\t\t}\n\t\t\tif(!((ReaderList) readerLock).contains(current)){\n\t\t\t\tthrow new Exception(\"Lock not acquired\");\n\t\t\t}\n\t\t\tnewList = ((ReaderList) readerLock).remove(current);\n\t\t} while (!holders.compareAndSet(readerLock, newList));\n\t}", "title": "" }, { "docid": "f6cdcab4af625af45ee39d157296d82c", "score": "0.4260422", "text": "public IClause popBack() {\n if (back==front)\n throw new BufferUnderflowException();\n\n IClause c = tab[back--];\n if (back < 0)\n back = tab.length - 1;\n return c;\n }", "title": "" }, { "docid": "d8e13f42272ce4d8e3608314521f855e", "score": "0.42581314", "text": "public void _reverse() {\n\n var prev = first;\n var current = first.next;\n last = first;\n last.next = null;\n while (current != null) {\n var next = current.next;\n current.next = prev;\n prev = current;\n current = next;\n\n }\n first = prev;\n\n }", "title": "" }, { "docid": "de63c8a7d4f10b052a5240834fce9104", "score": "0.42580983", "text": "@Override\n int convertBackward(int unused) {\n throw new UnsupportedOperationException();\n }", "title": "" }, { "docid": "a214f34cdb227c3696556082ca50eb49", "score": "0.4256125", "text": "@Test\n public void testRemoveEdge() throws Exception {\n\n final ExecutionEnvironment env = ExecutionEnvironment.getExecutionEnvironment();\n\n Graph<Long, Long, Long> graph =\n Graph.fromDataSet(\n TestGraphUtils.getLongLongVertexData(env),\n TestGraphUtils.getLongLongEdgeData(env),\n env);\n\n // duplicate edge should be preserved in output\n graph = graph.addEdge(new Vertex<>(1L, 1L), new Vertex<>(2L, 2L), 12L);\n\n graph = graph.removeEdge(new Edge<>(5L, 1L, 51L));\n\n DataSet<Edge<Long, Long>> data = graph.getEdges();\n List<Edge<Long, Long>> result = data.collect();\n\n expectedResult =\n \"1,2,12\\n\"\n + \"1,2,12\\n\"\n + \"1,3,13\\n\"\n + \"2,3,23\\n\"\n + \"3,4,34\\n\"\n + \"3,5,35\\n\"\n + \"4,5,45\\n\";\n\n compareResultAsTuples(result, expectedResult);\n }", "title": "" }, { "docid": "9ec2327c126dcd444f7155f2f3c1f959", "score": "0.42556038", "text": "private Element getElementBackwards(int index) {\n Element element = this._headAndTail;\n\n for (int i = this._size - index; i > 0; --i) {\n element = element.getPrevious();\n }\n\n return element;\n }", "title": "" }, { "docid": "c375664dddad966696482e4e766d8367", "score": "0.42497396", "text": "void lockEdge(Inode inode, String childName, LockMode mode);", "title": "" }, { "docid": "484ea0f32b9f5f2031e230c62a88566d", "score": "0.42477605", "text": "public void reverse() {\n var previous = first;\n var current = first.next;\n\n last = first;\n last.next = null;\n while (current != null) {\n var next = current.next;\n current.next = previous;\n previous = current;\n current = next;\n\n }\n first = previous;\n\n }", "title": "" }, { "docid": "27629256b44b63f8087f71483575ed18", "score": "0.42476732", "text": "public void rotate() { // rotate the first element to the back of the list\n // TODO\n if ( tail != null){\n tail = tail.getNext();\n }\n\n }", "title": "" }, { "docid": "052bcabfba964d90efd71cd5aef8ed98", "score": "0.4245721", "text": "int getReverseEdgeKey();", "title": "" }, { "docid": "bcc2bef3599042603c85e631dedad1d0", "score": "0.4241156", "text": "public ReadOnlyDownstreamPeerState setNodeWritable(NetworkManager.NodeToken node) {\n\t\tDownstreamPeerState peer = _downstreamPeerByNode.get(node);\n\t\tAssert.assertTrue(peer.isConnectionUp);\n\t\tAssert.assertTrue(!peer.isWritable);\n\t\tpeer.isWritable = true;\n\t\treturn new ReadOnlyDownstreamPeerState(peer);\n\t}", "title": "" }, { "docid": "fb1bad2e22f4c04d717719bd5d27ba78", "score": "0.4235229", "text": "public String backwards()\n\t{\n\t\tString answer = \"\";\n\t\tDLLNode cursor = tail;\n\t\twhile (cursor != null)\n\t\t{\n\t\t\tanswer = \"<--\" + cursor.data + answer;\n\t\t\tcursor = cursor.prev;\n\t\t}\n\n\t\tanswer = \"(null)\" + answer;\n\t\treturn answer;\n\t}", "title": "" }, { "docid": "76b99dc366a36a3a9c6148394e15979b", "score": "0.42278287", "text": "public void setAsDown () \n\t{ \n\t\tn.setFailureState(false);\n\t\tfinal SortedSet<WLightpathRequest> affectedDemands = new TreeSet<> ();\n\t\tgetOutgoingFibers().forEach(f->affectedDemands.addAll(f.getTraversingLpRequestsInAtLeastOneLp()));\n\t\tgetIncomingFibers().forEach(f->affectedDemands.addAll(f.getTraversingLpRequestsInAtLeastOneLp()));\n\t\tfor (WLightpathRequest lpReq : affectedDemands)\n\t\t\tlpReq.internalUpdateOfRoutesCarriedTrafficFromFailureState();\n\t}", "title": "" }, { "docid": "3a578fa6c19dc47b027bc9d1299094ca", "score": "0.42251834", "text": "public void back() {\n\t\tif (path.isEmpty()) {\n\t\t\tpath = crossLocation.pop();\n\t\t\tLocation loc = path.get(path.size() - 1);\n\t\t\tint dir = getLocation().getDirectionToward(loc);\n\t\t\tif (dir == Location.HALF_CIRCLE) {\n\t\t\t\tdirsCount[0]--;\n\t\t\t} else if (dir == Location.AHEAD) {\n\t\t\t\tdirsCount[1]--;\n\t\t\t} else if (dir == Location.RIGHT) {\n\t\t\t\tdirsCount[2]--;\n\t\t\t} else {\n\t\t\t\tdirsCount[3]--;\n\t\t\t}\n\t\t}\n\t\tnext = path.remove(path.size() - 1);\n\t\tmove();\n\t}", "title": "" }, { "docid": "8856172bef63648ffdcbd15504b961fc", "score": "0.4222635", "text": "Set<Edge> getDownwardOutgoingNeighborEdges() {\n\t\t\tif(_bumpOnUpwardPass) {\n\t\t\t\tSystem.err.println(\"calling downward pass neighbor method on upward pass!\");\n\t\t\t}\n//\t\t\tif(_outgoingEdges.size() == 0) { // only compute if we have to\n\t\t\t\tSet<Edge> outgoingEdges = new HashSet<Edge>();\n\t\t\t\tIterator<Edge> it = _neighborEdges.keySet().iterator();\n\t\t\t\twhile(it.hasNext()) {\n\t\t\t\t\tEdge e = it.next();\n\t\t\t\t\tVertex v = e.getOtherVertex(this);\n\t\t\t\t\tif(this._orderID == UNMARKED) {\n\t\t\t\t\t\tSystem.err.println(\"whoops i am unmarked\");\n\t\t\t\t\t}\n\t\t\t\t\tif(v._orderID == UNMARKED) {\n\t\t\t\t\t\tSystem.err.println(\"whoops neighbor unmarked\");\n\t\t\t\t\t}\n\t\t\t\t\tif(this._orderID < v._orderID) {\n\t\t\t\t\t\toutgoingEdges.add(e);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t_outgoingEdges = outgoingEdges;\n//\t\t\t}\n//\t\t\treturn _outgoingEdges;\n\t\t\t\tSystem.out.println(this.toString()+\"'s outgoing edges:\\n\"+ outgoingEdges);\n\t\t\t\treturn outgoingEdges;\n\t\t}", "title": "" }, { "docid": "31c0c0479781dbfd81e824e4219bbb7e", "score": "0.4221458", "text": "public void graphRollingBack(Graph _graph, Request _request, Throwable _error) throws Exception {\n }", "title": "" }, { "docid": "b9898cf492e5e009bb79965d40a2b7e8", "score": "0.42166457", "text": "private void doubleRotationRL(BinaryNode node) {\n BinaryNode temp = min(node.right);\n if (node == root) {\n root = temp;\n if (temp.parent.right == temp) { //temp could have a child on the right\n temp.parent.right = temp.right;\n if (temp.right != null) temp.right.parent = temp.parent;\n }\n else {\n temp.parent.left = temp.right;\n if (temp.right != null) temp.right.parent = temp.parent;\n }\n root.parent = null;\n root.left = node;\n root.right = node.right;\n if(node.right != null) node.right.parent = root;\n node.parent = root;\n node.right = null;\n } else {\n if (node.parent.right == node) {\n node.parent.right = temp;\n } else {\n node.parent.left = temp;\n }\n temp.parent = node.parent;\n temp.right = node.right;\n if(node.right != null) node.right.parent = temp;\n temp.left = node;\n node.parent = temp;\n node.right = null;\n }\n }", "title": "" }, { "docid": "6f1a979725496deb71b34cb1059b3847", "score": "0.4214267", "text": "public IClause uncheckedPopBack() {\n \t\tassert back!=front : \"Deque is empty\";\n\n IClause c = tab[back--];\n if (back < 0)\n back = tab.length - 1;\n return c;\n }", "title": "" }, { "docid": "caa0163b2a84b03e26f590c79810c978", "score": "0.42134142", "text": "private void updateMirrorEdgeSegments(MirrorEdge mirrorEdge) {\n List<Node> edgeNodes = new ArrayList<>();\n edgeNodes.add(mirrorEdge.source);\n edgeNodes.addAll(mirrorEdge.bends);\n edgeNodes.add(mirrorEdge.target);\n\n if (numberOfBendsChanged(mirrorEdge)) {\n if (!mirrorEdge.segments.isEmpty()) {\n removeTrailingSegment(mirrorEdge);\n }\n while (mirrorEdge.segments.size() > mirrorEdge.bends.size()) {\n removeTrailingSegment(mirrorEdge);\n }\n }\n\n for (int i = mirrorEdge.segments.size(); i < edgeNodes.size() - 1; i++) {\n Edge segment = mirrorGraph.newEdge(edgeNodes.get(i), edgeNodes.get(i + 1));\n mirrorEdge.segments.add(segment);\n reverseEdgeMap.put(segment, mirrorEdge.original);\n }\n }", "title": "" } ]
619233ed4ede810e3f6927d4acb32566
TODO format the data and output it to the console
[ { "docid": "7ca1460fffcd633869d5808430847b63", "score": "0.0", "text": "@Override\n public void report(Location location, TrafficConditions conditions) {\n }", "title": "" } ]
[ { "docid": "aeff00195c6e05eff75bbebfa1fcd898", "score": "0.64864635", "text": "@Override\n\tpublic void printData() {\n\n\t}", "title": "" }, { "docid": "bfe83aaebc0c9200e29949ef1d20d3c4", "score": "0.6473977", "text": "public void printData();", "title": "" }, { "docid": "36e0ee700d3aa7cbee0a7ca4e68437e7", "score": "0.6378124", "text": "public void printDataset()\n {\n System.out.println(data.toString());\n }", "title": "" }, { "docid": "7db07ec0500ddb2f93c4c5ffb2df76b1", "score": "0.6295751", "text": "public void printData()\n\t{\n\t\tSystem.out.println(\n\t\t\t\tString.format(\"Prey (X): %s, Predator (Y): %s\",\n\t\t\t\t\t\tDouble.toString(newX),Double.toString(newY)));\n\t\t/*System.out.println(\n\t\t\t\tString.format(\"a: %f, b: %f, c: %f, d: %f, e: %f, f: %f\",\n\t\t\t\t\t\ta,b,c,d,e,f));*/\n\t}", "title": "" }, { "docid": "63a5a2ccb2af08bb163efb9721cc4566", "score": "0.6283771", "text": "public void printData( ){\n\t\tSystem.out.println(SEPARADOR + \"--- CARGA DE DATOS EN EL SISTEMA ----------------------\" + SEPARADOR + \"\\n\" );\n\n\t\tSystem.out.println(\"1. Cargar Small data\");\n\t\tSystem.out.println(\"2. Cargar Medium data\");\n\t\tSystem.out.println(\"3. Cargar Large data\");\n\t\tSystem.out.println(\"4. Salir.\");\n\t\tSystem.out.println(\"Dar el numero de opcion a resolver, luego oprimir tecla Return: (e.g., 1):\");\n\t}", "title": "" }, { "docid": "dba71f1a88ba4cfdc9ae18673238180a", "score": "0.6203336", "text": "public void showData() {\n logger.debug(\"\\n\\n The data:\");\n StringBuilder sb = new StringBuilder();\n for (int i = 0; i < WIDTH; i++) {\n for (int j = 0; j < HEIGHT; j++) {\n sb.append(cells[i][j].getData() + \" \");\n }\n sb.append(\"\\n\");\n }\n logger.debug(\"\\n\" + sb.toString());\n }", "title": "" }, { "docid": "9adf59e40eee60fb9c7d304ee6b2af75", "score": "0.6197177", "text": "@Override\n\tpublic String toString()\n\t{\n\t\treturn \"data:\" + data;\n\t}", "title": "" }, { "docid": "3dca7614655af47f9e3c45d8c9e716ec", "score": "0.61313355", "text": "private static void print(byte[] data) {\r\n\t\tSystem.out.print(\"[\");\r\n\t\tfor (int i=0;i<data.length;i++) {\r\n\t\t\tSystem.out.print(data[i]+\",\");\r\n\t\t}\r\n\t\tSystem.out.println(\"]\");\r\n\t}", "title": "" }, { "docid": "054699fa84fac5d36336e49ec7f662ef", "score": "0.60280854", "text": "public void printData()\n {\n reader.printData();\n }", "title": "" }, { "docid": "054699fa84fac5d36336e49ec7f662ef", "score": "0.60280854", "text": "public void printData()\n {\n reader.printData();\n }", "title": "" }, { "docid": "41e4f3a20bd95a3aaa007c523f1520aa", "score": "0.59785354", "text": "@Override\n public void printData(String data) {\n display(data);\n }", "title": "" }, { "docid": "29940b7a1afaad2b75d09940729e9090", "score": "0.5939622", "text": "@Override\n\t\tpublic String toString() \n\t\t{\n\t\t\treturn \"\" + getData();\n\t\t}", "title": "" }, { "docid": "0bc81416e1ec1b48f21aeac04e1b3e68", "score": "0.5934612", "text": "java.lang.String getData();", "title": "" }, { "docid": "eca3c0d16b67d5e3bb5588629a56dab0", "score": "0.58996403", "text": "public void showData(){\n System.out.println(\"Nombre: \" + name);\n System.out.println(\"Edad: \" + age + \"\\n\");\n }", "title": "" }, { "docid": "f6760c731866286dd36983dd7ed36617", "score": "0.58713454", "text": "void printData() {\n for (int i = 0; i < arrayData.length; i++) {\n System.out.print(arrayData[i].data + \" \");\n if (i % 10 == 0 && i != 0) {\n System.out.println();\n }\n }\n System.out.println();\n }", "title": "" }, { "docid": "96e85659c69c7d3c1f86296fdd389a44", "score": "0.58650506", "text": "private void parseData(){\n }", "title": "" }, { "docid": "2591c34da389c8a70f2afc178d405fe1", "score": "0.58578855", "text": "@Override\r\n\tpublic void processData() {\n\t\t\r\n\t}", "title": "" }, { "docid": "c3845579ea60b30ac5313309cc6758c8", "score": "0.58572596", "text": "@Override\n\tpublic String toString() {\n\t\treturn data.toString();\n\t}", "title": "" }, { "docid": "981472e929926f40e72f9c83347164e1", "score": "0.58481747", "text": "private static void show(String[] data) {\n for (int i = 0; i < data.length; i++) {\n System.out.println(data[i]);\n }\n }", "title": "" }, { "docid": "6a36e9107d6d17f4b0f84b4094ae46ec", "score": "0.58379674", "text": "public static void main (String[] args){\n\t System.out.println(readCurrentData()[0]);\n\t System.out.println(readCurrentData()[1]);\n\t System.out.println(readCurrentData()[2]);\n }", "title": "" }, { "docid": "29bd9301b54226ca706b643ae06f237b", "score": "0.5823531", "text": "public String toString()\n/* */ {\n/* 192 */ return this.data.toString();\n/* */ }", "title": "" }, { "docid": "f8158be46b126c8cb1908659ef11f3e5", "score": "0.58038795", "text": "public void Data() {\n\n\t\t\n\t}", "title": "" }, { "docid": "db20c54db3a8fca20cd8513bc0bc11e4", "score": "0.57859313", "text": "public void writedata(NString data)\n\t\t{\n\t\t\t//F2J_WRAPPED_CODE : The code of this Procedure was commented out so that you can migrate, compile and check your code in an iterative way.\n//\n//\t\t\tWebutilDb.writedata(data);\n//\n\t\t\tthis.getLogger().trace(this, \"F2J : writedata procedure is not completely migrated yet. Please read the Migration Guide.\");\n\t\t\t\n\t\t\t\n\t\t}", "title": "" }, { "docid": "45675061b3a0c388e83c1a30fdcb2ff8", "score": "0.57805866", "text": "private void print(byte[] data){\r\n for(int i =0;i<512;i++){\r\n System.out.print(data[i]+\" \");\r\n }\r\n System.out.println();\r\n }", "title": "" }, { "docid": "9bcd15a2298e73719d7c7326027b093b", "score": "0.57723206", "text": "@Override\n\tprotected void getData() {\n\n\t}", "title": "" }, { "docid": "9bcd15a2298e73719d7c7326027b093b", "score": "0.57723206", "text": "@Override\n\tprotected void getData() {\n\n\t}", "title": "" }, { "docid": "7b49900ddbf22ebf23083229ae19a57c", "score": "0.57580924", "text": "public String toString() { return String.valueOf(data); }", "title": "" }, { "docid": "a13aadec961b6c237b3eaaf46d9fbf07", "score": "0.5745339", "text": "public void printData(){\n\n\t\tSystem.out.println(\"No of Tracks '\" + myTracks.size() + \"'.\");\n\n\t\tIterator<Song> it = myTracks.iterator();\n\n\t\twhile(it.hasNext()) {\n\t\t\tSong song = it.next();\n\t\t\tSystem.out.println(song.getAlbum() + \" - \" + song.getName());\n\t\t}\n\t}", "title": "" }, { "docid": "78d8a8dfe61f7b99d2376069ffac07d2", "score": "0.5732083", "text": "@Override\n\tpublic void processData() {\n\t\t\n\t}", "title": "" }, { "docid": "6d89c4b607204fd234581d49905632b3", "score": "0.5712236", "text": "public abstract String getFormattedData();", "title": "" }, { "docid": "f32efc6e6d9934c9f31e4a1218457d9d", "score": "0.5711093", "text": "private static void show() {\n\t\tList<String> list = RedisTool.lrange(Const.STORM_AD_PURCHASE_DATA, 0, -1);\n\t\tList<String> list2 = RedisTool.lrange(Const.STATISTICS_AD_PURCHASE_DATA_DAY, 0, -1); \n\t\tList<String> orders = RedisTool.lrange(Const.STORM_AD_PURCHASE_ORDERID_DATA, 0, -1);\n\n\t\tfor (String string : list2) {\n\t\t\tSystem.out.println(string);\n\t\t}\n\t\t\n\t\t// 转换bean\n\t\t/*for (String item : list) {\n\t\t\tPurchase visit = (Purchase) JSONObject.toBean(JSONObject.fromObject(item), Purchase.class);\n\t\t\tSystem.out.println(visit.getIp());\n\t\t}\n\n\t\tfor (String item : list) {\n\t\t\tSystem.out.println(item);\n\t\t}*/\n\t}", "title": "" }, { "docid": "e4acecc6fd4c77ebf1bb064fa8b04f05", "score": "0.56917346", "text": "public void serialize(IData data, PrintStream printStream){\n String csv = ((MyData)data).getOperation() + \",\" +\n ((MyData)data).getStrategy() + \",\" +\n ((MyData)data).getBlockSize() + \",\" +\n ((MyData)data).getFileSizeInBytes() + \",\" +\n ((MyData)data).getDurationInMs() ;\n \n //writing to the csv file through a PrinStream connection to the file\n printStream.println(csv);\n }", "title": "" }, { "docid": "8a3ad7cbfb396be7de6b29301e144c8a", "score": "0.5689931", "text": "public void printData() {\n\t\tif (trainingData.isEmpty()) {\n\t\t\tSystem.err.println(\"Oh no! We have no data.\");\n\t\t\tSystem.exit(-1);\n\t\t}\n\t\ttry {\n\t\t\t// now let's read our new data\n\t\t\tScanner s = new Scanner(new File(dataPath));\n\t\t\twhile (s.hasNextLine()) {\n\t\t\t\tScanner lineScan = new Scanner(s.nextLine());\n\t\t\t\tVector<Double> v = new Vector<Double>();\n\t\t\t\tint count = 0;\n\t\t\t\tlineScan.useDelimiter(\"(\\\\s|,)+\");\n\t\t\t\twhile (lineScan.hasNext()) {\n\t\t\t\t\tif (lineScan.hasNext() && count == FIELDS) {\n\t\t\t\t\t\t// escape any given classname\n\t\t\t\t\t\tlineScan.next();\n\t\t\t\t\t} else {\n\t\t\t\t\t\t// otherwise add this element to the current vector\n\t\t\t\t\t\tv.addElement(lineScan.nextDouble());\n\t\t\t\t\t\tcount++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (count == 0) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tString lineOut = \"\";\n\t\t\t\tfor (Double d : v) {\n\t\t\t\t\tlineOut += d +\" \";\n\t\t\t\t}\n\t\t\t\tString classed = getClassification(v);\n\t\t\t\tlineOut = classed + (classed.length() > 11 ? \"\\t\\t\":\" \\t\\t\") + lineOut;\n\t\t\t\tSystem.out.println(lineOut);\n\t\t\t\tlineScan.close();\n\t\t\t}\n\t\t\ts.close();\n\t\t} catch (FileNotFoundException e) {\n\t\t\tSystem.err.println(\"Data file \"+dataPath+\" not found.\");\n\t\t\tSystem.exit(-1);\n\t\t}\n\t}", "title": "" }, { "docid": "c7e957c37f53d330f996010e74ebdb30", "score": "0.56730443", "text": "@Override\n public void print(String data) {\n System.out.println(data);\n }", "title": "" }, { "docid": "3a520bbbc98584af63eb4b321830e644", "score": "0.5664469", "text": "public void produceData()\n {\n\n String[] results = this.produceClassesData();\n this.produceCSV(results, true);\n\n String[] lines = this.produceMethodsData();\n this.produceCSV(lines, false);\n }", "title": "" }, { "docid": "ef8224b46d6f9d6638c06b34f974c190", "score": "0.5652483", "text": "@Override\n\t\tpublic String toString() {\n\t\t\treturn \"(data)\";\n\t\t}", "title": "" }, { "docid": "85ba7daf0b1c85553fca0e73941cd40c", "score": "0.5621206", "text": "void printStat(){\n if (!canPrint) return;\n System.out.println(\"===================================================================\");\n for(ConcurrentHashMap.Entry entry : data.getEntries()){\n System.out.println(entry.getKey() + \" \" + entry.getValue());\n }\n System.out.println(\"===================================================================\\n\\n\");\n }", "title": "" }, { "docid": "39f71b2934f3769bfa91adcc5cb2fc0b", "score": "0.5612497", "text": "@Parameters(name = \"{0}\")\n public static Collection<Object[]> data()\n {\n return Arrays.asList(new Object[][] { { \"RACS-Low\" }, { \"racs-low\" }, { \"RACS-LOW\" }, { \"survey2\" },\n { \"sUrVeY2\" }, { \"SURVEY2\" }, { \"VAST Epoch 1\" }, { \"VAST EPOCH 1\" } });\n }", "title": "" }, { "docid": "70348133c2ca7635674cf0359968c5ce", "score": "0.5591213", "text": "protected void readData() {\n\n\t}", "title": "" }, { "docid": "bff42df94e1a97aff86ba672d837fec5", "score": "0.558798", "text": "private void comprobarDataSet() {\r\n if (comprobarDataSet2()) {\r\n String contenido = getDataSets();\r\n if (!\"[]\".equals(contenido)) {\r\n out.println(contenido);\r\n } else {\r\n out.println(\"-1\");\r\n }\r\n } else {\r\n out.println(\"-1\");\r\n }\r\n }", "title": "" }, { "docid": "b82f700c5cfcdd757c08949bf5d0d83d", "score": "0.55877817", "text": "public String printData(){\r\n\t\t\r\n\t\tString text=\"\";\r\n\t\t\r\n\t\ttext+=\"\\n\"+sequence;\r\n\t\t\r\n\t\treturn text;\r\n\t\t\r\n\t}", "title": "" }, { "docid": "f7d8036fd0a0d4ebe990019e7e1233e4", "score": "0.55748785", "text": "public String toString(){\r\n return data.toString();\r\n }", "title": "" }, { "docid": "65c867486f7fccb6e053bcadc2fb1fbf", "score": "0.5559172", "text": "@Override\n\tpublic void getData() {\n\n\t}", "title": "" }, { "docid": "37b3b00585b21519ae6412a85457c9fd", "score": "0.55522496", "text": "@Override\n\tpublic String getData() {\n\t\treturn user + \": \\n\" + message;\n\t}", "title": "" }, { "docid": "81040b7ce24ec2f3643c31bb1b221578", "score": "0.55501205", "text": "private void writeOutSearchData() {\n// searchData = buildSearchDataTree(searchDataRoot);\n// Helper.printObject(searchData);\n }", "title": "" }, { "docid": "e1750adfd4b99a2fc0d929f984179a82", "score": "0.55358505", "text": "public void printAllData() {\n try {\n System.out.println(\"begin printing...\");\n if (data.lines != null && !(data.lines.isEmpty())) {\n for (int i = 0; i < data.lines.size(); i++) {\n pane.getChildren().add(data.lines.get(i));\n }\n System.out.println(\"lines printed\");\n }\n if (data.atoms != null && !data.atoms.isEmpty()) {\n for (int i = 0; i < data.atoms.size(); i++) {\n pane.getChildren().add(data.atoms.get(i));\n }\n System.out.println(\"atoms printed\");\n }\n if (data.radical != null) {\n pane.getChildren().add(data.radical);\n if (data.radical.radicalLabel != null) {\n pane.getChildren().add(data.radical.radicalLabel);\n System.out.println(\"radical printed\");\n }\n }\n System.out.println(\"end printing\");\n } catch (Exception e) {\n System.out.println(e.getMessage());\n }\n }", "title": "" }, { "docid": "a8380636f40e71abd419d6eabaa8744e", "score": "0.5525866", "text": "public static void main(String[] args) {\n\t\tnew SummaryData().insertSummaryData(\"songshu\", \"login\", \"20140418\");\r\n\r\n\t\t// new SummaryData().insertWholeSummaryData(\"songshu\",\r\n\t\t// \"login\",\"20140418\");\r\n\t\t// new ReadData().createDataTable(\"songshu\", \"login\",\"20140418\");\r\n\t\t// System.out.println(new\r\n\t\t// ReadData().changeDataToInsertSql(\"time=1397712953450`ucid=982385357`count=15`platform=04`os=0`version=pp助手版本\",\r\n\t\t// \"songshu\", \"login\", \"20140418\"));\r\n\t\t// new StatisticsData().InsertStatisticsDataToDataBase(\"songshu\",\r\n\t\t// \"login\", \"20140418\");\r\n\t\t// new StatisticsData().createDataTable(\"songshu\", \"login\",\"20140418\");\r\n\r\n\t\t// new ReportData().createReportDataTable(\"songshu\", \"songshu_flux\");\r\n\t\t// new ReportData().InsertStatisticsDataToReport(\"songshu\",\r\n\t\t// \"songshu_new_year\", \"20140418\");\r\n\r\n\t}", "title": "" }, { "docid": "1d8281f25b4e4d45bac35161a2e192a2", "score": "0.5517544", "text": "private void getData() {\n\t\tfor (int i = 0; i < ITEM_NUM; i++) {\n\t\t\tdatas.add(i + \"\");\n\t\t}\n\t}", "title": "" }, { "docid": "0aa3937fa6930ebd345ca94877bf94cc", "score": "0.55129254", "text": "public String toString()\r\n\t{\r\n\t\treturn \"\" + data;\r\n\t}", "title": "" }, { "docid": "fc8306c3316f93e91a205eb2571d4c75", "score": "0.5507573", "text": "private void updateData() {\n\t\t\r\n\t}", "title": "" }, { "docid": "0d954e4062d1318f53c855b1a180833f", "score": "0.5495987", "text": "@Override\n\tpublic void Data() {\n\t\t// TODO Auto-generated method stub\n\t\tSystem.out.println(name);\n\t\tSystem.out.println(\"Tipo: \" + type);\n\t\tSystem.out.println(description);\n\t\t\n\t\tif(!this.type.equalsIgnoreCase(\"Arma\")){\n\t\t\tSystem.out.println(\"Ataque: \" + power);\n\t\t}\n\t\t\n\t\telse\n\t\t\tSystem.out.println(\"Defesa: \" + power + \"\\n\");\n\t\t\n\t\tif (state)\n\t\t\tSystem.out.println(\"Equipado\");\n\t\telse\n\t\t\tSystem.out.println(\"Não equipado\");\t\t\t\t\t\t\n\t\t}", "title": "" }, { "docid": "5324e8ab5d3f6c42e707c0ffce344b5c", "score": "0.54863316", "text": "private static void dataCheck(SyaryoObjectExtract objex, MHeaderObject h) {\n objex.getDefine(\"C1-1:エンジンOH\").toList().stream()\n .map(d -> {\n String[] d_arr = d.split(\",\");\n MSyaryoAnalizer a = objex.getAnalize(d_arr[0]);\n\n String sbn = d_arr[1].split(\"\\\\.\")[1].split(\"#\")[0];\n return d + \",\" + a.get(\"受注\").get(sbn).get(h.getHeaderIdx(\"受注\", \"請求金額\"));\n })\n .forEach(System.out::println);\n }", "title": "" }, { "docid": "1b4495f0d42d5964ace8e88bec3efea1", "score": "0.54832214", "text": "public void showInternalData() {\n\t\tint i = 1;\n\t\t// Check if empty\n\t\tif (data.isEmpty()) {\n\t\t\tSystem.out.println(\"No Internal data available.\");\n\t\t}\n\t\telse {\n\t\t\tfor(InternalData element: data) {\n\t\t\t\tSystem.out.println(\"Index: \"+i+ \"\\n\");\n\t\t\t\telement.show();\n\t\t\t\tSystem.out.println(\"========================================================================================\\n\\n\");\n\t\t\t\ti++;\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "8d8b4d073c6c6c93bbc46e22334c2cbe", "score": "0.5474242", "text": "public static void main(String[] args) {\n //clearFileContent();\n //saveItemSummary(\"A;1.0;1\");\n\n System.out.println(\"aa\".getBytes());\n System.out.println(\"\\n\".getBytes());\n }", "title": "" }, { "docid": "08176c2e38ffdc262bf96089c955a1bd", "score": "0.54703647", "text": "private static void display(double[] data, PrintWriter pw)\n\t{\n\n\t\tfor(int i=0;i<data.length-1;i++)\n\t\t{\n\t\t\tpw.print(data[i]+\" \");\n\t\t}\n\t\tpw.println(\"\\n\"+data[data.length-1]);\n\t\tpw.println(statify(data));\n\t}", "title": "" }, { "docid": "81e5d60ca83a30d34a70cd68334be807", "score": "0.5466916", "text": "public static void main(String[] args) throws IOException {\n\n\t\tshowData(\"cde\", \"abc\");\n\t\tshowData(\"fcrxzwscanmligyxyvym\", \"jxwtrhvujlmrpdoqbisbwhmgpmeoke\");\n\t\tshowData(\"showman\", \"woman\");\n\t\tshowData(\"bugexikjevtubidpulaelsbcqlupwetzyzdvjphn\",\n\t\t\t\t\"lajoipfecfinxjspxmevqxuqyalhrsxcvgsdxxkacspbchrbvvwnvsdtsrdk\");\n\n\t\t/*\n\t\t * bufferedWriter.write(String.valueOf(res)); bufferedWriter.newLine();\n\t\t * \n\t\t * bufferedReader.close(); bufferedWriter.close();\n\t\t */\n\t}", "title": "" }, { "docid": "103dbac0fc258033de1025084bc3cbd1", "score": "0.5465062", "text": "public String toString()\n {\n\treturn(data.toString());\n }", "title": "" }, { "docid": "277f6c1471840ab3455acdab4d011b67", "score": "0.54647", "text": "@Override\n public String toString() {\n return getIdentifier() + \"##\" + data.toString();\n }", "title": "" }, { "docid": "cfe6722c1690c7a965353892af5dbbf5", "score": "0.5462181", "text": "@Override\n public void readData() {\n System.out.println(\"I am reading\" +audio+ \" data\" + video+ \" data.\");\n }", "title": "" }, { "docid": "e3f84629aed831dc25e538a9a88c03dc", "score": "0.5455457", "text": "public String getData();", "title": "" }, { "docid": "e3f84629aed831dc25e538a9a88c03dc", "score": "0.5455457", "text": "public String getData();", "title": "" }, { "docid": "4d1c740501f86d4343d43f0fb11ee593", "score": "0.54546666", "text": "public String PrintDataUnit() {\r\n\t\treturn fname + \", \" + lname + \", \" + company + \", \" + email + \", \" + address1 + \", \" + address2 + \", \" + zip\r\n\t\t\t\t+ \", \" + city + \", \" + state_l + \", \" + state_s + \", \" + phone + '\\n';\r\n\t}", "title": "" }, { "docid": "92f52ef0f7cfa2502a90f4913f20a1f6", "score": "0.5450883", "text": "private void storeDataFromUSV() {\n nedWriter.println(dataFromUSV[0] + \" \" + dataFromUSV[1] + \" \" \n + (headingReference - dataFromUSV[2]) + \" \" \n + latLonFromUSV[0] + \" \" + latLonFromUSV[1]);\n }", "title": "" }, { "docid": "1ec9d19518890b6fd7f9f26cbae180a3", "score": "0.54469067", "text": "private void output() {\n\t\tbyte[] arr = new byte[1];\n\t\tarr[0]=data[dataptr];\n\t\tString s = \"xXx\";\n\t\ttry {\n\t\t\ts = new String(arr, \"US-ASCII\");\n\t\t} catch (UnsupportedEncodingException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\tSystem.out.print(s);\n\n\t}", "title": "" }, { "docid": "7fd6e6c35149fdfb3d3f7e2ebd7a80c3", "score": "0.54439807", "text": "public static void main(String[] args) {\nshowData();\r\n\t}", "title": "" }, { "docid": "b4a7cda3150fd8cbb1dc802b34b92098", "score": "0.5443076", "text": "public void collectData(){\n String data = \"\";\n data += frage.getText() + \";\" + getFragePunkte() + \";\";\n for(int i = 0; i < allCurrentAnswers.size(); i++){\n data += allCurrentAnswers.get(i).getText() + \";\";\n if(allCurrentAnswerCheckBox.get(i).isSelected() == true){\n data += \"true\" + \";\";\n }else {\n data += \"false\" + \";\";\n }\n }\n allPoints.add(getFragePunkte());\n getFragePunkte();\n changeVergebenPunkte();\n allData.add(data);\n }", "title": "" }, { "docid": "85dd3314a19159992a94dac2219553df", "score": "0.54420656", "text": "@Override\n\tprotected void setupData() {\n\t}", "title": "" }, { "docid": "ce6703cd9c10fe715881b0810c39df94", "score": "0.5438873", "text": "private void printResultData(PrintWriter out,\n\t\t\tHashMap<String, Vector<DataBean>> resultData) {\n\t\tfor (String fileName : resultData.keySet()) {\n\t\t\tout.append(\"THIS IS file \" + fileName);\n\t\t\tfor (DataBean file : resultData.get(fileName)) {\n\t\t\t\tout.append(file + \"\\n\");\n\t\t\t}\n\t\t}\n\t\tout.flush();\n\t}", "title": "" }, { "docid": "61eac89526dda0ca440713ccb538194a", "score": "0.54351074", "text": "@Override\n public void printTypeOfData() {\n jsonData.printTypeOfData();\n jsonData.printObjectData();\n }", "title": "" }, { "docid": "92bcf818250448da91268e5fa4456b50", "score": "0.54240376", "text": "public void print(GenericTransaction data) throws Throwable\r\n\t{\r\n\t\t\r\n\t\t//retrieve hashmap containing all published recordsets\r\n\t\tHashMap<String, Recordset> obj = data.getData();\r\n\t\t\r\n\t\t//serialize obj to byte array\r\n\t\tByteArrayOutputStream bout = new ByteArrayOutputStream(); \r\n\t\tObjectOutputStream out = new ObjectOutputStream(bout);\r\n\t\tout.writeObject(obj);\r\n\t\tout.close();\r\n\t\tbyte buffer[] = bout.toByteArray();\r\n\t\t\r\n\t\t//print buffer\r\n\t\tgetResponse().setContentType(\"application/octet-stream\");\r\n\t\tgetResponse().setContentLength(buffer.length);\r\n\t\tServletOutputStream sout = getResponse().getOutputStream();\r\n\t\tsout.write(buffer);\r\n\t\tsout.close();\r\n\t\t\r\n\t}", "title": "" }, { "docid": "95cf306f3987a706b54dbe272136db3a", "score": "0.5420945", "text": "public String formatData()\r\n\t{\r\n\t\t\r\n\t\treturn this.newVehicle + \"%\" + this.vinNumber + \"%\" + this.year + \"%\" + this.make + \"%\" + this.model\r\n\t\t\t\t+ \"%\" + this.salePrice + \"%\" + this.descriptionOfVehicle + \"\\n\";\r\n\t}", "title": "" }, { "docid": "5ac65c947000190b3d61ee36373b3e45", "score": "0.5420621", "text": "public String toString() {\r\n\t\t\treturn data.toString();\r\n\t\t}", "title": "" }, { "docid": "150d0818edecd0222d86d0f563d0e800", "score": "0.54200524", "text": "public String getData(){ return data; }", "title": "" }, { "docid": "a2766022b662cf642c4cfa04a7bcba2c", "score": "0.5416513", "text": "static void print(DataHandle handle) {\r\n final Iterator<String[]> itHandle = handle.iterator();\r\n print(itHandle);\r\n }", "title": "" }, { "docid": "56936988265681fc05aa0cf9a9936d79", "score": "0.54126346", "text": "private String toString(boolean showData) {\r\n\t\tStringBuilder builder = new StringBuilder();\r\n\t\tbuilder.append(\"header: \");\r\n\t\tbuilder.append(header);\r\n\t\tbuilder.append(\"\\ntask ID: \");\r\n\t\tbuilder.append(taskID);\r\n\t\tbuilder.append(\"\\ndata type: \");\r\n\t\tbuilder.append(dataType);\r\n\t\tbuilder.append(\"\\ndata size: \");\r\n\r\n\t\tif (data != null) {\r\n\t\t\tbuilder.append(data.length);\r\n\t\t\tif (showData) {\r\n\t\t\t\tbuilder.append(\"\\ndata:\\n\");\r\n\t\t\t\tbuilder.append(new String(data));\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tbuilder.append(0);\r\n\t\t}\r\n\r\n\t\tbuilder.append(\"\\nfooter: \");\r\n\t\tbuilder.append(footer);\r\n\t\treturn builder.toString();\r\n\t}", "title": "" }, { "docid": "f06eeb1a0d921b711c2aeb4387a645a6", "score": "0.5400095", "text": "public void print() {\n int index = 0;\n int mindex = 0;\n while(index+1 != datasize) {\n System.out.print(data[index].getData() + \" \");\n int mersenne = (int)Math.pow(2, mindex+1)-1;\n if(index+1 == mersenne) {\n System.out.print(\"\\n\");\n mindex++; \n }\n index++;\n }\n }", "title": "" }, { "docid": "aa9da4570cfc7e3248ee13571790e3f1", "score": "0.53976524", "text": "@Override\r\n\tpublic String getData() {\n\t\tStringBuffer str = new StringBuffer();\r\n\t\tstr.append(name);\r\n\t\tstr.append(\"-\");\r\n\t\tstr.append(sex);\r\n\t\tstr.append(\"-\");\r\n\t\tstr.append(birthday);\r\n\t\treturn str.toString();\r\n\t}", "title": "" }, { "docid": "a710e449c71b1696632ba04459e237ff", "score": "0.53910995", "text": "private String dataToString(short[] data) {\n\t\tString returnString = \"\";\n\n\t\tfor (int i = 0; i < data.length; i++) {\n\t\t\treturnString += (char) data[i];\n\t\t}\n\t\treturn returnString;\n\t}", "title": "" }, { "docid": "4df2758ce9da655c77553bbd2fffab54", "score": "0.5380181", "text": "public static void main(String[] args) {\n DataExample d1 = DataExample.getRandomDataExample();\n System.out.println(d1);\n //ottimizzato per la struttura di righe\n StringWriter sw = new StringWriter();\n d1.setCognome(\"De, Lucca\");\n try (CSVPrinter csvPrinter = new CSVPrinter(sw, CSVFormat.DEFAULT.withHeader(\"id\", \"Nome\", \"Cognome\", \"eMail\"))) {\n for (int i = 0; i < N_DATA_EXAMPLE; i++) {\n d1 = DataExample.getRandomDataExample();\n //csvPrinter.printRecord(/*serie di valori*/);\n //csvPrinter.print(d1); non va bene, stampa non formattato\n csvPrinter.printRecord(d1.getId(), d1.nome, d1.cognome, d1.email);//separa tutto con le virgole. se inseriamo qualcosa con la virgola, inserisce \"\"\n csvPrinter.flush();\n }\n } catch (IOException e) {\n\n }\n //System.out.println(sw.toString()); DEBUG STAMPA IN CONSOLE\n //scrivo su csv\n try (FileWriter fw = new FileWriter(\"data-example.csv\")) {\n fw.write(sw.toString());\n } catch (IOException e) {\n e.printStackTrace();\n }\n //rileggo da csv e creo una lista\n List<DataExample> dataFromCSV = new ArrayList<>();\n try (/*setuppare per la lettura*/CSVParser csvParser = new CSVParser(new FileReader(\"data-example.csv\"), CSVFormat.DEFAULT.withFirstRecordAsHeader())) {\n for (CSVRecord r : csvParser) {\n //chiediamo il nome del record appena letto\n System.out.println(r.get(\"Nome\"));\n DataExample tmp = new DataExample(Integer.parseInt(r.get(\"id\")),\n r.get(\"Nome\"),\n r.get(\"Cognome\"),\n r.get(\"eMail\"));\n dataFromCSV.add(tmp);\n }\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n dataFromCSV.stream()\n .filter(e -> e.getEmail().endsWith(\"@live.it\"))\n .forEach(System.out::println);\n }", "title": "" }, { "docid": "8e7aa98dd0b961da9d4ed2c378114eda", "score": "0.537811", "text": "public String printInfo()\r\n {\r\n String info; \r\n info = \"Number =\" + data ;\r\n return info;\r\n }", "title": "" }, { "docid": "306e227a5f988cf7c30c88de55102b0f", "score": "0.5377722", "text": "@Override\n\tpublic void display() {\n\t\tSystem.out.println(modifyTitle);\n\t\tSystem.out.print(\"수정하고 싶은 사람의 Idx값을 입력하세요 > \");\n\t\tint idx = scan.nextInt();\n\t\t\n\t\tSystem.out.print(\"수정 원하는 이름을 입력하세요 > \");\n\t\tString name = scan.next();\n\t\tSystem.out.print(\"수정 원하는 번호를 입력하세요 > \");\n\t\tString phone = scan.next();\n\t\tdata.dto = new Dto(idx, name, phone);\n\t\t\n\t}", "title": "" }, { "docid": "0e485f944cd3ed120091d9e7b195e476", "score": "0.53761834", "text": "public static void main(String[] args) throws IOException {\n\t Schema schema = new Schema.Parser().parse(new File(\"schema\\\\Emp.avsc\"));\n\t\t\t\n\t //Instantiating the GenericRecord class.\n\t GenericRecord e1 = new GenericData.Record(schema);\n\t\t\t\n\t //Insert data according to schema\n\t e1.put(\"name\", \"Ese\");\n\t e1.put(\"id\", 001);\n\t e1.put(\"salary\",30000);\n\t e1.put(\"age\", 25);\n\t e1.put(\"address\", \"Asaba\");\n\t\t\t\n\t GenericRecord e2 = new GenericData.Record(schema);\n\t\t\t\n\t e2.put(\"name\", \"Terere\");\n\t e2.put(\"id\", 002);\n\t e2.put(\"salary\", 35000);\n\t e2.put(\"age\", 30);\n\t e2.put(\"address\", \"Lagos\");\n\t\t\t\n\t DatumWriter<GenericRecord> datumWriter = new GenericDatumWriter<GenericRecord>(schema);\n\t\t\t\n\t DataFileWriter<GenericRecord> dataFileWriter = new DataFileWriter<GenericRecord>(datumWriter);\n\t dataFileWriter.create(schema, new File(\"data\\\\employee.no.txt\"));\n\t\t\t\n\t dataFileWriter.append(e1);\n\t dataFileWriter.append(e2);\n\t dataFileWriter.close();\n\t \n\t System.out.println(\"data successfully serialized\");\t\t\n\n\t}", "title": "" }, { "docid": "dea61353493283e867a2f2cbb650865d", "score": "0.5372517", "text": "@Override\r\n\tprotected Data processData(Data data)\r\n\t{\r\n\t\treturn data;\r\n\t}", "title": "" }, { "docid": "818d9c7a9efdfa92ab8b0f363f93a097", "score": "0.5369237", "text": "public String getDataLine(){\n\t\tString line = email;\n\t\tline+=\",\" + time;\n\t\tline+=\",\" + coords[0];\n\t\tline+=\",\" + coords[1];\n\t\tline+=\",\" + values[0];\n\t\tline+=\",\" + values[1];\n\t\tline+=\",\" + values[2];\n\t\tline+=\",\" + values[3];\n\t\tline+=\",\" + provider+\"\\n\";\n\t\treturn line;\n\t}", "title": "" }, { "docid": "0bb3c85c76415c48e021b0e6437f22ac", "score": "0.53663737", "text": "public void data()\n {\n }", "title": "" }, { "docid": "0aa5420bbfb22c88dca525bfffe1fa4a", "score": "0.53656256", "text": "@Override\n public String getInfo(SensorData data) {\n StringBuilder builder = new StringBuilder();\n builder.append(data.getSource().substring(data.getSource().lastIndexOf(\"/\") + 1));\n String str = \",\" + data.getTimestamp().toString();\n builder.append(str);\n str = \",\" + data.getProperty(SensorData.POWER_CONSUMED);\n builder.append(str);\n str = \",\" + data.getProperty(\"airConditioner\") + \",\" + data.getProperty(\"waterHeater\");\n builder.append(str);\n str = \",\" + data.getProperty(\"dryer\") + \"\\n\";\n builder.append(str);\n return builder.toString();\n }", "title": "" }, { "docid": "c5e84ee03ffa0042f3d656088908fff9", "score": "0.53650635", "text": "@Override\r\n\tpublic String toString() {\r\n\t\treturn String.format(\"%s:%s\", getID(), getData());\r\n\t}", "title": "" }, { "docid": "8b8d6fae1f1b3ddf9e9b2ff9f7064197", "score": "0.5363576", "text": "@Override\n public String toString() {\n return \"Data is not in correct format of: Name;Service;Amount;Date\";\n }", "title": "" }, { "docid": "e3c53d73d03f1fe84a812550caeb7683", "score": "0.53634876", "text": "public void print() {\n\n System.out.println(headers);\n\n for (int i = 0; i < getNumRows(); i++) {\n// for (int j = 0; j < getNumCols(); j++) {\n// System.out.println(data.get(i).get(j));\n// }\n\n System.out.println(data.get(i));\n }\n\n }", "title": "" }, { "docid": "1a90a231d6928aff530655b2d8baa7ed", "score": "0.53590524", "text": "public static void main(String[] args) throws IOException {\n JsonFactory jf = JsonFactory.builder()\n .configure(JsonReadFeature.ALLOW_NON_NUMERIC_NUMBERS, true)\n .build();\n JsonParser jp = jf.createParser(new URL(\"http://hddev1db014dxc1.dev.oclc.org:60030/jmx\"));\n int depth = 1;\n int fieldsDiscovered = 0;\n Stack<String> currentField = new Stack<>();\n jp.nextToken();\n if (jp.currentToken()!= JsonToken.START_OBJECT){\n throw new IllegalStateException(\"object is bad\");\n }else {\n System.out.println(\"start object found\");\n }\n jp.nextToken();\n while (depth > 0){\n if (jp.currentToken() == JsonToken.START_OBJECT){\n depth++;\n }\n if (jp.currentToken()==JsonToken.END_OBJECT){\n depth--;\n currentField.pop();\n }\n if (jp.currentToken() == JsonToken.FIELD_NAME){\n fieldsDiscovered++;\n currentField.push(jp.getCurrentName());\n// System.out.printf(\"field: %s==%s (%d)%n\",currentField.peek(), jp.nextTextValue(), depth);\n System.out.printf(\"%s%n\", currentField.peek());\n }\n if (jp.currentToken() == JsonToken.START_ARRAY){\n depth++;\n }\n if (jp.currentToken()== JsonToken.END_ARRAY){\n depth--;\n }\n jp.nextToken();\n }\n jp.close();\n System.out.println(\"total fields discovered: \" + fieldsDiscovered);\n }", "title": "" }, { "docid": "a2eff79bc4272d71b8136ec7ec0672aa", "score": "0.53576976", "text": "@Override\n\tpublic void printRecords() {\n\t\tif(jornal.size() == 0) System.out.println(\"[ ]\");\n\t\telse\n\t\t\tfor(int i=0;i<jornal.size();i++){\n\t\t\t\tSystem.out.println(\"[\"+jornal.get(i)+\"]\");\n\t\t\t}\n\t}", "title": "" }, { "docid": "081f074fc51d3406b9864255a3ce4a09", "score": "0.5355343", "text": "final void createCommandData() {\n buildDss(true,\n false,\n false,\n DssConstants.GDSFMT_OBJDSS,\n correlationID_,\n false);\n }", "title": "" }, { "docid": "f6b1d84c2270657dec5ad4b6aa2cb2f8", "score": "0.5354751", "text": "public String writeData() {\r\n\t\treturn getName() + \",\" + getType().getDescription() + \",\" + getYear();\r\n\t}", "title": "" }, { "docid": "985ceaf94e6432458b92144eb6208ac9", "score": "0.53503907", "text": "public void printData() throws CodeException {\n }", "title": "" }, { "docid": "985ceaf94e6432458b92144eb6208ac9", "score": "0.53503907", "text": "public void printData() throws CodeException {\n }", "title": "" }, { "docid": "e5d07c10e681877208a7d3accd8ada5e", "score": "0.5349815", "text": "public static void main(String[] args) {\nSystem.out.println(\"Import data\");\r\n\t}", "title": "" }, { "docid": "d33a2fd5671c1677106084434d4ba1e8", "score": "0.534618", "text": "public void getData()\n\t{\n\t\tif (jobEntry.getName() != null) wName.setText( jobEntry.getName() );\n\t\twName.selectAll();\n\n wAccessKey.setText(Const.NVL(jobEntry.getAccessKey(), \"\"));\n\t\twPrivateKey.setText(Const.NVL(jobEntry.getPrivateKey(), \"\"));\n\t\twS3Bucket.setText(Const.NVL(jobEntry.getS3Bucket(), \"\"));\n\t\twFilename.setText(Const.NVL(jobEntry.GetFilenameToSend(), \"\"));\n\t}", "title": "" }, { "docid": "704b96112208b3cf4920f4136e023aa6", "score": "0.534576", "text": "private static RIP dataToRIP(String text) {\n\t\tSystem.out\n\t\t\t\t.println(\"Beginning to collect data to create the RIP object.\");\n//\t\tSystem.out.println(text);\n\t\t// Name\n\t\tint startIndex = text.indexOf(\"1. \") + 4;\n\t\tint endIndex = text.indexOf(\"SSAN\") - 2;\n\t\tString name = text.substring(startIndex, endIndex).trim();\n\t\tSystem.err.println(name);\n\n\t\t// Rank\n\t\tString rank = getRank(name);\n\t\tname = name.substring(3).trim();\n\n\t\t// PDD\n\t\tstartIndex = text.indexOf(\"PROJ DPT DT: \") + 13;\n\t\tendIndex = startIndex + 11;\n\t\tMyDate PDD = toDate(text.substring(startIndex, endIndex));\n\n\t\t// RNLTD\n\t\tstartIndex = text.indexOf(\"RNLTD: \") + 7;\n\t\tendIndex = startIndex + 11;\n\t\tMyDate RNLTD = toDate(text.substring(startIndex, endIndex));\n\n\t\t// DAS\n\t\tstartIndex = text.indexOf(\"DT ARRIVED STATION: \") + 20;\n\t\tendIndex = startIndex + 11;\n\t\tMyDate DAS = toDate(text.substring(startIndex, endIndex));\n\n\t\t// SSN\n\t\tstartIndex = text.indexOf(\"SSAN: \") + 6;\n\t\tendIndex = startIndex + 11;\n\t\tString SSN = text.substring(startIndex, endIndex).trim();\n\n\t\t// CurrPAS\n\t\tstartIndex = text.indexOf(\"CURR-PAS: \") + 11;\n\t\tendIndex = startIndex + 8;\n\t\tString currPAS = text.substring(startIndex, endIndex).trim();\n\n\t\t// ProjPAS\n\t\tstartIndex = text.indexOf(\"PROJ-PAS: \") + 11;\n\t\tendIndex = startIndex + 8;\n\t\tString projPAS = text.substring(startIndex, endIndex).trim();\n\n\t\t// CurrUnit\n\t\tstartIndex = text.indexOf(\"CURR-PAS: \");\n\t\tString currUnit = getLine(text.substring(startIndex), 1);\n\t\tendIndex = currUnit.indexOf(\"RNLTD: \");\n\t\tcurrUnit = currUnit.substring(0, endIndex).trim();\n\n\t\t// ProjUnit\n\t\tstartIndex = text.indexOf(\"PROJ-PAS: \");\n\t\tString projUnit = getLine(text.substring(startIndex), 1).trim();\n\n\t\t// CurrBase\n\t\tstartIndex = text.indexOf(\"CURR-PAS: \");\n\t\tString currBase = getLine(text.substring(startIndex), 2);\n\t\tendIndex = currBase.indexOf(\"AAN:\");\n\t\tcurrBase = currBase.substring(0, endIndex).trim();\n\n\t\t// ProjBase\n\t\tstartIndex = text.indexOf(\"PROJ-PAS: \");\n\t\tString projBase = getLine(text.substring(startIndex), 2).trim();\n\n\t\t// Servicing MPS\n\t\tstartIndex = text.indexOf(\"SERVICING MPF: \") + 15;\n\t\tendIndex = startIndex + 7;\n\t\tString servicingMPS = text.substring(startIndex, endIndex).trim();\n\n\t\t// Selected AFSC\n\t\tstartIndex = text.indexOf(\"AFSC IN WHICH SELECTED: \") + 25;\n\t\tendIndex = startIndex + 7;\n\t\tString selectedAFSC = text.substring(startIndex, endIndex).trim();\n\n\t\t// Marital Status\n\t\tstartIndex = text.indexOf(\"MARITAL STAT: \") + 14;\n\t\tendIndex = startIndex + 8;\n\t\tString maritalStatus = text.substring(startIndex, endIndex).trim();\n\n\t\t// num Dependents\n\t\tstartIndex = text.indexOf(\"# OF DEPN: \") + 11;\n\t\tendIndex = startIndex + 2;\n\t\tint numDepn = Integer.parseInt(text.substring(startIndex, endIndex)\n\t\t\t\t.replaceAll(\"\\\\s\", \"\"));\n\n\t\t// ETS\n\t\tMyDate ETS = new MyDate(3888, 8, 8);\n\t\tif (rank.charAt(0) == 'E') {\n\t\t\tstartIndex = text.indexOf(\"ETS: \") + 5;\n\t\t\tendIndex = startIndex + 11;\n\t\t\tETS = toDate(text.substring(startIndex, endIndex));\n\t\t}\n\n\t\t// DOS\n\t\tstartIndex = text.indexOf(\"DOS: \") + 5;\n\t\tendIndex = startIndex + 11;\n\t\tMyDate DOS = toDate(text.substring(startIndex, endIndex));\n\n\t\t// TAFMSD\n\t\tstartIndex = text.indexOf(\"TAFMSD: \") + 8;\n\t\tendIndex = startIndex + 11;\n\t\tMyDate TAFMSD = toDate(text.substring(startIndex, endIndex));\n\n\t\t// ASD\n\t\tstartIndex = text.indexOf(\"ASSIGNMENT SELECTION DATE (ASD): \") + 33;\n\t\tendIndex = startIndex + 11;\n\t\tMyDate ASD = toDate(text.substring(startIndex, endIndex));\n\n\t\t// AACs\n\t\tstartIndex = text\n\t\t\t\t.indexOf(\"ASSIGNMENT AVAILABILITY DATA (CODES AND DATES OF AVAILABILITY):\");\n\t\tArrayList<String> AACs = getListing(text.substring(startIndex));\n\n\t\t// ALCs\n\t\tstartIndex = text\n\t\t\t\t.indexOf(\"ASSIGNMENT LIMITATION DATA (CODES AND DATES OF AVAILABILITY):\");\n\t\tArrayList<String> ALCs = getListing(text.substring(startIndex));\n\n\t\t// AAR\n\t\tstartIndex = text.indexOf(\"ASSIGNMENT ACTION REASON: \") + 26;\n\t\tendIndex = startIndex + 2;\n\t\tString AAR = text.substring(startIndex, endIndex);\n\n\t\t// PPCs\n\t\tstartIndex = text.indexOf(\"PPC\") + 11;\n\t\tendIndex = text.indexOf(\"REMARKS:\");\n//\t\tSystem.out.println(startIndex + \", \" + endIndex);\n\t\tArrayList<String> PPCs = getPPCs(text.substring(startIndex, endIndex));\n\n\t\tRIP rip = new RIP(name, rank, PDD, RNLTD, DAS, SSN, currPAS, projPAS,\n\t\t\t\tcurrUnit, projUnit, currBase, projBase, servicingMPS,\n\t\t\t\tselectedAFSC, maritalStatus, numDepn, ETS, DOS, TAFMSD, ASD,\n\t\t\t\tAACs, ALCs, AAR, PPCs, text);\n\n\t\tSystem.out.println(\"Finished collecting data from RIP.\");\n\t\treturn rip;\n\t}", "title": "" }, { "docid": "60593c2c475f0153692e76ec72909fab", "score": "0.533566", "text": "public Object getRawData();", "title": "" }, { "docid": "e08f01cea8f519a5adffc7b3e721aa6d", "score": "0.5335146", "text": "@Override\n public String toString() {\n\n String fullString = data.toString(); // Will call the generic data toString method\n\n return fullString;\n }", "title": "" }, { "docid": "7abd773dbc8e868c8751c8e649e6f0d6", "score": "0.5334497", "text": "private String print() {\r\n\t\t\tString output = \"\" + data;\r\n\t\t\tif (next == null) {\r\n\t\t\t\treturn output;\r\n\t\t\t} else {\r\n\t\t\t\treturn next.print() + \", \" + output;\r\n\t\t\t}\r\n\t\t}", "title": "" } ]
22fc2594a66e7c63cb3d4a70aa63fab1
/ access modifiers changed from: private / access modifiers changed from: public
[ { "docid": "0154e0887389e4ba8dd8d5ce59d03ada", "score": "0.0", "text": "private void addBucketInfo(int index, CountBucketInfo.Builder builderForValue) {\n ensureBucketInfoIsMutable();\n this.bucketInfo_.add(index, (CountBucketInfo) builderForValue.build());\n }", "title": "" } ]
[ { "docid": "5d6f8db1f75beb16acd7c64687bc500c", "score": "0.7138833", "text": "private Utilitarios() {\n\t\t\n\t}", "title": "" }, { "docid": "8a25055bb85939ca272f2502bebb1975", "score": "0.6818074", "text": "private Public() {\n\t\tsuper(\"PUBLIC\");\n\t}", "title": "" }, { "docid": "29b7c46d508e598b82559ba09507bb88", "score": "0.672424", "text": "private void fooPrivate()\r\n\t{\r\n\r\n\t}", "title": "" }, { "docid": "534c466f09845319b9edaf959a891c09", "score": "0.6596325", "text": "@Override\r\n\tpublic void debriyaj() {\n\t\t\r\n\t}", "title": "" }, { "docid": "fcb3c4d3186fcf7a2e6567fab9b7d5e2", "score": "0.6477928", "text": "private Theora()\n\t{\n\t}", "title": "" }, { "docid": "bdc1683df7d1d6b2d988cd3acab4903e", "score": "0.64711624", "text": "public void mo5201a() {\n }", "title": "" }, { "docid": "20020208a82a13db216fe5825a1225cb", "score": "0.6462102", "text": "private In() {\n\t}", "title": "" }, { "docid": "b366684f47b5dad8bbdfbfe044fe0841", "score": "0.64262366", "text": "private Differentiables()\r\n\t{\r\n\t}", "title": "" }, { "docid": "74a4209c94e08d9f5eb0b60e580f5e04", "score": "0.6389539", "text": "@Override\r\n\tpublic void comit() {\n\t\t\r\n\t}", "title": "" }, { "docid": "6e4c19916d6f109979d7cb7748a863ed", "score": "0.6371323", "text": "private Pa() {\n\t}", "title": "" }, { "docid": "0b5b11f4251ace8b3d0f5ead186f7beb", "score": "0.63506836", "text": "@Override\n\tpublic void comer() {\n\t\t\n\t}", "title": "" }, { "docid": "5fa8025455ce490980ad8cccfd13eea3", "score": "0.63426954", "text": "public void mo5201a() {\n }", "title": "" }, { "docid": "81947757aee9a263ce2bf0b93b788cd7", "score": "0.63320476", "text": "public interface Public {}", "title": "" }, { "docid": "53fb64c28ed55225b371042994814cf5", "score": "0.62612665", "text": "public static void encapsulation(){\n }", "title": "" }, { "docid": "de62fd1b46f929f42678cf6311a56bf9", "score": "0.6259939", "text": "private Helper3() {}", "title": "" }, { "docid": "613a3e1e6e5657c279f3d776498946fc", "score": "0.6256492", "text": "@Override\n public boolean hasAccess() { return true; }", "title": "" }, { "docid": "8f8f55754a50ef47c9d93a9353835678", "score": "0.6256012", "text": "private CL() {\n\t}", "title": "" }, { "docid": "83c17378086426b4324c4ea8c160e29d", "score": "0.62285525", "text": "@Override\r\n\tpublic void provjeri() {\n\r\n\t}", "title": "" }, { "docid": "cde330391e98279ac96876471330c12b", "score": "0.6220271", "text": "private Quick3WaysImproved() {}", "title": "" }, { "docid": "838dc67d0cf43779c25a49159bb003e7", "score": "0.62139356", "text": "public void mo5201a() {\n }", "title": "" }, { "docid": "0937d68649ead8a506d57d8aacb2a3ec", "score": "0.6210966", "text": "public yav mo18855c() {\n throw new UnsupportedOperationException(\"This method must be overwritten by subclasses\");\n }", "title": "" }, { "docid": "0aeb31da8ebac864ecfc84df5be728c9", "score": "0.6209239", "text": "@Override\r\n\tpublic void koleos() {\n\t\t\r\n\t}", "title": "" }, { "docid": "03dec34dcb010fb4f8aaffffeb038a5c", "score": "0.61769307", "text": "@Override\r\n public void atacar() {\n \r\n }", "title": "" }, { "docid": "10dc6a272887f1695aec639a085f1c0d", "score": "0.61729616", "text": "private I000033() {\r\n\t}", "title": "" }, { "docid": "8f31ed4dec33eaea2bc3912ffe04ab5c", "score": "0.615001", "text": "private CodeCamp() {\n \n }", "title": "" }, { "docid": "ae712cb3367e65298cebb205e49b7904", "score": "0.61345524", "text": "@Override\n public boolean isPrivate();", "title": "" }, { "docid": "690c3795eb018aa9906a3ed189d8e3a0", "score": "0.6118959", "text": "@Override\n\tpublic void atacar() {\n\n\t}", "title": "" }, { "docid": "7c2f530eef910ca7368316b6425dbb09", "score": "0.611819", "text": "@Override\n\t\t\tpublic void test12() {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "d5fc964e118f8f0b5fe588463f39638b", "score": "0.61153734", "text": "private I000055() {\r\n\t}", "title": "" }, { "docid": "fac40e2c83f979222d112526ea3eb95a", "score": "0.60980004", "text": "private Public() {\n super(\"public\", null);\n }", "title": "" }, { "docid": "fac40e2c83f979222d112526ea3eb95a", "score": "0.60980004", "text": "private Public() {\n super(\"public\", null);\n }", "title": "" }, { "docid": "fac40e2c83f979222d112526ea3eb95a", "score": "0.60980004", "text": "private Public() {\n super(\"public\", null);\n }", "title": "" }, { "docid": "fac40e2c83f979222d112526ea3eb95a", "score": "0.60980004", "text": "private Public() {\n super(\"public\", null);\n }", "title": "" }, { "docid": "655a271d981b875feb8fbc679e1a4f87", "score": "0.6082451", "text": "public void mo9609a() {\n }", "title": "" }, { "docid": "e3110a393bd4b870b4055aa9ed6efd87", "score": "0.60797065", "text": "@Override\n\tpublic void attaquer() {\n\t\t\n\t}", "title": "" }, { "docid": "4541b4eaa2b2871ab4c98fc297f4dede", "score": "0.60712653", "text": "@Override\n\tpublic void descer() {\n\t\t\n\t}", "title": "" }, { "docid": "d5b615d2b6f478aa175f6041e32c6191", "score": "0.60686517", "text": "private SingletionObject6() {\n }", "title": "" }, { "docid": "e4ec072a8b16e284aebf85d28ec89ef5", "score": "0.60627234", "text": "public void mo5203c() {\n }", "title": "" }, { "docid": "e0b943b1b36797b4d7440bb3c831107f", "score": "0.6062486", "text": "public void mo37302a() {\n }", "title": "" }, { "docid": "f37aebdfc461c1965abd4e2afbc83532", "score": "0.6060173", "text": "private void apparence()\r\n\t\t{\r\n\t\t//rien\r\n\t\t}", "title": "" }, { "docid": "ea1c76a60bd59cff0e447913af50b87e", "score": "0.6056707", "text": "private ObjectFrameUtilsVeins11()\n {\n\n }", "title": "" }, { "docid": "fb7e6b2a89843e694a13571c31377718", "score": "0.60554457", "text": "public void mo19849a() {\n }", "title": "" }, { "docid": "f6f56f418bd606790da6d3f972d1bd39", "score": "0.6052024", "text": "protected abstract void mo3576c();", "title": "" }, { "docid": "80762458b54fe841d7e4f99e4de13990", "score": "0.6050073", "text": "@Override\n\tprotected void respirar() {\n\t\t\n\t}", "title": "" }, { "docid": "80762458b54fe841d7e4f99e4de13990", "score": "0.6050073", "text": "@Override\n\tprotected void respirar() {\n\t\t\n\t}", "title": "" }, { "docid": "ce59081d11907d22912e71fce001e4cd", "score": "0.60495454", "text": "private CommonFunctions() {}", "title": "" }, { "docid": "e04f934fbe00df663fa9d5d545a1a729", "score": "0.6036525", "text": "@Override\n public void sporcuPuaniGoster() {\n\n }", "title": "" }, { "docid": "21d672149bbdd06ba8646ddf7f7f41d1", "score": "0.6035791", "text": "@Override\n\tprotected void descansar() {\n\t\t\n\t}", "title": "" }, { "docid": "21d672149bbdd06ba8646ddf7f7f41d1", "score": "0.6035791", "text": "@Override\n\tprotected void descansar() {\n\t\t\n\t}", "title": "" }, { "docid": "284ac07ef82f773c595770328b9c243a", "score": "0.6033255", "text": "private UnsagaModCore(){\n\n\t}", "title": "" }, { "docid": "ff4020f012087432b168ac24388e3fab", "score": "0.6022386", "text": "private MleProjectMessages()\n\t{\n\t\t// Do nothing for now.\n\t}", "title": "" }, { "docid": "b5d2b9ad38e0657af004f63b60bc52f5", "score": "0.60151803", "text": "@Override\n\tpublic boolean isPublic() {\n\t\treturn false;\n\t}", "title": "" }, { "docid": "bcc647eaea257a78c8d339a2668f39eb", "score": "0.60148925", "text": "@Override\r\n\tpublic void thirsty() {\n\t\t\r\n\t}", "title": "" }, { "docid": "1ed144b4d2aead457255ab8ddb73ac57", "score": "0.60114014", "text": "@Override\r\n\tpublic void limpar() {\n\r\n\t}", "title": "" }, { "docid": "6771cfd7d47c56b6a477c2ae2ae37a0c", "score": "0.6006766", "text": "public void PlantillasModoPrivilegiados (){}", "title": "" }, { "docid": "a133a640950fe7cdfa2a61ba6813a824", "score": "0.6004937", "text": "private UtilsEta () {\n\t}", "title": "" }, { "docid": "a84613bc43c54b75c798d612a040e11f", "score": "0.60003483", "text": "private CodePackage() {}", "title": "" }, { "docid": "a8466bdc481ff3361d07776f72a6ad5a", "score": "0.59998244", "text": "@Override\n\tpublic void fliegen() {\n\t\t\n\t}", "title": "" }, { "docid": "6d3e008fe1c0a0069a9867ec7f99214e", "score": "0.5996665", "text": "private BAPIUtils() {\n //private constructor.\n }", "title": "" }, { "docid": "ff2a26de6775216e86ea92e547fb9c42", "score": "0.59922427", "text": "@Override\n\tpublic void manobrar() {\n\t\t\n\t}", "title": "" }, { "docid": "8a2f3b349a25374b05205f9955000cb0", "score": "0.5989224", "text": "public void omzet(){\n\t}", "title": "" }, { "docid": "0ccd1a94868b2a5e1981c87bb769fb7a", "score": "0.59824187", "text": "private AmigoUtil() {\r\n\t}", "title": "" }, { "docid": "3e556c0f03a7d2509fe80fc61a60a369", "score": "0.598153", "text": "@Override\n\t\t\t\tpublic void init() {\n\t\t\t\t\t\n\t\t\t\t}", "title": "" }, { "docid": "f6f6b7cfe36009e0543d7792da306d59", "score": "0.5973559", "text": "private Endpoint() {\n\t}", "title": "" }, { "docid": "1c73728c63897d7fb1e18d5443a5b320", "score": "0.59640175", "text": "void changesOfAccess();", "title": "" }, { "docid": "01084478d2aaee960e0f17c9424b4491", "score": "0.5962333", "text": "@Override\n\t\t\tpublic void a() {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "e7add6bf2559291455b48a12b2810377", "score": "0.59611154", "text": "private TypicalExercises() {}", "title": "" }, { "docid": "573e777b1723411d46abc7892cb5caea", "score": "0.5959364", "text": "public void mo5608a() {\n }", "title": "" }, { "docid": "a147e931a0b23fd21b8e6b39e13d9778", "score": "0.59539527", "text": "@Override\n\tprotected void alimentar() {\n\t\t\n\t}", "title": "" }, { "docid": "a147e931a0b23fd21b8e6b39e13d9778", "score": "0.59539527", "text": "@Override\n\tprotected void alimentar() {\n\t\t\n\t}", "title": "" }, { "docid": "2e8b0d8bb9fd62c1559ca4b277c6505c", "score": "0.59455454", "text": "@Override\n\tpublic void 이체() {\n\t\t\n\t}", "title": "" }, { "docid": "bece1cb15bffa2bef147ff4606323003", "score": "0.59444106", "text": "private void m49836B() {\n }", "title": "" }, { "docid": "b645eacb329adc01490ab5013a6c4f7f", "score": "0.5944121", "text": "@Override\n\t\t\tpublic void perfom() {\n\n\t\t\t}", "title": "" }, { "docid": "48277775e2ea1129c5f2046df7c86718", "score": "0.5939693", "text": "private Features() {\n\t\t// prevent from instantiation\n\t}", "title": "" }, { "docid": "2d0824e923a5d66806b3bad0940abbd3", "score": "0.5934743", "text": "private Utils() {}", "title": "" }, { "docid": "2d0824e923a5d66806b3bad0940abbd3", "score": "0.5934743", "text": "private Utils() {}", "title": "" }, { "docid": "05376175828876d05086b6c82df71fe4", "score": "0.5930427", "text": "private Utils() {\n\t}", "title": "" }, { "docid": "866eb7f74ce00731af377cb714894ba5", "score": "0.59267646", "text": "public void OI() {\n \n \n }", "title": "" }, { "docid": "d4a4477417a0f601415fea59cd94af33", "score": "0.5924183", "text": "private // Defeat instantiation\n YdxfGetEntDimension()\n {\n }", "title": "" }, { "docid": "287d137ad243cc30f0e282ffd27beff6", "score": "0.59207916", "text": "Overloading(){\n\t\tsuper();\n\t}", "title": "" }, { "docid": "e243121bbc16b3ba9b5e62781a738c7d", "score": "0.59146607", "text": "public void mo11469p() {\n }", "title": "" }, { "docid": "dcde0efa54aad27c4f25595b5d9256c7", "score": "0.5908796", "text": "private ListaBezeroak() {\n\t\t\n\t}", "title": "" }, { "docid": "26f5f5a2b6aec189e64599f0c469c2c2", "score": "0.5908444", "text": "private Transformations() {\n }", "title": "" }, { "docid": "252960e025bfa106bbe3903b4e4cbd3c", "score": "0.59039354", "text": "public void mo35709a() {\n }", "title": "" }, { "docid": "b2858312446172fa25a799c5367d2043", "score": "0.5903577", "text": "Smelting(){\r\n\r\n\t\t}", "title": "" }, { "docid": "340501befa22d3cf8434b5dbe50aa808", "score": "0.5902636", "text": "public void mo33575b() {\n }", "title": "" }, { "docid": "7a1e3a6ca521e8942d973a45c2453c9d", "score": "0.58998126", "text": "private void hrekj$kjfsadf(){}", "title": "" }, { "docid": "73ffd108140c756e1eaa8948af3a83b4", "score": "0.58997923", "text": "public void mo10177b() {\n }", "title": "" }, { "docid": "6510d3dea6a26c84e16ad2630e8f6b44", "score": "0.5895889", "text": "public abstract void mo34648b();", "title": "" }, { "docid": "7ebeba1e8e017bd5c5f35e3441ce9e41", "score": "0.5891101", "text": "public void mo25886s() {\n }", "title": "" }, { "docid": "dc1657290d0ea23e425359ba9180d2df", "score": "0.58907497", "text": "void mo1443a() {\n }", "title": "" }, { "docid": "4ccbf629ba73ea0666541a18d2c6466d", "score": "0.5889382", "text": "public final void mo71574y() {\n }", "title": "" }, { "docid": "4a048a095dbc88929733b0a0fcf29741", "score": "0.58872336", "text": "public void mo21407a() {\n }", "title": "" }, { "docid": "2634767d1f39884e3a1b71c2861de624", "score": "0.5886959", "text": "private Noaber() {\n // Do nothing.\n }", "title": "" }, { "docid": "6a7a55dd8ae8cdba0cc87c14e8d2d926", "score": "0.58864486", "text": "@Override\n\tprotected void readImpl()\n\t{}", "title": "" }, { "docid": "8dce64654f4410e971dc8127bf398c74", "score": "0.58811796", "text": "private Caller() {}", "title": "" }, { "docid": "b1cf16017c8057c0255a9ad368ecaee5", "score": "0.5879739", "text": "@Override\r\n\tprotected void init() {\n\r\n\t}", "title": "" }, { "docid": "6d3e31b51e003bbd4ee2d821878a610c", "score": "0.5878786", "text": "public abstract Object mo31296b();", "title": "" }, { "docid": "9e3b9f67f6df4ff7587902e76540dbce", "score": "0.58782834", "text": "@Override\n\tpublic void nadar() {\n\t}", "title": "" }, { "docid": "b539c2bcd46b1e8a8a3549e1f4257a02", "score": "0.5871146", "text": "private StringOperations(){\n\t}", "title": "" }, { "docid": "5f1811a241e41ead4415ec767e77c63d", "score": "0.58677816", "text": "@Override\n\tprotected void init() {\n\n\t}", "title": "" } ]
411bc9c21d3483b77c2b7cd249825b32
Puts the given object into the cache using the given key. It is left up to the ICache implementation for how the Object key is handled within the cache. Implementations should explicitly document their key handling algorithm. This method will overwrite the existing object with the new object if the key already exists. If there's data provider registered in the ICache instance, the key and value will be put through to the provider as well.
[ { "docid": "4f087f2a9303a53f340d42865fcb914d", "score": "0.6868363", "text": "void put(Object key, Object value);", "title": "" } ]
[ { "docid": "4eb0841af963b7bba1cac3d7350b1f2d", "score": "0.7318524", "text": "public void put(String key, Object value) {\n cache.put(key, value);\n }", "title": "" }, { "docid": "8cfe714db3b7f16c2de35bf8ded6e8e3", "score": "0.71380603", "text": "void put(K key, V object);", "title": "" }, { "docid": "a62f923484f1507b45395da93723937a", "score": "0.70608807", "text": "public void put(String key , Object obj){\n data.put(key ,obj);\n }", "title": "" }, { "docid": "9c31996a177360566542fe4828483b78", "score": "0.70433706", "text": "@Override\r\n\tpublic void put(Object key, Object value) throws CacheException {\n\r\n\t}", "title": "" }, { "docid": "261a2ebf36c73bd9096a34d06793ccb1", "score": "0.698159", "text": "@Override\r\n\tpublic void put(String key, Object obj) {\n\t}", "title": "" }, { "docid": "3621d38902f0e7d2adfb82dc3b592489", "score": "0.6901968", "text": "@SuppressWarnings(\"unchecked\")\n public void put(final /*BaseEntity*/ Object entity) {\n final Key key = new Key(getPrimaryKey(entity), entity.getClass());\n this.values.put(key, new CacheObject(entity));\n }", "title": "" }, { "docid": "31d9782621f66938319b0fc691d26cd1", "score": "0.6888377", "text": "public Object put(Object key, Object value) {\r\n\t\t// put new entry with create time\r\n\t\tCacheEntry entry = map.put(key, new CacheEntry(key, value));\r\n\t\treturn entry == null ? null : entry.getValue();\r\n\t}", "title": "" }, { "docid": "c7ccd4505bbccf66b2d5554417a55559", "score": "0.681498", "text": "public void put(String key, Object value);", "title": "" }, { "docid": "9b1f07695fbf6a0b322f873b2860203f", "score": "0.67289424", "text": "public Object put(Object key, Object value) {\r\n touch(key);\r\n return map.put(key, value);\r\n }", "title": "" }, { "docid": "108aacbc16b6663d958c237576d06674", "score": "0.6701621", "text": "void put(String key, Object value);", "title": "" }, { "docid": "3c32978e2e2c6f6f2ce7eeafa4739b26", "score": "0.661607", "text": "@Override\n public V put(@NotNull K key, @NotNull V value) {\n int hash = getHashingStrategy().computeHashCode(key);\n return put(key, hash, value, false);\n }", "title": "" }, { "docid": "ecd9fe036b85c866e8cc1299caf5f456", "score": "0.6587631", "text": "public void setObject(CacheKey cacheKey, Object object) {\n checkNotNull(cacheKey);\n checkNotNull(object);\n try {\n String ser = bridgeObjectMapper.writeValueAsString(object);\n String result = jedisOps.set(cacheKey.toString(), ser);\n if (!\"OK\".equals(result)) {\n throw new BridgeServiceException(object.getClass().getSimpleName() + \" storage error\");\n }\n } catch (Throwable e) {\n promptToStartRedisIfLocal(e);\n throw new BridgeServiceException(e);\n }\n }", "title": "" }, { "docid": "e5d39ad0d15a2cee10c3155074345f39", "score": "0.6534423", "text": "<V> void put(Key key, V value);", "title": "" }, { "docid": "43e87dc8b71990f3f5926860ed36943f", "score": "0.6533137", "text": "public void put(T objeto){\n\t \tcache.put(objeto.getID(), objeto);\n\t persist();\n\t }", "title": "" }, { "docid": "e83a48a0f2967d6939d9dd3594f69305", "score": "0.6491124", "text": "void put(K key, V object, long ttl);", "title": "" }, { "docid": "813fa4a76cf5af85a7aa2ea242f06f22", "score": "0.6457448", "text": "public synchronized void put(String key, Object value)\n {\n CacheEntry entry = (CacheEntry) table.get(key);\n if (entry == null) \n {\n entry = new CacheEntry();\n entry.key = key;\n table.put(key, entry);\n link(entry);\n if (table.size() > maxsize)\n {\n remove(oldest.key);\n }\n }\n else relink(entry);\n entry.value = value;\n }", "title": "" }, { "docid": "ebd274608a631894db284e70ecbfead8", "score": "0.64387256", "text": "private void putAndGetKey(Object object) throws CacheException {\n Long key = getTailKey();\n // Put the object into the region at that key\n region.put(key, (AsyncEvent<?, ?>) object);\n\n // Increment the tail key\n // It is important that we increment the tail\n // key after putting in the region, this is the\n // signal that a new object is available.\n incrementTailKey();\n\n if (logger.isDebugEnabled()) {\n logger.debug(\"{}: Inserted {} -> {}\", this, key, object);\n }\n if (object instanceof Conflatable) {\n removeOldEntry((Conflatable) object, key);\n }\n }", "title": "" }, { "docid": "2e66273c7e9c4627ff6548f68098976a", "score": "0.6436774", "text": "public void put(Object key, Object value) {\n\t\tNode existingNode = cache.get(key);\n\t\tif (cache.containsKey(key)) {\n\t\t\texistingNode.value = value;\n\t\t\tmoveToHead(existingNode);\n\t\t} else if (cache.size() == capacity) {\n\t\t\tNode tail = poptail();\n\t\t\tcache.remove(tail.key);\n\t\t}\n\t\tNode newNode = new Node(key, value);\n\t\tAddtoHead(newNode);\n\t\tcache.put(key, newNode);\n\n\t}", "title": "" }, { "docid": "77e4fcaac3712c82b326858773b35af8", "score": "0.6425932", "text": "public void $put(String key, T object, int originator);", "title": "" }, { "docid": "2f865ee4aec4efe85427e36f29a1e363", "score": "0.6322044", "text": "Object put(int key, Object value);", "title": "" }, { "docid": "6dbe67021a0839e026060af99bbe2cd1", "score": "0.6321162", "text": "public void put(Object key, Object value) {\n\t\t// disallow null keys\n\t\tif (key == null)\n\t\t\treturn;\n\t\t// get the \"big\" integer corresponding to the object\n\t\t// assume key is not null\n\t\tint hashcode = Math.abs(key.hashCode());\n\t\t// compress down to a table slot\n\t\tint hash = hashM(hashcode);\n\t\t// put the value and the key into an Entry object\n\t\t// which will be placed in the table in the\n\t\t// slot ( namely, hash)\n\t\t// allows a null value\n\t\tEntry e = new Entry(key, value);\n\t\t// now place it in the table\n\t\tif (table[hash] == null) {\n\t\t\ttable[hash] = new LinkedList();\n\t\t}\n\t\t// this allows duplicate keys\n\t\ttable[hash].add(e);\n\t}", "title": "" }, { "docid": "9bfd00cf75c776b06deaefe3a164e35b", "score": "0.6308915", "text": "public static void put(String key, Object val) {\n key = k(key);\n Cache.set(key, val);\n }", "title": "" }, { "docid": "f1a63a03b9139aa50fd25306adb12764", "score": "0.63016796", "text": "public boolean put(String key, Object value) {\r\n if (key == null) {\r\n return false;\r\n }\r\n //If excceds size return\r\n if (cache.size() == CACHE_SIZE) {\r\n return false;\r\n }\r\n if (value == null) {\r\n cache.remove(key);\r\n } else {\r\n cache.put(key, value);\r\n }\r\n \r\n return true;\r\n }", "title": "" }, { "docid": "1e93883c1036e59ff487b3139a95b26d", "score": "0.6239082", "text": "@Override\r\n\tpublic Object put(String key, Object value) {\n\t\tthis.hash = this.hash + (key.hashCode() + value.getClass().hashCode() + value.hashCode());\r\n\t\treturn super.put(key, value);\r\n\t}", "title": "" }, { "docid": "6c25e7251bb53062927f3690de30dc20", "score": "0.62290096", "text": "private void putItem(String key, Object value) throws ApplicationException {\n\t\tcache.put(key, value);\n\t}", "title": "" }, { "docid": "626a2bbc7c203e82ec49bc652dc18162", "score": "0.62220216", "text": "@Override\n public V putIfAbsent(@NotNull K key, @NotNull V value) {\n int hash = getHashingStrategy().computeHashCode(key);\n return put(key, hash, value, true);\n }", "title": "" }, { "docid": "a0d98d3d78ddd534e1149e0c7d8ebe21", "score": "0.62121195", "text": "@Nullable\r\n @Override\r\n public Object put(String key, Object value) {\r\n return key != null ? _put(key, value) : null;\r\n }", "title": "" }, { "docid": "446f336cc4ee376620505e6063da543c", "score": "0.62009215", "text": "public V put(K key, V value);", "title": "" }, { "docid": "b1ad96b2fd98ef5248f3a881fcee34ca", "score": "0.61796963", "text": "@Override\n\tpublic void put(Object key, Object val) {\n\t\t\n\t}", "title": "" }, { "docid": "b1ad96b2fd98ef5248f3a881fcee34ca", "score": "0.61796963", "text": "@Override\n\tpublic void put(Object key, Object val) {\n\t\t\n\t}", "title": "" }, { "docid": "d3f412e252ecbc3209662c70c92f8125", "score": "0.61741024", "text": "public final <T extends ICacheableJsonObject> void set(final String key, final T obj)\n {\n set(key, obj.toJson().toString());\n }", "title": "" }, { "docid": "c12b17779102d18238d07d0445330f90", "score": "0.61660683", "text": "public V put(K key,V value);", "title": "" }, { "docid": "e39444c2f6c3a1652b35dc2bd61bac7d", "score": "0.61635774", "text": "@Override\n\tpublic Object put(Object key, Object value) {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "8396da00e4c972b0cbc35f12da359d6a", "score": "0.6136538", "text": "public void put(String key, Object obj) {\n mStateMaintainerFrag.put(key, obj);\n }", "title": "" }, { "docid": "ceaa9be8b8712159f55f20dfd399a807", "score": "0.6116231", "text": "void put(K key, V value);", "title": "" }, { "docid": "5f704b8144e9c54b4785be3b76cd73a2", "score": "0.606845", "text": "public boolean put(Object key, String value);", "title": "" }, { "docid": "6770e338a0bd47b493d0d5c9cef7874c", "score": "0.6065573", "text": "public void put(K key, V value) {\n\t\tconcurrentMap.put(key, value);\n\t\tcache.put(key, value);\n\t}", "title": "" }, { "docid": "ef571af1648771ac921ddc367be59692", "score": "0.6056981", "text": "final public void cacheObject(int key, T x) {\n int deletedKey = 0;\n Object deletedValue = null;\n\n int index = myFirstFree;\n if (myCount < myCache.length - 1) {\n if (index == 0) {\n index = myCount;\n ++index;\n }\n else {\n myFirstFree = myCache[index].hash_next;\n }\n if (myCount == 0) {\n myBack = index;\n }\n }\n else {\n index = myBack;\n removeEntryFromHashTable(index);\n\n final CacheEntry cacheEntry = myCache[index];\n deletedKey = cacheEntry.key;\n deletedValue = cacheEntry.value;\n\n myCache[myBack = myCache[index].prev].next = 0;\n }\n myCache[index].key = key;\n myCache[index].value = x;\n addEntry2HashTable(index);\n add2Top(index);\n \n if (deletedValue != null) {\n fireListenersAboutDeletion(deletedKey, deletedValue);\n }\n }", "title": "" }, { "docid": "d2ff57379817e6ba72cab7de589f53fc", "score": "0.60439986", "text": "public abstract void set(Integer key, Object object, boolean eternal) throws CacheException;", "title": "" }, { "docid": "447fc803e28e32fd128e5adf3db005fc", "score": "0.6036439", "text": "V put(K key, V value);", "title": "" }, { "docid": "c151dff9426247dd520711a80b15f1e1", "score": "0.6027944", "text": "public void setItem(Obj key, Obj value) {\n objects.put(key, value);\n }", "title": "" }, { "docid": "dfe49e7c3d5bae63a995b7ec89f5d571", "score": "0.60179204", "text": "@Override\r\n public synchronized Object put(Object key, Object value)\r\n {\n if( get(key)==null ) keys.add(key);\r\n return super.put(key,value);\r\n }", "title": "" }, { "docid": "6960ac3d4448e64e53f7a1ef89831c52", "score": "0.60147494", "text": "public void put(Object object) {\r\n put(object.getClass().getName(), object);\r\n }", "title": "" }, { "docid": "e372d94c15847ca4a9d017131703aa4f", "score": "0.6005908", "text": "public Object put(Object key, Object value) {\n\t\tkeys.addElement(key);\n\t\treturn table.put(key, value);\n\t}", "title": "" }, { "docid": "00ec19892a8a40ab8d88e024d8b0de26", "score": "0.5998975", "text": "@Override\r\n\tpublic void update(Object key, Object value) throws CacheException {\n\r\n\t}", "title": "" }, { "docid": "3139f468a2bda9f9097265931c71aab4", "score": "0.599098", "text": "public void put(final T object) {\n\t\tthis.object = object;\n\t}", "title": "" }, { "docid": "c1825adc18a928565198b434b1e70e87", "score": "0.59875685", "text": "public interface ICache\n{\n /**\n * Returns the object from the cache identified by the given key,\n * or returns null if the object doesn't exist in the cache or\n * is stale and the cache was unable to load it from the persistent\n * storage (if the cache was configured with a backing dataProvider\n * ICache implementation).\n * <p>\n * See {@link #getExisting(Object)} for a version of get() that\n * supports storing null as a valid value.\n *\n * @param key the key identifying the value to retrieve\n * @return the retrieved value, or null\n */\n Object get(Object key);\n\n /**\n * Returns the object from the cache identified by the given key,\n * or throws a {@link KeyNotFoundException} if the key is not found or\n * is stale and couldn't be loaded from the backing dataProvider.\n * <p>\n * Unlike the {@link #get(Object)} method, this method throws\n * an exception instead of returning null in the case that a key\n * is not found or is stale. This means that null may be stored\n * as a valid value when using this method.\n *\n * @param key the key identifying the value to retrieve\n * @return the retrieved value\n * @throws KeyNotFoundException\n */\n Object getExisting(Object key) throws Exception;\n\n /**\n * Puts the given object into the cache using the given key. It\n * is left up to the ICache implementation for how the Object\n * key is handled within the cache. Implementations should\n * explicitly document their key handling algorithm.\n * This method will overwrite the existing object with the new\n * object if the key already exists.\n * <p>\n * If there's data provider registered in the ICache instance,\n * the key and value will be put through to the provider as well.\n *\n * @param key the key identifying the value to store\n * @param value the value being stored\n */\n void put(Object key, Object value);\n\n /**\n * Puts the given ICacheable object into the cache using the key\n * retrieved from the ICacheable object's getCacheKey() method.\n * This method will overwrite the existing object with the new\n * object if the key already exists.\n *\n * @param value the value being stored\n */\n //void put(ICacheable value);\n\n /**\n * Deletes all entries from this cache instance.\n */\n void hardFlush();\n\n /**\n * Updates a property that indicates all entries in this cache\n * instance need to be lazily flushed, such that the next request\n * of an item will cause that value to be flushed.\n */\n void softFlush();\n\n /**\n * Removes the object identified by the given key from the cache.\n * If there's data provider registered in the ICache instance,\n * the key will be deleted from the provider as well.\n *\n * @param key the key identifying the value to remove\n * @return true if the value was found and removed,\n * \t\t\tor false if it did not exist\n */\n boolean remove(Object key);\n}", "title": "" }, { "docid": "b35d94330b683f3eab02fd72ef5195b2", "score": "0.59749585", "text": "public void put(Object value);", "title": "" }, { "docid": "244dea14acb417ae549a6746e8c7f331", "score": "0.597282", "text": "@SuppressWarnings( \"unchecked\" )\n public T put( K key, T value )\n {\n checkQueue();\n \n if ( key == null )\n throw new IllegalArgumentException( \"Cache doesn't support null keys\" );\n if ( value == null )\n throw new IllegalArgumentException( \"Cache doesn't support null values\" );\n \n int hash = hash( key );\n int idx = hash & ( table.length - 1 );\n Entry< T > e = table[ idx ];\n for ( Entry< T > prev = null; e != null; e = e.next )\n {\n if ( e.hash == hash && ( key == e.key || key.equals( e.key ) ) )\n {\n // TODO: check, if this doesn't crash!!!\n e = new Entry( hash, key, value, queue, e.next );\n if ( prev == null )\n table[ idx ] = e;\n else\n prev.next = e;\n return ( value );\n }\n prev = e;\n }\n \n // TODO: check, if this doesn't crash!!!\n table[ idx ] = new Entry( hash, key, value, queue, table[ idx ] );\n if ( size++ >= threshold )\n resize( 2 * table.length );\n \n return ( value );\n }", "title": "" }, { "docid": "59e79841464495e893a5c505ab27eaf5", "score": "0.59599066", "text": "public V put(K k, V v);", "title": "" }, { "docid": "ad90a78ef7fcb023c373a830d6930c8d", "score": "0.5957554", "text": "public JsonObject put(final String key, Object value) {\n\t\tObjects.requireNonNull(key);\n\n\t\tvalue = resolveValue(value);\n\n\t\tmap.put(key, value);\n\t\treturn this;\n\t}", "title": "" }, { "docid": "c94dbc581a8f1324a607c2de74e301e3", "score": "0.5955996", "text": "@SuppressWarnings(\"rawtypes\")\n\tpublic void put(Comparable tkey, Object tvalue) throws IOException {\n\t\tsynchronized (session.getMutexObject()) {\n\t\t\t\tif (table.size() >= objectCacheSize) {\n\t\t\t\t\t// throw one out\n\t\t\t\t\tIterator et = table.keySet().iterator();\n\t\t\t\t\t//Object remo = \n\t\t\t\t\tet.next();\n\t\t\t\t\tet.remove();\n\t\t\t\t}\n\t\t\t\t// now put new\n\t\t\t\tsession.put(tkey, tvalue);\n\t\t\t\tsession.Commit();\n\t\t\t\ttable.put(tkey, tvalue);\n\t\t}\n\t}", "title": "" }, { "docid": "a3dfd3f593ca74eaaaa72a1850fabd13", "score": "0.5952381", "text": "VALUE put(KEY key, VALUE value);", "title": "" }, { "docid": "89bc5a15a88e31c9717aa2f748e7c345", "score": "0.5940636", "text": "public void put(StoredObject object) {\n storedObjects.put(object.getClass(), object);\n }", "title": "" }, { "docid": "e4749533d043d7bc03c8dfc79bd2bf8e", "score": "0.59315753", "text": "@Override\r\n public synchronized CacheObject<V> put(K key, CacheObject<V> value) {\r\n if (cache.size() >= maxSize) {\r\n if (removeExpired() <= 0) {\r\n if (cacheFullRemoveType instanceof RemoveTypeNotRemove) {\r\n return null;\r\n }\r\n if (fullRemoveOne() == null) {\r\n return null;\r\n }\r\n }\r\n }\r\n value.setEnterTime(System.currentTimeMillis());\r\n cache.put(key, value);\r\n return value;\r\n }", "title": "" }, { "docid": "7878aa11b72a3225225214ca047e199a", "score": "0.59275013", "text": "public void setCache(String key, Object value) {\n Ignite ignite = Ignition.ignite();\n IgniteCache cache;\n Collection<String> lstcaches = ignite.cacheNames();\n if (lstcaches.contains(ERP_CACHE)) {\n cache = ignite.cache(ERP_CACHE);\n } else {\n cache = ignite.createCache(ERP_CACHE);\n }\n cache.put(key, value);\n }", "title": "" }, { "docid": "8e60147cc78777596ad6df1c3793b4d0", "score": "0.59255636", "text": "@Override\n public V putIfAbsent(K key, V value) {\n // TODO more efficient: use internals\n Objects.requireNonNull(key);\n Objects.requireNonNull(value);\n \n V storedValue = this.get(key);\n if (storedValue == null) {\n this.put(key, value);\n }\n return storedValue;\n }", "title": "" }, { "docid": "eb3abf12988c5741517695791253370c", "score": "0.5920201", "text": "public static boolean put(String key, Object obj)\n {\n // check if key already exists\n if (db.getObjectCollection().containsKey(key))\n return false;\n\n // add key to register historic\n db.getKeysRegHistoric().add(key);\n\n // add object to collection\n db.getObjectCollection().put(key, obj);\n\n System.out.println(\"SERVER> Gateway: Put {key=\" + key + \"; obj=\" + obj + \"}\");\n\n // success\n return true;\n }", "title": "" }, { "docid": "c958388ac1135a566b49cc6534cc3e22", "score": "0.5901143", "text": "public Object put( Object key, Object value ) throws IllegalStateException, NullPointerException\n {\n if( key == null || value == null )\n throw new NullPointerException( \"Parameters cannot be null.\" );\n if( size == data.length )\n throw new IllegalStateException( \"Container is full.\" ); \n \n int index = findIndex( key );\n \n if( index != -1 )\n {\n //key is already in table\n Object result = data[ index ];\n data[ index ] = value;\n return result;\n }\n else if( size < data.length )\n {\n //there is room to add a new element\n index = hash( key );\n while( keys[ index ] != null )\n index = nextIndex( index );\n keys[ index ] = key;\n data[ index ] = value;\n hasBeenUsed[ index ] = true;\n size++;\n return null;\n }\n else\n {\n throw new IllegalStateException( \"Table is full.\" );\n } \n }", "title": "" }, { "docid": "88acbca5e38f441eaadd046bc81e33a3", "score": "0.589528", "text": "public <A> void put( Key<A> key, A value ){\r\n if( value == null ){\r\n remove( key );\r\n }\r\n else{\r\n scope.put( VALUES, key, value );\r\n }\r\n }", "title": "" }, { "docid": "4a4f8721cfd0e382dcb23b2d0e60e8e7", "score": "0.5886906", "text": "public void setObject(CacheKey cacheKey, Object object, int expireInSeconds) {\n checkNotNull(cacheKey);\n checkNotNull(object);\n try {\n String ser = bridgeObjectMapper.writeValueAsString(object);\n String result = jedisOps.setex(cacheKey.toString(), expireInSeconds, ser);\n if (!\"OK\".equals(result)) {\n throw new BridgeServiceException(object.getClass().getSimpleName() + \" storage error\");\n }\n } catch (Throwable e) {\n promptToStartRedisIfLocal(e);\n throw new BridgeServiceException(e);\n }\n }", "title": "" }, { "docid": "5dd0303cbffd9a332bbfe3e3c01ce157", "score": "0.5886341", "text": "public void put(K key, V value) {\n int hash = calculateHashCode(key);\n var entry = new HashEntry<K, V>(key, value);\n this.data[hash] = entry;\n size++;\n }", "title": "" }, { "docid": "39d595ef8f02446d2381c014c95a406c", "score": "0.58789223", "text": "public Object put(Object key, Object value) {\r\n\t \r\n\t return 0;\r\n\t \r\n }", "title": "" }, { "docid": "4d7efc02f396d28184eb51fd5d7122c0", "score": "0.5878888", "text": "public void put(String strKey, DataObject objData) {\n\t\tlong lHash = Utility.HashFromString(strKey) % m_nTableSize;\n\t\t// while spot is taken go to next spot\n\t\twhile (!m_ObjectArray[(int) (lHash % m_nTableSize)].list.isEmpty()) {\n\t\t\tlHash++;\n\t\t}\n\t\t// if you can add it, increment elements\n\t\tif (m_ObjectArray[(int) (lHash % m_nTableSize)] == null) {\n\t\t\telements++;\n\t\t}\n\t\t// data storage\n\t\tm_ObjectArray[(int) lHash].list.add(objData);\n\t}", "title": "" }, { "docid": "49871fdd5b46f703ef09236081d8a626", "score": "0.58720505", "text": "public Object put(Object key, Object value) {\n/* 131 */ return this.map.put(key, value);\n/* */ }", "title": "" }, { "docid": "a3fdfeb34920859ca34a3a71cfd0342d", "score": "0.5866643", "text": "public void putObject(String key, Object value) {\n variables.put(key, value);\n }", "title": "" }, { "docid": "c37ff43ff868e2474f02aaedeb67659b", "score": "0.5862017", "text": "public void put(Object key) {\n\t\tthis.put(key, null);\n\t}", "title": "" }, { "docid": "3d82c83fe5d3ba6441ae867fcd8d3d91", "score": "0.58549327", "text": "public void put(String key, String value);", "title": "" }, { "docid": "65e4da6250d196ecff13b891f694e186", "score": "0.5853009", "text": "public void setAsObject(String key, Object value) {\n\t\tput(key, value);\n\t}", "title": "" }, { "docid": "3c9f405ca7e2607479721119cd7dbf7e", "score": "0.58513236", "text": "public DocObject put(String key, Object value) {\n if (key == null) {\n throw new DocException(\"Null key.\");\n }\n if (value != null) {\n testValidity(value);\n this.map.put(key, value);\n } else {\n remove(key);\n }\n return this;\n }", "title": "" }, { "docid": "fbb8cb591000cab1d7bc0e5b27798cfc", "score": "0.58316416", "text": "void put(String key, Object value, int ttl);", "title": "" }, { "docid": "a8be7b6b48151e22fab52dc100cce39c", "score": "0.58075106", "text": "public void put( DataObject objData ) {\n\t\t// Generating the hash value. \n\t\tlong hash = Utility.HashFromString(objData.GetKey());\n\t\t// Taking the mod of the hash and turning it into an int to be used as the index\n\t\tint index = (int) (hash %= m_nTableSize);\n\t\t\n\t\t// As long as an empty index isn't found, linearly search for an empty spot\n\t\twhile (m_ObjectArray[index] != null) {\n\t\t\t// If the key already exists, copy the new info over the old and end the method.\n\t\t\tif (objData.GetKey() == m_ObjectArray[index].GetKey()) {\n\t\t\t\tm_ObjectArray[index] = objData;\n\t\t\t\treturn;\n\t\t\t}\n\t\t\t// Incrementing the index and taking its modulus to stay in bounds\n\t\t\tindex++;\n\t\t\tindex %= m_nTableSize;\n\t\t}\n\t\t\n\t\t// If we reach this point, an empty spot has been found and the object is added to it.\n\t\tm_ObjectArray[index] = objData;\n\t\t// Incrementing the item counter to keep track of the number of items added.\n\t\titemCount++;\n\t\t\n\t\t// If there are too many items, expand the table.\n\t\tif (itemCount > (m_nTableSize / 2)) {\n\t\t\tExpand();\n\t\t}\n\t}", "title": "" }, { "docid": "e746aa405b5926c9f18784f6d10ba6ee", "score": "0.5790538", "text": "@Override\n public void put(final K key, final V value) {\n if (hash.containsKey(key)) {\n hash.get(key).info.setValue(value);\n\n Node r = hash.get(key);\n\n if (r != first) {\n\n Node prev = r.prev;\n Node next = r.next;\n\n if (r == last) {\n prev.next = null;\n last = prev;\n } else {\n prev.next = next;\n next.prev = prev;\n }\n\n r.next = first;\n first.prev = r;\n first = r;\n r.prev = null;\n }\n } else {\n Node newNode = new Node(new Pair<>(key, value));\n newNode.prev = null;\n newNode.next = first;\n if (first != null) {\n first.prev = newNode;\n }\n first = newNode;\n\n hash.put(key, newNode);\n if (size() == 1) {\n last = newNode;\n }\n }\n\n clearStaleEntries();\n cacheListener.onPut(key, value);\n }", "title": "" }, { "docid": "1a076b2453293456dad715bac181a6e2", "score": "0.5779502", "text": "void put(K k, V v);", "title": "" }, { "docid": "dfca1afcd4b7f73da18498a3b7209587", "score": "0.57751703", "text": "public void put(K key, V value)\r\n/* 333: */ {\r\n/* 334:601 */ if (key == null) {\r\n/* 335:602 */ this.value = value;\r\n/* 336: */ } else {\r\n/* 337:604 */ this.map.put(key, value);\r\n/* 338: */ }\r\n/* 339: */ }", "title": "" }, { "docid": "e151337b5a0b62853e5380d077810b7a", "score": "0.57708335", "text": "public void set(String key, final Object o) {\n set(key, Integer.valueOf(this.ttl), o);\n }", "title": "" }, { "docid": "b47f719121d569e0929062b41643f1c7", "score": "0.57702595", "text": "boolean put(K key, V value);", "title": "" }, { "docid": "6a48c3f6abd0c5b8c64be70a42ea0ff5", "score": "0.5753962", "text": "@Override\n public void putValue(final String key, final Object value) {\n }", "title": "" }, { "docid": "0205fa648971878f171b8f33660dcaae", "score": "0.57413274", "text": "public void set(String key, int ttl, final Object o) {\n try {\n cacheClient.set(key, ttl, o);\n } catch (RuntimeException ex) {\n //Server is down..\n }\n }", "title": "" }, { "docid": "2a68021e02e288b2c7733aa86f615762", "score": "0.5733865", "text": "public synchronized void put (K key, V value) {\n map.put (key, value); }", "title": "" }, { "docid": "82551486b913c2be6dc0f48d69096b75", "score": "0.57297534", "text": "public void put(K key, V value) {\n\t\tif (key == null) {\n\t\t\tthrow new IllegalArgumentException(\"Key can not be null.\");\n\t\t} else if (!containsKey(key)) {\n\t\t\taddTableEntry(key, value);\n\t\t\tslotLimitReached();\n\t\t\tmodificationCount++;\n\t\t} else {\n\t\t\tupdateTableEntry(key, value);\n\t\t}\n\t}", "title": "" }, { "docid": "95757d7f81ec7bb98f81e011e2cfceaa", "score": "0.57265234", "text": "public Object modifyObject(String key, Object object, T context);", "title": "" }, { "docid": "9ecd5e80b2308849b194c6beae2e0e2a", "score": "0.5717762", "text": "@CanIgnoreReturnValue\n/* */ public boolean put(T object) {\n/* 162 */ return this.strategy.put(object, this.funnel, this.numHashFunctions, this.bits);\n/* */ }", "title": "" }, { "docid": "7f211be7929e615c31154eeaee27dd8e", "score": "0.5712923", "text": "public static void put(String key, Object val, String expiration) {\n key = k(key);\n Cache.set(key, val, expiration);\n }", "title": "" }, { "docid": "17618df3287d1ee464c5747aaae7ac45", "score": "0.57006633", "text": "public void put(Object key, Object value) {\n\t\tif (size == this.capacity) {\n\t\t\tthis.resize();\t\t\n\t\t}\n\n\t\tint index = hashCode(key);\n\t\t// If the keys already in the table, Update the new value\n\t\tif (keys[index] != null && keys[index].equals(key)) {\n\t\t\tvalues[index] = value;\n\t\t\treturn;\n\t\t}\n\n\t\t// When the space is empty\n\t\tif (keys[index] == null) {\n\t\t\tkeys[index] = key;\n\t\t\tvalues[index] = value;\n\t\t\tsize++;\n\t\t\treturn;\n\t\t} else {\n\t\t\t// Linear Probing to find the empty space\n\t\t\twhile (keys[index] != null) {\n\t\t\t\tindex = linearProbing(index);\n\t\t\t}\n\t\t\tkeys[index] = key;\n\t\t\tvalues[index] = value;\n\t\t\tsize++;\n\t\t\treturn;\n\t\t}\n\t}", "title": "" }, { "docid": "67d8c347b596db3213bacec4f397873d", "score": "0.56994325", "text": "public void putInCache(int scope, HttpServletRequest request,\n String key, Object content) {\n Cache cache = getCache(request, scope);\n key = this.generateEntryKey(key, request, scope);\n cache.putInCache(key, content);\n }", "title": "" }, { "docid": "de54bab3a266aa3e3184cbe9127e1a73", "score": "0.568736", "text": "@Override\n\tpublic void setObjectForKey(Object value, String key) {\n\t}", "title": "" }, { "docid": "8f407d6b0db2bfa2b5eefdc058bc816f", "score": "0.56830907", "text": "public void put(Object obj) {\n put(obj.getClass().getName(), obj);\n }", "title": "" }, { "docid": "768f49dd4480678548c61e8cc9b76b04", "score": "0.566352", "text": "public void put(Object obj) {\n put(obj.getClass().getName(), obj);\n }", "title": "" }, { "docid": "dd5dd87f0b4a4df19c64319df8c4be18", "score": "0.5663473", "text": "public V put(K key, V value) {\r\n Transaction transaction = Transaction.getCurrent();\r\n boolean created = transaction == null;\r\n transaction = Transaction.startIfNeeded(transaction);\r\n\r\n if (created) {\r\n getOrCreateVersion(transaction).putFast(key, value);\r\n transaction.beginCommit(null);\r\n return null;\r\n }\r\n\r\n return getOrCreateVersion(transaction).put(key, value);\r\n }", "title": "" }, { "docid": "c5223489bd9d0a0db6dbe6e62ef2637e", "score": "0.5656395", "text": "void put(String k, Object data) throws RemoteException;", "title": "" }, { "docid": "9597e2d7948c7842e7c9e0f61feb73a5", "score": "0.5654682", "text": "public void put(K key, V value) {\n root = put(root, key, value);\n }", "title": "" }, { "docid": "e10af738a51f9e7249339fd180dd9178", "score": "0.564868", "text": "public void add(K key, T element) throws GkException{\t\t\r\n\t\tif(exist(key)){\r\n\t\t\tthrow new GkTechnicalException(\"Duplicate entry : an object already exists for the key [\"+String.valueOf(key)+\"]\");\r\n\t\t}\r\n\t\tcacheByKey.put(key, element);\r\n\t}", "title": "" }, { "docid": "b4d2a6406ea6be2bb988058cd250ace7", "score": "0.5643579", "text": "public void set(String key, Object value);", "title": "" }, { "docid": "1665500e14c83d14aee93a2db04331b1", "score": "0.5637156", "text": "public void registerObject(Object key, Object o)\n {\n ObjectInstance oi = new ObjectInstance(o);\n synchronized (objectMap)\n {\n objectMap.put(key, oi);\n }\n if (log.isDebugEnabled())\n {\n log.debug(\"registered object \" + o.hashCode() + \" of class \"\n + o.getClass().getName() + \" as \" + key);\n }\n }", "title": "" }, { "docid": "fbc82621920e1fc7ae0ab597a617ad89", "score": "0.56325155", "text": "void put(Key key, Value val, Obj obj) {\n if (val == null) {\n st.remove(key);\n } else {\n st.put(key, new Pair(val, obj));\n }\n }", "title": "" }, { "docid": "1b671389e1862f35cc0d5eddafe8a1e9", "score": "0.56191355", "text": "public void put(K key, V value) {\n int bucketIndex = getBucketIndex(key);\n buckets[bucketIndex] = insert(buckets[bucketIndex], key, value);\n }", "title": "" }, { "docid": "9cb0965a5e4517d5ad371dee466fa710", "score": "0.56149644", "text": "public void setObjectKey(String objectKey) {\n this.objectKey = objectKey;\n }", "title": "" }, { "docid": "8287869ad24133fb950cfe5c114ceca5", "score": "0.5612529", "text": "void put(@Nonnull KeyType key, @Nonnull ValueType value);", "title": "" }, { "docid": "52460c7fdf96e34af0a85fa116a65b1f", "score": "0.56021804", "text": "public void setHelperObject(final String key, final Object value) {\n if (value == null) {\n this.objectRegistry.remove(key);\n }\n else {\n this.objectRegistry.put(key, value);\n }\n }", "title": "" } ]
656acf9f384d8d288a9a5f809b680953
Creates a MatchWorker instance based on the current state of this panel.
[ { "docid": "287fa17ecbc23a1f21fc877aef2796e5", "score": "0.66140574", "text": "private MatchWorker createMatchWorker() {\n\n /* Get input table and column data. */\n TopcatModel tcModel = tcModel_;\n if ( tcModel == null ) {\n throw new NullPointerException( \"No table selected\" );\n }\n int[] rowMap = tcModel.getViewModel().getRowMap();\n ColumnData raData = raSelector_.getColumnData();\n ColumnData decData = decSelector_.getColumnData();\n if ( raData == null ) {\n throw new NullPointerException( \"No RA column given\" );\n }\n if ( decData == null ) {\n throw new NullPointerException( \"No Dec column given\" );\n }\n\n /* Get search radius. */\n double srDeg = srField_.getValue();\n if ( ! ( srDeg > 0 ) ) {\n srField_.getEntryField().setText( \"1.0\" );\n throw new IllegalArgumentException( \"Bad search radius value\" );\n }\n\n /* Get remote table identifier. */\n String cdsName = cdsTableSelector_.getTableName();\n String cdsId = CdsUploadMatcher.toCdsId( cdsName );\n if ( cdsId == null ) {\n throw new IllegalArgumentException( \"Bad remote table name \\\"\"\n + cdsName + \"\\\"\" );\n }\n Coverage serviceCoverage = cdsTableSelector_.getCoverage();\n\n /* Get other search parameters. */\n Object bf = blockSelector_.getSelectedItem();\n String bfTxt = bf == null ? null : bf.toString();\n int blocksize;\n try {\n blocksize = Integer.parseInt( bfTxt );\n }\n catch ( NumberFormatException e ) {\n blockSelector_.setSelectedItem( null );\n throw new IllegalArgumentException( \"Bad blocksize: \" + bfTxt );\n }\n UploadFindMode upMode =\n (UploadFindMode) modeSelector_.getSelectedItem();\n ServiceFindMode serviceMode = upMode.getServiceMode();\n long maxrec = MAXREC;\n String surl = CdsUploadMatcher.XMATCH_URL;\n final URL url;\n try {\n url = new URL( surl );\n }\n catch ( MalformedURLException e ) {\n throw new IllegalArgumentException( \"Bad URL: \" + surl );\n }\n\n /* Prepare objects to do the match. */\n QuerySequenceFactory qsFact =\n new DataQuerySequenceFactory( raData, decData, srDeg, rowMap );\n if ( serviceCoverage != null && coverageModel_.isSelected() ) {\n qsFact = new CoverageQuerySequenceFactory( qsFact,\n serviceCoverage );\n }\n UploadMatcher umatcher =\n new CdsUploadMatcher( url, cdsId, srDeg * 3600., serviceMode );\n StoragePolicy storage =\n ControlWindow.getInstance().getTableFactory().getStoragePolicy();\n String outName = tcModel.getID() + \"x\" + cdsName;\n JoinFixAction inFixAct = JoinFixAction.NO_ACTION;\n JoinFixAction cdsFixAct = fixSelector_.getJoinFixAction();\n boolean oneToOne = upMode.isOneToOne();\n boolean uploadEmpty = CdsUploadMatcher.UPLOAD_EMPTY;\n BlockUploader blocker =\n new BlockUploader( umatcher, blocksize, maxrec, outName,\n inFixAct, cdsFixAct, serviceMode, oneToOne,\n uploadEmpty );\n\n /* Create and return the match worker. */\n return new MatchWorker( blocker, upMode, tcModel, qsFact, storage );\n }", "title": "" } ]
[ { "docid": "d5a035df3a6a9595fee8af2e4cdd0089", "score": "0.5490689", "text": "private void startMatch() {\n MatchWorker worker;\n try {\n worker = createMatchWorker();\n }\n catch ( RuntimeException e ) {\n Object msg = new String[] {\n \"Query not specified:\",\n e.getMessage(),\n };\n JOptionPane.showMessageDialog( this, msg, \"Incomplete Query\",\n JOptionPane.ERROR_MESSAGE );\n return;\n }\n setActive( worker );\n new Thread( worker, \"Upload Matcher\" ).start();\n }", "title": "" }, { "docid": "bdf2d95ad32b3cf4f339d07ca75ce1d0", "score": "0.54751444", "text": "@Override\r\n public SwingWorker<?, ?> newSwingWorker() {\r\n return new Worker();\r\n }", "title": "" }, { "docid": "78d7c23754d4c2f4f76dbd1b68ee8ec9", "score": "0.5472399", "text": "public static Matchmaker getInstance()\n {\n Matchmaker localInstance = instance;\n if (localInstance == null)\n {\n synchronized (Matchmaker.class)\n {\n localInstance = instance;\n if (localInstance == null)\n instance = localInstance = new Matchmaker(MIN_LATENCY, MIN_SKILL, MAX_LATENCY, MAX_SKILL);\n }\n }\n return localInstance;\n }", "title": "" }, { "docid": "a2c52d10cfb47e4364b2bef59b86b49a", "score": "0.5454212", "text": "MatchFactory getMatchFactory();", "title": "" }, { "docid": "2b4b11ac920b2b917a6c9863d3655c62", "score": "0.5340363", "text": "private static void createWorker() {\n Worker worker = factory.newWorker(TASK_QUEUE);\n worker.registerWorkflowImplementationTypes(MyWorkflowImpl.class);\n\n factory.start();\n }", "title": "" }, { "docid": "46e6441b05276fa4271821dffb6bd76a", "score": "0.5225716", "text": "public static WorkerControlState getInstance() {\n return ourInstance;\n }", "title": "" }, { "docid": "09c503c7487e061d354f1afe262b558e", "score": "0.5212938", "text": "public static MatchFragment newInstance() {\n MatchFragment fragment = new MatchFragment();\n return fragment;\n }", "title": "" }, { "docid": "acd520d2a5aad1e20614aef70a2808e5", "score": "0.5139337", "text": "protected WorkerFactory getWorkerFactory() {\n return workerFactory;\n }", "title": "" }, { "docid": "b539d7670ac2cd44a2491124ec1b4a6a", "score": "0.51343197", "text": "private void setActive( MatchWorker worker ) {\n matchWorker_ = worker;\n updateState();\n }", "title": "" }, { "docid": "b55268ce82cf927e8fcf594a27681732", "score": "0.51299536", "text": "protected Worker getWorker(String name) {\n // Get worker from map\n Worker worker = workers.get(name);\n // If no worker exists hire new one\n if (worker == null) {\n worker = hireWorker(name);\n }\n return worker;\n }", "title": "" }, { "docid": "aadddb1f1d970cffdb994acec3898afc", "score": "0.51276594", "text": "public static HuhiRewardsNativeWorker getInstance() {\n synchronized(lock) {\n if(instance == null) {\n instance = new HuhiRewardsNativeWorker();\n instance.Init();\n }\n }\n return instance;\n }", "title": "" }, { "docid": "a098ddafe6eae687f16f07b35cb1a169", "score": "0.51027197", "text": "public Cstrike15Gcmessages.TournamentMatchSetup.Builder getTournamentMatchBuilder() {\n bitField0_ |= 0x00000010;\n onChanged();\n return getTournamentMatchFieldBuilder().getBuilder();\n }", "title": "" }, { "docid": "cde5b00fa03e01f5694a946d3c816cdf", "score": "0.4963018", "text": "public Match() {\n }", "title": "" }, { "docid": "559cfe92343e21116528daefc351070d", "score": "0.49141902", "text": "public Pattern build() {\n return new Pattern(name, difficulty, grid);\n }", "title": "" }, { "docid": "15b7ee53a7d36269856cb42ec4e1f78e", "score": "0.48826596", "text": "private boolean isActive( MatchWorker worker ) {\n return matchWorker_ == worker;\n }", "title": "" }, { "docid": "d9479c99c80bb746098efffdd33fa66d", "score": "0.48512262", "text": "IPoolWorker getWorker();", "title": "" }, { "docid": "e3c62c12bbe92e6614092744b4eb38e1", "score": "0.48495963", "text": "private boolean isActive() {\n return UploadMatchPanel.this.isActive( MatchWorker.this );\n }", "title": "" }, { "docid": "6bc421a266c1bf4d0859ac3d697c6156", "score": "0.4845393", "text": "private com.google.protobuf.SingleFieldBuilder<\n Cstrike15Gcmessages.TournamentMatchSetup, Cstrike15Gcmessages.TournamentMatchSetup.Builder, Cstrike15Gcmessages.TournamentMatchSetupOrBuilder> \n getTournamentMatchFieldBuilder() {\n if (tournamentMatchBuilder_ == null) {\n tournamentMatchBuilder_ = new com.google.protobuf.SingleFieldBuilder<\n Cstrike15Gcmessages.TournamentMatchSetup, Cstrike15Gcmessages.TournamentMatchSetup.Builder, Cstrike15Gcmessages.TournamentMatchSetupOrBuilder>(\n tournamentMatch_,\n getParentForChildren(),\n isClean());\n tournamentMatch_ = null;\n }\n return tournamentMatchBuilder_;\n }", "title": "" }, { "docid": "07b20ea5d77542e81a39f5b4f5984e9b", "score": "0.48437062", "text": "public MatchRecord create(MatchRecord matchRecord);", "title": "" }, { "docid": "01e3314bce5fffb1c72bc5f402dd90bc", "score": "0.47909677", "text": "public WorkPanel()\n {\n state = new WorkPanelState();\n }", "title": "" }, { "docid": "e13009760d721d90e7d60193bcd3921d", "score": "0.47891402", "text": "public static WorkerDispatcher getInstance() {\n if (instance == null) {\n instance = new WorkerDispatcher();\n }\n return instance;\n }", "title": "" }, { "docid": "63ade360e3af5cf28a9edba8ebd6c1ca", "score": "0.47594166", "text": "public Cstrike15Gcmessages.WatchableMatchInfo.Builder getWatchableMatchInfosBuilder(\n int index) {\n return getWatchableMatchInfosFieldBuilder().getBuilder(index);\n }", "title": "" }, { "docid": "d86ec481f258f78d33f77b66df11c276", "score": "0.47573966", "text": "private void createMatch(WaitingPlayer... players){\n try {\n Thread.sleep(300);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n\n if (matchListener != null) matchListener.onMatchCreated(players);\n }", "title": "" }, { "docid": "3e8545728aadcd6938df9713c6878d09", "score": "0.4737104", "text": "public abstract Worker create(Viewport viewport, int row);", "title": "" }, { "docid": "43500afe16cf4c92230d98800b700168", "score": "0.4732929", "text": "private void createMatchSetPanel() {\n\t\tfEditMatchSetsPanel = toolkit.createComposite(this, SWT.NONE);\n\t\tGridData gridData = new GridData();\n\t\tgridData.horizontalAlignment = GridData.FILL; \n\t\tgridData.grabExcessHorizontalSpace = true; \n\t\tfEditMatchSetsPanel.setLayoutData(gridData);\n\t\t\n\t\tfEditMatchSetsPanel.setLayout(new GridLayout(2, false));\t\n\n\t\tfSourcePanel = new EditSimpleMatchSetPanel(fEditMatchSetsPanel, \n\t\t\t\tfMatchInteraction.getSourceSimpleMatchSet(), \n\t\t\t\tthis, fTestEditor, \n\t\t\t\tAssessmentElementFactory.SOURCE_TITLE);\n\t\t\n\t\t\n\t\tfTargetPanel = new EditSimpleMatchSetPanel(fEditMatchSetsPanel, \n\t\t\t\tfMatchInteraction.getTargetSimpleMatchSet(), \n\t\t\t\tthis, fTestEditor, \n\t\t\t\tAssessmentElementFactory.TARGET_TITLE);\n\t}", "title": "" }, { "docid": "207975f29f561d62dc9cb148b8674ee9", "score": "0.4680896", "text": "public Builder setTournamentMatch(\n Cstrike15Gcmessages.TournamentMatchSetup.Builder builderForValue) {\n if (tournamentMatchBuilder_ == null) {\n tournamentMatch_ = builderForValue.build();\n onChanged();\n } else {\n tournamentMatchBuilder_.setMessage(builderForValue.build());\n }\n bitField0_ |= 0x00000010;\n return this;\n }", "title": "" }, { "docid": "5a8dc889957b623b67c6c018c7b31bde", "score": "0.46802336", "text": "public abstract Worker hireWorker(String name);", "title": "" }, { "docid": "642e4c4bfdda13ae22c143ec457db98e", "score": "0.46724352", "text": "public MDLWorker cloneForExecutionQueue();", "title": "" }, { "docid": "d05a82e5fbbab1576aca8197cbd431c2", "score": "0.4655938", "text": "public MatchesScrollPanel() {\n tms = new TournamentManagementSystem();\n initComponents();\n initMatchesScrollPanel();\n }", "title": "" }, { "docid": "1d98fe67cb020295b10dd88e3c05a2d9", "score": "0.46500722", "text": "public ArenaMatchImpl(ArenaInterface arena, boolean teamMatch)\r\n {\r\n this.teams.computeIfAbsent(CommonTeams.Unknown, t -> new MatchTeam(arena, t));\r\n this.teams.computeIfAbsent(CommonTeams.Spectators, t -> new MatchTeam(arena, t));\r\n this.teams.computeIfAbsent(CommonTeams.Losers, t -> new MatchTeam(arena, t));\r\n this.teams.computeIfAbsent(CommonTeams.Winners, t -> new MatchTeam(arena, t));\r\n this.teamMatch = teamMatch;\r\n this.arena = arena;\r\n }", "title": "" }, { "docid": "edcf980c0db123fa858d666dbb8eb88c", "score": "0.4612426", "text": "public static AddWorkerController getMySingelton() { // create singelton\n if (Instance == null)\n Instance = new AddWorkerController();\n return Instance;\n }", "title": "" }, { "docid": "c00a854165e7d68ff55b840836e08e4b", "score": "0.46120754", "text": "private ImageProcessingWorker getFreeWorker(){\n ImageProcessingWorker currentWorker = null;\n for (ImageProcessingWorker worker : workersList){\n if (ImageProcessingWorker.Status.WAITING\n .equals(worker.getStatus())){\n currentWorker = worker;\n break;\n }\n }\n return currentWorker;\n }", "title": "" }, { "docid": "8095883f8ce2abd359f527f3bd0dd142", "score": "0.459962", "text": "private Match getOutboundMatch(){\n Match match = new Match();\n match.setField(MatchType.DL_TYPE, (short) 0x0800); // IPv4 ethertype\n match.setField(MatchType.NW_PROTO, (byte) 17); \n match.setField(MatchType.DL_SRC, packet.getSourceMacBytes());\n match.setField(MatchType.NW_DST, packet.getDestInetAddress());\n match.setField(MatchType.TP_SRC, (short) packet.getSourcePort());\n match.setField(MatchType.TP_DST, (short) packet.getDestPort());\n\n return match;\n }", "title": "" }, { "docid": "bd9c0b610f77bdde93ef044d22dfc6f1", "score": "0.45878518", "text": "@Override\n\tpublic void onFrame() {\n\t\tfor (Unit unit : Bot.self.getUnits()) {\n\t\t\tif(unit.getDistance(headquarter) < gatherRadius && \n\t\t\t unit.getType().isWorker() && !workers.contains(unit)) {\n\t\t\t\tworkers.add(unit);\n\t\t\t}\n\t\t}\n\t\t\t\n\t\t// allocate idle workers\n\t\tfor(Unit worker : workers) {\n\t\t\tif(worker.isIdle() && !worker.isBeingConstructed()) {\n worker.gather(minerals.get(nextMineral), false);\n nextMineral++;\n if(nextMineral >= minerals.size()) {\n \tnextMineral = 0;\n }\n\t\t\t}\n\t\t}\n\t\t\n\t\t// create workers\n\t\tif (headquarter.getTrainingQueue().isEmpty() && \n\t\t\tBot.self.minerals() >= 50 &&\n\t\t\tworkers.size() < maxWorkers) {\n\t\t\theadquarter.train(EntityMap.get().read(\"worker\"));\n }\n\t}", "title": "" }, { "docid": "2df2f3287777fd8d489d34a5387bc3c1", "score": "0.45795885", "text": "public Cstrike15Gcmessages.WatchableMatchInfo.Builder getWatchablematchinfoBuilder() {\n bitField0_ |= 0x00000004;\n onChanged();\n return getWatchablematchinfoFieldBuilder().getBuilder();\n }", "title": "" }, { "docid": "da98456ad003a159de8d2b6a8f18315f", "score": "0.45668134", "text": "private AeWorkerThread createThread() {\r\n return new AeWorkerThread(\"AeWorkManager-WorkerThread-\" + mThreadCounter++); //$NON-NLS-1$\r\n }", "title": "" }, { "docid": "4793765e4f3b10b5bc89f83261234742", "score": "0.45637694", "text": "public IGame build() {\n\t\t\tChutesNLadders game = new ChutesNLadders();\n\t\t\tgame.board = this.board;\n\t\t\tgame.players = this.players;\n\t\t\tgame.spinner = this.spinner;\n\t\t\treturn game;\n\t\t}", "title": "" }, { "docid": "eb3c77d2c076ddf3e1c04614c1499378", "score": "0.45586535", "text": "private Game getMinesweeperGame(List<Object> settings) {\n return new MinesweeperGame(settings);\n }", "title": "" }, { "docid": "85cd3fa927c99a97ca9af149f1d5fcbf", "score": "0.45479113", "text": "private Manager() {\n\t\tround = new Round();\n\t\tworker.scheduleAtFixedRate(\n\t\t\tnew Runnable() { public void run() { round = new Round(); }},\n\t\t\tRound.getRoundDuration(), \n\t\t\tRound.getRoundDuration(), \n\t\t\tTimeUnit.MILLISECONDS);\n\t}", "title": "" }, { "docid": "ca68441f6d4dc8369a9e5609a59bf5e8", "score": "0.45401952", "text": "protected GameManager() {\n\t\tplayerW = new Player(Piece.WHITE);\n\t\tplayerB = new Player(Piece.BLACK);\n\t\tcurrentPlayer = playerW;\n\t\tmode = CLASSIC;\n\t\tstatus = INPROGRESS;\n\n\t\tChessboard.initInstance(8, 8);\n\t}", "title": "" }, { "docid": "0553b040490f29cd07846ab7509a79da", "score": "0.45231098", "text": "private void initMatches() {\r\n\r\n\t\t// Panel f\\u00FCr Spieler vorbereiten\r\n\t\tGridBagConstraints grid = new GridBagConstraints();\r\n\t\tthis.panelMatches = new JPanel();\r\n\t\tthis.panelMatches.setLayout(new GridBagLayout());\r\n\t\tgrid.gridx = 1;\r\n\t\tgrid.gridy = 0;\r\n\t\tgrid.weightx = grid.weighty = 1;\r\n\t\tgrid.fill = GridBagConstraints.BOTH;\r\n\t\tgrid.insets = new Insets(5, 5, 5, 5);\r\n\t\tthis.panelLayout.add(this.panelMatches, grid);\r\n\t\tgrid.insets = new Insets(0, 0, 0, 0);\r\n\r\n\t\t// \\u00DCberschriften f\\u00FCr Spielfelder und Ergebnisse\r\n\t\tJPanel header = new JPanel();\r\n\t\theader.setLayout(new GridBagLayout());\r\n\t\tgrid.gridx = 0;\r\n\t\tgrid.weighty = 0;\r\n\t\tgrid.fill = GridBagConstraints.HORIZONTAL;\r\n\t\tthis.panelMatches.add(header, grid);\r\n\r\n\t\tJLabel labelResults = new JLabel(\"<html><h1>Ergebnisse</h1></html>\");\r\n\t\tgrid.gridx = 0;\r\n\t\tgrid.fill = GridBagConstraints.NONE;\r\n\t\theader.add(labelResults, grid);\r\n\r\n\t\tJPanel contentMatches = new JPanel();\r\n\t\tcontentMatches.setLayout(new GridBagLayout());\r\n\t\tgrid.gridy = 1;\r\n\t\tgrid.weightx = grid.weighty = 1;\r\n\t\tgrid.fill = GridBagConstraints.BOTH;\r\n\t\tthis.panelMatches.add(contentMatches, grid);\r\n\r\n\t\tJPanel inputArea = new JPanel();\r\n\t\tinputArea.setLayout(new GridBagLayout());\r\n\t\tgrid.gridy = 0;\r\n\t\tgrid.fill = GridBagConstraints.HORIZONTAL;\r\n\t\tgrid.anchor = GridBagConstraints.FIRST_LINE_START;\r\n\t\tcontentMatches.add(inputArea, grid);\r\n\r\n\t\tJLabel labelTeams = new JLabel(\"<html><h3>Paarungen</h3></html>\");\r\n\t\tgrid.gridx = 1;\r\n\t\tgrid.gridy = 0;\r\n\t\tgrid.gridwidth = 3;\r\n\t\tgrid.fill = GridBagConstraints.NONE;\r\n\t\tgrid.anchor = GridBagConstraints.CENTER;\r\n\t\tinputArea.add(labelTeams, grid);\r\n\r\n\t\tJLabel labelResult = new JLabel(\"<html><h3>Ergebnis</h3></html>\");\r\n\t\tgrid.gridx = 4;\r\n\t\tgrid.gridwidth = 3;\r\n\t\tinputArea.add(labelResult, grid);\r\n\r\n\t\t// Spielfelder und Paarungen zuweisen\r\n\t\tthis.labelCourts = new JLabel[this.numberOfCourts];\r\n\t\tthis.labelA = new JLabel[this.numberOfCourts];\r\n\t\tthis.labelB = new JLabel[this.numberOfCourts];\r\n\t\tthis.inputResultA = new JTextField[this.numberOfCourts];\r\n\t\tthis.inputResultB = new JTextField[this.numberOfCourts];\r\n\t\tJLabel[] vsT = new JLabel[this.numberOfCourts];\r\n\t\tJLabel[] vsR = new JLabel[this.numberOfCourts];\r\n\t\t\r\n\t\tint index = 0;\r\n\t\tfor (int y = 0; y < this.numberOfCourts; y++) {\r\n\t\t\tif ((index >= calc.getPlayerList().size()) || ((calc.getPlayerList().size() - index) == 1)) {\r\n\t\t\t\tbreak;\r\n\t\t\t} else if ((calc.getPlayerList().size() - index) >= 4) {\r\n\t\t\t\tindex += 4;\r\n\t\t\t} else {\r\n\t\t\t\tindex += 2;\r\n\t\t\t}\r\n\r\n\t\t\t// Label f\\u00FCr Spielfeld\r\n\t\t\tint yVal = y + 1;\r\n\t\t\tthis.labelCourts[y] = new JLabel(\"<html><h4>Feld \" + yVal + \"</h4></html>\");\r\n\t\t\tgrid.gridx = 0;\r\n\t\t\tgrid.gridy = yVal;\r\n\t\t\tgrid.gridwidth = 1;\r\n\t\t\tgrid.anchor = GridBagConstraints.LINE_START;\r\n\t\t\tinputArea.add(this.labelCourts[y], grid);\r\n\r\n\t\t\t// Label f\\u00FCr erste Paarung\r\n\t\t\tthis.labelA[y] = new JLabel(\"\");\r\n\t\t\tgrid.gridx = 1;\r\n\t\t\tgrid.gridy = yVal;\r\n\t\t\tgrid.anchor = GridBagConstraints.CENTER;\r\n\t\t\tinputArea.add(this.labelA[y], grid);\r\n\r\n\t\t\tvsT[y] = new JLabel(\":\");\r\n\t\t\tgrid.gridx = 2;\r\n\t\t\tgrid.gridy = yVal;\r\n\t\t\tinputArea.add(vsT[y], grid);\r\n\r\n\t\t\t// Label f\\u00FCr zweite Paarung\r\n\t\t\tthis.labelB[y] = new JLabel(\"\");\r\n\t\t\tgrid.gridx = 3;\r\n\t\t\tgrid.gridy = yVal;\r\n\t\t\tinputArea.add(this.labelB[y], grid);\r\n\r\n\t\t\t// Textfeld f\\u00FCr Ergebnis erste Paarung\r\n\t\t\tthis.inputResultA[y] = new JTextField();\r\n\t\t\tthis.inputResultA[y].setPreferredSize(new Dimension(50, 24));\r\n\t\t\tthis.inputResultA[y].setDocument(onlyInteger());\r\n\t\t\tgrid.gridx = 4;\r\n\t\t\tgrid.gridy = yVal;\r\n\t\t\tinputArea.add(this.inputResultA[y], grid);\r\n\r\n\t\t\tvsR[y] = new JLabel(\":\");\r\n\t\t\tgrid.gridx = 5;\r\n\t\t\tgrid.gridy = yVal;\r\n\t\t\tinputArea.add(vsR[y], grid);\r\n\r\n\t\t\t// Textfeld f\\u00FCr Ergebnis zweite Paarung\r\n\t\t\tthis.inputResultB[y] = new JTextField();\r\n\t\t\tthis.inputResultB[y].setPreferredSize(new Dimension(50, 24));\r\n\t\t\tthis.inputResultB[y].setDocument(onlyInteger());\r\n\t\t\tgrid.gridx = 6;\r\n\t\t\tgrid.gridy = yVal;\r\n\t\t\tinputArea.add(this.inputResultB[y], grid);\r\n\t\t\tyVal++;\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\r\n\t\tJPanel actionArea = new JPanel();\r\n\t\tactionArea.setLayout(new GridBagLayout());\r\n\t\tgrid.gridx = 0;\r\n\t\tgrid.gridy = 2;\r\n\t\tgrid.weighty = 0;\r\n\t\tgrid.fill = GridBagConstraints.HORIZONTAL;\r\n\t\tthis.panelMatches.add(actionArea, grid);\r\n\r\n\t\tthis.labelNumberOfRounds = new JLabel(\"Gespielte Runden: 0\");\r\n\t\tgrid.gridy = 0;\r\n\t\tactionArea.add(this.labelNumberOfRounds, grid);\r\n\r\n\t\tJLabel labelMode = new JLabel(\"Rundenmodus w\\u00E4hlen:\");\r\n\t\tgrid.gridy = 1;\r\n\t\tactionArea.add(labelMode, grid);\r\n\r\n\t\tthis.radioTopBottom = new JRadioButton(\"Oben mit Unten\");\r\n\t\tgrid.gridy = 2;\r\n\t\tactionArea.add(this.radioTopBottom, grid);\r\n\r\n\t\tthis.radioTopTop = new JRadioButton(\"Oben mit Oben\");\r\n\t\tgrid.gridy = 3;\r\n\t\tactionArea.add(this.radioTopTop, grid);\r\n\r\n\t\tthis.radioTopBottom.setSelected(true);\r\n\t\tthis.radioTopTop.setEnabled(true);\r\n\r\n\t\tthis.buttonGroupMode = new ButtonGroup();\r\n\t\tthis.buttonGroupMode.add(this.radioTopBottom);\r\n\t\tthis.buttonGroupMode.add(this.radioTopTop);\r\n\r\n\t\tJPanel buttons = new JPanel();\r\n\t\tbuttons.setLayout(new GridBagLayout());\r\n\t\tgrid.gridy = 4;\r\n\t\tgrid.fill = GridBagConstraints.NONE;\r\n\t\tgrid.anchor = GridBagConstraints.LINE_END;\r\n\t\tactionArea.add(buttons, grid);\r\n\r\n\t\t// this.buttonReset = new JButton(\"Reset\");\r\n\t\t// grid.anchor = GridBagConstraints.CENTER;\r\n\t\t// buttons.add(this.buttonReset, grid);\r\n\t\t// this.buttonReset.addMouseListener(reset);\r\n\r\n\t\tthis.buttonEndRound = new JButton(\"Runde beenden\");\r\n\t\tgrid.gridx = 1;\r\n\t\tbuttons.add(this.buttonEndRound, grid);\r\n\t\tthis.buttonEndRound.addMouseListener(endRound);\r\n\r\n\t\tthis.buttonNextRound = new JButton(\"N\\u00E4chste Runde\");\r\n\t\tgrid.gridx = 2;\r\n\t\tbuttons.add(this.buttonNextRound, grid);\r\n\t\tthis.buttonNextRound.addMouseListener(nextRound);\r\n\t\tthis.buttonNextRound.setEnabled(false);\r\n\r\n\t}", "title": "" }, { "docid": "79edd70eeea7fca50ddfb203a71de57d", "score": "0.4515564", "text": "public Cstrike15Gcmessages.TournamentMatchSetup getTournamentMatch() {\n if (tournamentMatchBuilder_ == null) {\n return tournamentMatch_;\n } else {\n return tournamentMatchBuilder_.getMessage();\n }\n }", "title": "" }, { "docid": "f53175301aaf75586fabd25a7a0546c0", "score": "0.45114517", "text": "WorkingSetMonitoring createMonitoring(final WorkingSet ws)\n\t{\n\t\tif (activeProject == null) {\n\t\t\tthrow new ApplicationException(\"there is no active project\");\n\t\t}\n\n\t\tif (activeProject.getWorkingSets().contains(ws) == false) {\n\t\t\tthrow new ApplicationCodingException(\"choosen WorkingSet is not part of the active project\");\n\t\t}\n\n\t\tif (wsMonitorings.containsKey(ws)) {\n\t\t\treturn wsMonitorings.get(ws);\n\t\t}\n\n\t\tWorkingSetMonitoring wsm = new WorkingSetMonitoring(ws);\n\t\twsMonitorings.put(ws, wsm);\n\t\treturn wsm;\n\t}", "title": "" }, { "docid": "4b66e8f4be25525949045d8ad38a3559", "score": "0.45070612", "text": "private Worker() {\n setDaemon(true);\n this.localQueue = new WorkQueue();\n this.state = WorkerState.RETIRING;\n this.terminationState = 0;\n this.nextParkedWorker = CoroutineScheduler.NOT_IN_STACK;\n this.parkTimeNs = CoroutineScheduler.MIN_PARK_TIME_NS;\n this.rngState = CoroutineScheduler.this.random.nextInt();\n }", "title": "" }, { "docid": "05c2abe92eb175f125ceba6289c8c092", "score": "0.44908282", "text": "public void setExperimentHomePanel() {\r\n CustomSwingWorker swingWorker = new CustomSwingWorker(MainFrame.this.mainPanel) {\r\n @Override\r\n protected void doNonUILogic() {\r\n if (experimentPanel != null && experimentPanel.isVisible()) {\r\n experimentPanel.removeAll();\r\n }\r\n experimentPanel = new ExperimentPanel();\r\n GradientPaint gp = new GradientPaint(new Point2D.Double(.05d, 0), Color.WHITE, new Point2D.Double(\r\n .95d, 0), Color.WHITE);\r\n experimentPanel.setTitlePainter(new BasicGradientPainter(gp));\r\n experimentPanel.setTitleForeground(Color.BLUE);\r\n experimentPanel.validate();\r\n }\r\n\r\n @Override\r\n protected void doUIUpdateLogic() {\r\n mainPanel.removeAll();\r\n MainFrame.this.remove(mainPanel);\r\n mainPanel.add(\" hfill vfill \", experimentPanel);\r\n MainFrame.this.add(mainPanel);\r\n }\r\n };\r\n swingWorker.start();\r\n }", "title": "" }, { "docid": "cdf7ab5befd4f464058182c505bd5446", "score": "0.44797832", "text": "public Worker() {\r\n\t\tmResultHandler = new ResultsHandler();\r\n\t}", "title": "" }, { "docid": "931165afb4f530dfb01822f55fcaf4d7", "score": "0.44770408", "text": "public Match(String matchname, String htstrat, String otstrat, String outcome){\r\n this.matchname = matchname;\r\n this.htstrat = htstrat;\r\n this.otstrat = otstrat;\r\n this.outcome = outcome;\r\n }", "title": "" }, { "docid": "0e08fbd20113018ca8496b58c62aa2d4", "score": "0.4472158", "text": "@SuppressWarnings(\"unchecked\")\n\tpublic static final WorkerInterface getInstance() {\n\n\t\tif ( instance != null ) {\n\t\t\treturn instance;\n\t\t} else {\n\n\t\t\tsynchronized (semaphore) {\n\t\t\t\t\n\t\t\t\tif ( instance == null ) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tClass<? extends WorkerInterface> c = (Class<? extends WorkerInterface>) Class.forName(\"com.dexels.navajo.integrity.Worker\");\n\t\t\t\t\t\tWorkerInterface dummy = c.newInstance();\n\t\t\t\t\t\tMethod m = c.getMethod(\"getInstance\", (Class[])null);\n\t\t\t\t\t\tinstance = (WorkerInterface) m.invoke(dummy, (Object[])null);\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tAuditLog.log(\"INIT\", \"WARNING: Integrity Worker not available\", Level.WARNING);\n\t\t\t\t\t\tinstance = new DummyWorker();\n\t\t\t\t\t}\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\treturn instance;\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "7c5e7bb04a9cb82ad483bdc6f0c13c13", "score": "0.44697222", "text": "public com.google.cloud.dialogflow.cx.v3beta1.Match.Builder getMatchesBuilder(int index) {\n return getMatchesFieldBuilder().getBuilder(index);\n }", "title": "" }, { "docid": "b2b0effd34142981405f660de0c943c7", "score": "0.4468886", "text": "private IWebWorker getIwwInstance(String fqcn) throws Exception {\r\n\t\tClass<?> referenceToClass = this.getClass().getClassLoader().loadClass((String) fqcn);\r\n\t\tObject newObject = referenceToClass.getDeclaredConstructor().newInstance();\r\n\t\treturn (IWebWorker) newObject;\r\n\t}", "title": "" }, { "docid": "b868ed23ddc3d1a24adc880b6abf44a3", "score": "0.44603392", "text": "@FWorker\n ChannelWorker createWorker(String fileName);", "title": "" }, { "docid": "8d509b28dd478e860fb2376394b38b64", "score": "0.44579035", "text": "public Builder setTournamentMatch(Cstrike15Gcmessages.TournamentMatchSetup value) {\n if (tournamentMatchBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n tournamentMatch_ = value;\n onChanged();\n } else {\n tournamentMatchBuilder_.setMessage(value);\n }\n bitField0_ |= 0x00000010;\n return this;\n }", "title": "" }, { "docid": "e5e06c87ae6fe488909615b23277e0f2", "score": "0.44518867", "text": "private com.google.protobuf.SingleFieldBuilder<\n Cstrike15Gcmessages.WatchableMatchInfo, Cstrike15Gcmessages.WatchableMatchInfo.Builder, Cstrike15Gcmessages.WatchableMatchInfoOrBuilder> \n getWatchablematchinfoFieldBuilder() {\n if (watchablematchinfoBuilder_ == null) {\n watchablematchinfoBuilder_ = new com.google.protobuf.SingleFieldBuilder<\n Cstrike15Gcmessages.WatchableMatchInfo, Cstrike15Gcmessages.WatchableMatchInfo.Builder, Cstrike15Gcmessages.WatchableMatchInfoOrBuilder>(\n watchablematchinfo_,\n getParentForChildren(),\n isClean());\n watchablematchinfo_ = null;\n }\n return watchablematchinfoBuilder_;\n }", "title": "" }, { "docid": "50815360432f01d94cda25b00a0239c1", "score": "0.44500905", "text": "public static Worker newWorker(Protos.TaskID taskID) {\n\t\t\treturn new Worker(\n\t\t\t\ttaskID,\n\t\t\t\tResourceProfile.UNKNOWN,\n\t\t\t\tOption.<Protos.SlaveID>empty(), Option.<String>empty(),\n\t\t\t\tWorkerState.New);\n\t\t}", "title": "" }, { "docid": "186d7187937d27378bf3b53c1780e303", "score": "0.44444826", "text": "public GroceryMatch() {\r\n\t\tgroceries = new GroceryList();\r\n\t\trecipes = new RecipeList();\r\n\t}", "title": "" }, { "docid": "86418603280ac3a4161831f587b3a7a9", "score": "0.44409576", "text": "public BoardBackend getInstance() {\n return instance;\n }", "title": "" }, { "docid": "b6772adfac9352d1395e91bd0b9e7568", "score": "0.4438537", "text": "public LabWorkerController() {\n\t\tlabworkerview = new LabWorkerView();\n\t}", "title": "" }, { "docid": "714a070bc7e87db9426e5956bfe88dec", "score": "0.44332084", "text": "@Override\n\tpublic TestBoard factory() {\n\t\treturn new TestBoard(game);\n\t}", "title": "" }, { "docid": "fec59e87718d3ca752f12f66dec2a34f", "score": "0.44221932", "text": "public void matchStarted() {\r\n /* Ci si sposta nell'interfaccia della partita */\r\n GUIState guiState = UnoXTuttiGUI.GUIState.GAMEPLAY;\r\n gameplayPanel = (GameplayPanel) guiState.getPanel();\r\n gameplayPanel.clearEvents();\r\n UnoXTutti.mainWindow.setGuiState(guiState);\r\n \r\n /* Listener per messaggio di aggiornamento da parte del server */\r\n currentRoom.getConnection().addMessageReceivedObserver(currentMatch, MatchStatus.STATUS_UPDATE_MSG);\r\n /* Listener per la visualizzazione di messaggi di errore inviati dal server */\r\n currentRoom.getConnection().addMessageReceivedObserver(currentMatch, MatchStatus.STATUS_ERROR_MESSAGE);\r\n /* Listener per la ricezione di messaggi di fine partita */\r\n currentRoom.getConnection().addMessageReceivedObserver(currentMatch, Match.MATCH_ENDED_MSG);\r\n /* Listener per notifiche di espulsione */\r\n currentRoom.getConnection().addMessageReceivedObserver(currentMatch, Match.MATCH_KICKED_OUT);\r\n }", "title": "" }, { "docid": "3624953b9a469f00decdffb776942809", "score": "0.4421045", "text": "public Worker getWorker() {\n return worker;\n }", "title": "" }, { "docid": "139970353ac9ba976b027de7375cef65", "score": "0.44199428", "text": "public abstract void setMatch();", "title": "" }, { "docid": "7585f8fbe6e110bb79e1e5d1ff3d6307", "score": "0.43877956", "text": "public synchronized void onMatchStart(String tokenMatch, MultiPlayerMatch match) throws RemoteException {\n //Riabilita la finestra principale ad un nuovo multiplayer\n guiApp.multiplayerButton.setDisable(false);\n guiApp.cancelButton.setDisable(true);\n\n //Crea nuova gui multiplayer e view associata\n GuiMultiplayerApp guiMultiplayerApp = new GuiMultiplayerApp();\n guiMultiplayerApp.setGuiView(this);\n\n multiplayerApps.put(tokenMatch, guiMultiplayerApp);\n\n //Mostra nuova finestra\n //Esecuzione nel thread javafx\n Platform.runLater(() -> {\n try {\n guiMultiplayerApp.onMatchStart(tokenMatch, match);\n } catch (IOException e) {\n //Segnala errore\n GuiMessage.showError(\"impossibile mostrare una nuova partita\");\n }\n });\n\n }", "title": "" }, { "docid": "fe2d1b96de8976582997d73b7e66b762", "score": "0.43872985", "text": "Cstrike15Gcmessages.TournamentMatchSetupOrBuilder getTournamentMatchOrBuilder();", "title": "" }, { "docid": "3161fab0e6645c9c89576a704a13ff77", "score": "0.4369994", "text": "public static ResourcePanel getInstance() {\n\t\tif (resourcePanel == null) {\n\t\t\tresourcePanel = new ResourcePanel();\n\t\t}\n\t\treturn resourcePanel;\n\t}", "title": "" }, { "docid": "6c6183f1d1907280e007d969f6f2842e", "score": "0.43625027", "text": "MatcherRule createMatcherRule();", "title": "" }, { "docid": "b9f1d65e2cf12f9ca16d6a318ffe5fe0", "score": "0.4360012", "text": "public GEdgeResult newInstance(StateManager stateManager) {\n return new GEdgeResult(stateManager);\n }", "title": "" }, { "docid": "c069be41dbfae6e79aef7df705ea6faf", "score": "0.4359412", "text": "public static OwningPackage.Match newEmptyMatch() {\r\n return new Mutable(null, null);\r\n }", "title": "" }, { "docid": "ad80487577a7698d77edea2b765b9a9b", "score": "0.43587554", "text": "public static HatchProbePistons getInstance()\n {\n if (instance == null)\n instance = new HatchProbePistons();\n return instance;\n }", "title": "" }, { "docid": "5fde2114732914e98a4cea52b0ee5d1c", "score": "0.43519372", "text": "public abstract Replay build();", "title": "" }, { "docid": "20a0e0f0a126cf5f410680b87510b1ec", "score": "0.434345", "text": "private void reactMain_region_Working_Match_EndOfMatch() {\n\t\tif (sCIWatch.reset) {\n\t\t\tswitch (stateVector[0]) {\n\t\t\t\tcase main_region_Working_Match_FirstHalf :\n\t\t\t\t\tnextStateIndex = 0;\n\t\t\t\t\tstateVector[0] = State.$NullState$;\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase main_region_Working_Match_SecondHalf :\n\t\t\t\t\tnextStateIndex = 0;\n\t\t\t\t\tstateVector[0] = State.$NullState$;\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase main_region_Working_Match_FirstExtra :\n\t\t\t\t\tnextStateIndex = 0;\n\t\t\t\t\tstateVector[0] = State.$NullState$;\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase main_region_Working_Match_SecondExtra :\n\t\t\t\t\tnextStateIndex = 0;\n\t\t\t\t\tstateVector[0] = State.$NullState$;\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase main_region_Working_Match_EndOfMatch :\n\t\t\t\t\tnextStateIndex = 0;\n\t\t\t\t\tstateVector[0] = State.$NullState$;\n\t\t\t\t\tbreak;\n\n\t\t\t\tdefault :\n\t\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tswitch (stateVector[1]) {\n\t\t\t\tcase main_region_Working_Events_Listening :\n\t\t\t\t\tnextStateIndex = 1;\n\t\t\t\t\tstateVector[1] = State.$NullState$;\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase main_region_Working_Events_Goal :\n\t\t\t\t\tnextStateIndex = 1;\n\t\t\t\t\tstateVector[1] = State.$NullState$;\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase main_region_Working_Events_Substitute :\n\t\t\t\t\tnextStateIndex = 1;\n\t\t\t\t\tstateVector[1] = State.$NullState$;\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase main_region_Working_Events_Fault :\n\t\t\t\t\tnextStateIndex = 1;\n\t\t\t\t\tstateVector[1] = State.$NullState$;\n\t\t\t\t\tbreak;\n\n\t\t\t\tdefault :\n\t\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tswitch (stateVector[2]) {\n\t\t\t\tcase main_region_Working_Watch_TimeOut :\n\t\t\t\t\tnextStateIndex = 2;\n\t\t\t\t\tstateVector[2] = State.$NullState$;\n\n\t\t\t\t\tgetTimerService()\n\t\t\t\t\t\t\t.resetTimer(\n\t\t\t\t\t\t\t\t\tscoreboard_main_region_Working_Watch_TimeOut_time_event_0);\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase main_region_Working_Watch_Running :\n\t\t\t\t\tnextStateIndex = 2;\n\t\t\t\t\tstateVector[2] = State.$NullState$;\n\n\t\t\t\t\tgetTimerService()\n\t\t\t\t\t\t\t.resetTimer(\n\t\t\t\t\t\t\t\t\tscoreboard_main_region_Working_Watch_Running_time_event_0);\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase main_region_Working_Watch_Stopped :\n\t\t\t\t\tnextStateIndex = 2;\n\t\t\t\t\tstateVector[2] = State.$NullState$;\n\t\t\t\t\tbreak;\n\n\t\t\t\tdefault :\n\t\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tsCITeam1.faults = 0;\n\n\t\t\tsCITeam1.score = 0;\n\n\t\t\tsCITeam1.timeOutsLeft = 1;\n\n\t\t\tsCITeam2.faults = 0;\n\n\t\t\tsCITeam2.score = 0;\n\n\t\t\tsCITeam2.timeOutsLeft = 1;\n\n\t\t\tsCIWatch.time = 0;\n\n\t\t\tnextStateIndex = 0;\n\t\t\tstateVector[0] = State.main_region_Init;\n\t\t} else {\n\t\t\tif (sCIWatch.abort) {\n\t\t\t\tswitch (stateVector[0]) {\n\t\t\t\t\tcase main_region_Working_Match_FirstHalf :\n\t\t\t\t\t\tnextStateIndex = 0;\n\t\t\t\t\t\tstateVector[0] = State.$NullState$;\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tcase main_region_Working_Match_SecondHalf :\n\t\t\t\t\t\tnextStateIndex = 0;\n\t\t\t\t\t\tstateVector[0] = State.$NullState$;\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tcase main_region_Working_Match_FirstExtra :\n\t\t\t\t\t\tnextStateIndex = 0;\n\t\t\t\t\t\tstateVector[0] = State.$NullState$;\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tcase main_region_Working_Match_SecondExtra :\n\t\t\t\t\t\tnextStateIndex = 0;\n\t\t\t\t\t\tstateVector[0] = State.$NullState$;\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tcase main_region_Working_Match_EndOfMatch :\n\t\t\t\t\t\tnextStateIndex = 0;\n\t\t\t\t\t\tstateVector[0] = State.$NullState$;\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tdefault :\n\t\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t\tswitch (stateVector[1]) {\n\t\t\t\t\tcase main_region_Working_Events_Listening :\n\t\t\t\t\t\tnextStateIndex = 1;\n\t\t\t\t\t\tstateVector[1] = State.$NullState$;\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tcase main_region_Working_Events_Goal :\n\t\t\t\t\t\tnextStateIndex = 1;\n\t\t\t\t\t\tstateVector[1] = State.$NullState$;\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tcase main_region_Working_Events_Substitute :\n\t\t\t\t\t\tnextStateIndex = 1;\n\t\t\t\t\t\tstateVector[1] = State.$NullState$;\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tcase main_region_Working_Events_Fault :\n\t\t\t\t\t\tnextStateIndex = 1;\n\t\t\t\t\t\tstateVector[1] = State.$NullState$;\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tdefault :\n\t\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t\tswitch (stateVector[2]) {\n\t\t\t\t\tcase main_region_Working_Watch_TimeOut :\n\t\t\t\t\t\tnextStateIndex = 2;\n\t\t\t\t\t\tstateVector[2] = State.$NullState$;\n\n\t\t\t\t\t\tgetTimerService()\n\t\t\t\t\t\t\t\t.resetTimer(\n\t\t\t\t\t\t\t\t\t\tscoreboard_main_region_Working_Watch_TimeOut_time_event_0);\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tcase main_region_Working_Watch_Running :\n\t\t\t\t\t\tnextStateIndex = 2;\n\t\t\t\t\t\tstateVector[2] = State.$NullState$;\n\n\t\t\t\t\t\tgetTimerService()\n\t\t\t\t\t\t\t\t.resetTimer(\n\t\t\t\t\t\t\t\t\t\tscoreboard_main_region_Working_Watch_Running_time_event_0);\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tcase main_region_Working_Watch_Stopped :\n\t\t\t\t\t\tnextStateIndex = 2;\n\t\t\t\t\t\tstateVector[2] = State.$NullState$;\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tdefault :\n\t\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t\tnextStateIndex = 0;\n\t\t\t\tstateVector[0] = State.main_region_Finished;\n\t\t\t} else {\n\t\t\t\tif (sCIWatch.end) {\n\t\t\t\t\tswitch (stateVector[0]) {\n\t\t\t\t\t\tcase main_region_Working_Match_FirstHalf :\n\t\t\t\t\t\t\tnextStateIndex = 0;\n\t\t\t\t\t\t\tstateVector[0] = State.$NullState$;\n\t\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t\tcase main_region_Working_Match_SecondHalf :\n\t\t\t\t\t\t\tnextStateIndex = 0;\n\t\t\t\t\t\t\tstateVector[0] = State.$NullState$;\n\t\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t\tcase main_region_Working_Match_FirstExtra :\n\t\t\t\t\t\t\tnextStateIndex = 0;\n\t\t\t\t\t\t\tstateVector[0] = State.$NullState$;\n\t\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t\tcase main_region_Working_Match_SecondExtra :\n\t\t\t\t\t\t\tnextStateIndex = 0;\n\t\t\t\t\t\t\tstateVector[0] = State.$NullState$;\n\t\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t\tcase main_region_Working_Match_EndOfMatch :\n\t\t\t\t\t\t\tnextStateIndex = 0;\n\t\t\t\t\t\t\tstateVector[0] = State.$NullState$;\n\t\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t\tdefault :\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\n\t\t\t\t\tswitch (stateVector[1]) {\n\t\t\t\t\t\tcase main_region_Working_Events_Listening :\n\t\t\t\t\t\t\tnextStateIndex = 1;\n\t\t\t\t\t\t\tstateVector[1] = State.$NullState$;\n\t\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t\tcase main_region_Working_Events_Goal :\n\t\t\t\t\t\t\tnextStateIndex = 1;\n\t\t\t\t\t\t\tstateVector[1] = State.$NullState$;\n\t\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t\tcase main_region_Working_Events_Substitute :\n\t\t\t\t\t\t\tnextStateIndex = 1;\n\t\t\t\t\t\t\tstateVector[1] = State.$NullState$;\n\t\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t\tcase main_region_Working_Events_Fault :\n\t\t\t\t\t\t\tnextStateIndex = 1;\n\t\t\t\t\t\t\tstateVector[1] = State.$NullState$;\n\t\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t\tdefault :\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\n\t\t\t\t\tswitch (stateVector[2]) {\n\t\t\t\t\t\tcase main_region_Working_Watch_TimeOut :\n\t\t\t\t\t\t\tnextStateIndex = 2;\n\t\t\t\t\t\t\tstateVector[2] = State.$NullState$;\n\n\t\t\t\t\t\t\tgetTimerService()\n\t\t\t\t\t\t\t\t\t.resetTimer(\n\t\t\t\t\t\t\t\t\t\t\tscoreboard_main_region_Working_Watch_TimeOut_time_event_0);\n\t\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t\tcase main_region_Working_Watch_Running :\n\t\t\t\t\t\t\tnextStateIndex = 2;\n\t\t\t\t\t\t\tstateVector[2] = State.$NullState$;\n\n\t\t\t\t\t\t\tgetTimerService()\n\t\t\t\t\t\t\t\t\t.resetTimer(\n\t\t\t\t\t\t\t\t\t\t\tscoreboard_main_region_Working_Watch_Running_time_event_0);\n\t\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t\tcase main_region_Working_Watch_Stopped :\n\t\t\t\t\t\t\tnextStateIndex = 2;\n\t\t\t\t\t\t\tstateVector[2] = State.$NullState$;\n\t\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t\tdefault :\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\n\t\t\t\t\tnextStateIndex = 0;\n\t\t\t\t\tstateVector[0] = State.main_region_Finished;\n\t\t\t\t} else {\n\t\t\t\t\tif (sCIWatch.set && sCIWatch.time < 50 * 60) {\n\t\t\t\t\t\tnextStateIndex = 0;\n\t\t\t\t\t\tstateVector[0] = State.$NullState$;\n\n\t\t\t\t\t\tnextStateIndex = 0;\n\t\t\t\t\t\tstateVector[0] = State.main_region_Working_Match_SecondExtra;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "f0a0482c3d37a0ed959d2f3281e7110d", "score": "0.434289", "text": "public GlideExperiments build() {\n return new GlideExperiments(this);\n }", "title": "" }, { "docid": "456037e9569a8839e6e59147f86ea4e1", "score": "0.4329409", "text": "private JPanel newMiniGamePanel() {\r\n\t\tMiniGameType miniGameType = villain().getGame();\r\n\t\t\r\n\t\tswitch (miniGameType) {\r\n\t\t\tcase PAPER_SCISSORS_ROCK: return new PaperScissorsRockPanel(this, currentHero, villain());\r\n\t\t\tcase DICE_ROLLS: return new DiceRollsPanel(this, currentHero, villain());\r\n\t\t\tcase GUESS_NUMBER: return new GuessNumberPanel(this, currentHero, villain());\r\n\t\t\tdefault: throw new RuntimeException(\"Incorrect MiniGame type\");\r\n\t\t}\r\n\t\t\r\n\t}", "title": "" }, { "docid": "efd5edf639d779eda272a2a2ceef8a3b", "score": "0.4325524", "text": "public Cstrike15Gcmessages.WatchableMatchInfo.Builder addWatchableMatchInfosBuilder(\n int index) {\n return getWatchableMatchInfosFieldBuilder().addBuilder(\n index, Cstrike15Gcmessages.WatchableMatchInfo.getDefaultInstance());\n }", "title": "" }, { "docid": "8ca0fe8fab83ba1cd7dc02609dbf0085", "score": "0.4323195", "text": "public void chooseWorker() {\n\n mapPanel.setChat(\"Choose Worker\");\n mapPanel.getWorkerContainer().setVisible(true);\n java.util.List<BoardButton> workerButtons = new ArrayList<>();\n boardButtons = board.getBoardButtons();\n for (int i = 0; i < 5; i++) {\n for (int j = 0; j < 5; j++) {\n boardButtons[j][i].setVisible(true);\n }\n }\n for (Worker worker : s.getValidChoicesWorkers()) {\n workerButtons.add(board.getSpecificButtons(worker.getPosition().getCoordinates().getX(), worker.getPosition().getCoordinates().getY()));\n }\n for(JButton button : workerButtons){\n button.setBorder(BorderFactory.createLineBorder(Color.BLUE , 0));\n button.setEnabled(true);\n\n }\n\n for (int i = 0; i < s.getValidChoicesWorkers().size(); i++) {\n workerButtons.get(i).setBorder(BorderFactory.createLineBorder(Color.BLUE, 2));\n\n if (workerButtons.get(i).getActionListeners().length > 0) {\n workerButtons.get(i).removeActionListener(workerButtons.get(i).getActionListeners()[0]);\n }\n workerButtons.get(i).addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent e) {\n\n for (int i = 0; i < s.getValidChoicesWorkers().size(); i++) {\n\n if (e.getSource() == workerButtons.get(i)) {\n workerButtons.get(i).setBorder(BorderFactory.createLineBorder(Color.red, 2));\n for (int k = 0; k < 5; k++) {\n for (int l = 0; l < 5; l++) {\n if (!boardButtons[l][k].equals(workerButtons.get(i)))\n boardButtons[l][k].setVisible(false);\n }\n }\n for(JButton button : workerButtons){\n\n button.setBorder(BorderFactory.createLineBorder(Color.BLUE , 0));\n button.setEnabled(false);\n\n }\n mapPanel.getYesUndo().setEnabled(true);\n mapPanel.getNoUndo().setEnabled(true);\n getChoice(\"CHOOSEWORKER\");\n chosenWorker = s.getValidChoicesWorkers().get(i);\n\n }\n }\n }\n });\n }\n }", "title": "" }, { "docid": "91924efd0f3ad5347d2729ba879710a5", "score": "0.43211204", "text": "private Match getInboundMatch(){\n Match match = new Match();\n match.setField(MatchType.DL_TYPE, (short) 0x0800); // IPv4 ethertype\n match.setField(MatchType.NW_PROTO, (byte) 17); \n\n try{\n match.setField(MatchType.NW_SRC, InetAddress.getByName(pfconfig.getElement(\"pf_dns_ip\")) );\n }catch(Exception e){e.printStackTrace();}\n match.setField(MatchType.TP_SRC, (short) packet.getDestPort());\n match.setField(MatchType.TP_DST, (short) packet.getSourcePort());\n match.setField(MatchType.DL_DST, packet.getSourceMacBytes());\n \n return match;\n }", "title": "" }, { "docid": "bc8724e823276a622005553ac713fb8c", "score": "0.43157634", "text": "@Override\r\n public void startMatch(int rounds) {\r\n System.out.println(\"Starting match\");\r\n fleetMaker.initialHeat();\r\n \r\n //Do nothing\r\n }", "title": "" }, { "docid": "b8f1c156ff305a58c3b6330279c978c1", "score": "0.4311468", "text": "private Thread getSearchThread(String threadType, Prim destination) {\n Thread finder = null;\n if (threadType.compareToIgnoreCase(keepLookingString)==0){\n finder = new KeepLooking(destination);\n } else if (threadType.compareToIgnoreCase(activeWaitString)==0) {\n finder = new FindAndDie(destination);\n } else if (threadType.compareToIgnoreCase(tryAndDieString)==0){\n finder = new TryAndDie(destination);\n }\n return finder;\n }", "title": "" }, { "docid": "dfc321e2ff0544e6903d2dc1bf911c66", "score": "0.43112224", "text": "public FNatsServer build() {\n if (executorService == null) {\n this.executorService = new ThreadPoolExecutor(\n 1, workerCount, 30, TimeUnit.SECONDS,\n new ArrayBlockingQueue<>(queueLength),\n new BlockingRejectedExecutionHandler());\n }\n return new FNatsServer(conn, processor, protoFactory, subjects, queue, highWatermark, executorService);\n }", "title": "" }, { "docid": "ded828961f1651aff295fdd553eef957", "score": "0.43058747", "text": "public final SupportRoomViewModel invoke() {\n return new SupportRoomViewModel();\n }", "title": "" }, { "docid": "2a5d979522c6006c2ca78b35272e3bc1", "score": "0.43055782", "text": "private JPanel makeEastPanel () {\n JPanel eastPanel = new JPanel();\n GridLayout layout = new GridLayout(4, 1);\n eastPanel.setLayout(layout);\n eastPanel.setBackground(Color.WHITE);\n eastPanel.setPreferredSize(new Dimension(WIDTH/6, HEIGHT));\n \n match.addActionListener(new ButtonListener());\n eastPanel.add(match);\n \n query.addActionListener(new ButtonListener());\n eastPanel.add(query);\n \n new_game.addActionListener(new ButtonListener());\n eastPanel.add(new_game);\n \n quit.addActionListener(new ButtonListener());\n eastPanel.add(quit);\n \n return eastPanel;\n }", "title": "" }, { "docid": "b1c6fa7cb684ecc6d79f4bc8894ee800", "score": "0.43044803", "text": "public Cstrike15Gcmessages.TournamentMatchSetupOrBuilder getTournamentMatchOrBuilder() {\n if (tournamentMatchBuilder_ != null) {\n return tournamentMatchBuilder_.getMessageOrBuilder();\n } else {\n return tournamentMatch_;\n }\n }", "title": "" }, { "docid": "5047b53f81d5dfef1dc4129618dd865c", "score": "0.4299499", "text": "private com.google.protobuf.SingleFieldBuilder<\n Cstrike15Gcmessages.CMsgGCCStrike15_v2_MatchmakingGC2ClientReserve, Cstrike15Gcmessages.CMsgGCCStrike15_v2_MatchmakingGC2ClientReserve.Builder, Cstrike15Gcmessages.CMsgGCCStrike15_v2_MatchmakingGC2ClientReserveOrBuilder> \n getAbandonedMatchFieldBuilder() {\n if (abandonedMatchBuilder_ == null) {\n abandonedMatchBuilder_ = new com.google.protobuf.SingleFieldBuilder<\n Cstrike15Gcmessages.CMsgGCCStrike15_v2_MatchmakingGC2ClientReserve, Cstrike15Gcmessages.CMsgGCCStrike15_v2_MatchmakingGC2ClientReserve.Builder, Cstrike15Gcmessages.CMsgGCCStrike15_v2_MatchmakingGC2ClientReserveOrBuilder>(\n abandonedMatch_,\n getParentForChildren(),\n isClean());\n abandonedMatch_ = null;\n }\n return abandonedMatchBuilder_;\n }", "title": "" }, { "docid": "cb2e92ee220465214f8d3f43b0f862b1", "score": "0.42971677", "text": "public static MapredWork getMapRedWork(ParseContext parseCtx) {\n MapredWork work = getMapRedWorkFromConf(parseCtx.getConf());\n work.getMapWork().setNameToSplitSample(parseCtx.getNameToSplitSample());\n return work;\n }", "title": "" }, { "docid": "4d23c18c987b0b5b381ceb268d2cd518", "score": "0.42947942", "text": "public void onQuickMatchClicked() {\n System.out.println(\"QUICK MATCH\");\n Bundle autoMatchCriteria = RoomConfig.createAutoMatchCriteria(\n 1, 1, 0);\n\n TurnBasedMatchConfig tbmc = TurnBasedMatchConfig.builder()\n .setAutoMatchCriteria(autoMatchCriteria).build();\n\n // Start the match\n ResultCallback<TurnBasedMultiplayer.InitiateMatchResult> cb = new ResultCallback<TurnBasedMultiplayer.InitiateMatchResult>() {\n @Override\n public void onResult(TurnBasedMultiplayer.InitiateMatchResult result) {\n System.out.println(result.toString());\n processResult(result);\n }\n };\n Games.TurnBasedMultiplayer.createMatch(mGoogleApiClient, tbmc).setResultCallback(cb);\n }", "title": "" }, { "docid": "4ef82fbd8f07b7a2408245dfd1d6500c", "score": "0.42945886", "text": "public JsonpWvwMatch() {\n }", "title": "" }, { "docid": "2862793db80b2ddb45f5a50fca9f5287", "score": "0.4289986", "text": "Cstrike15Gcmessages.TournamentMatchSetup getTournamentMatch();", "title": "" }, { "docid": "8a021d42d5a7bfee2021f705b4e60277", "score": "0.42832258", "text": "public com.google.cloud.dialogflow.cx.v3beta1.Match.Builder addMatchesBuilder() {\n return getMatchesFieldBuilder()\n .addBuilder(com.google.cloud.dialogflow.cx.v3beta1.Match.getDefaultInstance());\n }", "title": "" }, { "docid": "5ea91791396f789d3652d9a1f3abd738", "score": "0.42704245", "text": "private Node makeAlgorithmPanel () {\r\n\r\n\t\tMenuItem dfs = new MenuItem (\"Depth-First Search\");\r\n\t\tdfs.setOnAction(value -> setSearch(new DFS(myMaze)));\r\n\r\n\t\tMenuItem bfs = new MenuItem (\"Breadth-First Search\");\r\n\t\tbfs.setOnAction(value -> setSearch(new BFS(myMaze)));\r\n\r\n\t\tMenuItem greedy = new MenuItem (\"Greedy Search\");\r\n\t\tgreedy.setOnAction(value -> setSearch(new Greedy(myMaze)));\r\n\r\n\t\tMenuItem magic = new MenuItem (\"Magic Search\");\r\n\t\tmagic.setOnAction(value -> setSearch(new Magic(myMaze)));\r\n\r\n\t\tMenuItem random = new MenuItem(\"Random Search\");\r\n\t\trandom.setOnAction(value -> setSearch(new RandomWalk(myMaze)));\r\n\r\n\t\tMenuButton panel = new MenuButton(\"Solvers\", null, dfs, bfs, greedy, magic, random);\r\n\r\n\t\treturn panel;\r\n\t}", "title": "" }, { "docid": "6ed1f450878838d89949ca188dc3fd33", "score": "0.42570937", "text": "public NewGameStrategy getNewGameRule() {\n return new AmericanNewGameStrategy();\n }", "title": "" }, { "docid": "de8ff48b49cee8ed084a7e03a95c338f", "score": "0.42557442", "text": "public Void match() {\n\n //Getting instance. It's a static variable. It's possible to have only one instance of matchmore.\n MatchMoreSdk matchMore = MatchMore.getInstance();\n\n // Start getting matches\n matchMore.getMatchMonitor().addOnMatchListener((matches, device) -> {\n Log.d(\"Matches found\", device.getId());\n Log.d(\"Matches array\", Arrays.deepToString(matchMore.getMatches().toArray()));\n\n SharedPreferences settings = getActivity().getSharedPreferences(\"deviceId\", Context.MODE_PRIVATE);\n SharedPreferences.Editor editor = settings.edit();\n editor.putString(\"deviceId\", device.getId());\n editor.apply();\n\n\n return Unit.INSTANCE;\n });\n\n matchMore.getMatchMonitor().startPollingMatches();\n\n return null;\n }", "title": "" }, { "docid": "93ddf448a5e782ec0e0f761b86f42e88", "score": "0.42541417", "text": "public void setSearchDataWelcomePanel() {\r\n\r\n CustomSwingWorker swingWorker = new CustomSwingWorker(this) {\r\n @Override\r\n protected void doNonUILogic() {\r\n if (htmlPanel == null) {\r\n htmlPanel = new SearchDataWelcomePanel(MainFrame.this);\r\n }\r\n homePanel = htmlPanel;\r\n }\r\n\r\n @Override\r\n protected void doUIUpdateLogic() {\r\n setWelcomePanel();\r\n }\r\n };\r\n swingWorker.start();\r\n }", "title": "" }, { "docid": "137458a79bea608a5cbd18df3f1b1a4f", "score": "0.42539817", "text": "@Override\n protected BoardPanel createBoardPanel(Game game) {\n BoardPanel boardPanel = new FreechessBoardPanel(this, game);\n\n return boardPanel;\n }", "title": "" }, { "docid": "595c24a232e0c278218307657b58c9ea", "score": "0.425142", "text": "public Cstrike15Gcmessages.CMsgGCCStrike15_v2_MatchmakingGC2ClientReserve.Builder getAbandonedMatchBuilder() {\n bitField0_ |= 0x00000002;\n onChanged();\n return getAbandonedMatchFieldBuilder().getBuilder();\n }", "title": "" }, { "docid": "98a1517ce6893fd5bcb5968c056576d8", "score": "0.4250801", "text": "public Cstrike15Gcmessages.WatchableMatchInfo.Builder addWatchableMatchInfosBuilder() {\n return getWatchableMatchInfosFieldBuilder().addBuilder(\n Cstrike15Gcmessages.WatchableMatchInfo.getDefaultInstance());\n }", "title": "" }, { "docid": "5c260426a6741d044edcfef0182a5359", "score": "0.42474377", "text": "public Parseable createParseable() {\n/* 54 */ return new PatternParseable(this);\n/* */ }", "title": "" }, { "docid": "dd4bc3dd464d9c92632d6e8398a6991d", "score": "0.42399767", "text": "public Cstrike15Gcmessages.TournamentMatchSetupOrBuilder getTournamentMatchOrBuilder() {\n return tournamentMatch_;\n }", "title": "" }, { "docid": "368d82ab1d1984d7e88896fb61b824ca", "score": "0.4239558", "text": "protected Operator getNewOperator() {\n try {\n return (Operator) Class.forName(operator).getConstructor(new Class[] {Action.class}).newInstance(new Object[] { action });\n } catch (Exception e) {\n e.printStackTrace();\n }\n return null;\n }", "title": "" }, { "docid": "fa9b93c927159030efdb03fa7cf98f87", "score": "0.42361584", "text": "public MatchGUI(GameBoard gameBoard) throws IOException {\n super(\"Match Game\");\n board = new JTable(gameBoard);\n moves = new SuperPathMatch();\n message = \"Play details\";\n scores = new Scores();\n player1box[0] = \"Player 1\";\n player2box[0] = \"Player 2\";\n player1 = new JComboBox(player1box);\n player2 = new JComboBox(player2box);\n player1Info = new Player((String)player1.getSelectedItem(),moves.getPlayer1Score());\n player2Info = new Player((String)player2.getSelectedItem(),moves.getPlayer2Score());\n moveNumber = moves.moveNumber;\n player1Turn = new SuperPathMatch().getPlayer1Turn();\n match = new MatchGame();\n this.gameBoard = gameBoard;\n createPathGame();\n loadData();\n setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n pack();\n setVisible(true);\n }", "title": "" }, { "docid": "5cfe1eb1aba2290d8dfc440fb323686d", "score": "0.4226011", "text": "private void reactMain_region_Working_Match_FirstExtra() {\n\t\tif (sCIWatch.reset) {\n\t\t\tswitch (stateVector[0]) {\n\t\t\t\tcase main_region_Working_Match_FirstHalf :\n\t\t\t\t\tnextStateIndex = 0;\n\t\t\t\t\tstateVector[0] = State.$NullState$;\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase main_region_Working_Match_SecondHalf :\n\t\t\t\t\tnextStateIndex = 0;\n\t\t\t\t\tstateVector[0] = State.$NullState$;\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase main_region_Working_Match_FirstExtra :\n\t\t\t\t\tnextStateIndex = 0;\n\t\t\t\t\tstateVector[0] = State.$NullState$;\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase main_region_Working_Match_SecondExtra :\n\t\t\t\t\tnextStateIndex = 0;\n\t\t\t\t\tstateVector[0] = State.$NullState$;\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase main_region_Working_Match_EndOfMatch :\n\t\t\t\t\tnextStateIndex = 0;\n\t\t\t\t\tstateVector[0] = State.$NullState$;\n\t\t\t\t\tbreak;\n\n\t\t\t\tdefault :\n\t\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tswitch (stateVector[1]) {\n\t\t\t\tcase main_region_Working_Events_Listening :\n\t\t\t\t\tnextStateIndex = 1;\n\t\t\t\t\tstateVector[1] = State.$NullState$;\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase main_region_Working_Events_Goal :\n\t\t\t\t\tnextStateIndex = 1;\n\t\t\t\t\tstateVector[1] = State.$NullState$;\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase main_region_Working_Events_Substitute :\n\t\t\t\t\tnextStateIndex = 1;\n\t\t\t\t\tstateVector[1] = State.$NullState$;\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase main_region_Working_Events_Fault :\n\t\t\t\t\tnextStateIndex = 1;\n\t\t\t\t\tstateVector[1] = State.$NullState$;\n\t\t\t\t\tbreak;\n\n\t\t\t\tdefault :\n\t\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tswitch (stateVector[2]) {\n\t\t\t\tcase main_region_Working_Watch_TimeOut :\n\t\t\t\t\tnextStateIndex = 2;\n\t\t\t\t\tstateVector[2] = State.$NullState$;\n\n\t\t\t\t\tgetTimerService()\n\t\t\t\t\t\t\t.resetTimer(\n\t\t\t\t\t\t\t\t\tscoreboard_main_region_Working_Watch_TimeOut_time_event_0);\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase main_region_Working_Watch_Running :\n\t\t\t\t\tnextStateIndex = 2;\n\t\t\t\t\tstateVector[2] = State.$NullState$;\n\n\t\t\t\t\tgetTimerService()\n\t\t\t\t\t\t\t.resetTimer(\n\t\t\t\t\t\t\t\t\tscoreboard_main_region_Working_Watch_Running_time_event_0);\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase main_region_Working_Watch_Stopped :\n\t\t\t\t\tnextStateIndex = 2;\n\t\t\t\t\tstateVector[2] = State.$NullState$;\n\t\t\t\t\tbreak;\n\n\t\t\t\tdefault :\n\t\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tsCITeam1.faults = 0;\n\n\t\t\tsCITeam1.score = 0;\n\n\t\t\tsCITeam1.timeOutsLeft = 1;\n\n\t\t\tsCITeam2.faults = 0;\n\n\t\t\tsCITeam2.score = 0;\n\n\t\t\tsCITeam2.timeOutsLeft = 1;\n\n\t\t\tsCIWatch.time = 0;\n\n\t\t\tnextStateIndex = 0;\n\t\t\tstateVector[0] = State.main_region_Init;\n\t\t} else {\n\t\t\tif (sCIWatch.abort) {\n\t\t\t\tswitch (stateVector[0]) {\n\t\t\t\t\tcase main_region_Working_Match_FirstHalf :\n\t\t\t\t\t\tnextStateIndex = 0;\n\t\t\t\t\t\tstateVector[0] = State.$NullState$;\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tcase main_region_Working_Match_SecondHalf :\n\t\t\t\t\t\tnextStateIndex = 0;\n\t\t\t\t\t\tstateVector[0] = State.$NullState$;\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tcase main_region_Working_Match_FirstExtra :\n\t\t\t\t\t\tnextStateIndex = 0;\n\t\t\t\t\t\tstateVector[0] = State.$NullState$;\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tcase main_region_Working_Match_SecondExtra :\n\t\t\t\t\t\tnextStateIndex = 0;\n\t\t\t\t\t\tstateVector[0] = State.$NullState$;\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tcase main_region_Working_Match_EndOfMatch :\n\t\t\t\t\t\tnextStateIndex = 0;\n\t\t\t\t\t\tstateVector[0] = State.$NullState$;\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tdefault :\n\t\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t\tswitch (stateVector[1]) {\n\t\t\t\t\tcase main_region_Working_Events_Listening :\n\t\t\t\t\t\tnextStateIndex = 1;\n\t\t\t\t\t\tstateVector[1] = State.$NullState$;\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tcase main_region_Working_Events_Goal :\n\t\t\t\t\t\tnextStateIndex = 1;\n\t\t\t\t\t\tstateVector[1] = State.$NullState$;\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tcase main_region_Working_Events_Substitute :\n\t\t\t\t\t\tnextStateIndex = 1;\n\t\t\t\t\t\tstateVector[1] = State.$NullState$;\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tcase main_region_Working_Events_Fault :\n\t\t\t\t\t\tnextStateIndex = 1;\n\t\t\t\t\t\tstateVector[1] = State.$NullState$;\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tdefault :\n\t\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t\tswitch (stateVector[2]) {\n\t\t\t\t\tcase main_region_Working_Watch_TimeOut :\n\t\t\t\t\t\tnextStateIndex = 2;\n\t\t\t\t\t\tstateVector[2] = State.$NullState$;\n\n\t\t\t\t\t\tgetTimerService()\n\t\t\t\t\t\t\t\t.resetTimer(\n\t\t\t\t\t\t\t\t\t\tscoreboard_main_region_Working_Watch_TimeOut_time_event_0);\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tcase main_region_Working_Watch_Running :\n\t\t\t\t\t\tnextStateIndex = 2;\n\t\t\t\t\t\tstateVector[2] = State.$NullState$;\n\n\t\t\t\t\t\tgetTimerService()\n\t\t\t\t\t\t\t\t.resetTimer(\n\t\t\t\t\t\t\t\t\t\tscoreboard_main_region_Working_Watch_Running_time_event_0);\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tcase main_region_Working_Watch_Stopped :\n\t\t\t\t\t\tnextStateIndex = 2;\n\t\t\t\t\t\tstateVector[2] = State.$NullState$;\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tdefault :\n\t\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t\tnextStateIndex = 0;\n\t\t\t\tstateVector[0] = State.main_region_Finished;\n\t\t\t} else {\n\t\t\t\tif (sCIWatch.time >= 45 * 60) {\n\t\t\t\t\tnextStateIndex = 0;\n\t\t\t\t\tstateVector[0] = State.$NullState$;\n\n\t\t\t\t\tsCIWatch.raiseStop();\n\n\t\t\t\t\tsCICallback.raiseEoExtra1();\n\n\t\t\t\t\tnextStateIndex = 0;\n\t\t\t\t\tstateVector[0] = State.main_region_Working_Match_SecondExtra;\n\t\t\t\t} else {\n\t\t\t\t\tif (sCIWatch.time < 40 * 60) {\n\t\t\t\t\t\tnextStateIndex = 0;\n\t\t\t\t\t\tstateVector[0] = State.$NullState$;\n\n\t\t\t\t\t\tnextStateIndex = 0;\n\t\t\t\t\t\tstateVector[0] = State.main_region_Working_Match_SecondHalf;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "4359b6968b00ac8d3b575e9579dff8be", "score": "0.42229345", "text": "private static SocialWorker getWorker() {\r\n\t\tSystem.out.println(\"Select the Social Worker to assign a patient to: \");\r\n\t\tList<SocialWorker> list = SocialWorkersDAO.getAllSocialWorkers();\r\n\t\tfor (int i=0; i<list.size(); i++) {\r\n\t\t\tSystem.out.println(i + \" -- \" + list.get(i).getLname() + \",\" + list.get(i).getFname());\r\n\t\t}\r\n\t\tint choice = Utility.getValidChoice(list.size());\r\n\t\treturn list.get(choice);\r\n\t}", "title": "" } ]
f56512b3707e4277e0f8e8884e783768
Validates the validateFamilyHistoryObservationTemplateId constraint of 'Family History Observation'.
[ { "docid": "fbd8d0e0826cba1c0233b08623e65103", "score": "0.73685306", "text": "public boolean validateFamilyHistoryObservation_validateFamilyHistoryObservationTemplateId(\r\n\t\t\tFamilyHistoryObservation familyHistoryObservation, DiagnosticChain diagnostics,\r\n\t\t\tMap<Object, Object> context) {\r\n\t\treturn familyHistoryObservation.validateFamilyHistoryObservationTemplateId(diagnostics, context);\r\n\t}", "title": "" } ]
[ { "docid": "6e53366c7faf472dafa0382d78d55e4b", "score": "0.6757882", "text": "public boolean validateFamilyHistoryCauseOfDeathObservation_validateFamilyHistoryObservationTemplateId(\r\n\t\t\tFamilyHistoryCauseOfDeathObservation familyHistoryCauseOfDeathObservation, DiagnosticChain diagnostics,\r\n\t\t\tMap<Object, Object> context) {\r\n\t\treturn familyHistoryCauseOfDeathObservation.validateFamilyHistoryObservationTemplateId(diagnostics, context);\r\n\t}", "title": "" }, { "docid": "b9071b53f9cfb759244147867545454f", "score": "0.6447455", "text": "public boolean validateFamilyHistoryOrganizer_validateFamilyHistoryOrganizerTemplateId(\r\n\t\t\tFamilyHistoryOrganizer familyHistoryOrganizer, DiagnosticChain diagnostics, Map<Object, Object> context) {\r\n\t\treturn familyHistoryOrganizer.validateFamilyHistoryOrganizerTemplateId(diagnostics, context);\r\n\t}", "title": "" }, { "docid": "b46532a8be76feac87f2628b823aebff", "score": "0.64420664", "text": "public boolean validateFamilyHistorySection_validateFamilyHistorySectionTemplateId(\r\n\t\t\tFamilyHistorySection familyHistorySection, DiagnosticChain diagnostics, Map<Object, Object> context) {\r\n\t\treturn familyHistorySection.validateFamilyHistorySectionTemplateId(diagnostics, context);\r\n\t}", "title": "" }, { "docid": "43e35c7f80b3a80e5b9e166898a29c02", "score": "0.63954186", "text": "public boolean validateSocialHistoryObservation_validateSocialHistoryObservationTemplateId(\r\n\t\t\tSocialHistoryObservation socialHistoryObservation, DiagnosticChain diagnostics,\r\n\t\t\tMap<Object, Object> context) {\r\n\t\treturn socialHistoryObservation.validateSocialHistoryObservationTemplateId(diagnostics, context);\r\n\t}", "title": "" }, { "docid": "bfb81c4123cf419511cb664ec01aaf1b", "score": "0.6221051", "text": "public boolean validateFamilyHistoryObservation_validateFamilyHistoryObservationId(\r\n\t\t\tFamilyHistoryObservation familyHistoryObservation, DiagnosticChain diagnostics,\r\n\t\t\tMap<Object, Object> context) {\r\n\t\treturn familyHistoryObservation.validateFamilyHistoryObservationId(diagnostics, context);\r\n\t}", "title": "" }, { "docid": "eab47e0c10c3c0810a420bc9192e2625", "score": "0.5826207", "text": "public boolean validateSocialHistoryStatusObservation_validateStatusObservationTemplateId(\r\n\t\t\tSocialHistoryStatusObservation socialHistoryStatusObservation, DiagnosticChain diagnostics,\r\n\t\t\tMap<Object, Object> context) {\r\n\t\treturn socialHistoryStatusObservation.validateStatusObservationTemplateId(diagnostics, context);\r\n\t}", "title": "" }, { "docid": "966adfe4f40f9af63ec659dd3a7a73be", "score": "0.54471403", "text": "public boolean validateSeverityObservation_validateSeverityObservationTemplateId(\r\n\t\t\tSeverityObservation severityObservation, DiagnosticChain diagnostics, Map<Object, Object> context) {\r\n\t\treturn severityObservation.validateSeverityObservationTemplateId(diagnostics, context);\r\n\t}", "title": "" }, { "docid": "90ed97ed63d21b15265a6acaaf09a7b7", "score": "0.5413824", "text": "public boolean validateAgeObservation_validateAgeObservationTemplateId(AgeObservation ageObservation,\r\n\t\t\tDiagnosticChain diagnostics, Map<Object, Object> context) {\r\n\t\treturn ageObservation.validateAgeObservationTemplateId(diagnostics, context);\r\n\t}", "title": "" }, { "docid": "0a1051742453b4bbcb809103a42f147b", "score": "0.53817475", "text": "public boolean validateFunctionalStatusObservation_validateStatusObservationTemplateId(\r\n\t\t\tFunctionalStatusObservation functionalStatusObservation, DiagnosticChain diagnostics,\r\n\t\t\tMap<Object, Object> context) {\r\n\t\treturn functionalStatusObservation.validateStatusObservationTemplateId(diagnostics, context);\r\n\t}", "title": "" }, { "docid": "9ae9afdd9a7c1537ce6b408dcd3cc79d", "score": "0.5361423", "text": "public boolean validateSocialHistorySection_validateSocialHistorySectionTemplateId(\r\n\t\t\tSocialHistorySection socialHistorySection, DiagnosticChain diagnostics, Map<Object, Object> context) {\r\n\t\treturn socialHistorySection.validateSocialHistorySectionTemplateId(diagnostics, context);\r\n\t}", "title": "" }, { "docid": "eac1f23aa3f8baf73cfe7b2f321fcb75", "score": "0.52363336", "text": "public boolean validateAlertObservation_validateAlertObservationTemplateId(AlertObservation alertObservation,\r\n\t\t\tDiagnosticChain diagnostics, Map<Object, Object> context) {\r\n\t\treturn alertObservation.validateAlertObservationTemplateId(diagnostics, context);\r\n\t}", "title": "" }, { "docid": "85c6e36813d25769ac430775e33f91b9", "score": "0.52309847", "text": "public boolean validateSocialHistoryObservation_validateSocialHistoryObservationId(\r\n\t\t\tSocialHistoryObservation socialHistoryObservation, DiagnosticChain diagnostics,\r\n\t\t\tMap<Object, Object> context) {\r\n\t\treturn socialHistoryObservation.validateSocialHistoryObservationId(diagnostics, context);\r\n\t}", "title": "" }, { "docid": "afb679e1bb3aa642d7a372e643e51e10", "score": "0.50726944", "text": "public boolean validateReactionObservation_validateReactionObservationTemplateId(\r\n\t\t\tReactionObservation reactionObservation, DiagnosticChain diagnostics, Map<Object, Object> context) {\r\n\t\treturn reactionObservation.validateReactionObservationTemplateId(diagnostics, context);\r\n\t}", "title": "" }, { "docid": "6266ba5bbc39e89d97e4cd1385db9776", "score": "0.50627947", "text": "public boolean validateProblemObservation_validateProblemObservationTemplateId(\r\n\t\t\tProblemObservation problemObservation, DiagnosticChain diagnostics, Map<Object, Object> context) {\r\n\t\treturn problemObservation.validateProblemObservationTemplateId(diagnostics, context);\r\n\t}", "title": "" }, { "docid": "ae0c57659c01a81f9312cfc475a2fb3c", "score": "0.5049943", "text": "public boolean validateProblemHealthStatusObservation_validateStatusObservationTemplateId(\r\n\t\t\tProblemHealthStatusObservation problemHealthStatusObservation, DiagnosticChain diagnostics,\r\n\t\t\tMap<Object, Object> context) {\r\n\t\treturn problemHealthStatusObservation.validateStatusObservationTemplateId(diagnostics, context);\r\n\t}", "title": "" }, { "docid": "861bfe1e175821608f9d1beff166f060", "score": "0.50406253", "text": "public boolean validateFamilyHistoryOrganizer_validateFamilyHistoryOrganizerFamilyHistoryObservation(\r\n\t\t\tFamilyHistoryOrganizer familyHistoryOrganizer, DiagnosticChain diagnostics, Map<Object, Object> context) {\r\n\t\treturn familyHistoryOrganizer.validateFamilyHistoryOrganizerFamilyHistoryObservation(diagnostics, context);\r\n\t}", "title": "" }, { "docid": "58a389dcabffa25eee02cc56608f33ea", "score": "0.50362545", "text": "public boolean validateAlertStatusObservation_validateStatusObservationTemplateId(\r\n\t\t\tAlertStatusObservation alertStatusObservation, DiagnosticChain diagnostics, Map<Object, Object> context) {\r\n\t\treturn alertStatusObservation.validateStatusObservationTemplateId(diagnostics, context);\r\n\t}", "title": "" }, { "docid": "de25341456f4f1b4ad20572eecc4cf55", "score": "0.50126296", "text": "public boolean validateStatusObservation_validateStatusObservationTemplateId(StatusObservation statusObservation,\r\n\t\t\tDiagnosticChain diagnostics, Map<Object, Object> context) {\r\n\t\treturn statusObservation.validateStatusObservationTemplateId(diagnostics, context);\r\n\t}", "title": "" }, { "docid": "c9180bd823d6c350dc095f10bccc8f4f", "score": "0.50042367", "text": "public boolean validateEpisodeObservation_validateEpisodeObservationTemplateId(\r\n\t\t\tEpisodeObservation episodeObservation, DiagnosticChain diagnostics, Map<Object, Object> context) {\r\n\t\treturn episodeObservation.validateEpisodeObservationTemplateId(diagnostics, context);\r\n\t}", "title": "" }, { "docid": "50b7be2605b7068c69b1ac7c5df19ff7", "score": "0.49786118", "text": "public boolean validateFamilyHistoryObservation_validateFamilyHistoryObservationRelatedSubjectBirthTime(\r\n\t\t\tFamilyHistoryObservation familyHistoryObservation, DiagnosticChain diagnostics,\r\n\t\t\tMap<Object, Object> context) {\r\n\t\treturn familyHistoryObservation.validateFamilyHistoryObservationRelatedSubjectBirthTime(diagnostics, context);\r\n\t}", "title": "" }, { "docid": "1270c9e098addb485afbc112947904c5", "score": "0.49747884", "text": "public boolean validateFamilyHistoryOrganizer_validateFamilyHistoryOrganizerHasFamilyHistoryObservation(\r\n\t\t\tFamilyHistoryOrganizer familyHistoryOrganizer, DiagnosticChain diagnostics, Map<Object, Object> context) {\r\n\t\treturn familyHistoryOrganizer.validateFamilyHistoryOrganizerHasFamilyHistoryObservation(diagnostics, context);\r\n\t}", "title": "" }, { "docid": "e90c4b422ffa9add97475b121323d292", "score": "0.49135762", "text": "public boolean validateProblemStatusObservation_validateStatusObservationTemplateId(\r\n\t\t\tProblemStatusObservation problemStatusObservation, DiagnosticChain diagnostics,\r\n\t\t\tMap<Object, Object> context) {\r\n\t\treturn problemStatusObservation.validateStatusObservationTemplateId(diagnostics, context);\r\n\t}", "title": "" }, { "docid": "f5e494d6c7b7e7edf34bfc1a8a4ae73f", "score": "0.49064857", "text": "public boolean validateMedicationStatusObservation_validateStatusObservationTemplateId(\r\n\t\t\tMedicationStatusObservation medicationStatusObservation, DiagnosticChain diagnostics,\r\n\t\t\tMap<Object, Object> context) {\r\n\t\treturn medicationStatusObservation.validateStatusObservationTemplateId(diagnostics, context);\r\n\t}", "title": "" }, { "docid": "431d5fb4b021acf7b42d2eca447d0fa5", "score": "0.48756295", "text": "public boolean validateFamilyHistoryObservation_validateFamilyHistoryObservationStatusCode(\r\n\t\t\tFamilyHistoryObservation familyHistoryObservation, DiagnosticChain diagnostics,\r\n\t\t\tMap<Object, Object> context) {\r\n\t\treturn familyHistoryObservation.validateFamilyHistoryObservationStatusCode(diagnostics, context);\r\n\t}", "title": "" }, { "docid": "e7de83aaf788b3560dc76b024b9ee6de", "score": "0.4863913", "text": "public boolean validateFamilyHistoryObservation_validateFamilyHistoryObservationAgeObservation(\r\n\t\t\tFamilyHistoryObservation familyHistoryObservation, DiagnosticChain diagnostics,\r\n\t\t\tMap<Object, Object> context) {\r\n\t\treturn familyHistoryObservation.validateFamilyHistoryObservationAgeObservation(diagnostics, context);\r\n\t}", "title": "" }, { "docid": "5dd4c90cc76b851073240258ac8e608e", "score": "0.4862653", "text": "public boolean validateContinuityOfCareDocument_validateContinuityOfCareDocumentFamilyHistorySection(\r\n\t\t\tContinuityOfCareDocument continuityOfCareDocument, DiagnosticChain diagnostics,\r\n\t\t\tMap<Object, Object> context) {\r\n\t\treturn continuityOfCareDocument.validateContinuityOfCareDocumentFamilyHistorySection(diagnostics, context);\r\n\t}", "title": "" }, { "docid": "142db41620c82952ea52558788d842c9", "score": "0.48542953", "text": "public boolean validateMedicationSeriesNumberObservation_validateMedicationSeriesNumberObservationTemplateId(\r\n\t\t\tMedicationSeriesNumberObservation medicationSeriesNumberObservation, DiagnosticChain diagnostics,\r\n\t\t\tMap<Object, Object> context) {\r\n\t\treturn medicationSeriesNumberObservation.validateMedicationSeriesNumberObservationTemplateId(\r\n\t\t\tdiagnostics, context);\r\n\t}", "title": "" }, { "docid": "1fb613c0e142ce45f93ac013571ff6a8", "score": "0.4759226", "text": "public boolean validateFamilyHistorySection_validateFamilyHistorySectionFamilyHistoryObsOrgs(\r\n\t\t\tFamilyHistorySection familyHistorySection, DiagnosticChain diagnostics, Map<Object, Object> context) {\r\n\t\treturn familyHistorySection.validateFamilyHistorySectionFamilyHistoryObsOrgs(diagnostics, context);\r\n\t}", "title": "" }, { "docid": "a679d2e5c721f7388b3e9cfdfbac11cf", "score": "0.47137654", "text": "public boolean validateFamilyHistoryObservation_validateFamilyHistoryObservationRelationshipValueCode(\r\n\t\t\tFamilyHistoryObservation familyHistoryObservation, DiagnosticChain diagnostics,\r\n\t\t\tMap<Object, Object> context) {\r\n\t\treturn familyHistoryObservation.validateFamilyHistoryObservationRelationshipValueCode(diagnostics, context);\r\n\t}", "title": "" }, { "docid": "d24d482bbc45f0d2e9f733826c4745c7", "score": "0.470199", "text": "public boolean validateFamilyHistoryObservation_validateFamilyHistoryObservationEffectiveTime(\r\n\t\t\tFamilyHistoryObservation familyHistoryObservation, DiagnosticChain diagnostics,\r\n\t\t\tMap<Object, Object> context) {\r\n\t\treturn familyHistoryObservation.validateFamilyHistoryObservationEffectiveTime(diagnostics, context);\r\n\t}", "title": "" }, { "docid": "4a2588977698797da79c87840e92ece7", "score": "0.46756002", "text": "boolean validateMedicationSectionTemplateId(DiagnosticChain diagnostics, Map<Object, Object> context);", "title": "" }, { "docid": "09de83584a1f9c24c6e0be16b54b1221", "score": "0.46662116", "text": "public boolean validateProcedureActivityObservation_validateProcedureActivityObservationTemplateId(\r\n\t\t\tProcedureActivityObservation procedureActivityObservation, DiagnosticChain diagnostics,\r\n\t\t\tMap<Object, Object> context) {\r\n\t\treturn procedureActivityObservation.validateProcedureActivityObservationTemplateId(diagnostics, context);\r\n\t}", "title": "" }, { "docid": "6d33d286dffa29fdb3edab2abb29cd3d", "score": "0.45629334", "text": "public boolean validateFamilyHistorySection_validateFamilyHistorySectionTitle(\r\n\t\t\tFamilyHistorySection familyHistorySection, DiagnosticChain diagnostics, Map<Object, Object> context) {\r\n\t\treturn familyHistorySection.validateFamilyHistorySectionTitle(diagnostics, context);\r\n\t}", "title": "" }, { "docid": "fb76d54e286718f70de27a4803c70d8a", "score": "0.45349398", "text": "public boolean validateFamilyHistoryOrganizer_validateFamilyHistoryOrganizerRelatedSubjectBirthTime(\r\n\t\t\tFamilyHistoryOrganizer familyHistoryOrganizer, DiagnosticChain diagnostics, Map<Object, Object> context) {\r\n\t\treturn familyHistoryOrganizer.validateFamilyHistoryOrganizerRelatedSubjectBirthTime(diagnostics, context);\r\n\t}", "title": "" }, { "docid": "952242445613a35e4ca2443303306df6", "score": "0.4530934", "text": "public boolean validateEncounterLocation_validateEncounterLocationTemplateId(EncounterLocation encounterLocation,\r\n\t\t\tDiagnosticChain diagnostics, Map<Object, Object> context) {\r\n\t\treturn encounterLocation.validateEncounterLocationTemplateId(diagnostics, context);\r\n\t}", "title": "" }, { "docid": "8bbe4320d1179a213664f5bfbbb2d0ed", "score": "0.45300025", "text": "public boolean validateFamilyHistorySection_validateFamilyHistorySectionFamilyHistoryOrganizer(\r\n\t\t\tFamilyHistorySection familyHistorySection, DiagnosticChain diagnostics, Map<Object, Object> context) {\r\n\t\treturn familyHistorySection.validateFamilyHistorySectionFamilyHistoryOrganizer(diagnostics, context);\r\n\t}", "title": "" }, { "docid": "a4d30464e73ef1ef7274882e656414d2", "score": "0.45006567", "text": "public boolean validateAdvanceDirectiveStatusObservation_validateStatusObservationTemplateId(\r\n\t\t\tAdvanceDirectiveStatusObservation advanceDirectiveStatusObservation, DiagnosticChain diagnostics,\r\n\t\t\tMap<Object, Object> context) {\r\n\t\treturn advanceDirectiveStatusObservation.validateStatusObservationTemplateId(diagnostics, context);\r\n\t}", "title": "" }, { "docid": "d82a5ee2e877b7a4d5ac8d921705c28d", "score": "0.4489159", "text": "public boolean validateResultObservation_validateResultObservationTemplateId(ResultObservation resultObservation,\r\n\t\t\tDiagnosticChain diagnostics, Map<Object, Object> context) {\r\n\t\treturn resultObservation.validateResultObservationTemplateId(diagnostics, context);\r\n\t}", "title": "" }, { "docid": "752d7de5e95527b6b6ff32ccf810a431", "score": "0.44782567", "text": "public boolean validateFamilyHistorySection_validateFamilyHistorySectionCode(\r\n\t\t\tFamilyHistorySection familyHistorySection, DiagnosticChain diagnostics, Map<Object, Object> context) {\r\n\t\treturn familyHistorySection.validateFamilyHistorySectionCode(diagnostics, context);\r\n\t}", "title": "" }, { "docid": "ff84c7d153c97b693218df95c7a5a384", "score": "0.44534668", "text": "public boolean validateFamilyHistoryObservation_validateFamilyHistoryObservationProblemStatusObservation(\r\n\t\t\tFamilyHistoryObservation familyHistoryObservation, DiagnosticChain diagnostics,\r\n\t\t\tMap<Object, Object> context) {\r\n\t\treturn familyHistoryObservation.validateFamilyHistoryObservationProblemStatusObservation(diagnostics, context);\r\n\t}", "title": "" }, { "docid": "893644a81a58480278b6e1c2bf467b5b", "score": "0.44340304", "text": "public boolean validateAdvanceDirectiveObservation_validateAdvanceDirectiveObservationTemplateId(\r\n\t\t\tAdvanceDirectiveObservation advanceDirectiveObservation, DiagnosticChain diagnostics,\r\n\t\t\tMap<Object, Object> context) {\r\n\t\treturn advanceDirectiveObservation.validateAdvanceDirectiveObservationTemplateId(diagnostics, context);\r\n\t}", "title": "" }, { "docid": "c43e0887ba3b67dcff5c15e688fc194f", "score": "0.44311503", "text": "public boolean validatePlanOfCareActivityObservation_validatePlanOfCareActivityObservationTemplateId(\r\n\t\t\tPlanOfCareActivityObservation planOfCareActivityObservation, DiagnosticChain diagnostics,\r\n\t\t\tMap<Object, Object> context) {\r\n\t\treturn planOfCareActivityObservation.validatePlanOfCareActivityObservationTemplateId(diagnostics, context);\r\n\t}", "title": "" }, { "docid": "9e76eaf839d7389464dafcbb40c4b9ff", "score": "0.44205645", "text": "private void createStockSpecificationValidate(StockSpecificationDTO stockSpecificationDTO) {\n\t\tif (stockSpecificationDTO.getStockSpecificationId() != null) {\n\t\t\tthrow new ResponseStatusException(HttpStatus.BAD_REQUEST, \"ID should not be defined when creating a new stockSpecification\");\n\t\t}\n\t\tvalidateStockSpecificationDTO(stockSpecificationDTO);\n\t}", "title": "" }, { "docid": "8bc6f98edc852d9fbc2c610ce8209242", "score": "0.43609923", "text": "public boolean validateFamilyHistoryCauseOfDeathObservation_validateFamilyHistoryCauseOfDeathObservationEntryRelationship(\r\n\t\t\tFamilyHistoryCauseOfDeathObservation familyHistoryCauseOfDeathObservation, DiagnosticChain diagnostics,\r\n\t\t\tMap<Object, Object> context) {\r\n\t\treturn familyHistoryCauseOfDeathObservation.validateFamilyHistoryCauseOfDeathObservationEntryRelationship(\r\n\t\t\tdiagnostics, context);\r\n\t}", "title": "" }, { "docid": "d34794c50f1a093642b8923c4da7733b", "score": "0.43265268", "text": "public boolean validateFunctionalStatusSection_validateFunctionalStatusSectionTemplateId(\r\n\t\t\tFunctionalStatusSection functionalStatusSection, DiagnosticChain diagnostics, Map<Object, Object> context) {\r\n\t\treturn functionalStatusSection.validateFunctionalStatusSectionTemplateId(diagnostics, context);\r\n\t}", "title": "" }, { "docid": "23a8b4a3697f44495ac5340ad3a90b7d", "score": "0.4261746", "text": "public void validate() throws org.apache.thrift.TException {\n if (templateFileCount != null) {\n templateFileCount.validate();\n }\n }", "title": "" }, { "docid": "23a8b4a3697f44495ac5340ad3a90b7d", "score": "0.4261746", "text": "public void validate() throws org.apache.thrift.TException {\n if (templateFileCount != null) {\n templateFileCount.validate();\n }\n }", "title": "" }, { "docid": "d361fa2716554fa8cadda278c1cdeef0", "score": "0.4238784", "text": "protected void validateFirstIdToken() {\n\t}", "title": "" }, { "docid": "b5f9ff765c765d88106c00ceee5d9c01", "score": "0.42381322", "text": "public boolean validateContinuityOfCareDocument_validateContinuityOfCareDocumentTemplateId(\r\n\t\t\tContinuityOfCareDocument continuityOfCareDocument, DiagnosticChain diagnostics,\r\n\t\t\tMap<Object, Object> context) {\r\n\t\treturn continuityOfCareDocument.validateContinuityOfCareDocumentTemplateId(diagnostics, context);\r\n\t}", "title": "" }, { "docid": "daac7f2a6ae5523234936c63d41e0953", "score": "0.42302358", "text": "public boolean validateAuthorizationActivity_validateAuthorizationActivityTemplateId(\r\n\t\t\tAuthorizationActivity authorizationActivity, DiagnosticChain diagnostics, Map<Object, Object> context) {\r\n\t\treturn authorizationActivity.validateAuthorizationActivityTemplateId(diagnostics, context);\r\n\t}", "title": "" }, { "docid": "3a124fd507172a025106b27b14a35210", "score": "0.42037776", "text": "public boolean validateFulfillmentInstruction_validateFulfillmentInstructionTemplateId(\r\n\t\t\tFulfillmentInstruction fulfillmentInstruction, DiagnosticChain diagnostics, Map<Object, Object> context) {\r\n\t\treturn fulfillmentInstruction.validateFulfillmentInstructionTemplateId(diagnostics, context);\r\n\t}", "title": "" }, { "docid": "221a858f13bda149643c978b839d112d", "score": "0.4161835", "text": "public boolean validateFamilyHistorySection_validateFamilyHistorySectionNoSubject(\r\n\t\t\tFamilyHistorySection familyHistorySection, DiagnosticChain diagnostics, Map<Object, Object> context) {\r\n\t\treturn familyHistorySection.validateFamilyHistorySectionNoSubject(diagnostics, context);\r\n\t}", "title": "" }, { "docid": "8cf68527756903c3ba1cdf20e5eee572", "score": "0.4159343", "text": "public boolean validateRevisionHistoryProperty_action(RevisionHistoryProperty revisionHistoryProperty, DiagnosticChain diagnostics, Map<Object, Object> context) {\n//\t\tModification modify = revisionHistoryProperty.getAction();\n//\t\t\n//\t\tBasicDiagnostic diagbosticsTemp = new BasicDiagnostic();\n//\t\tif (modify instanceof AddTableModification) {\n//\t\t\tfor (TableColumn tc : ((AddTableModification) modify).getColumns()){\n//\t\t\t\tdatabaseValidator.validateTableColumn(tc, diagbosticsTemp, context);\n//\t\t\t}\n//\t\t\tfor (TableIndex ti : ((AddTableModification) modify).getIndexes()){\n//\t\t\t\tdatabaseValidator.validateTableIndex(ti, diagbosticsTemp, context);\n//\t\t\t}\n//\t\t}else if (modify instanceof AddTableColumnModification){\n//\t\t\tfor (TableColumn tc : ((AddTableColumnModification) modify).getColumns()){\n//\t\t\t\tdatabaseValidator.validateTableColumn(tc, diagbosticsTemp, context);\n//\t\t\t}\n//\t\t}else if (modify instanceof AddIndexModification){\n//\t\t\tfor (TableIndex ti : ((AddIndexModification) modify).getIndexs()){\n//\t\t\t\tdatabaseValidator.validateTableIndex(ti, diagbosticsTemp, context);\n//\t\t\t}\n//\t\t}\n//\t\t\n//\t\tfor(Diagnostic dia : diagbosticsTemp.getChildren()){\n//\t\t\tif (dia.getSeverity() == Diagnostic.ERROR) {\n//\t\t\t\tEReference errAttribute = ChousePackage.Literals.REVISION_HISTORY_PROPERTY__ACTION;\n//\t\t\t\tdiagnostics.add(new BasicDiagnostic(Diagnostic.ERROR,\n//\t\t\t\t\t\tDIAGNOSTIC_SOURCE,\n//\t\t\t\t\t\t0,\n//\t\t\t\t\t\t\"修订记录,表修改记录错误!\",\n//\t\t\t\t\t\tnew Object[]{revisionHistoryProperty,errAttribute}));\n//\t\t\t\treturn false;\n//\t\t\t}\n//\t\t}\n\t\treturn true;\n\t}", "title": "" }, { "docid": "3de523cbe034d8adb89af060c903212d", "score": "0.41426346", "text": "default void validate(V2PipelineTemplate template) {\n if (template.getId().contains(\".\")) {\n throw new IllegalArgumentException(\"Pipeline Template IDs cannot have dots\");\n }\n\n List<String> missingFields = new ArrayList<>();\n if (Strings.isNullOrEmpty(template.getMetadata().getName())) {\n missingFields.add(\"metadata.name\");\n }\n if (Strings.isNullOrEmpty(template.getMetadata().getDescription())) {\n missingFields.add(\"metadata.description\");\n }\n if (template.getMetadata().getScopes() == null\n || template.getMetadata().getScopes().isEmpty()) {\n missingFields.add(\"metadata.scopes\");\n }\n if (Strings.isNullOrEmpty(template.getSchema())) {\n missingFields.add(\"schema\");\n }\n\n if (!missingFields.isEmpty()) {\n throw new IllegalArgumentException(\n \"Missing required fields: \" + String.join(\",\", missingFields));\n }\n\n if (!template.getSchema().equals(V2PipelineTemplate.V2_SCHEMA_VERSION)) {\n throw new IllegalArgumentException(\n String.format(\"Invalid schema version: %s\", template.getSchema()));\n }\n\n if (!template.getMetadata().getName().matches(TEMPLATE_VALID_NAME_REGEX)) {\n throw new IllegalArgumentException(\n String.format(\n \"Illegal template name: %s. Name must match the regex: %s\",\n template.getMetadata().getName(), TEMPLATE_VALID_NAME_REGEX));\n }\n\n if (template.getVariables() != null) {\n List<String> invalidVariableNames =\n template.getVariables().stream()\n .filter(\n variable ->\n variable.getName() != null\n && !variable.getName().matches(TEMPLATE_VALID_VARIABLE_NAME_REGEX))\n .map(V2PipelineTemplate.Variable::getName)\n .collect(Collectors.toList());\n\n if (!invalidVariableNames.isEmpty()) {\n throw new IllegalArgumentException(\n String.format(\n \"Illegal variable names: %s. Variable names must match the regex: %s\",\n String.join(\", \", invalidVariableNames), TEMPLATE_VALID_VARIABLE_NAME_REGEX));\n }\n }\n }", "title": "" }, { "docid": "ec9e1ec21090e23b3f9fe83d4341ba17", "score": "0.41185343", "text": "public boolean validateFamilyHistoryObservation_validateFamilyHistoryObservationRelatedSubjectCodeValueSet(\r\n\t\t\tFamilyHistoryObservation familyHistoryObservation, DiagnosticChain diagnostics,\r\n\t\t\tMap<Object, Object> context) {\r\n\t\treturn familyHistoryObservation.validateFamilyHistoryObservationRelatedSubjectCodeValueSet(\r\n\t\t\tdiagnostics, context);\r\n\t}", "title": "" }, { "docid": "2e9c8a724c193b07e8415b84d2692da7", "score": "0.40987995", "text": "public boolean validateFamilyHistoryObservation_validateFamilyHistoryObservationHasRelatedSubjectCode(\r\n\t\t\tFamilyHistoryObservation familyHistoryObservation, DiagnosticChain diagnostics,\r\n\t\t\tMap<Object, Object> context) {\r\n\t\treturn familyHistoryObservation.validateFamilyHistoryObservationHasRelatedSubjectCode(diagnostics, context);\r\n\t}", "title": "" }, { "docid": "71730cf439488a717d5b65fa67b3b3ab", "score": "0.40860063", "text": "public boolean validatePatientAwareness_validatePatientAwarenessTemplateId(PatientAwareness patientAwareness,\r\n\t\t\tDiagnosticChain diagnostics, Map<Object, Object> context) {\r\n\t\treturn patientAwareness.validatePatientAwarenessTemplateId(diagnostics, context);\r\n\t}", "title": "" }, { "docid": "7629da05d932c0e61d91f1dfa8d30dfb", "score": "0.40807614", "text": "@Override\n public void validate(TimestampValidationCallback.Request request)\n throws TimestampValidationCallback.TimestampValidationException {\n TimestampValidationCallback.UTCTimestampRequest utcTimestampRequest =\n (TimestampValidationCallback.UTCTimestampRequest) request;\n\n\n SimpleDateFormat calendarFormatter1 = new SimpleDateFormat(\"yyyy-MM-dd'T'HH:mm:ss'Z'\");\n SimpleDateFormat calendarFormatter2 = new SimpleDateFormat(\"yyyy-MM-dd'T'HH:mm:ss'.'sss'Z'\");\n Date created = null;\n Date expired = null;\n\n try {\n try {\n created = calendarFormatter1.parse(utcTimestampRequest.getCreated());\n if ( utcTimestampRequest.getExpired() != null )\n expired = calendarFormatter1.parse(utcTimestampRequest.getExpired());\n } catch (java.text.ParseException pe) {\n created = calendarFormatter2.parse(utcTimestampRequest.getCreated());\n if ( utcTimestampRequest.getExpired() != null )\n expired = calendarFormatter2.parse(utcTimestampRequest.getExpired());\n }\n } catch ( java.text.ParseException pe ) {\n throw new TimestampValidationCallback.TimestampValidationException(pe.getMessage());\n }\n\n long maxClockSkew = utcTimestampRequest.getMaxClockSkew();\n long timestampFreshnessLimit = utcTimestampRequest.getTimestampFreshnessLimit();\n\n // validate creation time\n validateCreationTime(created, maxClockSkew, timestampFreshnessLimit);\n\n // validate expiration time\n if ( expired != null )\n validateExpirationTime(expired, maxClockSkew, timestampFreshnessLimit);\n }", "title": "" }, { "docid": "ab90c9d277d56ab9db1ecf8677e799bd", "score": "0.4080042", "text": "public boolean validateTableBaseProperty_historyIndexSpace(TableBaseProperty tableBaseProperty, DiagnosticChain diagnostics, Map<Object, Object> context) {\n\t\t// TODO implement the constraint\n\t\t// -> specify the condition that violates the constraint\n\t\t// -> verify the diagnostic details, including severity, code, and message\n\t\t// Ensure that you remove @generated or mark it @generated NOT\n\t\tif (false) {\n\t\t\tif (diagnostics != null) {\n\t\t\t\tdiagnostics.add\n\t\t\t\t\t(createDiagnostic\n\t\t\t\t\t\t(Diagnostic.ERROR,\n\t\t\t\t\t\t DIAGNOSTIC_SOURCE,\n\t\t\t\t\t\t 0,\n\t\t\t\t\t\t \"_UI_GenericConstraint_diagnostic\",\n\t\t\t\t\t\t new Object[] { \"historyIndexSpace\", getObjectLabel(tableBaseProperty, context) },\n\t\t\t\t\t\t new Object[] { tableBaseProperty },\n\t\t\t\t\t\t context));\n\t\t\t}\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}", "title": "" }, { "docid": "b6a9f4cecabba8617fdbbda0d06fa9fb", "score": "0.4072356", "text": "public boolean validateFamilyHistoryOrganizer_validateFamilyHistoryOrganizerHasComponent(\r\n\t\t\tFamilyHistoryOrganizer familyHistoryOrganizer, DiagnosticChain diagnostics, Map<Object, Object> context) {\r\n\t\treturn familyHistoryOrganizer.validateFamilyHistoryOrganizerHasComponent(diagnostics, context);\r\n\t}", "title": "" }, { "docid": "df630440f5a47b8c41d1d4f0a2149d43", "score": "0.40447736", "text": "public boolean validateTableBaseProperty_historySpace(TableBaseProperty tableBaseProperty, DiagnosticChain diagnostics, Map<Object, Object> context) {\n\t\t// TODO implement the constraint\n\t\t// -> specify the condition that violates the constraint\n\t\t// -> verify the diagnostic details, including severity, code, and message\n\t\t// Ensure that you remove @generated or mark it @generated NOT\n\t\tif (false) {\n\t\t\tif (diagnostics != null) {\n\t\t\t\tdiagnostics.add\n\t\t\t\t\t(createDiagnostic\n\t\t\t\t\t\t(Diagnostic.ERROR,\n\t\t\t\t\t\t DIAGNOSTIC_SOURCE,\n\t\t\t\t\t\t 0,\n\t\t\t\t\t\t \"_UI_GenericConstraint_diagnostic\",\n\t\t\t\t\t\t new Object[] { \"historySpace\", getObjectLabel(tableBaseProperty, context) },\n\t\t\t\t\t\t new Object[] { tableBaseProperty },\n\t\t\t\t\t\t context));\n\t\t\t}\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}", "title": "" }, { "docid": "88df168e06bb57c13c6b7cca75779ceb", "score": "0.40399203", "text": "public boolean validateFamilyHistoryObservation_validateFamilyHistoryObservationMoodCode(\r\n\t\t\tFamilyHistoryObservation familyHistoryObservation, DiagnosticChain diagnostics,\r\n\t\t\tMap<Object, Object> context) {\r\n\t\treturn familyHistoryObservation.validateFamilyHistoryObservationMoodCode(diagnostics, context);\r\n\t}", "title": "" }, { "docid": "d722ae36f09198bb99fdf03ac3a4cf02", "score": "0.4002947", "text": "public void validate() throws org.apache.thrift.TException {\n if (templateFile != null) {\n templateFile.validate();\n }\n }", "title": "" }, { "docid": "d722ae36f09198bb99fdf03ac3a4cf02", "score": "0.4002947", "text": "public void validate() throws org.apache.thrift.TException {\n if (templateFile != null) {\n templateFile.validate();\n }\n }", "title": "" }, { "docid": "8b74536915ac3e1ca9458c1ec371de60", "score": "0.39921224", "text": "public void validateIdentifier(SqlIdentifier id, Scope scope)\n {\n final SqlIdentifier fqId = scope.fullyQualify(id);\n Util.discard(fqId);\n }", "title": "" }, { "docid": "921f1086c437687653356c50374e2bc4", "score": "0.39795598", "text": "public boolean validateProblemSection_validateProblemSectionTemplateId(ProblemSection problemSection,\r\n\t\t\tDiagnosticChain diagnostics, Map<Object, Object> context) {\r\n\t\treturn problemSection.validateProblemSectionTemplateId(diagnostics, context);\r\n\t}", "title": "" }, { "docid": "e1948d4705bc071430139d6d874f920c", "score": "0.3925468", "text": "public boolean validateTableBaseProperty_history(TableBaseProperty tableBaseProperty, DiagnosticChain diagnostics, Map<Object, Object> context) {\n\t\t// TODO implement the constraint\n\t\t// -> specify the condition that violates the constraint\n\t\t// -> verify the diagnostic details, including severity, code, and message\n\t\t// Ensure that you remove @generated or mark it @generated NOT\n\t\tif (false) {\n\t\t\tif (diagnostics != null) {\n\t\t\t\tdiagnostics.add\n\t\t\t\t\t(createDiagnostic\n\t\t\t\t\t\t(Diagnostic.ERROR,\n\t\t\t\t\t\t DIAGNOSTIC_SOURCE,\n\t\t\t\t\t\t 0,\n\t\t\t\t\t\t \"_UI_GenericConstraint_diagnostic\",\n\t\t\t\t\t\t new Object[] { \"history\", getObjectLabel(tableBaseProperty, context) },\n\t\t\t\t\t\t new Object[] { tableBaseProperty },\n\t\t\t\t\t\t context));\n\t\t\t}\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}", "title": "" }, { "docid": "98185c08059c0c1f9a3e4d545ebdfa76", "score": "0.3922181", "text": "public void setFamilyId(java.lang.CharSequence value) {\n this.familyId = value;\n }", "title": "" }, { "docid": "e9065ddf4dcd9ea9f33880a7e7e5e3d1", "score": "0.39030126", "text": "public boolean validateFamilyHistorySection_validateFamilyHistorySectionText(\r\n\t\t\tFamilyHistorySection familyHistorySection, DiagnosticChain diagnostics, Map<Object, Object> context) {\r\n\t\treturn familyHistorySection.validateFamilyHistorySectionText(diagnostics, context);\r\n\t}", "title": "" }, { "docid": "3833cf51d0185c3839a6310c476bcd59", "score": "0.38974446", "text": "public boolean validateProblemAct_validateProblemActTemplateId(ProblemAct problemAct, DiagnosticChain diagnostics,\r\n\t\t\tMap<Object, Object> context) {\r\n\t\treturn problemAct.validateProblemActTemplateId(diagnostics, context);\r\n\t}", "title": "" }, { "docid": "12fad1bd3a34815f6b3a5df1d4d258e1", "score": "0.38960895", "text": "public void validateForToggleDeletedFlag(ValidationError validationError) {\n\t}", "title": "" }, { "docid": "dd6113831e59af82724c03b1fe3f7d64", "score": "0.3893662", "text": "public boolean validateFamilyHistoryObservation_validateFamilyHistoryObservationHasGenderCode(\r\n\t\t\tFamilyHistoryObservation familyHistoryObservation, DiagnosticChain diagnostics,\r\n\t\t\tMap<Object, Object> context) {\r\n\t\treturn familyHistoryObservation.validateFamilyHistoryObservationHasGenderCode(diagnostics, context);\r\n\t}", "title": "" }, { "docid": "c6115e585c089a18303c233521a15519", "score": "0.3888753", "text": "public boolean validateSocialHistorySection_validateSocialHistorySectionSocialHistoryObservation(\r\n\t\t\tSocialHistorySection socialHistorySection, DiagnosticChain diagnostics, Map<Object, Object> context) {\r\n\t\treturn socialHistorySection.validateSocialHistorySectionSocialHistoryObservation(diagnostics, context);\r\n\t}", "title": "" }, { "docid": "6a21c7c492ade8583436063a66ab0306", "score": "0.38718766", "text": "public static void validate(OvalDefinitions defs, File template) throws SchematronValidationException {\r\n\ttry {\r\n\t JAXBContext ctx = JAXBContext.newInstance(JOVALSystem.getOvalProperty(JOVALSystem.OVAL_PROP_DEFINITIONS));\r\n\t validate(new JAXBSource(ctx, defs), template);\r\n\t} catch (JAXBException e) {\r\n\t throw new SchematronValidationException(e);\r\n\t}\r\n }", "title": "" }, { "docid": "09946aa02a9650f6ef53dd68094c71ee", "score": "0.38618863", "text": "public static boolean isNewEpochCreated(final byte[] historyTable) {\n HistoryRecord latestHistoryRecord = HistoryRecord.readLatestRecord(historyTable, false).get();\n return latestHistoryRecord.isPartial();\n }", "title": "" }, { "docid": "23be1abe4c2940bc182e0e279268f9ba", "score": "0.38504577", "text": "public boolean validateContinuityOfCareDocument_validateContinuityOfCareDocumentNoTemplateIdExtension(\r\n\t\t\tContinuityOfCareDocument continuityOfCareDocument, DiagnosticChain diagnostics,\r\n\t\t\tMap<Object, Object> context) {\r\n\t\treturn continuityOfCareDocument.validateContinuityOfCareDocumentNoTemplateIdExtension(diagnostics, context);\r\n\t}", "title": "" }, { "docid": "89fa6574ee6e0f88f61aa5e6783d2f61", "score": "0.38420945", "text": "public boolean validateFamilyHistoryOrganizer_validateFamilyHistoryOrganizerStatusCode(\r\n\t\t\tFamilyHistoryOrganizer familyHistoryOrganizer, DiagnosticChain diagnostics, Map<Object, Object> context) {\r\n\t\treturn familyHistoryOrganizer.validateFamilyHistoryOrganizerStatusCode(diagnostics, context);\r\n\t}", "title": "" }, { "docid": "1d5370fea625e17f48d19fa8b6f98652", "score": "0.3841526", "text": "public boolean validateAlertObservation_validateAlertObservationPlayingEntityRequired(\r\n\t\t\tAlertObservation alertObservation, DiagnosticChain diagnostics, Map<Object, Object> context) {\r\n\t\treturn alertObservation.validateAlertObservationPlayingEntityRequired(diagnostics, context);\r\n\t}", "title": "" }, { "docid": "f03ca813e5cb89e56d59cae4b1d5c5e6", "score": "0.38313577", "text": "public boolean validateSocialHistoryObservation_validateSocialHistoryObservationClassCode(\r\n\t\t\tSocialHistoryObservation socialHistoryObservation, DiagnosticChain diagnostics,\r\n\t\t\tMap<Object, Object> context) {\r\n\t\treturn socialHistoryObservation.validateSocialHistoryObservationClassCode(diagnostics, context);\r\n\t}", "title": "" }, { "docid": "2fdde7ba7082f98ba3592565239d65be", "score": "0.3822676", "text": "public void validateCreationTime(\n Date created,\n long maxClockSkew,\n long timestampFreshnessLimit)\n throws TimestampValidationCallback.TimestampValidationException {\n Date current = getFreshnessAndSkewAdjustedDate(maxClockSkew, timestampFreshnessLimit);\n\n if (created.before(current)) {\n throw new TimestampValidationCallback.TimestampValidationException(\n \"The creation time is older than \" +\n \" currenttime - timestamp-freshness-limit - max-clock-skew\");\n }\n\n Date currentTime =\n getGMTDateWithSkewAdjusted(new GregorianCalendar(), maxClockSkew, true);\n if (currentTime.before(created)) {\n throw new TimestampValidationCallback.TimestampValidationException(\n \"The creation time is ahead of the current time.\");\n }\n }", "title": "" }, { "docid": "8c8b5e58dc054fbb682f43d29d8fa58b", "score": "0.38220274", "text": "String getScopeDefinitionId();", "title": "" }, { "docid": "80f6edcb200c659826b5bf0e7a0f9b4a", "score": "0.38201427", "text": "public boolean validateStockTSRelationProperty_hisSpace(StockTSRelationProperty stockTSRelationProperty, DiagnosticChain diagnostics, Map<Object, Object> context) {\n\t\t// TODO implement the constraint\n\t\t// -> specify the condition that violates the constraint\n\t\t// -> verify the diagnostic details, including severity, code, and message\n\t\t// Ensure that you remove @generated or mark it @generated NOT\n\t\tif (false) {\n\t\t\tif (diagnostics != null) {\n\t\t\t\tdiagnostics.add\n\t\t\t\t\t(createDiagnostic\n\t\t\t\t\t\t(Diagnostic.ERROR,\n\t\t\t\t\t\t DIAGNOSTIC_SOURCE,\n\t\t\t\t\t\t 0,\n\t\t\t\t\t\t \"_UI_GenericConstraint_diagnostic\",\n\t\t\t\t\t\t new Object[] { \"hisSpace\", getObjectLabel(stockTSRelationProperty, context) },\n\t\t\t\t\t\t new Object[] { stockTSRelationProperty },\n\t\t\t\t\t\t context));\n\t\t\t}\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}", "title": "" }, { "docid": "ec7616ad6bcfcc8cffddc0a36a07dec3", "score": "0.38190842", "text": "public boolean validateStockTSRelationProperty_hisIndexSpace(StockTSRelationProperty stockTSRelationProperty, DiagnosticChain diagnostics, Map<Object, Object> context) {\n\t\t// TODO implement the constraint\n\t\t// -> specify the condition that violates the constraint\n\t\t// -> verify the diagnostic details, including severity, code, and message\n\t\t// Ensure that you remove @generated or mark it @generated NOT\n\t\tif (false) {\n\t\t\tif (diagnostics != null) {\n\t\t\t\tdiagnostics.add\n\t\t\t\t\t(createDiagnostic\n\t\t\t\t\t\t(Diagnostic.ERROR,\n\t\t\t\t\t\t DIAGNOSTIC_SOURCE,\n\t\t\t\t\t\t 0,\n\t\t\t\t\t\t \"_UI_GenericConstraint_diagnostic\",\n\t\t\t\t\t\t new Object[] { \"hisIndexSpace\", getObjectLabel(stockTSRelationProperty, context) },\n\t\t\t\t\t\t new Object[] { stockTSRelationProperty },\n\t\t\t\t\t\t context));\n\t\t\t}\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}", "title": "" }, { "docid": "079047e409afb73a288769b8683c421a", "score": "0.381695", "text": "@Override\r\n\tpublic String validate(CreateBookRequest<?> entity) throws ValidationException {\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "42c94f6b9bb716739cd29cf7fb467437", "score": "0.38128197", "text": "public static void validate(OvalSystemCharacteristics sc, File template) throws SchematronValidationException {\r\n\ttry {\r\n\t JAXBContext ctx = JAXBContext.newInstance(JOVALSystem.getOvalProperty(JOVALSystem.OVAL_PROP_SYSTEMCHARACTERISTICS));\r\n\t validate(new JAXBSource(ctx, sc), template);\r\n\t} catch (JAXBException e) {\r\n\t throw new SchematronValidationException(e);\r\n\t}\r\n }", "title": "" }, { "docid": "4e87eb8fc7cf626a77a1f12e0c759ffb", "score": "0.3802695", "text": "protected void checkFamily(String family) {\n if (null == getFamily() && null == family) {\n throw new IllegalArgumentException(\n \"Output family was not specified and the output did not specify a family\");\n }\n\n if (null != getFamily() && !getFamily().equals(family)) {\n throw new IllegalArgumentException(\n \"Output family \" + family + \" does not match the specified family \" + getFamily());\n }\n }", "title": "" }, { "docid": "7ecb37ddfc055583b8e7a95cfa7d311b", "score": "0.38003963", "text": "public void validate() throws org.apache.thrift.TException {\n if (!isSetId()) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'id' is unset! Struct:\" + toString());\n }\n\n // check for sub-struct validity\n }", "title": "" }, { "docid": "6bc314386afe613838b87a9b69cdd110", "score": "0.37871954", "text": "private void determineExistenceOfAgentViolations(LocalDate birthDate, LocalDate activationDate, int height, String identifier) {\n violations.clear();\n\n LocalDate earliestDate = LocalDate.parse(\"1900-01-01\");\n LocalDate latestDate = LocalDate.now().plusYears(10);\n if (birthDate.isBefore(earliestDate) || birthDate.isAfter(latestDate)) {\n violations.add(\"Agent birthdate must be between \" + earliestDate + \" and \" + latestDate + \".\");\n }\n\n if (activationDate.isBefore(birthDate)) {\n violations.add(\"Activation date cannot precede birthdate.\");\n }\n\n if ((height < 36) || (height > 96)) {\n violations.add(\"Agent height must be between 36 and 96 inches, inclusively.\");\n }\n\n List<Agent> listOfAllAgents = agentService.findAllAgents();\n boolean isIdUnique = true;\n for (Agent agent : listOfAllAgents) {\n if (agent.getIdentifier().equals(identifier)) {\n isIdUnique = false;\n }\n }\n if (isIdUnique == false) {\n violations.add(\"The identifier you entered is already taken. You must choose another.\");\n }\n\n }", "title": "" }, { "docid": "45549ad8763bd682b09f1f227718e686", "score": "0.3782619", "text": "private void validateFlowVariable(int variableToAddTo) {\n\t\tif(!isValidFlowVariable(variableToAddTo)){\n\t\t\tthrow new IllegalArgumentException(\"The flow variable to add the constraint to does not exist: \" + variableToAddTo);\n\t\t}\n\t}", "title": "" }, { "docid": "602a512ed8f19ab350ea80d4f3fb22e3", "score": "0.37821048", "text": "protected void sequence_ValidationCheckLocation(ISerializationContext context, ValidationCheckLocation semanticObject) {\r\n\t\tgenericSequencer.createSequence(context, semanticObject);\r\n\t}", "title": "" }, { "docid": "22f751f8c582e78145bf07e2a05a1410", "score": "0.3772133", "text": "public boolean validateSocialHistoryObservation_validateSocialHistoryObservationStatusCode(\r\n\t\t\tSocialHistoryObservation socialHistoryObservation, DiagnosticChain diagnostics,\r\n\t\t\tMap<Object, Object> context) {\r\n\t\treturn socialHistoryObservation.validateSocialHistoryObservationStatusCode(diagnostics, context);\r\n\t}", "title": "" }, { "docid": "937e8ff2ba262516c917064167302961", "score": "0.37699243", "text": "public boolean validatePatientInstruction_validatePatientInstructionTemplateId(\r\n\t\t\tPatientInstruction patientInstruction, DiagnosticChain diagnostics, Map<Object, Object> context) {\r\n\t\treturn patientInstruction.validatePatientInstructionTemplateId(diagnostics, context);\r\n\t}", "title": "" }, { "docid": "aa2612060503166808aac5b3d2df8870", "score": "0.37659192", "text": "public boolean validateEncountersSection_validateEncountersSectionTemplateId(EncountersSection encountersSection,\r\n\t\t\tDiagnosticChain diagnostics, Map<Object, Object> context) {\r\n\t\treturn encountersSection.validateEncountersSectionTemplateId(diagnostics, context);\r\n\t}", "title": "" }, { "docid": "37291e0c1c6aea0d4cac8c12b0953ba3", "score": "0.3758458", "text": "boolean hasRuleId();", "title": "" }, { "docid": "37291e0c1c6aea0d4cac8c12b0953ba3", "score": "0.3758458", "text": "boolean hasRuleId();", "title": "" }, { "docid": "37291e0c1c6aea0d4cac8c12b0953ba3", "score": "0.3758458", "text": "boolean hasRuleId();", "title": "" }, { "docid": "5a8102387cb75876b41a0072272dc235", "score": "0.37580484", "text": "private void validateDiffContentTypeTemplate(IPSGuid ctId, IPSGuid tpId,\n String ctxName, IPSLocationScheme scheme, boolean isExist)\n {\n if (scheme.getTemplateId().longValue() != tpId.longValue()\n || scheme.getContentTypeId().longValue() != ctId.longValue())\n return;\n \n if (isExist)\n {\n throw new PSConfigException(\"Failed to create Location Scheme \\\"\"\n + getName() + \"\\\" since the existing Location Scheme \\\"\"\n + scheme.getName()\n + \"\\\" has the same association of ContentType/Template (\\\"\"\n + getContentType() + \"\\\"/\\\"\" + getTemplate()\n + \"\\\") under Context \\\"\" + ctxName + \"\\\".\");\n }\n\n throw new PSConfigException(\"Failed to create Location Scheme \\\"\"\n + getName() + \"\\\" since another Location Scheme \\\"\"\n + scheme.getName()\n + \"\\\" has the same association of ContentType/Template (\\\"\"\n + getContentType() + \"\\\"/\\\"\" + getTemplate()\n + \"\\\") under Context \\\"\" + ctxName + \"\\\".\");\n \n }", "title": "" }, { "docid": "08a5674a1008115caf3b461f94ff90e5", "score": "0.37571865", "text": "public boolean validateVitalSignsSection_validateVitalSignsSectionTemplateId(VitalSignsSection vitalSignsSection,\r\n\t\t\tDiagnosticChain diagnostics, Map<Object, Object> context) {\r\n\t\treturn vitalSignsSection.validateVitalSignsSectionTemplateId(diagnostics, context);\r\n\t}", "title": "" }, { "docid": "30c35c295f7482050a53d59c76345e11", "score": "0.37523735", "text": "@RequestMapping(\"backlog\")\n public void validateBacklog(@Validated Backlog backlog, Errors errors) {\n errors.getAllErrors().forEach(e -> log.info(e.getCode()));\n }", "title": "" }, { "docid": "426f301eda366214a2a06ec2a226bc22", "score": "0.3746502", "text": "public boolean validateComment_validateCommentTemplateId(Comment comment, DiagnosticChain diagnostics,\r\n\t\t\tMap<Object, Object> context) {\r\n\t\treturn comment.validateCommentTemplateId(diagnostics, context);\r\n\t}", "title": "" } ]
728a7da507622f2fb84fb5f7a39167dc
Tests the sortArtist method for when some songs have the same artist, title, release year, and genre.
[ { "docid": "176d22b0e2f64d10cf42453794b42b30", "score": "0.8500156", "text": "public void testSortArtistSameArtistSameTitleSameYearSameGenre() {\n Song riseAbove2 = new Song(\"Rise Above\", \"Black Flag\", 1984, \"Punk\");\n list.add(riseAbove2);\n list.sortArtist();\n assertEquals(5, list.getLength());\n assertEquals(riseAbove, list.getEntry(0));\n assertEquals(riseAbove2, list.getEntry(1));\n assertEquals(familyIsFamily, list.getEntry(2));\n assertEquals(hereComesYourMan, list.getEntry(3));\n assertEquals(washer, list.getEntry(4));\n }", "title": "" } ]
[ { "docid": "f68738da2ed0db6035200802112410b2", "score": "0.8428697", "text": "public void testSortArtistSameArtistSameTitleSameYearDiffGenreNoSwitch() {\n Song riseAbove2 = new Song(\"Rise Above\", \"Black Flag\", 1981, \n \"Soul\");\n list.add(riseAbove2);\n list.sortArtist();\n assertEquals(5, list.getLength());\n assertEquals(riseAbove, list.getEntry(0));\n assertEquals(riseAbove2, list.getEntry(1));\n assertEquals(familyIsFamily, list.getEntry(2));\n assertEquals(hereComesYourMan, list.getEntry(3));\n assertEquals(washer, list.getEntry(4));\n }", "title": "" }, { "docid": "93aa2738052cb4964bc3859758c5285f", "score": "0.84149325", "text": "public void testSortArtistSameArtistSameTitleSameYearDiffGenreSwitch() {\n Song riseAbove2 = new Song(\"Rise Above\", \"Black Flag\", 1981, \n \"Alternative\");\n list.add(riseAbove2);\n list.sortArtist();\n assertEquals(5, list.getLength());\n assertEquals(riseAbove2, list.getEntry(0));\n assertEquals(riseAbove, list.getEntry(1));\n assertEquals(familyIsFamily, list.getEntry(2));\n assertEquals(hereComesYourMan, list.getEntry(3));\n assertEquals(washer, list.getEntry(4));\n }", "title": "" }, { "docid": "f0cdc1a320b10ef9e8108f1ef7875ce8", "score": "0.8066391", "text": "public void testSortArtistSameArtistSameTitleDiffYearNoSwitch() {\n Song riseAbove2 = new Song(\"Rise Above\", \"Black Flag\", 1987,\n \"Punk\");\n list.add(riseAbove2);\n list.sortArtist();\n assertEquals(5, list.getLength());\n assertEquals(riseAbove, list.getEntry(0));\n assertEquals(riseAbove2, list.getEntry(1));\n assertEquals(familyIsFamily, list.getEntry(2));\n assertEquals(hereComesYourMan, list.getEntry(3));\n assertEquals(washer, list.getEntry(4));\n }", "title": "" }, { "docid": "4f72325376c88128691d5468747aeee8", "score": "0.8050593", "text": "public void testSortArtistSameArtistSameTitleDiffYearSwitch() {\n Song riseAbove2 = new Song(\"Rise Above\", \"Black Flag\", 1980,\n \"Punk\");\n list.add(riseAbove2);\n list.sortArtist();\n assertEquals(5, list.getLength());\n assertEquals(riseAbove2, list.getEntry(0));\n assertEquals(riseAbove, list.getEntry(1));\n assertEquals(familyIsFamily, list.getEntry(2));\n assertEquals(hereComesYourMan, list.getEntry(3));\n assertEquals(washer, list.getEntry(4));\n }", "title": "" }, { "docid": "ded9d15feaac5096c5f0ad51c2a8402c", "score": "0.79920566", "text": "public void testSortArtistDiffArtist() {\n list.sortArtist();\n assertEquals(4, list.getLength());\n assertEquals(riseAbove, list.getEntry(0));\n assertEquals(familyIsFamily, list.getEntry(1));\n assertEquals(hereComesYourMan, list.getEntry(2));\n assertEquals(washer, list.getEntry(3));\n }", "title": "" }, { "docid": "ac413ecac58ae3b415ca5071a950a89c", "score": "0.79078406", "text": "public void testSortGenreSameGenreSameTitleSameArtistSameYear() {\n Song hereComesYourMan2 = new Song(\"Here Comes Your Man\", \"Pixies\",\n 1989, \"Alternative\");\n list.add(hereComesYourMan2);\n list.sortGenre();\n assertEquals(5, list.getLength());\n assertEquals(hereComesYourMan, list.getEntry(0));\n assertEquals(hereComesYourMan2, list.getEntry(1));\n assertEquals(familyIsFamily, list.getEntry(2));\n assertEquals(washer, list.getEntry(3));\n assertEquals(riseAbove, list.getEntry(4));\n }", "title": "" }, { "docid": "ba52ffbd69142259763611339ad516a3", "score": "0.7896614", "text": "public void testSortGenreSameGenreSameTitleSameArtistDiffYearNoSwitch() {\n Song hereComesYourMan2 = new Song(\"Here Comes Your Man\", \"Pixies\",\n 1999, \"Alternative\");\n list.add(hereComesYourMan2);\n list.sortGenre();\n assertEquals(5, list.getLength());\n assertEquals(hereComesYourMan, list.getEntry(0));\n assertEquals(hereComesYourMan2, list.getEntry(1));\n assertEquals(familyIsFamily, list.getEntry(2));\n assertEquals(washer, list.getEntry(3));\n assertEquals(riseAbove, list.getEntry(4));\n }", "title": "" }, { "docid": "4e3acda2b2a61ac36330a64dce2a278a", "score": "0.78958255", "text": "public void testSortArtistSameArtistDiffTitleNoSwitch() {\n Song tvParty = new Song(\"TV Party\", \"Black Flag\", 1984, \"Punk\");\n list.add(tvParty);\n list.sortArtist();\n assertEquals(5, list.getLength());\n assertEquals(riseAbove, list.getEntry(0));\n assertEquals(tvParty, list.getEntry(1));\n assertEquals(familyIsFamily, list.getEntry(2));\n assertEquals(hereComesYourMan, list.getEntry(3));\n assertEquals(washer, list.getEntry(4));\n }", "title": "" }, { "docid": "a05274766502c6cb4854f0d1c074b733", "score": "0.7889491", "text": "public void testSortGenreSameGenreSameTitleSameArtistDiffYearSwitch() {\n Song hereComesYourMan2 = new Song(\"Here Comes Your Man\", \"Pixies\",\n 1988, \"Alternative\");\n list.add(hereComesYourMan2);\n list.sortGenre();\n assertEquals(5, list.getLength());\n assertEquals(hereComesYourMan2, list.getEntry(0));\n assertEquals(hereComesYourMan, list.getEntry(1));\n assertEquals(familyIsFamily, list.getEntry(2));\n assertEquals(washer, list.getEntry(3));\n assertEquals(riseAbove, list.getEntry(4));\n }", "title": "" }, { "docid": "80173e1a5f0effa08024a87b9ae71a4f", "score": "0.78391325", "text": "public void testSortArtistSameArtistDiffTitleSwitch() {\n Song myWar = new Song(\"My War\", \"Black Flag\", 1984, \"Punk\");\n list.add(myWar);\n list.sortArtist();\n assertEquals(5, list.getLength());\n assertEquals(myWar, list.getEntry(0));\n assertEquals(riseAbove, list.getEntry(1));\n assertEquals(familyIsFamily, list.getEntry(2));\n assertEquals(hereComesYourMan, list.getEntry(3));\n assertEquals(washer, list.getEntry(4));\n }", "title": "" }, { "docid": "e835687ccea6e38d1e8d9f8b4195585d", "score": "0.7831252", "text": "public void testSortGenreSameGenreSameTitleDiffArtistSwitch() {\n Song hereComesYourMan2 = new Song(\"Here Comes Your Man\",\n \"Joseph Gordon-Levitt\", 2009, \"Alternative\");\n list.add(hereComesYourMan2);\n list.sortGenre();\n assertEquals(5, list.getLength());\n assertEquals(hereComesYourMan2, list.getEntry(0));\n assertEquals(hereComesYourMan, list.getEntry(1));\n assertEquals(familyIsFamily, list.getEntry(2));\n assertEquals(washer, list.getEntry(3));\n assertEquals(riseAbove, list.getEntry(4));\n }", "title": "" }, { "docid": "8d648b41bc9334074eff0bc73c3c37c2", "score": "0.7829827", "text": "public void testSortGenreSameGenreSameTitleDiffArtistNoSwitch() {\n Song hereComesYourMan2 = new Song(\"Here Comes Your Man\",\n \"Swans\", 2009, \"Alternative\");\n list.add(hereComesYourMan2);\n list.sortGenre();\n assertEquals(5, list.getLength());\n assertEquals(hereComesYourMan, list.getEntry(0));\n assertEquals(hereComesYourMan2, list.getEntry(1));\n assertEquals(familyIsFamily, list.getEntry(2));\n assertEquals(washer, list.getEntry(3));\n assertEquals(riseAbove, list.getEntry(4));\n }", "title": "" }, { "docid": "6f930ded8893e50f5798187162c49bfe", "score": "0.7746862", "text": "public void testSortTitleSameTitleSameArtistSameYearSameGenre() {\n Song familyIsFamily2 = new Song(\"Family Is Family\",\n \"Kacey Musgraves\", 2015, \"Country\");\n list.add(familyIsFamily2);\n list.sortTitle();\n assertEquals(5, list.getLength());\n assertEquals(familyIsFamily, list.getEntry(0));\n assertEquals(familyIsFamily2, list.getEntry(1));\n assertEquals(hereComesYourMan, list.getEntry(2));\n assertEquals(riseAbove, list.getEntry(3));\n assertEquals(washer, list.getEntry(4));\n }", "title": "" }, { "docid": "8f41535c0e4ebd410d1547ca67263dcf", "score": "0.7731297", "text": "public void testSortTitleSameTitleSameArtistSameYearDiffGenreSwitch() {\n Song familyIsFamily2 = new Song(\"Family Is Family\",\n \"Kacey Musgraves\", 2015, \"Alternative\");\n list.add(familyIsFamily2);\n list.sortTitle();\n assertEquals(5, list.getLength());\n assertEquals(familyIsFamily2, list.getEntry(0));\n assertEquals(familyIsFamily, list.getEntry(1));\n assertEquals(hereComesYourMan, list.getEntry(2));\n assertEquals(riseAbove, list.getEntry(3));\n assertEquals(washer, list.getEntry(4));\n }", "title": "" }, { "docid": "059a2429998865cb8a42645a616991ee", "score": "0.76948744", "text": "public void testSortYearSameYearSameTitleSameArtistSameGenre() {\n Song riseAbove2 = new Song(\"Rise Above\", \"Black Flag\", 1981,\n \"Punk\");\n list.add(riseAbove2);\n list.sortYear();\n assertEquals(5, list.getLength());\n assertEquals(riseAbove, list.getEntry(0));\n assertEquals(riseAbove2, list.getEntry(1));\n assertEquals(hereComesYourMan, list.getEntry(2));\n assertEquals(washer, list.getEntry(3));\n assertEquals(familyIsFamily, list.getEntry(4));\n }", "title": "" }, { "docid": "c57974ad9d423eabac3c254019420cd8", "score": "0.7686917", "text": "public void testSortTitleSameTitleSameArtistSameYearDiffGenreNoSwitch() {\n Song familyIsFamily2 = new Song(\"Family Is Family\",\n \"Kacey Musgraves\", 2015, \"R&B\");\n list.add(familyIsFamily2);\n list.sortTitle();\n assertEquals(5, list.getLength());\n assertEquals(familyIsFamily, list.getEntry(0));\n assertEquals(familyIsFamily2, list.getEntry(1));\n assertEquals(hereComesYourMan, list.getEntry(2));\n assertEquals(riseAbove, list.getEntry(3));\n assertEquals(washer, list.getEntry(4));\n }", "title": "" }, { "docid": "8e0e67e790a9b80c157034f535ffbdd4", "score": "0.76795876", "text": "public void testSortYearSameYearSameTitleSameArtistDiffGenreSwitch() {\n Song riseAbove2 = new Song(\"Rise Above\", \"Black Flag\",\n 1981, \"Pop\");\n list.add(riseAbove2);\n list.sortYear();\n assertEquals(5, list.getLength());\n assertEquals(riseAbove2, list.getEntry(0));\n assertEquals(riseAbove, list.getEntry(1));\n assertEquals(hereComesYourMan, list.getEntry(2));\n assertEquals(washer, list.getEntry(3));\n assertEquals(familyIsFamily, list.getEntry(4));\n }", "title": "" }, { "docid": "de392875988b6c8ee9b1a2b2f68396c0", "score": "0.7627571", "text": "public void testSortYearSameYearSameTitleSameArtistDiffGenreNoSwitch() {\n Song riseAbove2 = new Song(\"Rise Above\", \"Black Flag\",\n 1981, \"Soul\");\n list.add(riseAbove2);\n list.sortYear();\n assertEquals(5, list.getLength());\n assertEquals(riseAbove, list.getEntry(0));\n assertEquals(riseAbove2, list.getEntry(1));\n assertEquals(hereComesYourMan, list.getEntry(2));\n assertEquals(washer, list.getEntry(3));\n assertEquals(familyIsFamily, list.getEntry(4));\n }", "title": "" }, { "docid": "08cfb13b239509b34c64f49b539a9359", "score": "0.75687647", "text": "public void testSortArtistDiffArtistNoSort() {\n list.clear();\n list.add(riseAbove);\n list.add(familyIsFamily);\n list.add(hereComesYourMan);\n list.add(washer);\n list.sortArtist();\n assertEquals(4, list.getLength());\n assertEquals(riseAbove, list.getEntry(0));\n assertEquals(familyIsFamily, list.getEntry(1));\n assertEquals(hereComesYourMan, list.getEntry(2));\n assertEquals(washer, list.getEntry(3));\n }", "title": "" }, { "docid": "52b40ab126497a2d76c58fb1ab383af9", "score": "0.75021935", "text": "public void testSortTitleSameTitleSameArtistDiffYearNoSwitch() {\n Song familyIsFamily2 = new Song(\"Family Is Family\",\n \"Kacey Musgraves\", 2016, \"Country\");\n list.add(familyIsFamily2);\n list.sortTitle();\n assertEquals(5, list.getLength());\n assertEquals(familyIsFamily, list.getEntry(0));\n assertEquals(familyIsFamily2, list.getEntry(1));\n assertEquals(hereComesYourMan, list.getEntry(2));\n assertEquals(riseAbove, list.getEntry(3));\n assertEquals(washer, list.getEntry(4));\n }", "title": "" }, { "docid": "7753528e9bfa4608a44cba4ab098fe63", "score": "0.7488567", "text": "public void testSortYearSameYearSameTitleDiffArtistSwitch() {\n Song riseAbove2 = new Song(\"Rise Above\", \"Alck Flag\",\n 1981, \"Pop\");\n list.add(riseAbove2);\n list.sortYear();\n assertEquals(5, list.getLength());\n assertEquals(riseAbove2, list.getEntry(0));\n assertEquals(riseAbove, list.getEntry(1));\n assertEquals(hereComesYourMan, list.getEntry(2));\n assertEquals(washer, list.getEntry(3));\n assertEquals(familyIsFamily, list.getEntry(4));\n }", "title": "" }, { "docid": "3ca332c46465f1b77be26ac87003bdd7", "score": "0.74695957", "text": "public void testSortTitleSameTitleSameArtistDiffYearSwitch() {\n Song familyIsFamily2 = new Song(\"Family Is Family\",\n \"Kacey Musgraves\", 2014, \"Country\");\n list.add(familyIsFamily2);\n list.sortTitle();\n assertEquals(5, list.getLength());\n assertEquals(familyIsFamily2, list.getEntry(0));\n assertEquals(familyIsFamily, list.getEntry(1));\n assertEquals(hereComesYourMan, list.getEntry(2));\n assertEquals(riseAbove, list.getEntry(3));\n assertEquals(washer, list.getEntry(4));\n }", "title": "" }, { "docid": "56bbc2c59c5d0bca93f41f476091257f", "score": "0.74188364", "text": "public void testSortYearSameYearSameTitleDiffArtistNoSwitch() {\n Song riseAbove2 = new Song(\"Rise Above\", \"Calck Flag\",\n 1981, \"Pop\");\n list.add(riseAbove2);\n list.sortYear();\n assertEquals(5, list.getLength());\n assertEquals(riseAbove, list.getEntry(0));\n assertEquals(riseAbove2, list.getEntry(1));\n assertEquals(hereComesYourMan, list.getEntry(2));\n assertEquals(washer, list.getEntry(3));\n assertEquals(familyIsFamily, list.getEntry(4));\n }", "title": "" }, { "docid": "58bd8d6c4438725390f52582020ee9d6", "score": "0.74143845", "text": "public void testSortTitleSameTitleDiffArtistNoSwitch() {\n Song familyIsFamily2 = new Song(\"Family Is Family\",\n \"Racey Musgraves\", 2015, \"Country\");\n list.add(familyIsFamily2);\n list.sortTitle();\n assertEquals(5, list.getLength());\n assertEquals(familyIsFamily, list.getEntry(0));\n assertEquals(familyIsFamily2, list.getEntry(1));\n assertEquals(hereComesYourMan, list.getEntry(2));\n assertEquals(riseAbove, list.getEntry(3));\n assertEquals(washer, list.getEntry(4));\n }", "title": "" }, { "docid": "ba9bb7a5e1edb68c784c10f0d305e248", "score": "0.73342323", "text": "public void testSortTitleSameTitleDiffArtistSwitch() {\n Song familyIsFamily2 = new Song(\"Family Is Family\",\n \"Dacey Musgraves\", 2015, \"Country\");\n list.add(familyIsFamily2);\n list.sortTitle();\n assertEquals(5, list.getLength());\n assertEquals(familyIsFamily2, list.getEntry(0));\n assertEquals(familyIsFamily, list.getEntry(1));\n assertEquals(hereComesYourMan, list.getEntry(2));\n assertEquals(riseAbove, list.getEntry(3));\n assertEquals(washer, list.getEntry(4));\n }", "title": "" }, { "docid": "c1b4f194540e17ce74f672aafbe3da1e", "score": "0.724162", "text": "public void testSortGenreSameGenreDiffTitleNoSwitch() {\n Song polly = new Song(\"Polly\", \"Nirvana\", 1991,\n \"Alternative\");\n list.add(polly);\n list.sortGenre();\n assertEquals(5, list.getLength());\n assertEquals(hereComesYourMan, list.getEntry(0));\n assertEquals(polly, list.getEntry(1));\n assertEquals(familyIsFamily, list.getEntry(2));\n assertEquals(washer, list.getEntry(3));\n assertEquals(riseAbove, list.getEntry(4));\n }", "title": "" }, { "docid": "5b5389c83cba381bf59d66b168c41d04", "score": "0.7123977", "text": "public void testSortGenreDiffGenre() {\n list.sortGenre();\n assertEquals(4, list.getLength());\n assertEquals(hereComesYourMan, list.getEntry(0));\n assertEquals(familyIsFamily, list.getEntry(1));\n assertEquals(washer, list.getEntry(2));\n assertEquals(riseAbove, list.getEntry(3));\n }", "title": "" }, { "docid": "74a69fd03a3b94f9b3887ccaa5d67220", "score": "0.70674247", "text": "public void testSortGenreSameGenreDiffTitleSwitch() {\n Song comeAsYouAre = new Song(\"Come as You Are\", \"Nirvana\", 1991,\n \"Alternative\");\n list.add(comeAsYouAre);\n list.sortGenre();\n assertEquals(5, list.getLength());\n assertEquals(comeAsYouAre, list.getEntry(0));\n assertEquals(hereComesYourMan, list.getEntry(1));\n assertEquals(familyIsFamily, list.getEntry(2));\n assertEquals(washer, list.getEntry(3));\n assertEquals(riseAbove, list.getEntry(4));\n }", "title": "" }, { "docid": "a5691ec0a9f2a65827321886bda90168", "score": "0.7016344", "text": "@Test\r\n public void testCanBubbleSortTracksByArtist()\r\n {\r\n ISorter sorter = new BubbleSorter();\r\n List<MusicTrack> library = MusicTrack.generateMusicLibrary();\r\n Comparator<MusicTrack> comp = new ArtistComparator();\r\n OrderValidator<MusicTrack> validator = new ArtistOrderValidator();\r\n testComparatorSorter(library, sorter, comp, validator, 461);\r\n }", "title": "" }, { "docid": "f4336b7162a9e13d2a69ff1db07d319c", "score": "0.67442477", "text": "public void testSortGenreDiffGenreNoSort() {\n list.clear();\n list.add(hereComesYourMan);\n list.add(familyIsFamily);\n list.add(washer);\n list.add(riseAbove);\n list.sortGenre();\n assertEquals(4, list.getLength());\n assertEquals(hereComesYourMan, list.getEntry(0));\n assertEquals(familyIsFamily, list.getEntry(1));\n assertEquals(washer, list.getEntry(2));\n assertEquals(riseAbove, list.getEntry(3));\n }", "title": "" }, { "docid": "2714d1eba850b736bbacf5c909b9e508", "score": "0.6673671", "text": "public void testSortYearSameYearDiffTitleNoSwitch() {\n Song tvParty = new Song(\"TV Party\", \"Black Flag\", 1981,\n \"Punk\");\n list.add(tvParty);\n list.sortYear();\n assertEquals(5, list.getLength());\n assertEquals(riseAbove, list.getEntry(0));\n assertEquals(tvParty, list.getEntry(1));\n assertEquals(hereComesYourMan, list.getEntry(2));\n assertEquals(washer, list.getEntry(3));\n assertEquals(familyIsFamily, list.getEntry(4));\n }", "title": "" }, { "docid": "c15526c4355e2c0b6c2c9dc5697cf498", "score": "0.666354", "text": "public void SortArtist() {\n\n int pass, j;\n\n String hold;\n\n boolean switched = true;\n\n for (pass = 0; pass < artist.length - 1 && switched; pass++) {\n switched = false;\n\n for (j = 0; j < artist.length - pass - 1; j++) {\n if (artist[j].compareToIgnoreCase(artist[j + 1]) > 0) {\n switched = true;\n hold = artist[j];\n artist[j] = artist[j + 1];\n artist[j + 1] = hold;\n }\n }\n }\n }", "title": "" }, { "docid": "0f41dcc734b22cf809c02ea77e68e4af", "score": "0.6606052", "text": "public void testSortYearSameYearDiffTitleSwitch() {\n Song carelessWhisper = new Song(\"Careless Whisper\", \"George Michaels\",\n 1981, \"Pop\");\n list.add(carelessWhisper);\n list.sortYear();\n assertEquals(5, list.getLength());\n assertEquals(carelessWhisper, list.getEntry(0));\n assertEquals(riseAbove, list.getEntry(1));\n assertEquals(hereComesYourMan, list.getEntry(2));\n assertEquals(washer, list.getEntry(3));\n assertEquals(familyIsFamily, list.getEntry(4));\n }", "title": "" }, { "docid": "41164ee2cd9b9fa0d11038aba6c48fc0", "score": "0.6536763", "text": "public void artistSort() {\n\t\tsongLink previous = null;\n\t\tfor (songLink link1 = first; link1 != null; link1 = link1.next) { // Outer loop to get element to swap\n\t\t\tsongLink min = link1;\n\t\t\tfor (songLink link2 = link1; link2 != null; link2 = link2.next) { // Inner loop to find swapper element based on artist name\n\t\t\t\tint artistCompare = min.getArtist().compareTo(link2.getArtist());\n\t\t\t\tif (artistCompare > 0) {\n\t\t\t\t\tmin = link2; // new minimum is found\n\t\t\t\t}\n\t\t\t\telse if (artistCompare == 0) {\n\t\t\t\t\tif (min != link2) { // Two artists are the same\n\t\t\t\t\t\tint songCompare = min.getSongTitle().compareTo(link2.getSongTitle()); // Compare by song title if artist is the same\n\t\t\t\t\t\tif (songCompare > 0) min = link2; // New minimum is found\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tsongLink resultArray[] = Swap(min, link1, previous); // Call to Swap() method to swap two elements\n\t\t\tmin = resultArray[0]; // Load new minimum value\n\t\t\tlink1 = resultArray[1]; // Load new outer loop pointer value\n\t\t\tprevious = resultArray[2]; // Load new previous songLink element value\n\t\t}\n\t}", "title": "" }, { "docid": "f96efe880fce095bd5222ac30c66ef60", "score": "0.64018726", "text": "@Override\n\tpublic int compareTo(Song o) {\n\t\tint compareByArtist = Tools.convertNullString(this.getArtist()).compareToIgnoreCase(Tools.convertNullString(o.getArtist()));\n\t\tif(compareByArtist != 0)\n\t\t\treturn compareByArtist;\n\t\t\n\t\tint compareByYear = Integer.compare(Tools.TryParseInt(this.getYear(), -1), Tools.TryParseInt(o.getYear(), -1));\n\t\tif(compareByYear != 0)\n\t\t\treturn compareByYear;\n\t\t\n\t\tint compareByAlbum = Tools.convertNullString(this.getAlbum()).compareToIgnoreCase(Tools.convertNullString(o.getAlbum()));\n\t\tif(compareByAlbum != 0)\n\t\t\treturn compareByAlbum;\n\t\t\n\t\tint compareByTrackNumber = Integer.compare(Tools.TryParseInt(this.getTrackNumber(), -1), Tools.TryParseInt(o.getTrackNumber(), -1));\n\t\tif(compareByTrackNumber != 0)\n\t\t\treturn compareByTrackNumber;\n\t\t\n\t\treturn 0;\n\t}", "title": "" }, { "docid": "c33917ace63a79a3ff90cb431366d82e", "score": "0.62290704", "text": "private void updateArtists() {\n\t\tSet<Artist> artistset = new HashSet<>();\n\t\tfor(SongEntry song : library) \n\t\t{\n\t\t\tArtist artist = new Artist(song.getArtist(), 0, 0);\n\t\t\tartistset.add(artist);\n\t\t}\n\t\tartistset.add(new Artist(\"All Artists\", 0, 0));\n\t\tartists = FXCollections.observableArrayList(artistset);\n\t\tartists.sort(new Comparator<Artist>() {\n\n @Override\n public int compare(Artist arg0, Artist arg1)\n {\n if(arg0.getName().compareTo(arg1.getName()) > 0)\n return 1;\n else if(arg0.getName().compareTo(arg1.getName()) < 0)\n return -1;\n else\n return 0;\n }\n\t\t \n\t\t});\n\t}", "title": "" }, { "docid": "179fe9f6bfd6c8041db3b1283b396c2a", "score": "0.6223998", "text": "public static void main(String[] args) {\n Song s1 = new Song(\"Professor B\",\n \"Small Steps\",\n \"Write your programs in small steps\\n\" +\n \"small steps, small steps\\n\" +\n \"Write your programs in small steps\\n\" +\n \"Test and debug every step of the way.\\n\");\n\n Song s2 = new Song(\"Brian Dill\",\n \"Ode to Bobby B\",\n \"Professor Bobby B., can't you see,\\n\" +\n \"sometimes your data structures mystify me,\\n\" +\n \"the biggest algorithm pro since Donald Knuth,\\n\" +\n \"here he is, he's Robert Boothe!\\n\");\n\n Song s3 = new Song(\"Professor B\",\n \"Debugger Love\",\n \"I didn't used to like her\\n\" +\n \"I stuck with what I knew\\n\" +\n \"She was waiting there to help me,\\n\" +\n \"but I always thought print would do\\n\\n\" +\n \"Debugger love .........\\n\" +\n \"Now I'm so in love with you\\n\");\n Song s4 = new Song(\"Be\", \"123456\", \"1234567\");\n Song s5 = new Song(\"Beach Boys\", \"123456\", \"1234567\");\n Song s6 = new Song(\"Bfa\", \"123456\", \"1234567\");\n\n\n System.out.println(\"testing getArtist: \" + s1.getArtist());\n System.out.println(\"testing getTitle: \" + s1.getTitle());\n System.out.println(\"testing getLyrics:\\n\" + s1.getLyrics());\n\n System.out.println(\"testing toString:\\n\");\n System.out.println(\"Song 1: \" + s1);\n System.out.println(\"Song 2: \" + s2);\n System.out.println(\"Song 3: \" + s3);\n\n System.out.println(\"testing compareTo:\");\n System.out.println(\"Song1 vs Song2 = \" + s1.compareTo(s2));\n System.out.println(\"Song2 vs Song1 = \" + s2.compareTo(s1));\n System.out.println(\"Song1 vs Song3 = \" + s1.compareTo(s3));\n System.out.println(\"Song3 vs Song1 = \" + s3.compareTo(s1));\n System.out.println(\"Song1 vs Song1 = \" + s1.compareTo(s1));\n System.out.println(\"Song1 artist vs Song2 artist = \" + new CmpArtist().compare(s1, s2));\n System.out.println(\"Song2 artist vs Song1 artist = \" + new CmpArtist().compare(s2, s1));\n System.out.println(\"Song4 artist vs Song5 artist = \" + new CmpArtist().compare(s4, s5));\n System.out.println(\"Song4 artist vs Song5 artist = \" + new CmpArtist().compare(s4, s6));\n\n }", "title": "" }, { "docid": "a0a2af9254b8ac4488e7e96fca14af27", "score": "0.6183337", "text": "public void artistBubbleSort() {\n boolean madeSwap;\n album tempArray = head;\n int siz = this.getSize();\n //If collection > 0\n if (siz != 0) {\n //Loop through list of albums until no swap is made\n do {\n //Set trigger to false for swap\n madeSwap = false;\n //Loop through each album to check for a swap\n for (int i = 0; i < siz ; i = i + 1) {\n //If next album exists\n if (tempArray != null) {\n //If there is an item to swap it with\n if (tempArray.getNext() != null) {\n //Compare items to see if they are the right way round.\n //If not enter statement\n if (tempArray.getArtistName().compareTo(tempArray.getNext().getArtistName()) > 0) {\n //Swap items\n swap(tempArray);\n madeSwap = true;\n } else if ((tempArray.getArtistName().compareTo(tempArray.getNext().getArtistName()) == 0) && (tempArray.getArtistName().compareTo(tempArray.getNext().getArtistName()) > 0)) {\n //Swap items\n swap(tempArray);\n madeSwap = true;\n }\n }\n }\n //Set the current head to the next item, unless this is last item\n if (tempArray.getNext() != null) {\n tempArray = tempArray.getNext();\n } else {\n tempArray = head;\n }\n }\n //Following loop, reset head of list to start.\n tempArray = resetHead(tempArray);\n\n } while (madeSwap);\n }\n //Reset head to temp\n this.head = tempArray;\n }", "title": "" }, { "docid": "84769f7494c24b9e614b5706d9ef7fe2", "score": "0.60507697", "text": "private void showAllSongsSortedByGenre() throws IOException, ClassNotFoundException { //case 9\n System.out.println((String) input.readObject());\n output.writeObject(this.scan.nextLine()); /* Album title entered by the user */\n if((boolean) input.readObject()) {\n System.out.println((String) input.readObject());\n } else {\n LinkedList<Song> songs = (LinkedList<Song>) input.readObject();\n System.out.println(\"---\"+songs.get(0).getGenre()+\"---\\n\");\n for(int i=0;i<songs.size();i++) {\n System.out.println(i+\"- \"+songs.get(i)+\"\\n\");\n if(i<songs.size()-1) {\n if(songs.get(i).getGenre()!=songs.get(i+1).getGenre()) {\n System.out.println(\"---\"+songs.get(i+1).getGenre()+\"---\\n\");\n }\n }\n }\n musicPlayingOrInformation(songs);\n }\n }", "title": "" }, { "docid": "ad0883acbfe80e9ba34cebec87312fbb", "score": "0.60484076", "text": "public void testSortTitleDiffTitle() {\n list.sortTitle();\n assertEquals(4, list.getLength());\n assertEquals(familyIsFamily, list.getEntry(0));\n assertEquals(hereComesYourMan, list.getEntry(1));\n assertEquals(riseAbove, list.getEntry(2));\n assertEquals(washer, list.getEntry(3));\n }", "title": "" }, { "docid": "aa954151169da13895472856db1a583b", "score": "0.59365785", "text": "public void duplicateArtist() {\n\n boolean isDuplicate = false;\n int count = 0;\n\n populateArtist();\n SortArtist();\n\n for (int i = 0; i < artist.length - 1; i++) {\n\n if (artist[i].equalsIgnoreCase(artist[i + 1])) {\n isDuplicate = true;\n } else {\n isDuplicate = false;\n nonRepeatArtist[count][0] = Integer.toString(count);\n nonRepeatArtist[count][1] = artist[i];\n count++;\n }\n\n }\n\n }", "title": "" }, { "docid": "fd654adf81300be3a812204316a3c9f6", "score": "0.593214", "text": "@Override\n\tpublic int compareTo(Song other) {\n\t\tif(other == null || other.title.isEmpty() || this.title == null || other.artist.isEmpty() || this.artist == null) {\n\t\t\treturn -1;\n\t\t}\n\t\tif(this.title.equals(other.title)){\n\t\t\treturn this.artist.compareTo(other.artist);\n\t\t}\n\t\treturn this.title.compareTo(other.title);\n\t}", "title": "" }, { "docid": "12f9f06081c00ffa9f0b8ef4e96afa69", "score": "0.5919483", "text": "private void listAllArtistOrderedByName() throws IOException {\n int index = chooseLibrary(false);\n if (index != -1) {\n sortAndList(index);\n } else {\n exitOutput();\n }\n }", "title": "" }, { "docid": "1bf9c54a0f3fede4f1f0a87096b74d89", "score": "0.5901721", "text": "public boolean validateOrder(List<MusicTrack> list)\r\n {\n for(int i = 0; i < list.size()-1; i++)\r\n {\r\n MusicTrack a = list.get(i);\r\n MusicTrack b = list.get(i+1);\r\n // fail if there is a lower artist above a higher\r\n if(a.getArtistName().compareTo(b.getArtistName()) > 0) return false;\r\n // if the artists are also not equal, continue, as this pair is fine.\r\n if(a.getArtistName().compareTo(b.getArtistName()) < 0) continue;\r\n // repeat for ablum and track number.\r\n if(a.getAlbumName().compareTo(b.getAlbumName()) > 0) return false;\r\n if(a.getAlbumName().compareTo(b.getAlbumName()) < 0) continue;\r\n if(a.getTrackNumber() > b.getTrackNumber()) return false;\r\n }\r\n // if no pairs failed us, we must be properly sorted.\r\n return true;\r\n }", "title": "" }, { "docid": "d0b960305876c12208e3eb447568e4a2", "score": "0.5901593", "text": "@Override\n public int compareTo(@NonNull Song song2) {\n\n int retVal = this.artist.compareToIgnoreCase(song2.artist);\n\n if (retVal != 0) {\n return retVal;\n } else {\n return this.title.compareToIgnoreCase(song2.title);\n }\n }", "title": "" }, { "docid": "2758b8b3a11b91841cc8b96cb0bdc0e3", "score": "0.58616394", "text": "private ArrayList<SongHolder> updateArtistLists() {\n\n\t\tArrayList<SongHolder> filteringThroughArtists = new ArrayList<SongHolder>();\n\n\t\tString[] mProjection = { MediaStore.Audio.Media._ID,\n\t\t\t\tMediaStore.Audio.Media.ARTIST, MediaStore.Audio.Media.TITLE,\n\t\t\t\tMediaStore.Audio.Media.ALBUM, MediaStore.Audio.Media.DATA,\n\t\t\t\tMediaStore.Audio.Media.ALBUM_KEY,\n\t\t\t\tMediaStore.Audio.Media.DURATION };\n\n\t\tmCursor = getActivity().getContentResolver().query(\n\t\t\t\tMediaStore.Audio.Media.EXTERNAL_CONTENT_URI, mProjection, null,\n\t\t\t\tnull, MediaStore.Audio.Media.ARTIST);\n\n\t\t// Store our Cursor\n\t\tmCursor.moveToFirst();\n\t\twhile (mCursor.moveToNext()) {\n\t\t\tSongHolder s = new SongHolder();\n\t\t\ts.setAlbum(mCursor.getString(mCursor\n\t\t\t\t\t.getColumnIndex(MediaStore.Audio.Media.ALBUM)));\n\t\t\ts.setArtist(mCursor.getString(mCursor\n\t\t\t\t\t.getColumnIndex(MediaStore.Audio.Media.ARTIST)));\n\t\t\ts.setData(mCursor.getString(mCursor\n\t\t\t\t\t.getColumnIndex(MediaStore.Audio.Media.DATA)));\n\t\t\ts.setId(mCursor.getString(mCursor\n\t\t\t\t\t.getColumnIndex(MediaStore.Audio.Media._ID)));\n\t\t\ts.setTitle(mCursor.getString(mCursor\n\t\t\t\t\t.getColumnIndex(MediaStore.Audio.Media.TITLE)));\n\t\t\ts.setAlbumId(mCursor.getString(mCursor\n\t\t\t\t\t.getColumnIndex(MediaStore.Audio.Media.ALBUM_KEY)));\n\t\t\ts.setDuration(mCursor.getLong(mCursor\n\t\t\t\t\t.getColumnIndexOrThrow(MediaStore.Audio.Media.DURATION)));\n\t\t\tfilteringThroughArtists.add(s);\n\t\t}\n\t\tmCursor.close();\n\n\t\tArrayList<SongHolder> theChosenArtist = new ArrayList<SongHolder>();\n\n\t\tfor (int i = 0; i < filteringThroughArtists.size(); i++) {\n\t\t\tif (filteringThroughArtists.get(i).getArtist().equals(THE_ARTIST)) {\n\t\t\t\ttheChosenArtist.add(filteringThroughArtists.get(i));\n\t\t\t}\n\t\t}\n\n\t\treturn theChosenArtist;\n\t}", "title": "" }, { "docid": "91c01ea174ee388364390600df051c51", "score": "0.5858237", "text": "@Test\n\tpublic void sortByNameTest1(){\n\t\tSong s4 = new Song(\"OneD\", \"A Day\", 2, 20);\n\t\tpl1.addSong(s4);\n\t\tpl1.sortByName();\n\t\tassertEquals(pl1.getPlayable(0), s4);\n\t}", "title": "" }, { "docid": "ffbb307bf3aca1c864df04562a033358", "score": "0.58188754", "text": "@Test\n\tpublic void testAuthorOrder() {\n\t\tLibraryGeneric<String> library = new LibraryGeneric<String>();\n\t\tlibrary.add(9780374292799L, \"Thomas L. Friedman\", \"The World is Flat\");\n\t\tlibrary.add(9780330351690L, \"Jon Krakauer\", \"Into the Wild\");\n\t\tlibrary.add(9780446580342L, \"David Baldacci\", \"Simple Genius\");\n\t\tlibrary.add(9781843193319L, \"Alan Burt Akers\", \"Transit to Scorpio\");\n\t\tlibrary.add(9781843192954L, \"Dennis Radha-Rose\",\n\t\t\t\t\"The Anxiety Relief Program\");\n\t\tlibrary.add(9781843192701L, \"Moyra Caldecott\", \"The Lily and the Bull\");\n\t\tlibrary.add(9781843192039L, \"William Fitzmaurice\",\n\t\t\t\t\"Operation: Sergeant York\");\n\t\tlibrary.add(9781843192022L, \"Roger Taylor\", \"Whistler\");\n\n\t\tArrayList<LibraryBookGeneric<String>> testAuthorOrder = library\n\t\t\t\t.getOrderedByAuthor();\n\n\t\tassertEquals(\"Alan Burt Akers\", testAuthorOrder.get(0).getAuthor());\n\t\tassertEquals(\"William Fitzmaurice\",\n\t\t\t\ttestAuthorOrder.get(testAuthorOrder.size() - 1).getAuthor());\n\t}", "title": "" }, { "docid": "a63ab07cffcfc9a18b2054c88963c354", "score": "0.57706237", "text": "@Override\r\n\tpublic int compare(SongsList arg0, SongsList arg1) {\r\n\t\t\r\n\t\treturn arg0.getGenre().compareTo(arg1.getGenre());\r\n\t}", "title": "" }, { "docid": "9401c2dc9d26a8e1a87e73cd6c5ece67", "score": "0.57618815", "text": "public void testSortTitleDiffTitleNoSort() {\n list.clear();\n list.add(familyIsFamily);\n list.add(hereComesYourMan);\n list.add(riseAbove);\n list.add(washer);\n list.sortTitle();\n assertEquals(4, list.getLength());\n assertEquals(familyIsFamily, list.getEntry(0));\n assertEquals(hereComesYourMan, list.getEntry(1));\n assertEquals(riseAbove, list.getEntry(2));\n assertEquals(washer, list.getEntry(3));\n }", "title": "" }, { "docid": "1747354bf74929aebe87868331ce268b", "score": "0.56472266", "text": "public void testSortYearDiffYear() {\n list.sortYear();\n assertEquals(4, list.getLength());\n assertEquals(riseAbove, list.getEntry(0));\n assertEquals(hereComesYourMan, list.getEntry(1));\n assertEquals(washer, list.getEntry(2));\n assertEquals(familyIsFamily, list.getEntry(3));\n }", "title": "" }, { "docid": "c67ba81a61850222c834777ad02135e6", "score": "0.5610569", "text": "public TreeSet<Song> getSongsByArtist(String artist) {\n\t\t//TODO: complete method\n\t\treturn null;\n\t}", "title": "" }, { "docid": "297218cd04373e3611d302e4d1850af4", "score": "0.55438596", "text": "@Test\n\tpublic void sortByTimeTest1(){\n\t\tSong s4 = new Song(\"OneD\", \"A Day\", 2, 20);\n\t\tpl1.addSong(s4);\n\t\tpl1.addSong(s3);\n\t\tpl1.sortByTime();\n\t\tassertEquals(pl1.getPlayable(2), s1);\n\t}", "title": "" }, { "docid": "b09590b70113260a7660aecd9abf9ed2", "score": "0.5542636", "text": "public static void main(String[] args) {\n ArrayList<MusicPlayer> path = new ArrayList<>();\n path.addAll(Arrays.asList(\n new MusicPlayer(\"Sviridov.wav\", \"Sviridov\", \"\\\"Vals\\\"\", \"Classic\", \"Symphony\", Type.SHORT),\n new MusicPlayer(\"Vivaldi.wav\", \"Vivaldi\", \"\\\"Flute Concert\\\"\", \"Classic\", \"Symphony\", Type.SHORT),\n new MusicPlayer(\"Kenton.wav\", \"Kenton\", \"\\\"New Concepts of Artistry in Rhythm\\\"\", \"Jazz\", \"Progressive Jazz\", Type.SHORT),\n new MusicPlayer(\"Davis.wav\", \"Davis\", \"\\\"Birth of the Cool\\\"\", \"Jazz\", \"Cool Jazz\", Type.LONG),\n new MusicPlayer(\"Mingus.wav\", \"Mingus\", \"\\\"Ah Um\\\"\", \"Jazz\", \"Post Bop\", Type.LONG),\n new MusicPlayer(\"Williamson.wav\", \"Williamson\", \"\\\"Help me\\\"\", \"Blues\", \"Chicago blues\", Type.SHORT)\n ));\n\n //SORTED CLASSICAL ARTISTS\n printf(\"Please choose genre:%n 1.Classic %n 2.Jazz %n 3.Blues %n\");\n Scanner in = new Scanner(System.in);\n String genre = in.nextLine();\n switch (genre) {\n case \"1\":\n List<Object> classic_artists = path.stream().filter(s -> {\n if (s.getGenre() == \"Classic\") {\n return s.getSub_genre() == \"Symphony\";\n } else {\n return false;\n }\n }).peek(s -> printf(\"Artist - %s%n\", s.getArtist())).collect(Collectors.toList());\n classic_artists.stream().sorted();\n //END SORTING\n\n //CHOOSE FIRST CLASSICAL ARTIST\n printf(\"Please type artist name %n\");\n Scanner in1 = new Scanner(System.in);\n String class_artist = in1.nextLine();\n switch (class_artist) {\n case \"Sviridov\":\n List<Object> album_list = path.stream().filter(s -> {\n if (s.getArtist() == \"Sviridov\") {\n return s.getAlbum() == \"\\\"Vals\\\"\";\n } else {\n return false;\n }\n }).peek(s -> printf(\"Album - %s (%s) %n\", s.getAlbum(), s.type.getType())).collect(Collectors.toList());\n album_list.stream().sorted();\n //EDN CHOSING\n\n //START LISTEN MUSIC\n printf(\"Do you want start listen music? %n\");\n Scanner in2 = new Scanner(System.in);\n String play1 = in2.nextLine();\n switch (play1) {\n case \"Yes\":\n path.get(0).playMusic(\"Sviridov.wav\");\n break;\n default:\n System.out.println(\"Absent\");\n System.exit(0);\n case \"No\":\n printf(\"By...\");\n System.exit(0);\n }\n break;\n default:\n System.out.println(\"Absent\");\n System.exit(0);\n //END LISTEN MUSIC\n\n //CHOOSE SECOND CLASSICAL ARTIST\n case \"Vivaldi\":\n List<Object> album_list2 = path.stream().filter(s -> {\n if (s.getArtist() == \"Vivaldi\") {\n return s.getAlbum() == \"\\\"Flute Concert\\\"\";\n } else {\n return false;\n }\n }).peek(s -> printf(\"Album - %s (%s) %n\", s.getAlbum(), s.type.getType())).collect(Collectors.toList());\n album_list2.stream().sorted();\n //END CHOSING\n\n //START LISTEN MUSIC\n printf(\"Do you want start listen music? %n\");\n Scanner in3 = new Scanner(System.in);\n String play2 = in3.nextLine();\n switch (play2) {\n case \"Yes\":\n path.get(0).playMusic(\"Vivaldi.wav\");\n System.out.println(\"Absent\");\n System.exit(0);\n break;\n case \"No\":\n printf(\"By...\");\n System.exit(0);\n break;\n default:\n System.out.println(\"Absent\");\n System.exit(0);\n }\n\n //END LISTEN MUSIC\n }\n //SORTED JAZZ ARTISTS\n case \"2\":\n List<Object> jazz = path.stream().filter(s -> {\n if (s.getGenre() == \"Jazz\") {\n return s.getSub_genre() == \"Progressive Jazz\" | s.getSub_genre() == \"Cool Jazz\" | s.getSub_genre() == \"Post Bop\";\n } else {\n return false;\n }\n }).peek(s -> printf(\"Artist - %s%n\", s.getArtist())).collect(Collectors.toList());\n jazz.stream().sorted();\n //END SORTING\n\n //CHOOSE FIRST JAZZ ARTIST\n printf(\"Please type artist name %n\");\n Scanner in4 = new Scanner(System.in);\n String class_artist3 = in4.nextLine();\n switch (class_artist3) {\n case \"Kenton\":\n List<Object> album_list3 = path.stream().filter(s -> {\n if (s.getArtist() == \"Kenton\") {\n return s.getAlbum() == \"\\\"New Concepts of Artistry in Rhythm\\\"\";\n } else {\n return false;\n }\n }).peek(s -> printf(\"Album - %s (%s) %n\", s.getAlbum(), s.type.getType())).collect(Collectors.toList());\n album_list3.stream().sorted();\n //EDN CHOSING\n\n //START LISTEN MUSIC\n printf(\"Do you want start listen music? %n\");\n Scanner in5 = new Scanner(System.in);\n String play3 = in5.nextLine();\n switch (play3) {\n case \"Yes\":\n path.get(0).playMusic(\"Kenton.wav\");\n System.out.println(\"Absent\");\n System.exit(0);\n break;\n case \"No\":\n printf(\"By...\");\n System.exit(0);\n break;\n default:\n System.out.println(\"Absent\");\n System.exit(0);\n }\n\n //END LISTEN MUSIC\n\n //CHOOSE SECOND JAZZ ARTIST\n case \"Davis\":\n List<Object> album_list4 = path.stream().filter(s -> {\n if (s.getArtist() == \"Davis\") {\n return s.getAlbum() == \"\\\"Birth of the Cool\\\"\";\n } else {\n return false;\n }\n }).peek(s -> printf(\"Album - %s (%s) %n\", s.getAlbum(), s.type.getType())).collect(Collectors.toList());\n album_list4.stream().sorted();\n //END CHOSING\n\n //START LISTEN MUSIC\n printf(\"Do you want start listen music? %n\");\n Scanner in6 = new Scanner(System.in);\n String play4 = in6.nextLine();\n switch (play4) {\n case \"Yes\":\n path.get(0).playMusic(\"Davis.wav\");\n System.out.println(\"Absent\");\n System.exit(0);\n break;\n case \"No\":\n printf(\"By...\");\n System.exit(0);\n }\n break;\n default:\n System.out.println(\"Absent\");\n System.exit(0);\n\n //END LISTEN MUSIC\n\n //CHOOSE THIRD JAZZ ARTIST\n case \"Mingus\":\n List<Object> album_list5 = path.stream().filter(s -> {\n if (s.getArtist() == \"Mingus\") {\n return s.getAlbum() == \"\\\"Ah Um\\\"\";\n } else {\n return false;\n }\n }).peek(s -> printf(\"Album - %s (%s) %n\", s.getAlbum(), s.type.getType())).collect(Collectors.toList());\n album_list5.stream().sorted();\n //END CHOSING\n\n //START LISTEN MUSIC\n printf(\"Do you want start listen music? %n\");\n Scanner in7 = new Scanner(System.in);\n String play5 = in7.nextLine();\n switch (play5) {\n case \"Yes\":\n path.get(0).playMusic(\"Mingus.wav\");\n System.out.println(\"Absent\");\n System.exit(0);\n break;\n case \"No\":\n printf(\"By...\");\n System.exit(0);\n break;\n default:\n System.out.println(\"Absent\");\n System.exit(0);\n }\n //END LISTEN MUSIC\n }\n //SORTED BLUES ARTISTS\n case \"3\":\n List<Object> blues = path.stream().filter(s -> {\n if (s.getGenre() == \"Blues\") {\n return s.getSub_genre() == \"Chicago blues\";\n } else {\n return false;\n }\n }).peek(s -> printf(\"Artist - %s%n\", s.getArtist())).collect(Collectors.toList());\n blues.stream().sorted();\n //END SORTING\n\n //CHOOSE FIRST BLUES ARTIST\n printf(\"Please type artist name %n\");\n Scanner in5 = new Scanner(System.in);\n String class_artist6 = in5.nextLine();\n case \"Williamson\":\n List<Object> album_list6 = path.stream().filter(s -> {\n if (s.getArtist() == \"Williamson\") {\n return s.getAlbum() == \"\\\"Help me\\\"\";\n } else {\n return false;\n }\n }).peek(s -> printf(\"Album - %s (%s) %n\", s.getAlbum(), s.type.getType())).collect(Collectors.toList());\n album_list6.stream().sorted();\n //END CHOSING\n\n //START LISTEN MUSIC\n printf(\"Do you want start listen music? %n\");\n Scanner in7 = new Scanner(System.in);\n String play5 = in7.nextLine();\n switch (play5) {\n case \"Yes\":\n path.get(0).playMusic(\"Williamson.wav\");\n System.out.println(\"Absent\");\n System.exit(0);\n break;\n case \"No\":\n printf(\"By...\");\n System.exit(0);\n }\n break;\n default:\n System.out.println(\"Absent\");\n System.exit(0);\n //END LISTEN MUSIC\n }\n }", "title": "" }, { "docid": "f686558fc9f88ede9247db2678870680", "score": "0.54466045", "text": "public static void main (String[] args)\n {\n ArrayList<Music> myMusic = new ArrayList<Music>();\n myMusic.add (new Music(\"Bill Haley\", \"Rock Around the Clock\", 1955));\n myMusic.add (new Music(\"The Beatles\", \"Sgt. Pepper's Lonely Hearts Club Band\", 1967));\n myMusic.add (new Music(\"Pink Floyd\", \"Dark Side of the Moon\", 1973));\n myMusic.add (new Music(\"Michael Jackson\", \"Thriller\", 1982));\n myMusic.add (new Music(\"Alanis Morissette\", \"Jagged Little Pill\", 1995));\n myMusic.add (new Music(\"Eminem\", \"The Marshall Mathers LP\", 2000));\n myMusic.add (new Music(\"Adele\", \"21\", 2011));\n \n System.out.println (\"Best selling albums by in each decade:\");\n for (Music m : myMusic)\n {\n System.out.println (m);\n }\n System.out.println(); // two blank lines\n System.out.println();\n \n // This code tests the LibraryMusic class\n // It copies the same information as above, but then adds a call number.\n // Comment it out if you have only done Music so far\n ArrayList<LibraryMusic> myLibrary = new ArrayList<LibraryMusic>();\n for (Music m : myMusic)\n {\n String callNum = m.getArtist().substring(0,2) +\n m.getTitle().substring(0,2) + \n m.getYear() % 100;\n myLibrary.add (new LibraryMusic \n (m.getArtist(), m.getTitle(), m.getYear(), callNum));\n }\n \n System.out.println (\"My music library has popular albums!\");\n for (LibraryMusic lm : myLibrary)\n {\n System.out.println (lm);\n }\n \n }", "title": "" }, { "docid": "a6095be27227ad15b11d51b2b281f5e1", "score": "0.5405253", "text": "@Override\r\n\tpublic int compare(SongsList o1, SongsList o2) {\r\n\t\t// TODO Auto-generated method stub\r\n\t\tif(o1.getGenre().equals(o2.getGenre())){\r\n\t\t\t\r\n\t\t\tif(o2.getCriticscore()-o1.getCriticscore()<0)\r\n\t\t\t\treturn -1;\r\n\t\t\telse if(o2.getCriticscore()-o1.getCriticscore()>0)\r\n\t\t\t\treturn 1;\r\n\t\t\telse return 0;\r\n\t\t}\r\n\t\telse{\r\n\t\t\t\r\n\t\t\treturn 1;\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "9967202aa8ea579d0e077c083458a8fc", "score": "0.5347698", "text": "public ArrayList<Song> compareSongs(CD cd2)\r\n\t{\r\n\t\tif(this.songs.size() < cd2.songs.size() || this.songs.size() == cd2.songs.size())\r\n\t\t{\r\n\t\t\t// i tried to make this efficient, by sorting the smaller list then binary searching for each object in the larger list\r\n\t\t\tif(!sorted)\r\n\t\t\t{\r\n\t\t\t\tCollections.sort(songs);\r\n\t\t\t\tlastSortedMethod = \"title\";\t\r\n\t\t\t\tsorted = true;\r\n\t\t\t\treturn searchForCommon(songs, cd2.songs, \"title\");\r\n\t\t\t}\r\n\t\t\telse if(sorted == true && lastSortedMethod.equals(\"title\"))\r\n\t\t\t\treturn searchForCommon(songs, cd2.songs, \"title\");\r\n\t\t\telse if(sorted == true && lastSortedMethod.equals(\"artist\"))\r\n\t\t\t\treturn searchForCommon(songs, cd2.songs, \"artist\");\r\n\t\t\telse if(sorted == true && lastSortedMethod.equals(\"time\"))\r\n\t\t\t\treturn searchForCommon(songs, cd2.songs, \"time\");\r\n\t\t}\r\n\t\telse if(this.songs.size() > cd2.songs.size())\r\n\t\t{\r\n\t\t\tif(cd2.sorted == false)\r\n\t\t\t{\r\n\t\t\t\tcd2.sortByTitle();\r\n\t\t\t\tcd2.lastSortedMethod = \"title\";\t\r\n\t\t\t\tcd2.sorted = true;\r\n\t\t\t\treturn searchForCommon(cd2.songs, songs, \"title\");\r\n\t\t\t}\r\n\t\t\telse if(cd2.sorted == true && cd2.lastSortedMethod == \"title\")\r\n\t\t\t\treturn searchForCommon(songs, songs, \"title\");\r\n\t\t\telse if(cd2.sorted == true && cd2.lastSortedMethod == \"artist\")\r\n\t\t\t\treturn searchForCommon(cd2.songs, songs, \"artist\");\r\n\t\t\telse if(cd2.sorted && cd2.lastSortedMethod == \"time\")\r\n\t\t\t\treturn searchForCommon(cd2.songs, songs, \"time\");\r\n\t\t}\r\n\t\treturn songs;\t\r\n\t}", "title": "" }, { "docid": "cf0f6ef46d4e71c03fb8b252ebf9beef", "score": "0.53292036", "text": "private void listAllArtistOrderedByName(int index) throws IOException {\n sortAndList(index);\n }", "title": "" }, { "docid": "c21787230f3d0abf367dc05f0ec77106", "score": "0.5314439", "text": "@Test\n\tpublic void testAuthorOrderTieBreaker() {\n\t\tLibraryGeneric<String> library = new LibraryGeneric<String>();\n\n\t\tlibrary.add(9780374292799L, \"Thomas L. Friedman\", \"The World is Flat\");\n\t\tlibrary.add(9780374292791L, \"Thomas L. Friedman\", \"The Head is Flat\");\n\t\tlibrary.add(9781843192954L, \"Dennis Radha-Rose\",\n\t\t\t\t\"The Anxiety Relief Program\");\n\t\tlibrary.add(9781843192701L, \"Moyra Caldecott\", \"The Lily and the Bull\");\n\n\t\tArrayList<LibraryBookGeneric<String>> testAuthorOrder = library\n\t\t\t\t.getOrderedByAuthor();\n\n\t\tassertEquals(9780374292791L, testAuthorOrder.get(2).getIsbn());\n\t\tassertEquals(9780374292799L,\n\t\t\t\ttestAuthorOrder.get(testAuthorOrder.size() - 1).getIsbn());\n\n\t}", "title": "" }, { "docid": "3fc9164c023a388382d479c744c4a08c", "score": "0.5306507", "text": "public void testSortYearDiffYearNoSort() {\n list.clear();\n list.add(riseAbove);\n list.add(hereComesYourMan);\n list.add(washer);\n list.add(familyIsFamily);\n list.sortYear();\n assertEquals(4, list.getLength());\n assertEquals(riseAbove, list.getEntry(0));\n assertEquals(hereComesYourMan, list.getEntry(1));\n assertEquals(washer, list.getEntry(2));\n assertEquals(familyIsFamily, list.getEntry(3));\n }", "title": "" }, { "docid": "2605ddfb38c4a0ac8a4915f7c5dbf137", "score": "0.5255886", "text": "@Override\n public int compareTo(Album a) {\n return name.compareTo(a.getName());\n }", "title": "" }, { "docid": "1cf61e5bdd866a102e392fcf28a61f76", "score": "0.5248653", "text": "public static void addInAbcOrder(ArrayList<Song> songList, Song newSong) {\n\t\tif (songList.isEmpty() == true) {\n\t\t\t// no songs, add songName here\n\t\t\tsongList.add(newSong);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tif (songList.get(0).songName.compareTo(newSong.songName) > 0) {\n\t\t\t// songName is even smaller than first element, add at very beginning\n\t\t\tsongList.add(0, newSong);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tif (songList.get(songList.size() - 1).songName.compareTo(newSong.songName) < 0) {\n\t\t\t// songName is even bigger than last element, add at very end\n\t\t\tsongList.add(newSong);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tfor (int i = 0; i < songList.size(); i++) {\n\t\t\t// search for correct location\n\t\t\tif (songList.get(i).songName.equals(newSong.songName) && songList.get(i).artist.equals(newSong.artist)) {\n\t\t\t\t// duplicate, not allowed\n\t\t\t\tSystem.out.println(newSong.songName + \" by \" + newSong.artist + \" is a duplicate\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tif (songList.get(i).songName.equals(newSong.songName)) {\n\t\t\t\t// songName is already in list, but artist is different, so ok, add here\n\t\t\t\tsongList.add(i, newSong);\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tif (songList.get(i).songName.compareTo(newSong.songName) > 0) {\n\t\t\t\t// insert in index i\n\t\t\t\tsongList.add(i, newSong);\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "e4285f06b75154a6446b0eabd2f9f2d6", "score": "0.5229846", "text": "@Test\n\tpublic void additionalTest() {\n\t\t//Write an additional test that\n\t\t//is different from the above\n\t\tb = new BucketList<>(0,100,10);\n\t\tb.addAll(everyone);\n\n Entry<String> marty = new Entry<>(108, \"Marty\");\n Entry<String> youngdum = new Entry<>(-18, \"Young Dum\");\n\n b.add(marty);\n b.add(youngdum);\n\n ArrayList<Entry<String>> sorted = new ArrayList<>();\n\n sorted.add(youngdum);\n\t\tsorted.add(C);\n\t\tsorted.add(B);\n\t\tsorted.add(A);\n\t\tsorted.add(val);\n\t\tsorted.add(jim);\n\t\tsorted.add(Aplus);\n\t\tsorted.add(marty);\n\n\t\tassertTrue(b.getSortedOrder().equals(sorted));\n\n\t}", "title": "" }, { "docid": "de09a48c240fc4fde0a0761a29f62ff1", "score": "0.52218515", "text": "public static void main(String[] args) {\n CompareCarsByMakeThenModel compareCarsByMakeThenModel = new CompareCarsByMakeThenModel();\r\n CompareCarsByDescendingMPG compareCarsByDescendingMPG = new CompareCarsByDescendingMPG();\r\n CompareCarsByMakeThenDescendingMPG compareCarsByMakeThenDescendingMPG = new CompareCarsByMakeThenDescendingMPG();\r\n\r\n // Array of cars used for testing purposes to verify comparators and sorting\r\n Car cars[] = {\r\n new Car(\"Toyota\", \"Camry\", 33),\r\n new Car(\"Ford\", \"Focus\", 40),\r\n new Car(\"Honda\", \"Accord\", 34),\r\n new Car(\"Ford\", \"Mustang\", 31),\r\n new Car(\"Honda\", \"Civic\", 39),\r\n new Car(\"Toyota\", \"Prius\", 48),\r\n new Car(\"Honda\", \"Fit\", 35),\r\n new Car(\"Toyota\", \"Corolla\", 35),\r\n new Car(\"Ford\", \"Taurus\", 28)\r\n };\r\n\r\n /**\r\n * This block of code is used to show that the comparators do their job and quick sort sorts properly!!!\r\n */\r\n System.out.print(\"'CARS' ARRAY UNSORTED:\\n\\n\");\r\n printCarArr(cars);\r\n System.out.print(\"\\n\\n'CARS' ARRAY SORTED BY MAKE THEN MODEL:\\n\\n\");\r\n QuickSort.quickSort(cars, compareCarsByMakeThenModel);\r\n printCarArr(cars);\r\n System.out.print(\"\\n\\n'CARS' ARRAY SORTED BY DESCENDING MPG:\\n\\n\");\r\n QuickSort.quickSort(cars, compareCarsByDescendingMPG);\r\n printCarArr(cars);\r\n System.out.print(\"\\n\\n'CARS' ARRAY SORTED BY MAKE THEN DESCENDING MPG:\\n\\n\");\r\n QuickSort.quickSort(cars, compareCarsByMakeThenDescendingMPG);\r\n printCarArr(cars);\r\n }", "title": "" }, { "docid": "5998407e7456c4c2f14aac616fa9da88", "score": "0.52110404", "text": "public void songSort() {\n\t\tsongLink previous = null;\n\t\tfor(songLink link1 = first;link1 != null; link1 = link1.next) { // Outer loop to get element to swap\n\t\t\tsongLink min = link1;\n\t\t\tfor(songLink link2 = link1; link2 != null; link2 = link2.next) { // Inner loop to find swapper element based on song title\n\t\t\t\tint songCompare = min.getSongTitle().compareTo(link2.getSongTitle());\n\t\t\t\tif (songCompare > 0) {\n\t\t\t\t\tmin = link2; // New minimum is found\n\t\t\t\t}\n\t\t\t\telse if (songCompare == 0) {\n\t\t\t\t\tif (min != link2) { // Two song titles are the same\n\t\t\t\t\t\tint artistCompare = min.getArtist().compareTo(link2.getArtist()); // Compare by artist if song title is same\n\t\t\t\t\t\tif (artistCompare > 0) min = link2; // New minimum is found\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\t\n\t\t\t}\n\t\t\tsongLink resultArray[] = Swap(min, link1, previous); // Call to Swap() method to swap two elements\n\t\t\tmin = resultArray[0]; // Load new minimum value\n\t\t\tlink1 = resultArray[1]; // Load new outer loop pointer value\n\t\t\tprevious = resultArray[2]; // Load new previous songLink element value\n\t\t}\n\t}", "title": "" }, { "docid": "4207a860aa7fa34f59616cdbb9e12189", "score": "0.51960295", "text": "public void testSortByMagnitudeWithBubbleSortWithCheck() {\n \tArrayList<QuakeEntry> sorted1 = getQuakeData(\"earthQuakeDataWeekDec6sample2.atom\");\n// \tArrayList<QuakeEntry> sorted2 = getQuakeData(\"earthquakeDataSampleSix2.atom\");\n \tsortByMagnitudeWithBubbleSortWithCheck(sorted1);\n// \tsortByMagnitudeWithBubbleSortWithCheck(sorted2);\n \t\n }", "title": "" }, { "docid": "febd1b48b83992329023cc280379db55", "score": "0.5191373", "text": "public void albumSort() {\n\t\tsongLink previous = null;\n\t\tfor (songLink link1 = first; link1 != null; link1 = link1.next) { // Outer loop to get element to swap\n\t\t\tsongLink min = link1;\n\t\t\tfor (songLink link2 = link1; link2 != null; link2 = link2.next) { // Inner loop to get swapper element based on album title\n\t\t\t\tint albumCompare = min.getAlbumName().compareTo(link2.getAlbumName());\n\t\t\t\tif (albumCompare > 0) {\n\t\t\t\t\tmin = link2; // New minimum found\n\t\t\t\t}\n\t\t\t\telse if (albumCompare == 0) {\n\t\t\t\t\tif (min != link2) { // Album titles are the same\n\t\t\t\t\t\tint songCompare = min.getSongTitle().compareTo(link2.getSongTitle()); // Compare by song title if album titles are the same\n\t\t\t\t\t\tif (songCompare > 0) min = link2; // New minimum element found\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tsongLink resultArray[] = Swap(min, link1, previous); // Call to Swap() method to swap two elements\n\t\t\tmin = resultArray[0]; // Load new minimum value\n\t\t\tlink1 = resultArray[1]; // Load new outer loop pointer value\n\t\t\tprevious = resultArray[2]; // Load new previous songLink element value\n\t\t}\n\t}", "title": "" }, { "docid": "58d349eeed55ed5ee2d3840f298fa843", "score": "0.5190875", "text": "public int compareTo(Object object) {\n\n\t\tMusicRecording recording = (MusicRecording) object;\n\t\tString targetArtist = recording.getArtist();\n\n\t\treturn artist.compareTo(targetArtist);\n\t}", "title": "" }, { "docid": "2544f47453e3abd26b4c34e13f55ce01", "score": "0.51336634", "text": "@Test\n public void searching_for_my_birthday_song() {\n student.open_birthday_songs_page();\n\n // he retrieves his corresponding birthday song (full name)\n // ...\n\n// to match with Let It Be by The Beatles, the date has to be 11-4-1970\n\n student.enterBirthday(\"11-4-1970\");\n String resultSong = this.adaptResultToListFormat(student.lookForResults());\n// System.out.println(resultSong);\n\n // he open the article with the top 100 songs of all time\n student.open_best_songs_of_all_time_page();\n\n List<String> bestSongs = student.getAllBestSongTitles();\n\n\n // he checks if his songs is in the top (simply tries to match the full name)\n // and then prints the appropriate message in the console\n // ...\n if(this.isSongInList(resultSong, bestSongs))\n System.out.println(\"The Song is in the list!\");\n else{\n System.out.println(\"Sadly, the song is not in the list...\");\n }\n\n // he goes on Wikipedia\n student.open_wikipedia_page();\n\n\n\n // he searches for the song there aswell and opens the first result\n // ...\n\n //searching by song title, omitting the artist\n student.searchSongName(resultSong.split(\"-\")[0]);\n\n // keep the page open al little longer after the process is over\n waitForIt(SECONDS_TO_KEEP_PAGE_OPEN);\n\n }", "title": "" }, { "docid": "7ea251931f3447a02d9c9ccfe8ed9176", "score": "0.50783026", "text": "@Test\n public void persistArtist() {\n final Artist artist = new Artist();\n artist.setName(ARTIST_NAME);\n artistDAO.persist(artist);\n\n final Artist actual = artistDAO.findByName(ARTIST_NAME);\n assertEquals(artist, actual);\n }", "title": "" }, { "docid": "2ee233a9f22c508d52c4e1b9ef49d8bd", "score": "0.5047057", "text": "@Override\n\tpublic int compareTo(Song o) {\n\t\tif (this.plays == o.plays) {\n\t\t\treturn this.idx < this.idx ? -1 : 1;\n\t\t}\n\t\treturn this.plays > o.plays ? -1 : 1;\n\t}", "title": "" }, { "docid": "e9725064e55118ee4aafc965b72ee622", "score": "0.5030854", "text": "public static List<DBPediaArtist> getMostFamousArtists(int maxAmount) {\n List<DBPediaArtist> artists = new LinkedList<DBPediaArtist>();\n /*String query =\n \"SELECT ?id ?name ?description (group_concat(distinct ?aField ; separator = \\\";\\\") AS ?field) (group_concat(distinct ?aMovement ; separator = \\\";\\\") AS ?movement) ?birthDate ?deathDate (group_concat(distinct ?aBirthPlace ; separator = \\\";\\\") AS ?birthPlace) (group_concat(distinct ?aDeathPlace ; separator = \\\";\\\") AS ?deathPlace) (COUNT(DISTINCT ?links) AS ?totalLinks) (COUNT(DISTINCT ?art) AS ?totalArt) WHERE {\\n\" +\n \" ?person a dbo:Artist .\\n\" +\n \" ?person rdfs:comment ?description .\\n\" +\n \" ?person dbo:wikiPageID ?id .\\n\" +\n \" OPTIONAL {?person dbo:field ?aField} .\\n\" +\n \" OPTIONAL {?person dbo:movement ?aMovement} .\\n\" +\n \" ?person dbo:birthPlace ?aBirthPlace .\\n\" +\n \" ?person dbo:birthDate ?birthDate .\\n\" +\n \" OPTIONAL {?person dbo:deathPlace ?aDeathPlace} .\\n\" +\n \" OPTIONAL {?person dbo:deathDate ?deathDate} .\\n\" +\n \" ?person foaf:name ?name .\\n\" +\n \" ?person dbo:wikiPageExternalLink ?links.\\n\" +\n \" ?art dbpedia2:artist ?person .\\n\" +\n \" FILTER (LANG(?description) = 'en') . \\n\" +\n \" FILTER NOT EXISTS {\\n\" +\n \" ?person rdf:type <http://dbpedia.org/class/yago/Musician110339966> .\\n\" +\n \" }\\n\" +\n \" FILTER NOT EXISTS {\\n\" +\n \" ?person rdf:type <http://dbpedia.org/ontology/MusicalArtist>\\n\" +\n \" }\\n\" +\n \"}\\n\" +\n \"GROUP BY ?id ?name ?description ?birthDate ?deathDate\\n\" +\n \"HAVING (COUNT(DISTINCT ?art) >= 1)\\n\" +\n \"ORDER BY DESC(?totalArt)\\n\" +\n \"LIMIT \" + maxAmount;*/\n String query =\n \"SELECT ?id ?name ?description (group_concat(distinct ?aField ; separator = \\\";\\\") AS ?field) (group_concat(distinct ?aMovement ; separator = \\\";\\\") AS ?movement) ?birthDate ?deathDate (group_concat(distinct ?aBirthPlace ; separator = \\\";\\\") AS ?birthPlace) (group_concat(distinct ?aDeathPlace ; separator = \\\";\\\") AS ?deathPlace) (COUNT(DISTINCT ?links) AS ?totalLinks) (COUNT(DISTINCT ?art) AS ?totalArt) WHERE {\\n\" +\n \" ?person a dbo:Artist .\\n\" +\n \" ?person rdfs:comment ?description .\\n\" +\n \" ?person dbo:wikiPageID ?id .\\n\" +\n \" OPTIONAL {?person dbo:field ?aField} .\\n\" +\n \" OPTIONAL {?person dbo:movement ?aMovement} .\\n\" +\n \" ?person dbo:birthPlace ?aBirthPlace .\\n\" +\n \" ?person dbo:birthDate ?birthDate .\\n\" +\n \" OPTIONAL {?person dbo:deathPlace ?aDeathPlace} .\\n\" +\n \" OPTIONAL {?person dbo:deathDate ?deathDate} .\\n\" +\n \" ?person foaf:name ?name .\\n\" +\n \" ?person dbo:wikiPageExternalLink ?links.\\n\" +\n \" ?art dbpedia2:artist ?person .\\n\" +\n \" FILTER (LANG(?description) = 'en') . \\n\" +\n \"}\\n\" +\n \"GROUP BY ?id ?name ?description ?birthDate ?deathDate\\n\" +\n \"HAVING (COUNT(DISTINCT ?art) >= 1)\\n\" +\n \"ORDER BY DESC(?totalArt)\\n\" +\n \"LIMIT \" + maxAmount;\n\n for(Map<String,String> artistProperties : SparqlExecuter.runSparql(query,SparqlSources.DBPEDIA)) {\n DBPediaArtist artist = new DBPediaArtist(\n artistProperties.get(\"id\"),\n artistProperties.get(\"name\"),\n artistProperties.get(\"description\"),\n artistProperties.get(\"field\").split(\";\"),\n artistProperties.get(\"movement\").split(\";\"),\n artistProperties.get(\"birthDate\"),\n artistProperties.get(\"deathDate\"),\n artistProperties.get(\"birthPlace\").split(\";\"),\n artistProperties.get(\"deathPlace\").split(\";\"),\n Integer.parseInt(artistProperties.get(\"totalLinks\")),\n Integer.parseInt(artistProperties.get(\"totalArt\"))\n );\n artists.add(artist);\n }\n return artists;\n }", "title": "" }, { "docid": "e94b98d5692dd3ba5e402382853c64c3", "score": "0.5025117", "text": "public void insert(String title, String artist, String album, int count) {\n\t\tsongLink newLink = new songLink(title, artist, album, count); // Create new songLink item\n\t\tnElems++; \n\t\tsongLink current = first;\n\t\tsongLink previous = null; // Prepare to loop through list to place new item\n\t\tboolean found = false;\n\t\t\n\t\twhile(current != null && !found) { // Continue to process through list, until end or until place in list is found\n\t\t\tint compare = artist.compareTo(current.getArtist());\n\t\t\tif (compare > 0) { // Is artist alphabetically after current item compared\n\t\t\t\tprevious = current;\n\t\t\t\tcurrent = current.next; // Load next item to compare\n\t\t\t}\n\t\t\telse if (compare == 0) { // Is artist the same as current item compared\n\t\t\t\twhile(current != null) { // Loop through artists until end\n\t\t\t\t\tif (artist.equals(current.getArtist())) { // Loop as long as artist to compare is same as current item\n\t\t\t\t\t\tint titleCompare = title.compareTo(current.getSongTitle());\n\t\t\t\t\t\tif (titleCompare > 0) { // Is song title alphabetically after current item compared\n\t\t\t\t\t\t\tprevious = current;\n\t\t\t\t\t\t\tcurrent = current.next; // Load next item to compare\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse {\n\t\t\t\t\t\t\tfound = true; // Spot to place in list is found\n\t\t\t\t\t\t\tbreak; // Spot in list found, break out of loop\n\t\t\t\t\t\t} \n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tfound = true; // Spot to place in list is found\n\t\t\t\t\t\tbreak; // Spot in list found, break out of loop\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\telse {\n\t\t\t\tfound = true;\n\t\t\t\tbreak; // Spot in list found, break out of loop\n\t\t\t}\n\t\t}\n\t\tif (previous == null) { \n\t\t\tif (first != null) { // Is there a first item in the list\n\t\t\t\tsongLink temp = first; // Replace first item in the list\n\t\t\t\ttemp.previous = newLink;\n\t\t\t}\n\t\t\tfirst = newLink; // First item in linked List doesn't exist, make this item the first\n\t\t\tfirst.previous = null;\n\t\t}\n\t\telse {\n\t\t\tif (previous.next != null) { // Is item being added to the end of the list\n\t\t\t\tsongLink temp = previous.next; // Item is not added to end of list\n\t\t\t\ttemp.previous = newLink;\n\t\t\t\t}\n\t\t\tprevious.next = newLink; // Item is being added to end of list\n\t\t\tnewLink.previous = previous;\n\t\t}\n\t\tnewLink.next = current; // Load next element of the new Item added\n\t}", "title": "" }, { "docid": "dc048e3c1cdf84b8c992bdc1b0dc2ea0", "score": "0.50124407", "text": "@Test(enabled = true, groups = {\"wso2.esb\"}, description = \"spotify {getTopTracksOfAnArtist} integration test with mandatory parameters.\")\n public void testGetTopTracksOfAnArtistWithMandatoryParameters() throws Exception {\n String jsonRequestFilePath = pathToRequestsDirectory + \"getTopTracksOfAnArtist_Mandatory.txt\";\n String methodName = \"spotify\";\n final String jsonString = ConnectorIntegrationUtil.getFileContent(jsonRequestFilePath);\n final String proxyFilePath = \"file:///\" + pathToProxiesDirectory + methodName + \".xml\";\n proxyAdmin.addProxyService(new DataHandler(new URL(proxyFilePath)));\n String modifiedJsonString = String.format(jsonString, spotifyConnectorProperties.getProperty(\"artistId1\"));\n try {\n JSONObject jsonResponse = ConnectorIntegrationUtil.sendRequest(getProxyServiceURL(methodName), modifiedJsonString);\n JSONObject jsonObject = new JSONObject(modifiedJsonString);\n JSONArray artists = ((JSONObject) jsonResponse.getJSONArray(\"tracks\").get(0)).getJSONArray(\"artists\");\n boolean exi = false;\n for (int i = 0; i < artists.length(); i++) {\n JSONObject a = (JSONObject) artists.get(i);\n if (a.getString(\"id\").equals(jsonObject.getString(\"artistId\"))) {\n exi = true;\n }\n }\n Assert.assertEquals(exi, true);\n } finally {\n proxyAdmin.deleteProxy(methodName);\n }\n }", "title": "" }, { "docid": "94c73e648a581613375442468ecb6e45", "score": "0.5007011", "text": "@Test\n public void search_genreids_areasexpected() {\n }", "title": "" }, { "docid": "612a680b85475c0621ba04b8f0c4099a", "score": "0.50036633", "text": "public void calculateGenres(Song song){\n\t\tboolean already = false;\n\t\tboolean added = false;\n\t\tfor(int i = 0; i<MAX_GENRES && !already; i++){\n\t\t\tif(genres[i]!=null){\n\t\t\t\tif(genres[i] == song.getGenre()){\n\t\t\t\t\talready = true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif(!already){\n\t\t\tfor(int i = 0; i<MAX_GENRES && !added; i++){\n\t\t\t\tif(genres[i]==null){\n\t\t\t\t\tgenres[i] = song.getGenre();\n\t\t\t\t\tadded = true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "0fcb7403abb54b2ea1b3129eb05a0319", "score": "0.49873602", "text": "@Test\r\n public void testGetAllArtistes() {\r\n // affichage clients\r\n// List<Artiste> spectacle = dao.getAllArtistes();\r\n// display(\"Liste des Artiste :\", spectacle); \r\n// Assert.assertTrue(\"si table null alors True :\", this.equals(spectacle) );\r\n List<Artiste> artiste = dao.getAllArtistes();\r\n display(\"Liste des Artiste :\", artiste); \r\n Assert.assertTrue(\"si table null alors True :\", this.equals(artiste) ); \r\n }", "title": "" }, { "docid": "f06fb190f80423918d0d5b994c1598c3", "score": "0.49672842", "text": "public List<Album> getAlbumsByArtist(String artist);", "title": "" }, { "docid": "d181dec5b49ba64797f4c6869b491c7b", "score": "0.49461874", "text": "@Override\r\n\tpublic int compare(Media o1, Media o2) {\r\n\t\tint result;\r\n\t\tint modifiedYear1 = o1.getStartYear();\r\n\t\tint modifiedYear2 = o2.getStartYear();\r\n\t\tif(modifiedYear1 == -1){\r\n\t\t\tmodifiedYear1 = Integer.MAX_VALUE;\r\n\t\t}\r\n\t\tif(modifiedYear2 == -1){\r\n\t\t\tmodifiedYear2 = Integer.MAX_VALUE;\r\n\t\t}\r\n\t\tif(sortCriterion == SORT_BY_TITLE){\r\n\t\t\tresult = o1.getTitle().compareTo(o2.getTitle());\r\n\t\t\tif(result == 0){\r\n\t\t\t\tresult = modifiedYear1 - modifiedYear2;\r\n\t\t\t}\r\n\t\t}else{\r\n\t\t\tresult = modifiedYear1 - modifiedYear2;\r\n\t\t\tif(result == 0){\r\n\t\t\t\tresult = o1.getTitle().compareTo(o2.getTitle());\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn result;\r\n\t}", "title": "" }, { "docid": "b5dfd06a2273412025b6ffc460c0be1e", "score": "0.49398527", "text": "private boolean compareAlignmentsAndCatalogDuplicateMarkingDifferences() {\n if (!compareValues(leftReader.getFileHeader().getSortOrder(), rightReader.getFileHeader().getSortOrder(),\n \"Sort Order\")) {\n System.out.println(\"Cannot compare alignments if sort orders differ.\");\n return false;\n }\n switch (leftReader.getFileHeader().getSortOrder()) {\n case coordinate:\n if (sequenceDictionariesDiffer) {\n System.out.println(\"Cannot compare coordinate-sorted SAM files because sequence dictionaries differ.\");\n return false;\n }\n return compareCoordinateSortedAlignments();\n case queryname:\n return compareQueryNameSortedAlignments();\n case duplicate:\n case unsorted:\n return compareUnsortedAlignments();\n default:\n // unreachable\n throw new PicardException(String.format(\"Unrecognized sort order (%s) found.\", leftReader.getFileHeader().getSortOrder()));\n }\n }", "title": "" }, { "docid": "2661e81e2a7b2be9af0264a209b8b75b", "score": "0.49270004", "text": "@Test\n public void testTitle() {\n assertNotEquals(b1.getTitle(), b2.getTitle());\n assertNotEquals(b1.getTitle(), b3.getTitle());\n assertEquals(b2.getTitle(), b3.getTitle());\n }", "title": "" }, { "docid": "d8123000034b3d51866043084e7cecf1", "score": "0.49211606", "text": "public void setMp3TrackArtist() {\n\n try {\n\n File file = new File(folder+\"/\"+tempTitle);\n mp3File = (MP3File) AudioFileIO.read(file);\n\n Tag tag = mp3File.getTag();\n artist=new Artist(tag.getFirst(FieldKey.ARTIST));\n\n if (mp3File.hasID3v2Tag()) {\n File file1 = new File(folder+\"/\"+tempTitle);\n mp3File = (MP3File) AudioFileIO.read(file1);\n\n Tag tag1 = mp3File.getTag();\n artist=new Artist(tag1.getFirst(ID3v24Frames.FRAME_ID_ARTIST));\n\n }\n }\n catch (Exception e) {\n e.getMessage();\n }\n\n }", "title": "" }, { "docid": "3f65714cf07b8fde1a5add71103b4158", "score": "0.4919263", "text": "@RequiresApi(api = Build.VERSION_CODES.LOLLIPOP)\n public ArrayList<Features> sortFeatures(ArrayList<Features> features) {\n\n ArrayList<Features> bucket;\n ArrayList<Features> bucket_high = new ArrayList<Features>(); // High tempo songs\n ArrayList<Features> bucket_moderate = new ArrayList<Features>(); // Moderate tempo songs\n ArrayList<Features> bucket_low = new ArrayList<Features>(); // Low tempo songs\n ArrayList<Features> gen_playlist = new ArrayList<Features>(); // Final list of sorted songs.\n\n bucket = features;\n\n Collections.sort(bucket, new Sortbytempo()); // Sort bucket by tempo.\n\n // Distribute songs into buckets.\n int tenthOfBucket = (int) (bucket.size()/10);\n for (int i=0; i<tenthOfBucket*2 ; i++) // Add top 20% songs to bucket.\n bucket_high.add(bucket.get(i));\n\n for (int i=tenthOfBucket*2; i< tenthOfBucket*4; i++) // Add top 20%-40% songs to bucket.\n bucket_moderate.add(bucket.get(i));\n\n for (int i=tenthOfBucket*4; i< bucket.size(); i++) // Add bottom 60% songs to bucket.\n bucket_low.add(bucket.get(i));\n\n int duration = (int)(featurePref.get(Feat.LENGTH) * (60 * 1000)); // min to ms\n\n\n int randomNum = 0;\n int i = bucket_moderate.get(randomNum).getDuration_ms();\n do { // Add moderate tempo songs to playlist\n\n gen_playlist.add(bucket_moderate.get(randomNum)); // Add song to final sorted list.\n\n bucket_moderate.remove(randomNum); // Remove, so no repeated songs.\n\n if (bucket_moderate.isEmpty())\n break;\n\n // Generate randomNum for index of bucket.\n randomNum = (bucket_moderate.size() > 1)\n ? ThreadLocalRandom.current().nextInt(0, bucket_moderate.size() - 1)\n : 0;\n\n i += bucket_moderate.get(randomNum).getDuration_ms(); // Increment current playlist length.\n } while (i<=duration/5); // While current length of playlist <= fifth of desired duration\n\n\n randomNum = 0;\n i = bucket_high.get(randomNum).getDuration_ms();\n do { // Add high tempo songs to playlist\n gen_playlist.add(bucket_high.get(randomNum));\n\n bucket_high.remove(randomNum);\n\n if (bucket_high.isEmpty())\n break;\n\n randomNum = (bucket_high.size() > 1)\n ? ThreadLocalRandom.current().nextInt(0, bucket_high.size() - 1)\n : 0;\n i += bucket_high.get(randomNum).getDuration_ms();\n } while (i<=duration/2); // While current bucket duration <= half of desired duration\n\n\n randomNum = 0;\n i = (!bucket_moderate.isEmpty()) ? bucket_moderate.get(randomNum).getDuration_ms() : -1;\n do { // Add moderate tempo songs to playlist\n if (bucket_moderate.isEmpty())\n break;\n\n gen_playlist.add(bucket_moderate.get(randomNum));\n\n bucket_moderate.remove(randomNum);\n\n if (bucket_moderate.isEmpty())\n break;\n\n randomNum = (bucket_moderate.size() > 1)\n ? ThreadLocalRandom.current().nextInt(0, bucket_moderate.size() - 1)\n : 0;\n\n i += bucket_moderate.get(randomNum).getDuration_ms();\n } while (i<=duration/5);\n\n\n randomNum = 0;\n i = bucket_low.get(randomNum).getDuration_ms();\n do { // Add low tempo songs to playlist\n gen_playlist.add(bucket_low.get(randomNum));\n\n bucket_low.remove(randomNum);\n\n if (bucket_low.isEmpty())\n break;\n\n randomNum = (bucket_low.size() > 1)\n ? ThreadLocalRandom.current().nextInt(0, bucket_low.size() - 1)\n : 0;\n\n i += bucket_low.get(randomNum).getDuration_ms();\n } while (i<=duration/10); // While current bucket duration <= tenth of desired duration\n\n return gen_playlist;\n }", "title": "" }, { "docid": "48cc7eb8ee045d6e9366f2c9b9b27988", "score": "0.49106336", "text": "@Test\n\tpublic void testISBNOrder() {\n\n\t\tLibraryGeneric<String> library = new LibraryGeneric<String>();\n\t\tlibrary.add(9780374292799L, \"Thomas L. Friedman\", \"The World is Flat\");\n\t\tlibrary.add(9780330351690L, \"Jon Krakauer\", \"Into the Wild\");\n\t\tlibrary.add(9780446580342L, \"David Baldacci\", \"Simple Genius\");\n\t\tlibrary.add(9781843193319L, \"Alan Burt Akers\", \"Transit to Scorpio\");\n\t\tlibrary.add(9781843192954L, \"Dennis Radha-Rose\",\n\t\t\t\t\"The Anxiety Relief Program\");\n\t\tlibrary.add(9781843192701L, \"Moyra Caldecott\", \"The Lily and the Bull\");\n\t\tlibrary.add(9781843192039L, \"William Fitzmaurice\",\n\t\t\t\t\"Operation: Sergeant York\");\n\t\tlibrary.add(9781843192022L, \"Roger Taylor\", \"Whistler\");\n\n\t\tArrayList<LibraryBookGeneric<String>> testISBNorder = library\n\t\t\t\t.getInventoryList();\n\n\t\tassertEquals(9780330351690L, testISBNorder.get(0).getIsbn());\n\t\tassertEquals(9781843193319L, testISBNorder\n\t\t\t\t.get(testISBNorder.size() - 1).getIsbn());\n\t}", "title": "" }, { "docid": "0ed4e34a3ed2f774d7e02bf03af10e7b", "score": "0.48880765", "text": "public void albumBubbleSort() {\n boolean madeSwap;\n album tempArray = head;\n int siz = this.getSize();\n //If collection > 0\n if (siz != 0) {\n //Loop through list of albums until no swap is made\n do {\n //Set trigger to false for swap\n madeSwap = false;\n //Loop through each album to check for a swap\n for (int i = 0; i < siz ; i = i + 1) {\n //If next album exists\n if (tempArray != null) {\n //If there is an item to swap it with\n if (tempArray.getNext() != null) {\n //Compare items to see if they are the right way round.\n //If not enter statement\n if (tempArray.getAlbumName().compareTo(tempArray.getNext().getAlbumName()) > 0) {\n //Swap items\n swap(tempArray);\n madeSwap = true;\n }\n }\n }\n //Set the current head to the next item, unless this is last item\n if (tempArray.getNext() != null) {\n tempArray = tempArray.getNext();\n } else {\n tempArray = head;\n }\n }\n //Following loop, reset head of list to start.\n tempArray = resetHead(tempArray);\n\n } while (madeSwap);\n }\n\n //Reset head to temp\n this.head = tempArray;\n }", "title": "" }, { "docid": "5e80fc6096646b2d9317dc0c77013382", "score": "0.48827752", "text": "public void setArtist(String artist){\n this.artist = artist;\n }", "title": "" }, { "docid": "ef4194b0b29ef9428244d2e479343cd0", "score": "0.4878056", "text": "public void clickedArtist(Button button) {\n \n prev.disable();\n next.enable();\n index = 0;\n currentPage = 1;\n songs.sort(\"Artist\");\n sortedCategory = \"artist\";\n \n updateGlyph();\n updateData();\n }", "title": "" }, { "docid": "a8471dc5dacf24f817df98d48549c876", "score": "0.48756522", "text": "private void cleanAlbumList()\n {\n for (int i = 0; i < albumList.size(); i++)\n {\n if (albumList.get(i) == null)\n {\n albumList.remove(i);\n i--;\n }\n }\n\n // Sort the list by alphabetical order\n Collections.sort(albumList, new Comparator<Album>()\n {\n public int compare(Album a, Album b)\n {\n return a.getTitle().compareTo(b.getTitle());\n }\n });\n }", "title": "" }, { "docid": "bcbeb13faef38969b4304fccc31c8d35", "score": "0.48690733", "text": "public void setArtist(String artist) {\n\t\tthis.artist = artist;\n\t}", "title": "" }, { "docid": "9a6a83339e50762b16de6d10ff7d5b20", "score": "0.48677042", "text": "private void showAllSelectedArtistSongs() throws IOException, ClassNotFoundException { //case 6\n System.out.println((String) input.readObject());\n output.writeObject(this.scan.nextLine()); /* Album title entered by the user */\n if((boolean) input.readObject()) {\n System.out.println((String) input.readObject());\n } else {\n LinkedList<Song> artistSongs = (LinkedList<Song>) input.readObject();\n for(int i=0;i<artistSongs.size();i++) {\n System.out.println(i+\"- \"+artistSongs.get(i)+\"\\n\");\n }\n System.out.println(artistSongs.size()+\"- None\\n\");\n musicPlayingOrInformation(artistSongs);\n }\n }", "title": "" }, { "docid": "819235834a510e8a1200d61ae6494ad1", "score": "0.4843342", "text": "public void getAllSong()\n {\n ContentResolver musicResolver = getContentResolver();\n Uri musicUri = android.provider.MediaStore.Audio.Media.EXTERNAL_CONTENT_URI;\n Cursor musicCursor = musicResolver.query(musicUri, null, MediaStore.Audio.Media.IS_MUSIC + \"!= 0\", null, null);\n\n if (musicCursor != null && musicCursor.moveToFirst())\n {\n // Add songs to list\n do\n {\n // Get all the important elements\n String artist = musicCursor.getString(musicCursor.getColumnIndexOrThrow(MediaStore.Audio.Media.ARTIST));\n String album = musicCursor.getString(musicCursor.getColumnIndexOrThrow(MediaStore.Audio.Media.ALBUM));\n String title = musicCursor.getString(musicCursor.getColumnIndexOrThrow(MediaStore.Audio.Media.TITLE));\n String data = musicCursor.getString(musicCursor.getColumnIndexOrThrow(MediaStore.Audio.Media.DATA));\n long albumId = musicCursor.getLong(musicCursor.getColumnIndexOrThrow(MediaStore.Audio.Media.ALBUM_ID));\n long artistId = musicCursor.getLong(musicCursor.getColumnIndexOrThrow(MediaStore.Audio.Media.ARTIST_ID));\n long songId = musicCursor.getLong(musicCursor.getColumnIndexOrThrow(MediaStore.Audio.Media._ID));\n int duration = musicCursor.getInt(musicCursor.getColumnIndexOrThrow(MediaStore.Audio.Media.DURATION));\n int year = musicCursor.getInt(musicCursor.getColumnIndexOrThrow(MediaStore.Audio.Media.YEAR));\n int trackNumber = musicCursor.getInt(musicCursor.getColumnIndexOrThrow(MediaStore.Audio.Media.TRACK));\n\n Song song = new Song(artist, album, title, data, albumId, songId, artistId, duration, trackNumber, year, this);\n\n // Add the song to its album\n setAlbumList(song);\n song.setAlbumRef(albumList.get((int) song.getAlbumID()));\n\n // Store the song\n songList.add(song);\n\n } while (musicCursor.moveToNext());\n musicCursor.close();\n }\n\n // Sort the list by alphabetical order\n Collections.sort(songList, new Comparator<Song>()\n {\n public int compare(Song a, Song b)\n {\n return a.getTitle().compareTo(b.getTitle());\n }\n });\n }", "title": "" }, { "docid": "4a1d401b28af6db750381e0420816d71", "score": "0.4838658", "text": "private void showAllArtists() throws IOException, ClassNotFoundException { //case 10\n System.out.println((String) input.readObject());\n if((boolean) input.readObject()) {\n System.out.println((String) input.readObject());\n } else {\n LinkedList<String> artistsName = (LinkedList<String>) input.readObject();\n for(int i=0;i<artistsName.size();i++) {\n System.out.println(\"\\n\"+i+\"- \"+artistsName.get(i));\n }\n System.out.println(\"\\n\"+artistsName.size()+\"- None\");\n System.out.println((String) input.readObject());\n try {\n int numberArtistName = Integer.parseInt(this.scan.nextLine());\n output.writeObject(numberArtistName);\n if(numberArtistName==artistsName.size()) {\n System.out.println((String) input.readObject());\n } else if((numberArtistName<artistsName.size())&&(numberArtistName>=0)) {\n System.out.println((String) input.readObject());\n LinkedList<Song> songsToDisplayArtist = (LinkedList<Song>) input.readObject();\n for(int i = 0; i < songsToDisplayArtist.size(); i++) {\n System.out.println(\"\\n\"+i+\"- \"+ songsToDisplayArtist.get(i));\n }\n System.out.println(\"\\n\"+songsToDisplayArtist.size()+\"- None\");\n musicPlayingOrInformation(songsToDisplayArtist);\n } else {\n System.out.println((String) input.readObject());\n }\n } catch(NumberFormatException nfe) {\n output.writeObject(artistsName.size());\n System.out.println((String) input.readObject());\n }\n }\n }", "title": "" }, { "docid": "232f3865f12bc4481e9399261898c23f", "score": "0.48375466", "text": "public void sortClubsById(){\n\t\t\n\t\tfor(int i = 0; i < clubs.size() -1; i++){\n\t\t\t\n\t\t\tClub minor = clubs.get(i);\n\t\t\tint minorPos = i;\n\t\t\t\n\t\t\tfor(int j = i + 1; j < clubs.size(); j++){\n\t\t\t\t\n\t\t\t\tClub actual = clubs.get(j);\n\t\t\t\t\n\t\t\t\tif(actual.compareTo( minor) < 0){\n\t\t\t\t\t\n\t\t\t\t\tminor = actual;\t\t\t\t\t\n\t\t\t\t\tminorPos = j;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tClub tmp = clubs.get(i);\n\t\t\tclubs.set(i, minor);\n\t\t\tclubs.set(minorPos, tmp);\n\t\t}\n\t}", "title": "" }, { "docid": "3b70e63adf0699515c7304ad93ad4b8c", "score": "0.4837262", "text": "public void setArtist(String anArtist) \n\t{\n\t\tthis.artist = anArtist;\n\t}", "title": "" }, { "docid": "49531d2e64f4a1ba9923da130b357f05", "score": "0.4834618", "text": "@Test\n public void sortTest2() {\n String[] content = new String[]{\"q\", \"w\", \"e\", \"r\", \"t\", \"y\", \"u\", \"i\", \"o\", \"p\"};\n ObservableList<String> seq = ObservableCollections.observableArrayList(content);\n final MockListObserver<String> observer = new MockListObserver<String>();\n seq.addListener(observer);\n ObservableCollections.sort(seq);\n observer.check1Permutation(seq, new int[]{4, 8, 0, 5, 6, 9, 7, 1, 2, 3});\n seq.setAll(\"q\", \"w\", \"e\", \"r\", \"t\", \"y\", \"u\", \"i\", \"o\", \"p\");\n observer.clear();\n ObservableCollections.sort(seq, (o1, o2) -> o1.charAt(0) - o2.charAt(0));\n observer.check1Permutation(seq, new int[]{4, 8, 0, 5, 6, 9, 7, 1, 2, 3});\n }", "title": "" }, { "docid": "7de3a036480c6928a9f9b967962c12d5", "score": "0.4823355", "text": "public Song(String title, String artist, int year) {\n\t\tthis.title = title;\n\t\tthis.artist = artist;\n\t\tthis.year = year;\n\t}", "title": "" }, { "docid": "818744ff3057c6bb6cfbd15061157f88", "score": "0.48206893", "text": "@Test\n public void testAuthor() {\n assertNotEquals(b1.getAuthor(), b2.getAuthor());\n assertEquals(b1.getAuthor(), b3.getAuthor());\n assertNotEquals(b2.getAuthor(), b3.getAuthor());\n }", "title": "" }, { "docid": "646585884f581bc4f7c0e87958c8e336", "score": "0.48149276", "text": "public void hireArtist(Artist artist){\n if(!this.artists.contains(artist)) {\n this.artists.add(artist);\n spendings += artist.getPrice();\n } else{\n System.out.println(\"Artiest is al ingehuurd voor dit evenement\");\n }\n }", "title": "" }, { "docid": "5562f71877b8d529b1d8b4fc72bfa058", "score": "0.4784052", "text": "@org.junit.jupiter.api.Test\n void testGetAuthors() throws IOException {\n File file = new File(\"./testingFiles/Test1.pdf\");\n try {\n //Does not need to parse the entire doc and needs format\n documentParser = new DocumentParser(file, false, true);\n } catch (IOException e) {\n e.printStackTrace();\n }\n documentParser.getTitle();\n String answer = documentParser.getAuthors();\n assertEquals(\"No authors found\", answer);\n documentParser.close();\n\n\n //Case 2: Files with titles\n\n file = new File(\"./testingFiles/Test2.pdf\");\n try {\n //Does not need to parse the entire doc and needs format\n documentParser = new DocumentParser(file, false, true);\n } catch (IOException e) {\n e.printStackTrace();\n }\n documentParser.getTitle();\n answer = documentParser.getAuthors();\n assertEquals(\"Avi Ashkenazi, Vishva M Dixit\", answer);\n documentParser.close();\n\n\n file = new File(\"./testingFiles/Test3.pdf\");\n try {\n //Does not need to parse the entire doc and needs format\n documentParser = new DocumentParser(file, false, true);\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n documentParser.getTitle();\n answer = documentParser.getAuthors();\n assertEquals(\"DW Nicholson\", answer);\n documentParser.close();\n\n\n file = new File(\"./testingFiles/Test4.pdf\");\n try {\n //Does not need to parse the entire doc and needs format\n documentParser = new DocumentParser(file, false, true);\n } catch (IOException e) {\n e.printStackTrace();\n }\n documentParser.getTitle();\n answer = documentParser.getAuthors();\n assertEquals(\"Elizabeth A. Slee, Mary T. Harte, Ruth M. Kluck\", answer);\n documentParser.close();\n\n file = new File(\"./testingFiles/B.pdf\");\n try {\n //Does not need to parse the entire doc and needs format\n documentParser = new DocumentParser(file, false, true);\n } catch (IOException e) {\n e.printStackTrace();\n }\n documentParser.getTitle();\n answer = documentParser.getAuthors();\n assertEquals(\"Honglin Li, Hong Zhu, Chi-jie Xu, Junying Yuan\", answer);\n documentParser.close();\n\n\n file = new File(\"./A.pdf\");\n try {\n //Does not need to parse the entire doc and needs format\n documentParser = new DocumentParser(file, false, true);\n } catch (IOException e) {\n e.printStackTrace();\n }\n documentParser.getTitle();\n answer = documentParser.getAuthors();\n assertEquals(\"Xu Luo, Imawati Budihardjo, Hua Zou\", answer);\n documentParser.close();\n\n\n }", "title": "" }, { "docid": "494cb1184a1ed5c47779c75635e80e0d", "score": "0.47725588", "text": "@Test\n void sortByBoth(){\n /**\n * we know that there are three cards in the hand(All of spades).\n * we add a card AceOfHeats to the hand.\n * then sort it nand check te order\n */\n List<Integer> rankOrder = new ArrayList<>();\n rankOrder.add(cardAce.getRank().getPips());\n rankOrder.add(cardFour.getRank().getPips());\n rankOrder.add(cardTen.getRank().getPips());\n rankOrder.add(cardAce.getRank().getPips());\n\n List<Character> suitOrder = new ArrayList<Character>();\n suitOrder.add(SPADES);\n suitOrder.add(SPADES);\n suitOrder.add(SPADES);\n suitOrder.add(HEART);\n\n\n hand.accept(cardAceHeart);\n\n hand.sort(\"Both\");\n List<Card> presentHandCards = hand.showCards();\n\n int rankToCheck;\n char suitToCheck;\n char cardSuit;\n int cardrankOrder;\n\n for (int i =0;i< presentHandCards.size();i++){\n cardrankOrder = presentHandCards.get(i).getRank().getPips();\n cardSuit = presentHandCards.get(i).getSuit().getSymbol();\n\n rankToCheck = rankOrder.get(i);\n suitToCheck = suitOrder.get(i);\n\n assertEquals(cardrankOrder, rankToCheck);\n assertEquals(cardSuit,suitToCheck);\n }\n\n }", "title": "" } ]
65a461e9d42441195b7ac61add65a5b3
// After pressing the finish button, the system Continue to the next screen add course
[ { "docid": "a2c33c83e6a34163904eec64086f972b", "score": "0.6139319", "text": "@FXML\r\n void finish(ActionEvent event) {\r\n\t\t try {\r\n\t\t\t FXMLLoader loader = new FXMLLoader(getClass().getResource(\"/SystemManager/SystemManagerAddCourseWindow.fxml\"));\r\n\t\t\t loader.setController(new SystemManagerAddCourseController(\"SystemManagerAddCourseControllerID\"));\r\n\t\t\t Pane login_screen_parent = loader.load();\r\n\t\t\t Scene login_screen_scene=new Scene(login_screen_parent);\r\n\t\t\t\t\tStage app_stage = (Stage) ((Node) event.getSource()).getScene().getWindow();//the scene that the event came from.\r\n\t\t\t\t\tapp_stage.hide();\r\n\t\t\t\t\tapp_stage.setScene(login_screen_scene);\r\n\t\t\t\t\tapp_stage.show(); \r\n\t\t } catch (IOException e) {//problem with the teacherWindow.xml file.\r\n\t\t\t\t\tSystem.err.println(\"Missing SystemManagerAddCourseWindow.fxml file\");\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t}\r\n }", "title": "" } ]
[ { "docid": "33954f86cd5b356759667ffbbabb7a17", "score": "0.72567695", "text": "public void goCoursePage() {\n\t\tmainCards.show(container, \"COURSES\");\t\n\t}", "title": "" }, { "docid": "a7a85859319c35f4857adb7073890055", "score": "0.71309775", "text": "@Override\n\tpublic void addCourseOnBackPressed() {\n\t\taddCourseOnBackPressed = true;\n\t}", "title": "" }, { "docid": "063be65926beaea4b20a30a4674d7ac7", "score": "0.7079202", "text": "public void startcourse() {\n\t\tstartLecture.click();\n\t}", "title": "" }, { "docid": "391c232991f8c98724d260849c2b9b70", "score": "0.7072507", "text": "@Override\n public void onClick(View v) {\n Intent intent = new Intent(MainActivity.this, NewCourseActivity.class);\n startActivityForResult(intent, ADD_COURSE_REQUEST);\n }", "title": "" }, { "docid": "285244e7752d9fcd3d19b13a89dcdff9", "score": "0.67928606", "text": "public void ClickAddtoCourse()\r\n\t{\r\n\t\tthis.AddtoCourse.click();\r\n\t}", "title": "" }, { "docid": "6e64d31adfad523e28242806c8829af4", "score": "0.66765636", "text": "public void ClickAddCourse()\r\n\t{\r\n\t\tthis.AddCourse.click();\r\n\t}", "title": "" }, { "docid": "486940f76b8b5e67a4383587f08385ad", "score": "0.630821", "text": "public void saveCourse(View view){\n if(courseText.getText().toString() != null ||courseText.getText().toString() != \"\" )\n dbHelper.makeEntry(\"default\",\"default\",courseText.getText().toString());\n Intent intent = new Intent(this, MainActivity.class);\n startActivity(intent);\n }", "title": "" }, { "docid": "6cfdd394da136d75a6a9ae35dc6b1d25", "score": "0.62475735", "text": "private void goNext(){\r\n //Intent nextPage = new Intent(this, ResultScreen.class);\r\n //nextPage.putExtra(passColl, collection);\r\n //startActivity(nextPage);\r\n }", "title": "" }, { "docid": "1e947c51d4e73b2dfd3a75df46ec779e", "score": "0.624563", "text": "@Override\n public void onClick(View v) {\n Intent MainCoursesIntent = new Intent(MainActivity.this,MainCoursesActivity.class);\n startActivity(MainCoursesIntent);\n }", "title": "" }, { "docid": "e610cde5db306c7d2679e01e621f55ac", "score": "0.619923", "text": "@Test\n public void CreateProfileWithNoCourse(){\n Espresso.onView(withId(R.id.sign_up_name_button)).perform(typeText(name_t));\n Espresso.onView(withId(R.id.school_button)).perform(typeText(school_t));\n Espresso.onView(withId(R.id.major_button)).perform(typeText(major_t));\n Espresso.onView(withId(R.id.phone_number_button)).perform(typeText(number_t));\n Espresso.closeSoftKeyboard();\n Espresso.onView(withId(R.id.course_page_done_button)).perform(click());\n }", "title": "" }, { "docid": "144d04b6571cb5a5d428277383b237d8", "score": "0.6196571", "text": "@Override\n public void onClick(DialogInterface dialog, int which) {\n enrolInCourse();\n }", "title": "" }, { "docid": "9dd7ee6b81d5f73ea0853b856141020f", "score": "0.6192736", "text": "public void SelectCourse()\r\n\t{\r\n\t\tthis.Courselist.click();\r\n\t}", "title": "" }, { "docid": "d83fc6b47119f4bdf6ffecdaea3ac800", "score": "0.6178819", "text": "public void coursesActivity(View view) {\n Intent intent = new Intent(this, courses_button.class);\n startActivity(intent);\n }", "title": "" }, { "docid": "0515ccbf40f992f083afe638446b0a83", "score": "0.61735713", "text": "private void backAction() {\n admin.populateCmbcmbCourse();\n main.getCardLayout().previous(main.getCards());\n main.getCards().remove(admin.acjp);\n }", "title": "" }, { "docid": "c8153187c2ef71c5eb5133a7deb00d22", "score": "0.61389375", "text": "@Override\n public void onClick(View v) {\n Intent intent = new Intent(activity, AddOfficeHourActivity.class);\n intent.putExtra(\"course\", course);\n activity.startActivity(intent);\n }", "title": "" }, { "docid": "584bb6aed6ed7a0f90a07d08993826f8", "score": "0.6089454", "text": "@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\tsetContentView(R.layout.addcourse);\n\t\t\n\t\tButton back = (Button) findViewById(R.id.back);\n\t\tback.setOnClickListener(new Button.OnClickListener() {\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tonBackPressed();\n\t\t\t}\n\t\t}); \n\t\t\n\t\tTextView header = (TextView) findViewById(R.id.header);\n\t\theader.setTypeface(Fonts.getOpenSansBold(AddCourse.this));\n\t\t\n\t\tBundle b = this.getIntent().getExtras();\n\t\tcourse_id = b.getInt(\"course_id\");\n\t\tif (b.containsKey(\"course_time_id\")){\n\t\t\tcourse_time_id = b.getInt(\"course_time_id\");\n\t\t\tstart_time = b.getInt(\"start_time\");\n\t\t\tend_time = b.getInt(\"end_time\");\n\t\t\tlocation = b.getString(\"location\");\n\t\t\tif (b.containsKey(\"from_social_schedule\")){\n\t\t\t\tfrom_social_schedule = b.getBoolean(\"from_social_schedule\");\n\t\t\t}\n\t\t\t\n\t\t\tstart_time_calendar = Calendar.getInstance(Locale.getDefault());\n\t\t\tend_time_calendar = Calendar.getInstance(Locale.getDefault());\n\t\t\tif (from_social_schedule){\n\t\t\t\tstart_time_calendar.setTimeInMillis(Long.parseLong(String.valueOf(start_time)) * 1000);\n\t\t\t\tend_time_calendar.setTimeInMillis(Long.parseLong(String.valueOf(end_time)) * 1000);\n\t\t\t} else {\n\t\t\t\tstart_time_calendar.setTimeInMillis(Long.parseLong(String.valueOf(TimeCounter.getEpochClassTime(start_time))) * 1000);\n\t\t\t\tend_time_calendar.setTimeInMillis(Long.parseLong(String.valueOf(TimeCounter.getEpochClassTime(end_time))) * 1000);\n\t\t\t}\n\t\t}\n\t\tdaySelected = b.getInt(\"daySelected\");\n\t\tcourse_code = b.getString(\"course_code\");\n\t\t\n\t\theader.setText(course_code.toUpperCase());\n\t\t\n\t\ttvStartTime = (TextView) findViewById(R.id.tvStartTime);\n\t\ttvEndTime = (TextView) findViewById(R.id.tvEndTime);\n\t\t\n\t\tbLocation = (Button) findViewById(R.id.bLocation);\n\t\tif (location != null){\n\t\t\tbLocation.setText(location);\n\t\t}\n\t\tbLocation.setOnClickListener(new Button.OnClickListener() {\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tSearchGlobalLocation.act = AddCourse.this;\n\t\t\t\t\n\t\t\t\tIntent i = new Intent(AddCourse.this, SearchGlobalLocation.class);\n\t\t\t\tstartActivity(i);\t\t\t\n\t\t\t}\n\t\t}); \n\t\t\n\t\trlStartTime = (RelativeLayout) findViewById(R.id.rlStartTime);\n\t\trlEndTime = (RelativeLayout) findViewById(R.id.rlEndTime);\n\t\t\n\t\trlStartTime.setOnClickListener(new View.OnClickListener() {\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tshowDialog(TIME_DIALOG_ID_START);\n\t\t\t}\n\t\t});\n\t\t\n\t\trlEndTime.setOnClickListener(new View.OnClickListener() {\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tshowDialog(TIME_DIALOG_ID_END);\n\t\t\t}\n\t\t});\n\t\t\n\t\tbDelete = (Button) findViewById(R.id.bDelete);\n\t\tif (course_time_id == -1){\n\t\t\tbDelete.setVisibility(View.GONE);\n\t\t}\n\t\tbDelete.setOnClickListener(new View.OnClickListener() {\n\t\t\tpublic void onClick(View v2) {\n\t\t\t\tAlertDialog alert = new AlertDialog.Builder(AddCourse.this).create();\n\t \t\talert.setMessage(getString(R.string.Delete_course_alert));\n\t \t\talert.setButton(getString(R.string.No), new DialogInterface.OnClickListener() {\n\t \t\t\t\n\t \t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t \t\t\t\t// TODO Auto-generated method stub\n\t \t\t\t}\n\t \t\t});\n\t \t\talert.setButton2(getString(R.string.Yes), new DialogInterface.OnClickListener() {\n\t \t\t\t\n\t \t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t \t\t\t\tTaskQueueImage.addTask(new DeleteClassThread(), AddCourse.this);\n\t \t\t\t}\n\t \t\t});\n\t \t\talert.show();\n\t\t\t}\n\t\t});\n\t\t\n\t\tbSave = (TextView) findViewById(R.id.bSave);\n\t\tbSave.setOnClickListener(new View.OnClickListener() {\n\t\t\tpublic void onClick(View v2) {\n\t\t\t\tif (sSecond >= eSecond){\n\t\t\t\t\tAlertDialog alert = new AlertDialog.Builder(AddCourse.this).create();\n\t\t \t\talert.setMessage(getString(R.string.Add_course_alert));\n\t\t \t\talert.setButton(getString(R.string.OK), new DialogInterface.OnClickListener() {\n\t\t \t\t\t\n\t\t \t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t \t\t\t\t// TODO Auto-generated method stub\n\t\t \t\t\t}\n\t\t \t\t});\n\t\t \t\talert.show();\n\t\t\t\t} else {\n\t\t\t\t\tTaskQueueImage.addTask(new SyncClassThread(), AddCourse.this);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\t\n\t\tif (start_time != -1 && end_time != -1){\n\t\t\tif (from_social_schedule){\n\t\t\t\tsSecond = start_time_calendar.get(Calendar.HOUR_OF_DAY)*3600 + start_time_calendar.get(Calendar.MINUTE)*60;\n\t\t\t\teSecond = end_time_calendar.get(Calendar.HOUR_OF_DAY)*3600 + end_time_calendar.get(Calendar.MINUTE)*60;\n\t\t\t} else {\n\t\t\t\tsSecond = start_time;\n\t\t\t\teSecond = end_time;\n\t\t\t}\n\t\t\t\n\t\t\ttvStartTime.setText(TimeCounter.getClassTime(sSecond));\n\t\t\ttvEndTime.setText(TimeCounter.getClassTime(eSecond));\n\t\t}\n\t\t\n\t\tTaskQueueImage.addTask(new getCouseIdNum(), AddCourse.this);\n\t}", "title": "" }, { "docid": "5a0c9797046fc822475eedd47d0899ef", "score": "0.60731596", "text": "public void gotoSignupChooseCourses() {\n FragmentManager manager = getActivity().getSupportFragmentManager();\n FragmentTransaction transaction = manager.beginTransaction();\n transaction.setCustomAnimations(R.anim.enter_from_right, R.anim.exit_to_left);\n transaction.replace(R.id.activity_signuplogin_container, SignupChooseCourses.newInstance());\n transaction.addToBackStack(\"SignupChooseUniversity\");\n transaction.commit();\n }", "title": "" }, { "docid": "33fe506a36bd1fd69ae634c4b53d1d5d", "score": "0.60644203", "text": "public void showSections240( View v)\n {\n String course = \"240\";\n Intent contentIntent = new Intent(MainActivity.this, CourseActivity.class);\n contentIntent.putExtra(\"course\", course);\n startActivity(contentIntent);\n }", "title": "" }, { "docid": "07337fc1130543ecc4fcfa9d3765181d", "score": "0.60430855", "text": "public void btnContinue()\r\n\t{\r\n\t\tbtncontinue.click();\r\n\t}", "title": "" }, { "docid": "474f03d920178b91aa85559393482117", "score": "0.60370845", "text": "public void go_to_Courses(View view) {\n Intent intent = new Intent(this, CoursesActivity.class);\n startActivity(intent);\n }", "title": "" }, { "docid": "0b2922c2983fc907da2664bdaf41b75b", "score": "0.6034138", "text": "public void showSections241( View v)\n {\n String course = \"241\";\n Intent contentIntent = new Intent(MainActivity.this, CourseActivity.class);\n contentIntent.putExtra(\"course\", course);\n startActivity(contentIntent);\n }", "title": "" }, { "docid": "94927c24cde003dd848221b70b0a85a1", "score": "0.6033317", "text": "@Test(dependsOnMethods = \"loadPage\", description = \"Login course page\")\n\tpublic void loginCourses() throws Exception\n\t{\n\t\ttegrity.loginCourses(\"User1\");// log in courses page\n\t\tinitializeCourseObject();\n\t\t\n\t\t// save destination course name and delete all recording from it\n\t\tString destination_course_name = course.selectCourseThatStartingWith(\"abc\");\n\t\tSystem.out.println(\"Destination course: \" + destination_course_name);\n\t\trecord.deleteAllRecordings(delete_menu);\n\t\trecord.returnToCourseListPage();\n\t\t\n\t\t// 2. Select course.\n\t\tcurrent_course = course.selectCourseThatStartingWith(\"Ab\");\n\t\tSystem.out.println(\"Source course: \" + current_course);\n\t\t\n\t\t// 3. Select recording.\n\t\tString selected_recording_name = record.getFirstRecordingTitle();\n\t\trecord.SelectOneCheckBoxOrVerifyAlreadySelected(record.checkbox);;\n\t\tSystem.out.println(\"Selected recording name: \" + selected_recording_name);\n\t\t\n\t\t// 4. Select \"Recording Tasks -> Move\" menu item.\n\t\trecord.clickOnRecordingTaskThenMove();\n\t\t\n\t\t// 5. Select destination course.\n\t\tcopy.selectTargetCourseFromCourseList(destination_course_name);\n\n\t\t// 6. Click \"Move Recording(s)\" button.\n\t\tmove_window.clickOnMoveRecordings();\n\t\t\n\t\t// 7. Message box \"Recording has been queued for move\" is displayed.\n\t\t// 8. Click \"OK\" button.\n\t\tconfirm_menu.clickOnOkButtonAfterConfirmMoveRecording();\n\t\t\n\t\tThread.sleep(1000);\n\t\t\n\t\t// 9. Message box is closed.\n\t\tboolean is_closed = confirm_menu.isConfirmationMenuClosed();\n\t\t\n\t\tif (is_closed) {\n\t\t\tSystem.out.println(\"Message box is closed\");\n\t\t\tATUReports.add(\"Message box.\", \"Message box is closed\", \"Message box is closed\", LogAs.PASSED, null);\n\t\t\tAssert.assertTrue(true);\n\t\t} else {\n\t\t\tSystem.out.println(\"Message box is not closed\");\n\t\t\tATUReports.add(\"Message box.\", \"Message box is closed\", \"Message box is not closed\", LogAs.FAILED, null);\n\t\t\tAssert.assertTrue(false);\n\t\t}\n\t\t\n\t\t// 10. \"Move\" window is closed.\n\t\tis_closed = move_window.isMoveMenuClosed();\n\t\t\n\t\tif (is_closed) {\n\t\t\tSystem.out.println(\"Move window is closed\");\n\t\t\tATUReports.add(\"Move window.\", \"Move window is closed\", \"Move window is closed\", LogAs.PASSED, null);\n\t\t\tAssert.assertTrue(true);\n\t\t} else {\n\t\t\tSystem.out.println(\"Move window is not closed\");\n\t\t\tATUReports.add(\"Move window.\", \"Move window is closed\", \"Move window is not closed\", LogAs.FAILED, null);\n\t\t\tAssert.assertTrue(false);\n\t\t}\n\t\t\n\t\t// 11. The source recording has status \"Being copying from\".\n\t\trecord.checkRecordingInIndexIStatus(1, \"Being moved from\");\n\t\t\n\t\t// 12. While recording has a \"Being moving from\" status, select \"Recording Tasks -> Move\" menu item.\n\t\trecord.SelectOneCheckBoxOrVerifyAlreadySelected(record.checkbox);\n\t\trecord.clickOnRecordingTaskThenMove();\n\t\t\n\t\tThread.sleep(1000);\n\t\t\n\t\t// 13. Message box \"Cannot copy in-process or failed recordings\" is displayed.\n\t\t// 14. Click \"OK\" button.\n\t\tconfirm_menu.clickOnOkButtonAfterCannotMoveInProcessOrFailRecordings();\n\t\t\n\t\t// 15. Message box is closed.\n\t\tconfirm_menu.isConfirmationMenuClosed();\n\t\t\n\t\trecord.checkStatusExistenceForMaxTTime(180);\n\t\t\n\t\t// 16. Click \"Courses\" link in the breadcrumbs.\n\t\trecord.returnToCourseListPage();\n\t\t\n\t\tThread.sleep(2000);\n\t\t\n\t\t// 17. Select destination course.\n\t\tcourse.clickOnTargetCourseName(destination_course_name);\n\t\t\n\t\t// 18. Verify that recording is copied successfully.\n\t\tList<String> target_course_recording_list = record.getCourseRecordingList();\n\t\t\n\t\t//System.out.println(target_course_recording_list.size());\n\t\t\n\t\tint i = 0;\n\t\tboolean is_recording_found = false;\n\t\tfor(String recording : target_course_recording_list) {\n\t\t\ti++;\n\t\t\tif(recording.equals(selected_recording_name)) {\n\t\t\t\tis_recording_found = true;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t\n\t\t// 18.1. Recording is displayed in \"Recordings\" tab\n\t\tif(is_recording_found) {\n\t\t\tSystem.out.println(\"Recording is displayed in recordings tab\");\n\t\t\tATUReports.add(\"Recording title.\", \"Recording is displayed in recordings tab\", \"Recording is displayed in recordings tab\", LogAs.PASSED, null);\n\t\t\tAssert.assertTrue(true);\n\t\t} else {\n\t\t\tSystem.out.println(\"Recording is not displayed in recordings tab\");\n\t\t\tATUReports.add(\"Recording title.\", \"Recording is displayed in recordings tab\", \"Recording is not displayed in recordings tab\", LogAs.FAILED, null);\n\t\t\tAssert.assertTrue(false);\n\t\t}\n\t\t\n\t\t// 18.2. Recording doesn't have a \"Failed\" status\n\t\trecord.checkThatRecordingStatusTargetIndexIsNotXWithTimeout(i, \"Failed\", 1);\n\t}", "title": "" }, { "docid": "ad361ac0d1d6d83b279c0a7dbae961d5", "score": "0.6032066", "text": "public void continueBtnClick() {\n continueBtn.click();\n }", "title": "" }, { "docid": "e4c412163ffed481f39d201df8354f89", "score": "0.6028265", "text": "private void next() {\n Button buttonContinue = findViewById(R.id.btnContinue);\n buttonContinue.setOnClickListener(new View.OnClickListener(){\n @Override\n public void onClick(View v) {\n saveName();\n Intent next = new Intent(MainActivity.this, MainGroups.class);\n startActivity(next);\n }\n });\n\n }", "title": "" }, { "docid": "347cb6db3cf1091a67e1c74a7aa989f6", "score": "0.6021001", "text": "public void addCourse() { \n\t\t// When course is added, you have to add indexnumbers and lessons too\n\t\tString school;\n\t\tString coursecode;\n\t\tint noofaus;\n\t\tGerType gertype;\n\t\tint vacancyInCourse = 0;\n\t\tint numberofindexnumbers;\n\t\t//----\n\t\tString indexnumber;\n\t\tint vacancyInIndex;\n\t\tint numberoflessons;\n\t\t//----\n\t\tint totalnumberoflessons = 0;\n\t\tString LessonID;\n\t\tLessonType lessonType;\n\t\tDay day;\n\t\tString lessonStartTime;\n\t\tString lessonEndTime;\n\t\tString venue;\n\t\tString str_NumAU = null;\n\t\tString str_NumI = null;\t\t\n\t\t\n\t\tSystem.out.println(\"Enter the following to add course: \");\n\t\tSystem.out.println(\"School, Course Code, Number of AU, GerType, Number of Indexes\\n\");\n\t\t\n\t\t// School (Cannot be empty and cannot contain digit)\n\t\tSystem.out.print(\"School: \");\n\t\tschool = myscanner.nextLine();\n\t\tif (school.isEmpty()) {\n\t\t\tSystem.out.println(\"Cannot be empty! \\n\");\n\t\t\treturn;\n\t\t}\n\t\tif (MainApp.containsDigit(school))\n\t\t\treturn;\n\t\t\n\t\t// Course Code (Cannot be empty)\n\t\tSystem.out.print(\"Course Code: \");\n\t\tcoursecode = myscanner.nextLine();\n\t\tif (MainApp.checkIfEmpty(coursecode))\n\t\t\treturn;\n\t\tif(MainApp.courseModel.hasObject(coursecode)) System.out.println(\"Sorry, course code already exist, please enter another course code! \\n\");\n\t\telse {\n\t\t\t// Number of AUs (Cannot contain non-digits)\n\t\t\tSystem.out.print(\"Number of AU:\");\n\t\t\tstr_NumAU = myscanner.nextLine();\n\t\t\t// Check if the string contains non-number\n\t\t\tif (MainApp.containsNonDigit(str_NumAU))\n\t\t\t\treturn;\n\t\t\telse\n\t\t\t\tnoofaus = Integer.parseInt(str_NumAU);\n\t\t\t\n\t\t\t// Ger Type (Enum)\n\t\t\tSystem.out.print(\"GerType (CORE/BM/LA/STS): \");\n\t\t\tgertype = GerType.valueOf(myscanner.nextLine());\n\n\t\t\t// Number of indexes (Cannot contain non-digit)\n\t\t\tSystem.out.print(\"Number of Indexes: \");\n\t\t\tstr_NumI = myscanner.nextLine();\n\t\t\tif (MainApp.containsNonDigit(str_NumI))\n\t\t\t\treturn;\n\t\t\telse\n\t\t\t\tnumberofindexnumbers = Integer.parseInt(str_NumI);\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\tString[] indexnumbers = new String[numberofindexnumbers];\n\t\t\tfor(int i=0; i<numberofindexnumbers; i++) {\n\t\t\t\tSystem.out.print(\"Enter Index Number: \");\n\t\t\t\tindexnumbers[i] = myscanner.nextLine();\n\t\n\t\t\t\t\n\t\t\t\tSystem.out.println(\"-----Enter Index Number \" + indexnumbers[i] + \" details-----\");\n\t\t\t\tindexnumber = indexnumbers[i];\n\t\t\t\t\n\t\t\t\tSystem.out.print(\"Enter number of Vacancy in Index:\");\n\t\t\t\tvacancyInIndex = Integer.parseInt(myscanner.nextLine());\n\t\t\t\tvacancyInCourse += vacancyInIndex;\n\t\t\t\tSystem.out.print(\"Enter number of Lessons in Index:\");\n\t\t\t\tnumberoflessons = Integer.parseInt(myscanner.nextLine());\n\t\t\t\t\n\t\t\t\t//adding lessons\n\t\t\t\tString[] lessons = new String[numberoflessons];\n\t\t\t\tfor(int j=0; j<lessons.length; j++) {\n\t\t\t\t\tSystem.out.println(\"---------Lesson \" + (j+1)+ \"---------\");\n\t\t\t\t\tSystem.out.print(\"Enter Lesson ID:\");\n\t\t\t\t\tlessons[j] = myscanner.nextLine();\n\t\t\t\t\tLessonID = lessons[j];\n\t\t\t\t\tSystem.out.print(\"Enter type of Lesson (LECTURE/LAB/TUTORIAL):\");\n\t\t\t\t\tlessonType = LessonType.valueOf(myscanner.nextLine());\n\t\t\t\t\tSystem.out.print(\"Day (MONDAY/TUESDAY...):\");\n\t\t\t\t\tday = Day.valueOf(myscanner.nextLine());\n\t\t\t\t\tSystem.out.print(\"Lesson Start Time:\");\n\t\t\t\t\tlessonStartTime = myscanner.nextLine();\n\t\t\t\t\tSystem.out.print(\"Lesson End Time:\");\n\t\t\t\t\tlessonEndTime = myscanner.nextLine();\n\t\t\t\t\tSystem.out.print(\"Enter Venue:\");\n\t\t\t\t\tvenue = myscanner.nextLine();\n\t\t\t\t\tstaffuimngr.addLessons(LessonID, lessonType, day, lessonStartTime, lessonEndTime, venue);\n\t\t\t\t\tSystem.out.println(\"---------------------------\");\n\t\t\t\t}\n\t\t\t\tstaffuimngr.addIndexNumber(indexnumber, vacancyInIndex, lessons);\n\t\t\t}\n\t\t\tstaffuimngr.addCourse(school, coursecode, noofaus, gertype, vacancyInCourse, indexnumbers);\n\t\t\tstaffuimngr.printAllCourses();\n\t\t}\n\t\t\n\t\t\n\t}", "title": "" }, { "docid": "32f26c7f3d955a3a785951148f72e3d6", "score": "0.60195065", "text": "@Override\r\n\t\tpublic void onClick(View v) {\n\t\t\tDBCourseDao dbCouseDao=new DBCourseDao(getApplicationContext());\r\n\t\t\tdbCouseDao.save(bindData2Course());\r\n\t\t\t//抛出toast提醒\r\n\t\t\tToast.makeText(getApplicationContext(), getString(R.string.toast_save), Toast.LENGTH_SHORT).show();\r\n\t\t\tmyNotify(\"课程表提示\",\"保存课程成功\",\"请按时上课哦~点击继续添加课程\");\r\n\t\t}", "title": "" }, { "docid": "bd8862af52a3547600cffc733e536cc7", "score": "0.6009936", "text": "public void newCourse() {\n\n }", "title": "" }, { "docid": "f2c4c42ab2a675a611b922a4a2481c48", "score": "0.5987139", "text": "private void JumpToNext() {\n\n startActivity(new Intent(UserGuide.this, MainActivity.class));\n }", "title": "" }, { "docid": "d93fb2ca134a152e046f31ec02c0a8c8", "score": "0.59752166", "text": "@Override\n public void onClick(View v) {\n Intent intent = new Intent(getActivity(), coursesActivity.class)\n .putExtra(Intent.EXTRA_TEXT, \"courses\");\n startActivity(intent);\n }", "title": "" }, { "docid": "c6009c36ef6f11ce1ce56c37f5815e05", "score": "0.5964412", "text": "public void joinCourse(String name){\n\t\t\n\t}", "title": "" }, { "docid": "5fa160e091a36067b603fa7682b5071b", "score": "0.5963335", "text": "private void passToNextQuestion() {\n\t\tToast.makeText(getApplicationContext(), \"next\", Toast.LENGTH_SHORT).show();\n\t}", "title": "" }, { "docid": "a051698c1c830a8ce670cbc931e59aa6", "score": "0.5932417", "text": "public void addExistingCourse(String studentName, String newCourse, char courseSlot){\n switchCourses(studentName, \"\", newCourse, courseSlot);\n }", "title": "" }, { "docid": "ce6ca635eaa33d667c16487c24cd5832", "score": "0.59099317", "text": "@Override\n public void actionPerformed(ActionEvent e) {\n dispose();\n Courses courses = new Courses();\n }", "title": "" }, { "docid": "9e2cd778b181024b328dd531c32ad6b1", "score": "0.5907631", "text": "public void finishBtnClick() {\n finishBtn.click();\n }", "title": "" }, { "docid": "e8f5fdf2a2639b738606294954c58acc", "score": "0.59008926", "text": "public static void main(String[] args) {\n // create CourseList by reading in from text file named courses.txt\n CourseList courseList = new CourseList();\n\n courseList.readFile();\n\n Scanner keyboard = new Scanner(System.in);\n\n boolean done = false;\n\n do {\n courseList.menu();\n String tp = keyboard.nextLine();\n int menuKey = Integer.parseInt(tp);\n\n switch (menuKey) {\n case 1:\n courseList.printCourseListItems();\n break;\n case 2:\n System.out.println(\"Enter Course Name\");\n String courseName = keyboard.nextLine();\n Course course = courseList.searchCourse(courseName);\n if (course != null) {\n System.out.println(course);\n } else {\n System.out.println(\"Item not found\");\n }\n break;\n case 3:\n System.out.println(\"What is the discipline of the course?\");\n String category = keyboard.nextLine();\n System.out.println(\"What is the CRN of the course?\");\n int crn = Integer.parseInt(keyboard.nextLine());\n System.out.println(\"What is the name of the course?\");\n courseName = keyboard.nextLine();\n\n if (category.equalsIgnoreCase(\"English\")) {\n boolean writ = false;\n boolean read = false;\n\n System.out.println(\"What is the classification level?\");\n String classification = keyboard.nextLine();\n System.out.println(\"Is it a reading course?\");\n String userIn1 = keyboard.nextLine();\n\n if (userIn1.equalsIgnoreCase(\"yes\")) {\n read = true;\n }\n System.out.println(\"Is it a writing course?\");\n String userIn2 = keyboard.nextLine();\n\n if (userIn2.equalsIgnoreCase(\"yes\")) {\n writ = true;\n }\n EnglishCourse eng = new EnglishCourse(crn, courseName, category, classification,\n read, writ);\n\n courseList.addCourse(eng);\n } else if (category.equalsIgnoreCase(\"Math\")) {\n System.out.println(\"Is it STEM related?\");\n String userIn3 = keyboard.nextLine();\n boolean stem = false;\n\n if (userIn3.equalsIgnoreCase(\"yes\")) {\n stem = true;\n }\n System.out.println(\"What is the instruction type?\");\n String type = keyboard.nextLine();\n MathCourse math = new MathCourse(crn, courseName, category, stem, type);\n\n courseList.addCourse(math);\n } else if (category.equalsIgnoreCase(\"History\")) {\n System.out.println(\"Is it Area E eligible?\");\n String userIn4 = keyboard.nextLine();\n boolean areaE = false;\n\n if (userIn4.equalsIgnoreCase(\"yes\")) {\n areaE = true;\n }\n System.out.println(\"What is the instruction type?\");\n String type = keyboard.nextLine();\n HistoryCourse hist = new HistoryCourse(crn, courseName, category, areaE, type);\n\n courseList.addCourse(hist);\n } else {\n System.out.println(\"That discipline is not available to be added at this time\");\n }\n break;\n case 4:\n System.out.println(\"Enter Course Name\");\n String id = keyboard.nextLine();\n courseList.removeCourse(id);\n break;\n default:\n done = true;\n courseList.writeFile();\n }\n } while (!done);\n }", "title": "" }, { "docid": "92d4d103cd2018161768ca47546ae904", "score": "0.58807504", "text": "@Override\n public void onSequenceFinish() {\n Toasty.success(AccountActivityAdmin.this,\"Tutorial Completed\").show();\n }", "title": "" }, { "docid": "755290c9eb99fd988962f03209ef25f2", "score": "0.58717996", "text": "private void goNext(){\n mHelper.logInfo(\"going to record list, user logged in\");\n progress.hide();\n progress.dismiss();\n goToActivity(ListActivity.class);\n finish();\n }", "title": "" }, { "docid": "61fd6c95e03af1f61342e3d62fbf1f04", "score": "0.58572483", "text": "private void nextPressed()\n {\n Screen curScreen = gm.getScreen();\n\n //IF the current tutorial screen is TUTORIAL\n if (curScreen == Screen.TUTORIAL)\n {\n gm.setScreen(Screen.TUTORIAL2);\n }\n //ELSE IF the current tutorial screen is TUTORIAL2\n else if (curScreen == Screen.TUTORIAL2)\n {\n gm.setScreen(Screen.TUTORIAL3);\n }\n //ELSE IF the current tutorial screen is TUTORIAL3\n else if (curScreen == Screen.TUTORIAL3)\n {\n gm.setScreen(Screen.TUTORIAL4);\n }\n //ELSE IF the current tutorial screen is TUTORIAL4\n else if (curScreen == Screen.TUTORIAL4)\n {\n gm.setScreen(Screen.TUTORIAL5);\n }\n //ELSE IF the current tutorial screen is TUTORIAL5\n else if (curScreen == Screen.TUTORIAL5)\n {\n gm.setScreen(Screen.TUTORIAL6);\n }\n //ELSE IF the current tutorial screen is TUTORIAL6\n else if (curScreen == Screen.TUTORIAL6)\n {\n gm.setScreen(Screen.TUTORIAL7);\n }\n //ELSE IF the current tutorial screen is TUTORIAL7\n else if (curScreen == Screen.TUTORIAL7)\n {\n gm.setScreen(Screen.TUTORIAL8);\n }\n //ELSE IF the current tutorial screen is TUTORIAL8\n else if (curScreen == Screen.TUTORIAL8)\n {\n gm.setScreen(Screen.TUTORIAL9);\n }\n }", "title": "" }, { "docid": "a5217c97e23ef5f7be9bc92723742680", "score": "0.5849082", "text": "@Override\n public void onClick(View v) {\n\n openDialog();\n Toast.makeText(TakeAttendence.this, \"input \" +code, Toast.LENGTH_SHORT).show();\n course = cd.findCourse(code);\n\n }", "title": "" }, { "docid": "b0fcff3ef513c91f3e444925fe646e70", "score": "0.583757", "text": "public void doNext() {\n startActivity(new Intent(this.mActivity, MainActivity.class));\n this.mActivity.finish();\n }", "title": "" }, { "docid": "293ecff74a2e20c48b15bbf0ac7a55e6", "score": "0.5815786", "text": "public void Registration(Course course) {\r\n System.out.println(\"You attended \" + course.courseName + \" course.\");\r\n }", "title": "" }, { "docid": "98ac4d36576c1d77500030a3d87f7c33", "score": "0.5802896", "text": "@Override\n public void onClick(View view) {\n insertCourseText();\n alert.cancel();\n }", "title": "" }, { "docid": "e04fb95065a588c05f95d7c896f36705", "score": "0.58002055", "text": "private void nextFrame() {\n if (sp != null) {\n menu.showSeedPhrase(sp);\n } else {\n menu.showSecurityQuestionsFrame();\n }\n playVaultOpenSound();\n setVisible(false);\n dispose();\n }", "title": "" }, { "docid": "507e3e592e39e79c9f31873d69b3a9f1", "score": "0.5793736", "text": "public void back(View v){\n Intent intent = CoursePage.getIntent(getApplicationContext());\n startActivity(intent);\n }", "title": "" }, { "docid": "4b3a595133b84d12990583383ac516fb", "score": "0.57928944", "text": "private void onShowNext() {\n boolean isEndOfDeck = exam.upIndex();\n if (isEndOfDeck) {\n Consumers.doTask(\"STOP_TIMELINE\", true);\n if (ExamRunner.getCurrentExam() != null) {\n ExamRunner.terminateExam();\n }\n }\n Pane newCard = exam.getCardDisplayFront();\n Consumers.doTask(\"SWAP_CARD_DISPLAY\", newCard);\n Consumers.doTask(\"UPDATE_TEST_STATE\", exam.getCurrentCard());\n Consumers.doTask(ConsumerSchema.DISPLAY_MESSAGE, \"Next Question\");\n }", "title": "" }, { "docid": "f6cf5f44a16dd85b39e4c4673cb660cb", "score": "0.57740283", "text": "public void AddCourse(Course course) {\n\t\t\n\t\tString str = \"insert into test1.course(courseid,coursetitle,coursedesc,insId) values(?,?,?,?)\";\n\t\ttry{\n\t\t\t//Class.forName(\"com.mysql.jdbc.Driver\").newInstance();\n\t\t\t\t\n\t\t\tConnection myCon = getCon();\n\t\t\t\t\n\t\t\tPreparedStatement myStat1 = (PreparedStatement) myCon.prepareStatement(str);\n\t\t\n\t\t\t\tmyStat1.setString(1,course.getCourseId());\n\t\t\t\tmyStat1.setString(2,course.getCourseName());\n\t\t\t\tmyStat1.setString(3,course.getCourseExplanation());\n\t\t\t\tmyStat1.setInt(4,course.getInsId());\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tmyStat1.execute();\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tmyStat1.close();\n\t\t\t\tmyCon.close();\n\t\t\t\t//myRes.close();\n\n\t\t\t}catch (Exception exp){\n\t\t\t\texp.printStackTrace();\n\t\t\t}finally {\n\t\t\t\t\n\t\t\t\t\n\t\t\t}\n\t\treturn;\n\t\t}", "title": "" }, { "docid": "bc244829c42cee05340a92addb7e58a3", "score": "0.57474554", "text": "private static void createCourse() throws SQLException {\n\n Course newCourse = new Course();\n\n while (true) {\n\n System.out.println(colour.TEXT_GREEN + \"Give Course Details\" + colour.TEXT_RESET);\n\n System.out.println(colour.TEXT_CYAN + \"Give Course Title : \" + colour.TEXT_RESET);\n newCourse.setTitle(scanner.nextLine());\n\n System.out.println(colour.TEXT_CYAN + \"Give course Stream : \" + colour.TEXT_RESET);\n newCourse.setStream(checkingStringToBeOnlyLetters());\n\n System.out.println(colour.TEXT_CYAN + \"Give Course Type : \" + colour.TEXT_RESET);\n newCourse.setType(checkingStringToBeOnlyLetters());\n\n System.out.println(colour.TEXT_CYAN + \"Give the date this course Start : \" + colour.TEXT_RESET);\n System.out.println(colour.TEXT_YELLOW + \"dd-MM-yyyy\" + colour.TEXT_RESET);\n newCourse.setStartDate(Utils.validationLocalDate());\n\n System.out.println(colour.TEXT_CYAN + \"Give the date this course Ends : \" + colour.TEXT_RESET);\n System.out.println(colour.TEXT_YELLOW + \"dd-MM-yyyy\" + colour.TEXT_RESET);\n newCourse.setEndDate(Utils.validationLocalDate());\n\n if (!Course.existCourse(newCourse)) {\n Course.saveCourse(newCourse);\n break; //Here we Check is this alredy exist!\n } else {\n System.out.println(colour.TEXT_RED + \"This course already exists! Give a new Course!\" + colour.TEXT_RESET);\n }\n\n }\n\n }", "title": "" }, { "docid": "34df082326e203495fa2091fd080d579", "score": "0.57459134", "text": "@FXML\r\n\tvoid TurningBack(ActionEvent event)\r\n\t{\r\n\t\tthis.nextController = new SystemManagerAddCourseController(\"SystemManagerAddCourseController\");\r\n\t\tthis.Back(\"/SystemManager/SystemManagerAddCourseWindow.fxml\",nextController, event);\r\n\t}", "title": "" }, { "docid": "c0583508320820eae54c58d04753d08c", "score": "0.5731116", "text": "private void goToIntroduction() {\n Intent mainIntent = new Intent(SplashScreenActivity.this, IntroductionActivity.class);\n SplashScreenActivity.this.startActivity(mainIntent);\n SplashScreenActivity.this.finish();\n }", "title": "" }, { "docid": "fde9452d5ccda6f63b170c2007751363", "score": "0.5720367", "text": "public void actionPerformed(ActionEvent e){\n /* respond to actionEvent based on the content of the command\n * This actionPerformed handles all actions related to\n * the leaving and returning to the MainMenu. This includes:\n * -> Start, Cancel, and Finish CGen\n * -> Start, Load, and Exit a Session.\n * -> Start, Cancel, and Confirm the Game Options screen\n * -> Exiting MainMenu (quit the game).\n */\n\n command = e.getActionCommand();\n\n//*********************************************************************\n if (command == \"Exit Game\"){\n // user has chosen to exit from the MainMenu, essentially ending the program.\n System.exit(0);\n } // end response to \"MainMenu Exit\"\n\n//*********************************************************************\n else if (command == \"Start New Game\"){\n // user has chosen to start a new game, creating a new character\n\n // since the setup can be a bit lengthy, we should change the cursor to 'wait'\n // NOTE: as of v71, doesn't seem to change, so comment it out for now.\n// setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR));\n\n myCGen = new CGen();\n playerCharacter = new PlayerCharacter();\n myCGen.setCharacter(playerCharacter);\n myCGen.geneticsScreen.backButton.addActionListener(this);\n myCGen.finalizeCGenScreen.nextButton.setActionCommand(\"Finish CGen\");\n myCGen.finalizeCGenScreen.nextButton.addActionListener(this);\n myCGen.myCardLayout.show(myCGen.getContentPane(), \"Genetics\");\n myMainMenu.hide();\n\n // now that we are done, we can change the cursor back to 'normal'\n// setCursor(Cursor.getPredefinedCursor(Cursor.DEFAULT_CURSOR));\n\n } // end response to \"Start New Game\"\n\n//*********************************************************************\n else if (command == \"Cancel CGen\"){\n // user has chosen to quite the CGen process before it was complete.\n // start by leaving screen and showing menu, so it looks fast\n myMainMenu.show();\n\n // now clean up all the details\n myCGen.geneticsScreen.dispose();\n myCGen.statsScreen.dispose();\n myCGen.alignmentScreen.dispose();\n myCGen.trainingScreen.dispose();\n myCGen.finalizeCGenScreen.dispose();\n myCGen.dispose(); // use trash because they might want to start over\n\n } // end response to \"Cancel CGen\"\n\n//*********************************************************************\n else if (command == \"Finish CGen\"){\n // user has chosen to confirm the finished character, starting a new game.\n\n // get the new character from the CGen process\n playerCharacter = myCGen.finalizeCGenScreen.getCharacter();\n saveCharacterToFile();\n\n // start a new session with the newly created character\n setupNewSession(playerCharacter);\n\n // dispose of CGen process, since we're done with it\n myCGen.finalizeCGenScreen.hide();\n myCGen.dispose();\n\n } // end response to \"Finish CGen\"\n\n//*********************************************************************\n else if (command == \"Load Saved Game\"){\n // user has chosen to load a saved game, and start a new session with it.\n if (thisSession != null){\n thisSession.hide();\n thisSession.dispose();\n } // end if old session exists\n playerCharacter = null;\n\n playerCharacter = loadCharacterFromFile();\n\n if (playerCharacter == null &&\n thisSession != null){\n // then user has canceled, so return...\n Popup.createErrorPopup(\"LoadingCharacterFromFile returned null, aborting.\");\n thisSession.show();\n return;\n } // end if null\n\n if (playerCharacter == null &&\n thisSession == null){\n //then user canceled before loading any session, so just abort.\n return;\n } // end if\n\n setupNewSession(playerCharacter);\n myMainMenu.hide();\n System.gc();\n\n } // end response to \"Load Saved Game\"\n\n//*********************************************************************\n else if (command == \"Session Exit\"){\n // user has chosen to quit the current session, returning to Main Menu.\n myMainMenu.show();\n thisSession.hide();\n thisSession.dispose();\n playerCharacter = null;\n System.gc();\n } // end response to session Exit\n\n//*********************************************************************\n else if (command == \"Start Game Options\"){\n /* user has chosen to look at and/or change the Game Options\n myOptionsScreen = new OptionsScreen(); // create new each time, to erase temp changes.\n myOptionsScreen.show();\n myMainMenu.hide();\n */\n if (Constants.debugMode == false)\n Popup.createInfoPopup(\"Setting Game Options will be implemented soon!\");\n } // end response to \"Start Game Options\"\n\n//*********************************************************************\n else if (command == \"Cancel Game Options\"){\n // user has chosen to quit the game Options screen, returning to Main Menu.\n// myMainMenu.show();\n// myOptionsScreen.hide();\n } // end response to \"Cancel Game Options\"\n\n//*********************************************************************\n else if (command == \"Confirm Game Options\"){\n // user has chosen to confirm the game Options screen,\n // saving changes and returning to Main Menu.\n\n // save settings to file\n\n // apply changes from Options Screen\n\n // confirm changes made\n Popup.createInfoPopup(\"Options saved and applied.\");\n\n // return to MainMenu\n// myMainMenu.show();\n// myOptionsScreen.dispose();\n } // end response to \"Confirm Game Options\"\n\n//*********************************************************************\n else if (command == \"Save Session\"){\n // user has chosen to save their session from the session/filePanel\n\n // as always, this takes a bit, so change cursor to the 'wait' cursor\n saveCharacterToFile();\n\n // and when done, change cursor back to default\n\n } // end if \"save session\" response\n\n//*********************************************************************\n else {\n if (Constants.debugMode == true)\n Popup.createErrorPopup(\"Error: the command: \" + command + \" is uncrecognized\");\n } // end else\n\n }", "title": "" }, { "docid": "5b7ca840bb12e2fb753295b17f978736", "score": "0.57201284", "text": "public static void courseOperation() throws InvalidFormatInput {\n\n\t\tint ch;\n\t\tCoordinatorController coordinatorController = new CoordinatorController();\n\t\tSystem.out.println(\"-------WELCOME TO COURSE MENU-------\");\n\t\tSystem.out.println(\"=====================================\");\n\t\tSystem.out.println(\"1.Add Course\");\n\t\tSystem.out.println(\"2.Delete Course\");\n\t\tSystem.out.println(\"3.Get course details\");\n\t\tSystem.out.println(\"4.details of course\");\n\t\tSystem.out.println(\"5.Exit\");\n\t\ttry {\n\t\t\tScanner scan = new Scanner(System.in);\n\t\t\tch = scan.nextInt();\n\n\t\t\tswitch (ch) {\n\n\t\t\tcase 1:\n\t\t\t\ttry {\n\t\t\t\t\tcoordinatorController.addCourse();\n\t\t\t\t} catch (InvalidFormatInput e) {\n\t\t\t\t\tSystem.err.println(e.getMessage());\n\n\t\t\t\t}\n\t\t\t\tbreak;\n//\t\t\t\n\t\t\tcase 2:\n\t\t\t\tcoordinatorController.deleteCourse();\n\n\t\t\t\tbreak;\n\n\t\t\tcase 3:\n\t\t\t\tcoordinatorController.getCourseDetails();\n\n\t\t\t\tbreak;\n\n\t\t\tcase 4:\n\t\t\t\tcoordinatorController.retrieveCourse();\n\t\t\t\tbreak;\n\n\t\t\tcase 5:\n\t\t\t\tSystem.exit(0);\n\t\t\t\tbreak;\n\n\t\t\tdefault:\n\t\t\t\tSystem.out.println(\"enter a valid choice\");\n\t\t\t\tbreak;\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tSystem.err.println(e.getMessage());\n\t\t}\n\n\t}", "title": "" }, { "docid": "2b3a42cce06956f5f175f0d4cd079e61", "score": "0.5717582", "text": "@Override\n public void onYesClick() {\n Intent intent = new Intent(this, MainActivity.class);\n startActivityForResult(intent, 555);\n finish();\n }", "title": "" }, { "docid": "af0bb216720ba3c40440f111009cfe2f", "score": "0.57165736", "text": "public void toSearchCourse() {\n ViewController.getInstance().switchView(\"searchCourseScreen\");\n }", "title": "" }, { "docid": "da7bb064e216ad553819081144eae84f", "score": "0.5715002", "text": "@Override\n\tpublic void addCourse(Course course) {\n\t\tcourses.put(course.getCourseNo(), course);\n\t\tcoursecatlog.setCourses(courses);\n//\t\tcoursecatlog.display();\n\n\t}", "title": "" }, { "docid": "88dbdf6645be1c8b91d48065d3fe1727", "score": "0.5712465", "text": "private void goToNext() {\r\n\t\ttransitioning = true;\r\n\t\tshowSceneSnap();\r\n\t\tgame.removePlayers();\r\n\t\tconfirmXTwo = baseGameBoard.getX();\r\n\t\tgoToNext = true;\r\n\t\trestartLevel = false;\r\n\t\tcenter = true;\r\n\t\tswipeLeft = true;\r\n\t\tacceleration = 6.0f;\r\n\t\tconfirmXPosition = 0.002f;\r\n\t}", "title": "" }, { "docid": "5064ab3af2c4627fdefa31b40cb84d5d", "score": "0.570936", "text": "@FXML\r\n void onActionAddPartCancel (ActionEvent event) throws IOException {\r\n changeScreen(event, \"/view/Main.fxml\");\r\n }", "title": "" }, { "docid": "82c4e7f82b134849dd4fd372c490d56e", "score": "0.57023686", "text": "public void addNewCourse(String courseName) {\n\n // on below line we are creating a variable for\n // our sqlite database and calling writable method\n // as we are writing data in our database.\n SQLiteDatabase db = this.getWritableDatabase();\n\n // on below line we are creating a\n // variable for content values.\n ContentValues values = new ContentValues();\n\n // on below line we are passing all values\n // along with its key and value pair.\n values.put(NAME_COL, courseName);\n\n // after adding all values we are passing\n // content values to our table.\n db.insert(TABLE_NAME, null, values);\n\n // at last we are closing our\n // database after adding database.\n db.close();\n }", "title": "" }, { "docid": "6549c76436f985142b4264b4419e7d09", "score": "0.5701377", "text": "public void continuing() {\n Intent intent = new Intent(this, EnterInfoProposeTradeActivity.class);\n intent.putExtra(\"ChosenItem\", chosenItem);\n intent.putExtra(\"MyItem\", myItem);\n intent.putExtra(\"Temporary\", temporary);\n intent.putExtra(\"OneWay\", oneWay);\n intent.putExtra(\"Online\", online);\n putBundle(intent);\n startActivityForResult(intent, RESULT_FIRST_USER);\n }", "title": "" }, { "docid": "33b28598b32f13084ec9301d797c1cf1", "score": "0.56960344", "text": "protected void finishProcedure()\n/* */ {\n/* 312 */ this.controller.setMenuState(12);\n/* 313 */ this.actionStatus.setText(\"The current procedure is finished. Please go to the Procedure menu to continue!\");\n/* 314 */ setFinishEnabled(false);\n/* */ }", "title": "" }, { "docid": "adea2458159c872d5a337efcab9dcd6a", "score": "0.56930983", "text": "@Override\n\tpublic void Finish() {\n\t\tAdSDKManager.tearDown();\n\t\taddText(\"完成\");\n\t\t//initLocation();\n\t}", "title": "" }, { "docid": "02e90f2da7ec4b3273962e1bee62ccc9", "score": "0.5693063", "text": "public void addExistingCourse(String studentName, String newCourse){\n char[] allSlots = {'C','A','D','H','B','G','E','F'};\n for(char x : allSlots){\n switchCourses(studentName, \"\", newCourse, x);\n }\n }", "title": "" }, { "docid": "ce9539135000ef48b7bdf14bc31481e0", "score": "0.56832474", "text": "@Override\n public void onItemClick(CourseModal model) {\n Intent intent = new Intent(MainActivity.this, NewCourseActivity.class);\n intent.putExtra(NewCourseActivity.EXTRA_ID, model.getId());\n intent.putExtra(NewCourseActivity.EXTRA_COURSE_NAME, model.getCourseName());\n intent.putExtra(NewCourseActivity.EXTRA_DESCRIPTION, model.getCourseDescription());\n intent.putExtra(NewCourseActivity.EXTRA_DURATION, model.getCourseDuration());\n\n // below line is to start a new activity and\n // adding a edit course constant.\n startActivityForResult(intent, EDIT_COURSE_REQUEST);\n }", "title": "" }, { "docid": "8f6b44a2abaee1b379e458b7a72ae794", "score": "0.5681837", "text": "public void addAssignment(View v){\n Intent intent = CreateAssignmentActivity.getIntent(getApplicationContext());\n intent.putExtra(\"COURSEID\", courseId);\n startActivity(intent);\n }", "title": "" }, { "docid": "cbe74697cd9ca8389328f50796a3b59e", "score": "0.56512445", "text": "public void enrollIntoCourse(Course course) throws EnrollmentException;", "title": "" }, { "docid": "c0610b5f7c40232cbc9a9e2dffafa4f7", "score": "0.5648692", "text": "@FXML\r\n void addPrecourse(ActionEvent event) \r\n { \r\n \terrorID.setText(\"\");\r\n \taddpreCourses.setText(\"\");\r\n \t\r\n \t\r\n \tif(flag==0){ //checks if not choose Pre-course.\r\n \t\terrorID.setText(\"ERROR:\\nPlease choose Pre-course.\");\r\n \t\taddpreCourses.setText(\"\");\r\n \t}\r\n \t\r\n \tObject obj = null;\r\n \tString idPreCourses = PreCourses.substring(PreCourses.indexOf(\"(\") + 1, PreCourses.indexOf(\")\"));//get the idteachingUnit that is inside a ( ).\r\n \tinsertPreCourse(idPreCourses);\r\n\t //PreCourses.clear();\r\n\t\ttry {\r\n\t \tFXMLLoader loader = new FXMLLoader(getClass().getResource(\"/SystemManager/SystemManagerAddPreCourseWindow.fxml\"));\r\n\t \tSystemManagerAddPreCourseController controller = new SystemManagerAddPreCourseController(\"SystemManagerAddPreCourseController\");\r\n\t \tcontroller.setCourseID(lastCourse);\r\n\t\t loader.setController(controller);\r\n\t\t\tPane login_screen_parent = loader.load();\r\n\t\t\tScene login_screen_scene=new Scene(login_screen_parent);\r\n\t\t\tStage app_stage = (Stage) ((Node) event.getSource()).getScene().getWindow();//the scene that the event came from.\r\n\t\t\tapp_stage.hide();\r\n\t\t\tapp_stage.setScene(login_screen_scene);\r\n\t\t\tapp_stage.show(); \r\n\t\t} \r\n \tcatch (IOException e) {//problem with the teacherWindow.xml file.\r\n\t\t\tSystem.err.println(\"Missing SystemManagerAddPreCourseWindow.fxml file\");\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n }", "title": "" }, { "docid": "b7ef06355d10a9b05fdbc55225a5a4e5", "score": "0.56462634", "text": "void onCourseCompletion(String learnerId, String courseId);", "title": "" }, { "docid": "8f4f6589c0af0d208def137caa8ca784", "score": "0.5640505", "text": "@Test(priority = 2 ,enabled = true)\n\tpublic void courseSearch() throws Exception {\n\n\t\tdriver.findElement(By.id(\"org.khanacademy.android:id/tab_bar_button_search\")).click();\n\n\t\tdriver.findElement(By.xpath(\"//*[@text='Science']\")).click();\n\n\t\tThread.sleep(4000);\n\n\t\tdriver.findElement(MobileBy.AndroidUIAutomator(\"UiSelector().text(\\\"Class 10 Physics (India)\\\")\")).click();\n\n\t\tThread.sleep(4000);\n\n\t\tString actualTitle = \"Light – reflection & refraction\";\n\t\tString expectedTitle = driver.findElement(MobileBy.AndroidUIAutomator(\"UiSelector().text(\\\"Light – reflection & refraction\\\")\")).getText();\n\n\t\tAssert.assertEquals(actualTitle, expectedTitle);\n\n\t\tSystem.out.println(\"Course selected\");\n\t\t\n\t\tdriver.navigate().back();\n\t\t\n\t\tThread.sleep(2000);\n\n\t\t\n\t\tdriver.navigate().back();\n\t\t\n\t\tThread.sleep(2000);\n\n\t\t\n\t\tdriver.navigate().back();\n\t\t\n\t\tThread.sleep(2000);\n\n\t\t\n\t}", "title": "" }, { "docid": "f182e33c92ab36cd23fe80f8befa58f4", "score": "0.5639519", "text": "public void BtnContinue() {\n if (formValidation()) {\n try {\n SaveDraft();\n } catch (JSONException e) {\n e.printStackTrace();\n }\n if (UpdateDB()) {\n // Toast.makeText(this, \"Starting Ending Section\", Toast.LENGTH_SHORT).show();\n finish();\n\n startActivity(new Intent(this, FollowUpEndingActivity.class).putExtra(\"complete\", true));\n\n } else {\n Toast.makeText(this, \"Failed to Update Database!\", Toast.LENGTH_SHORT).show();\n }\n }\n\n\n }", "title": "" }, { "docid": "513009b5145573e19396d9936751adc2", "score": "0.5632221", "text": "public void finishQuestions() {\n //finishExercise();\n \n // We'll upload consistently here so we get all the data in case someone stops\n uploadData();\n\n // Actually now we just pop up the play again window any time we're\n // done with exercise questions\n if (Player.getCurrentExercise().getId() >= 3) {\n Gos.showPlayAgainWindow();\n }\n else {\n finishExercise();\n }\n }", "title": "" }, { "docid": "a5951b79f6a4ff27e2a0fb40d7b32d7a", "score": "0.5632098", "text": "@Override\n public void actionPerformed(ActionEvent e) {\n win.ud.temp_course = 2;\n win.change(\"categoryPick2\");\n }", "title": "" }, { "docid": "08b04246f4481abfcb23c2b826b79528", "score": "0.5631644", "text": "@FXML\n\tprotected void btReturn(ActionEvent event) {\n\n\t\tMain.changeScreen(\"gestaoProfessor\");\n\n\t}", "title": "" }, { "docid": "20de47e68b9d9a14755722ed8fb81f6b", "score": "0.56290877", "text": "private void buyCourse() {\n new UserTask(new HttpOnNextListener() {\n @Override\n public void onNext(String resulte, String method) {\n BaseBean loginBean = GsonUtils.parseJson(resulte, BaseBean.class);\n T.showShort(loginBean.getMessage());\n if (loginBean.getStatusCode() == 0) {\n tv_course_sign_up.setText(R.string.course_learn_now);\n ll_crystal_number.setVisibility(View.GONE);\n hadBuy = true;\n }\n }\n\n @Override\n public void onError(ApiException e) {\n T.showShort(e.getMessage());\n }\n }, this).buyCourse(dataBean.get_id());\n }", "title": "" }, { "docid": "d49001769e71fa0205120de3db98387d", "score": "0.5624514", "text": "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == R.id.action_done) {\n Course selectedCourse = (Course) spinner.getSelectedItem();\n Intent intent = new Intent(this, MainActivity.class);\n realm.beginTransaction();\n Event newEvent = realm.createObject(Event.class);\n newEvent.setCourse(selectedCourse);\n newEvent.setNumAttendees(newEvent.getNumAttendees() + 1);\n newEvent.setCheckState(true);\n\n try {\n newEvent.setStartTime(formatT.parse(t));\n } catch (ParseException e) {\n e.printStackTrace();\n }\n newEvent.setLocation(location.getText().toString());\n newEvent.setDescription(note.getText().toString());\n //newEvent.setStartTime();\n realm.commitTransaction();\n startActivity(intent);\n finish();\n\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "title": "" }, { "docid": "d765e2319db7067b9f4c70bb93e03d6f", "score": "0.561806", "text": "public void addCourse(Course course) {\n courseListItems.add(course);\n }", "title": "" }, { "docid": "4229277658bfeeb1f18d028febe87f1d", "score": "0.56179494", "text": "@Override\n public void finish() {\n Intent data = new Intent(this, SubjectList.class);\n data.putExtra(\"schoolyear_2\", schoolYear);\n setResult(RESULT_OK, data);\n super.finish();\n }", "title": "" }, { "docid": "6b324a03caf76e782d32231c5ac7510f", "score": "0.56167305", "text": "@Override\n public void actionPerformed(ActionEvent e) {\n win.ud.temp_course = 3;\n win.change(\"categoryPick2\");\n }", "title": "" }, { "docid": "2a21543bde7111a4c7a242f22008ddc4", "score": "0.561377", "text": "public void add_course(String courseName) {\r\n schedule.add(courseName);\r\n }", "title": "" }, { "docid": "9a1c7c81e1bd2c7bfb2d0705f1538729", "score": "0.56107247", "text": "public TeacherRoleCoursePage clickOnCoursesTab() {\n\t\tsafeClick(Dynamic.getNewLocator(MAINTABS_NAMES, \"Course\"), LONGWAIT);\n\t\treturn new TeacherRoleCoursePage(driver);\n\t}", "title": "" }, { "docid": "e951af9dd28d453b1d33b76c3cf81439", "score": "0.56072205", "text": "public void BtnEnd() {\n if (formValidation()) {\n try {\n SaveDraft();\n } catch (JSONException e) {\n e.printStackTrace();\n }\n if (UpdateDB()) {\n //Toast.makeText(this, \"Starting Ending Section\", Toast.LENGTH_SHORT).show();\n finish();\n startActivity(new Intent(this, EndingActivity.class).putExtra(\"complete\", false));\n } else {\n Toast.makeText(this, \"Failed to Update Database!\", Toast.LENGTH_SHORT).show();\n }\n }\n\n }", "title": "" }, { "docid": "4eda078fcee56b753e8a37a4955c8283", "score": "0.5603076", "text": "protected void end() {\n \tSmartDashboard.putString(\"Roberto: \", \"Done. This should work...\");\n }", "title": "" }, { "docid": "ba9d4415fb14b2b5f6d40ee654144986", "score": "0.5600585", "text": "public void addCourse(Course course) {\n //Clear selection first\n //If index of the selected item does not exist in another table\n gradeTable.getSelectionModel().clearSelection();\n weightingField.setText(\"\");\n addCourse(course, root);\n }", "title": "" }, { "docid": "6601b9ed1f7382d6c362a15dae3c31a4", "score": "0.5595504", "text": "private void finishDialog() {\n\n\t}", "title": "" }, { "docid": "8545b7cb82fde6246fa861857330668b", "score": "0.55911964", "text": "void tapOnContinueButton() throws Exception;", "title": "" }, { "docid": "0c246f7a6bfbf9797aef69b4c282166f", "score": "0.55841714", "text": "@Override\n public void actionPerformed(ActionEvent e) {\n win.ud.temp_course = 4;\n win.change(\"categoryPick2\");\n }", "title": "" }, { "docid": "483f14e7f17473595fbfb8334289b7ae", "score": "0.5582989", "text": "@Override\n public void onDonePressed() {\n finish();\n }", "title": "" }, { "docid": "e9b1448e2db8e46f01f49ab7d20f4242", "score": "0.55822664", "text": "private void enterContinue(InvestorView view) {\r\n view.enterToContinue();\r\n scan.nextLine();\r\n }", "title": "" }, { "docid": "534081c7b9a77f5cf8fa103a0df9d684", "score": "0.5579885", "text": "public static void setCourseClicked(String c){\n \n course =c;\n clicked =true;\n \n }", "title": "" }, { "docid": "8d3fd6bf1b0bce098351ca505fa92df0", "score": "0.5574798", "text": "private void continueGame()\n {\n // load fxml and create stage\n FXMLLoader loader = new FXMLLoader(getClass().getResource(\"continue.fxml\"));\n Stage newStage = new Stage();\n Parent root= null;\n try {\n root = loader.load();\n } catch (IOException e) {\n e.printStackTrace();\n }\n assert root != null;\n newStage.setScene(new Scene(root, 1400, 800));\n // Get controller to call necessary methods\n ContinueGame continueController = loader.getController();\n int userDraws = game.getUserDraws();\n int userWins = game.getUserWins();\n int userGames = game.getUserGames();\n LeaderBoard gameL = this.currLB;\n // Pass the updated details to final window.\n // User wins, draws, total games along with the game leaderboard.\n continueController.setdetails(userDraws, userWins, userGames, gameL, user);\n newStage.show();\n\n // Close current window.\n Stage stage = (Stage) entireGrid.getScene().getWindow();\n stage.close();\n }", "title": "" }, { "docid": "fcd2593eaf02382411bd52a05efbcae6", "score": "0.5572973", "text": "@FXML\r\n\tvoid BackToMyExamsButtonPressed(ActionEvent event) throws IOException {\r\n\t\tStudentCourseExamsController contr = (StudentCourseExamsController) GUIControl.instance\r\n\t\t\t\t.loadStage(\"myExamsResults.fxml\");\r\n\t\tcontr.setStudentExams(course);\r\n\r\n\t}", "title": "" }, { "docid": "b35b267f5dde293825aaa930bfe5bf0e", "score": "0.55724764", "text": "public void enroll(String course){\n\t\t\tthis.courses = this.courses+\"\\n\"+course;\n\t\t\t/**In the main let call:\n\t\t\tstu1.enroll(\"Math101\");\n\t\t\tstu1.enroll(\"English245\");and */\n\t\t\tSystem.out.println(courses);\n\t\t\tbalance = balance+costOfCourse;\n\n\t\t\t}", "title": "" }, { "docid": "df9b8bfad0d061ca2102233e26b326a8", "score": "0.55695605", "text": "private void CoursesActionPerformed(java.awt.event.ActionEvent evt) {\n }", "title": "" }, { "docid": "da4f62f2e914d9b5551a9a8a2b843fcb", "score": "0.55605626", "text": "private void showNewFormCourse(HttpServletRequest request, HttpServletResponse response)\n\t\t\tthrows ServletException, IOException {\n\t\tRequestDispatcher dispatcher = request.getRequestDispatcher(\"add-course.jsp\");\n\t\tdispatcher.forward(request, response);\n\t}", "title": "" }, { "docid": "571339d1967e0545f10527a833979bb3", "score": "0.5541133", "text": "@Override\n public void actionPerformed(ActionEvent e) {\n win.ud.temp_course = 1; //일시적으로 저장해서 다음으로 정보 옮겨줌. \n win.change(\"categoryPick2\");\n }", "title": "" }, { "docid": "3ecbf93976980d2d3ce797403eb93208", "score": "0.55294687", "text": "@Override\n\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\tIntent intent = new Intent(v.getContext(),CourseActivity.class);\n\t\t\t\t\tstartActivity(intent);\n\t\t\t\t}", "title": "" }, { "docid": "7e70b92a30dc648e5cb3e6fa88b9e37a", "score": "0.5521298", "text": "private void nextButton(){\n if (currentIndex < vehicleList.length - 1){\n currentIndex++;\n vehDetails.displayDetails(vehicleList[currentIndex]);\n }\n else {\n JOptionPane.showMessageDialog(garage, \"You can't go any further\", \"Alert\", JOptionPane.ERROR_MESSAGE);\n }\n }", "title": "" }, { "docid": "acec862718f5aa094b4c53fd9478dc8d", "score": "0.5519028", "text": "public void addCourse(Course course) {\r\n\t\tcourseDAO.addCourse(course);\r\n\t}", "title": "" }, { "docid": "ed7d39f4f497657de7291d448c1fa56d", "score": "0.55107087", "text": "public void verify_CoursePage() {\r\n\t\tboolean vt = verification_text_CoursePage.isDisplayed();\r\n\t\tAssert.assertEquals(vt, true);\r\n\t}", "title": "" }, { "docid": "c246c4f15626147eef0a6f3e53caf0df", "score": "0.5498194", "text": "public void setCourse(int course) {\r\n this.course = course;\r\n }", "title": "" }, { "docid": "1e354118a80039da7cdb27ab14b6d2d4", "score": "0.54974693", "text": "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n lblName = new javax.swing.JLabel();\n txtCourseNumber = new javax.swing.JTextField();\n btnSave = new javax.swing.JButton();\n txtTitle = new javax.swing.JLabel();\n btnBack = new javax.swing.JButton();\n lblCourseNumber = new javax.swing.JLabel();\n txtCourseName = new javax.swing.JTextField();\n txtCredit = new javax.swing.JTextField();\n lblName1 = new javax.swing.JLabel();\n\n setBackground(new java.awt.Color(204, 204, 255));\n\n lblName.setFont(new java.awt.Font(\"Tahoma\", 0, 13)); // NOI18N\n lblName.setText(\"Course Name:\");\n\n btnSave.setText(\"save\");\n btnSave.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnSaveActionPerformed(evt);\n }\n });\n\n txtTitle.setFont(new java.awt.Font(\"Lucida Grande\", 0, 18)); // NOI18N\n txtTitle.setText(\"Create New Course\");\n\n btnBack.setText(\"<< Back\");\n btnBack.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnBackActionPerformed(evt);\n }\n });\n\n lblCourseNumber.setFont(new java.awt.Font(\"Tahoma\", 0, 13)); // NOI18N\n lblCourseNumber.setText(\"Course Number:\");\n\n lblName1.setFont(new java.awt.Font(\"Tahoma\", 0, 13)); // NOI18N\n lblName1.setText(\"Credit:\");\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 .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addGap(0, 156, Short.MAX_VALUE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(lblCourseNumber)\n .addComponent(lblName1)\n .addComponent(lblName))\n .addGap(104, 104, 104)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(txtCourseName, javax.swing.GroupLayout.PREFERRED_SIZE, 161, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(txtCredit, javax.swing.GroupLayout.PREFERRED_SIZE, 161, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(txtCourseNumber, javax.swing.GroupLayout.PREFERRED_SIZE, 161, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(180, 180, 180))\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(20, 20, 20)\n .addComponent(btnBack))\n .addGroup(layout.createSequentialGroup()\n .addGap(301, 301, 301)\n .addComponent(btnSave))\n .addGroup(layout.createSequentialGroup()\n .addGap(243, 243, 243)\n .addComponent(txtTitle)))\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 .addComponent(btnBack)\n .addGap(18, 18, 18)\n .addComponent(txtTitle)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 106, Short.MAX_VALUE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(lblCourseNumber, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(txtCourseNumber, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(39, 39, 39)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(txtCourseName, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(lblName, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(36, 36, 36)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(txtCredit, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(lblName1, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(77, 77, 77)\n .addComponent(btnSave)\n .addGap(60, 60, 60))\n );\n }", "title": "" }, { "docid": "2b7da9e0da446317df46ff4dd10feae9", "score": "0.5497387", "text": "@Override\n\tpublic void actionPerformed(ActionEvent e) {\n\t\tJPanel newview;\n\t\t// esto sera la de course !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\n\t\tHomePanelTeacher hpt;\n\t\tJComponent source = (JComponent) e.getSource();\n\t\tString title = view.getName();\n\t\tString desc = view.getDesc();\n\t\tCourse course;\n\t\tUnit unit;\n\t\t\n\t\tSystem.out.println(title);\n\t\tSystem.out.println(desc);\n\t\t\n\t\tif(source == this.view.getSignOut()){\n\t\t\ttry{\n\t\t\t\t\n\t\t\t\tEducagram.getInstance().signOut();\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tnewview = MainFrame.getInstance().getLp();\n\t\t\t\tMainFrame.getInstance().setContentPane(newview);\n\t\t\t\tnewview.setVisible(true);\n\t\t\t\tview.setVisible(false);\n\t\t\t\treturn;\n\t\t\t}catch(Exception ex){\n\t\t\t\tSystem.out.println(ex.getMessage());\n\t\t\t}\n\t\t}else if(source == this.view.getOk()){\n\t\t\tif(title.equals(\"\")){\n\t\t\t\tJOptionPane.showMessageDialog(view, \"The unit must have a title\", \"Error\", JOptionPane.ERROR_MESSAGE);\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tunit = (Unit) this.course.createUnit(title, desc, false);\n\t\t\tif(unit == null){\n\t\t\t\tJOptionPane.showMessageDialog(view, \"There is already an element of the course with this name.\", \"Error\", JOptionPane.ERROR_MESSAGE);\n\t\t\t\treturn;\n\t\t\t}\n\t\t\t\n\t\t\tnewview = MainFrame.getInstance().getCtp();\n\t\t\t((CourseTeacherPanel) newview).addUnit(unit);\n\t\t\t((CourseTeacherPanel) newview).getCourseDesc().setText(this.course.getDesc());\n\t\t\t((CourseTeacherPanel) newview).getCourseDesc().repaint();\n\t\t\t((CourseTeacherPanel) newview).getCourseDesc().revalidate();\n\t\t\t((CourseTeacherPanel) newview).getDesc().setText(this.course.getDesc());\n\t\t\t((CourseTeacherPanel) newview).getDesc().repaint();\n\t\t\t((CourseTeacherPanel) newview).getDesc().revalidate();\n\t\t\t\n\t\t\t((CourseTeacherPanel) newview).getCommonButtons().setVisible(true);\n\t\t\t((CourseTeacherPanel) newview).getEdit().setVisible(true);\n\t\t\t((CourseTeacherPanel) newview).getDelete().setVisible(false);\n\t\t\t((CourseTeacherPanel) newview).getHide().setVisible(false);\n\t\t\t\n\t\t\t((CourseTeacherPanel) newview).getUnitButtons().setVisible(false);\n\t\t\t\n\t\t\t((CourseTeacherPanel) newview).getOtherButtons().setVisible(false);\n\t\t\t\n\t\t\t((CourseTeacherPanel) newview).getCommonButtons().validate();\n\t\t\t((CourseTeacherPanel) newview).getCommonButtons().repaint();\n\t\t\t\n\t\t\t((CourseTeacherPanel) newview).getUnitButtons().validate();\n\t\t\t((CourseTeacherPanel) newview).getUnitButtons().repaint();\n\t\t\t\n\t\t\t((CourseTeacherPanel) newview).getOtherButtons().validate();\n\t\t\t((CourseTeacherPanel) newview).getOtherButtons().repaint();\n\t\t\tMainFrame.getInstance().setContentPane(newview);\n\t\t\tnewview.setVisible(true);\n\t\t\tview.setVisible(false);\n\t\t}else if(source == this.view.getCancel()){\n\t\t\tnewview = MainFrame.getInstance().getCtp();\n\t\t\tMainFrame.getInstance().setContentPane(newview);\n\t\t\tnewview.setVisible(true);\n\t\t\tview.setVisible(false);\n\t\t\treturn;\n\t\t}\n\t}", "title": "" } ]
809e11413181cbf39483aa323c6c93ca
Metodo que muestra las citas que tiene un veterinario actualmente
[ { "docid": "8d76de38b2d84ee1dd840c9f7930b2b6", "score": "0.5396459", "text": "public static void consultarCitasVeterinario() throws GestionVeterinarioException {\n\t\tVeterinario veterinarioEncontrado;\n\t\tList<Cita> VeterinariosConCita;\n\n\t\tSystem.out.println(\"Búsqueda de la cita de un veterinario\");\n\t\tSystem.out.println(\"Introduce el dni del veterinario que deseas buscar: \");\n\t\tString dniVeterinario = teclado.nextLine();\n\n\t\tveterinarioEncontrado = veteDao.buscarPorDni(dniVeterinario);\n\t\tVeterinariosConCita = citaDao.listarCitasVeterinario(dniVeterinario);\n\n\t\tif (validarDni(dniVeterinario)) {\n\n\t\t\tif (veterinarioEncontrado == null) {\n\t\t\t\tthrow new GestionVeterinarioException(\n\t\t\t\t\t\t\"No existe ningun veterinario registrado con ese dni \" + dniVeterinario);\n\n\t\t\t} else {\n\t\t\t\tif (VeterinariosConCita == null) {\n\t\t\t\t\tthrow new GestionVeterinarioException(\"El veterinario con el dni\" + dniVeterinario\n\t\t\t\t\t\t\t+ \" no tiene citas asociadas en este momento.\");\n\t\t\t\t} else {\n\t\t\t\t\tfor (Cita cita : VeterinariosConCita) {\n\t\t\t\t\t\tSystem.out.println(cita.mostrarCitasConVeterinario());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t} else {\n\t\t\tSystem.out.println(\"Error, dni no válido.Vuelve a introducir el dni con el siguiente formato(12345678A)\");\n\t\t}\n\t}", "title": "" } ]
[ { "docid": "a5e42eab1246d42101b043a67867c5df", "score": "0.61908734", "text": "public void cargarInasistenciaDocente(String dni, Date fecha, Licencia licencia, float horasCatedraAusente,\r\n\t\t\tint cantDiasAusente, Clase clase) {\r\n\t\tint semanasMesCorriente = cantidadSemandasMes(fecha.getMonth());\r\n\t\tEmpleado empleado = buscarEmpleado(dni);\r\n\t\tif (empleado != null) {\r\n\t\t\tLicenciaEmpleado licenciaDocente = empleado.getLicencia(licencia.getCodigo());\r\n\t\t\tLicenciaEmpleado licenciaDocenteSinJustificar = empleado.getLicencia(3);\r\n\t\t\tNovedad novedadPorLicencia = null;\r\n\t\t\tNovedad novedadPorInasistenciaSinJustificar = null;\r\n\t\t\tif (licenciaDocente != null) {\r\n\t\t\t\tint diasRestantes = licenciaDocente.getCantDisponible();\r\n\t\t\t\tif (diasRestantes - cantDiasAusente < 0) {\r\n\t\t\t\t\tLicencia licenciaSinJustificar = LicenciaSRV.buscarLicencia(3);\r\n\t\t\t\t\tnovedadPorInasistenciaSinJustificar = new Novedad(fecha, licenciaSinJustificar, horasCatedraAusente,\r\n\t\t\t\t\t\t\tsemanasMesCorriente, cantDiasAusente - diasRestantes);\r\n\t\t\t\t\tnovedadPorLicencia = new Novedad(fecha, licenciaSinJustificar, horasCatedraAusente,\r\n\t\t\t\t\t\t\tsemanasMesCorriente, diasRestantes);\r\n\t\t\t\t\tif (licenciaDocenteSinJustificar == null) {\r\n\t\t\t\t\t\tlicenciaDocenteSinJustificar = new LicenciaEmpleado(licenciaSinJustificar.getTiempo(),\r\n\t\t\t\t\t\t\t\tlicenciaSinJustificar);\r\n\t\t\t\t\t\templeado.agregarLicenciaEmpleado(licenciaDocenteSinJustificar);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tlicenciaDocente.setCantDisponible(0);\r\n\t\t\t\t\tlicenciaDocenteSinJustificar.setCantDisponible(\r\n\t\t\t\t\t\t\tlicenciaDocenteSinJustificar.getCantDisponible() - (cantDiasAusente - diasRestantes));\r\n\r\n\t\t\t\t} else {\r\n\t\t\t\t\tnovedadPorLicencia = new Novedad(fecha, licencia, horasCatedraAusente, semanasMesCorriente,\r\n\t\t\t\t\t\t\tcantDiasAusente);\r\n\t\t\t\t\tlicenciaDocente.setCantDisponible(diasRestantes - cantDiasAusente);\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tif (empleado.getAntiguedad() > licencia.getAntiguedadRequerida()) {\r\n\t\t\t\t\tlicenciaDocente = new LicenciaEmpleado(licencia.getTiempo(), licencia);\r\n\t\t\t\t\templeado.agregarLicenciaEmpleado(licenciaDocente);\r\n\t\t\t\t\tif (cantDiasAusente > licenciaDocente.getCantDisponible()) {\r\n\t\t\t\t\t\tLicencia licenciaSinJustificar = LicenciaSRV.buscarLicencia(3);\r\n\t\t\t\t\t\tnovedadPorInasistenciaSinJustificar = new Novedad(fecha, licenciaSinJustificar,\r\n\t\t\t\t\t\t\t\thorasCatedraAusente, semanasMesCorriente,\r\n\t\t\t\t\t\t\t\tcantDiasAusente - licenciaDocente.getCantDisponible());\r\n\t\t\t\t\t\tnovedadPorLicencia = new Novedad(fecha, licencia, horasCatedraAusente, semanasMesCorriente,\r\n\t\t\t\t\t\t\t\tlicenciaDocente.getCantDisponible());\r\n\t\t\t\t\t\tif (licenciaDocenteSinJustificar == null) {\r\n\t\t\t\t\t\t\tlicenciaDocenteSinJustificar = new LicenciaEmpleado(licenciaSinJustificar.getTiempo(),\r\n\t\t\t\t\t\t\t\t\tlicenciaSinJustificar);\r\n\t\t\t\t\t\t\templeado.agregarLicenciaEmpleado(licenciaDocenteSinJustificar);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tlicenciaDocente.setCantDisponible(0);\r\n\t\t\t\t\t\tlicenciaDocenteSinJustificar.setCantDisponible(licenciaDocenteSinJustificar.getCantDisponible()\r\n\t\t\t\t\t\t\t\t- (cantDiasAusente - licenciaDocente.getCantDisponible()));\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tnovedadPorLicencia = new Novedad(fecha, licencia, horasCatedraAusente, semanasMesCorriente,\r\n\t\t\t\t\t\t\t\tcantDiasAusente);\r\n\t\t\t\t\t\tlicenciaDocente.setCantDisponible(licenciaDocente.getCantDisponible() - cantDiasAusente);\r\n\t\t\t\t\t}\r\n\t\t\t\t} else {\r\n\t\t\t\t\tLicencia licenciaSinJustificar = LicenciaSRV.buscarLicencia(3);\r\n\t\t\t\t\tif (licenciaDocenteSinJustificar == null) {\r\n\t\t\t\t\t\tlicenciaDocenteSinJustificar = new LicenciaEmpleado(licenciaSinJustificar.getTiempo(),\r\n\t\t\t\t\t\t\t\tlicenciaSinJustificar);\r\n\t\t\t\t\t\templeado.agregarLicenciaEmpleado(licenciaDocenteSinJustificar);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tnovedadPorInasistenciaSinJustificar = new Novedad(fecha, licenciaSinJustificar, horasCatedraAusente,\r\n\t\t\t\t\t\t\tsemanasMesCorriente, cantDiasAusente);\r\n\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif (novedadPorLicencia != null) {\r\n\t\t\t\tnovedadPorLicencia.setClase(clase);\r\n\t\t\t\templeado.agregarNovedad(novedadPorLicencia);\r\n\t\t\t}\r\n\t\t\tif (novedadPorInasistenciaSinJustificar != null) {\r\n\t\t\t\tnovedadPorInasistenciaSinJustificar.setClase(clase);\r\n\t\t\t\templeado.agregarNovedad(novedadPorInasistenciaSinJustificar);\r\n\t\t\t}\r\n\t\t\tEmpleadoSRV.actualizarEmpleado(empleado);\r\n\t\t}\r\n\r\n\t}", "title": "" }, { "docid": "c14b7648f2fe1d67db530b229e7d1c97", "score": "0.59252137", "text": "public static void actualizarCita() throws GestionVeterinarioException {\n\t\tDate fecha = null;\n\t\tboolean correcta = false;\n\t\tList<Cita> citaEncontrada;\n\t\tMascota mascotaChip;\n\t\tDueno duenoEncontrado;\n\n\t\t// Solicito id de cita que deseo actualizar\n\t\n\t\tSystem.out.println(\"Actualizacion de una cita\");\n\t\tSystem.out.println(\"Introduce el dni de la persona que quiere cambiar la cita: \");\n\t\tString dni = teclado.nextLine();\n\n\t\tduenoEncontrado = duenoDao.buscarPorDni(dni);\n\n\t\tif (duenoEncontrado == null) {\n\t\t\tthrow new GestionVeterinarioException(\"Error, no existe un dueño con ese dni \" + dni);\n\t\t} else {\n\t\t\tSystem.out.println(\"Introduce el chip de la mascota: \");\n\t\t\tint chip = Integer.parseInt(teclado.nextLine());\n\n\t\t\tmascotaChip = mascotaDao.buscarPorChip(chip);\n\t\t\tif (mascotaChip == null) {\n\t\t\t\tthrow new GestionVeterinarioException(\"No existe una mascota con ese chip \" + chip);\n\t\t\t} else {\n\t\t\t\tcitaEncontrada = citaDao.listarCitasMascota(chip);\n\n\t\t\t\tif (citaEncontrada == null) {\n\t\t\t\t\tthrow new GestionVeterinarioException(\"No existen citas asociadas a esta mascota \" + chip);\n\t\t\t\t} else {\n\t\t\t\t\t\n\t\t\t\t\tif (citaEncontrada.size() == 1) {\n\t\t\t\t\t\tdo {\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\tSystem.out.println(\"Introduzca la fecha: \");\n\t\t\t\t\t\t\t\tString nuevaFecha = teclado.nextLine();\n\n\t\t\t\t\t\t\t\t// Formateo el tipo de fecha\n\t\t\t\t\t\t\t\tSimpleDateFormat formater = new SimpleDateFormat(\"dd-MM-yyyy\");\n\t\t\t\t\t\t\t\tfecha = formater.parse(nuevaFecha);\n\n\t\t\t\t\t\t\t\tcorrecta = true;\n\n\t\t\t\t\t\t\t\t// Recojo la primera cita y la modifico\n\t\t\t\t\t\t\t\tcitaEncontrada.get(0).setFecha(fecha);\n\n\t\t\t\t\t\t\t\t// Actualizo la cita\n\t\t\t\t\t\t\t\tcitaDao.modificar(citaEncontrada.get(0));\n\n\t\t\t\t\t\t\t\tSystem.out.println(\"Cita actualizada correctamente.\");\n\t\t\t\t\t\t\t} catch (ParseException e) {\n\t\t\t\t\t\t\t\tSystem.out.println(\n\t\t\t\t\t\t\t\t\t\t\"La fecha introducida no es correcta, debe contener el formato(dd-MM-yyyy)\");\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t} while (correcta == false);\n\t\t\t\t\t} else {\n\t\t\t\t\t\t// Muestro todas las que ha encontrado\n\t\t\t\t\t\tfor (int i = 0; i < citaEncontrada.size(); i++) {\n\t\t\t\t\t\t\tSystem.out.println(\"Cita \" + i + \" :\" + citaEncontrada.get(i));\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tint numeroCita = -1;\n\n\t\t\t\t\t\tdo {\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\tSystem.out.println(\"Selecciona la cita que quieres modificar: \");\n\t\t\t\t\t\t\t\tnumeroCita = Integer.parseInt(teclado.nextLine());\n\n\t\t\t\t\t\t\t} catch (NumberFormatException e) {\n\t\t\t\t\t\t\t\tSystem.out.println(\"Error, debes introducir un numero \");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} while (numeroCita < 0 || numeroCita >= citaEncontrada.size());\n\n\t\t\t\t\t\tdo {\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\tSystem.out.println(\"Introduzca la fecha: \");\n\t\t\t\t\t\t\t\tString nuevaFecha = teclado.nextLine();\n\n\t\t\t\t\t\t\t\t// Formateo el tipo de fecha\n\t\t\t\t\t\t\t\tSimpleDateFormat formater = new SimpleDateFormat(\"dd-MM-yyyy\");\n\t\t\t\t\t\t\t\tfecha = formater.parse(nuevaFecha);\n\n\t\t\t\t\t\t\t\tcorrecta = true;\n\n\t\t\t\t\t\t\t\t// Recojo la primera cita y la modifico\n\t\t\t\t\t\t\t\tcitaEncontrada.get(numeroCita).setFecha(fecha);\n\n\t\t\t\t\t\t\t\t// Actualizo la cita\n\t\t\t\t\t\t\t\tcitaDao.modificar(citaEncontrada.get(numeroCita));\n\n\t\t\t\t\t\t\t\tSystem.out.println(\"Cita actualizada correctamente.\");\n\t\t\t\t\t\t\t} catch (ParseException e) {\n\t\t\t\t\t\t\t\tSystem.out.println(\n\t\t\t\t\t\t\t\t\t\t\"La fecha introducida no es correcta, debe contener el formato(dd-MM-yyyy)\");\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t} while (correcta == false);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "34f2d5855d0164001384e1dc998ab4d2", "score": "0.58729", "text": "public void carregaDiscipulosEncontroComDeusFinalizado(){\n\t\tList<Inscritos> listaIncritosEncontroComDeus = new ArrayList<Inscritos>();\r\n\t\tlistaIncritosEncontroComDeus.addAll(dadosEncontrosSelecionado.getInscritoses());\r\n\t\t\r\n\t\tfor(Inscritos ins : listaIncritosEncontroComDeus){\r\n\t\t\tencontrosDiscipulo = new EncontrosNoPersistenceDiscipulos();\r\n\t\t\tencontrosDiscipulo.setPossuiPreEncontro(true);\r\n\t\t\tencontrosDiscipulo.setDiscipulo(ins.getDiscipulos());\r\n\t\t\tdtDisGeracoes.add(encontrosDiscipulo);\r\n \t}\r\n\t}", "title": "" }, { "docid": "2cda362e1e9306d354e094a1de4e8151", "score": "0.5803472", "text": "protected void ataqueEfectuado(){\n\t\tfor(Vista vista: vistas)\n\t\t\tvista.reproducirAtaque();\n\t}", "title": "" }, { "docid": "cce8e7d6be4d58fb446049b9602d713a", "score": "0.57912064", "text": "public void refrescarForeignKeysDescripcionesAsistenciaMensual() throws Exception {\n\t\tif(Constantes.ISUSAEJBLOGICLAYER) {\r\n\t\t\tAsistenciaMensualConstantesFunciones.refrescarForeignKeysDescripcionesAsistenciaMensual(this.asistenciamensualLogic.getAsistenciaMensuals());\r\n\t\t} else if(Constantes.ISUSAEJBREMOTE || Constantes.ISUSAEJBHOME) {\r\n\t\t\tAsistenciaMensualConstantesFunciones.refrescarForeignKeysDescripcionesAsistenciaMensual(this.asistenciamensuals);\r\n\t\t}\r\n\t\t\r\n\t\t/*\r\n\t\tArrayList<Classe> classes=new ArrayList<Classe>();\r\n\t\t\r\n\t\tclasses.add(new Classe(Empresa.class));\r\n\t\tclasses.add(new Classe(Empleado.class));\r\n\t\tclasses.add(new Classe(Cargo.class));\r\n\t\tclasses.add(new Classe(Estructura.class));\r\n\t\tclasses.add(new Classe(Anio.class));\r\n\t\tclasses.add(new Classe(Mes.class));\r\n\t\t\t\r\n\t\tif(Constantes.ISUSAEJBLOGICLAYER) {\r\n\t\t\t//USA LOS OBJETOS DE LOGIC DIRECTAMENTE\r\n\t\t\t//asistenciamensualLogic.setAsistenciaMensuals(this.asistenciamensuals);\r\n\t\t\tasistenciamensualLogic.deepLoadsWithConnection(false, DeepLoadType.INCLUDE, classes,\"\");\r\n\t\r\n\t\t} else if(Constantes.ISUSAEJBREMOTE) {\r\n\t\t} else if(Constantes.ISUSAEJBHOME) {\r\n\t\t}\r\n\t\t*/\t\t\t\t\r\n\t}", "title": "" }, { "docid": "42ae6aed1f6d6f94fb7829ac9dcac1f0", "score": "0.57491595", "text": "public void intialecertif() {\n\t\tdateCertifPrese = \"\";\r\n\t\tdateCertifPreseAccomp = \"\";\r\n\t\tidCertificat = null;\r\n\t\tdateCertif = null;\r\n\t\ta = null;\r\n\r\n\t\t// remarque = null;\r\n\t\tremarques = null;\r\n\t\tdatereprise = null;\r\n\t\tdureederepos = 0;\r\n\t\tadaterdu = null;\r\n\t\tdatedelagression = null;\r\n\t\ttype = null;\r\n\t\taccompagnant = null;\r\n\t\tlesions = null;\r\n\t\theurelagr = 0;\r\n\t\tminutelagr = 0;\r\n\t\theuresys = 0;\r\n\t\tminutesys = 0;\r\n\t\tinapte = null;\r\n\t\ttype1 = null;\r\n\t\tcin = null;\r\n\t\tlivreele = null;\r\n\t\tdatereprise = null;\r\n\r\n\t}", "title": "" }, { "docid": "771c672d54d3a51f14508c9c80aa7bfe", "score": "0.566139", "text": "public static void ModificarMascota() {\n\t\tint iden=Reader.leerInt(\"Introduzca el identificador de la mascota\");\n\t\tfor (int ct0=0;ct0<ocupado;ct0++)\n\t\t{\n\t\t\tif (arrayMascotas[ct0].getIden()==iden)\n\t\t\t{\n\t\t\t\tString nombre=Reader.leerString(\"Introduzca nuevo nombre\");\n\t\t\t\tint edad=Reader.leerInt(\"Introduzca edad de la mascota\");\n\t\t\t\tarrayMascotas[ct0].setEdad(edad);\n\t\t\t\tarrayMascotas[ct0].setNombre(nombre);\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"No existe esa mascota\");\t\n\t\t\n\t}", "title": "" }, { "docid": "a6fd5f268941c2ebba336312ed8436b0", "score": "0.56392705", "text": "private void centrarEnVistas() {\n\t\tfor(Vista vista: vistas){\n\t\t\tvista.actualizar(this);\n\t\t}\n\t}", "title": "" }, { "docid": "69842c2cd3b0ed7572edb1fd52edcb39", "score": "0.56063056", "text": "public void editarDatosPrincipalesDeFactura(String codigo, String nuevoCodigo, String cliente, String fecha, String estado, String iva,\n String precioHora, String coche) {\n }", "title": "" }, { "docid": "88cb5b8eed729eae7b7f020c9d743854", "score": "0.55819017", "text": "public void notificarRepresentaciones(){\n\t\tfor(RepresentacionDeAlgoformer representador: representadores)\n\t\t\trepresentador.actualizar();\n\t}", "title": "" }, { "docid": "f597f8c6c93513c6ef40cf99062a2319", "score": "0.55695814", "text": "private void colisionesInvasores() {\n for (Invasor i : invasores) { \n if(i.isVivo()){\n i.colisionesMisDisparosConList(naves);\n i.colisionesMisDisparosConList(escudos);\n }\n }\n }", "title": "" }, { "docid": "9bd0c18ada1fb6235bca7378b8a693db", "score": "0.5561144", "text": "private void actualiseFraisVisiteur(String idVisiteur){\n controle.getLesFichesDeFrais(idVisiteur);\n controle.getLesLignesFraisForfait(idVisiteur);\n }", "title": "" }, { "docid": "9b62b77f5387df9c523e4b59040bf842", "score": "0.5543652", "text": "public void notificareAsistenti()\n\t{\n\t\tif(observatori!=null){\n\t\t\t//pentru fiecare observator se trimite informatii \n\t\t\tfor(int i=0;i<observatori.size();i++)\n\t\t\t{\n\t\t\t\tobservatori.get(i).doRezervare();\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "0ecc2b05fa1b3fe069983a07eba7914d", "score": "0.55424166", "text": "private void inicialitzarTaulell() {\r\n\t\t//PENDENT IMPLEMENTAR\r\n\t}", "title": "" }, { "docid": "f180acfd5c9ff8bd6da0d05586eadec8", "score": "0.55179423", "text": "public void prepararCorteInventarioInicial(){\r\n this.facturaCorte = ejbFacadeFacturaCorte.facturaCorteInventarioInicial();\r\n this.proveedorCorte = ejbFacadeProveedor.proveedorCorteInventarioInicial();\r\n this.caja = null;\r\n this.unidad = null;\r\n this.cajas = new ArrayList<Caja>();\r\n this.unidades = new ArrayList<Inventario>();\r\n this.numTallas = 6;\r\n resetearTodo();\r\n }", "title": "" }, { "docid": "307cac11f2f2e72d403c2d4fa1505ce4", "score": "0.54860735", "text": "@Override\n\tpublic void cekanjeNaAktivaciju() {\n\t\t\n\t}", "title": "" }, { "docid": "7a32a5621a13b7e1470545d531166584", "score": "0.54837245", "text": "public void esEditable(CompraCajaChica compraCajaChica)\r\n/* 211: */ throws ExcepcionAS2Compras, ExcepcionAS2Financiero\r\n/* 212: */ {\r\n/* 213:277 */ this.servicioPeriodo.buscarPorFecha(compraCajaChica.getFecha(), compraCajaChica.getIdOrganizacion(), DocumentoBase.CAJA_CHICA);\r\n/* 214:279 */ if (compraCajaChica.getEstado() == Estado.ANULADO) {\r\n/* 215:281 */ throw new ExcepcionAS2Compras(\"msg_error_editar\");\r\n/* 216: */ }\r\n/* 217:283 */ if (compraCajaChica.getCajaChica().getEstado() == Estado.CONTABILIZADO) {\r\n/* 218:286 */ if ((compraCajaChica.getFacturaProveedorSRI() != null) && (compraCajaChica.getFacturaProveedorSRI().isIndicadorReembolso())) {\r\n/* 219:287 */ compraCajaChica.setSoloLectura(true);\r\n/* 220: */ } else {\r\n/* 221:289 */ throw new ExcepcionAS2Compras(\"msg_error_editar\");\r\n/* 222: */ }\r\n/* 223: */ }\r\n/* 224:294 */ if ((compraCajaChica.getFacturaProveedorSRI() != null) && \r\n/* 225:295 */ (!compraCajaChica.getFacturaProveedorSRI().getAutorizacionRetencion().equals(\"0000000000\"))) {\r\n/* 226:296 */ throw new ExcepcionAS2Compras(\"msgs_error_existe_retencion_factura\");\r\n/* 227: */ }\r\n/* 228: */ }", "title": "" }, { "docid": "6b296211104e897140b98c7692d315e2", "score": "0.54760975", "text": "@Override\n\tpublic void atualizaOcorrenciaLida(Ocorrencia ocorrencia) {\n\t\t\n\t}", "title": "" }, { "docid": "ef7917c186fecbb3f74c3ef909eb78ff", "score": "0.54628545", "text": "public void updateSecciones() {\n\t\t\r\n\t}", "title": "" }, { "docid": "e20a3f6259e121c12561ffef9a5842a3", "score": "0.5445712", "text": "public void buscarFacturaAnulacion(){\n FacturaPK clave = new FacturaPK(numFactura,fechaFactura);\n factura = ejbFacadeFactura.find(clave);\n if(factura != null){\n new funciones().setMsj(1,\"FACTURA CARGADA\");\n selectAnulados.clear();\n numFactura = null;\n fechaFactura = null;\n agregar = false;\n selectAll = false;\n selectAnulados.clear();\n new funciones().setMsj(1, \"FACTURA \" + factura.getEstado());\n }else{\n new funciones().setMsj(3,\"FACTURA NO ENCONTRADA\");\n selectAnulados.clear();\n agregar = false;\n selectAll = false;\n selectAnulados.clear();\n }\n }", "title": "" }, { "docid": "b9b7102fee0975e93df8f8bfd9327cd0", "score": "0.5441346", "text": "public void actualiza() throws CantFindOnMap {\n\t\t\t\tif(!this._roads.isEmpty()){ \r\n\t\t\t\t\tfor(int i = 0 ; i < this._roads.size(); i++){\r\n\t\t\t\t\t\tthis._roads.get(i).avanza();\t\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t// llama al metodo avanza de cada cruce\r\n\t\tif(!this._junction.isEmpty()){ \r\n\t\t\tfor(int i = 0 ; i < this._junction.size(); i++){\r\n\t\t\t\tthis._junction.get(i).avanza();\r\n\t\t\t}\r\n\t\t}\r\n\t\t// ordeno carreteras\r\n\t\tfor(int i = 0; i < this._roads.size(); ++i) {\r\n\t\t\tthis._roads.get(i).ordenaLista();\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "8ab8bb10aee1202a1b883655e3c42e75", "score": "0.5436382", "text": "private void afficherEntrepotEtLivraisons() {\n\t\tVueNoeud vueNoeud=vueZone.getLesVuesNoeuds().get(feuilleDeRoute.getEntrepot().getNoeud().getId());\n\t\tvueNoeud.setEntrepot(feuilleDeRoute.getEntrepot());\n\t\tvueNoeud.setFill(Color.web(couleurEntrepot));\n\t\tvueNoeud.setRadius(6);\n\t\tIterator<PlageHoraire> itPlageHoraire=feuilleDeRoute.getListePlagesHoraire().iterator();\n\t\tIterator<Livraison> itLivraisons;\n\t\tLivraison livraison;\n\t\twhile (itPlageHoraire.hasNext()){\n\t\t\titLivraisons=itPlageHoraire.next().getListeLivraisons().iterator();\n\t\t\twhile (itLivraisons.hasNext()){\n\t\t\t\tlivraison=itLivraisons.next();\n\t\t\t\tvueNoeud=vueZone.getLesVuesNoeuds().get(livraison.getNoeudLivraison().getId());\n\t\t\t\tvueNoeud.setLivraison(livraison);\n\t\t\t\tvueNoeud.setFill(Color.web(couleurLivraisonNormale));\n\t\t\t\tvueNoeud.setRadius(6);\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "6f5817890160a76922b7a867a5092f62", "score": "0.5425924", "text": "public void obtenerDatos(){\n\t\ttry{\n\t\t\tif(mpPersona.getFlagNotificaEmail()!= null && mpPersona.getFlagNotificaEmail().compareTo(Constante.FLAG_ACTIVO)==0)\n\t\t\t\t mpPersona.setNotificaEmail(true);\n\t\t\telse if(mpPersona.getFlagNotificaEmail()!= null && mpPersona.getFlagNotificaEmail().compareTo(Constante.FLAG_INACTIVO)==0)\n\t\t\t mpPersona.setNotificaEmail(false);\n\t\t tipoPersonaId =mpPersona.getTipoPersonaId();\n\t\t\tsetCmbValuetipopersona(finMpPersonaItem.getTipoPersona());\n\t\t\tsubtipoPersonaId = finMpPersonaItem.getSubtipoPersonaId();\n\t\t\tsetCmbValuesubtipopersona(finMpPersonaItem.getSubtipopersona());\n\t\t\t\n\t\t\t/** Seteando la fecha de inscripcion del contribuyente*/\n\t\t\tsetFechaInscripcion(mpPersona.getFechaInscripcion());\n\t\t\t\n\t\t\tif(getCmbValuetipopersona().compareTo(Constante.TIPO_PERSONA_JURIDICA)==0 || getCmbValuetipopersona().toString().compareTo(Constante.TIPO_PERSONA_PATRIMONIO)==0){\n\t\t\t\tistipodocumentoadicional=Boolean.TRUE;\n\t\t\t\tisrazonsocial=Boolean.TRUE;\n\t\t\t istipopersonaNatural=Boolean.FALSE;\n\t\t\t}\n\t\t\telse if(getCmbValuetipopersona().toString().compareTo(Constante.TIPO_PERSONA_NATURAL)==0 || getCmbValuetipopersona().toString().compareTo(Constante.TIPO_PERSONA_SOC_CONYUGAL)==0 || getCmbValuetipopersona().toString().compareTo(Constante.TIPO_PERSONA_COPROPIEDAD)==0){\n\t\t\t\tistipodocumentoadicional=Boolean.FALSE;\n\t\t\t\tistipopersonaNatural=Boolean.TRUE;\n\t\t\t\tisrazonsocial=Boolean.FALSE;\n\t\t\t}\n\t\t\tif(finMpPersonaItem.getSituacionEmpresarial()!=null){\n\t\t\t\tif(getCmbValuetipopersona().compareTo(Constante.TIPO_PERSONA_JURIDICA)==0 || getCmbValuetipopersona().toString().compareTo(Constante.TIPO_PERSONA_PATRIMONIO)==0){\n\t\t\t\t\tif(finMpPersonaItem.getSituacionEmpresarial().compareTo(Constante.SITUACION_EMPRESARIAL_DEF_PERJURID_PATRIAUTO)==0){\n\t\t\t\t\t\tsetCmbValueMpSituacionEmpresarial(Constante.SITUACION_EMPRESARIAL_DEF_PERJURID_PATRIAUTO);\n\t\t\t\t\t\tissituacionempresarial=Boolean.FALSE;\n\t\t\t\t\t\tsituacionEmpresarialId=finMpPersonaItem.getSituacionEmpresarialId();\n\t\t\t\t\t}else if(finMpPersonaItem.getSituacionEmpresarial().compareTo(Constante.SITUACION_EMPRESARIAL_DEF_PERJURID_PATRIAUTO)!=0){\n\t\t\t\t\t\tsetCmbValueMpSituacionEmpresarial(finMpPersonaItem.getSituacionEmpresarial());\n\t\t\t\t\t\tsituacionEmpresarialId=finMpPersonaItem.getSituacionEmpresarialId();\n\t\t\t\t\t\tissituacionempresarial=Boolean.TRUE;\n\t\t\t\t\t setFechaIniSituacionE(finMpPersonaItem.getFechaSituacionEmpresarial());\n\t\t\t\t\t setFechaFinSituacionE(finMpPersonaItem.getFechaFinSituacionEmpresarial());\n\t\t\t\t\t setFechaEmisionDoc(finMpPersonaItem.getFechaEmisionSituacionEmpresarial());\n\t\t\t\t\t fechaIniSituacionE=finMpPersonaItem.getFechaSituacionEmpresarial();\n\t\t\t\t\t fechaFinSituacionE=finMpPersonaItem.getFechaFinSituacionEmpresarial();\n\t\t\t\t\t fechaEmisionDoc=finMpPersonaItem.getFechaEmisionSituacionEmpresarial();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse if(getCmbValuetipopersona().toString().compareTo(Constante.TIPO_PERSONA_NATURAL)==0 || getCmbValuetipopersona().toString().compareTo(Constante.TIPO_PERSONA_SOC_CONYUGAL)==0||getCmbValuetipopersona().toString().compareTo(Constante.TIPO_PERSONA_COPROPIEDAD)==0){\n\t\t\t\t\t\tif(finMpPersonaItem.getSituacionEmpresarial().compareTo(Constante.SITUACION_EMPRESARIAL_DEFECTO)==0){\n\t\t\t\t\t\t\tsetCmbValueMpSituacionEmpresarial(Constante.SITUACION_EMPRESARIAL_DEFECTO);\n\t\t\t\t\t\t\tissituacionempresarial=Boolean.FALSE;\n\t\t\t\t\t\t\tsituacionEmpresarialId=finMpPersonaItem.getSituacionEmpresarialId();\n\t\t\t\t\t\t}else if(finMpPersonaItem.getSituacionEmpresarial().compareTo(Constante.SITUACION_EMPRESARIAL_DEFECTO)!=0){\n\t\t\t\t\t\t\tsetCmbValueMpSituacionEmpresarial(finMpPersonaItem.getSituacionEmpresarial());\n\t\t\t\t\t\t\tsituacionEmpresarialId=finMpPersonaItem.getSituacionEmpresarialId();\n\t\t\t\t\t\t\tissituacionempresarial=Boolean.TRUE;\n\t\t\t\t\t\t setFechaIniSituacionE(finMpPersonaItem.getFechaSituacionEmpresarial());\n\t\t\t\t\t\t setFechaFinSituacionE(finMpPersonaItem.getFechaFinSituacionEmpresarial());\n\t\t\t\t\t\t setFechaEmisionDoc(finMpPersonaItem.getFechaEmisionSituacionEmpresarial());\n\t\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}else if(finMpPersonaItem.getSituacionEmpresarial()==null){\t\t\n\t\t\t\tsetCmbValueMpSituacionEmpresarial(Constante.SITUACION_EMPRESARIAL_DEFECTO);\n\t\t\t\tissituacionempresarial=Boolean.FALSE;\n\t\t\t\tsituacionEmpresarialId=Constante.SITUACION_EMPRESARIAL_ID_DEFECTO;\n\t\t\t}\n\t\t\tgnCondicionEspecial=personaBo.findCondicionEspecial(mpPersona);\n\t\t\tif(gnCondicionEspecial==null){\n\t\t\t\tsetCmbValuetipocondicionespecial(Constante.CONDICION_ESPECIAL_DEFECTO);\n\t\t\t\tistipocondicionespecial=Boolean.FALSE;\n\t\t\t\tgnCondicionEspecial=new GnCondicionEspecial();\n\t\t\t\tGnCondicionEspecialPK id=new GnCondicionEspecialPK();\n\t\t\t\tid.setCondicionEspecialId(Constante.RESULT_PENDING);\n\t\t\t\tid.setPersonaId(Constante.RESULT_PENDING);\n\t\t\t\tgnCondicionEspecial.setId(id);\n\t\t\t}else if(gnCondicionEspecial!=null){\n\t\t\t\tMpTipoCondicionEspecial tempce=new MpTipoCondicionEspecial();\n\t\t\t\ttempce = personaBo.finMpTipoCondicionEspecial(gnCondicionEspecial.getTipoCondEspecialId());\n\t\t\t\t//setCmbValuetipocondicionespecial(finMpPersonaItem.getTipoCondicionEspecial());\n\t\t\t\tif(tempce!=null)\n\t\t\t\tsetCmbValuetipocondicionespecial(tempce.getDescripcion());\n\t\t\t\tistipocondicionespecial=Boolean.TRUE;\n\t\t\t\ttipoCondicionEspecialId=finMpPersonaItem.getTipoCondicionEspecialId();\n\t\t\t setFechaDocumento(gnCondicionEspecial.getFechaDocumento());\n\t\t\t setFechaInicioCond(gnCondicionEspecial.getFechaInicio());\n\t\t\t setFechaFinCond(gnCondicionEspecial.getFechaFin());\n\t\t\t setCmbValuetipodocumentoCondicionEspecial(finMpPersonaItem.getTipodocumento());\n\t\t\t}\n\t\t\t\n\t\t\tif(getCmbValuesubtipopersona().compareTo(Constante.SUB_TIPO_PERSONA_SUC_INDIVISA)==0){\n\t\t\t\tissucesionindivisa=Boolean.TRUE;\n\t\t\t\tfechaDefuncion=finMpPersonaItem.getFechaDefuncion();}\n\t\t\telse if(getCmbValuesubtipopersona().compareTo(Constante.SUB_TIPO_PERSONA_SUC_INDIVISA)!=0){ \n\t\t\t\tissucesionindivisa=Boolean.FALSE;}\n\t\t\t\n\t\t\ttipodocumentoIdentidadId = finMpPersonaItem.getTipoDocIdentidadId();\n\t\t\tsetCmbValuetipodocumentoidentidad(finMpPersonaItem.getTipoDocumentoIdentidad());\n\t\t\t\n\t\t\ttipodocumentoId = finMpPersonaItem.getTipodocumentoId();\n\t\t\tsetCmbValuetipodocumentoCondicionEspecial(finMpPersonaItem.getTipodocumento());\n\t\t\t\n\t\t\trecordsRelacionado=personaBo.getAllMpRelacionadoPersona(finMpPersonaItem.getPersonaId());\n\t\t\tif(mpPersona.getFlagEstatal()!=null){\n\t\t\t\tflagEstatal = mpPersona.getFlagEstatal().compareTo(Constante.ESTADO_ACTIVO) == 0? Boolean.TRUE:Boolean.FALSE;\n\t\t\t\tint flagEst = flagEstatal? 1:0;\n\t\t\t\t\n\t\t\t\tif(flagEst == 0)\n\t\t\t\t{\n\t\t\t\t\tthis.setSeleccionTipoEmpresa(\"No Estatal\");\n\t\t\t\t\tflagEstatal = Boolean.FALSE;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tthis.setSeleccionTipoEmpresa(\"Estatal\");\n\t\t\t\t\tflagEstatal = Boolean.TRUE;\n\t\t\t\t}\t\n\t\t\t}else {\n\t\t\t\tflagEstatal = Boolean.FALSE;\n\t\t\t}\n\t\t\t\n\t\t\t//relacionados adulto\n\t\t\trecordsRelacionadoAdult=personaBo.getAllMpRelacionadoPersona(finMpPersonaItem.getPersonaId());\n\t\t\tif(mpPersona.getFlagEstatal()!=null){\n\t\t\t\tflagEstatal = mpPersona.getFlagEstatal().compareTo(Constante.ESTADO_ACTIVO) == 0? Boolean.TRUE:Boolean.FALSE;\n\t\t\t\tint flagEst = flagEstatal? 1:0;\n\t\t\t\t\n\t\t\t\tif(flagEst == 0)\n\t\t\t\t{\n\t\t\t\t\tthis.setSeleccionTipoEmpresa(\"No Estatal\");\n\t\t\t\t\tflagEstatal = Boolean.FALSE;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tthis.setSeleccionTipoEmpresa(\"Estatal\");\n\t\t\t\t\tflagEstatal = Boolean.TRUE;\n\t\t\t\t}\t\n\t\t\t}else {\n\t\t\t\tflagEstatal = Boolean.FALSE;\n\t\t\t}\n\t\t\t\n\t\t recordsDireccion=personaBo.finMpDireccionPersona(finMpPersonaItem.getPersonaId());\n\t\t if(mpPersona.getNroDj()!=null&&mpPersona.getNroDj()>0&&recordsDireccion.size()==0)\n\t\t {\n\t \t if(recordsDireccion.size()>0){\n\t \t \tpersonaBo.actualizarEstadoMpDireccion(recordsDireccion.get(0).getDireccionId(), Constante.ESTADO_ACTIVO);\n\t\t\t\t\tpersonaBo.actualizarEstadoMpPersonaDomicilio(recordsDireccion.get(0).getPersonaDomicilio(), Constante.ESTADO_ACTIVO);\n\t\t\t\t\trecordsDireccion = new ArrayList<FindMpDireccion>();\n\t\t\t\t\trecordsDireccion=personaBo.finMpDireccionPersona(finMpPersonaItem.getPersonaId());\n\t\t\t\t}\n\t\t }\n\t\t \n\t\t //Obtiene los objetos necesarios para el mantenimiento de la direccion de la persona.\n\t if(recordsDireccion.size()>0){\n\t \tFindMpDireccion direccion=recordsDireccion.get(0);\n\t \t\n\t \tisDomiciliosIngresados=Boolean.TRUE;\n\t \t\n\t \tmpDireccion=personaBo.finMpDireccion(recordsDireccion.get(0).getDireccionId());\n\t \tmpPersonaDomicilio=personaBo.finMpPersonaDomicilio(recordsDireccion.get(0).getPersonaDomicilio());\n\t \t\n\t \tubicacionDTO.setNumeroCuadra(direccion.getNroCuadra());\n\t \tubicacionDTO.setLado(direccion.getLadoCuadra());\n\t \t\n\t \tubicacionDTO.setTipoVia(direccion.getTipoVia());\n\t\t\t\tubicacionDTO.setViaid(direccion.getViaId());\n\t\t\t\tubicacionDTO.setVia(direccion.getVia());\n\t\t\t\tubicacionDTO.setSector(direccion.getSector());\n\t }\n\t \n\t if(finMpPersonaItem.getNroDj()==null || finMpPersonaItem.getNroDj()<=0){\n\t \tgeneradoDJ=Constante.NO_GENERADO_DJ;\n\t }else\n\t \tgeneradoDJ=Constante.GENERADO_DJ;\n\t \n\t viewcmbMpSubtipoPersona();\n\t viewcmbMpCondicionContribuyente();\n\t viewcmbMpSituacionEmpresarial();\n\t viewcmbtipodocumento();\n\t\t}catch(Exception e){\n\t\t\te.printStackTrace();\n\t\t\tWebMessages.messageFatal(e);\t\t\t\n\t\t}\n\t}", "title": "" }, { "docid": "8d0545296c239aa5cc603500e1f693c0", "score": "0.5416706", "text": "public static void consultarCitasMascotas() throws GestionVeterinarioException {\n\t\tMascota mascotaEncontrada;\n\t\tList<Cita> mascotasConCita;\n\n\t\tSystem.out.println(\"Busqueda cita Mascota\");\n\t\tSystem.out.println(\"Introduce el chip de la mascota que deseas buscar: \");\n\t\tint chipMascota = Integer.parseInt(teclado.nextLine());\n\n\t\tmascotaEncontrada = mascotaDao.buscarPorChip(chipMascota);\n\t\tmascotasConCita = citaDao.listarCitasMascota(chipMascota);\n\n\t\tif (mascotaEncontrada == null) {\n\t\t\tthrow new GestionVeterinarioException(\"No existe ninguna mascota con ese chip \" + chipMascota);\n\t\t} else {\n\t\t\tif (mascotasConCita == null) {\n\t\t\t\tthrow new GestionVeterinarioException(\n\t\t\t\t\t\t\"La mascota con el chip \" + chipMascota + \" no tiene citas asociadas en este momento\");\n\t\t\t} else {\n\t\t\t\tfor (Cita cita : mascotasConCita) {\n\t\t\t\t\tSystem.out.println(cita.mostrarCitasConMascotas());\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "375b9eb76783d9c062bfb3517daa7cf0", "score": "0.5403329", "text": "private void obtenerMetaVendedor() {\n\t\tString str=\"\";\r\n\t\t//Producto productoAux=productoDao.loadByRowId(idProducto);\r\n\t\tstr=str+idusuario;\r\n Meta metav= metaDao.loadByRowId(1);\r\n if (metav==null) exito=false;\r\n else exito=true;\r\n periodo= metav.getNombre();\r\n avance=metav.getSuma();\r\n metareal=metav.getMeta();\r\n \t\r\n\t\t\r\n\t}", "title": "" }, { "docid": "8fd4f16a8b999edf669c7e227957565e", "score": "0.5385109", "text": "private void actualizarZonaFechaDespacho(PedidoCliente pedidoCliente)\r\n/* 332: */ {\r\n/* 333: 341 */ if (pedidoCliente.getFechaDespacho() == null)\r\n/* 334: */ {\r\n/* 335: 342 */ Date fechaDespacho = pedidoCliente.getFecha();\r\n/* 336: 343 */ int diasDespacho = 0;\r\n/* 337: 344 */ if ((pedidoCliente.getEmpresaFinal() != null) && (pedidoCliente.getEmpresaFinal().getCliente().getTipoOrdenDespacho() != null) && \r\n/* 338: 345 */ (pedidoCliente.getEmpresaFinal().getCliente().getTipoOrdenDespacho().getDiasDespacho() > 0)) {\r\n/* 339: 346 */ diasDespacho = pedidoCliente.getEmpresaFinal().getCliente().getTipoOrdenDespacho().getDiasDespacho();\r\n/* 340: */ }\r\n/* 341: 349 */ if (pedidoCliente.getZona() == null)\r\n/* 342: */ {\r\n/* 343: 350 */ Zona zona = pedidoCliente.getEmpresaFinal().getCliente().getZona();\r\n/* 344: 351 */ pedidoCliente.setZona(zona);\r\n/* 345: */ }\r\n/* 346: 354 */ fechaDespacho = FuncionesUtiles.sumarFechaDiasMeses(pedidoCliente.getFecha(), diasDespacho);\r\n/* 347: 355 */ pedidoCliente.setFechaDespacho(fechaDespacho);\r\n/* 348: */ }\r\n/* 349: */ }", "title": "" }, { "docid": "41f1be84fdce35715673d90e290fe418", "score": "0.537427", "text": "public void lerSensores() {\n\t\tInformacao info = SingleConector.getInformacao();\n\n\t\tint altitude = info.getAltitude();\n\t\tint velocidade = info.getVelocidade();\n\n\t\tSystem.out.println(\"Altitude \" + info.getAltitude());\n\t\tSystem.out.println(\"Velocidade \" + info.getVelocidade());\n\t\tSystem.out.println(\"movimento \" + info.getMovimento());\n\n\t\tif (info.getMovimento() == 1) {\n\t\t\thistorico.add(info);\n\t\t\tSystem.out.println(\"vel:\" + info.getVelocidade());\n\t\t\tSystem.out.println(\"Alt:\" + info.getAltitude());\n\t\t}\n\n\t}", "title": "" }, { "docid": "1aadc5eb8d7b1e18d05ca53fde0745d7", "score": "0.5360455", "text": "public void listarEncontrosComDeusFinalizados(){\n\t\tlistaEncontroComDeus = new ArrayList<Dadosencontros>();\r\n\t\tlistaEncontroComDeus.addAll(dadosEncontrosDao.listarEncontrosComDeus(discipuloSessao.getDiscipulos().getDisCod(), 2));\r\n\t\t\r\n\t\t//verificar se esse encontro tem encontro filho\r\n\t\tList<Dadosencontros> listaTempRemover = new ArrayList<Dadosencontros>(listaEncontroComDeus);\r\n\t\tfor(Dadosencontros enc : listaEncontroComDeus){\r\n\t\t\tint retorno = dadosEncontrosDao.listarEncontrosFilhos(enc.getDadenccod()).size();\r\n \t\tif(retorno > 0){\r\n \t\t\tlistaTempRemover.remove(enc);\r\n \t\t}\r\n \t}\r\n\t\tlistaEncontroComDeus = new ArrayList<Dadosencontros>();\r\n\t\tlistaEncontroComDeus.addAll(listaTempRemover);\r\n\t}", "title": "" }, { "docid": "285c8ea6804ff9954ef551f05affccd8", "score": "0.535837", "text": "private void actualizarCetro() {\r\n if (!(ae.getCetro() instanceof DesArmado)) {\r\n calcularAlcance();\r\n ae.getCetro().actualizar();\r\n }\r\n }", "title": "" }, { "docid": "dddd9c83b91a92880d4d01eecb3576cb", "score": "0.53542495", "text": "private void actualizaCuentas() {\n\t \n final DataBase objeto = new DataBase(EstadosCuenta.this);\n\t \n\t try {\n\t\tobjeto.abrir();\t\t \n\t\t\n\t\t int tamanoCuentas = getCliente().getEstadoCuentas().length;\n\t\tfor(int i=0; i<tamanoCuentas; i++)\n\t\t{\n\t\t\t Cursor c = objeto.consultaSumaAbonos(getCliente().getEstadoCuentas()[i].getMovdocumento());\n\t\t\t\t \n\t\t\t\tc.moveToFirst();\n\t\t\t\tFloat suma = Float.parseFloat(c.getString(0));\n\t\t\t\tgetCliente().getEstadoCuentas()[i].setPagado(Float.toString(suma));\n\t\t\t\t//Float saldo = Float.parseFloat(getCliente().getEstadoCuentas()[i].getSaldo());\n\t\t\t\tFloat credit = Float.parseFloat(getCliente().getEstadoCuentas()[i].getCredito());\n\t\t\t\t//getCliente().getEstadoCuentas()[i].\n\t\t\t\tgetCliente().getEstadoCuentas()[i].setSaldo(Float.toString(credit-suma));\n\t\t\t\t \n\t\t}\n\t\t\n\t\t\t\n\t} catch (Exception e) {\n\t\t// TODO Auto-generated catch block\n\t\te.printStackTrace();\n\t\t\n\t\tToast.makeText(getBaseContext(), \"NO SE HAN REALIZADO PAGOS \\n EN ALGUNAS CUENTAS\", Toast.LENGTH_LONG).show();\n\t}\n\t \n\t \n\t objeto.cerrar();\n}", "title": "" }, { "docid": "de1531d96c13783c9fee77e152996cbf", "score": "0.5328729", "text": "public void verListaFacturas(Usuarios usuarios){\n //Obtenemos el cliente. \"Indique a continuacion el nombre o email del cliente\"\n String neCliente = formatearEntradaCadena(UIMensajes.mF_AD_IndicarNombreEmail(), true);\n Usuario usuario = usuarios.obtenerUsuario(neCliente.toLowerCase());\n\n boolean encontrado = false;\n if(usuario!=null){\n if(usuario instanceof Cliente){ //Si el usuario encontrado es un cliente\n encontrado = true;\n Cliente cliente = (Cliente) usuario;\n FichaCliente fc = cliente.obtenerFichaCliente();\n \n //Imprimimos la informacion de cada factura que tenga el cliente\n for(int i = 0; i < fc.obtenerNumeroFacturas(); i++){\n Factura factura = fc.obtenerFactura(i);\n \n System.out.println(); //Primera linea\n System.out.print(\"\\t\" + UIMensajes.mT_AR_Coste());\n System.out.print(factura.obtenerCoste());\n System.out.print(\" |\" + UIMensajes.mC_AñP_Dia());\n System.out.print(factura.obtenerDia());\n System.out.print(\" |\" + UIMensajes.mC_AñP_Mes());\n System.out.print(factura.obtenerMes());\n System.out.print(\" |\" + UIMensajes.mC_AñP_Año());\n System.out.print(factura.obtenerAño()); \n \n System.out.println(); //Segunda linea\n System.out.print(\"\\t\" + UIMensajes.mC_AñP_DescripcionFactura());\n System.out.print(factura.obtenerDescripcion());\n }\n \n //Dejamos constancia de la operacion realizada\n dejarConstancia(cliente, obtenerFinanciador(), EnumOperaciones.mF_IMPRIMIRCLIENTE,\n obtenerDiaActual(), obtenerMesActual(), obtenerAñoActual());\n }\n }\n \n if(!encontrado){\n //\"Cliente no encontrado\"\n System.out.println(UIMensajes.mF_AD_ClienteNoEncontrado());\n }\n }", "title": "" }, { "docid": "55434d9e47a947d0dab6182d31391df8", "score": "0.5325434", "text": "public void refoundCourse() {\n\t\t\r\n\t}", "title": "" }, { "docid": "b00067ef57ec1317e48100236e8c6e24", "score": "0.5309181", "text": "public void actualizarVista(int ataque){\n\t\tfor(Vista vista: vistas){\n\t\t\tvista.update(this, this.posicion, ataque);\n\t\t}\n\t}", "title": "" }, { "docid": "455fc4427f56a8d0810780c7c900e43d", "score": "0.53071785", "text": "public void actualizarSaldos(MovimientoPartidaPresupuestaria movimientoPartidaPresupuestaria, Presupuesto presupuesto)\r\n/* 417: */ {\r\n/* 418:393 */ Map<String, DetallePresupuesto> hashDetallesPresupuesto = new HashMap();\r\n/* 419:394 */ for (DetallePresupuesto dpr : presupuesto.getListaDetallePresupuesto()) {\r\n/* 420:395 */ hashDetallesPresupuesto.put(dpr.getCuentaContable().getId() + \"~\" + dpr.getDimensionContable().getId(), dpr);\r\n/* 421: */ }\r\n/* 422:397 */ for (DetalleMovimientoPartidaPresupuestaria dmpp : movimientoPartidaPresupuestaria.getListaDetalleMovimientoPartidaPresupuestaria())\r\n/* 423: */ {\r\n/* 424:398 */ DetallePresupuesto aux = (DetallePresupuesto)hashDetallesPresupuesto.get(dmpp.getCuentaContableOrigen().getId() + \"~\" + dmpp\r\n/* 425:399 */ .getDimensionContableOrigen().getId());\r\n/* 426:400 */ actualizarValorDetalle(dmpp, aux, movimientoPartidaPresupuestaria.getMesOrigen(), true);\r\n/* 427:401 */ if (dmpp.getCuentaContableDestino() != null) {\r\n/* 428:402 */ actualizarValorDetalle(dmpp, aux, movimientoPartidaPresupuestaria.getMesDestino(), false);\r\n/* 429: */ }\r\n/* 430: */ }\r\n/* 431: */ }", "title": "" }, { "docid": "271ac936c56e097db9e2cd6f2f022ea8", "score": "0.5304666", "text": "private static void aktualisiereMarkierungen(CoreColony colony)\n {\n // TODO: Settings ber�cksichtigen\n // Markierungen aktualisieren und inaktive Markierungen l�schen.\n List<CoreMarker> gemerkteMarkierungen = new List<CoreMarker>();\n\n foreach (CoreMarker markierung in colony.Marker)\n {\n if (markierung.IstAktiv)\n {\n markierung.Aktualisieren();\n }\n else\n {\n gemerkteMarkierungen.Add(markierung);\n }\n }\n gemerkteMarkierungen.ForEach(delegate(CoreMarker marker)\n {\n colony.Insects.ForEach(delegate(CoreInsect insect)\n {\n CoreAnt ant = insect as CoreAnt;\n if (ant != null)\n {\n ant.SmelledMarker.Remove(marker);\n }\n });\n }", "title": "" }, { "docid": "045734916d3bb6c4aa2669c41eb20813", "score": "0.53042156", "text": "public void actualizarDatosCliente(Usuarios usuarios){\n //\"Indique a continuacion el nombre o email del cliente a registrar\"\n String neCliente = formatearEntradaCadena(UIMensajes.mF_AD_IndicarNombreEmail(), true);\n Usuario usuario = usuarios.obtenerUsuario(neCliente.toLowerCase());\n \n boolean encontrado = false;\n if(usuario != null){\n if(usuario instanceof Cliente){ //Si el usuario encontrado es un cliente\n encontrado = true;\n Cliente cliente = (Cliente) usuario;\n \n //Entradas aceptables\n String nombre = UIMensajes.g_Nombre();\n String email = UIMensajes.g_Email();\n String domicilio = UIMensajes.g_Domicilio();\n String telefono = UIMensajes.g_Telefono();\n \n //\"¿Que desea modificar?\" , \"Nombre\", \"Email\", \"Domicilio\", \"Telefono\"\n formatearCadena(UIMensajes.mF_AD_QueModificar(), true, true);\n System.out.print(\" (\" + nombre + \"/\" + email + \"/\" + \n domicilio + \"/\" + telefono + \"): \");\n \n //Entradas aceptables\n ArrayList<String> listaModificaciones = new ArrayList<String>();\n listaModificaciones.add(nombre.toLowerCase());\n listaModificaciones.add(email.toLowerCase());\n listaModificaciones.add(domicilio.toLowerCase());\n listaModificaciones.add(telefono.toLowerCase());\n \n //Obtenemos una cadena que indique lo que se quiere modificar\n String modElegida = UIEntradas.obtenerCadenaLimitada(listaModificaciones, false);\n \n //\"Nombre\", \"Email\" , \"Domicilio\", \"Telefono\"\n if(modElegida.equals(nombre.toLowerCase())){\n //Modificar el nombre del cliente\n formatearCadena(nombre, true, true);\n String nuevoNombre = UIEntradas.obtenerCadena(true);\n cliente.asignarNombreUsuario(nuevoNombre);\n }else if(modElegida.equals(email.toLowerCase())){\n //Modificar el email del cliente\n formatearCadena(email, true, true);\n String nuevoEmail = UIEntradas.obtenerCadena(true);\n cliente.asignarEmailUsuario(nuevoEmail);\n }else if(modElegida.equals(domicilio.toLowerCase())){\n //Modificar el domicilio del cliente\n formatearCadena(domicilio, true, true);\n String nuevoDomicilio = UIEntradas.obtenerCadena(true);\n cliente.asignarDomicilio(nuevoDomicilio);\n }else if(modElegida.equals(telefono.toLowerCase())){\n //Modificar el domicilio del cliente\n formatearCadena(telefono, true, true);\n String nuevoTelefono = UIEntradas.obtenerCadena(true);\n cliente.asignarTelefono(nuevoTelefono);\n }\n \n //\"Se ha registrado el cliente con exito\"\n System.out.println(UIMensajes.mF_DA_RegistradoExito());\n \n //Dejamos constancia de la operacion realizada\n dejarConstancia(cliente, obtenerFinanciador(), EnumOperaciones.mF_ACTUALIZARCLIENTE,\n obtenerDiaActual(), obtenerMesActual(), obtenerAñoActual());\n }\n }\n \n if(!encontrado){\n //\"Cliente no encontrado\"\n System.out.println(UIMensajes.mF_AD_ClienteNoEncontrado());\n }\n }", "title": "" }, { "docid": "ad16a1f248595c8b7eaed927baf02a5a", "score": "0.5298645", "text": "public static void modificarApellido() {\r\n for (int i = 0; i < cuentasClientes.size(); i++) {\r\n if (cuentasClientes.get(i).getNumeroCuenta() == numerocuenta) {\r\n Paco.modificarApellido(cuentasClientes.get(i));\r\n }\r\n }\r\n\r\n }", "title": "" }, { "docid": "fff8f2a4e9c6566a61f276f7ad7ed560", "score": "0.5296838", "text": "@Override\r\n\tpublic void actualizar(Object entidad) {\n\t\t\r\n\t}", "title": "" }, { "docid": "fa47c4f9e2dc3d11218ef78f7bd30e9e", "score": "0.5293758", "text": "protected void popularRegistroAtual() {\r\n\t\tthis.leuPrimeiraLinha = true;\r\n\t\tString value = getValorLido();\r\n\r\n\t}", "title": "" }, { "docid": "dff033b6b95ad43bb76721654640d743", "score": "0.5284183", "text": "private void comprobarTiro() {\r\n for (Rectangle rectangle : rectanguloDisparo) {\r\n for (Enemigo enemigo : ElementosPrincipales.mapa.getEnemigos()) {\r\n if (rectangle.intersects(enemigo.getAreaDisparo())) {\r\n ElementosPrincipales.jugador.getAlmacenEquipo().getCetro().atacar(enemigo);\r\n }\r\n }\r\n }\r\n Iterator<Enemigo> iterador = ElementosPrincipales.mapa.getEnemigos().iterator();\r\n while (iterador.hasNext()) {\r\n Enemigo enemigo = iterador.next();\r\n if (enemigo.getVidaActual() <= 0) {\r\n iterador.remove();\r\n }\r\n }\r\n }", "title": "" }, { "docid": "74e81784a325bbfe7d5bf88cefaccd58", "score": "0.5268919", "text": "private void estableceCamposCoincidencia(EmpresaVO empresa, List<EmpresaFraudulentaVO> empresasFraudulentas){\n\n\t\tfor (EmpresaFraudulentaVO empfrau : empresasFraudulentas){\n\t\t\tString coincidencias = verificaCamposCoincidencia(empresa, empfrau);\n\t\t\tempfrau.setCoincidencias(coincidencias);\n\t\t}\n\t}", "title": "" }, { "docid": "e064b1372b27d3c95858058a547298c1", "score": "0.5258511", "text": "@Override\r\n\tpublic void solicitarIdentificación() {\n\t\tSystem.out.println(\"Solicitar cédula de identidad\");\r\n\t\tSystem.out.println(\"Libro entregado: El Retrato de Dorian Grey, de Oscar Wilde\");\r\n\t}", "title": "" }, { "docid": "02d9e43aeeefbe1510af0f188d1d99fd", "score": "0.52559304", "text": "public void actualizarAtributoEntidad(CompraCajaChica compraCajaChica, HashMap<String, Object> campos)\r\n/* 313: */ {\r\n/* 314:407 */ this.compraCajaChicaDao.actualizarAtributoEntidad(compraCajaChica, campos);\r\n/* 315: */ }", "title": "" }, { "docid": "1f9ca8c3ceb4364d00bcaef62fe2d420", "score": "0.5254674", "text": "private void actualizarLoteVacuna() {\n if (!validarTextField()) {\n try {\n java.sql.Date fechaFabricacion = new java.sql.Date(this.jDCFechaFabricacion.getDate().getTime());\n java.sql.Date fechaVencimietno = new java.sql.Date(this.jDCFechaVencimietno.getDate().getTime());\n CDLoteVacuna cdlv = new CDLoteVacuna();\n CLLoteVacuna cl = new CLLoteVacuna();\n cl.setNumLoteVacuna(this.jTFNumLote.getText().trim().toUpperCase());\n cl.setFechaFabricacion(fechaFabricacion);\n cl.setFechaVencimiento(fechaVencimietno);\n cl.setIdFbricante(Integer.parseInt(jTFIdFabricante.getText()));\n cdlv.actualizarloteVacuna(cl);\n JOptionPane.showMessageDialog(null, \"¡Registrado actualizado!\", \"COVA System\", JOptionPane.INFORMATION_MESSAGE);\n this.jTFNumLote.requestFocus();\n } catch (SQLException e) {\n JOptionPane.showMessageDialog(null, \"¡Error al modificar!\" + e);\n this.jTFNumLote.requestFocus();\n }\n } else {\n JOptionPane.showMessageDialog(null, \"Ingresar los nuevos datos del lote\", \"COVA System\", JOptionPane.INFORMATION_MESSAGE);\n this.jTFNumLote.requestFocus();\n }\n }", "title": "" }, { "docid": "d92ab3d566e3bdcc4e5257b7978f5031", "score": "0.52408445", "text": "@Override public void avvia() {\n\n /* titolo della finestra */\n this.regolaTitolo();\n\n /* scritte in alto */\n this.regolaContenuti();\n\n super.avvia();\n }", "title": "" }, { "docid": "75a51ed34fd6346c1947ad8f1d1db417", "score": "0.5235873", "text": "public void refrescarForeignKeysDescripcionesComisionCate() throws Exception {\n\t\tif(Constantes.ISUSAEJBLOGICLAYER) {\r\n\t\t\tComisionCateConstantesFunciones.refrescarForeignKeysDescripcionesComisionCate(this.comisioncateLogic.getComisionCates());\r\n\t\t} else if(Constantes.ISUSAEJBREMOTE || Constantes.ISUSAEJBHOME) {\r\n\t\t\tComisionCateConstantesFunciones.refrescarForeignKeysDescripcionesComisionCate(this.comisioncates);\r\n\t\t}\r\n\t\t\r\n\t\t/*\r\n\t\tArrayList<Classe> classes=new ArrayList<Classe>();\r\n\t\t\r\n\t\tclasses.add(new Classe(Empresa.class));\r\n\t\tclasses.add(new Classe(ComisionConfig.class));\r\n\t\tclasses.add(new Classe(Vendedor.class));\r\n\t\tclasses.add(new Classe(Linea.class));\r\n\t\tclasses.add(new Classe(EstadoComision.class));\r\n\t\t\t\r\n\t\tif(Constantes.ISUSAEJBLOGICLAYER) {\r\n\t\t\t//USA LOS OBJETOS DE LOGIC DIRECTAMENTE\r\n\t\t\t//comisioncateLogic.setComisionCates(this.comisioncates);\r\n\t\t\tcomisioncateLogic.deepLoadsWithConnection(false, DeepLoadType.INCLUDE, classes,\"\");\r\n\t\r\n\t\t} else if(Constantes.ISUSAEJBREMOTE) {\r\n\t\t} else if(Constantes.ISUSAEJBHOME) {\r\n\t\t}\r\n\t\t*/\t\t\t\t\r\n\t}", "title": "" }, { "docid": "ab9aa7f14aa10342e76f50924e8d6701", "score": "0.5230628", "text": "public void emOrdem() {\n emOrdem_aux(raiz); //faço isso pq a raiz é privada\n }", "title": "" }, { "docid": "44d2330f9ac5b4e9c518e28b021f69ee", "score": "0.5229802", "text": "@Override\r\n\tpublic void actualizar(Object entidad) {\n\r\n\t}", "title": "" }, { "docid": "7bc88b85f36f769b26acaf721ba73136", "score": "0.5228296", "text": "void actualizar() {\n\t\tif (concesionario.size() == 0) {\n\t\t\treturn;\n\t\t}\n\t\tindiceCoche = 0;\n\t\tmostrarCoche(concesionario.get(indiceCoche));\n\t\tcomprobarBotones();\t\t\n\t}", "title": "" }, { "docid": "8e25ecaa776351d53ff6768fce1009fe", "score": "0.52261996", "text": "@Override\n\tpublic void atualizar() {\n\t\t\n\t\t \n\t\t String idstring = id.getText();\n\t\t UUID idlong = UUID.fromString(idstring);\n\t\t \n\t\t Categoria caixa = new Categoria();\n\t\t\tcaixa.setId(idlong);\n\t\t\tcaixa.setAtivo(true);\n\t\t\tcaixa.setNome(nome.getText());\n\t\t\tcaixa.setCatpai(catpai.getSelectionModel().getSelectedItem());\n\t\t\t\n\t\t\tgetservice().edit(caixa);\n\t\t\tupdateAlert(caixa);\n\t\t\tclearFields();\n\t\t\tdesligarLuz();\n\t\t\tloadEntityDetails();\n\t\t\tatualizar.setDisable(true);\n\t\t\tsalvar.setDisable(false);\n\t\t\t\n\t\t\t\n\t\t \n\t\t \n\t\tsuper.atualizar();\n\t}", "title": "" }, { "docid": "7fba6fe0d72c11f4130c2c5fff75e966", "score": "0.52229995", "text": "public void modificarVisibilidadAutor(){\n if (modificarAutor)\n modificarAutor =false;\n else\n modificarAutor =true;\n }", "title": "" }, { "docid": "581fa9c46a97995e55a3293977346846", "score": "0.52148926", "text": "private static void registrarAuditoriaDetallesReferenciaComercial(Connexion connexion,ReferenciaComercial referenciacomercial)throws Exception {\n\t\t\r\n\t\tString strValorActual=null;\r\n\t\tString strValorNuevo=null;\r\n\t\t\r\n\t\t\t\r\n\t\t\tif(referenciacomercial.getIsNew()||!referenciacomercial.getid_empresa().equals(referenciacomercial.getReferenciaComercialOriginal().getid_empresa()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(referenciacomercial.getReferenciaComercialOriginal().getid_empresa()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=referenciacomercial.getReferenciaComercialOriginal().getid_empresa().toString();\r\n\t\t\t\t}\r\n\t\t\t\tif(referenciacomercial.getid_empresa()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=referenciacomercial.getid_empresa().toString() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),ReferenciaComercialConstantesFunciones.IDEMPRESA,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(referenciacomercial.getIsNew()||!referenciacomercial.getidcliente().equals(referenciacomercial.getReferenciaComercialOriginal().getidcliente()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(referenciacomercial.getReferenciaComercialOriginal().getidcliente()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=referenciacomercial.getReferenciaComercialOriginal().getidcliente().toString();\r\n\t\t\t\t}\r\n\t\t\t\tif(referenciacomercial.getidcliente()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=referenciacomercial.getidcliente().toString() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),ReferenciaComercialConstantesFunciones.IDCLIENTE,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(referenciacomercial.getIsNew()||!referenciacomercial.getidvalorclientesectoreconomico().equals(referenciacomercial.getReferenciaComercialOriginal().getidvalorclientesectoreconomico()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(referenciacomercial.getReferenciaComercialOriginal().getidvalorclientesectoreconomico()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=referenciacomercial.getReferenciaComercialOriginal().getidvalorclientesectoreconomico().toString();\r\n\t\t\t\t}\r\n\t\t\t\tif(referenciacomercial.getidvalorclientesectoreconomico()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=referenciacomercial.getidvalorclientesectoreconomico().toString() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),ReferenciaComercialConstantesFunciones.IDTIPOSECTORECONO,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(referenciacomercial.getIsNew()||!referenciacomercial.getid_pais().equals(referenciacomercial.getReferenciaComercialOriginal().getid_pais()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(referenciacomercial.getReferenciaComercialOriginal().getid_pais()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=referenciacomercial.getReferenciaComercialOriginal().getid_pais().toString();\r\n\t\t\t\t}\r\n\t\t\t\tif(referenciacomercial.getid_pais()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=referenciacomercial.getid_pais().toString() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),ReferenciaComercialConstantesFunciones.IDPAIS,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(referenciacomercial.getIsNew()||!referenciacomercial.getidciudad().equals(referenciacomercial.getReferenciaComercialOriginal().getidciudad()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(referenciacomercial.getReferenciaComercialOriginal().getidciudad()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=referenciacomercial.getReferenciaComercialOriginal().getidciudad().toString();\r\n\t\t\t\t}\r\n\t\t\t\tif(referenciacomercial.getidciudad()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=referenciacomercial.getidciudad().toString() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),ReferenciaComercialConstantesFunciones.IDCIUDAD,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(referenciacomercial.getIsNew()||!referenciacomercial.getnombreempresa().equals(referenciacomercial.getReferenciaComercialOriginal().getnombreempresa()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(referenciacomercial.getReferenciaComercialOriginal().getnombreempresa()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=referenciacomercial.getReferenciaComercialOriginal().getnombreempresa();\r\n\t\t\t\t}\r\n\t\t\t\tif(referenciacomercial.getnombreempresa()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=referenciacomercial.getnombreempresa() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),ReferenciaComercialConstantesFunciones.NOMBREEMPRESA,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(referenciacomercial.getIsNew()||!referenciacomercial.getcodigo_cliente().equals(referenciacomercial.getReferenciaComercialOriginal().getcodigo_cliente()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(referenciacomercial.getReferenciaComercialOriginal().getcodigo_cliente()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=referenciacomercial.getReferenciaComercialOriginal().getcodigo_cliente();\r\n\t\t\t\t}\r\n\t\t\t\tif(referenciacomercial.getcodigo_cliente()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=referenciacomercial.getcodigo_cliente() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),ReferenciaComercialConstantesFunciones.CODIGOCLIENTE,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(referenciacomercial.getIsNew()||!referenciacomercial.getcontacto().equals(referenciacomercial.getReferenciaComercialOriginal().getcontacto()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(referenciacomercial.getReferenciaComercialOriginal().getcontacto()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=referenciacomercial.getReferenciaComercialOriginal().getcontacto();\r\n\t\t\t\t}\r\n\t\t\t\tif(referenciacomercial.getcontacto()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=referenciacomercial.getcontacto() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),ReferenciaComercialConstantesFunciones.CONTACTO,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(referenciacomercial.getIsNew()||!referenciacomercial.getarticulo_compra().equals(referenciacomercial.getReferenciaComercialOriginal().getarticulo_compra()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(referenciacomercial.getReferenciaComercialOriginal().getarticulo_compra()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=referenciacomercial.getReferenciaComercialOriginal().getarticulo_compra();\r\n\t\t\t\t}\r\n\t\t\t\tif(referenciacomercial.getarticulo_compra()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=referenciacomercial.getarticulo_compra() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),ReferenciaComercialConstantesFunciones.ARTICULOCOMPRA,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(referenciacomercial.getIsNew()||!referenciacomercial.getnumero_anios().equals(referenciacomercial.getReferenciaComercialOriginal().getnumero_anios()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(referenciacomercial.getReferenciaComercialOriginal().getnumero_anios()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=referenciacomercial.getReferenciaComercialOriginal().getnumero_anios().toString();\r\n\t\t\t\t}\r\n\t\t\t\tif(referenciacomercial.getnumero_anios()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=referenciacomercial.getnumero_anios().toString() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),ReferenciaComercialConstantesFunciones.NUMEROANIOS,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(referenciacomercial.getIsNew()||!referenciacomercial.getnumero_meses().equals(referenciacomercial.getReferenciaComercialOriginal().getnumero_meses()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(referenciacomercial.getReferenciaComercialOriginal().getnumero_meses()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=referenciacomercial.getReferenciaComercialOriginal().getnumero_meses().toString();\r\n\t\t\t\t}\r\n\t\t\t\tif(referenciacomercial.getnumero_meses()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=referenciacomercial.getnumero_meses().toString() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),ReferenciaComercialConstantesFunciones.NUMEROMESES,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(referenciacomercial.getIsNew()||!referenciacomercial.getid_tipo_valoracion().equals(referenciacomercial.getReferenciaComercialOriginal().getid_tipo_valoracion()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(referenciacomercial.getReferenciaComercialOriginal().getid_tipo_valoracion()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=referenciacomercial.getReferenciaComercialOriginal().getid_tipo_valoracion().toString();\r\n\t\t\t\t}\r\n\t\t\t\tif(referenciacomercial.getid_tipo_valoracion()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=referenciacomercial.getid_tipo_valoracion().toString() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),ReferenciaComercialConstantesFunciones.IDTIPOVALORACION,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(referenciacomercial.getIsNew()||!referenciacomercial.getdireccion().equals(referenciacomercial.getReferenciaComercialOriginal().getdireccion()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(referenciacomercial.getReferenciaComercialOriginal().getdireccion()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=referenciacomercial.getReferenciaComercialOriginal().getdireccion();\r\n\t\t\t\t}\r\n\t\t\t\tif(referenciacomercial.getdireccion()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=referenciacomercial.getdireccion() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),ReferenciaComercialConstantesFunciones.DIRECCION,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(referenciacomercial.getIsNew()||!referenciacomercial.gettelefono().equals(referenciacomercial.getReferenciaComercialOriginal().gettelefono()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(referenciacomercial.getReferenciaComercialOriginal().gettelefono()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=referenciacomercial.getReferenciaComercialOriginal().gettelefono();\r\n\t\t\t\t}\r\n\t\t\t\tif(referenciacomercial.gettelefono()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=referenciacomercial.gettelefono() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),ReferenciaComercialConstantesFunciones.TELEFONO,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(referenciacomercial.getIsNew()||!referenciacomercial.gettelefonomovil().equals(referenciacomercial.getReferenciaComercialOriginal().gettelefonomovil()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(referenciacomercial.getReferenciaComercialOriginal().gettelefonomovil()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=referenciacomercial.getReferenciaComercialOriginal().gettelefonomovil();\r\n\t\t\t\t}\r\n\t\t\t\tif(referenciacomercial.gettelefonomovil()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=referenciacomercial.gettelefonomovil() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),ReferenciaComercialConstantesFunciones.TELEFONOMOVIL,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(referenciacomercial.getIsNew()||!referenciacomercial.gettelefonocodigoarea().equals(referenciacomercial.getReferenciaComercialOriginal().gettelefonocodigoarea()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(referenciacomercial.getReferenciaComercialOriginal().gettelefonocodigoarea()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=referenciacomercial.getReferenciaComercialOriginal().gettelefonocodigoarea();\r\n\t\t\t\t}\r\n\t\t\t\tif(referenciacomercial.gettelefonocodigoarea()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=referenciacomercial.gettelefonocodigoarea() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),ReferenciaComercialConstantesFunciones.TELEFONOCODIGOAREA,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(referenciacomercial.getIsNew()||!referenciacomercial.getemail().equals(referenciacomercial.getReferenciaComercialOriginal().getemail()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(referenciacomercial.getReferenciaComercialOriginal().getemail()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=referenciacomercial.getReferenciaComercialOriginal().getemail();\r\n\t\t\t\t}\r\n\t\t\t\tif(referenciacomercial.getemail()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=referenciacomercial.getemail() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),ReferenciaComercialConstantesFunciones.EMAIL,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(referenciacomercial.getIsNew()||!referenciacomercial.getmonto().equals(referenciacomercial.getReferenciaComercialOriginal().getmonto()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(referenciacomercial.getReferenciaComercialOriginal().getmonto()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=referenciacomercial.getReferenciaComercialOriginal().getmonto().toString();\r\n\t\t\t\t}\r\n\t\t\t\tif(referenciacomercial.getmonto()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=referenciacomercial.getmonto().toString() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),ReferenciaComercialConstantesFunciones.MONTO,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(referenciacomercial.getIsNew()||!referenciacomercial.getesactivo().equals(referenciacomercial.getReferenciaComercialOriginal().getesactivo()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(referenciacomercial.getReferenciaComercialOriginal().getesactivo()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=referenciacomercial.getReferenciaComercialOriginal().getesactivo().toString();\r\n\t\t\t\t}\r\n\t\t\t\tif(referenciacomercial.getesactivo()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=referenciacomercial.getesactivo().toString() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),ReferenciaComercialConstantesFunciones.ESACTIVO,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t}", "title": "" }, { "docid": "4ac006a373ec39694c0e07310d555592", "score": "0.52142173", "text": "public static void verificarInaitividadeDaContaNegocio() throws SQLException {\n EnviarEmail env = new EnviarEmail();\n env.enviarEmailRotinaVerificacaoContaInativa();\n //buscar lista de todos usuarios\n List<UsuarioEntidade> lstU = pegarListaDeTodosUsuariosCadastradosNoSistema();\n\n for (UsuarioEntidade u : lstU) {\n //verificar data de criacao da conta\n if (u.getValido() == 0) {\n Calendar dataAtual = Calendar.getInstance();\n SimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd\");\n String dataAtualS = sdf.format(dataAtual.getTime());\n String dataCriacao = DataCriacaoDAO.pegarDataCriacao(u.getIdUsuario());\n String dataIncrementadaNoventaDias = util.OperacoesComDatas.somarEneDiasNaDataAtual(dataCriacao, 90);// 90 dias\n// System.out.println(\"Criada em : \" + dataCriacao);\n// System.out.println(\"Data Atual: \" + dataAtualS);\n// System.out.println(\"Increment : \" + dataIncrementadaNoventaDias);\n\n String separa[] = dataIncrementadaNoventaDias.split(\"-\");\n int ano = Integer.parseInt(separa[0]);\n int mes = Integer.parseInt(separa[1]);\n int dia = Integer.parseInt(separa[2]);\n\n String separa2[] = dataAtualS.split(\"-\");\n int ano2 = Integer.parseInt(separa2[0]);\n int mes2 = Integer.parseInt(separa2[1]);\n int dia2 = Integer.parseInt(separa2[2]);\n// \n// //verificar data de criacao da conta tem 90 dias ou mais\n if (dia <= dia2) {\n if (mes <= mes2) {\n if (ano <= ano2) {\n // verificar se possui itens cadastrados\n Boolean temLinha = verificarSeUsuarioPossuiLinhasCadastradas(u.getIdUsuario());\n\n if (!temLinha) {\n// System.out.println(\"A P A G A R ==> \" + u.getNome());\n excluirUsuarioInativo(u);\n }\n\n }\n }\n\n } else if (dia >= dia2) {\n if (mes <= mes2) {\n if (ano <= ano2) {\n\n // verificar se possui itens cadastrados\n Boolean temLinha = verificarSeUsuarioPossuiLinhasCadastradas(u.getIdUsuario());\n// System.out.println(\"VEMNCIDO + \" + temLinha);\n\n if (!temLinha) {\n// System.out.println(\"A P A G A R ==> \" + u.getNome());\n excluirUsuarioInativo(u);\n\n }\n }\n }\n\n }\n }\n\n }\n }", "title": "" }, { "docid": "972791f953c653ea44c92f59a317d4c5", "score": "0.5213559", "text": "public void refrescarForeignKeysDescripcionesVigenciaFue() throws Exception {\n\t\tif(Constantes.ISUSAEJBLOGICLAYER) {\r\n\t\t\tVigenciaFueConstantesFunciones.refrescarForeignKeysDescripcionesVigenciaFue(this.vigenciafueLogic.getVigenciaFues());\r\n\t\t} else if(Constantes.ISUSAEJBREMOTE || Constantes.ISUSAEJBHOME) {\r\n\t\t\tVigenciaFueConstantesFunciones.refrescarForeignKeysDescripcionesVigenciaFue(this.vigenciafues);\r\n\t\t}\r\n\t\t\r\n\t\t/*\r\n\t\tArrayList<Classe> classes=new ArrayList<Classe>();\r\n\t\t\r\n\t\tclasses.add(new Classe(Pais.class));\r\n\t\tclasses.add(new Classe(Ciudad.class));\r\n\t\t\t\r\n\t\tif(Constantes.ISUSAEJBLOGICLAYER) {\r\n\t\t\t//USA LOS OBJETOS DE LOGIC DIRECTAMENTE\r\n\t\t\t//vigenciafueLogic.setVigenciaFues(this.vigenciafues);\r\n\t\t\tvigenciafueLogic.deepLoadsWithConnection(false, DeepLoadType.INCLUDE, classes,\"\");\r\n\t\r\n\t\t} else if(Constantes.ISUSAEJBREMOTE) {\r\n\t\t} else if(Constantes.ISUSAEJBHOME) {\r\n\t\t}\r\n\t\t*/\t\t\t\t\r\n\t}", "title": "" }, { "docid": "ed784fb0787c16e35e635df585a6f993", "score": "0.52134764", "text": "public void actualizarVista(){\n\t\tfor(Vista vista: vistas){\n\t\t\tvista.update(this, this.posicion);\n\t\t}\n\t}", "title": "" }, { "docid": "9649cbb56a9177b09b49d608b3b44c83", "score": "0.5199267", "text": "@Override\n\tpublic void actualizar(Cesta object) {\n\t\t\n\t}", "title": "" }, { "docid": "d413e1d9a7e2383f25affb024d75ac79", "score": "0.5197282", "text": "public void dohvatiVazeceMeteoSOAP() {\n meteoPodaci = WSKlijent.dajVazeceMeteoPodatke(odabraniAerodrom, korisnickoIme, lozinka);\n\n if (meteoPodaci == null) {\n poruka = \"Nije moguće dohvatiti vazece meteopodatke.\";\n return;\n }\n\n poruka = \"Dohvaceni su vazeci meteopodaci.\";\n }", "title": "" }, { "docid": "327ce3ac5e8291ad9c45179d4a95d9c9", "score": "0.51892954", "text": "void recogerPuntuaciones();", "title": "" }, { "docid": "215e7be63797f4af650bd7489dfb18c7", "score": "0.5185879", "text": "private void accionVacia() throws Exception {\n\tUtilidadesSession sesion = new UtilidadesSession();\n\tLong idioma = sesion.getIdioma(this);\n\tasignarAtributo(\"VAR\",\"idioma\",\"valor\",idioma.toString());\n\t//Caso de uso y titulo de la pantalla\n\tasignarAtributo(\"VAR\",\"casoUso\",\"valor\",\"eliminar\");\n\tasignarAtributo(\"PAGINA\",\"contenido_plantilla_cursos_modificar\",\"cod\",\"0464\");\n\tasignarAtributo(\"PAGINA\",\"contenido_plantilla_cursos_modificar\",\"msgle\",\"Eliminar plantillas\");\n }", "title": "" }, { "docid": "2cb36f38196e571478c8f1a135083d98", "score": "0.517966", "text": "public void buscarFactura(){\n FacturaPK clave = new FacturaPK(numFactura,fechaFactura);\n factura = ejbFacadeFactura.find(clave);\n if(factura != null){\n if(factura.getEstado().equals(\"ANULADA\")){\n new funciones().setMsj(3,\"FACTURA ANULADA\");\n cambios.clear();\n factura = null;\n }else{\n new funciones().setMsj(1,\"FACTURA CARGADA\");\n cambios.clear();\n numFactura = null;\n fechaFactura = null;\n }\n }else{\n new funciones().setMsj(3,\"FACTURA NO ENCONTRADA\");\n cambios.clear();\n }\n }", "title": "" }, { "docid": "3d85f659edcb24232c9f1757bbe97257", "score": "0.51760113", "text": "private void regolaContenuti() {\n /* variabili e costanti locali di lavoro */\n Pagina pagina;\n\n try { // prova ad eseguire il codice\n /* prima pagina */\n pagina = super.getPrimaPagina();\n\n pagina.aggiungeComponenti(this.getSopra());\n pagina.aggiungeComponenti(this.getSotto());\n\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n }// fine del blocco try-catch\n }", "title": "" }, { "docid": "9b5a56fe4aaafed28026b472e5a2a8a1", "score": "0.51718", "text": "public void getResultados() {\n System.out.println(\"Tabu: \" + mejorSolucion.getPuntuacion() + \" \" + time / 1000000 + \" ms\");\n for (FrecAsignada fr : mejorSolucion.getFrecuenciasAsignadas().values()) {\n //System.out.println(fr.getId()+\"\\t\"+fr.getFrecuencia());\n }\n }", "title": "" }, { "docid": "888a820d1d6df083bf474a7576598b60", "score": "0.5170621", "text": "public void actualizarOficinasRegistro(){\r\n try {\r\n setOficinasRegistro((List<MarOficinasRegistros>) genericDAOBean.findAllByColumn(MarOficinasRegistros.class, \"morEstado\", \"A\", true, \"morNombre asc\"));\r\n } catch (Exception e) {\r\n logger.error(\"Error actualizando lista de oficinas de registro, causado por \" + e);\r\n }\r\n }", "title": "" }, { "docid": "85a8e6e9a24a5e373463cf344d92b656", "score": "0.5168757", "text": "public void cambiarEmpresaDomiciliosDomiciliario( )\n\t{\n\t\ttry \n\t\t{\n\t\t\tString idDomiciliario = JOptionPane.showInputDialog (this, \"Identificador del domiciliario: \", \"Actualizar empresa del domiciliario\", JOptionPane.QUESTION_MESSAGE);\n\t\t\tString empresaDomicilios = JOptionPane.showInputDialog (this, \"Nueva empresa de domicilios: \", \"Actualizar empresa del domiciliario\", JOptionPane.QUESTION_MESSAGE);\n\n\t\t\tif (idDomiciliario != null && empresaDomicilios != null )\n\t\t\t{\t\n\t\t\t\tlong modificados = aforoAndes.cambiarEmpresaDomiciliario(idDomiciliario, empresaDomicilios);\n\t\t\t\tString resultado = \"En actualizar Domiciliario por empresa: \\n\\n\";\n\t\t\t\tresultado += modificados + \" registros actualizados\";\n\t\t\t\tresultado += \"\\n\\n Operación terminada\";\n\t\t\t\tpanelDatos.actualizarInterfaz(resultado);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tpanelDatos.actualizarInterfaz(\"Operación cancelada por el usuario\");\n\t\t\t}\n\t\t} \n\n\t\tcatch (Exception e) \n\t\t{\n\t\t\t//\t\t\te.printStackTrace();\n\t\t\tString resultado = generarMensajeError(e);\n\t\t\tpanelDatos.actualizarInterfaz(resultado);\n\t\t}\n\t}", "title": "" }, { "docid": "ca0624c080ebba0b1b521853014c4564", "score": "0.51675785", "text": "public boolean actualizar (Cliente cliente) {\n\t\tCliente encontrado = buscar(cliente.getIdCliente());\n\t\tif(encontrado != null) {\n\t\t\t//al ejecutar buscar se regresa el objeto pero este objeto aun depende \n\t\t\t//de la lista(se trabaja sobre referencia de memoria) por lo que los \n\t\t\t//cambios pueden ir directo sobre el objeto encontrado\n\t\t\tencontrado.setNombre(cliente.getNombre());\n\t\t\tencontrado.setAmaterno(cliente.getAmaterno());\n\t\t\tencontrado.setApaterno(cliente.getApaterno());\n\t\t\tencontrado.setRfc(cliente.getRfc());\n\t\t\treturn true;\n\t\t}\n\t\telse {\n\t\t\treturn false;\n\t\t}\n\t}", "title": "" }, { "docid": "00750010317c41a9d6d9674b20c82c83", "score": "0.5166771", "text": "@Override\r\n\tpublic void afiseazaDescriere() {\n\t\tSystem.out.println(\"Sunte in starea: Rezervata\");\r\n\t}", "title": "" }, { "docid": "beeb328542a09fcab833f8e094bae5dc", "score": "0.5160908", "text": "private void actualizarVentana() {\r\n\t\t\tMain.actualizaFarmaciasEnPantalla();\r\n\t\t\tcargaFarmaciasEnTabla( null );\r\n\t\t\tactualizarReloj();\r\n\t\r\n\t\t}", "title": "" }, { "docid": "a47501662bdf88340a64deae457a5ead", "score": "0.5160586", "text": "private void caricaPrimaNota() throws WebServiceInvocationFailureException {\n\t\tfinal String methodName = \"caricaPrimaNota\";\n\t\t\n\t\tlog.debug(methodName, \"Caricamento della causale\");\n\t\tRicercaDettaglioPrimaNota req = model.creaRequestRicercaDettaglioPrimaNotaLibera();\n\t\tlogServiceRequest(req);\n\t\tRicercaDettaglioPrimaNotaResponse res = primaNotaService.ricercaDettaglioPrimaNota(req);\n\t\tlogServiceResponse(res);\n\t\t\n\t\t// Controllo gli errori\n\t\tif(res.hasErrori()) {\n\t\t\t//si sono verificati degli errori: esco.\n\t\t\tString errorMsg = createErrorInServiceInvocationString(req, res);\n\t\t\tlog.info(methodName, errorMsg);\n\t\t\taddErrori(res);\n\t\t\tthrow new WebServiceInvocationFailureException(errorMsg);\n\t\t}\n\t\tif(res.getPrimaNota() == null) {\n\t\t\tString errorMsg = \"Nessuna causale corrispondente all'uid \" + model.getPrimaNotaLibera().getUid();\n\t\t\tlog.info(methodName, errorMsg);\n\t\t\taddErrore(ErroreCore.ENTITA_INESISTENTE.getErrore(\"Causale\", model.getPrimaNotaLibera().getUid()));\n\t\t\tthrow new WebServiceInvocationFailureException(errorMsg);\n\t\t}\n\t\t\n\t\t// Ho la causale\n\t\tPrimaNota primaNotaDaServizio = res.getPrimaNota();\n\t\t\n\t\t// Clono per effettuare l'aggiornamento\n\t\tPrimaNota primaNota = ReflectionUtil.deepClone(primaNotaDaServizio);\n\t\t// Imposto i dati nel model\n\t\timpostaDatiNelModel(primaNotaDaServizio, primaNota);\n\t}", "title": "" }, { "docid": "c3aff2b11b658b3255ac5ce49162d5aa", "score": "0.5159374", "text": "protected void VistaActualizada()\n {\n for( int renglon = 0; renglon < 9; renglon++ )\n for( int columna = 0; columna < 9; columna++ )\n if( sudoku[renglon][columna] != 0 )\n vista[renglon][columna].setLabel( String.valueOf(sudoku[renglon][columna]) ) ;\n else\n vista[renglon][columna].setLabel( \"\" ) ;\n }", "title": "" }, { "docid": "1b43b38dc2e989a02a213af28fda8c54", "score": "0.5158536", "text": "public String actualA() {\n System.out.println(\"nom: \" + archSeleccionado.getTArchNombre());\r\n getDaoArchiv().edit(archSeleccionado);\r\n FacesUtil.addMensaje(\"Datos Actualizados\");\r\n docums = getDaoArchiv().getListT(tipref);\r\n return null;\r\n }", "title": "" }, { "docid": "dcc51a04b0da9eb9d88eb9ea2f490937", "score": "0.5157673", "text": "private String verificaCamposCoincidencia(EmpresaVO empresa, EmpresaFraudulentaVO empfrau){\n\t\tStringBuilder campos = new StringBuilder();\n\n\t\tif (equals(empresa.getIdPortalEmpleo(), empfrau.getIdPortalEmpleo()))\n\t\t\tcampos.append(\"ID del Portal del Empleo : \"+ empresa.getIdPortalEmpleo());\n\n\t\tif (equals(empresa.getCorreoElectronico(), empfrau.getCorreoElectronico()))\n\t\t\tcampos.append(\"Correo electronico : \"+ empresa.getCorreoElectronico());\n\n\t\tif(TIPO_PERSONA.PERSONA_FISICA.getIdTipoPersona() == empresa.getIdTipoPersona()){\n\n\t\t\tString nombreEmp = concatenar(empresa.getNombre(), empresa.getApellido1(), empresa.getApellido2());\n\t\t\tString nombreFra = concatenar(empfrau.getNombre(), empfrau.getApellido1(), empfrau.getApellido2());\n\n\t\t\tif (equals(nombreEmp, nombreFra))\n\t\t\t\tcampos.append(\"Nombre \"+ nombreEmp);\n\n\t\t} else if(TIPO_PERSONA.PERSONA_MORAL.getIdTipoPersona() == empresa.getIdTipoPersona()){\n\t\t\tif (equals(empresa.getRazonSocial(), empfrau.getRazonSocial()))\n\t\t\t\tcampos.append(\"Razon social : \"+ empresa.getRazonSocial());\n\t\t}\n\n\t\tif (empresa.getTelefonos()!=null && empfrau.getTelefonos()!=null && \n\t\t\t\t!empresa.getTelefonos().isEmpty() && !empfrau.getTelefonos().isEmpty() ){\n\n\t\t\tfor (TelefonoVO telefono : empresa.getTelefonos()){\n\t\t\t\tString telemp = concatenar(telefono.getAcceso(), telefono.getClave(), telefono.getTelefono(), telefono.getExtension());\n\n\t\t\t\tfor (TelefonoVO telfrau : empfrau.getTelefonos()){\n\t\t\t\t\tString telfra = concatenar(telfrau.getAcceso(), telfrau.getClave(), telfrau.getTelefono(), telfrau.getExtension());\n\n\t\t\t\t\tif (equals(telemp, telfra)){\n\t\t\t\t\t\tcampos.append(\"Telefono :\");\n\t\t\t\t\t\tcampos.append(\" \"+ telfrau.getAcceso());\n\t\t\t\t\t\tcampos.append(\" \"+ telfrau.getClave());\n\t\t\t\t\t\tcampos.append(\" \"+ telfrau.getTelefono());\n\t\t\t\t\t\tcampos.append(\"Ext. \"+ telfrau.getExtension());\n\t\t\t\t\t}\n\t\t\t\t}// for\n\t\t\t}// for\n\t\t}\n\n\t\tif (empresa.getDomicilio()!=null && empfrau.getDomicilios()!=null && !empfrau.getDomicilios().isEmpty()){\n\n\t\t\tDomicilioVO domicilio = empresa.getDomicilio();\n\n\t\t\tString domempr = concatenar(\"\"+ domicilio.getIdEntidad(),\n\t\t\t\t\t\"\"+ domicilio.getIdMunicipio(),\n\t\t\t\t\t\"\"+ domicilio.getIdColonia(),\n\t\t\t\t\tdomicilio.getCalle(),\n\t\t\t\t\tdomicilio.getNumeroInterior(),\n\t\t\t\t\tdomicilio.getNumeroExterior(),\n\t\t\t\t\tdomicilio.getEntreCalle(),\n\t\t\t\t\tdomicilio.getyCalle(),\n\t\t\t\t\tdomicilio.getCodigoPostal());\n\n\t\t\tfor (DomicilioVO domiciliofra : empfrau.getDomicilios()){\n\n\t\t\t\tString domfrau = concatenar(\"\"+ domiciliofra.getIdEntidad(),\n\t\t\t\t\t\t\"\"+ domiciliofra.getIdMunicipio(),\n\t\t\t\t\t\t\"\"+ domiciliofra.getIdColonia(),\n\t\t\t\t\t\tdomiciliofra.getCalle(),\n\t\t\t\t\t\tdomiciliofra.getNumeroInterior(),\n\t\t\t\t\t\tdomiciliofra.getNumeroExterior(),\n\t\t\t\t\t\tdomiciliofra.getEntreCalle(),\n\t\t\t\t\t\tdomiciliofra.getyCalle(),\n\t\t\t\t\t\tdomiciliofra.getCodigoPostal());\n\n\t\t\t\tif (equals(domempr, domfrau)){\n\t\t\t\t\tcampos.append(\"Domicilio :\");\n\t\t\t\t\tcampos.append(\" \"+ domiciliofra.getCalle());\n\t\t\t\t\tcampos.append(\" \"+ domiciliofra.getNumeroInterior());\n\t\t\t\t\tcampos.append(\" \"+ domiciliofra.getNumeroExterior());\n\t\t\t\t\tcampos.append(\" \"+ domiciliofra.getEntreCalle());\n\t\t\t\t\tcampos.append(\" \"+ domiciliofra.getyCalle());\n\t\t\t\t\tcampos.append(\" \"+ domiciliofra.getCodigoPostal());\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn campos.toString();\n\t}", "title": "" }, { "docid": "e801457f002779e6c4fb344ffa6326e0", "score": "0.5152325", "text": "public Vector<Licencia> buscarLicencias(String codigo, String tipo, String motivo) {\r\n\t\tVector<Licencia> licenciasEncontradas = LicenciaSRV.recuperarLicencias(codigo, tipo, motivo);\r\n\t\t// for(Licencia licencia : licencias){\r\n\t\t// if(licencia.hayLicencias(codigo, tipo, motivo))\r\n\t\t// licenciasEncontradas.add(licencia);\r\n\t\t// }\r\n\t\treturn licenciasEncontradas;\r\n\t}", "title": "" }, { "docid": "1c281b7dd268644768b68f797ccd28b9", "score": "0.51480454", "text": "private SiacTAttrFin caricaInfoSiacTAttr(String codice, int enteId) {\n\t\tSiacTAttrFin sta = siacTAttrRepository.getTAttrByCode(codice, enteId);\n\t\tif(sta == null) {\n\t\t\tthrow new BusinessException(ErroreCore.ERRORE_DI_SISTEMA.getErrore(\"Impossibile trovare l'attributo con codice: \" + org.apache.commons.lang3.StringUtils.defaultIfBlank(codice, \"null\")));\n\t\t}\n\t\tSiacDAttrTipoFin sda = sta.getSiacDAttrTipo();\n\t\tsda.setAttrTipoDesc(sda.getAttrTipoDesc());\n\t\tsda.setAttrTipoId(sda.getAttrTipoId());\n\t\tsta.setSiacDAttrTipo(sda);\n\t\t// Termino restituendo l'oggetto di ritorno:\n\t\treturn sta;\n\t}", "title": "" }, { "docid": "b387843f133d44e13c4b323cbd6fe03e", "score": "0.5147615", "text": "public void actualiza(){\r\n // instrucciones para actualizar personajes\r\n if(intVidas>0) {\r\n switch(intDireccion){\r\n case 1: {\r\n perNena.setY(perNena.getY()-3);\r\n break;\r\n }\r\n case 2: {\r\n perNena.setY(perNena.getY()+3);\r\n break;\r\n }\r\n case 3: {\r\n perNena.setX(perNena.getX()-3);\r\n break;\r\n }\r\n case 4: {\r\n perNena.setX(perNena.getX()+3);\r\n break;\r\n }\r\n }\r\n for(Object lnkAlien1s:lnkAlien1) {\r\n perAlien1=(Personaje) lnkAlien1s;\r\n perAlien1.setX(perAlien1.getX()+perAlien1.getVelocidad());\r\n }\r\n \r\n for(Object lnkAlien2s:lnkAlien2) {\r\n perAlien2=(Personaje) lnkAlien2s;\r\n perAlien2.setY(perAlien2.getY()+ (6-intVidas));\r\n }\r\n }\r\n }", "title": "" }, { "docid": "f52603b155a351e502d13d8ed258f1ba", "score": "0.51441073", "text": "void anullaCanvis() throws UtilitatPersistenciaException;", "title": "" }, { "docid": "acf74289353a2e5cdc66c9b97f490333", "score": "0.51440376", "text": "public void cargarNombreSoliAsistente() {\n try {\n if (personaAsistenteAux.getIdPersona() != null) {\n personaAsistente = personaAsistenteAux;\n existeAsis = 1;\n asistenteNull = false;\n buscoYEncontroAsistente = Boolean.TRUE;\n listadoTelefonoAsis = personaAsistente.getTelefonoList();\n\n for (Telefono us : listadoTelefonoAsis) {\n\n if (us.getIdTipoTelefono().getNombre().equals(FIJO)) {\n telefonoAsisFijo = us;\n }\n if (us.getIdTipoTelefono().getNombre().equals(CELULAR)) {\n telefonoAsisCel = us;\n }\n }\n if (personaAsistente.getIdUnidad() == null || personaAsistente.getIdEscuelaDepto() == null) {\n facultadSelected = new Facultad();\n escuelaDeptoListAsis = new ArrayList<EscuelaDepartamento>();\n }\n if (personaAsistente.getIdEscuelaDepto() != null) {\n facultadSelectedPojoAsis = personaAsistente.getIdEscuelaDepto().getIdFacultad().getIdFacultad() + \",1\";\n\n escuelaDeptoListAsis = escuelaDepartamentoService.getEscuelasOrDeptoByFacultadId(personaAsistente.getIdEscuelaDepto().getIdFacultad().getIdFacultad());\n escuelaDeptoSelectedAsis = personaAsistente.getIdEscuelaDepto();\n }\n if (personaAsistente.getIdUnidad() != null) {\n facultadSelectedPojoAsis = personaAsistente.getIdUnidad().getIdUnidad() + \",2\";\n escuelaDeptoListAsis = new ArrayList<EscuelaDepartamento>();\n }\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "84472d6728648fd964f17768a355bb59", "score": "0.5141587", "text": "public void incluirColetor() throws IOException, NoSuchAlgorithmException {\n\t\t\n\t\t// Chama o método da classe de servico para incluir o coletor.\n\t\tcoletor.getUsuario().setPermissao(\"Coletor\");\n\t\tcoletor.getUsuario().setDataCadastro(new java.util.Date());\n\t\tif (coletor.getUsuario().getTipoPessoa().equals(TipoPessoa.Fisica)) {\n\t\t\tcoletor.setCpf(documento);\n\t\t}\n\t\tif (coletor.getUsuario().getTipoPessoa().equals(TipoPessoa.Juridica)) {\n\t\t\tcoletor.setCnpj(documento);\n\t\t}\n\t\tString senhaCriptografada = CriptografiaSenha.encriptPassword(coletor.getUsuario().getSenha());\n\t\tcoletor.getUsuario().setSenha(senhaCriptografada);\n\t\tboolean coletorCadastrado = coletorService.incluirColetor(coletor);\n\t\t\n\t\t// Se o coletor foi cadastrado, redireciona para a página inicial.\n\t\tif (coletorCadastrado == true) {\n\t\t\tlogonMB.setCurrentUser(coletor.getUsuario().getNome());\n\t\t\tlogonMB.setUsuarioColetor(true);\n\t\t\tlogonMB.setUsuario(coletor.getUsuario());\n\t\t\tlogonMB.setColetor(coletor);\n\t\t\tUtils.addDetailMessage(\"Cadastro realizado com sucesso! Comece a reciclar agora mesmo!\");\n\t Faces.getExternalContext().getFlash().setKeepMessages(true);\n\t Faces.redirect(adminConfig.getIndexPage());\n\t\t} else {\n\t\t\t// Se o coletor não foi cadastrado porque o e-mail informado já estava cadastrado, retorna mensagem de erro.\n\t\t\tFacesContext.getCurrentInstance().addMessage(null, new FacesMessage(FacesMessage.SEVERITY_ERROR, \"O e-mail informado já foi cadastrado.\", \"O e-mail informado já foi cadastrado.\"));\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "b6a5283cd6ff583e5d65dd9514c6b317", "score": "0.51413935", "text": "private void prencherCidade() {\n cidade.setText(cd.getNome());\n estado.setText(cd.getUf());\n }", "title": "" }, { "docid": "0f6247d0ff85b38b7d91f886af7a8d43", "score": "0.51385695", "text": "public void ListarPreEncontrosFinalizados(){\n\t\tlistaPreEncontros = new ArrayList<Dadosencontros>();\r\n\t\tlistaPreEncontros.addAll(dadosEncontrosDao.listarPreEncontros(discipuloSessao.getDiscipulos().getDisCod(), 2));\r\n\t\t\r\n\t\t//verificar se esse encontro tem encontro filho\r\n\t\tList<Dadosencontros> listaTempRemover = new ArrayList<Dadosencontros>(listaPreEncontros);\r\n\t\tfor(Dadosencontros enc : listaPreEncontros){\r\n\t\t\tint retorno = dadosEncontrosDao.listarEncontrosFilhos(enc.getDadenccod()).size();\r\n \t\tif(retorno > 0){\r\n \t\t\tlistaTempRemover.remove(enc);\r\n \t\t}\r\n \t}\r\n\t\tlistaPreEncontros = new ArrayList<Dadosencontros>();\r\n\t\tlistaPreEncontros.addAll(listaTempRemover);\r\n\t\t\r\n\t\tlistaEncontrosNoPersistence = new ArrayList<EncontrosNoPersistence>();\t\r\n\t\tfor(Dadosencontros pre : listaPreEncontros){\r\n\t\t\tencontrosNoPersistence = new EncontrosNoPersistence();\r\n\t\t\tencontrosNoPersistence.setDadosEncontros(pre);\r\n\t\t\tencontrosNoPersistence.setMinistrador(pre.getMinistras().get(0).getDiscipulos());\r\n\t\t\t\r\n\t\t\t//Pega as palestras\r\n\t\t\tlistaEncontrosPalestras = new ArrayList<Encontrospalestras>();\r\n\t\t\tlistaEncontrosPalestras.addAll(pre.getEncontrospalestrases());\r\n\t\t\tint numPal = 1;\r\n\t\t\tfor(Encontrospalestras pal: listaEncontrosPalestras){\r\n\t\t\t\tencontrosNoPersistenceAula = new EncontrosNoPersistenceAulas();\r\n\t\t\t\t//Aulas naum liberadas\r\n\t\t\t\tif(pal.getDataRealizacao() == null){\r\n\t\t\t\t\tif(numPal == 1){\r\n\t\t\t\t\t\tencontrosNoPersistenceAula.setLiberada(false);\r\n\t\t\t\t\t\tencontrosNoPersistenceAula.setPalestras(pal);\r\n\t\t\t\t\t\tencontrosNoPersistenceAula.setAula(1);\r\n\t\t\t\t\t\tencontrosNoPersistence.setAula1(encontrosNoPersistenceAula);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(numPal == 2){\r\n\t\t\t\t\t\tencontrosNoPersistenceAula.setLiberada(false);\r\n\t\t\t\t\t\tencontrosNoPersistenceAula.setPalestras(pal);\r\n\t\t\t\t\t\tencontrosNoPersistenceAula.setAula(2);\r\n\t\t\t\t\t\tencontrosNoPersistence.setAula2(encontrosNoPersistenceAula);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(numPal == 3){\r\n\t\t\t\t\t\tencontrosNoPersistenceAula.setLiberada(false);\r\n\t\t\t\t\t\tencontrosNoPersistenceAula.setPalestras(pal);\r\n\t\t\t\t\t\tencontrosNoPersistenceAula.setAula(3);\r\n\t\t\t\t\t\tencontrosNoPersistence.setAula3(encontrosNoPersistenceAula);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(numPal == 4){\r\n\t\t\t\t\t\tencontrosNoPersistenceAula.setLiberada(false);\r\n\t\t\t\t\t\tencontrosNoPersistenceAula.setPalestras(pal);\r\n\t\t\t\t\t\tencontrosNoPersistenceAula.setAula(4);\r\n\t\t\t\t\t\tencontrosNoPersistence.setAula4(encontrosNoPersistenceAula);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t//Aulas Liberadas\r\n\t\t\t\telse{\r\n\t\t\t\t\tif(numPal == 1){\r\n\t\t\t\t\t\tencontrosNoPersistenceAula.setLiberada(true);\r\n\t\t\t\t\t\tencontrosNoPersistenceAula.setPalestras(pal);\r\n\t\t\t\t\t\tencontrosNoPersistenceAula.setAula(1);\r\n\t\t\t\t\t\tencontrosNoPersistence.setAula1(encontrosNoPersistenceAula);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(numPal == 2){\r\n\t\t\t\t\t\tencontrosNoPersistenceAula.setLiberada(true);\r\n\t\t\t\t\t\tencontrosNoPersistenceAula.setPalestras(pal);\r\n\t\t\t\t\t\tencontrosNoPersistenceAula.setAula(2);\r\n\t\t\t\t\t\tencontrosNoPersistence.setAula2(encontrosNoPersistenceAula);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(numPal == 3){\r\n\t\t\t\t\t\tencontrosNoPersistenceAula.setLiberada(true);\r\n\t\t\t\t\t\tencontrosNoPersistenceAula.setPalestras(pal);\r\n\t\t\t\t\t\tencontrosNoPersistenceAula.setAula(3);\r\n\t\t\t\t\t\tencontrosNoPersistence.setAula3(encontrosNoPersistenceAula);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(numPal == 4){\r\n\t\t\t\t\t\tencontrosNoPersistenceAula.setLiberada(true);\r\n\t\t\t\t\t\tencontrosNoPersistenceAula.setPalestras(pal);\r\n\t\t\t\t\t\tencontrosNoPersistenceAula.setAula(4);\r\n\t\t\t\t\t\tencontrosNoPersistence.setAula4(encontrosNoPersistenceAula);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tnumPal++;\r\n\t\t\t}\r\n\t\t\tlistaEncontrosNoPersistence.add(encontrosNoPersistence);\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "e4db22c643ee4e47d3b67274dd50ecba", "score": "0.5138569", "text": "public String update() {\n\t\tList<Condicion> condiciones = condicionList.getMyResultList();\n\n\t\tfor (Condicion c : condiciones) {\n\t\t\tif ((c.getNombre().toUpperCase().trim()\n\t\t\t\t\t.equals(this.instance.getNombre().toUpperCase().trim()) && (c\n\t\t\t\t\t.getId() != this.instance.getId()))) {\n\t\t\t\tfacesMessages\n\t\t\t\t\t\t.add(\"El nombre de la condicion ya esta siendo utilizado. Modifiquelo para guardar\");\n\t\t\t\treturn null;\n\t\t\t}\n\t\t}\n\n\t\tif (this.instance.getAtributo().getTipoCarga().equals(\"FISICO\")) {\n\t\t\tthis.instance.setFuncion(null);\n\t\t\tthis.instance.setReglaPsC(null);\n\t\t\tthis.instance.setRegla(null);\n\t\t\tif (this.instance.getLiterales().size() > 0) {\n\t\t\t\treturn super.persist();\n\t\t\t}\n\t\t\tfacesMessages\n\t\t\t\t\t.add(\"La condicion debe contenter al menos un literal\");\n\t\t\treturn null;\n\t\t} else {\n\t\t\tif (this.tipoCarga.equals(\"REG\")) {\n\t\t\t\tthis.instance.setFuncion(null);\n\t\t\t\tthis.instance.setLiterales(null);\n\t\t\t\tif (this.instance.getRegla() != null\n\t\t\t\t\t\t|| this.instance.getReglaPsC() != null)\n\t\t\t\t\treturn super.update();\n\t\t\t\tfacesMessages.add(\"la condicion debe contener una regla\");\n\t\t\t\treturn null;\n\t\t\t} else {\n\t\t\t\tthis.instance.setRegla(null);\n\t\t\t\tthis.instance.setReglaPsC(null);\n\t\t\t\tthis.instance.setLiterales(null);\n\t\t\t\tif (this.instance.getFuncion() != null)\n\t\t\t\t\treturn super.update();\n\t\t\t\tfacesMessages.add(\"La condicion debe tener una función\");\n\t\t\t\treturn null;\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "c07755dfb16049b258b46b62830b5737", "score": "0.51384366", "text": "protected void leggiEventualiInformazioniAzionePrecedente() {\n\t\t// Recupera le informazioni da sessione\n\t\tList<Informazione> listaInformazioniPrecedenti = sessionHandler.getParametro(BilSessionParameter.INFORMAZIONI_AZIONE_PRECEDENTE);\n\t\tif(listaInformazioniPrecedenti != null) {\n\t\t\t// Pulisco la sessione\n\t\t\tsessionHandler.setParametro(BilSessionParameter.INFORMAZIONI_AZIONE_PRECEDENTE, null);\n\t\t\tfor(Informazione info : listaInformazioniPrecedenti) {\n\t\t\t\t// Aggiungo ogni informazione nel model\n\t\t\t\taddInformazione(info);\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "e5101bfe3c3be30b377ebb14462f68d0", "score": "0.5137075", "text": "public Reclamo() {\n this.descProblema = \"\";\n this.fechaEntrada = new Date();\n this.editable = true;\n this.fechaFin = null;\n this.fechaEstimEntrega = null;\n this.tareas = new HashSet<>();\n }", "title": "" }, { "docid": "746eb806db8cfdf846002580ca73aa5f", "score": "0.51360345", "text": "private RecompensaCombate() {\n\n\t}", "title": "" }, { "docid": "595fa262d9b7532160f9d81f8a5e87e6", "score": "0.51360065", "text": "public void nulificaAtributos() {\n if(descripcion!=null && descripcion.isEmpty()) descripcion=null;\n if(anotacion!=null && anotacion.isEmpty()) anotacion=null;\n if (estado != null && estado.isEmpty()) estado = \"pendiente\";\n if (prioridad != null && (prioridad<1 || prioridad > 3)) prioridad = 3;\n }", "title": "" }, { "docid": "950261eb83bf179dc56b638ecf21a73c", "score": "0.51294726", "text": "public void conocerAccidentesRangoFechas(String fechaInit, String fechaEnd ) {\n\n\t\tLinkedList<Accidente> result = (LinkedList<Accidente>) datosRBT.valuesInRange(fechaInit, fechaEnd);\n\n\t\tSystem.out.println(\"Se encontraron \" + result.size() + \" en el rango solicitado.\");\n\n\t\tint gradoUno = 0;\n\t\tint gradoDos = 0;\n\t\tint gradoTres = 0;\n\t\tint gradoCuatro = 0;\n\n\t\tfor (Accidente actual : result) {\n\n\t\t\tif(actual.getSeverity().equals(\"1\"))\n\t\t\t\tgradoUno++;\n\t\t\telse if(actual.getSeverity().equals(\"2\"))\n\t\t\t\tgradoDos++;\n\t\t\telse if(actual.getSeverity().equals(\"3\"))\n\t\t\t\tgradoTres++;\n\t\t\telse\n\t\t\t\tgradoCuatro++;\n\t\t}\n\n\n\t\tint max = 0;\n\t\tint max2 = 0;\n\t\tint indicador =0;\n\t\tint indicador2 =0;\n\t\tif(gradoUno>gradoDos) {\n\t\t\tmax = gradoUno;\n\t\t\tindicador = 1;\n\t\t}\n\t\telse {\n\t\t\tmax = gradoDos;\n\t\t\tindicador = 2;\n\t\t}\n\t\tif(gradoTres>gradoCuatro) {\n\t\t\tmax2 = gradoTres;\n\t\t\tindicador2 = 3;\n\t\t}\n\t\telse {\n\t\t\tmax2 = gradoCuatro;\n\t\t\tindicador2 = 4;\n\t\t}\n\n\t\tif(max>max2) {\n\t\t\tSystem.out.println(\"La categoria de accidentes mas reportada es: \" + indicador + \" con \" + max + \" accidentes.\");\n\n\t\t}\n\t\telse\n\t\t\tSystem.out.println(\"La categoria de accidentes mas reportada es \" + indicador2 + \" con \" + max2 + \" accidentes.\");\t\t\n\t}", "title": "" }, { "docid": "73636b907c46395855402e3551df5f5a", "score": "0.51276845", "text": "boolean retroalimentarNotificacion(DyctDocumentoVO documento, ResponseConsulta respuestaNyV) throws SIATException;", "title": "" }, { "docid": "1f4bf286a2b008d1e2110a7731803237", "score": "0.5125097", "text": "public static void listarTodasCitas() throws GestionVeterinarioException {\n\t\tList<Cita> todasCitas = citaDao.listarTodasLasCitas();\n\n\t\tif (todasCitas == null) {\n\t\t\tthrow new GestionVeterinarioException(\"Error, no se encuentran citas registradas\");\n\t\t} else {\n\t\t\tfor (Cita cita : todasCitas) {\n\t\t\t\tSystem.out.println(cita);\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "c971a4abad61fe632b72794b5f8a5c01", "score": "0.51241827", "text": "public void dataAtualComentario() {\n\t\tlogger.debug(\"ChecklistController.dataAtualComentario\");\n\t\tthis.setDataHoraComentario(new Date());\n\t}", "title": "" }, { "docid": "7fa753634cad5b19a9d5384a31b132a7", "score": "0.5121304", "text": "protected HashMap<Integer, CapitoloUscitaGestione> mapRicercaSinteticaCapitoloUscita(\n\t\t\tRichiedente richiedente, Ente ente, Impegno impegno,\n\t\t\tBilancio bilancio) {\n\n\t\tHashMap<Integer, CapitoloUscitaGestione> capitoliDaServizio = new HashMap<Integer, CapitoloUscitaGestione>();\n\t\tCapitoloUscitaGestione capitoloUscitaGestione = null;\n\n\t\tListaPaginata<CapitoloUscitaGestione> listaCapitoliUscita = getRicercaSinteticaCapitoloUscita(\n\t\t\t\trichiedente, ente, impegno, bilancio);\n\t\tif (listaCapitoliUscita != null) {\n\t\t\t// prendo sempre il primo elemento, tanto ce ne sara' sempre uno,\n\t\t\t// visto che da front end e' gia' verificato e trappato il caso in\n\t\t\t// cui ci\n\t\t\t// siano piu' capitoli\n\t\t\tcapitoloUscitaGestione = listaCapitoliUscita.get(0);\n\t\t\tcapitoliDaServizio.put(capitoloUscitaGestione.getUid(),\n\t\t\t\t\tcapitoloUscitaGestione);\n\t\t}\n\n\t\treturn capitoliDaServizio;\n\t}", "title": "" }, { "docid": "1de18cef95b31b5a9078b496e31fb29d", "score": "0.51198596", "text": "@Override\n\tpublic long getCod_istat_citta() {\n\t\treturn _segreteria.getCod_istat_citta();\n\t}", "title": "" }, { "docid": "04d0604303071d575a9975b009448fa6", "score": "0.5119845", "text": "@Override\r\n\tpublic Produto atualizar(Produto entidade) {\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "e7cee9cec102ea97d7616ce3c3f175e0", "score": "0.5117969", "text": "public void modificarVisibilidadRevista(){\n if (modificarRevista)\n modificarRevista =false;\n else\n modificarRevista =true;\n }", "title": "" }, { "docid": "5ac99389f798a4af8dfab5a0657fcafd", "score": "0.51142776", "text": "public void cargargarFechaActual(){\n if (!modificarEquipo) {\n final Calendar c = Calendar.getInstance();\n año = c.get(Calendar.YEAR);\n mes = c.get(Calendar.MONTH);\n dia = c.get(Calendar.DAY_OF_MONTH);\n }else{\n final Calendar c = unEquipo.getFechadeInicioCalendar();\n año = c.get(Calendar.YEAR);\n mes = c.get(Calendar.MONTH);\n dia = c.get(Calendar.DAY_OF_MONTH);\n }\n updateDisplay();\n\n }", "title": "" }, { "docid": "8d0a989a5e880d2fb48213f837111607", "score": "0.5109771", "text": "private void aktualizujTerminRealizacji() {\n\t\tterminRealizacji = now();\n\t\tfor(PozycjaZamowienia pozycja:pozycjeZamowienia) {\n\t\t\tLocalDate dataPozycji = pozycja.getTerminRealizacji();\n\t\t\tif (dataPozycji == null) {\n\t\t\t\tterminRealizacji = null;\n\t\t\t} else if(terminRealizacji != null && isAfterTermin(dataPozycji)) {\n\t\t\t\tterminRealizacji = pozycja.getTerminRealizacji();\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "fde17adab2638da7ba215cdf542b3262", "score": "0.51064366", "text": "public void cacheResult(ConcesionarioVehiculo concesionarioVehiculo);", "title": "" }, { "docid": "9e1ecc18f332939fa5965f7693ce5395", "score": "0.51048535", "text": "Faits ()\r\n\t{\r\n\t\tnumFait=0;\t\r\n\t\tdescFait=null;\r\n\t\tsuivantFait=null;\r\n\t}", "title": "" }, { "docid": "c4533ccacc8bbfb0c452cf879052069c", "score": "0.5093714", "text": "private void actualizarSaldoCajaChica(int idCompraCajaChica, boolean indicadorReverso, CajaChica cajaChica)\r\n/* 131: */ throws ExcepcionAS2Financiero\r\n/* 132: */ {\r\n/* 133:161 */ CompraCajaChica compraCajaChica = cargarDetalle(idCompraCajaChica);\r\n/* 134:162 */ if (compraCajaChica != null)\r\n/* 135: */ {\r\n/* 136:163 */ BigDecimal valorCompraCajaChica = compraCajaChica.getValor().subtract(compraCajaChica.getDescuentoImpuesto());\r\n/* 137:164 */ if (indicadorReverso) {\r\n/* 138:165 */ valorCompraCajaChica = valorCompraCajaChica.negate();\r\n/* 139: */ }\r\n/* 140:168 */ compraCajaChica.getCajaChica().setValor(valorCompraCajaChica.add(this.servicioFacturaProveedorSri.valorAcumuladoCajaChica(compraCajaChica, cajaChica)));\r\n/* 141:169 */ this.cajaChicaDao.guardar(cajaChica);\r\n/* 142: */ }\r\n/* 143: */ }", "title": "" }, { "docid": "0d133efeb42f14f9fa6e5fcaeb9ee6b7", "score": "0.50929934", "text": "public void visualizacionVotosCandidato(){\n System.out.println(\"El total de votos del cantidato \"+this.getNombres()+\" \"+this.getApellidos()+\" del partido \"+this.getNombrePartido()+\" es: \"+this.getTotalVotos());\n\n }", "title": "" }, { "docid": "91fa6f2f7ebe26986ff0cc08b4096ed6", "score": "0.50916624", "text": "private static void registrarAuditoriaDetallesCierreCaja(Connexion connexion,CierreCaja cierrecaja)throws Exception {\n\t\t\r\n\t\tString strValorActual=null;\r\n\t\tString strValorNuevo=null;\r\n\t\t\r\n\t\t\t\r\n\t\t\tif(cierrecaja.getIsNew()||!cierrecaja.getid_empresa().equals(cierrecaja.getCierreCajaOriginal().getid_empresa()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(cierrecaja.getCierreCajaOriginal().getid_empresa()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=cierrecaja.getCierreCajaOriginal().getid_empresa().toString();\r\n\t\t\t\t}\r\n\t\t\t\tif(cierrecaja.getid_empresa()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=cierrecaja.getid_empresa().toString() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),CierreCajaConstantesFunciones.IDEMPRESA,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(cierrecaja.getIsNew()||!cierrecaja.getid_sucursal().equals(cierrecaja.getCierreCajaOriginal().getid_sucursal()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(cierrecaja.getCierreCajaOriginal().getid_sucursal()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=cierrecaja.getCierreCajaOriginal().getid_sucursal().toString();\r\n\t\t\t\t}\r\n\t\t\t\tif(cierrecaja.getid_sucursal()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=cierrecaja.getid_sucursal().toString() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),CierreCajaConstantesFunciones.IDSUCURSAL,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(cierrecaja.getIsNew()||!cierrecaja.getid_usuario().equals(cierrecaja.getCierreCajaOriginal().getid_usuario()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(cierrecaja.getCierreCajaOriginal().getid_usuario()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=cierrecaja.getCierreCajaOriginal().getid_usuario().toString();\r\n\t\t\t\t}\r\n\t\t\t\tif(cierrecaja.getid_usuario()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=cierrecaja.getid_usuario().toString() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),CierreCajaConstantesFunciones.IDUSUARIO,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(cierrecaja.getIsNew()||!cierrecaja.getid_tipo_forma_pago().equals(cierrecaja.getCierreCajaOriginal().getid_tipo_forma_pago()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(cierrecaja.getCierreCajaOriginal().getid_tipo_forma_pago()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=cierrecaja.getCierreCajaOriginal().getid_tipo_forma_pago().toString();\r\n\t\t\t\t}\r\n\t\t\t\tif(cierrecaja.getid_tipo_forma_pago()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=cierrecaja.getid_tipo_forma_pago().toString() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),CierreCajaConstantesFunciones.IDTIPOFORMAPAGO,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(cierrecaja.getIsNew()||!cierrecaja.getfecha().equals(cierrecaja.getCierreCajaOriginal().getfecha()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(cierrecaja.getCierreCajaOriginal().getfecha()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=cierrecaja.getCierreCajaOriginal().getfecha().toString();\r\n\t\t\t\t}\r\n\t\t\t\tif(cierrecaja.getfecha()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=cierrecaja.getfecha().toString() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),CierreCajaConstantesFunciones.FECHA,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(cierrecaja.getIsNew()||!cierrecaja.gettotal().equals(cierrecaja.getCierreCajaOriginal().gettotal()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(cierrecaja.getCierreCajaOriginal().gettotal()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=cierrecaja.getCierreCajaOriginal().gettotal().toString();\r\n\t\t\t\t}\r\n\t\t\t\tif(cierrecaja.gettotal()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=cierrecaja.gettotal().toString() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),CierreCajaConstantesFunciones.TOTAL,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(cierrecaja.getIsNew()||!cierrecaja.gettotal_diferencia().equals(cierrecaja.getCierreCajaOriginal().gettotal_diferencia()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(cierrecaja.getCierreCajaOriginal().gettotal_diferencia()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=cierrecaja.getCierreCajaOriginal().gettotal_diferencia().toString();\r\n\t\t\t\t}\r\n\t\t\t\tif(cierrecaja.gettotal_diferencia()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=cierrecaja.gettotal_diferencia().toString() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),CierreCajaConstantesFunciones.TOTALDIFERENCIA,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(cierrecaja.getIsNew()||!cierrecaja.getesta_activo().equals(cierrecaja.getCierreCajaOriginal().getesta_activo()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(cierrecaja.getCierreCajaOriginal().getesta_activo()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=cierrecaja.getCierreCajaOriginal().getesta_activo().toString();\r\n\t\t\t\t}\r\n\t\t\t\tif(cierrecaja.getesta_activo()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=cierrecaja.getesta_activo().toString() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),CierreCajaConstantesFunciones.ESTAACTIVO,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t}", "title": "" }, { "docid": "280ee1ae0a8748ade74cd4dc88502711", "score": "0.508794", "text": "@Override\r\n\tpublic void atualizar(List<Produto> entidades) {\n\r\n\t}", "title": "" } ]
78ce6d301c65746a264c865a09318196
This function sums up all the edges weights or costs given the nodes to traverse.
[ { "docid": "aafe047c727475566449ad4d548f145f", "score": "0.0", "text": "public static Pair getEdge(Graph graph, String[] arr){\n // Validate inputs\n if(graph == null || arr == null) throw new NullArgumentException();\n if(graph.size() == 0 || arr.length == 0) return new Pair(false, 0);\n // Find the \"starting node\" if it exists\n GraphNode node = getStartingNode(graph, arr[0]);\n if(node == null) return new Pair(false, 0);\n // Start the traversal\n double sum = 0;\n for(int i = 1; i < arr.length; i++){\n HashMap.Entry<GraphNode, Integer> kvp = getNeighborEntrySet(node, arr[i]);\n if(kvp != null) {\n node = kvp.getKey();\n sum += kvp.getValue();\n }else\n {\n return new Pair(false, 0);\n }\n }\n return new Pair(true, sum);\n }", "title": "" } ]
[ { "docid": "35e065584bf3f151f6cb3eab71b2e4f3", "score": "0.6689562", "text": "private static void calcAdjNodeWeights(LinkedHashMap<String, LinkedHashMap<String, String>> nodeTracker,\n LinkedHashMap<String, Node> nodeMap,\n String currentNodeId,\n HashSet<String> visitedSet) {\n Node currentNode = nodeMap.get(currentNodeId);\n HashMap<String, Integer> currentNodeAdjMap = currentNode.getAdjacentNode();\n\n for(Map.Entry<String, Integer> nodeMapEntry : currentNodeAdjMap.entrySet()){\n\n // Fetch Weights\n String nodeNeighbourId = nodeMapEntry.getKey();\n int value = nodeMapEntry.getValue();\n\n // If Already visited we by pass it\n if (visitedSet.contains(nodeNeighbourId)) {\n continue;\n }\n\n\n // Calculate Total Weight\n int cumlativeWeight = Integer.parseInt(nodeTracker.get(currentNodeId).get(\"weight\"));\n int totalWeight = cumlativeWeight + value;\n\n // Compare with nodeTracker\n if (totalWeight < Integer.valueOf(nodeTracker.get(nodeNeighbourId).get(\"weight\"))) {\n nodeTracker.get(nodeNeighbourId).put(\"weight\", String.valueOf(totalWeight));\n nodeTracker.get(nodeNeighbourId).put(\"parentNode\", currentNodeId);\n }\n\n System.out.print(\"\");\n\n }\n\n System.out.println(\"Finished with Current Node: \" + currentNodeId);\n\n // Modify nodeTracker if needed\n\n }", "title": "" }, { "docid": "fa3ad0acdce03b58a3a0ceb2ad11afbf", "score": "0.6565584", "text": "public double cost() {\r\n try {\r\n _g.getReadAccess();\r\n double res = 0.0;\r\n DisjointSet djset = new DisjointSet();\r\n // 1. put every node in its own set\r\n for (int i = 0; i < _g.getNumNodes(); i++) {\r\n djset.makeSet(_g.getNode(i));\r\n }\r\n // 2. sort the links in asc. order\r\n Link[] links = new Link[_g.getNumArcs()];\r\n for (int i = 0; i < links.length; i++) {\r\n links[i] = _g.getLink(i);\r\n }\r\n Arrays.sort(links, new LinkComp());\r\n // 3. for each link in the sorted links array check if both ends of link\r\n // are in the same set. If not, add link to the mst and unite two sets,\r\n // else discard link\r\n for (int i = 0; i < links.length; i++) {\r\n DisjointSetElem start = djset.find(_g.getNode(links[i].getStart()));\r\n DisjointSetElem end = djset.find(_g.getNode(links[i].getEnd()));\r\n if (start != end) {\r\n djset.union(start, end);\r\n res += links[i].getWeight();\r\n }\r\n // else no-op\r\n }\r\n return res;\r\n }\r\n finally {\r\n try {\r\n _g.releaseReadAccess();\r\n }\r\n catch (parallel.ParallelException e) {\r\n e.printStackTrace(); // never gets here\r\n }\r\n }\r\n }", "title": "" }, { "docid": "7f47835a241242968e02167665a1108e", "score": "0.64570904", "text": "public abstract double sumOfWeights();", "title": "" }, { "docid": "249c834e6fe95abd89826e51ea441c79", "score": "0.61677855", "text": "public int getCost(ArrayList<DirectedEdge> edges, GraphOfPorts g) {\r\n //if there are no edges (shipments) in the path\r\n //we return 0\r\n if (null == edges)\r\n return 0;\r\n //otherwise we want to make an arraylist of nodes in order to find the cost of the path\r\n ArrayList<Node> path = new ArrayList<Node>();\r\n //we want to add all the shipments in as nodes into our path of nodes\r\n for (int i = 0; i < edges.size(); i++) {\r\n path.add(edges.get(i).getFrom());\r\n path.add(edges.get(i).getTo());\r\n }\r\n int sum = 0;\r\n //now we want to sum all these shipments connected\r\n for (int i = 0; i < path.size() - 1; i++) {\r\n //if the path is not a duplicate of itself eg. sydney -> sydney (skip those)\r\n if (!path.get(i).equals(path.get(i + 1))) {\r\n //add the refuelling time of the first node\r\n sum += path.get(i).getRefuellingTime();\r\n //add the edge weight of the first node to the node after (linking them together)\r\n sum += g.getEdges()[path.get(i).getIndexOnGraph()][path.get(i + 1).getIndexOnGraph()];\r\n }\r\n }\r\n //return the summed up cost of the path (very similair to gcost)\r\n return sum;\r\n }", "title": "" }, { "docid": "e43da1df8154e9bb9e1b4410f5b7dd54", "score": "0.6056794", "text": "public int getTotalWeight()\n {\n\t int total = 0;\n\t for (Entry<INode, Integer> entry : distance.entrySet()) {\n\t total += entry.getValue(); \n }\n\n\t return total;\n }", "title": "" }, { "docid": "e3b10668c63d15c359e700c583e51230", "score": "0.6051019", "text": "private int sumNodes(Node<T> node)\n {\n int total = 0;\n\n if (node == null)\n return 0;\n\n for(var child : node.getChildren())\n {\n total += sumNodes(child);\n }\n return total + 1;\n }", "title": "" }, { "docid": "f6c6243942645ffe7f19745518eb404a", "score": "0.60098773", "text": "public double getEdgeWeight(T source, T destination) {\n return this.getEdgeWeight(new Node<>(source), new Node<>(destination));\n }", "title": "" }, { "docid": "66072828e102aaa3fc8faf4e66af2095", "score": "0.5999861", "text": "private static void sum(Node node) {\n if (node != null) {\n sum(node.leftNode);\n sumOfNodes += node.key;\n sum(node.rightNode);\n }\n }", "title": "" }, { "docid": "d0b91eac6c9e5e07ec3ba0f76d45e792", "score": "0.58630663", "text": "void calculateEdgeLengths() {\n\t\t\t\n\t\t\t\n\t\t\tfor(Edge e : outgoingEdges) {\n\t\t\t\tint length = this.diff(e.getChild());\n\t\t\t\te.setWeight(length);\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "a42aa0f722f9e2eb2a10cb1735d25317", "score": "0.5859449", "text": "public double getEdgeWeight(Node<T> source, Node<T> destination) {\n if (nodes.containsKey(source)) {\n Map<Node<T>, Double> edges = nodes.get(source);\n if (edges.containsKey(destination)) {\n return edges.get(destination);\n }\n }\n return -1.0;\n }", "title": "" }, { "docid": "f25e29e30232acbab93942f7369661a0", "score": "0.5839568", "text": "private static float calculateTotal(int days, int weight)\n {\n float cost;\n cost = COST_PER_POUND * weight * days;\n return cost;\n }", "title": "" }, { "docid": "4a2e2e76972092d61ea198c170182159", "score": "0.5826531", "text": "public static Double calculateAllEdges(){\n\t\tdouble totalDistance = 0.0;\n\t\tfor(int i = 0;i < finalPath.size();i++){\n\t\t\tif(i == 0) continue;\n\t\t\telse {\n\t\t\t\tdouble temp = edgeLengths.get(finalPath.get(i-1)).get(finalPath.get(i));\n\t\t\t\ttotalDistance += temp;\n\t\t\t\t//System.out.println(finalPath.get(i-1) + \" \" + finalPath.get(i) + \" Distance: \" + temp);\n\t\t\t}\n\t\t}\n\t\t//need to calculate distance from the first node to the last node\n\t\t//System.out.println(finalPath.get(finalPath.size()-1) + \" \" + finalPath.get(0) + \" Distance: \" + edgeLengths.get(finalPath.get(finalPath.size()-1)).get(finalPath.get(0)) );\n\t\ttotalDistance += edgeLengths.get(finalPath.get(finalPath.size()-1)).get(finalPath.get(0));\n\n\t\t//return the total distance for the path\n\t\treturn totalDistance;\n\t}", "title": "" }, { "docid": "77efe7eddc13cbbdbdbe9f87527b54f5", "score": "0.58175683", "text": "double getEdgeWeight(E e);", "title": "" }, { "docid": "373807156430c051446b20d9d81fbb32", "score": "0.57882094", "text": "public double getWeight(Node node1, Node node2) {\n\t\tdouble weight = 0;\n\t\t\n\t\tlog(INFO, \"getting weight\");\n\t\t\n\t\t// list only with each node for getting individual probabilities\n\t\tArrayList<Node> aList = new ArrayList<Node>();\n\t\taList.add(node1);\n\t\tArrayList<Node> bList = new ArrayList<Node>();\n\t\tbList.add(node2);\n\t\t\n\t\tlog(INFO, \"Getting A prob\");\n\t\t// get individual probabilities so not recalculating all the time\n\t\tdouble aTrueProb = getProbability(aList, new ArrayList<Node>());\n\t\tdouble aFalseProb = getProbability(new ArrayList<Node>(), aList);\n\t\tlog(INFO, \"getting b probability\");\n\t\tdouble bTrueProb = getProbability(bList, new ArrayList<Node>());\n\t\tdouble bFalseProb = getProbability(new ArrayList<Node>(), bList);\n\t\t\n\t\tlog(INFO, \"Trying TT\");\n\t\t\n\t\t// TT\n\t\tArrayList<Node> trueList = new ArrayList<Node>();\n\t\tArrayList<Node> falseList = new ArrayList<Node>();\n\t\ttrueList.add(node1);\n\t\ttrueList.add(node2);\n\t\tdouble probability1 = getProbability(trueList, falseList);\n\t\tdouble probability2 = (probability1 / (aTrueProb * bTrueProb));\n\t\tweight += (probability1 * Math.log(probability2));\n\t\t\n\t\t// FF\n\t\ttrueList = new ArrayList<Node>();\n\t\tfalseList = new ArrayList<Node>();\n\t\tfalseList.add(node1);\n\t\tfalseList.add(node2);\n\t\tprobability1 = getProbability(trueList, falseList);\n\t\tprobability2 = (probability1 / (aFalseProb * bFalseProb));\n\t\tweight += (probability1 * Math.log(probability2));\n\t\t\n\t\t// TF\n\t\ttrueList = new ArrayList<Node>();\n\t\tfalseList = new ArrayList<Node>();\n\t\ttrueList.add(node1);\n\t\tfalseList.add(node2);\n\t\tprobability1 = getProbability(trueList, falseList);\n\t\tprobability2 = (probability1 / (aTrueProb * bFalseProb));\n\t\tweight += (probability1 * Math.log(probability2));\n\t\t\n\t\t// FT\n\t\ttrueList = new ArrayList<Node>();\n\t\tfalseList = new ArrayList<Node>();\n\t\tfalseList.add(node1);\n\t\ttrueList.add(node2);\n\t\tprobability1 = getProbability(trueList, falseList);\n\t\tprobability2 = (probability1 / (aFalseProb * bTrueProb));\n\t\tweight += (probability1 * Math.log(probability2));\n\t\t\n\t\treturn weight;\n\t}", "title": "" }, { "docid": "0517a71f089ff5e47faa142a439c4f82", "score": "0.57599676", "text": "public int simpleRouteWeight(String[] nodes) {\n\n if (graph.isValidRoute(nodes)) {\n return graph.getRouteWeight(nodes);\n }\n\n throw new IndexOutOfBoundsException(\"The route is not valid!\");\n }", "title": "" }, { "docid": "8f87f1750c625d8a7336dd6f8be8113d", "score": "0.574168", "text": "public double getEdgeWeight(E e);", "title": "" }, { "docid": "418a90072ca52260aa7f725886eef4ff", "score": "0.5679071", "text": "public \tvoid\tcomputeNodeEdges(){\n\t\tNode node;\n\t\tfor (int i = 0; i < mCapacity; i++) {\n\t\t\tfor (int nabor : mAdjacencyList[i]) {\n\t\t\t\tif(nabor == 0) break;\n\t\t\t\tnode = getNode(nabor);\n\t\t\t\tnode.increaseInEdges();\n\t\t\t}\t\n\t\t}\t\n\t\t\n\t}", "title": "" }, { "docid": "dbb67f1d6984f79a745ad2033f81536c", "score": "0.5630924", "text": "static long pathSum(int node) {\r\n Hello h1 = find1(getSum(less, p1[node]+1), dep[node]);\r\n return (h1.first + getSum(most, p1[node]+1)) % high;\r\n }", "title": "" }, { "docid": "25ea2793bdfca3dc14bc28c4e1ee29b3", "score": "0.5619862", "text": "Integer node_sum() {\n int sum = 0;\n for (int i = 0; i < row; i++) {\n for (int j = 0; j < column; j++) {\n if (execution_matrix[i][j] != 0)\n sum = sum + execution_matrix[i][j];\n }\n }\n return sum;\n }", "title": "" }, { "docid": "0b20373142d17eafb98599dd88c670df", "score": "0.5586838", "text": "private void addNodesTotalCost(List<DeliveryNode> childNodes){\n //add the nodes to the list, sort the list afterwards\n //TODO use insertion to quickly insert the new values\n List<DeliveryNode> nodeQueue = this.getNodeQueue();\n nodeQueue.addAll(childNodes);\n nodeQueue.sort(new Comparator<DeliveryNode>() {\n @Override\n public int compare(DeliveryNode node1, DeliveryNode node2) {\n float costNode1 = node1.getApproxCost();\n float costNode2 = node2.getApproxCost();\n //check for the values\n if (costNode1 > costNode2) {\n //1 means set node 1 forwards (higher index)\n return 1;\n }\n if (costNode1 < costNode2) {\n //-1 means set node1 one backwards (lower index) in the list (in bubble sort)\n return -1;\n }\n //0 means let them both stay where they are (in bubble sort)\n return 0;\n }\n });\n\n// System.out.println(\"Size of queue: \"+ nodeQueue.size());\n// System.out.println(\"First node packets delivered: \" + getFirstNode().getSubmittedWorldDeliveries().size());\n\n }", "title": "" }, { "docid": "0a0f3c15f876c22490d866e9c46459d5", "score": "0.5576426", "text": "public int getWeightPath(searchNode s) {\r\n //we want to construct the path similair to the code above, and workout the current weight of the path\r\n //in it's current state. which will return the GScore\r\n ArrayList<Node> path = new ArrayList<Node>();\r\n //adding the path of the root from the searchNode,\r\n path.add(s.getShipment().getFrom());\r\n path.add(s.getShipment().getTo());\r\n //now we want to add all the nodes in the shipments in the path\r\n for (int i = 0; i < s.getChildren().size(); i++) {\r\n path.add(s.getChildren().get(i).getFrom());\r\n path.add(s.getChildren().get(i).getTo());\r\n }\r\n\r\n int sum = 0;\r\n //now we want to sum up all the shipments connected\r\n for (int i = 0; i < path.size() - 1; i++) {\r\n //if the first node and next node are identical i.e sydney->sydney skip\r\n if (!path.get(i).equals(path.get(i + 1))) {\r\n //otherwise add the current nodes refuelling time\r\n sum += path.get(i).getRefuellingTime();\r\n //and add the edge weight from the current node to next node (linking the path)\r\n sum += g.getEdges()[path.get(i).getIndexOnGraph()][path.get(i + 1).getIndexOnGraph()];\r\n }\r\n }\r\n //return the GScore\r\n return sum;\r\n }", "title": "" }, { "docid": "fd66fe5b1a891511d41f52a48f2ecde1", "score": "0.5551681", "text": "public SparseGraph<Vertex,Edge> UpdateNodesWeight(){\n\t\tfor(Map.Entry<Vertex, Integer> e:NodeIdMap.entrySet()){\n\t\t\tVertex v=e.getKey();\n\t\t\tint vid=e.getValue();\n\t\t\tList<Double> vWeights=new ArrayList<Double>();\n\t\t\t//System.out.println(v.getId());\n\t\t\tfor(int i=0;i<k;i++){\n\t\t\t\tvWeights.add(this.U.get(vid, i));\n\t\t\t\t//System.out.print(this.U.get(vid, i)+\";\");\n\t\t\t}\n\t\t\tv.setWeight(vWeights);\n\t\t}\n\t\treturn this.sparse_graph;\n\t}", "title": "" }, { "docid": "1c174b715b762805b91c6db011bb41b3", "score": "0.5551206", "text": "private int getDistance(INode node, INode target) \n {\n\t for (IEdge edge : edges)\n\t {\n\t\t if (edge.getOriginNode().getName().equals(node.getName())\n\t\t && edge.getTargetNode().getName().equals(target)) {\n\t\t return edge.getWeight();\n\t }\n }\n return 0;\n }", "title": "" }, { "docid": "4d866c2c99d44ea235021238cb1141f3", "score": "0.55424803", "text": "public void nodesSum(Node node, int sum, List<Integer> items){\n\t\tif(node == null || items.size() == 2){\n\t\t\treturn;\n\t\t}\n\n\t\tNode second = search(mRoot, sum-node.mData); // make sure to pass mRoot for every search\n\t\tif(second != null && node != second){\n\t\t\tSystem.out.println(\"node.data: \" + node.mData + \" - second.data: \" + second.mData);\n\t\t\titems.add(node.mData);\n\t\t\titems.add(second.mData);\n\t\t} else {\n\t\t\tnodesSum(node.mLeft, sum, items);\n\t\t\tnodesSum(node.mRight, sum, items);\n\t\t}\n\t}", "title": "" }, { "docid": "8cdb95674601b1a6da7c83b9973c94bb", "score": "0.55265456", "text": "public int keySum() {\n sumOfNodes = 0;\n sum(root);\n return sumOfNodes;\n }", "title": "" }, { "docid": "3f718acd623a6afe12c50e2dff2dca83", "score": "0.5511525", "text": "private void passAllLinkWeight(){\n\t\t//for(sbr.Segment seg : sr.segments()){\n\t\t\tfor(rbr.Link link : regionBR.links()){\n\t\t\t\tgetLink(link.getOrigem().getNome(), \n\t\t\t\t\t\tlink.getDestino().getNome()).setLinkWeight(link.getWeight());\n\t\t\t\t//System.out.println(link.getOrigem().getNome() + \"-\" + link.getDestino().getNome()\n\t\t\t\t//\t\t+ \" Peso: \" + link.getWeight());\n\t\t\t}\n\t\t//}\n\t}", "title": "" }, { "docid": "bd4af9a91f664bd9bf64f39f203e1d4d", "score": "0.550458", "text": "public static void main(String args[]) {\n Node root = new Node(6);\n root.left = new Node(3);\n root.right = new Node(5);\n root.right.right = new Node(4);\n root.left.left = new Node(2);\n root.left.right = new Node(5);\n root.left.right.right = new Node(4);\n root.left.right.left = new Node(7);\n\n System.out.print(\"Sum of all paths is \" + treePathsSum(root));\n }", "title": "" }, { "docid": "7d291580b58eba0b50109be630ee5a93", "score": "0.5501283", "text": "public int edgeCost(Vertex a, Vertex b) {\n \tif(!myMap.containsKey(a) || !myMap.containsKey(b)) {\n \t\tthrow new IllegalArgumentException(\"Either one or both of the cities given are not in the system\");\n \t}\n \tfor(Edge trip : myMap.get(a)) {\n \t\tif(trip.getDestination().equals(b)) {\n \t\t\treturn trip.getWeight();\n \t\t}\n \t}\n \treturn -1;\n\t// YOUR CODE HERE\n\n }", "title": "" }, { "docid": "1c180d5b33560c526f8d56f263fd05b0", "score": "0.54970115", "text": "protected abstract void calculateCost(NodeGrid.Location node);", "title": "" }, { "docid": "64f60ac11a288104d8e4b50929138d63", "score": "0.548492", "text": "private int calculateSum(Node currentNode) {\n\t\tint sum, sumLT, sumRT;\n\t\tif (null == currentNode) {\n\t\t\tsum = 0;\n\t\t\treturn sum;\n\t\t} else {\n\t\t\tsumLT = calculateSum(currentNode.getLeft());\n\t\t\tsumRT = calculateSum(currentNode.getRight());\n\t\t\treturn sumLT + currentNode.getNumber() + sumRT;\n\t\t}\n\t}", "title": "" }, { "docid": "a45f2567e951966126748902923cae85", "score": "0.5475969", "text": "private int pathSum(TreeNode root, int prefixSum, int target, Map<Integer, Integer> map){\n if(root==null) return 0;\n int res=0;\n prefixSum+=root.val;\n // if prefixSum-target exist in map, add the frequency into res\n if(map.containsKey(prefixSum-target)) res+=map.get(prefixSum-target);\n // add sum(root->cur) to map\n if(map.containsKey(prefixSum)) map.put(prefixSum, 1+map.get(prefixSum));\n else map.put(prefixSum, 1);\n res+=pathSum(root.left, prefixSum, target, map)+pathSum(root.right, prefixSum, target, map);\n // revert map to previous status to so that branch a won't influence branch b\n map.put(prefixSum, map.get(prefixSum)-1);\n return res;\n }", "title": "" }, { "docid": "e3bf7525632cb620cbfedd6697159b00", "score": "0.5465046", "text": "public void increase_weight(String source, String target) {\n\t\tfor (Edge edge : m_edges) {\n\t\t\tif (source.equals(edge.get_source()) && (target.equals(edge.get_target()))) {\n\t\t\t\tedge.set_weight(edge.get_weight() + 1);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "c158ad5e1166d496a17cfe1a089147fc", "score": "0.54430187", "text": "private int getResult() {\n int cost = 0;\n int[] d = new int[n + 1];\n int[] p = new int[n + 1];\n boolean[] viz = new boolean[n + 1];\n for(int u = 1; u <= n; u++) {\n d[u] = Integer.MAX_VALUE;\n p[u] = -1;\n viz[u] = false;\n }\n d[1] = 0;\n viz[1] = true;\n PriorityQueue<Edge> H = new PriorityQueue<>();\n for(Edge e : adj[1])\n H.add(e);\n while(!H.isEmpty()) {\n Edge edg = H.poll();\n int u = edg.node;\n for(Edge e : adj[u]) {\n if(e.cost < d[e.node]) {\n d[e.node] = e.cost;\n p[e.node] = u;\n H.add(e);\n }\n }\n }\n return cost;\n }", "title": "" }, { "docid": "b898684a694905d5c7737e02c52f0893", "score": "0.54373515", "text": "public static void main(String[] args) {\n Node root = new Node(5);\n root.left = new Node(4);\n root.right = new Node(8);\n root.left.left = new Node(11);\n root.left.left.left = new Node(7);\n root.left.left.right = new Node(2);\n root.right.left = new Node(13);\n root.right.right = new Node(4);\n root.right.right.right = new Node(1);\n root.right.right.left = new Node(5);\n\n System.out.println(pathSum(root, 22));\n }", "title": "" }, { "docid": "e27ab5cb940dcd79937493fd90e0ec6c", "score": "0.54227495", "text": "private int neededNodes() {\n\n int total = 1;\n\n for (int i = 0; i < nodesPerDimension.length; i++) {\n total *= nodesPerDimension[i];\n }\n\n return total;\n }", "title": "" }, { "docid": "7601ab93121348e8fe8488efccc84c51", "score": "0.54217434", "text": "private void processLinkWeightMessage(LinkWeights linkWeights) {\n List<Vertex> graph = new ArrayList<Vertex>();\n for (NodeLink nodeLink : linkWeights.getNodeLinks()) {\n Vertex vertex1 = getVertex(graph, nodeLink.getNode1().getIpAddress(), nodeLink.getNode1().getPort());\n Vertex vertex2 = getVertex(graph, nodeLink.getNode2().getIpAddress(), nodeLink.getNode2().getPort());\n VertexLink vertexLink1 = new VertexLink(nodeLink.getWeight(), vertex2);\n vertex1.addLink(vertexLink1);\n VertexLink vertexLink2 = new VertexLink(nodeLink.getWeight(), vertex1);\n vertex2.addLink(vertexLink2);\n }\n\n this.algorithum = new Algorithum(graph, getVertex(graph, this.nodeInfo.getIpAddress(), this.nodeInfo.getPortNumber()));\n this.algorithum.calculateDistace();\n this.algorithum.displayNodes();\n this.algorithum.displayShortestPaths();\n\n }", "title": "" }, { "docid": "117c0b82258ac4125069aa3c7b906ba3", "score": "0.541087", "text": "static public float getNodeDegreeWeight(CyNetwork network, Long node) {\n\t\tfloat sum = 0.0f;\r\n\t\tCyNode cynode = network.getNode(node);\r\n\t\tIterator edges = network.getAdjacentEdgeList(cynode, CyEdge.Type.ANY)\r\n\t\t\t\t.iterator();\r\n\t\twhile (edges.hasNext()) {\r\n\r\n\t\t\tCyEdge e = (CyEdge) edges.next();\r\n\t\t\tif (network.getRow(e).get(\"weight\", Double.class) != null) {\r\n\t\t\t\t// System.out.println(network.getRow(e).get(\"weight\",\r\n\t\t\t\t// Double.class));\r\n\t\t\t\tsum += network.getRow(e).get(\"weight\", Double.class);\r\n\t\t\t} else\r\n\t\t\t\tsum += 1.0f;\r\n\r\n\t\t}\r\n\t\treturn sum;\r\n\t}", "title": "" }, { "docid": "4c2739dd2387eca31a2707ef236d3c1a", "score": "0.5381413", "text": "int getNodeSend(int node) {\n int sum = 0;\n for (int i = 0; i < column; i++) {\n sum = sum + execution_matrix[node][i];\n }\n return sum;\n }", "title": "" }, { "docid": "967e527e51c32f6a7dea363b102bfec3", "score": "0.5378945", "text": "public void calculateTrasbordosCost() {\n costTrasbordos = 0;\n if (path.size() != 0) {\n String currentLine = getFirstEdge().obtenerLinea();\n for (int i = 0; i < path.size(); i++) {\n // Si hay cambio de linea, aumenta en transbordo\n if (!path.get(i).obtenerLinea().equals(currentLine)) {\n currentLine = path.get(i).obtenerLinea();\n costTrasbordos += pathV.get(i).obtenerPeso();\n }\n }\n }\n }", "title": "" }, { "docid": "9ce96988255ae0dc9c0f5cf9d49f99a3", "score": "0.5377677", "text": "public double totalCost()\n\t{\n\t\tdouble cost = 0;\n\t\t// Go through each route\n\t\tfor (int i=0; i<arrayOfRoutes.size(); i++)\n\t\t{\n\t\t\t// Leaving depot\n\t\t\tcost += CVRPData.getDistance(-1, arrayOfRoutes.get(i).get(0));\n\t\t\t\n\t\t\t// Cost of intermediate steps\n\t\t\tint j;\n\t\t\tfor(j=0; j<arrayOfRoutes.get(i).size()-1; j++)\n\t\t\t{\n\t\t\t\tcost += CVRPData.getDistance(arrayOfRoutes.get(i).get(j), arrayOfRoutes.get(i).get(j+1));\n\t\t\t}\n\t\t\t\n\t\t\t// Cost to return to depot\n\t\t\tcost += CVRPData.getDistance(-1, arrayOfRoutes.get(i).get(j));\n\t\t}\n\t\treturn cost;\n\t}", "title": "" }, { "docid": "1a9ca186f4b7ab99aabd09a8c38267e3", "score": "0.5368415", "text": "public Map<String, List<PlannerDelivery>> totalCostSearch(){\n while(!goalReached()){\n //get the first node\n DeliveryNode firstNode = this.removeFirstNode();\n //expand the first node\n List<DeliveryNode> children = expandNode(firstNode);\n //addNodesHillClimb(children);\n addNodesTotalCost(children);\n }\n //the goal is reached, report the first node\n DeliveryNode goalNode = this.getFirstNode();\n //print the total time needed:\n System.out.println(\"\\nDeliveryTime: \"+ goalNode.getCostValue()+\"\\n\");\n //return a map with as key the drone id and an ordered list for the deliveries that it has to make\n return convertNodeToDeliveryScheme(goalNode);\n }", "title": "" }, { "docid": "9f136af0c339e10327f2d549c15eebc1", "score": "0.5346764", "text": "private WeightedGraph<GraphClass,Inclusion> keeperWeightedGraph() {\n Map<Inclusion,Double> map = new HashMap<Inclusion,Double>();\n for (Inclusion e : graph.edgeSet())\n map.put(e, new Double(keeperWeight(e)));\n return new AsWeightedDirectedGraph<>(graph, map);\n }", "title": "" }, { "docid": "d6cc13384f41495830d081bb77c54bf9", "score": "0.5344613", "text": "public void addEdge(Node from, Node to, int cost) {\n\t\t\n\t}", "title": "" }, { "docid": "e68eabcf0d107d76cd98899abce1ba5a", "score": "0.5331914", "text": "public double calculateTrustScoreInternal(Agent src, Agent sink, ArrayList nodesVisited, FHG fhg) throws Exception\n\t{\n\t\tif(!this.nodeAlreadyVisited(nodesVisited, sink)) nodesVisited.add(sink); \n\t\t\n\t\t//get all incoming edges of the given sink node\n\t\tSet<FeedbackHistoryGraphEdge> incomingEdges = fhg.incomingEdgesOf(sink);\n\t\t\n\t\t//nobody has had transactions with this sink, return a default trust score\n\t\tint numberOfAgentsInSystem = fhg.vertexSet().size();\n\t\tif(incomingEdges.isEmpty()) return (double)1/(double)numberOfAgentsInSystem; \n\t\t\n\t\t\n\t\t//calculate the total trust score of all the recommenders\n\t\t//this is the denominator part to calculate the cr(p(u,i)\n\t\tdouble totalTrustScore = 0;\n\t\tArrayList<Feedback> allFeedbacks = new ArrayList<Feedback>();\n\t\tfor(FeedbackHistoryGraphEdge e : incomingEdges)\n\t\t{\n\t\t\tfor(Feedback f : e.feedbacks)\n\t\t\t{\n\t\t\t\tallFeedbacks.add(f);\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t\tfor(Feedback f : allFeedbacks)\n\t\t{\n\t\t\tdouble temp = 0;\n\t\t\t\n\t\t\t/*\n\t\t\t * loop poses a problem with peerTrust and the authors don't explain on how to solve them, so using heuristics here...\n\t\t\t * bootstrapping: all peers have initial trust score of 0.5.\n\t\t\t * Consider a loop looks like this A<->B. You want to calculate the A's trust score. Getting the incoming edges of A contains B.\n\t\t\t * Calculating B's trust score, you need to get the incoming edges of B which contains A. There is a loop here. As a heuristic, if\n\t\t\t * we are in B and we have already visited the edge.source (i.e A) and we haven't calculated A's trust score, then set A's trust score = 0.5.\n\t\t\t * Note that agent's trust score (once calculated) is stored in this.trustscores hashtable.\n\t\t\t */\n\t\t\t\n\t\t\tif(nodeAlreadyVisited(nodesVisited, (Agent)f.getAssesor())) //note edge.src == feedback.src\n\t\t\t{\t\t\n\t\t\t\tlogger.debug(\"Already visited agent\" + (Agent)f.getAssesor());\n\t\t\t\tif(this.trustScores.get(((Agent)f.getAssesor()).id)==null) \n\t\t\t\t\ttemp = (double)1/(double)numberOfAgentsInSystem;\n\t\t\t\telse\n\t\t\t\t\ttemp = (Double)this.trustScores.get(((Agent)f.getAssesor()).id);\n\t\t\t}else\n\t\t\t{\n\t\t\t\tlogger.debug(\"Never visited agent\" + (Agent)f.getAssesor());\n\t\t\t\t//breadth-first\n\t\t\t\ttemp = (Double)this.calculateTrustScoreInternal(null, (Agent)f.getAssesor(), nodesVisited, fhg); //recursive\n\t\t\t}\n\t\t\t\n\t\t\ttotalTrustScore = totalTrustScore + temp;\n\t\t}\n\t\t//just a check\n\t\tif(totalTrustScore==0) throw new Exception(\"total trust score is 0. It should never be zero.\");\n\t\t\t\n\t\t//now caclulate the trust score of the sink (passed in as a parameter)\n\t\tdouble trustScoreToBeCalculated = 0;\n\t\n\t\tIterator it1 = incomingEdges.iterator();\n\t\twhile(it1.hasNext())\n\t\t{\n\t\t\tFeedbackHistoryGraphEdge e = (FeedbackHistoryGraphEdge)it1.next();\n\t\t\tArrayList experiences = e.feedbacks;\n\t\t\t//breadth-first\n\t\t\tdouble trustScore = 0;\n\t\t\t\n\t\t\tif(this.trustScores.get(((Agent)e.src).id)==null) \n\t\t\t{\n\t\t\t\t//trustScore = (Double) this.calculateTrustScore(null, (Agent)e.src, nodesVisited); //recursive\n\t\t\t\ttrustScore = (double)1/(double)numberOfAgentsInSystem; \n\t\t\t\n\t\t\t}else\n\t\t\t{\n\t\t\t\ttrustScore = (Double)this.trustScores.get(((Agent)e.src).id);\n\t\t\t}\n\t\t\t\n\t\t\tIterator it2 = experiences.iterator();\n\t\t\twhile(it2.hasNext())\n\t\t\t{\n\t\t\t\t/*\n\t\t\t\t * t(u) = sum( s(u,i) * cr(p(u,i)) )\n\t\t\t\t * cr(p(u,i)) = t(p(u,i)) / sum(p(u,i))\n\t\t\t\t */\n\t\t\t\tFeedback exp = (Feedback)it2.next();\n\t\t\t\ttrustScoreToBeCalculated = trustScoreToBeCalculated + exp.value * (trustScore/totalTrustScore);\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t\tthis.trustScores.put(sink.id, trustScoreToBeCalculated);\n\t\treturn trustScoreToBeCalculated;\n\t}", "title": "" }, { "docid": "e8fa265d44b8e67d796ae15cd22e25e1", "score": "0.5324353", "text": "private double calculateTotal()\n {\n //Setting added cost and base cost to default\n //in case new watcher\n mAddedCost = 0.0;\n mBaseCost = BASE;\n\n //calculating overage of ounces\n int diff = mWeight - BASE_OZ;\n\n //if ounce is zero, technically a reset\n if (mWeight <= 0) { mBaseCost = 0.0; }\n //else calculate if additional ounces detected\n else if (diff > 0)\n {\n //calculate increment to multiply\n double incr = (double) diff / PER_COST;\n mAddedCost = Math.ceil(incr) * ADDED;\n }\n //calculate total\n mTotal = mAddedCost + mBaseCost;\n return mTotal;\n }", "title": "" }, { "docid": "e3509368157fad99ebf02a3348fa8e8f", "score": "0.53112227", "text": "@Override\r\n public int getEdgeWeight(final int a, final int b) {\n return 0;\r\n }", "title": "" }, { "docid": "2dc12f8b7687c19c9a84291b3279d51a", "score": "0.5310685", "text": "private void computeFatTreeCosts() {\n\t\tfor(int i=0; i<(int)(Math.pow(dim,3))/4; i++) {\n\t\t\tfor(int j=0; j<(int)(Math.pow(dim,3))/4; j++) {\n\t\t\t\tcosts[i][j] = 5;\n\t\t\t}\n\t\t}\n\t\t\n\t\tArrayList<Server> servers = new ArrayList<Server>();\n\t\tfor (Pod p : pods) {\n\t\t for(Rack r: p.getRacks()) {\n\t\t \tservers.addAll(r.getHosts());\n\t\t }\n\t\t for(Server s: servers) {\n\t\t \tfor(Server s2: servers) {\n\t\t \t\tcosts[s.getId()][s2.getId()] = 3;\n\t\t \t}\n\t\t }\n\t\t \n\t\t for(Rack r: p.getRacks()) {\n\t\t \tfor(Server s: r.getHosts()) {\n\t\t \t\tfor(Server s2: r.getHosts()) {\n\t\t \t\t\tcosts[s.getId()][s2.getId()] = 1;\n\t\t \t\t}\n\t\t \t}\n\t\t }\n\t\t servers.clear(); \n\t\t}\n\t\t\n\t\tfor(int i=0; i<(int)(Math.pow(dim,3))/4; i++) {\n\t\t\tcosts[i][i] = 0;\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "411b5939b37a66f92d097dd02e11b356", "score": "0.52991664", "text": "private void e_Neighbours(int u, Graph graph) {\r\n int edgeDistance = -1;\r\n int newDistance = -1;\r\n\r\n adj = graph.adj_list.get(u).getList();\r\n // All the neighbors of v\r\n for (int i = 0; i < adj.size(); i++) {\r\n Graph.Node v = (Graph.Node) adj.get(i);\r\n int c = 0;\r\n int index = 0;\r\n for (Graph.VertexNode vn : graph.adj_list) {\r\n if (vn.getName().equals(v.getValue())) {\r\n index = c;\r\n }\r\n c++;\r\n }\r\n\r\n // If current node hasn't already been processed\r\n if (!settled.contains(index)) {\r\n edgeDistance = v.getWeight();\r\n newDistance = dist[u] + edgeDistance;\r\n\r\n // If new distance is cheaper in cost\r\n if (newDistance < dist[index])\r\n dist[index] = newDistance;\r\n\r\n // Add the current node to the queue\r\n pq.add(new Graph.Node(v.getValue(), dist[index]));\r\n }\r\n }\r\n }", "title": "" }, { "docid": "9a976b69ac58ba3a86e02ee274f21b57", "score": "0.52897286", "text": "protected int getNodeCount() {\n final Iterator<AbstractMapNode> it = nodeIterator();\n int sumNodes = 0;\n\n for (; it.hasNext(); it.next()) {\n sumNodes += 1;\n }\n\n return sumNodes;\n }", "title": "" }, { "docid": "4173d6b375aa4a3c8c7fc7fd51f10a24", "score": "0.52737826", "text": "public Double getWeight(Node<T> bNode){\n\t\treturn weights.get(bNode);\n\t}", "title": "" }, { "docid": "84c277376fffa52fcc61d6912765bad1", "score": "0.5257903", "text": "public double sum() {\n\t\tdouble sum = 0;\n\t\tfor (int i = 0; i < firstConnectionLayer.length; i++) {\n\t\t\tfor (int j = 0; j < firstConnectionLayer[i].length; j++) {\n\t\t\t\tsum += firstConnectionLayer[i][j];\n\t\t\t}\n\t\t}\n\t\tfor (int i = 0; i < secondConnectionLayer.length; i++) {\n\t\t\tfor (int j = 0; j < secondConnectionLayer[i].length; j++) {\n\t\t\t\tsum += secondConnectionLayer[i][j];\n\t\t\t}\n\t\t}\n\t\treturn sum;\n\t}", "title": "" }, { "docid": "aa79d6672a6b8e87ecbd645bb6ada640", "score": "0.52575266", "text": "public void Neighbour_Cost(int processing_node)\n {\n\t\t\n int edgeDistance = 0;\n int newDistance = 0;\n \n for (int dest_node = 1; dest_node <= number_of_routers; dest_node++) \n {\n if (!set2.contains(dest_node))\n {\n if (topology_matrix[processing_node][dest_node] != Integer.MAX_VALUE)\n { \n \tedgeDistance = topology_matrix[processing_node][dest_node]; //cost between the processing node and its neighbor is evaluated.\n \n newDistance = distance[processing_node] + edgeDistance;\n if (newDistance < distance[dest_node]) \t\t\t\t\t\t //if newDistance less than the current distance is checked.\n {\n distance[dest_node] = newDistance; \t\t\t\t\t //Updating distance array with the minimum distance.\n path1[dest_node]=processing_node;\t\t\t\t\t\t // path1 is updated for calculating shortest path. \n \n int i=processing_node;\t\t\t\t\t\t\t\t\t\n \n //path is updated for displaying connection table. \n if(i==source)\n path[dest_node] = processing_node;\t\t\t\t\t\t\t\n \n else if(path[i]==source && path[dest_node]!=source)\n path[dest_node] = processing_node;\n \n else\n {\t\n \twhile(path[i]!=source)\n \t{\t\n \tpath[dest_node]=path[i];\n \ti=path[i];\n \t}\n }\n \n }\n // After evaluating the path and distance between processing node and its neighbor, the neighboring router is added to set1.\n set1.add(dest_node); \n }\n }\n }\n }", "title": "" }, { "docid": "1ace855b61bafde74a0786f54354160f", "score": "0.52528316", "text": "public int getEdgeSize() {\n int EdgeSize = 0;\n for (Map.Entry<Node<T>, Map<Node<T>, Double>> node : nodes.entrySet()) {\n EdgeSize += node.getValue().size();\n }\n return EdgeSize;\n }", "title": "" }, { "docid": "5b8a29f4e1349a0b3a54569592122594", "score": "0.5247135", "text": "public static <S,T extends Number> HashMap<Graph<S,T>.Node,Double> distances(Graph<S,T> graph, Graph<S,T>.Node start){\n\t/**Hashset for the best cost to node so far*/\n\tHashMap<Graph<S,T>.Node,Double> costs = new HashMap<Graph<S,T>.Node,Double>();\n\t/**Hashset for the homeward sign post*/\n\tHashMap<Graph<S,T>.Node, Graph<S,T>.Node> homeDirection = new HashMap<Graph<S,T>.Node,Graph<S,T>.Node>();\n\t/**Hashset for visited nodes*/\n\tHashSet<Graph<S,T>.Node> visited1 = new HashSet<Graph<S,T>.Node>();\n\t\n\t//INITIALIZE COSTS\n\tcosts.put(start, 0.0);\n\tfor(Graph<S,T>.Node node: graph.nodeList){\n\t if(!(costs.containsKey(node))){\n\t\tcosts.put(node,Double.POSITIVE_INFINITY);\n\t }\n\t}\n\t//INITIALIZE HOMEWARD NODES\n\tGraph<S,T>.Node nullHome = null;\n\tfor(Graph<S,T>.Node node: graph.nodeList){\n\t if(!(homeDirection.containsKey(node))){\n\t\thomeDirection.put(node,nullHome);\n\t }\n\t}\n\twhile(visited1.size() < graph.nodeList.size()){\n\t /**the minimum value*/\n\t Double minValue= Double.MAX_VALUE;\n\t /**key with minumum value*/\n\t Graph<S,T>.Node minKey = null;\n\t //LOOP THROUGH TO FIND MINKEY \n\t if(minKey == null){ \n\t\tminKey = graph.nodeList.get(0); //minkey as first in the node \n\t\t//iterate through for the minkey\n\t\tfor(Graph<S,T>.Node node: graph.nodeList){\n\t\t if((!visited1.contains(node)) && costs.get(node) < minValue){\n\t\t\tminKey = node;\n\t\t\tminValue = costs.get(node);\n\t\t }\n\t\t}\n\t }\n\t \n\t visited1.add(minKey); //add key to visited\n\t \n\t if(minKey != null){\n\t\t/**Get the neighbors of minKey*/\n\t\tLinkedList<Graph<S,T>.Node> neighbors = minKey.getNeighbors();\n\t\tfor(Graph<S,T>.Node node: neighbors){ \n\t\t\tif(graph.getEdgeRef(minKey, node).getTail() == node){ //if the neighbor is a tail \n\t\t\t Double initialCost = graph.getEdgeRef(minKey,node).getData().getCost() + costs.get(minKey); \n\t\t\t if(initialCost < costs.get(node)){\n\t\t\t\tcosts.put(node,initialCost);\n\t\t\t\thomeDirection.put(node,minKey);\n\t\t\t }\n\t\t\t}\n\t\t}\n\t }\n\t \n\t}\n\treturn costs; \n }", "title": "" }, { "docid": "cbc5d654138fa5914b654dff8bb53ea5", "score": "0.5237817", "text": "public int pathSum(TreeNode root, int targetSum) {\n List<TreeNode> pathNode = new ArrayList<>();\n dfs(root, targetSum, pathNode);\n return ret;\n }", "title": "" }, { "docid": "22e13fe54a61e62c557cedcb2e2fc20c", "score": "0.52367014", "text": "private void updateGraph(IDirectedGraphExt graph, List<INodeExt> coveredNodes){\n\t\t\n\t\t/*\tfind the minimum weight value of the uncovered edges. */\n\t\tint minUncovered = Integer.MAX_VALUE;\n\t\tList<IEdgeExt> uncoveredEdges = new ArrayList<IEdgeExt>();\n\t\tList<IEdgeExt> coveredEdges = new ArrayList<IEdgeExt>();\n\t\tIEdgeListExt edges = graph.getEdgeList();\n\t\tfor(int j = 0; j < edges.size(); j++){\n\t\t\tIEdgeExt e = edges.getEdgeExt(j);\n\t\t\tif(e.isVisited()){\n\t\t\t\tcoveredEdges.add(e);\n\t\t\t}\n\t\t\telse{\n\t\t\t\tuncoveredEdges.add(e);\n\t\t\t\tif(minUncovered > e.getCounter()){\n\t\t\t\t\tminUncovered = e.getCounter();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tdebug(\"MinUncovered=\" + minUncovered);\n\n\t\t/*\t\n\t\t * add the minimum value to every covered edge. If an element is \n\t\t * covered twice, add the minimum element to it twice.\n\t\t */\n\t\tfor(INodeExt n: coveredNodes){\n\t\t\tIEdgeListExt inList = n.getIncomingEdgeList();\n\t\t\tIEdgeListExt outList = n.getOutgoingEdgeList();\n\t\t\tfor(int i = 0; i < inList.size(); i++){\n\t\t\t\tIEdgeExt e = inList.getEdgeExt(i);\n\t\t\t\te.setCounter(e.getCounter() + minUncovered);\n\t\t\t}\n\n\t\t\tfor(int i = 0; i < outList.size(); i++){\n\t\t\t\tIEdgeExt e = outList.getEdgeExt(i);\n\t\t\t\te.setCounter(e.getCounter() + minUncovered);\n\t\t\t}\n\t\t}\n\n\t\t/* find the minimum weight value of all edges in the graph */\n\t\tint min = Integer.MAX_VALUE;\n\t\tedges = graph.getEdgeList();\n\t\tfor(int j = 0; j < edges.size(); j++){\n\t\t\tIEdgeExt e = edges.getEdgeExt(j);\n\t\t\tif(min > e.getCounter()){\n\t\t\t\tmin = e.getCounter();\n\t\t\t}\n\t\t}\n\n\t\tdebug(\"MinElement=\" + min);\n\n\t\t/* subtract the minimum element from every element in the graph. */\n\t\tfor(int j = 0; j < edges.size(); j++){\n\t\t\tIEdgeExt e = edges.getEdgeExt(j);\n\t\t\te.setCounter(e.getCounter() - min);\n\t\t}\n\t}", "title": "" }, { "docid": "fe3035256306af4e08cc720898393dcd", "score": "0.523293", "text": "public static double takeAction(double[] weights, double[] inputs) {\n\t\tint count = 0;\n\n\t\tdouble[][] nodes = new double[Constants.HIDDEN_LAYERS][Constants.NODES_PER_LAYER];\n\t\tfor (int i = 0; i < nodes.length; i++) {\n\t\t\tfor (int j = 0; j < nodes[i].length; j++) {\n\n\t\t\t\tint inputsPerNode = Constants.NODES_PER_LAYER;\n\n\t\t\t\tif (i == 0)\n\t\t\t\t\tinputsPerNode = Constants.INPUTS;\n\n\t\t\t\tfor (int k = 0; k < inputsPerNode; k++) {\n\t\t\t\t\tif (i == 0) {\n\t\t\t\t\t\tnodes[i][j] += weights[count] * inputs[k];\n\t\t\t\t\t} else {\n\t\t\t\t\t\tnodes[i][j] += weights[count] * nodes[i - 1][k];\n\t\t\t\t\t}\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t\t// Sigmoid.\n\t\t\t\tnodes[i][j] = 2 / (1 + Math.pow(Math.E, -nodes[i][j])) - 1;\n\t\t\t}\n\t\t}\n\n\t\tdouble end = 0;\n\n\t\tfor (int i = 0; i < Constants.NODES_PER_LAYER; i++) {\n\t\t\tend += nodes[nodes.length - 1][i] * weights[count];\n\t\t\tcount++;\n\t\t}\n\n\t\t// Not sigmoid in order to cap probabilities.\n\t\tend = Math.min(1, Math.max(-1, 0.5 * end + 0.5));\n\t\treturn end;\n\t}", "title": "" }, { "docid": "0838d3109d7b3ae2087f99786cf8da04", "score": "0.523194", "text": "@Override\n public double getTotalCost() {\n double total = 0;\n //For every Item in items multiply the price by the quantity and add it to total\n for(Item item : items) {\n total += item.getPrice() * item.getQuantity();\n }\n return total;\n }", "title": "" }, { "docid": "ede3208850d36bd6b6e26f59f17f491a", "score": "0.52250844", "text": "public double getTotalWeight() {\n\t\tdouble result = 0;\n\t\t// loop over all items and sum the weight fields\n\t\tfor (int i = 0; i < currentIndex; ++i) {\n\t\t\tItem temp = this.items[i];\n\t\t\tresult += temp.getWeight();\n\t\t}\n\t\t// return the summed result;\n\t\treturn result;\n\t}", "title": "" }, { "docid": "e3913828d7355319b77536d3f439938c", "score": "0.5202757", "text": "public static float computePlatformCost(Vector<Node> nodes) {\n\t\tif (nodes == null) {\n\t\t\tAlgorithmUtil.logger.debug(\"nodes null\");\n\t\t\treturn Float.NEGATIVE_INFINITY;\n\t\t}\n\t\tVector<Component> components = gatherComponents(nodes);\n\t\t//TODO: when computing costs ignore already considered nodes. Eg. if A linked to B and A has been considered, ignore it when processing B's cost \n\t\t//\tHashtable<String, Integer> alreadySeen = new Hashtable<String, Integer>();\t \n\t\tfloat cost = 0;\n\t\t\n\t\tfor (Component component : components) {\n\t\t\tcost += AlgorithmUtil.computeCostForComponent(nodes, component, null);\n\t\t}\n\t\treturn cost;\n\t}", "title": "" }, { "docid": "72c6919506e739f650025c9d695de3e5", "score": "0.51918715", "text": "public abstract void computeTotalCost();", "title": "" }, { "docid": "bb2226742ac58ccdd14f68774dcfb27b", "score": "0.5187793", "text": "public double calculate_relation_strength_of_node_set(\n\t\t\tArrayList<Integer> node_set, int community_neighbor,\n\t\t\tint community_neighbor_importance) {\n\t\tnode_set.add(community_neighbor);\n\t\tint number_of_links = 0;\n\t\tint number_of_nodes = node_set.size();\n\t\tdouble density = 0;\n\t\tfor (int i = 0; i < number_of_nodes; i++) {\n\t\t\tInteger member_1 = node_set.get(i);\n\t\t\tfor (int j = i + 1; j < number_of_nodes; j++) {\n\t\t\t\tInteger member_2 = node_set.get(j);\n\t\t\t\tif (adjacencyTable.get(member_1).contains(member_2)) {\n\t\t\t\t\tnumber_of_links++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tdensity = (double) 2 * number_of_links / (double) number_of_nodes\n\t\t\t\t* (number_of_nodes - 1);\n\t\tdouble weight = 0;\n\t\tfor (Iterator<Integer> iter = node_set.iterator(); iter.hasNext();) {\n\t\t\tInteger neighbor = iter.next();\n\t\t\tint importance_of_neighbor = nodes_importance.get(neighbor).importance; // calculate_node_importance(neighbor);\n\t\t\tweight += importance_of_neighbor;\n\t\t}\n\t\tdouble node_set_relation_strength = weight * density;\n\t\treturn node_set_relation_strength;\n\t}", "title": "" }, { "docid": "64aa67a9f3df7fd52eb6bc07ac0fbec7", "score": "0.51584065", "text": "private int totalWeight(ArrayList L) {\n int n=0;\n int sum = 0;\n while (n < L.size()) {\n Item i = (Item) L.get(n);\n sum += i.getWeight();\n n++;\n }\n return sum; // not found above\n }", "title": "" }, { "docid": "d2bd1672bbf7f5d4467ce30a93763a2e", "score": "0.5136863", "text": "private static List<List<Integer>> pathSum(Node root, int pathSum) {\n List<List<Integer>> res = new ArrayList<>();\n if (root == null) { return res; }\n dfs(res, new ArrayList<>(), root, pathSum);\n return res;\n }", "title": "" }, { "docid": "9e4ca924969ea382f8ddc92db91caefb", "score": "0.5136706", "text": "public int getScheduleScoreRemaining(searchNode s) {\r\n //initalise sum as 0, if all the shipments are completed, this will return 0\r\n int sum = 0;\r\n //initalise a list that will contain the connected path\r\n ArrayList<DirectedEdge> d = new ArrayList<DirectedEdge>();\r\n //if there are more than 1 shipments in the path\r\n if (s.getChildren().size() > 0) {\r\n //scan through the entire searchnode's path\r\n for (int i = 0; i < s.getChildren().size() - 1; i++) {\r\n //add the current shipment to the list, first part\r\n d.add(new DirectedEdge(s.getChildren().get(i).getFrom(), s.getChildren().get(i).getTo()));\r\n //second part connection to next shipment, add the last node from the current shipment\r\n //to the first ndoe in the next shipment, to connect the path\r\n d.add(new DirectedEdge(s.getChildren().get(i).getTo(), s.getChildren().get(i + 1).getFrom()));\r\n }\r\n //since the loop above scans to the second last shipment only to avoid null errors\r\n //add the last shipment in as normal\r\n d.add(new DirectedEdge((s.getChildren().get(s.getChildren().size()-1).getFrom()), s.getChildren().get(s.getChildren().size()-1).getTo()));\r\n }\r\n //if there is only 1 shipment in the path\r\n if (s.getChildren().size() == 1) {\r\n //add that shipment in to the list only\r\n d.add(new DirectedEdge(s.getChildren().get(0).getFrom(), s.getChildren().get(0).getTo()));\r\n }\r\n //now we want to scan through the schedule\r\n for (int i = 0; i < schedule.size(); i++) {\r\n //if the path contains the current shipment in the schedule, we want to skip over it\r\n if (d.contains(schedule.get(i)))\r\n continue;\r\n //otherwise we want to sum the absolute weight of the shipment by\r\n //adding the refuelling time of the FROM port\r\n sum += schedule.get(i).getFrom().getRefuellingTime();\r\n //then add the edge weight of the shipment FRom node TO node\r\n sum += g.getEdges()[schedule.get(i).getFrom().getIndexOnGraph()][schedule.get(i).getTo().getIndexOnGraph()];\r\n }\r\n //return the remaining schedule sum\r\n return sum;\r\n }", "title": "" }, { "docid": "65502fe780b3dc389a72e1609cd66785", "score": "0.513331", "text": "public static double TotalDistance(Vector<Node> Path){\n\n double totalDist =0.0;\n\n for(int i =0; i<Path.size()-1; i++) {\n\n totalDist += HeuristicCost(Path.get(i), Path.get(i+1));\n }\n\n return totalDist;\n\n }", "title": "" }, { "docid": "d958274954a06c994acdddaa531e38a7", "score": "0.5130958", "text": "private float adjacentNodeOrder(int node)\n\t{\n\t\tint total = 0;\n\t\tSet<Edge<Integer, Route>> edges = graph.getEdgesFrom(node);\n\t\tfor (Edge<Integer, Route> edge : edges)\n\t\t{\n\t\t\ttotal += orderOfNode(edge.target());\n\t\t}\n\t\treturn (float) total / orderOfNode(node);\n\t}", "title": "" }, { "docid": "2fa8565767f80a66240ca2b290e2d43b", "score": "0.5123664", "text": "public double genWeightFromDistance() {\n int ax = nodeA.node.getxLoc();\n int ay = nodeA.node.getyLoc();\n int bx = nodeB.node.getxLoc();\n int by = nodeB.node.getyLoc();\n\n return Math.abs(Math.sqrt(((ax - bx) * (ax - bx)) + ((ay - by) * (ay - by))));\n }", "title": "" }, { "docid": "e961ada1ae65ce28bde110d67b9973da", "score": "0.5122894", "text": "public static void main(String[] args) {\n TreeNode node = new TreeNode(1);\n node.left = new TreeNode(2);\n pathSum(node,1);\n }", "title": "" }, { "docid": "504f3ec0b6b2370b17697483ea79dd89", "score": "0.5122643", "text": "public double getWeight(int s, int t) { //METODO DI RESTITUZIONE DEL PESO DI UN ARCO (s,t) \n \t\tNode n = edges[s];//si crea un nodo che salva il nodo sorgente\n \t\t//si deve scandire lista di adiacenza del nodo sorgente s\n \t\twhile (n != null & n.getNode() != t)// fino a quando nodo puntato è non null e il suo adiacente è diverso da t\n \t\t\tn = n.getNext();// si scorre in avanti la lista verso destra aggiornando puntatore al successivo\n \t\tif (n != null && n.getNode() == t)//se il nodo n puntato è non null ed nodo puntato è proprio quello dell'arco da esaminare\n \t\t\treturn n.getWeight(); // si restituisce il peso\n \telse {\n \t\tSystem.out.println(\"Arco non esistente - Operazione getWeight(\" + s + \",\" + t + \") non eseguita\");\n \t\treturn 0;//peso di un arco non esistente\n \t\t}\n \t}", "title": "" }, { "docid": "4f8db2ebe75c1602c08b2d0a902374f2", "score": "0.51205015", "text": "private void adjustWeightsOfSynapsesCommingFromNeuroidSetWhichFiresForNeuroid(Set<NeuronAdress> sourceNeuroidsWhichAreCheckedForFiring, NeuronAdress destinationNeuroid, float targetWeight) {\n final List<Query.QueryCommand<Float, MetaType>> queryCommands = Arrays.asList(\n new Query.GetInEdgesByNeuroidIndexQueryCommand(destinationNeuroid.index),\n new Query.FilterEdgeSourceQueryCommand(sourceNeuroidsWhichAreCheckedForFiring)\n );\n\n final Query.QueryResult<Float, MetaType> queryResult = Query.query(queryCommands, network);\n for( IEdge iterationEdge : queryResult.edgesSet ) {\n iterationEdge.setWeight(targetWeight);\n network.getNetworkAccessor().updateEdge(iterationEdge);\n }\n }", "title": "" }, { "docid": "e49c3fa7e8cc3b60ba5e36bff55e7287", "score": "0.51173097", "text": "private int getResult() {\n int costMinim = 0;\n ArrayList<Integer> d = new ArrayList<>();\n PriorityQueue<Edge> queue = new PriorityQueue<>(n, new MyComparator());\n ArrayList<Boolean> selected = new ArrayList<>();\n\n for (int i = 0; i <= n; i++) {\n d.add(Integer.MAX_VALUE);\n selected.add(false);\n }\n d.set(1, 0);\n queue.add(new Edge(1, 0));\n while (!queue.isEmpty()) {\n Edge u = queue.poll();\n selected.set(u.node, true);\n for (int i = 0; i < adj[u.node].size(); i++) {\n Edge v = adj[u.node].get(i);\n if (d.get(v.node) > v.cost && !selected.get(v.node)) {\n d.set(v.node, v.cost);\n queue.add(v);\n\n }\n }\n }\n for (int i = 0; i < d.size(); i++) {\n if (d.get(i) != Integer.MAX_VALUE)\n costMinim += d.get(i);\n }\n return costMinim;\n }", "title": "" }, { "docid": "6e4bdc6401f80044cd89a3d073e9a20e", "score": "0.51143885", "text": "public static void graphCalculation() {}", "title": "" }, { "docid": "d1f04aa70c6efcb1e4fa58d02cf5f8d0", "score": "0.51138276", "text": "public void calculatePath(NodeConnections[] connections, int source, int destination, String fileName, boolean write) throws IOException{\n\t\tVector<Integer> resultingPath = new Vector<Integer>();\r\n\t\t\r\n\t\t//visited nodes\r\n\t\tVector<Integer> visited = new Vector<Integer>(1,1);\r\n\t\t\r\n\t\t//the queue with the nodes to visit, sorted by distances from the actual node\r\n\t\tPriorityQueue<Node> q = new PriorityQueue<Node>(1, new Comparator<Node>() {\r\n\t\t\t\r\n\t\t\t@Override\r\n\t\t\tpublic int compare(Node n1, Node n2){\r\n\t\t\t\tif(n1.getTotalCost() < n2.getTotalCost())\r\n\t\t\t\t\treturn -1;\r\n\t\t\t\telse if(n1.getTotalCost() > n2.getTotalCost())\r\n\t\t\t\t\treturn 1;\r\n\t\t\t\treturn 0;\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\t//the instance containing the info of the current selected node\r\n\t\tNode n = null;\r\n\t\tdouble totalCost = INFINITY;\r\n\t\tint prev = source;\r\n\t\tint current = source;\r\n\t\t\r\n\t\t//adding source to the queue\r\n\t\tn = new Node(0, prev, source);\r\n\t\tq.add(n);\r\n\t\t\r\n\t\tfor(int i = 0; i < ARRAY_LENGTH; i++){\r\n\t\t\tif(i != source){\r\n\t\t\t\tn = new Node(totalCost, -1, i);\r\n\t\t\t\tq.add(n);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n//\t\tSystem.out.println(\"Source: \" + source);\r\n//\t\tSystem.out.println(\"Destination: \" + destination);\r\n\t\t\r\n\t\t//all distances from the current source\r\n\t\tdouble[] distances = new double[ARRAY_LENGTH];\r\n\t\tint[] previous = new int[ARRAY_LENGTH];\r\n\t\t\r\n\t\t//set all the distances to infinity\r\n\t\tfor(int i = 0; i < ARRAY_LENGTH; i++){\r\n\t\t\tdistances[i] = INFINITY;\r\n\t\t\tprevious[i] = -1;\r\n\t\t}\r\n//\t\tSystem.out.println(\"All distances to infinity.\");\r\n//\t\tSystem.out.println(\"All previous to -1.\");\r\n\t\t\r\n\t\t//distance of the source set to 0\r\n\t\tdistances[source] = 0;\r\n//\t\tSystem.out.println(\"Source distance set to 0.\");\r\n\t\t\r\n\t\ttotalCost = 0;\r\n\t\tint count = 0;\r\n\t\t\r\n\t\twhile(!q.isEmpty() && count < ARRAY_LENGTH){\r\n\t\t\t\r\n\t\t\t//extracting the next current node\r\n\t\t\tn = q.poll();\r\n\t\t\tvisited.add(n.getID());\r\n\t\t\tcurrent = n.getID();\r\n\t\t\tif(current == destination){\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\t\r\n//\t\t\tSystem.out.println(\"Current node (removed): \" + current);\t\r\n\t\t\t\t\t\t\r\n\t\t\t//source and destination (to remember)\r\n//\t\t\tSystem.out.println(\"Source: \" + source);\r\n//\t\t\tSystem.out.println(\"Destination: \" + destination);\r\n\t\t\t\r\n\t\t\t//the connections for the current node\r\n\t\t\tNodeConnections conn = connections[current];\r\n\t\t\tif(conn == null)\r\n\t\t\t\tbreak;\r\n\r\n\t\t\t//set the distance of the current node's siblings\r\n\t\t\tfor(int i = 0; i < conn.getConnections().size(); i++){\r\n\t\t\t\tif(!visited.contains(conn.getConnectionAt(i).getEnd())){\r\n//\t\t\t\t\tSystem.out.println(\"Number of siblings: \" + conn.getConnections().size());\r\n//\t\t\t\t\tSystem.out.println(\"Sibling nr. \" + i);\r\n\t\t\t\t\tdouble dist = n.getTotalCost() + conn.getConnectionAt(i).getDistance();\r\n//\t\t\t\t\tSystem.out.println(\"Distance to sibling \"+ (int) conn.getConnectionAt(i).getEnd() + \": \" + dist);\r\n\t\t\t\t\t\r\n\t\t\t\t\tNode sibling = new Node(dist,\r\n\t\t\t\t\t\t\tcurrent,\r\n\t\t\t\t\t\t\t(int) conn.getConnectionAt(i).getEnd());\r\n\t\t\t\t\t\r\n\t\t\t\t\t//updating the distance of the sibling\r\n\t\t\t\t\tif(dist < distances[(int) conn.getConnectionAt(i).getEnd()]){\r\n\t\t\t\t\t\tdistances[(int) conn.getConnectionAt(i).getEnd()] = dist;\r\n\t\t\t\t\t\tprevious[(int) conn.getConnectionAt(i).getEnd()] = current;\r\n//\t\t\t\t\t\tSystem.out.println(\"Previous node of \" + (int) conn.getConnectionAt(i).getEnd() + \" is \" + current);\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse {\r\n\t\t\t\t\t\tdist = distances[(int) conn.getConnectionAt(i).getEnd()];\r\n//\t\t\t\t\t\tSystem.out.println(\"Previous node of \" + (int) conn.getConnectionAt(i).getEnd() + \" is \" + previous[(int) conn.getConnectionAt(i).getEnd()]);\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n//\t\t\t\t\tSystem.out.println(\"Visited contains the sibling: \" + visited.contains(sibling));\r\n\t\t\t\t\t\r\n\t\t\t\t\t//if the sibling have been remove, that is it has been not visited yet, then it is added with the update distance\r\n\t\t\t\t\tif(q.contains(sibling)){\r\n\t\t\t\t\t\tq.remove(sibling);\r\n\t\t\t\t\t\tsibling.setTotalCost(dist);\r\n\t\t\t\t\t\tq.add(sibling);\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse{\r\n\t\t\t\t\t\tsibling.setTotalCost(dist);\r\n\t\t\t\t\t\tq.add(sibling);\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n//\t\t\t\t\tSystem.out.println(\"New Distance to sibling \"+ (int) conn.getConnectionAt(i).getEnd() + \": \" + sibling.getTotalCost());\r\n\t\t\t\t}\r\n\t\t\t\telse\r\n\t\t\t\t\tcontinue;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//adding the path to the list\r\n\t\t\tresultingPath.add(n.getID());\r\n//\t\t\tSystem.out.println(\"Node select as next: \" + q.peek().getID());\r\n//\t\t\tSystem.out.println(\"##########################\");\r\n\t\t\tcount++;\r\n\t\t}\r\n\t\t\r\n//\t\tSystem.out.println(\"Visited nodes: \" + visited.size());\r\n\t\t\r\n\t\tint cur = destination;\r\n//\t\tSystem.out.println(\"Current Dest: \"+cur+\"\\n\");\r\n//\r\n//\t\tSystem.out.println(\"Finding the path...\");\r\n\t\t\r\n\t\t\t\r\n\t\t//the file where to save the path\r\n\t\tFile aFile = new File(fileName+\".txt\");\r\n\t\tFileWriter fw = new FileWriter(aFile);\r\n\t\r\n\t\t//building the final path\r\n\t\tif(write){\r\n\t\t\twhile(cur != source){\r\n\t\t\t\t//adding the path to the list\r\n\t\t\t\tfw.append(String.valueOf(cur)+\"\\n\");\t\r\n\t\t\t\tif (previous[cur] == -1)\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcur = (int) previous[cur];\r\n\t\t\t}\r\n\t\t\tfw.append(String.valueOf(source));\r\n\t\t\tfw.flush();\r\n\t\t\tfw.close();\r\n\t\t}\r\n\t\telse {\r\n\t\t\tdistance = distances[destination];\r\n\t\t}\r\n\t\t\r\n//\t\tfor (int i=0; i<resultingPath.size(); i++)\r\n//\t\t{\r\n//\t\t\tfwPath.write((resultingPath.toArray().toString()));\r\n//\t\t}\r\n//\t\tfwPath.close();\r\n\t\tresultingPath.clear();\r\n//\t\tSystem.out.println(\"Path founded!\");\r\n\t\t\r\n\t\tpathAlreadyDone.add(resultingPath.toArray(new Integer[resultingPath.size()]));\r\n//\t\tSystem.out.println(\"##########################\\n\");\r\n\t\t\r\n\t\t//return resultingPath;\t\t\r\n\t}", "title": "" }, { "docid": "72919fa0d41e77881f08b0d8d31a25d8", "score": "0.5110849", "text": "int getNodeReceive(int node) {\n int sum = 0;\n for (int i = 0; i < row; i++) {\n sum = sum + execution_matrix[i][node];\n }\n return sum;\n }", "title": "" }, { "docid": "d53540d447a40e3d13be5e699dae8574", "score": "0.51106703", "text": "private double findTotalDistance(LatLng rest, LatLng you, List<LatLng> vertices, int direction) {\n\t\tDistancePoint shortestDistRest = new DistancePoint(Double.MAX_VALUE, null);\n\t\tDistancePoint shortestDistYou = new DistancePoint(Double.MAX_VALUE, null);\n\t\tint shortestI = 0, shortestJ = 0;\n\t\tif(vertices.size() != 0) {\n\t\t\t// Find line where distance from restaurant to line is smallest\n\t\t\tfor(int i = 0; i < vertices.size()-1; i++) {\n\t\t\t\tDistancePoint val = LineToPointDistance2D(vertices.get(i), vertices.get(i+1), rest);\n\t\t\t\tif(val.distance < shortestDistRest.distance) {\n\t\t\t\t\tshortestDistRest.distance = val.distance;\n\t\t\t\t\tshortestDistRest.intersectPoint = val.intersectPoint;\n\t\t\t\t\tshortestI = i;\n\t\t\t\t}\n\t\t\t}\n\t\t\t// Find line where distance from you to line is smallest\n\t\t\tfor(int j = 0; j < vertices.size()-1; j++) {\n\t\t\t\tDistancePoint val = LineToPointDistance2D(vertices.get(j), vertices.get(j+1), you);\n\t\t\t\tif(val.distance < shortestDistYou.distance) {\n\t\t\t\t\tshortestDistYou.distance = val.distance;\n\t\t\t\t\tshortestDistYou.intersectPoint = val.intersectPoint;\n\t\t\t\t\tshortestJ = j;\n\t\t\t\t}\n\t\t\t}\n\t\t\tdouble totalDist = 0;\n\t\t\t// if you are closer to the beginning of the route than restaurant is, sum up distance here\n\t\t\tif(shortestI <= shortestJ && direction != 1) {\n\t\t\t\t// Walking takes 10 times longer on average, so use this in calculation\n\t\t\t\ttotalDist += 10*shortestDistRest.distance;\n\t\t\t\t// Add distance from intersection point to next vertex on route\n\t\t\t\ttotalDist += Distance(shortestDistRest.intersectPoint, vertices.get(shortestI+1));\n\t\t\t\ttotalDist += 10*shortestDistYou.distance;\n\t\t\t\ttotalDist += Distance(shortestDistYou.intersectPoint, vertices.get(shortestJ));\n\t\t\t\t// Add rest of route to total distance\n\t\t\t\twhile(shortestI < shortestJ) {\n\t\t\t\t\ttotalDist += Distance(vertices.get(shortestI), vertices.get(shortestI+1));\n\t\t\t\t\tshortestI++;\n\t\t\t\t}\n\t\t\t// if the restaurant is closer to the beginning of the route than you are, sum up distance here\n\t\t\t} else if(shortestJ <= shortestI && direction != -1){\n\t\t\t\t// Walking takes 10 times longer on average, so use this in calculation\n\t\t\t\ttotalDist += 10*shortestDistRest.distance;\n\t\t\t\t// Add distance from intersection point to next vertex on route\n\t\t\t\ttotalDist += Distance(shortestDistRest.intersectPoint, vertices.get(shortestI));\n\t\t\t\ttotalDist += 10*shortestDistYou.distance;\n\t\t\t\ttotalDist += Distance(shortestDistYou.intersectPoint, vertices.get(shortestJ+1));\n\t\t\t\t// Add rest of route to total distance\n\t\t\t\twhile(shortestJ < shortestI) {\n\t\t\t\t\ttotalDist += Distance(vertices.get(shortestJ), vertices.get(shortestJ+1));\n\t\t\t\t\tshortestJ++;\n\t\t\t\t}\n\t\t\t// if a route doesn't match up with any of the above criteria, just return the total walking\n\t\t\t// distance from you to restaurant\n\t\t\t} else {\n\t\t\t\ttotalDist = 10*Distance(you, rest);\n\t\t\t}\n\t\t\treturn totalDist;\n\t\t// If no route exists, return the max value distance can be\n\t\t} else {\n\t\t\treturn Double.MAX_VALUE;\n\t\t}\n\t}", "title": "" }, { "docid": "da15957e166413ea453fea9a51438bbc", "score": "0.51055676", "text": "default void setEdgeWeight(V sourceVertex, V targetVertex, double weight) {\r\n\t\tthis.setEdgeWeight(this.getEdge(sourceVertex, targetVertex), weight);\r\n\t}", "title": "" }, { "docid": "ddf4288c0a13f71720d8067042457a67", "score": "0.5098699", "text": "private static void updateWeights() {\n double sum = 0;\n for (int currentOperatorID = 1; currentOperatorID <= NUMBER_OF_OPERATORS; currentOperatorID++) {\n double oldWeight = operatorWeights.get(currentOperatorID);\n double score = (double) scores.get(currentOperatorID);\n double theta = Math.max(1.0, numberOfTimesEachOperatorHasBeenUsedThisSegment.get(currentOperatorID));\n double newWeight = oldWeight * (1.0 - R) + (R * (score / theta));\n operatorWeights.put(currentOperatorID, Math.max(newWeight, MINIMUM_WEIGHT));\n sum += operatorWeights.get(currentOperatorID);\n }\n for (int currentOperatorID = 1; currentOperatorID <= NUMBER_OF_OPERATORS; currentOperatorID++) {\n double normalizedNewWeight = operatorWeights.get(currentOperatorID) / sum;\n operatorWeights.put(currentOperatorID, normalizedNewWeight);\n }\n // storeACopyOfOperatorWeights();\n resetScores();\n resetOperatorUsagePerSegment();\n }", "title": "" }, { "docid": "d0cbc7178dd129b83dbd9356a60e9452", "score": "0.5095155", "text": "public static int solve(final List<Integer> friends, final List<Integer> weights, final List<Integer> costs) {\n\n helper(friends, weights, costs, 0, 0, 0, 0);\n return min;\n }", "title": "" }, { "docid": "db7d30db259b6ec912c01d21c0699ae2", "score": "0.50922114", "text": "public void addAllEdges() {\n \t\tedgeList=new EdgeList();\n \t\tint n=vertexList.size();\n \t\tfor(int i=0;i<n;i++) {\n \t\t\tfor(int j=i+1;j<n;j++) {\n \t\t\t\tedgeList.add(new Edge(vertexList.get(i),vertexList.get(j)));\n \t\t\t\tedgeList.get(i).calcWeight();\n \t\t\t\trepaint();\n \t\t\t}\n \t\t}\n \t}", "title": "" }, { "docid": "ff0e723ca59706c0d68c6ec011a9c68a", "score": "0.50862235", "text": "double getEdgeLength(Node node1, Node node2) throws NoEdgeException;", "title": "" }, { "docid": "02983a745f7151cdc49a33bf89711f87", "score": "0.5080781", "text": "private void e_Neighbours(int u) \r\n { \r\n double edgeDistance = -1; \r\n double newDistance = -1; \r\n \r\n // All the neighbors of v\r\n for (Entry<Integer, Double> entry : adj.get(u).entrySet())\r\n {\r\n \r\n \r\n \r\n // If current node hasn't already been processed \r\n if (!settled.contains(entry.getKey())) \r\n { \r\n edgeDistance = entry.getValue(); \r\n newDistance = getDist().get(u) + edgeDistance; \r\n \r\n // If new distance is cheaper in cost \r\n if (newDistance < getDist().get(entry.getKey())) \r\n {\r\n \tgetDist().put(entry.getKey(), newDistance);\r\n \t//path.put(entry.getKey(), u);\r\n }\r\n\r\n \r\n // Add the current node to the queue \r\n \r\n // pq.add(new Node(entry.getKey(), getDist().get(entry.getKey()))); \r\n fh.enqueue(new Node(entry.getKey(), getDist().get(entry.getKey())), getDist().get(entry.getKey()));\r\n } \r\n } \r\n }", "title": "" }, { "docid": "5ab5aca0b1fffd2f8c0e8d46e3df4d9f", "score": "0.5070108", "text": "public void usedEdges(){\n int check;\n for (GraphNode i : G){\n for (GraphNode.EdgeInfo j : i.succ){\n if (residual[j.to][j.from] != j.capacity){\n check = j.capacity - residual[j.to][j.from];\n System.out.println(j + \" Transported \" + check + \" Cases\");\n\n }\n }\n }\n }", "title": "" }, { "docid": "19440fd25c5584a351962197c9f179f2", "score": "0.5065897", "text": "void setEdgeWeight(E e, double weight);", "title": "" }, { "docid": "39766ea7564593605748289b9b5035a3", "score": "0.5062653", "text": "public int findTargetSumWays(int[] nums, int S) {\n // if (nums.length == 0) return 0;\n map = new HashMap<>();\n return dfs(nums, S, 0);\n }", "title": "" }, { "docid": "82d725a4512a365edb8d7555db2ae82d", "score": "0.50541985", "text": "int getTreeWeightsCount();", "title": "" }, { "docid": "4f14765e2ceb8502e1defecf95d50203", "score": "0.504728", "text": "public void calculateCost(){\n ArrayList<Assignment> assignments = schedule.getAssignments();\n int totalCost = 0;\n int totalDuration = 0;\n for(Assignment assignment: assignments){\n int costDay = assignment.getStaff().getCostDay();\n int taskTotalDuration = assignment.getTask().totalDuration();\n int taskDuration = assignment.getTask().getDuration();\n totalCost += costDay*taskDuration;\n totalDuration += taskTotalDuration;\n }\n schedule.setTotalCost(totalCost);\n schedule.setDuration(totalDuration);\n System.out.println(\"Total cost of all assignments: \"+totalCost);\n }", "title": "" }, { "docid": "9a63e0820d3d8986335ed536cd523eca", "score": "0.50452906", "text": "public int sumByTraverse(int[] arr) {\n if (arr == null) {\n return 0;\n }\n int sum = 0;\n for (int i = 0; i < arr.length; i++) {\n sum += arr[i];\n }\n return sum;\n }", "title": "" }, { "docid": "02723a5359688dff1068b7da9119b9e6", "score": "0.50443006", "text": "private void traverse(int fromIndex) {\n // Reset the arrays that holds the path and the weights\n reset();\n\n // Create a priority queue to hold the next vertice to be processed, starting from the vertice with the smallest\n // weight of the path that is used to reach it\n PriorityQueue<WeightedEdge> priorityQueue = new PriorityQueue<>();\n // Add the first vertice and the weight of the path to reach to it - 0\n priorityQueue.add(new WeightedEdge(fromIndex, 0));\n pathWeight[fromIndex] = 0;\n\n // While there are vertices to process\n while (priorityQueue.peek() != null) {\n // Pick the vertice on top of the priority queue\n WeightedEdge currentVertice = priorityQueue.poll();\n // Get the currently processed vertice\n int currentVerticeTo = currentVertice.to;\n // Get the weight of the path used to reach the currently processed vertice\n int currentVerticeWeight = currentVertice.weight;\n\n // Traverse over all the adjacent edges of the current vertice\n for (WeightedEdge weightedEdge : edges[currentVerticeTo]) {\n // Get the adjacent vertice\n int adjEdgeTo = weightedEdge.to;\n // Get the weight of the edge leading to the adjacent vertice\n int adjEdgeWeight = weightedEdge.weight;\n // Determine if the adjacent vertice has been visited\n boolean visited = pathWeight[adjEdgeTo] != Integer.MAX_VALUE;\n // If the weight of the path used to seach the current vertice + the weight of the edge leading to the\n // adjcent vertice is smaller the currently smallest path to the adjacent vertice, then update the\n // weight to the path to be the current smallest and update the current vertice used to reach the\n // adjacent vertice\n if ((adjEdgeWeight + currentVerticeWeight) < pathWeight[adjEdgeTo]) {\n pathWeight[adjEdgeTo] = adjEdgeWeight + currentVerticeWeight;\n visitedFrom[adjEdgeTo] = currentVerticeTo;\n }\n // If the adjacent vertice edges have not been traversed yet, add the verticeto the queue for further\n // processing\n if (!visited) {\n priorityQueue.add(new WeightedEdge(adjEdgeTo, pathWeight[adjEdgeTo]));\n }\n }\n }\n }", "title": "" }, { "docid": "5e1f84c3b7583d72294c428ffa5c0942", "score": "0.50367916", "text": "private int sumRecursive(Node<T> node) {\n if (node != null) {\r\n if (node.data instanceof Number) {\r\n return (Integer) node.data + sumRecursive(node.leftChild) + sumRecursive(node.rightChild);\r\n }\r\n }\r\n\r\n return 0;\r\n }", "title": "" }, { "docid": "b9fca415590eee8944139c564b664a53", "score": "0.50328904", "text": "private int calculateSize(TrieNode node) {\n\n if (node == null) {\n return 0;\n }\n\n int count = node.getChildren().size();\n\n for (TrieNode child : node.getChildren()) {\n count += calculateSize(child);\n }\n\n return count;\n }", "title": "" }, { "docid": "d1130fc1b2ed0a8c79ba22328e2fa779", "score": "0.5030509", "text": "public static void dij(Node s){\n visited[s.id] = true;\r\n\r\n Iterator it = s.adjacentNodes.entrySet().iterator();\r\n while (it.hasNext()) {\r\n Map.Entry pair = (Map.Entry)it.next();\r\n Node tmpNode = (Node)pair.getKey();\r\n int tmpCost = (int)pair.getValue();\r\n if(!visited[tmpNode.id]){\r\n if(distance[tmpNode.id] == 0 || distance[s.id] + tmpCost <= distance[tmpNode.id]){\r\n distance[tmpNode.id] = distance[s.id] + tmpCost;\r\n parent[tmpNode.id] = s.id;\r\n }\r\n\r\n }\r\n //System.out.println(\"\\t\" + names.get(tmpNode.id) + \" : \" + distance[tmpNode.id]);\r\n it.remove();\r\n }\r\n\r\n int nextNode = 0;\r\n int nextNodeWeight = 0;\r\n\r\n for(int i = 0; i < max; i++){\r\n if(!visited[i] && distance[i] > 0 && (distance[i] <= nextNodeWeight || nextNodeWeight == 0)){\r\n nextNodeWeight = distance[i];\r\n nextNode = i;\r\n }\r\n }\r\n\r\n if(nextNode != 0)\r\n dij(indices.get(names.get(nextNode)));\r\n\r\n }", "title": "" }, { "docid": "d9eee4a9954399293ce9c2ac68262b43", "score": "0.5025167", "text": "public int cost() {\r\n return cost(this, 1); // Set root to given node and level to 1\r\n }", "title": "" }, { "docid": "bacb0ce9d2bb6d861cea9d967da2081d", "score": "0.50221586", "text": "private static double getCost(Node start, Node end)\n\t\t{\n\t\t\tswitch(start.type)\n\t\t\t{\n\t\t\tcase '1':\n\t\t\t{\n\t\t\t\tswitch(end.type)\n\t\t\t\t{\n\t\t\t\tcase '1':return (isnDiagonal(start, end)) ? 1: Math.sqrt(2);\n\t\t\t\tcase 'a': return (isnDiagonal(start, end)) ? 1: Math.sqrt(2);\n\t\t\t\tcase '2': return (isnDiagonal(start, end)) ? 1.5: (Math.sqrt(8)+Math.sqrt(2))/2;\n\t\t\t\tcase 'b': return (isnDiagonal(start, end)) ? 1.5: (Math.sqrt(8)+Math.sqrt(2))/2;\n\t\t\t\tdefault: return 0;\n\t\t\t\t}\n\t\t\t}\n\t\t\tcase '2':\n\t\t\t{\n\t\t\t\tswitch(end.type)\n\t\t\t\t{\n\t\t\t\tcase '1':return (isnDiagonal(start, end)) ? 1.5: (Math.sqrt(8)+Math.sqrt(2))/2;\n\t\t\t\tcase 'a': return (isnDiagonal(start, end)) ? 1.5: (Math.sqrt(8)+Math.sqrt(2))/2;\n\t\t\t\tcase '2': return (isnDiagonal(start, end)) ? 2: Math.sqrt(8);\n\t\t\t\tcase 'b': return (isnDiagonal(start, end)) ? 2: Math.sqrt(8);\n\t\t\t\tdefault: return 0;\n\t\t\t\t}\n\t\t\t}\n\t\t\tcase 'a':\n\t\t\t{\n\t\t\t\tswitch(end.type)\n\t\t\t\t{\n\t\t\t\tcase '1':return (isnDiagonal(start, end)) ? 1: Math.sqrt(2);\n\t\t\t\tcase 'a': return (isnDiagonal(start, end)) ? .25: Math.sqrt(2);\n\t\t\t\tcase '2': return (isnDiagonal(start, end)) ? 2: (Math.sqrt(8)+Math.sqrt(2))/2;\n\t\t\t\tcase 'b': return (isnDiagonal(start, end)) ? .375: (Math.sqrt(8)+Math.sqrt(2))/2;\n\t\t\t\tdefault: return 0;\n\t\t\t\t}\n\t\t\t}\n\t\t\tcase 'b':\n\t\t\t{\n\t\t\t\tswitch(end.type)\n\t\t\t\t{\n\t\t\t\tcase '1':return (isnDiagonal(start, end)) ? 1.5: (Math.sqrt(8)+Math.sqrt(2))/2;\n\t\t\t\tcase 'a': return (isnDiagonal(start, end)) ? .375: (Math.sqrt(8)+Math.sqrt(2))/2;\n\t\t\t\tcase '2': return (isnDiagonal(start, end)) ? 2: Math.sqrt(8);\n\t\t\t\tcase 'b': return (isnDiagonal(start, end)) ? .5: Math.sqrt(8);\n\t\t\t\tdefault: return 0;\n\t\t\t\t}\n\t\t\t}\n\t\t\tdefault:\n\t\t\t\treturn 0;//trying to avoid throwing errors (I can make them but for time's sake ill leave it as it is)\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "ffb76e06fc5249c825d2549ecb30bff3", "score": "0.5021411", "text": "@Override\n\tpublic int computeOnerousSum(Node root) {\n\t\t\n\t\tbuffer.add(root);\t\n\t\tint sum = 0;\n\t\tExecutorService pool = Executors.newFixedThreadPool(ncpu);\n\t\tCompletionService<Integer> service = new ExecutorCompletionService<Integer>(pool);\n\t\tList<Future<Integer>> futures = new ArrayList<Future<Integer>>(ncpu);\n\t\t\t \n\t\t// sottomissione di tutti i task\n\t\ttry { \n\t\t\t\n\t\t for (int i=0; i<ncpu; i++) {\n\t\t \t \n\t\t futures.add(service.submit(new TaskHWJ1(buffer,lock,1500)));\n\t\t }\n\t\t \n\t\t// raccolta dei risultati nell'ordine di completamento\n\t\t for (int i = 0; i < ncpu; ++i) {\n\t\t \t \n\t\t try { \n\t\t \t \t\tInteger value = service.take().get();\n\t\t \t\tif (value != null) {\n\t\t \t\t\tsum += value.intValue();\n\t\t \t\t}\n\t\t \t} \n\t\t \tcatch(ExecutionException e) {e.printStackTrace();}\n\t\t catch(CancellationException e) {e.printStackTrace();}\n\t\t \tcatch(InterruptedException e) { e.printStackTrace(); }\n\t\t catch(Exception e) { e.printStackTrace(); }\n\t\t } \n\t\t}\n\t\t// prova a cancellare i rimanenti (eventualmente ancora in esecuzione)\n\n\t\t finally {\n\t\t for (Future<Integer> f : futures)\n\t\t f.cancel(true);\n\t\t }\n\t\t\n\t\tpool.shutdown();\n\t\treturn sum;\n\t}", "title": "" }, { "docid": "97c3b6436a01b1018648ec43fa4c5a0b", "score": "0.50123906", "text": "@Override\n public double accept(TransactionCostVisitor visitor) {\n return visitor.visit(this);\n }", "title": "" }, { "docid": "0287b388938801db66e8772eeca4bc63", "score": "0.50112957", "text": "public int getNodeCount() {\n int sum = 1;\n for(AptedNode<D> child : getChildren()) {\n sum += child.getNodeCount();\n }\n return sum;\n }", "title": "" }, { "docid": "4bf7bfe08fd2635105865dc3b235d40e", "score": "0.5004438", "text": "private double keeperWeight(Inclusion e) {\n final double[] weights = {10000.0, 1.0, 0.0001};\n return weights[keeperPrio(e)];\n }", "title": "" }, { "docid": "068d1be0910f3b7448af0c09992afe30", "score": "0.5003593", "text": "protected double calculateTotal()\n\t{\n\t\tdouble d = 0.0;\n\t\tfor(Choice choice : choices) {\n\t\t\td += choice.getWeight();\n\t\t}\n\t\treturn (d > 100.0) ? 100.0 : d;\n\t}", "title": "" }, { "docid": "b04a59ad0e78fab6e63da3d9807cf644", "score": "0.5000112", "text": "@Override\n\tpublic Integer getTotalWeight() {\n\t\t// TODO Auto-generated method stub\n\t\treturn this.total_weight;\n\t}", "title": "" }, { "docid": "b595503f447c50d4ecba20f95ed7504b", "score": "0.49979725", "text": "public static void main(String[] args) {\n\r\n TreeNode node1 = new TreeNode(1);\r\n TreeNode node9 = new TreeNode(9, null, node1);\r\n TreeNode node0 = new TreeNode(0);\r\n TreeNode node4 = new TreeNode(4, node9, node0);\r\n System.out.println(sumNumbers(node4));\r\n }", "title": "" } ]
b4919eb925aa2084906b7ce9b1b0fd26
$ANTLR end "rule__XSwitchExpression__Group_2_1_0_0__0__Impl" $ANTLR start "rule__XSwitchExpression__Group_2_1_0_0__1" InternalMyDsl.g:8989:1: rule__XSwitchExpression__Group_2_1_0_0__1 : rule__XSwitchExpression__Group_2_1_0_0__1__Impl ;
[ { "docid": "405b6e5bff2b966024cd85e42fb72f14", "score": "0.8206801", "text": "public final void rule__XSwitchExpression__Group_2_1_0_0__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalMyDsl.g:8993:1: ( rule__XSwitchExpression__Group_2_1_0_0__1__Impl )\n // InternalMyDsl.g:8994:2: rule__XSwitchExpression__Group_2_1_0_0__1__Impl\n {\n pushFollow(FOLLOW_2);\n rule__XSwitchExpression__Group_2_1_0_0__1__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" } ]
[ { "docid": "a84aa06a70d8743d7d28c08836ed333a", "score": "0.84653795", "text": "public final void rule__XSwitchExpression__Group_2_0_0_0__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.scripting.ui/src-gen/org/xtext/scripting/ui/contentassist/antlr/internal/InternalScripting.g:9055:1: ( rule__XSwitchExpression__Group_2_0_0_0__1__Impl )\n // ../org.xtext.scripting.ui/src-gen/org/xtext/scripting/ui/contentassist/antlr/internal/InternalScripting.g:9056:2: rule__XSwitchExpression__Group_2_0_0_0__1__Impl\n {\n pushFollow(FOLLOW_rule__XSwitchExpression__Group_2_0_0_0__1__Impl_in_rule__XSwitchExpression__Group_2_0_0_0__118471);\n rule__XSwitchExpression__Group_2_0_0_0__1__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "1bbc7e2df2f56a769ea8030c4b537cbe", "score": "0.84268254", "text": "public final void rule__XSwitchExpression__Group_2_0__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.scripting.ui/src-gen/org/xtext/scripting/ui/contentassist/antlr/internal/InternalScripting.g:8964:1: ( rule__XSwitchExpression__Group_2_0__1__Impl )\n // ../org.xtext.scripting.ui/src-gen/org/xtext/scripting/ui/contentassist/antlr/internal/InternalScripting.g:8965:2: rule__XSwitchExpression__Group_2_0__1__Impl\n {\n pushFollow(FOLLOW_rule__XSwitchExpression__Group_2_0__1__Impl_in_rule__XSwitchExpression__Group_2_0__118291);\n rule__XSwitchExpression__Group_2_0__1__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "8ce03b7fff931082ecde6dd9f85eca98", "score": "0.8396266", "text": "public final void rule__XSwitchExpression__Group_2_1_0__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.scripting.ui/src-gen/org/xtext/scripting/ui/contentassist/antlr/internal/InternalScripting.g:9183:1: ( rule__XSwitchExpression__Group_2_1_0__0__Impl )\n // ../org.xtext.scripting.ui/src-gen/org/xtext/scripting/ui/contentassist/antlr/internal/InternalScripting.g:9184:2: rule__XSwitchExpression__Group_2_1_0__0__Impl\n {\n pushFollow(FOLLOW_rule__XSwitchExpression__Group_2_1_0__0__Impl_in_rule__XSwitchExpression__Group_2_1_0__018719);\n rule__XSwitchExpression__Group_2_1_0__0__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "ae718ffd1f7fcbe56bab9043f396f219", "score": "0.8353333", "text": "public final void rule__XSwitchExpression__Group_2_0_0_0__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.tortoiseshell.ui/src-gen/org/xtext/tortoiseshell/ui/contentassist/antlr/internal/InternalTortoiseShell.g:8386:1: ( rule__XSwitchExpression__Group_2_0_0_0__1__Impl )\n // ../org.xtext.tortoiseshell.ui/src-gen/org/xtext/tortoiseshell/ui/contentassist/antlr/internal/InternalTortoiseShell.g:8387:2: rule__XSwitchExpression__Group_2_0_0_0__1__Impl\n {\n pushFollow(FOLLOW_rule__XSwitchExpression__Group_2_0_0_0__1__Impl_in_rule__XSwitchExpression__Group_2_0_0_0__117073);\n rule__XSwitchExpression__Group_2_0_0_0__1__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "d78ee1812fa521c0933b341a7501d947", "score": "0.832829", "text": "public final void rule__XSwitchExpression__Group_2_1_0_0__2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.scripting.ui/src-gen/org/xtext/scripting/ui/contentassist/antlr/internal/InternalScripting.g:9273:1: ( rule__XSwitchExpression__Group_2_1_0_0__2__Impl )\n // ../org.xtext.scripting.ui/src-gen/org/xtext/scripting/ui/contentassist/antlr/internal/InternalScripting.g:9274:2: rule__XSwitchExpression__Group_2_1_0_0__2__Impl\n {\n pushFollow(FOLLOW_rule__XSwitchExpression__Group_2_1_0_0__2__Impl_in_rule__XSwitchExpression__Group_2_1_0_0__218900);\n rule__XSwitchExpression__Group_2_1_0_0__2__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "8080eccb43851611c2611a4764220b6d", "score": "0.83246577", "text": "public final void rule__XSwitchExpression__Group_2_0__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.tortoiseshell.ui/src-gen/org/xtext/tortoiseshell/ui/contentassist/antlr/internal/InternalTortoiseShell.g:8295:1: ( rule__XSwitchExpression__Group_2_0__1__Impl )\n // ../org.xtext.tortoiseshell.ui/src-gen/org/xtext/tortoiseshell/ui/contentassist/antlr/internal/InternalTortoiseShell.g:8296:2: rule__XSwitchExpression__Group_2_0__1__Impl\n {\n pushFollow(FOLLOW_rule__XSwitchExpression__Group_2_0__1__Impl_in_rule__XSwitchExpression__Group_2_0__116893);\n rule__XSwitchExpression__Group_2_0__1__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "561a55c8fda75d6c54566e09441f9471", "score": "0.8290934", "text": "public final void rule__XSwitchExpression__Group_2_1_0__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.tortoiseshell.ui/src-gen/org/xtext/tortoiseshell/ui/contentassist/antlr/internal/InternalTortoiseShell.g:8514:1: ( rule__XSwitchExpression__Group_2_1_0__0__Impl )\n // ../org.xtext.tortoiseshell.ui/src-gen/org/xtext/tortoiseshell/ui/contentassist/antlr/internal/InternalTortoiseShell.g:8515:2: rule__XSwitchExpression__Group_2_1_0__0__Impl\n {\n pushFollow(FOLLOW_rule__XSwitchExpression__Group_2_1_0__0__Impl_in_rule__XSwitchExpression__Group_2_1_0__017321);\n rule__XSwitchExpression__Group_2_1_0__0__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "1bce1a5d8fbd0090bd1c8e216303943c", "score": "0.8278652", "text": "public final void rule__XSwitchExpression__Group_2_0_0__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.scripting.ui/src-gen/org/xtext/scripting/ui/contentassist/antlr/internal/InternalScripting.g:8996:1: ( rule__XSwitchExpression__Group_2_0_0__0__Impl )\n // ../org.xtext.scripting.ui/src-gen/org/xtext/scripting/ui/contentassist/antlr/internal/InternalScripting.g:8997:2: rule__XSwitchExpression__Group_2_0_0__0__Impl\n {\n pushFollow(FOLLOW_rule__XSwitchExpression__Group_2_0_0__0__Impl_in_rule__XSwitchExpression__Group_2_0_0__018352);\n rule__XSwitchExpression__Group_2_0_0__0__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "4304e785c500032cad388413c4a90c3f", "score": "0.8231881", "text": "public final void rule__XSwitchExpression__Group_2_1_0__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalMyDsl.g:8939:1: ( rule__XSwitchExpression__Group_2_1_0__0__Impl )\n // InternalMyDsl.g:8940:2: rule__XSwitchExpression__Group_2_1_0__0__Impl\n {\n pushFollow(FOLLOW_2);\n rule__XSwitchExpression__Group_2_1_0__0__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "7563faa18dd33ffb773e590406c17c9d", "score": "0.8227453", "text": "public final void rule__XSwitchExpression__Group_2_1_0_0__2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.tortoiseshell.ui/src-gen/org/xtext/tortoiseshell/ui/contentassist/antlr/internal/InternalTortoiseShell.g:8604:1: ( rule__XSwitchExpression__Group_2_1_0_0__2__Impl )\n // ../org.xtext.tortoiseshell.ui/src-gen/org/xtext/tortoiseshell/ui/contentassist/antlr/internal/InternalTortoiseShell.g:8605:2: rule__XSwitchExpression__Group_2_1_0_0__2__Impl\n {\n pushFollow(FOLLOW_rule__XSwitchExpression__Group_2_1_0_0__2__Impl_in_rule__XSwitchExpression__Group_2_1_0_0__217502);\n rule__XSwitchExpression__Group_2_1_0_0__2__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "4aedfe4fb02fa45c359b47e3281a6334", "score": "0.82112074", "text": "public final void rule__XSwitchExpression__Group_2_1__2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.scripting.ui/src-gen/org/xtext/scripting/ui/contentassist/antlr/internal/InternalScripting.g:9147:1: ( rule__XSwitchExpression__Group_2_1__2__Impl )\n // ../org.xtext.scripting.ui/src-gen/org/xtext/scripting/ui/contentassist/antlr/internal/InternalScripting.g:9148:2: rule__XSwitchExpression__Group_2_1__2__Impl\n {\n pushFollow(FOLLOW_rule__XSwitchExpression__Group_2_1__2__Impl_in_rule__XSwitchExpression__Group_2_1__218654);\n rule__XSwitchExpression__Group_2_1__2__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "dee6ae14ae625a8466ea3992397273ee", "score": "0.8186008", "text": "public final void rule__XSwitchExpression__Group_2_0_0__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.tortoiseshell.ui/src-gen/org/xtext/tortoiseshell/ui/contentassist/antlr/internal/InternalTortoiseShell.g:8327:1: ( rule__XSwitchExpression__Group_2_0_0__0__Impl )\n // ../org.xtext.tortoiseshell.ui/src-gen/org/xtext/tortoiseshell/ui/contentassist/antlr/internal/InternalTortoiseShell.g:8328:2: rule__XSwitchExpression__Group_2_0_0__0__Impl\n {\n pushFollow(FOLLOW_rule__XSwitchExpression__Group_2_0_0__0__Impl_in_rule__XSwitchExpression__Group_2_0_0__016954);\n rule__XSwitchExpression__Group_2_0_0__0__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "642ff48fd6a95f99168dbd02d5222c59", "score": "0.81827325", "text": "public final void rule__XSwitchExpression__Group_2_1_0__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../de.gammarcraft.aqua.ui/src-gen/de/gammarcraft/aqua/ui/contentassist/antlr/internal/InternalAqua.g:13585:1: ( rule__XSwitchExpression__Group_2_1_0__0__Impl )\n // ../de.gammarcraft.aqua.ui/src-gen/de/gammarcraft/aqua/ui/contentassist/antlr/internal/InternalAqua.g:13586:2: rule__XSwitchExpression__Group_2_1_0__0__Impl\n {\n pushFollow(FOLLOW_rule__XSwitchExpression__Group_2_1_0__0__Impl_in_rule__XSwitchExpression__Group_2_1_0__027666);\n rule__XSwitchExpression__Group_2_1_0__0__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "4bb44cf3dc69852600aa991e2a8095f5", "score": "0.8174657", "text": "public final void rule__XSwitchExpression__Group_2_1_0_0__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../de.gammarcraft.aqua.ui/src-gen/de/gammarcraft/aqua/ui/contentassist/antlr/internal/InternalAqua.g:13644:1: ( rule__XSwitchExpression__Group_2_1_0_0__1__Impl )\n // ../de.gammarcraft.aqua.ui/src-gen/de/gammarcraft/aqua/ui/contentassist/antlr/internal/InternalAqua.g:13645:2: rule__XSwitchExpression__Group_2_1_0_0__1__Impl\n {\n pushFollow(FOLLOW_rule__XSwitchExpression__Group_2_1_0_0__1__Impl_in_rule__XSwitchExpression__Group_2_1_0_0__127785);\n rule__XSwitchExpression__Group_2_1_0_0__1__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "525cd3162d2cc584dcc76f26473bec85", "score": "0.8145815", "text": "public final void rule__XSwitchExpression__Group_2_0_0__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalMyDsl.g:8777:1: ( rule__XSwitchExpression__Group_2_0_0__0__Impl )\n // InternalMyDsl.g:8778:2: rule__XSwitchExpression__Group_2_0_0__0__Impl\n {\n pushFollow(FOLLOW_2);\n rule__XSwitchExpression__Group_2_0_0__0__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "f701d14ae5091f67db4d2f309d5ac87b", "score": "0.8137028", "text": "public final void rule__XSwitchExpression__Group_2_1__0__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.scripting.ui/src-gen/org/xtext/scripting/ui/contentassist/antlr/internal/InternalScripting.g:9101:1: ( ( ( rule__XSwitchExpression__Group_2_1_0__0 ) ) )\n // ../org.xtext.scripting.ui/src-gen/org/xtext/scripting/ui/contentassist/antlr/internal/InternalScripting.g:9102:1: ( ( rule__XSwitchExpression__Group_2_1_0__0 ) )\n {\n // ../org.xtext.scripting.ui/src-gen/org/xtext/scripting/ui/contentassist/antlr/internal/InternalScripting.g:9102:1: ( ( rule__XSwitchExpression__Group_2_1_0__0 ) )\n // ../org.xtext.scripting.ui/src-gen/org/xtext/scripting/ui/contentassist/antlr/internal/InternalScripting.g:9103:1: ( rule__XSwitchExpression__Group_2_1_0__0 )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXSwitchExpressionAccess().getGroup_2_1_0()); \n }\n // ../org.xtext.scripting.ui/src-gen/org/xtext/scripting/ui/contentassist/antlr/internal/InternalScripting.g:9104:1: ( rule__XSwitchExpression__Group_2_1_0__0 )\n // ../org.xtext.scripting.ui/src-gen/org/xtext/scripting/ui/contentassist/antlr/internal/InternalScripting.g:9104:2: rule__XSwitchExpression__Group_2_1_0__0\n {\n pushFollow(FOLLOW_rule__XSwitchExpression__Group_2_1_0__0_in_rule__XSwitchExpression__Group_2_1__0__Impl18564);\n rule__XSwitchExpression__Group_2_1_0__0();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXSwitchExpressionAccess().getGroup_2_1_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "015411b568ed385845fe79d0bc20dedc", "score": "0.81224644", "text": "public final void rule__XSwitchExpression__Group_2_1_0__0__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.scripting.ui/src-gen/org/xtext/scripting/ui/contentassist/antlr/internal/InternalScripting.g:9194:1: ( ( ( rule__XSwitchExpression__Group_2_1_0_0__0 ) ) )\n // ../org.xtext.scripting.ui/src-gen/org/xtext/scripting/ui/contentassist/antlr/internal/InternalScripting.g:9195:1: ( ( rule__XSwitchExpression__Group_2_1_0_0__0 ) )\n {\n // ../org.xtext.scripting.ui/src-gen/org/xtext/scripting/ui/contentassist/antlr/internal/InternalScripting.g:9195:1: ( ( rule__XSwitchExpression__Group_2_1_0_0__0 ) )\n // ../org.xtext.scripting.ui/src-gen/org/xtext/scripting/ui/contentassist/antlr/internal/InternalScripting.g:9196:1: ( rule__XSwitchExpression__Group_2_1_0_0__0 )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXSwitchExpressionAccess().getGroup_2_1_0_0()); \n }\n // ../org.xtext.scripting.ui/src-gen/org/xtext/scripting/ui/contentassist/antlr/internal/InternalScripting.g:9197:1: ( rule__XSwitchExpression__Group_2_1_0_0__0 )\n // ../org.xtext.scripting.ui/src-gen/org/xtext/scripting/ui/contentassist/antlr/internal/InternalScripting.g:9197:2: rule__XSwitchExpression__Group_2_1_0_0__0\n {\n pushFollow(FOLLOW_rule__XSwitchExpression__Group_2_1_0_0__0_in_rule__XSwitchExpression__Group_2_1_0__0__Impl18746);\n rule__XSwitchExpression__Group_2_1_0_0__0();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXSwitchExpressionAccess().getGroup_2_1_0_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "0bcf2141661c70f88c4b3d8b0e23f94e", "score": "0.8092512", "text": "public final void rule__XSwitchExpression__Group_2_1_0__0__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalMyDsl.g:8950:1: ( ( ( rule__XSwitchExpression__Group_2_1_0_0__0 ) ) )\n // InternalMyDsl.g:8951:1: ( ( rule__XSwitchExpression__Group_2_1_0_0__0 ) )\n {\n // InternalMyDsl.g:8951:1: ( ( rule__XSwitchExpression__Group_2_1_0_0__0 ) )\n // InternalMyDsl.g:8952:2: ( rule__XSwitchExpression__Group_2_1_0_0__0 )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXSwitchExpressionAccess().getGroup_2_1_0_0()); \n }\n // InternalMyDsl.g:8953:2: ( rule__XSwitchExpression__Group_2_1_0_0__0 )\n // InternalMyDsl.g:8953:3: rule__XSwitchExpression__Group_2_1_0_0__0\n {\n pushFollow(FOLLOW_2);\n rule__XSwitchExpression__Group_2_1_0_0__0();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXSwitchExpressionAccess().getGroup_2_1_0_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "6b9ed06dd4d0a19237fbc4121832a07a", "score": "0.80906904", "text": "public final void rule__XSwitchExpression__Group_2_1__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../de.gammarcraft.aqua.ui/src-gen/de/gammarcraft/aqua/ui/contentassist/antlr/internal/InternalAqua.g:13553:1: ( rule__XSwitchExpression__Group_2_1__1__Impl )\n // ../de.gammarcraft.aqua.ui/src-gen/de/gammarcraft/aqua/ui/contentassist/antlr/internal/InternalAqua.g:13554:2: rule__XSwitchExpression__Group_2_1__1__Impl\n {\n pushFollow(FOLLOW_rule__XSwitchExpression__Group_2_1__1__Impl_in_rule__XSwitchExpression__Group_2_1__127605);\n rule__XSwitchExpression__Group_2_1__1__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "2012a711960117ba0f36eecfaccd36e2", "score": "0.8078822", "text": "public final void rule__XSwitchExpression__Group_2_0_0_0__2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalMyDsl.g:8858:1: ( rule__XSwitchExpression__Group_2_0_0_0__2__Impl )\n // InternalMyDsl.g:8859:2: rule__XSwitchExpression__Group_2_0_0_0__2__Impl\n {\n pushFollow(FOLLOW_2);\n rule__XSwitchExpression__Group_2_0_0_0__2__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "22e96283bd1b2dce6adff381643c2be6", "score": "0.80760527", "text": "public final void rule__XSwitchExpression__Group_2_0__0__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.scripting.ui/src-gen/org/xtext/scripting/ui/contentassist/antlr/internal/InternalScripting.g:8947:1: ( ( ( rule__XSwitchExpression__Group_2_0_0__0 )? ) )\n // ../org.xtext.scripting.ui/src-gen/org/xtext/scripting/ui/contentassist/antlr/internal/InternalScripting.g:8948:1: ( ( rule__XSwitchExpression__Group_2_0_0__0 )? )\n {\n // ../org.xtext.scripting.ui/src-gen/org/xtext/scripting/ui/contentassist/antlr/internal/InternalScripting.g:8948:1: ( ( rule__XSwitchExpression__Group_2_0_0__0 )? )\n // ../org.xtext.scripting.ui/src-gen/org/xtext/scripting/ui/contentassist/antlr/internal/InternalScripting.g:8949:1: ( rule__XSwitchExpression__Group_2_0_0__0 )?\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXSwitchExpressionAccess().getGroup_2_0_0()); \n }\n // ../org.xtext.scripting.ui/src-gen/org/xtext/scripting/ui/contentassist/antlr/internal/InternalScripting.g:8950:1: ( rule__XSwitchExpression__Group_2_0_0__0 )?\n int alt69=2;\n int LA69_0 = input.LA(1);\n\n if ( (LA69_0==RULE_ID) ) {\n int LA69_1 = input.LA(2);\n\n if ( (LA69_1==62) ) {\n alt69=1;\n }\n }\n switch (alt69) {\n case 1 :\n // ../org.xtext.scripting.ui/src-gen/org/xtext/scripting/ui/contentassist/antlr/internal/InternalScripting.g:8950:2: rule__XSwitchExpression__Group_2_0_0__0\n {\n pushFollow(FOLLOW_rule__XSwitchExpression__Group_2_0_0__0_in_rule__XSwitchExpression__Group_2_0__0__Impl18260);\n rule__XSwitchExpression__Group_2_0_0__0();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n break;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXSwitchExpressionAccess().getGroup_2_0_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "a9384f52468ad80e559f171c5637ad4a", "score": "0.80720055", "text": "public final void rule__XSwitchExpression__Group_2_1_0__0() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalModel.g:11508:1: ( rule__XSwitchExpression__Group_2_1_0__0__Impl )\r\n // InternalModel.g:11509:2: rule__XSwitchExpression__Group_2_1_0__0__Impl\r\n {\r\n pushFollow(FOLLOW_2);\r\n rule__XSwitchExpression__Group_2_1_0__0__Impl();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\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 finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "57ddcb12628cdbec052d09bd6a138fbe", "score": "0.80699813", "text": "public final void rule__XSwitchExpression__Group_2__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.yakindu.sct.generator.genmodel.ui/src-gen/org/yakindu/sct/generator/genmodel/ui/contentassist/antlr/internal/InternalSGen.g:7975:1: ( rule__XSwitchExpression__Group_2__1__Impl )\n // ../org.yakindu.sct.generator.genmodel.ui/src-gen/org/yakindu/sct/generator/genmodel/ui/contentassist/antlr/internal/InternalSGen.g:7976:2: rule__XSwitchExpression__Group_2__1__Impl\n {\n pushFollow(FOLLOW_rule__XSwitchExpression__Group_2__1__Impl_in_rule__XSwitchExpression__Group_2__116198);\n rule__XSwitchExpression__Group_2__1__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "74d6bd41403567c0f5baac35a2f53830", "score": "0.8067022", "text": "public final void rule__XSwitchExpression__Group_2_1__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalMyDsl.g:8912:1: ( rule__XSwitchExpression__Group_2_1__1__Impl )\n // InternalMyDsl.g:8913:2: rule__XSwitchExpression__Group_2_1__1__Impl\n {\n pushFollow(FOLLOW_2);\n rule__XSwitchExpression__Group_2_1__1__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "5645e52e0dda4f11446ea897207a2f5d", "score": "0.80608207", "text": "public final void rule__XSwitchExpression__Group_2_1__2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.tortoiseshell.ui/src-gen/org/xtext/tortoiseshell/ui/contentassist/antlr/internal/InternalTortoiseShell.g:8478:1: ( rule__XSwitchExpression__Group_2_1__2__Impl )\n // ../org.xtext.tortoiseshell.ui/src-gen/org/xtext/tortoiseshell/ui/contentassist/antlr/internal/InternalTortoiseShell.g:8479:2: rule__XSwitchExpression__Group_2_1__2__Impl\n {\n pushFollow(FOLLOW_rule__XSwitchExpression__Group_2_1__2__Impl_in_rule__XSwitchExpression__Group_2_1__217256);\n rule__XSwitchExpression__Group_2_1__2__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "dacf67d79100022fb4c016f19e629db6", "score": "0.80601156", "text": "public final void rule__XSwitchExpression__Group_2_1_0_0__1() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalModel.g:11562:1: ( rule__XSwitchExpression__Group_2_1_0_0__1__Impl )\r\n // InternalModel.g:11563:2: rule__XSwitchExpression__Group_2_1_0_0__1__Impl\r\n {\r\n pushFollow(FOLLOW_2);\r\n rule__XSwitchExpression__Group_2_1_0_0__1__Impl();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\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 finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "6a437d572e2b9f8c8e16cdf5622fdc44", "score": "0.8040612", "text": "public final void rule__XSwitchExpression__Group_2_1__0__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalMyDsl.g:8897:1: ( ( ( rule__XSwitchExpression__Group_2_1_0__0 )? ) )\n // InternalMyDsl.g:8898:1: ( ( rule__XSwitchExpression__Group_2_1_0__0 )? )\n {\n // InternalMyDsl.g:8898:1: ( ( rule__XSwitchExpression__Group_2_1_0__0 )? )\n // InternalMyDsl.g:8899:2: ( rule__XSwitchExpression__Group_2_1_0__0 )?\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXSwitchExpressionAccess().getGroup_2_1_0()); \n }\n // InternalMyDsl.g:8900:2: ( rule__XSwitchExpression__Group_2_1_0__0 )?\n int alt75=2;\n alt75 = dfa75.predict(input);\n switch (alt75) {\n case 1 :\n // InternalMyDsl.g:8900:3: rule__XSwitchExpression__Group_2_1_0__0\n {\n pushFollow(FOLLOW_2);\n rule__XSwitchExpression__Group_2_1_0__0();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n break;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXSwitchExpressionAccess().getGroup_2_1_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "90e9b7557b87ab6c252389f971f4269d", "score": "0.8037901", "text": "public final void rule__XSwitchExpression__Group_2_0_0__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../de.gammarcraft.aqua.ui/src-gen/de/gammarcraft/aqua/ui/contentassist/antlr/internal/InternalAqua.g:13398:1: ( rule__XSwitchExpression__Group_2_0_0__0__Impl )\n // ../de.gammarcraft.aqua.ui/src-gen/de/gammarcraft/aqua/ui/contentassist/antlr/internal/InternalAqua.g:13399:2: rule__XSwitchExpression__Group_2_0_0__0__Impl\n {\n pushFollow(FOLLOW_rule__XSwitchExpression__Group_2_0_0__0__Impl_in_rule__XSwitchExpression__Group_2_0_0__027298);\n rule__XSwitchExpression__Group_2_0_0__0__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "166ae6e24029a7b70d531613bd42a026", "score": "0.80361104", "text": "public final void rule__XSwitchExpression__Group_2_0_0_0__2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../de.gammarcraft.aqua.ui/src-gen/de/gammarcraft/aqua/ui/contentassist/antlr/internal/InternalAqua.g:13488:1: ( rule__XSwitchExpression__Group_2_0_0_0__2__Impl )\n // ../de.gammarcraft.aqua.ui/src-gen/de/gammarcraft/aqua/ui/contentassist/antlr/internal/InternalAqua.g:13489:2: rule__XSwitchExpression__Group_2_0_0_0__2__Impl\n {\n pushFollow(FOLLOW_rule__XSwitchExpression__Group_2_0_0_0__2__Impl_in_rule__XSwitchExpression__Group_2_0_0_0__227479);\n rule__XSwitchExpression__Group_2_0_0_0__2__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "d92dbd57551f6341d8a0d0a43cd8f37c", "score": "0.80350685", "text": "public final void rule__XSwitchExpression__Group_2_1__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.scripting.ui/src-gen/org/xtext/scripting/ui/contentassist/antlr/internal/InternalScripting.g:9089:1: ( rule__XSwitchExpression__Group_2_1__0__Impl rule__XSwitchExpression__Group_2_1__1 )\n // ../org.xtext.scripting.ui/src-gen/org/xtext/scripting/ui/contentassist/antlr/internal/InternalScripting.g:9090:2: rule__XSwitchExpression__Group_2_1__0__Impl rule__XSwitchExpression__Group_2_1__1\n {\n pushFollow(FOLLOW_rule__XSwitchExpression__Group_2_1__0__Impl_in_rule__XSwitchExpression__Group_2_1__018534);\n rule__XSwitchExpression__Group_2_1__0__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n pushFollow(FOLLOW_rule__XSwitchExpression__Group_2_1__1_in_rule__XSwitchExpression__Group_2_1__018537);\n rule__XSwitchExpression__Group_2_1__1();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "9dfea9b26a4e685e5185a23e131ba439", "score": "0.80345136", "text": "public final void rule__XSwitchExpression__Group_2_1_0_0__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.scripting.ui/src-gen/org/xtext/scripting/ui/contentassist/antlr/internal/InternalScripting.g:9244:1: ( rule__XSwitchExpression__Group_2_1_0_0__1__Impl rule__XSwitchExpression__Group_2_1_0_0__2 )\n // ../org.xtext.scripting.ui/src-gen/org/xtext/scripting/ui/contentassist/antlr/internal/InternalScripting.g:9245:2: rule__XSwitchExpression__Group_2_1_0_0__1__Impl rule__XSwitchExpression__Group_2_1_0_0__2\n {\n pushFollow(FOLLOW_rule__XSwitchExpression__Group_2_1_0_0__1__Impl_in_rule__XSwitchExpression__Group_2_1_0_0__118840);\n rule__XSwitchExpression__Group_2_1_0_0__1__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n pushFollow(FOLLOW_rule__XSwitchExpression__Group_2_1_0_0__2_in_rule__XSwitchExpression__Group_2_1_0_0__118843);\n rule__XSwitchExpression__Group_2_1_0_0__2();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "45d9d369f056d697faf7eb60997a9195", "score": "0.80281305", "text": "public final void rule__XSwitchExpression__Group_2_0__2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalMyDsl.g:8750:1: ( rule__XSwitchExpression__Group_2_0__2__Impl )\n // InternalMyDsl.g:8751:2: rule__XSwitchExpression__Group_2_0__2__Impl\n {\n pushFollow(FOLLOW_2);\n rule__XSwitchExpression__Group_2_0__2__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "3ba4ee10d1c89340a21d077a01e58eea", "score": "0.80030024", "text": "public final void rule__XSwitchExpression__Group_2_1__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.scripting.ui/src-gen/org/xtext/scripting/ui/contentassist/antlr/internal/InternalScripting.g:9118:1: ( rule__XSwitchExpression__Group_2_1__1__Impl rule__XSwitchExpression__Group_2_1__2 )\n // ../org.xtext.scripting.ui/src-gen/org/xtext/scripting/ui/contentassist/antlr/internal/InternalScripting.g:9119:2: rule__XSwitchExpression__Group_2_1__1__Impl rule__XSwitchExpression__Group_2_1__2\n {\n pushFollow(FOLLOW_rule__XSwitchExpression__Group_2_1__1__Impl_in_rule__XSwitchExpression__Group_2_1__118594);\n rule__XSwitchExpression__Group_2_1__1__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n pushFollow(FOLLOW_rule__XSwitchExpression__Group_2_1__2_in_rule__XSwitchExpression__Group_2_1__118597);\n rule__XSwitchExpression__Group_2_1__2();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "535863cb5ba08c65115aaef6ec0ba227", "score": "0.7988224", "text": "public final void rule__XSwitchExpression__Group_2_0__2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../de.gammarcraft.aqua.ui/src-gen/de/gammarcraft/aqua/ui/contentassist/antlr/internal/InternalAqua.g:13362:1: ( rule__XSwitchExpression__Group_2_0__2__Impl )\n // ../de.gammarcraft.aqua.ui/src-gen/de/gammarcraft/aqua/ui/contentassist/antlr/internal/InternalAqua.g:13363:2: rule__XSwitchExpression__Group_2_0__2__Impl\n {\n pushFollow(FOLLOW_rule__XSwitchExpression__Group_2_0__2__Impl_in_rule__XSwitchExpression__Group_2_0__227233);\n rule__XSwitchExpression__Group_2_0__2__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "9a4f319d08849d674ffc9e21776c8a55", "score": "0.7985147", "text": "public final void rule__XSwitchExpression__Group_2_0_0__0__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.scripting.ui/src-gen/org/xtext/scripting/ui/contentassist/antlr/internal/InternalScripting.g:9007:1: ( ( ( rule__XSwitchExpression__Group_2_0_0_0__0 ) ) )\n // ../org.xtext.scripting.ui/src-gen/org/xtext/scripting/ui/contentassist/antlr/internal/InternalScripting.g:9008:1: ( ( rule__XSwitchExpression__Group_2_0_0_0__0 ) )\n {\n // ../org.xtext.scripting.ui/src-gen/org/xtext/scripting/ui/contentassist/antlr/internal/InternalScripting.g:9008:1: ( ( rule__XSwitchExpression__Group_2_0_0_0__0 ) )\n // ../org.xtext.scripting.ui/src-gen/org/xtext/scripting/ui/contentassist/antlr/internal/InternalScripting.g:9009:1: ( rule__XSwitchExpression__Group_2_0_0_0__0 )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXSwitchExpressionAccess().getGroup_2_0_0_0()); \n }\n // ../org.xtext.scripting.ui/src-gen/org/xtext/scripting/ui/contentassist/antlr/internal/InternalScripting.g:9010:1: ( rule__XSwitchExpression__Group_2_0_0_0__0 )\n // ../org.xtext.scripting.ui/src-gen/org/xtext/scripting/ui/contentassist/antlr/internal/InternalScripting.g:9010:2: rule__XSwitchExpression__Group_2_0_0_0__0\n {\n pushFollow(FOLLOW_rule__XSwitchExpression__Group_2_0_0_0__0_in_rule__XSwitchExpression__Group_2_0_0__0__Impl18379);\n rule__XSwitchExpression__Group_2_0_0_0__0();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXSwitchExpressionAccess().getGroup_2_0_0_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "f37515d4343d9e1f6102e883123e28f2", "score": "0.7972403", "text": "public final void rule__XSwitchExpression__Group_2_1__0__Impl() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalModel.g:11466:1: ( ( ( rule__XSwitchExpression__Group_2_1_0__0 )? ) )\r\n // InternalModel.g:11467:1: ( ( rule__XSwitchExpression__Group_2_1_0__0 )? )\r\n {\r\n // InternalModel.g:11467:1: ( ( rule__XSwitchExpression__Group_2_1_0__0 )? )\r\n // InternalModel.g:11468:2: ( rule__XSwitchExpression__Group_2_1_0__0 )?\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getXSwitchExpressionAccess().getGroup_2_1_0()); \r\n }\r\n // InternalModel.g:11469:2: ( rule__XSwitchExpression__Group_2_1_0__0 )?\r\n int alt106=2;\r\n alt106 = dfa106.predict(input);\r\n switch (alt106) {\r\n case 1 :\r\n // InternalModel.g:11469:3: rule__XSwitchExpression__Group_2_1_0__0\r\n {\r\n pushFollow(FOLLOW_2);\r\n rule__XSwitchExpression__Group_2_1_0__0();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n break;\r\n\r\n }\r\n\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getXSwitchExpressionAccess().getGroup_2_1_0()); \r\n }\r\n\r\n }\r\n\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 finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "0ba1f68e289315db4efa910f59ebcef1", "score": "0.7970612", "text": "public final void rule__XSwitchExpression__Group_2_0__0__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.tortoiseshell.ui/src-gen/org/xtext/tortoiseshell/ui/contentassist/antlr/internal/InternalTortoiseShell.g:8278:1: ( ( ( rule__XSwitchExpression__Group_2_0_0__0 )? ) )\n // ../org.xtext.tortoiseshell.ui/src-gen/org/xtext/tortoiseshell/ui/contentassist/antlr/internal/InternalTortoiseShell.g:8279:1: ( ( rule__XSwitchExpression__Group_2_0_0__0 )? )\n {\n // ../org.xtext.tortoiseshell.ui/src-gen/org/xtext/tortoiseshell/ui/contentassist/antlr/internal/InternalTortoiseShell.g:8279:1: ( ( rule__XSwitchExpression__Group_2_0_0__0 )? )\n // ../org.xtext.tortoiseshell.ui/src-gen/org/xtext/tortoiseshell/ui/contentassist/antlr/internal/InternalTortoiseShell.g:8280:1: ( rule__XSwitchExpression__Group_2_0_0__0 )?\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXSwitchExpressionAccess().getGroup_2_0_0()); \n }\n // ../org.xtext.tortoiseshell.ui/src-gen/org/xtext/tortoiseshell/ui/contentassist/antlr/internal/InternalTortoiseShell.g:8281:1: ( rule__XSwitchExpression__Group_2_0_0__0 )?\n int alt63=2;\n int LA63_0 = input.LA(1);\n\n if ( (LA63_0==RULE_ID) ) {\n int LA63_1 = input.LA(2);\n\n if ( (LA63_1==56) ) {\n alt63=1;\n }\n }\n switch (alt63) {\n case 1 :\n // ../org.xtext.tortoiseshell.ui/src-gen/org/xtext/tortoiseshell/ui/contentassist/antlr/internal/InternalTortoiseShell.g:8281:2: rule__XSwitchExpression__Group_2_0_0__0\n {\n pushFollow(FOLLOW_rule__XSwitchExpression__Group_2_0_0__0_in_rule__XSwitchExpression__Group_2_0__0__Impl16862);\n rule__XSwitchExpression__Group_2_0_0__0();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n break;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXSwitchExpressionAccess().getGroup_2_0_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "73d1d4c49386435d1fe699009fb3736d", "score": "0.7963876", "text": "public final void rule__XSwitchExpression__Group_2_0_0_0__2() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalModel.g:11427:1: ( rule__XSwitchExpression__Group_2_0_0_0__2__Impl )\r\n // InternalModel.g:11428:2: rule__XSwitchExpression__Group_2_0_0_0__2__Impl\r\n {\r\n pushFollow(FOLLOW_2);\r\n rule__XSwitchExpression__Group_2_0_0_0__2__Impl();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\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 finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "5fce27278bb333a61c23891521a4bd47", "score": "0.7957035", "text": "public final void rule__XSwitchExpression__Group_2_1_0__0__Impl() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalModel.g:11519:1: ( ( ( rule__XSwitchExpression__Group_2_1_0_0__0 ) ) )\r\n // InternalModel.g:11520:1: ( ( rule__XSwitchExpression__Group_2_1_0_0__0 ) )\r\n {\r\n // InternalModel.g:11520:1: ( ( rule__XSwitchExpression__Group_2_1_0_0__0 ) )\r\n // InternalModel.g:11521:2: ( rule__XSwitchExpression__Group_2_1_0_0__0 )\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getXSwitchExpressionAccess().getGroup_2_1_0_0()); \r\n }\r\n // InternalModel.g:11522:2: ( rule__XSwitchExpression__Group_2_1_0_0__0 )\r\n // InternalModel.g:11522:3: rule__XSwitchExpression__Group_2_1_0_0__0\r\n {\r\n pushFollow(FOLLOW_2);\r\n rule__XSwitchExpression__Group_2_1_0_0__0();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getXSwitchExpressionAccess().getGroup_2_1_0_0()); \r\n }\r\n\r\n }\r\n\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 finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "86e188f8c94dc6cec716dec99611c981", "score": "0.7955483", "text": "public final void rule__XSwitchExpression__Group_2_1__0__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.tortoiseshell.ui/src-gen/org/xtext/tortoiseshell/ui/contentassist/antlr/internal/InternalTortoiseShell.g:8432:1: ( ( ( rule__XSwitchExpression__Group_2_1_0__0 ) ) )\n // ../org.xtext.tortoiseshell.ui/src-gen/org/xtext/tortoiseshell/ui/contentassist/antlr/internal/InternalTortoiseShell.g:8433:1: ( ( rule__XSwitchExpression__Group_2_1_0__0 ) )\n {\n // ../org.xtext.tortoiseshell.ui/src-gen/org/xtext/tortoiseshell/ui/contentassist/antlr/internal/InternalTortoiseShell.g:8433:1: ( ( rule__XSwitchExpression__Group_2_1_0__0 ) )\n // ../org.xtext.tortoiseshell.ui/src-gen/org/xtext/tortoiseshell/ui/contentassist/antlr/internal/InternalTortoiseShell.g:8434:1: ( rule__XSwitchExpression__Group_2_1_0__0 )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXSwitchExpressionAccess().getGroup_2_1_0()); \n }\n // ../org.xtext.tortoiseshell.ui/src-gen/org/xtext/tortoiseshell/ui/contentassist/antlr/internal/InternalTortoiseShell.g:8435:1: ( rule__XSwitchExpression__Group_2_1_0__0 )\n // ../org.xtext.tortoiseshell.ui/src-gen/org/xtext/tortoiseshell/ui/contentassist/antlr/internal/InternalTortoiseShell.g:8435:2: rule__XSwitchExpression__Group_2_1_0__0\n {\n pushFollow(FOLLOW_rule__XSwitchExpression__Group_2_1_0__0_in_rule__XSwitchExpression__Group_2_1__0__Impl17166);\n rule__XSwitchExpression__Group_2_1_0__0();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXSwitchExpressionAccess().getGroup_2_1_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "c1a660c2c95c6795f1731ad2c07b4c34", "score": "0.7948741", "text": "public final void rule__XSwitchExpression__Group_2_0_0__0() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalModel.g:11346:1: ( rule__XSwitchExpression__Group_2_0_0__0__Impl )\r\n // InternalModel.g:11347:2: rule__XSwitchExpression__Group_2_0_0__0__Impl\r\n {\r\n pushFollow(FOLLOW_2);\r\n rule__XSwitchExpression__Group_2_0_0__0__Impl();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\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 finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "7d8f14b143227c5272d4f1bc0d8545e1", "score": "0.79400575", "text": "public final void rule__XSwitchExpression__Group_2_1_0__0__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.tortoiseshell.ui/src-gen/org/xtext/tortoiseshell/ui/contentassist/antlr/internal/InternalTortoiseShell.g:8525:1: ( ( ( rule__XSwitchExpression__Group_2_1_0_0__0 ) ) )\n // ../org.xtext.tortoiseshell.ui/src-gen/org/xtext/tortoiseshell/ui/contentassist/antlr/internal/InternalTortoiseShell.g:8526:1: ( ( rule__XSwitchExpression__Group_2_1_0_0__0 ) )\n {\n // ../org.xtext.tortoiseshell.ui/src-gen/org/xtext/tortoiseshell/ui/contentassist/antlr/internal/InternalTortoiseShell.g:8526:1: ( ( rule__XSwitchExpression__Group_2_1_0_0__0 ) )\n // ../org.xtext.tortoiseshell.ui/src-gen/org/xtext/tortoiseshell/ui/contentassist/antlr/internal/InternalTortoiseShell.g:8527:1: ( rule__XSwitchExpression__Group_2_1_0_0__0 )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXSwitchExpressionAccess().getGroup_2_1_0_0()); \n }\n // ../org.xtext.tortoiseshell.ui/src-gen/org/xtext/tortoiseshell/ui/contentassist/antlr/internal/InternalTortoiseShell.g:8528:1: ( rule__XSwitchExpression__Group_2_1_0_0__0 )\n // ../org.xtext.tortoiseshell.ui/src-gen/org/xtext/tortoiseshell/ui/contentassist/antlr/internal/InternalTortoiseShell.g:8528:2: rule__XSwitchExpression__Group_2_1_0_0__0\n {\n pushFollow(FOLLOW_rule__XSwitchExpression__Group_2_1_0_0__0_in_rule__XSwitchExpression__Group_2_1_0__0__Impl17348);\n rule__XSwitchExpression__Group_2_1_0_0__0();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXSwitchExpressionAccess().getGroup_2_1_0_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "c592f659c111f2f5224d7bb2155f5ad1", "score": "0.79390377", "text": "public final void rule__XSwitchExpression__Group_2_1__1() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalModel.g:11481:1: ( rule__XSwitchExpression__Group_2_1__1__Impl )\r\n // InternalModel.g:11482:2: rule__XSwitchExpression__Group_2_1__1__Impl\r\n {\r\n pushFollow(FOLLOW_2);\r\n rule__XSwitchExpression__Group_2_1__1__Impl();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\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 finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "e65604a42ae9373b7369f5ecbdea8e6a", "score": "0.7937761", "text": "public final void rule__XSwitchExpression__Group_2_1_0_0__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.scripting.ui/src-gen/org/xtext/scripting/ui/contentassist/antlr/internal/InternalScripting.g:9213:1: ( rule__XSwitchExpression__Group_2_1_0_0__0__Impl rule__XSwitchExpression__Group_2_1_0_0__1 )\n // ../org.xtext.scripting.ui/src-gen/org/xtext/scripting/ui/contentassist/antlr/internal/InternalScripting.g:9214:2: rule__XSwitchExpression__Group_2_1_0_0__0__Impl rule__XSwitchExpression__Group_2_1_0_0__1\n {\n pushFollow(FOLLOW_rule__XSwitchExpression__Group_2_1_0_0__0__Impl_in_rule__XSwitchExpression__Group_2_1_0_0__018778);\n rule__XSwitchExpression__Group_2_1_0_0__0__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n pushFollow(FOLLOW_rule__XSwitchExpression__Group_2_1_0_0__1_in_rule__XSwitchExpression__Group_2_1_0_0__018781);\n rule__XSwitchExpression__Group_2_1_0_0__1();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "325d3ab46a28005fded0e30e8eac5a3c", "score": "0.7918323", "text": "public final void rule__XSwitchExpression__Group_2_1__0__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../de.gammarcraft.aqua.ui/src-gen/de/gammarcraft/aqua/ui/contentassist/antlr/internal/InternalAqua.g:13536:1: ( ( ( rule__XSwitchExpression__Group_2_1_0__0 )? ) )\n // ../de.gammarcraft.aqua.ui/src-gen/de/gammarcraft/aqua/ui/contentassist/antlr/internal/InternalAqua.g:13537:1: ( ( rule__XSwitchExpression__Group_2_1_0__0 )? )\n {\n // ../de.gammarcraft.aqua.ui/src-gen/de/gammarcraft/aqua/ui/contentassist/antlr/internal/InternalAqua.g:13537:1: ( ( rule__XSwitchExpression__Group_2_1_0__0 )? )\n // ../de.gammarcraft.aqua.ui/src-gen/de/gammarcraft/aqua/ui/contentassist/antlr/internal/InternalAqua.g:13538:1: ( rule__XSwitchExpression__Group_2_1_0__0 )?\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXSwitchExpressionAccess().getGroup_2_1_0()); \n }\n // ../de.gammarcraft.aqua.ui/src-gen/de/gammarcraft/aqua/ui/contentassist/antlr/internal/InternalAqua.g:13539:1: ( rule__XSwitchExpression__Group_2_1_0__0 )?\n int alt102=2;\n alt102 = dfa102.predict(input);\n switch (alt102) {\n case 1 :\n // ../de.gammarcraft.aqua.ui/src-gen/de/gammarcraft/aqua/ui/contentassist/antlr/internal/InternalAqua.g:13539:2: rule__XSwitchExpression__Group_2_1_0__0\n {\n pushFollow(FOLLOW_rule__XSwitchExpression__Group_2_1_0__0_in_rule__XSwitchExpression__Group_2_1__0__Impl27574);\n rule__XSwitchExpression__Group_2_1_0__0();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n break;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXSwitchExpressionAccess().getGroup_2_1_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "88df98fa9c4a730c51dd7829ba5d8e74", "score": "0.789155", "text": "public final void rule__XSwitchExpression__Group_2_0__2() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalModel.g:11319:1: ( rule__XSwitchExpression__Group_2_0__2__Impl )\r\n // InternalModel.g:11320:2: rule__XSwitchExpression__Group_2_0__2__Impl\r\n {\r\n pushFollow(FOLLOW_2);\r\n rule__XSwitchExpression__Group_2_0__2__Impl();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\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 finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "e579b2f3cc9f93dcdcbc04ee0368ad85", "score": "0.78726846", "text": "public final void rule__XSwitchExpression__Group__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.scripting.ui/src-gen/org/xtext/scripting/ui/contentassist/antlr/internal/InternalScripting.g:8735:1: ( rule__XSwitchExpression__Group__1__Impl rule__XSwitchExpression__Group__2 )\n // ../org.xtext.scripting.ui/src-gen/org/xtext/scripting/ui/contentassist/antlr/internal/InternalScripting.g:8736:2: rule__XSwitchExpression__Group__1__Impl rule__XSwitchExpression__Group__2\n {\n pushFollow(FOLLOW_rule__XSwitchExpression__Group__1__Impl_in_rule__XSwitchExpression__Group__117835);\n rule__XSwitchExpression__Group__1__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n pushFollow(FOLLOW_rule__XSwitchExpression__Group__2_in_rule__XSwitchExpression__Group__117838);\n rule__XSwitchExpression__Group__2();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "d8c878bbadacd047879d53461378c52d", "score": "0.7872124", "text": "public final void rule__XSwitchExpression__Group_2_0_0_0__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalMyDsl.g:8831:1: ( rule__XSwitchExpression__Group_2_0_0_0__1__Impl rule__XSwitchExpression__Group_2_0_0_0__2 )\n // InternalMyDsl.g:8832:2: rule__XSwitchExpression__Group_2_0_0_0__1__Impl rule__XSwitchExpression__Group_2_0_0_0__2\n {\n pushFollow(FOLLOW_66);\n rule__XSwitchExpression__Group_2_0_0_0__1__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n pushFollow(FOLLOW_2);\n rule__XSwitchExpression__Group_2_0_0_0__2();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "09b3858c6a7c8b0f2d13e492149bc4b7", "score": "0.78663045", "text": "public final void rule__XSwitchExpression__Group_2_1_0_0__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalMyDsl.g:8966:1: ( rule__XSwitchExpression__Group_2_1_0_0__0__Impl rule__XSwitchExpression__Group_2_1_0_0__1 )\n // InternalMyDsl.g:8967:2: rule__XSwitchExpression__Group_2_1_0_0__0__Impl rule__XSwitchExpression__Group_2_1_0_0__1\n {\n pushFollow(FOLLOW_66);\n rule__XSwitchExpression__Group_2_1_0_0__0__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n pushFollow(FOLLOW_2);\n rule__XSwitchExpression__Group_2_1_0_0__1();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "7ff144a3b757ceb3bdeb8bd924b6c7df", "score": "0.78375053", "text": "public final void rule__XSwitchExpression__Group_2_0__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.scripting.ui/src-gen/org/xtext/scripting/ui/contentassist/antlr/internal/InternalScripting.g:8935:1: ( rule__XSwitchExpression__Group_2_0__0__Impl rule__XSwitchExpression__Group_2_0__1 )\n // ../org.xtext.scripting.ui/src-gen/org/xtext/scripting/ui/contentassist/antlr/internal/InternalScripting.g:8936:2: rule__XSwitchExpression__Group_2_0__0__Impl rule__XSwitchExpression__Group_2_0__1\n {\n pushFollow(FOLLOW_rule__XSwitchExpression__Group_2_0__0__Impl_in_rule__XSwitchExpression__Group_2_0__018230);\n rule__XSwitchExpression__Group_2_0__0__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n pushFollow(FOLLOW_rule__XSwitchExpression__Group_2_0__1_in_rule__XSwitchExpression__Group_2_0__018233);\n rule__XSwitchExpression__Group_2_0__1();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "d24514380ddc9ff4c58e41ea68edc662", "score": "0.7832297", "text": "public final void rule__XSwitchExpression__Group_2_1__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalMyDsl.g:8885:1: ( rule__XSwitchExpression__Group_2_1__0__Impl rule__XSwitchExpression__Group_2_1__1 )\n // InternalMyDsl.g:8886:2: rule__XSwitchExpression__Group_2_1__0__Impl rule__XSwitchExpression__Group_2_1__1\n {\n pushFollow(FOLLOW_48);\n rule__XSwitchExpression__Group_2_1__0__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n pushFollow(FOLLOW_2);\n rule__XSwitchExpression__Group_2_1__1();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "a9053f2b28a56292ae99040a89f97f9c", "score": "0.78239733", "text": "public final void rule__XSwitchExpression__Group_2_0_0__0__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalMyDsl.g:8788:1: ( ( ( rule__XSwitchExpression__Group_2_0_0_0__0 ) ) )\n // InternalMyDsl.g:8789:1: ( ( rule__XSwitchExpression__Group_2_0_0_0__0 ) )\n {\n // InternalMyDsl.g:8789:1: ( ( rule__XSwitchExpression__Group_2_0_0_0__0 ) )\n // InternalMyDsl.g:8790:2: ( rule__XSwitchExpression__Group_2_0_0_0__0 )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXSwitchExpressionAccess().getGroup_2_0_0_0()); \n }\n // InternalMyDsl.g:8791:2: ( rule__XSwitchExpression__Group_2_0_0_0__0 )\n // InternalMyDsl.g:8791:3: rule__XSwitchExpression__Group_2_0_0_0__0\n {\n pushFollow(FOLLOW_2);\n rule__XSwitchExpression__Group_2_0_0_0__0();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXSwitchExpressionAccess().getGroup_2_0_0_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "a9a49152e67f34ac0da052f3c3511e57", "score": "0.78239053", "text": "public final void rule__XSwitchExpression__Group_2_0__0__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalMyDsl.g:8708:1: ( ( ( rule__XSwitchExpression__Group_2_0_0__0 ) ) )\n // InternalMyDsl.g:8709:1: ( ( rule__XSwitchExpression__Group_2_0_0__0 ) )\n {\n // InternalMyDsl.g:8709:1: ( ( rule__XSwitchExpression__Group_2_0_0__0 ) )\n // InternalMyDsl.g:8710:2: ( rule__XSwitchExpression__Group_2_0_0__0 )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXSwitchExpressionAccess().getGroup_2_0_0()); \n }\n // InternalMyDsl.g:8711:2: ( rule__XSwitchExpression__Group_2_0_0__0 )\n // InternalMyDsl.g:8711:3: rule__XSwitchExpression__Group_2_0_0__0\n {\n pushFollow(FOLLOW_2);\n rule__XSwitchExpression__Group_2_0_0__0();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXSwitchExpressionAccess().getGroup_2_0_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "be114f2354f060a921d5eb28585ac700", "score": "0.7818847", "text": "public final void rule__XSwitchExpression__Group_2_1_0_0__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.tortoiseshell.ui/src-gen/org/xtext/tortoiseshell/ui/contentassist/antlr/internal/InternalTortoiseShell.g:8575:1: ( rule__XSwitchExpression__Group_2_1_0_0__1__Impl rule__XSwitchExpression__Group_2_1_0_0__2 )\n // ../org.xtext.tortoiseshell.ui/src-gen/org/xtext/tortoiseshell/ui/contentassist/antlr/internal/InternalTortoiseShell.g:8576:2: rule__XSwitchExpression__Group_2_1_0_0__1__Impl rule__XSwitchExpression__Group_2_1_0_0__2\n {\n pushFollow(FOLLOW_rule__XSwitchExpression__Group_2_1_0_0__1__Impl_in_rule__XSwitchExpression__Group_2_1_0_0__117442);\n rule__XSwitchExpression__Group_2_1_0_0__1__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n pushFollow(FOLLOW_rule__XSwitchExpression__Group_2_1_0_0__2_in_rule__XSwitchExpression__Group_2_1_0_0__117445);\n rule__XSwitchExpression__Group_2_1_0_0__2();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "02677efa59fed5acb5404ba0f4bef3eb", "score": "0.78176284", "text": "public final void rule__XSwitchExpression__Group_2_1__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.tortoiseshell.ui/src-gen/org/xtext/tortoiseshell/ui/contentassist/antlr/internal/InternalTortoiseShell.g:8420:1: ( rule__XSwitchExpression__Group_2_1__0__Impl rule__XSwitchExpression__Group_2_1__1 )\n // ../org.xtext.tortoiseshell.ui/src-gen/org/xtext/tortoiseshell/ui/contentassist/antlr/internal/InternalTortoiseShell.g:8421:2: rule__XSwitchExpression__Group_2_1__0__Impl rule__XSwitchExpression__Group_2_1__1\n {\n pushFollow(FOLLOW_rule__XSwitchExpression__Group_2_1__0__Impl_in_rule__XSwitchExpression__Group_2_1__017136);\n rule__XSwitchExpression__Group_2_1__0__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n pushFollow(FOLLOW_rule__XSwitchExpression__Group_2_1__1_in_rule__XSwitchExpression__Group_2_1__017139);\n rule__XSwitchExpression__Group_2_1__1();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "e48c5e06fa94dc8123cf9dfb51ebd895", "score": "0.7813534", "text": "public final void rule__XSwitchExpression__Group_2_1_0_0__0__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.scripting.ui/src-gen/org/xtext/scripting/ui/contentassist/antlr/internal/InternalScripting.g:9225:1: ( ( '(' ) )\n // ../org.xtext.scripting.ui/src-gen/org/xtext/scripting/ui/contentassist/antlr/internal/InternalScripting.g:9226:1: ( '(' )\n {\n // ../org.xtext.scripting.ui/src-gen/org/xtext/scripting/ui/contentassist/antlr/internal/InternalScripting.g:9226:1: ( '(' )\n // ../org.xtext.scripting.ui/src-gen/org/xtext/scripting/ui/contentassist/antlr/internal/InternalScripting.g:9227:1: '('\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXSwitchExpressionAccess().getLeftParenthesisKeyword_2_1_0_0_0()); \n }\n match(input,58,FOLLOW_58_in_rule__XSwitchExpression__Group_2_1_0_0__0__Impl18809); if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXSwitchExpressionAccess().getLeftParenthesisKeyword_2_1_0_0_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "3b04ed820e823a9185a210692aaab16d", "score": "0.78110063", "text": "public final void rule__XSwitchExpression__Group_2_0_0_0__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.scripting.ui/src-gen/org/xtext/scripting/ui/contentassist/antlr/internal/InternalScripting.g:9026:1: ( rule__XSwitchExpression__Group_2_0_0_0__0__Impl rule__XSwitchExpression__Group_2_0_0_0__1 )\n // ../org.xtext.scripting.ui/src-gen/org/xtext/scripting/ui/contentassist/antlr/internal/InternalScripting.g:9027:2: rule__XSwitchExpression__Group_2_0_0_0__0__Impl rule__XSwitchExpression__Group_2_0_0_0__1\n {\n pushFollow(FOLLOW_rule__XSwitchExpression__Group_2_0_0_0__0__Impl_in_rule__XSwitchExpression__Group_2_0_0_0__018411);\n rule__XSwitchExpression__Group_2_0_0_0__0__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n pushFollow(FOLLOW_rule__XSwitchExpression__Group_2_0_0_0__1_in_rule__XSwitchExpression__Group_2_0_0_0__018414);\n rule__XSwitchExpression__Group_2_0_0_0__1();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "4c418a9eaa1b5ce5f05806c9779d5bae", "score": "0.7800178", "text": "public final void rule__XSwitchExpression__Group_2_0_0__0__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.tortoiseshell.ui/src-gen/org/xtext/tortoiseshell/ui/contentassist/antlr/internal/InternalTortoiseShell.g:8338:1: ( ( ( rule__XSwitchExpression__Group_2_0_0_0__0 ) ) )\n // ../org.xtext.tortoiseshell.ui/src-gen/org/xtext/tortoiseshell/ui/contentassist/antlr/internal/InternalTortoiseShell.g:8339:1: ( ( rule__XSwitchExpression__Group_2_0_0_0__0 ) )\n {\n // ../org.xtext.tortoiseshell.ui/src-gen/org/xtext/tortoiseshell/ui/contentassist/antlr/internal/InternalTortoiseShell.g:8339:1: ( ( rule__XSwitchExpression__Group_2_0_0_0__0 ) )\n // ../org.xtext.tortoiseshell.ui/src-gen/org/xtext/tortoiseshell/ui/contentassist/antlr/internal/InternalTortoiseShell.g:8340:1: ( rule__XSwitchExpression__Group_2_0_0_0__0 )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXSwitchExpressionAccess().getGroup_2_0_0_0()); \n }\n // ../org.xtext.tortoiseshell.ui/src-gen/org/xtext/tortoiseshell/ui/contentassist/antlr/internal/InternalTortoiseShell.g:8341:1: ( rule__XSwitchExpression__Group_2_0_0_0__0 )\n // ../org.xtext.tortoiseshell.ui/src-gen/org/xtext/tortoiseshell/ui/contentassist/antlr/internal/InternalTortoiseShell.g:8341:2: rule__XSwitchExpression__Group_2_0_0_0__0\n {\n pushFollow(FOLLOW_rule__XSwitchExpression__Group_2_0_0_0__0_in_rule__XSwitchExpression__Group_2_0_0__0__Impl16981);\n rule__XSwitchExpression__Group_2_0_0_0__0();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXSwitchExpressionAccess().getGroup_2_0_0_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "404125febec45932bc1a40539428a25f", "score": "0.77873796", "text": "public final void rule__XSwitchExpression__Group_2_0_0_0__1__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.scripting.ui/src-gen/org/xtext/scripting/ui/contentassist/antlr/internal/InternalScripting.g:9066:1: ( ( ':' ) )\n // ../org.xtext.scripting.ui/src-gen/org/xtext/scripting/ui/contentassist/antlr/internal/InternalScripting.g:9067:1: ( ':' )\n {\n // ../org.xtext.scripting.ui/src-gen/org/xtext/scripting/ui/contentassist/antlr/internal/InternalScripting.g:9067:1: ( ':' )\n // ../org.xtext.scripting.ui/src-gen/org/xtext/scripting/ui/contentassist/antlr/internal/InternalScripting.g:9068:1: ':'\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXSwitchExpressionAccess().getColonKeyword_2_0_0_0_1()); \n }\n match(input,62,FOLLOW_62_in_rule__XSwitchExpression__Group_2_0_0_0__1__Impl18499); if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXSwitchExpressionAccess().getColonKeyword_2_0_0_0_1()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "9971af2bd4ae9a10ba1ba9a5a2d76b76", "score": "0.778608", "text": "public final void rule__XSwitchExpression__Group__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.scripting.ui/src-gen/org/xtext/scripting/ui/contentassist/antlr/internal/InternalScripting.g:8704:1: ( rule__XSwitchExpression__Group__0__Impl rule__XSwitchExpression__Group__1 )\n // ../org.xtext.scripting.ui/src-gen/org/xtext/scripting/ui/contentassist/antlr/internal/InternalScripting.g:8705:2: rule__XSwitchExpression__Group__0__Impl rule__XSwitchExpression__Group__1\n {\n pushFollow(FOLLOW_rule__XSwitchExpression__Group__0__Impl_in_rule__XSwitchExpression__Group__017774);\n rule__XSwitchExpression__Group__0__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n pushFollow(FOLLOW_rule__XSwitchExpression__Group__1_in_rule__XSwitchExpression__Group__017777);\n rule__XSwitchExpression__Group__1();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "2179ef96dcab519119a7df257f3d7a8c", "score": "0.7779827", "text": "public final void rule__XSwitchExpression__Group__1__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.scripting.ui/src-gen/org/xtext/scripting/ui/contentassist/antlr/internal/InternalScripting.g:8747:1: ( ( 'switch' ) )\n // ../org.xtext.scripting.ui/src-gen/org/xtext/scripting/ui/contentassist/antlr/internal/InternalScripting.g:8748:1: ( 'switch' )\n {\n // ../org.xtext.scripting.ui/src-gen/org/xtext/scripting/ui/contentassist/antlr/internal/InternalScripting.g:8748:1: ( 'switch' )\n // ../org.xtext.scripting.ui/src-gen/org/xtext/scripting/ui/contentassist/antlr/internal/InternalScripting.g:8749:1: 'switch'\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXSwitchExpressionAccess().getSwitchKeyword_1()); \n }\n match(input,61,FOLLOW_61_in_rule__XSwitchExpression__Group__1__Impl17866); if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXSwitchExpressionAccess().getSwitchKeyword_1()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "8f872364df8ced7e0033b865a20e86dc", "score": "0.77761024", "text": "public final void rule__XSwitchExpression__Group_2_1__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.tortoiseshell.ui/src-gen/org/xtext/tortoiseshell/ui/contentassist/antlr/internal/InternalTortoiseShell.g:8449:1: ( rule__XSwitchExpression__Group_2_1__1__Impl rule__XSwitchExpression__Group_2_1__2 )\n // ../org.xtext.tortoiseshell.ui/src-gen/org/xtext/tortoiseshell/ui/contentassist/antlr/internal/InternalTortoiseShell.g:8450:2: rule__XSwitchExpression__Group_2_1__1__Impl rule__XSwitchExpression__Group_2_1__2\n {\n pushFollow(FOLLOW_rule__XSwitchExpression__Group_2_1__1__Impl_in_rule__XSwitchExpression__Group_2_1__117196);\n rule__XSwitchExpression__Group_2_1__1__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n pushFollow(FOLLOW_rule__XSwitchExpression__Group_2_1__2_in_rule__XSwitchExpression__Group_2_1__117199);\n rule__XSwitchExpression__Group_2_1__2();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "95cb394ed3ac8152515b501db52b4a43", "score": "0.77666444", "text": "public final void rule__XSwitchExpression__Group_2_0_0_0__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalMyDsl.g:8804:1: ( rule__XSwitchExpression__Group_2_0_0_0__0__Impl rule__XSwitchExpression__Group_2_0_0_0__1 )\n // InternalMyDsl.g:8805:2: rule__XSwitchExpression__Group_2_0_0_0__0__Impl rule__XSwitchExpression__Group_2_0_0_0__1\n {\n pushFollow(FOLLOW_23);\n rule__XSwitchExpression__Group_2_0_0_0__0__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n pushFollow(FOLLOW_2);\n rule__XSwitchExpression__Group_2_0_0_0__1();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "229819cbda9582267f0bbfc85e63a66d", "score": "0.77645844", "text": "public final void rule__XSwitchExpression__Group_2_1_0_0__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.tortoiseshell.ui/src-gen/org/xtext/tortoiseshell/ui/contentassist/antlr/internal/InternalTortoiseShell.g:8544:1: ( rule__XSwitchExpression__Group_2_1_0_0__0__Impl rule__XSwitchExpression__Group_2_1_0_0__1 )\n // ../org.xtext.tortoiseshell.ui/src-gen/org/xtext/tortoiseshell/ui/contentassist/antlr/internal/InternalTortoiseShell.g:8545:2: rule__XSwitchExpression__Group_2_1_0_0__0__Impl rule__XSwitchExpression__Group_2_1_0_0__1\n {\n pushFollow(FOLLOW_rule__XSwitchExpression__Group_2_1_0_0__0__Impl_in_rule__XSwitchExpression__Group_2_1_0_0__017380);\n rule__XSwitchExpression__Group_2_1_0_0__0__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n pushFollow(FOLLOW_rule__XSwitchExpression__Group_2_1_0_0__1_in_rule__XSwitchExpression__Group_2_1_0_0__017383);\n rule__XSwitchExpression__Group_2_1_0_0__1();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "3c84c03f101da7fe306222ac6f79b071", "score": "0.77602166", "text": "public final void rule__XSwitchExpression__Group_2_1_0__0__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../de.gammarcraft.aqua.ui/src-gen/de/gammarcraft/aqua/ui/contentassist/antlr/internal/InternalAqua.g:13596:1: ( ( ( rule__XSwitchExpression__Group_2_1_0_0__0 ) ) )\n // ../de.gammarcraft.aqua.ui/src-gen/de/gammarcraft/aqua/ui/contentassist/antlr/internal/InternalAqua.g:13597:1: ( ( rule__XSwitchExpression__Group_2_1_0_0__0 ) )\n {\n // ../de.gammarcraft.aqua.ui/src-gen/de/gammarcraft/aqua/ui/contentassist/antlr/internal/InternalAqua.g:13597:1: ( ( rule__XSwitchExpression__Group_2_1_0_0__0 ) )\n // ../de.gammarcraft.aqua.ui/src-gen/de/gammarcraft/aqua/ui/contentassist/antlr/internal/InternalAqua.g:13598:1: ( rule__XSwitchExpression__Group_2_1_0_0__0 )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXSwitchExpressionAccess().getGroup_2_1_0_0()); \n }\n // ../de.gammarcraft.aqua.ui/src-gen/de/gammarcraft/aqua/ui/contentassist/antlr/internal/InternalAqua.g:13599:1: ( rule__XSwitchExpression__Group_2_1_0_0__0 )\n // ../de.gammarcraft.aqua.ui/src-gen/de/gammarcraft/aqua/ui/contentassist/antlr/internal/InternalAqua.g:13599:2: rule__XSwitchExpression__Group_2_1_0_0__0\n {\n pushFollow(FOLLOW_rule__XSwitchExpression__Group_2_1_0_0__0_in_rule__XSwitchExpression__Group_2_1_0__0__Impl27693);\n rule__XSwitchExpression__Group_2_1_0_0__0();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXSwitchExpressionAccess().getGroup_2_1_0_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "8f3b72e923fcd654effbb5b4fd67ab73", "score": "0.7754587", "text": "public final void rule__XSwitchExpression__Group_2_0__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalMyDsl.g:8723:1: ( rule__XSwitchExpression__Group_2_0__1__Impl rule__XSwitchExpression__Group_2_0__2 )\n // InternalMyDsl.g:8724:2: rule__XSwitchExpression__Group_2_0__1__Impl rule__XSwitchExpression__Group_2_0__2\n {\n pushFollow(FOLLOW_59);\n rule__XSwitchExpression__Group_2_0__1__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n pushFollow(FOLLOW_2);\n rule__XSwitchExpression__Group_2_0__2();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "0c675c20aad94355834a58fd84ce4c91", "score": "0.7752086", "text": "public final void rule__XSwitchExpression__Group_2_0__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalMyDsl.g:8696:1: ( rule__XSwitchExpression__Group_2_0__0__Impl rule__XSwitchExpression__Group_2_0__1 )\n // InternalMyDsl.g:8697:2: rule__XSwitchExpression__Group_2_0__0__Impl rule__XSwitchExpression__Group_2_0__1\n {\n pushFollow(FOLLOW_48);\n rule__XSwitchExpression__Group_2_0__0__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n pushFollow(FOLLOW_2);\n rule__XSwitchExpression__Group_2_0__1();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "cfb652d54c097bec282e462b1e836e82", "score": "0.77314824", "text": "public final void rule__XSwitchExpression__Group_2_1_0_0__2__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.scripting.ui/src-gen/org/xtext/scripting/ui/contentassist/antlr/internal/InternalScripting.g:9284:1: ( ( ':' ) )\n // ../org.xtext.scripting.ui/src-gen/org/xtext/scripting/ui/contentassist/antlr/internal/InternalScripting.g:9285:1: ( ':' )\n {\n // ../org.xtext.scripting.ui/src-gen/org/xtext/scripting/ui/contentassist/antlr/internal/InternalScripting.g:9285:1: ( ':' )\n // ../org.xtext.scripting.ui/src-gen/org/xtext/scripting/ui/contentassist/antlr/internal/InternalScripting.g:9286:1: ':'\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXSwitchExpressionAccess().getColonKeyword_2_1_0_0_2()); \n }\n match(input,62,FOLLOW_62_in_rule__XSwitchExpression__Group_2_1_0_0__2__Impl18928); if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXSwitchExpressionAccess().getColonKeyword_2_1_0_0_2()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "3a14632c733974de3c930ec78bf9048b", "score": "0.77271414", "text": "public final void rule__XSwitchExpression__Group__2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.scripting.ui/src-gen/org/xtext/scripting/ui/contentassist/antlr/internal/InternalScripting.g:8766:1: ( rule__XSwitchExpression__Group__2__Impl rule__XSwitchExpression__Group__3 )\n // ../org.xtext.scripting.ui/src-gen/org/xtext/scripting/ui/contentassist/antlr/internal/InternalScripting.g:8767:2: rule__XSwitchExpression__Group__2__Impl rule__XSwitchExpression__Group__3\n {\n pushFollow(FOLLOW_rule__XSwitchExpression__Group__2__Impl_in_rule__XSwitchExpression__Group__217897);\n rule__XSwitchExpression__Group__2__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n pushFollow(FOLLOW_rule__XSwitchExpression__Group__3_in_rule__XSwitchExpression__Group__217900);\n rule__XSwitchExpression__Group__3();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "e556fa3b725f1a868acfa4a774d359f6", "score": "0.77253854", "text": "public final void rule__XSwitchExpression__Group__1__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalMyDsl.g:8546:1: ( ( 'switch' ) )\n // InternalMyDsl.g:8547:1: ( 'switch' )\n {\n // InternalMyDsl.g:8547:1: ( 'switch' )\n // InternalMyDsl.g:8548:2: 'switch'\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXSwitchExpressionAccess().getSwitchKeyword_1()); \n }\n match(input,69,FOLLOW_2); if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXSwitchExpressionAccess().getSwitchKeyword_1()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "a18181e097171ba6d1a3793c13757dc0", "score": "0.77189237", "text": "public final void rule__XSwitchExpression__Group_2_0_0__0__Impl() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalModel.g:11357:1: ( ( ( rule__XSwitchExpression__Group_2_0_0_0__0 ) ) )\r\n // InternalModel.g:11358:1: ( ( rule__XSwitchExpression__Group_2_0_0_0__0 ) )\r\n {\r\n // InternalModel.g:11358:1: ( ( rule__XSwitchExpression__Group_2_0_0_0__0 ) )\r\n // InternalModel.g:11359:2: ( rule__XSwitchExpression__Group_2_0_0_0__0 )\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getXSwitchExpressionAccess().getGroup_2_0_0_0()); \r\n }\r\n // InternalModel.g:11360:2: ( rule__XSwitchExpression__Group_2_0_0_0__0 )\r\n // InternalModel.g:11360:3: rule__XSwitchExpression__Group_2_0_0_0__0\r\n {\r\n pushFollow(FOLLOW_2);\r\n rule__XSwitchExpression__Group_2_0_0_0__0();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getXSwitchExpressionAccess().getGroup_2_0_0_0()); \r\n }\r\n\r\n }\r\n\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 finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "3ea0e89873fa6c770dc4de453b902754", "score": "0.769921", "text": "public final void rule__XSwitchExpression__Group_2_0_0_0__1() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalModel.g:11400:1: ( rule__XSwitchExpression__Group_2_0_0_0__1__Impl rule__XSwitchExpression__Group_2_0_0_0__2 )\r\n // InternalModel.g:11401:2: rule__XSwitchExpression__Group_2_0_0_0__1__Impl rule__XSwitchExpression__Group_2_0_0_0__2\r\n {\r\n pushFollow(FOLLOW_77);\r\n rule__XSwitchExpression__Group_2_0_0_0__1__Impl();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n pushFollow(FOLLOW_2);\r\n rule__XSwitchExpression__Group_2_0_0_0__2();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\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 finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "5858c2122cd3c7d8e4bd1f0b5410f103", "score": "0.76983553", "text": "public final void rule__XSwitchExpression__Group__1__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.tortoiseshell.ui/src-gen/org/xtext/tortoiseshell/ui/contentassist/antlr/internal/InternalTortoiseShell.g:8078:1: ( ( 'switch' ) )\n // ../org.xtext.tortoiseshell.ui/src-gen/org/xtext/tortoiseshell/ui/contentassist/antlr/internal/InternalTortoiseShell.g:8079:1: ( 'switch' )\n {\n // ../org.xtext.tortoiseshell.ui/src-gen/org/xtext/tortoiseshell/ui/contentassist/antlr/internal/InternalTortoiseShell.g:8079:1: ( 'switch' )\n // ../org.xtext.tortoiseshell.ui/src-gen/org/xtext/tortoiseshell/ui/contentassist/antlr/internal/InternalTortoiseShell.g:8080:1: 'switch'\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXSwitchExpressionAccess().getSwitchKeyword_1()); \n }\n match(input,53,FOLLOW_53_in_rule__XSwitchExpression__Group__1__Impl16468); if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXSwitchExpressionAccess().getSwitchKeyword_1()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "a60089f4c08d88b81e3f5e91931b38d1", "score": "0.76975936", "text": "public final void rule__XSwitchExpression__Group_2_0__0__Impl() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalModel.g:11277:1: ( ( ( rule__XSwitchExpression__Group_2_0_0__0 ) ) )\r\n // InternalModel.g:11278:1: ( ( rule__XSwitchExpression__Group_2_0_0__0 ) )\r\n {\r\n // InternalModel.g:11278:1: ( ( rule__XSwitchExpression__Group_2_0_0__0 ) )\r\n // InternalModel.g:11279:2: ( rule__XSwitchExpression__Group_2_0_0__0 )\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getXSwitchExpressionAccess().getGroup_2_0_0()); \r\n }\r\n // InternalModel.g:11280:2: ( rule__XSwitchExpression__Group_2_0_0__0 )\r\n // InternalModel.g:11280:3: rule__XSwitchExpression__Group_2_0_0__0\r\n {\r\n pushFollow(FOLLOW_2);\r\n rule__XSwitchExpression__Group_2_0_0__0();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getXSwitchExpressionAccess().getGroup_2_0_0()); \r\n }\r\n\r\n }\r\n\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 finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "b8c75ce79d594387c32fa3a41bcdc469", "score": "0.76938474", "text": "public final void rule__XSwitchExpression__Group__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.tortoiseshell.ui/src-gen/org/xtext/tortoiseshell/ui/contentassist/antlr/internal/InternalTortoiseShell.g:8066:1: ( rule__XSwitchExpression__Group__1__Impl rule__XSwitchExpression__Group__2 )\n // ../org.xtext.tortoiseshell.ui/src-gen/org/xtext/tortoiseshell/ui/contentassist/antlr/internal/InternalTortoiseShell.g:8067:2: rule__XSwitchExpression__Group__1__Impl rule__XSwitchExpression__Group__2\n {\n pushFollow(FOLLOW_rule__XSwitchExpression__Group__1__Impl_in_rule__XSwitchExpression__Group__116437);\n rule__XSwitchExpression__Group__1__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n pushFollow(FOLLOW_rule__XSwitchExpression__Group__2_in_rule__XSwitchExpression__Group__116440);\n rule__XSwitchExpression__Group__2();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "4ca062294ad90cf500aa5c998c3b1193", "score": "0.76885146", "text": "public final void rule__XSwitchExpression__Group_2_1__2__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.scripting.ui/src-gen/org/xtext/scripting/ui/contentassist/antlr/internal/InternalScripting.g:9158:1: ( ( ')' ) )\n // ../org.xtext.scripting.ui/src-gen/org/xtext/scripting/ui/contentassist/antlr/internal/InternalScripting.g:9159:1: ( ')' )\n {\n // ../org.xtext.scripting.ui/src-gen/org/xtext/scripting/ui/contentassist/antlr/internal/InternalScripting.g:9159:1: ( ')' )\n // ../org.xtext.scripting.ui/src-gen/org/xtext/scripting/ui/contentassist/antlr/internal/InternalScripting.g:9160:1: ')'\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXSwitchExpressionAccess().getRightParenthesisKeyword_2_1_2()); \n }\n match(input,52,FOLLOW_52_in_rule__XSwitchExpression__Group_2_1__2__Impl18682); if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXSwitchExpressionAccess().getRightParenthesisKeyword_2_1_2()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "d37f0ed6c71cdc0f587641ed6b87912c", "score": "0.7687054", "text": "public final void rule__XSwitchExpression__Group_2_0__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.tortoiseshell.ui/src-gen/org/xtext/tortoiseshell/ui/contentassist/antlr/internal/InternalTortoiseShell.g:8266:1: ( rule__XSwitchExpression__Group_2_0__0__Impl rule__XSwitchExpression__Group_2_0__1 )\n // ../org.xtext.tortoiseshell.ui/src-gen/org/xtext/tortoiseshell/ui/contentassist/antlr/internal/InternalTortoiseShell.g:8267:2: rule__XSwitchExpression__Group_2_0__0__Impl rule__XSwitchExpression__Group_2_0__1\n {\n pushFollow(FOLLOW_rule__XSwitchExpression__Group_2_0__0__Impl_in_rule__XSwitchExpression__Group_2_0__016832);\n rule__XSwitchExpression__Group_2_0__0__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n pushFollow(FOLLOW_rule__XSwitchExpression__Group_2_0__1_in_rule__XSwitchExpression__Group_2_0__016835);\n rule__XSwitchExpression__Group_2_0__1();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "d5b161f8965d508b9bd67dc727a7817e", "score": "0.76813185", "text": "public final void rule__XSwitchExpression__Group__2__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.yakindu.sct.generator.genmodel.ui/src-gen/org/yakindu/sct/generator/genmodel/ui/contentassist/antlr/internal/InternalSGen.g:7758:1: ( ( ( rule__XSwitchExpression__Group_2__0 )? ) )\n // ../org.yakindu.sct.generator.genmodel.ui/src-gen/org/yakindu/sct/generator/genmodel/ui/contentassist/antlr/internal/InternalSGen.g:7759:1: ( ( rule__XSwitchExpression__Group_2__0 )? )\n {\n // ../org.yakindu.sct.generator.genmodel.ui/src-gen/org/yakindu/sct/generator/genmodel/ui/contentassist/antlr/internal/InternalSGen.g:7759:1: ( ( rule__XSwitchExpression__Group_2__0 )? )\n // ../org.yakindu.sct.generator.genmodel.ui/src-gen/org/yakindu/sct/generator/genmodel/ui/contentassist/antlr/internal/InternalSGen.g:7760:1: ( rule__XSwitchExpression__Group_2__0 )?\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXSwitchExpressionAccess().getGroup_2()); \n }\n // ../org.yakindu.sct.generator.genmodel.ui/src-gen/org/yakindu/sct/generator/genmodel/ui/contentassist/antlr/internal/InternalSGen.g:7761:1: ( rule__XSwitchExpression__Group_2__0 )?\n int alt52=2;\n int LA52_0 = input.LA(1);\n\n if ( (LA52_0==RULE_ID) ) {\n int LA52_1 = input.LA(2);\n\n if ( (LA52_1==52) ) {\n alt52=1;\n }\n }\n switch (alt52) {\n case 1 :\n // ../org.yakindu.sct.generator.genmodel.ui/src-gen/org/yakindu/sct/generator/genmodel/ui/contentassist/antlr/internal/InternalSGen.g:7761:2: rule__XSwitchExpression__Group_2__0\n {\n pushFollow(FOLLOW_rule__XSwitchExpression__Group_2__0_in_rule__XSwitchExpression__Group__2__Impl15772);\n rule__XSwitchExpression__Group_2__0();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n break;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXSwitchExpressionAccess().getGroup_2()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "8d674ce8c550465a1baa3e3bb03000e4", "score": "0.7677712", "text": "public final void rule__XSwitchExpression__Group__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalMyDsl.g:8534:1: ( rule__XSwitchExpression__Group__1__Impl rule__XSwitchExpression__Group__2 )\n // InternalMyDsl.g:8535:2: rule__XSwitchExpression__Group__1__Impl rule__XSwitchExpression__Group__2\n {\n pushFollow(FOLLOW_48);\n rule__XSwitchExpression__Group__1__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n pushFollow(FOLLOW_2);\n rule__XSwitchExpression__Group__2();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "efa4a375e06e0d43ddc8e6faf7dc9e19", "score": "0.7663456", "text": "public final void rule__XSwitchExpression__Group_2_0__1__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalMyDsl.g:8735:1: ( ( ( rule__XSwitchExpression__SwitchAssignment_2_0_1 ) ) )\n // InternalMyDsl.g:8736:1: ( ( rule__XSwitchExpression__SwitchAssignment_2_0_1 ) )\n {\n // InternalMyDsl.g:8736:1: ( ( rule__XSwitchExpression__SwitchAssignment_2_0_1 ) )\n // InternalMyDsl.g:8737:2: ( rule__XSwitchExpression__SwitchAssignment_2_0_1 )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXSwitchExpressionAccess().getSwitchAssignment_2_0_1()); \n }\n // InternalMyDsl.g:8738:2: ( rule__XSwitchExpression__SwitchAssignment_2_0_1 )\n // InternalMyDsl.g:8738:3: rule__XSwitchExpression__SwitchAssignment_2_0_1\n {\n pushFollow(FOLLOW_2);\n rule__XSwitchExpression__SwitchAssignment_2_0_1();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXSwitchExpressionAccess().getSwitchAssignment_2_0_1()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "fcd26db2ac194b07855f566baeb34186", "score": "0.7656009", "text": "public final void rule__XSwitchExpression__Group_2_0_0_0__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.tortoiseshell.ui/src-gen/org/xtext/tortoiseshell/ui/contentassist/antlr/internal/InternalTortoiseShell.g:8357:1: ( rule__XSwitchExpression__Group_2_0_0_0__0__Impl rule__XSwitchExpression__Group_2_0_0_0__1 )\n // ../org.xtext.tortoiseshell.ui/src-gen/org/xtext/tortoiseshell/ui/contentassist/antlr/internal/InternalTortoiseShell.g:8358:2: rule__XSwitchExpression__Group_2_0_0_0__0__Impl rule__XSwitchExpression__Group_2_0_0_0__1\n {\n pushFollow(FOLLOW_rule__XSwitchExpression__Group_2_0_0_0__0__Impl_in_rule__XSwitchExpression__Group_2_0_0_0__017013);\n rule__XSwitchExpression__Group_2_0_0_0__0__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n pushFollow(FOLLOW_rule__XSwitchExpression__Group_2_0_0_0__1_in_rule__XSwitchExpression__Group_2_0_0_0__017016);\n rule__XSwitchExpression__Group_2_0_0_0__1();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "c3b4135b044a9d1cce229faa9f9c052e", "score": "0.7653623", "text": "public final void rule__XSwitchExpression__Group__6() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.scripting.ui/src-gen/org/xtext/scripting/ui/contentassist/antlr/internal/InternalScripting.g:8891:1: ( rule__XSwitchExpression__Group__6__Impl )\n // ../org.xtext.scripting.ui/src-gen/org/xtext/scripting/ui/contentassist/antlr/internal/InternalScripting.g:8892:2: rule__XSwitchExpression__Group__6__Impl\n {\n pushFollow(FOLLOW_rule__XSwitchExpression__Group__6__Impl_in_rule__XSwitchExpression__Group__618157);\n rule__XSwitchExpression__Group__6__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "7d4082626746df02183afbd780314fef", "score": "0.76447934", "text": "public final void rule__XSwitchExpression__Group_6__2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.yakindu.sct.generator.genmodel.ui/src-gen/org/yakindu/sct/generator/genmodel/ui/contentassist/antlr/internal/InternalSGen.g:8071:1: ( rule__XSwitchExpression__Group_6__2__Impl )\n // ../org.yakindu.sct.generator.genmodel.ui/src-gen/org/yakindu/sct/generator/genmodel/ui/contentassist/antlr/internal/InternalSGen.g:8072:2: rule__XSwitchExpression__Group_6__2__Impl\n {\n pushFollow(FOLLOW_rule__XSwitchExpression__Group_6__2__Impl_in_rule__XSwitchExpression__Group_6__216385);\n rule__XSwitchExpression__Group_6__2__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "ef9e0fe92855961d38959b7edce5b26b", "score": "0.76432264", "text": "public final void rule__XSwitchExpression__Group__2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalMyDsl.g:8561:1: ( rule__XSwitchExpression__Group__2__Impl rule__XSwitchExpression__Group__3 )\n // InternalMyDsl.g:8562:2: rule__XSwitchExpression__Group__2__Impl rule__XSwitchExpression__Group__3\n {\n pushFollow(FOLLOW_50);\n rule__XSwitchExpression__Group__2__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n pushFollow(FOLLOW_2);\n rule__XSwitchExpression__Group__3();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "6f6e17638afe8ef0533613a5a69881eb", "score": "0.7638073", "text": "public final void rule__XSwitchExpression__Group_2_0__0__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../de.gammarcraft.aqua.ui/src-gen/de/gammarcraft/aqua/ui/contentassist/antlr/internal/InternalAqua.g:13316:1: ( ( ( rule__XSwitchExpression__Group_2_0_0__0 ) ) )\n // ../de.gammarcraft.aqua.ui/src-gen/de/gammarcraft/aqua/ui/contentassist/antlr/internal/InternalAqua.g:13317:1: ( ( rule__XSwitchExpression__Group_2_0_0__0 ) )\n {\n // ../de.gammarcraft.aqua.ui/src-gen/de/gammarcraft/aqua/ui/contentassist/antlr/internal/InternalAqua.g:13317:1: ( ( rule__XSwitchExpression__Group_2_0_0__0 ) )\n // ../de.gammarcraft.aqua.ui/src-gen/de/gammarcraft/aqua/ui/contentassist/antlr/internal/InternalAqua.g:13318:1: ( rule__XSwitchExpression__Group_2_0_0__0 )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXSwitchExpressionAccess().getGroup_2_0_0()); \n }\n // ../de.gammarcraft.aqua.ui/src-gen/de/gammarcraft/aqua/ui/contentassist/antlr/internal/InternalAqua.g:13319:1: ( rule__XSwitchExpression__Group_2_0_0__0 )\n // ../de.gammarcraft.aqua.ui/src-gen/de/gammarcraft/aqua/ui/contentassist/antlr/internal/InternalAqua.g:13319:2: rule__XSwitchExpression__Group_2_0_0__0\n {\n pushFollow(FOLLOW_rule__XSwitchExpression__Group_2_0_0__0_in_rule__XSwitchExpression__Group_2_0__0__Impl27143);\n rule__XSwitchExpression__Group_2_0_0__0();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXSwitchExpressionAccess().getGroup_2_0_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "f40f7cf7f546a0696290b8caedc6b1b5", "score": "0.7632083", "text": "public final void rule__XSwitchExpression__Group_2_1_0_0__0() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalModel.g:11535:1: ( rule__XSwitchExpression__Group_2_1_0_0__0__Impl rule__XSwitchExpression__Group_2_1_0_0__1 )\r\n // InternalModel.g:11536:2: rule__XSwitchExpression__Group_2_1_0_0__0__Impl rule__XSwitchExpression__Group_2_1_0_0__1\r\n {\r\n pushFollow(FOLLOW_77);\r\n rule__XSwitchExpression__Group_2_1_0_0__0__Impl();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n pushFollow(FOLLOW_2);\r\n rule__XSwitchExpression__Group_2_1_0_0__1();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\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 finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "a5268d2fc243d004666c0dc33e69b301", "score": "0.7630803", "text": "public final void rule__XSwitchExpression__Group__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalMyDsl.g:8507:1: ( rule__XSwitchExpression__Group__0__Impl rule__XSwitchExpression__Group__1 )\n // InternalMyDsl.g:8508:2: rule__XSwitchExpression__Group__0__Impl rule__XSwitchExpression__Group__1\n {\n pushFollow(FOLLOW_63);\n rule__XSwitchExpression__Group__0__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n pushFollow(FOLLOW_2);\n rule__XSwitchExpression__Group__1();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "eba0d1ce605fcc9a2040a70d5b9e8839", "score": "0.7621599", "text": "public final void rule__XSwitchExpression__Group__1__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.yakindu.sct.generator.genmodel.ui/src-gen/org/yakindu/sct/generator/genmodel/ui/contentassist/antlr/internal/InternalSGen.g:7727:1: ( ( 'switch' ) )\n // ../org.yakindu.sct.generator.genmodel.ui/src-gen/org/yakindu/sct/generator/genmodel/ui/contentassist/antlr/internal/InternalSGen.g:7728:1: ( 'switch' )\n {\n // ../org.yakindu.sct.generator.genmodel.ui/src-gen/org/yakindu/sct/generator/genmodel/ui/contentassist/antlr/internal/InternalSGen.g:7728:1: ( 'switch' )\n // ../org.yakindu.sct.generator.genmodel.ui/src-gen/org/yakindu/sct/generator/genmodel/ui/contentassist/antlr/internal/InternalSGen.g:7729:1: 'switch'\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXSwitchExpressionAccess().getSwitchKeyword_1()); \n }\n match(input,51,FOLLOW_51_in_rule__XSwitchExpression__Group__1__Impl15711); if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXSwitchExpressionAccess().getSwitchKeyword_1()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "7852b06e36b769eb53fb28bfcb0704c3", "score": "0.7609244", "text": "public final void rule__XSwitchExpression__Group_2_0__1() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalModel.g:11292:1: ( rule__XSwitchExpression__Group_2_0__1__Impl rule__XSwitchExpression__Group_2_0__2 )\r\n // InternalModel.g:11293:2: rule__XSwitchExpression__Group_2_0__1__Impl rule__XSwitchExpression__Group_2_0__2\r\n {\r\n pushFollow(FOLLOW_70);\r\n rule__XSwitchExpression__Group_2_0__1__Impl();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n pushFollow(FOLLOW_2);\r\n rule__XSwitchExpression__Group_2_0__2();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\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 finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "d579f3faff6dd2a28b3c36eca8e65ef5", "score": "0.76087695", "text": "public final void rule__XSwitchExpression__Group_5__2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.scripting.ui/src-gen/org/xtext/scripting/ui/contentassist/antlr/internal/InternalScripting.g:9371:1: ( rule__XSwitchExpression__Group_5__2__Impl )\n // ../org.xtext.scripting.ui/src-gen/org/xtext/scripting/ui/contentassist/antlr/internal/InternalScripting.g:9372:2: rule__XSwitchExpression__Group_5__2__Impl\n {\n pushFollow(FOLLOW_rule__XSwitchExpression__Group_5__2__Impl_in_rule__XSwitchExpression__Group_5__219089);\n rule__XSwitchExpression__Group_5__2__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "7743c45745159c7063008d74426dbd85", "score": "0.76041776", "text": "public final void rule__XSwitchExpression__Group_2_1__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../de.gammarcraft.aqua.ui/src-gen/de/gammarcraft/aqua/ui/contentassist/antlr/internal/InternalAqua.g:13524:1: ( rule__XSwitchExpression__Group_2_1__0__Impl rule__XSwitchExpression__Group_2_1__1 )\n // ../de.gammarcraft.aqua.ui/src-gen/de/gammarcraft/aqua/ui/contentassist/antlr/internal/InternalAqua.g:13525:2: rule__XSwitchExpression__Group_2_1__0__Impl rule__XSwitchExpression__Group_2_1__1\n {\n pushFollow(FOLLOW_rule__XSwitchExpression__Group_2_1__0__Impl_in_rule__XSwitchExpression__Group_2_1__027544);\n rule__XSwitchExpression__Group_2_1__0__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n pushFollow(FOLLOW_rule__XSwitchExpression__Group_2_1__1_in_rule__XSwitchExpression__Group_2_1__027547);\n rule__XSwitchExpression__Group_2_1__1();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "6b337add0b81ec3f385bc1a00f982bee", "score": "0.76028633", "text": "public final void rule__XSwitchExpression__Group_2_0__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../de.gammarcraft.aqua.ui/src-gen/de/gammarcraft/aqua/ui/contentassist/antlr/internal/InternalAqua.g:13333:1: ( rule__XSwitchExpression__Group_2_0__1__Impl rule__XSwitchExpression__Group_2_0__2 )\n // ../de.gammarcraft.aqua.ui/src-gen/de/gammarcraft/aqua/ui/contentassist/antlr/internal/InternalAqua.g:13334:2: rule__XSwitchExpression__Group_2_0__1__Impl rule__XSwitchExpression__Group_2_0__2\n {\n pushFollow(FOLLOW_rule__XSwitchExpression__Group_2_0__1__Impl_in_rule__XSwitchExpression__Group_2_0__127173);\n rule__XSwitchExpression__Group_2_0__1__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n pushFollow(FOLLOW_rule__XSwitchExpression__Group_2_0__2_in_rule__XSwitchExpression__Group_2_0__127176);\n rule__XSwitchExpression__Group_2_0__2();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "93892919df7de37470fc1bf1bedd054e", "score": "0.7602646", "text": "public final void rule__XSwitchExpression__Group_2_0_0__0__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../de.gammarcraft.aqua.ui/src-gen/de/gammarcraft/aqua/ui/contentassist/antlr/internal/InternalAqua.g:13409:1: ( ( ( rule__XSwitchExpression__Group_2_0_0_0__0 ) ) )\n // ../de.gammarcraft.aqua.ui/src-gen/de/gammarcraft/aqua/ui/contentassist/antlr/internal/InternalAqua.g:13410:1: ( ( rule__XSwitchExpression__Group_2_0_0_0__0 ) )\n {\n // ../de.gammarcraft.aqua.ui/src-gen/de/gammarcraft/aqua/ui/contentassist/antlr/internal/InternalAqua.g:13410:1: ( ( rule__XSwitchExpression__Group_2_0_0_0__0 ) )\n // ../de.gammarcraft.aqua.ui/src-gen/de/gammarcraft/aqua/ui/contentassist/antlr/internal/InternalAqua.g:13411:1: ( rule__XSwitchExpression__Group_2_0_0_0__0 )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXSwitchExpressionAccess().getGroup_2_0_0_0()); \n }\n // ../de.gammarcraft.aqua.ui/src-gen/de/gammarcraft/aqua/ui/contentassist/antlr/internal/InternalAqua.g:13412:1: ( rule__XSwitchExpression__Group_2_0_0_0__0 )\n // ../de.gammarcraft.aqua.ui/src-gen/de/gammarcraft/aqua/ui/contentassist/antlr/internal/InternalAqua.g:13412:2: rule__XSwitchExpression__Group_2_0_0_0__0\n {\n pushFollow(FOLLOW_rule__XSwitchExpression__Group_2_0_0_0__0_in_rule__XSwitchExpression__Group_2_0_0__0__Impl27325);\n rule__XSwitchExpression__Group_2_0_0_0__0();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXSwitchExpressionAccess().getGroup_2_0_0_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "c8dcc6d1472aa756e463391a9a0f067d", "score": "0.7598781", "text": "public final void rule__XSwitchExpression__Group_2_0_0_0__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../de.gammarcraft.aqua.ui/src-gen/de/gammarcraft/aqua/ui/contentassist/antlr/internal/InternalAqua.g:13459:1: ( rule__XSwitchExpression__Group_2_0_0_0__1__Impl rule__XSwitchExpression__Group_2_0_0_0__2 )\n // ../de.gammarcraft.aqua.ui/src-gen/de/gammarcraft/aqua/ui/contentassist/antlr/internal/InternalAqua.g:13460:2: rule__XSwitchExpression__Group_2_0_0_0__1__Impl rule__XSwitchExpression__Group_2_0_0_0__2\n {\n pushFollow(FOLLOW_rule__XSwitchExpression__Group_2_0_0_0__1__Impl_in_rule__XSwitchExpression__Group_2_0_0_0__127419);\n rule__XSwitchExpression__Group_2_0_0_0__1__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n pushFollow(FOLLOW_rule__XSwitchExpression__Group_2_0_0_0__2_in_rule__XSwitchExpression__Group_2_0_0_0__127422);\n rule__XSwitchExpression__Group_2_0_0_0__2();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "e723ac0a1fe7cc720bf818649ae4cbf6", "score": "0.75955594", "text": "public final void rule__XSwitchExpression__Group__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.tortoiseshell.ui/src-gen/org/xtext/tortoiseshell/ui/contentassist/antlr/internal/InternalTortoiseShell.g:8035:1: ( rule__XSwitchExpression__Group__0__Impl rule__XSwitchExpression__Group__1 )\n // ../org.xtext.tortoiseshell.ui/src-gen/org/xtext/tortoiseshell/ui/contentassist/antlr/internal/InternalTortoiseShell.g:8036:2: rule__XSwitchExpression__Group__0__Impl rule__XSwitchExpression__Group__1\n {\n pushFollow(FOLLOW_rule__XSwitchExpression__Group__0__Impl_in_rule__XSwitchExpression__Group__016376);\n rule__XSwitchExpression__Group__0__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n pushFollow(FOLLOW_rule__XSwitchExpression__Group__1_in_rule__XSwitchExpression__Group__016379);\n rule__XSwitchExpression__Group__1();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "e96d16c2cf1063a3e1c794762e840012", "score": "0.75889397", "text": "public final void rule__XSwitchExpression__Group_2_1__0() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalModel.g:11454:1: ( rule__XSwitchExpression__Group_2_1__0__Impl rule__XSwitchExpression__Group_2_1__1 )\r\n // InternalModel.g:11455:2: rule__XSwitchExpression__Group_2_1__0__Impl rule__XSwitchExpression__Group_2_1__1\r\n {\r\n pushFollow(FOLLOW_74);\r\n rule__XSwitchExpression__Group_2_1__0__Impl();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n pushFollow(FOLLOW_2);\r\n rule__XSwitchExpression__Group_2_1__1();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\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 finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "757565b9fad5fc997cbc445ede50b4a1", "score": "0.75822675", "text": "public final void rule__XSwitchExpression__Group__2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.tortoiseshell.ui/src-gen/org/xtext/tortoiseshell/ui/contentassist/antlr/internal/InternalTortoiseShell.g:8097:1: ( rule__XSwitchExpression__Group__2__Impl rule__XSwitchExpression__Group__3 )\n // ../org.xtext.tortoiseshell.ui/src-gen/org/xtext/tortoiseshell/ui/contentassist/antlr/internal/InternalTortoiseShell.g:8098:2: rule__XSwitchExpression__Group__2__Impl rule__XSwitchExpression__Group__3\n {\n pushFollow(FOLLOW_rule__XSwitchExpression__Group__2__Impl_in_rule__XSwitchExpression__Group__216499);\n rule__XSwitchExpression__Group__2__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n pushFollow(FOLLOW_rule__XSwitchExpression__Group__3_in_rule__XSwitchExpression__Group__216502);\n rule__XSwitchExpression__Group__3();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "d702a82a4370ce60d4bdfc831d524175", "score": "0.7581739", "text": "public final void rule__XSwitchExpression__Group_2_1_0_0__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../de.gammarcraft.aqua.ui/src-gen/de/gammarcraft/aqua/ui/contentassist/antlr/internal/InternalAqua.g:13615:1: ( rule__XSwitchExpression__Group_2_1_0_0__0__Impl rule__XSwitchExpression__Group_2_1_0_0__1 )\n // ../de.gammarcraft.aqua.ui/src-gen/de/gammarcraft/aqua/ui/contentassist/antlr/internal/InternalAqua.g:13616:2: rule__XSwitchExpression__Group_2_1_0_0__0__Impl rule__XSwitchExpression__Group_2_1_0_0__1\n {\n pushFollow(FOLLOW_rule__XSwitchExpression__Group_2_1_0_0__0__Impl_in_rule__XSwitchExpression__Group_2_1_0_0__027725);\n rule__XSwitchExpression__Group_2_1_0_0__0__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n pushFollow(FOLLOW_rule__XSwitchExpression__Group_2_1_0_0__1_in_rule__XSwitchExpression__Group_2_1_0_0__027728);\n rule__XSwitchExpression__Group_2_1_0_0__1();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "3c76f679b7ce48f0af7b4811b0b395ca", "score": "0.75714636", "text": "public final void rule__XSwitchExpression__Group_2_0__0() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalModel.g:11265:1: ( rule__XSwitchExpression__Group_2_0__0__Impl rule__XSwitchExpression__Group_2_0__1 )\r\n // InternalModel.g:11266:2: rule__XSwitchExpression__Group_2_0__0__Impl rule__XSwitchExpression__Group_2_0__1\r\n {\r\n pushFollow(FOLLOW_20);\r\n rule__XSwitchExpression__Group_2_0__0__Impl();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n pushFollow(FOLLOW_2);\r\n rule__XSwitchExpression__Group_2_0__1();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\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 finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "59e5f38aa3c638b7f3679c996ba5a4af", "score": "0.75703245", "text": "public final void rule__XSwitchExpression__Group_2__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.yakindu.sct.generator.genmodel.ui/src-gen/org/yakindu/sct/generator/genmodel/ui/contentassist/antlr/internal/InternalSGen.g:7946:1: ( rule__XSwitchExpression__Group_2__0__Impl rule__XSwitchExpression__Group_2__1 )\n // ../org.yakindu.sct.generator.genmodel.ui/src-gen/org/yakindu/sct/generator/genmodel/ui/contentassist/antlr/internal/InternalSGen.g:7947:2: rule__XSwitchExpression__Group_2__0__Impl rule__XSwitchExpression__Group_2__1\n {\n pushFollow(FOLLOW_rule__XSwitchExpression__Group_2__0__Impl_in_rule__XSwitchExpression__Group_2__016138);\n rule__XSwitchExpression__Group_2__0__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n pushFollow(FOLLOW_rule__XSwitchExpression__Group_2__1_in_rule__XSwitchExpression__Group_2__016141);\n rule__XSwitchExpression__Group_2__1();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" } ]
25197b4cf814864ecd440f23b9149cb3
TODO Autogenerated method stub
[ { "docid": "ffd7dcb0fd233eba33da8cda8918e86a", "score": "0.0", "text": "public static void main(String[] args) {\n\t debug d=new debug();\n\t d.someone=new info();\n\t d.someone.name=\"root\";\n\t d.someone.password=\"root\";\n\t try {\n\t\tif(d.login(serializeToString(d.someone))) {\n\t\t\t System.out.println(\"hahahhahahha\");\n\t\t }\n\t} catch (Exception e) {\n\t\t// TODO Auto-generated catch block\n\t\te.printStackTrace();\n\t}\n\t \n\t}", "title": "" } ]
[ { "docid": "05a606445504484958a1c21e14b7198e", "score": "0.6948892", "text": "@Override\r\n\tpublic void sapace() {\n\t\t\r\n\t}", "title": "" }, { "docid": "8619203d4867f5c6d05eb9a5354405c0", "score": "0.6921454", "text": "@Override\n\t\tpublic void pintate() {\n\t\t\t\n\t\t}", "title": "" }, { "docid": "8619203d4867f5c6d05eb9a5354405c0", "score": "0.6921454", "text": "@Override\n\t\tpublic void pintate() {\n\t\t\t\n\t\t}", "title": "" }, { "docid": "33d41636b65afa8267c9085dae3d1a2d", "score": "0.6677044", "text": "private void apparence() {\r\n\r\n\t}", "title": "" }, { "docid": "0b5b11f4251ace8b3d0f5ead186f7beb", "score": "0.6569644", "text": "@Override\n\tpublic void comer() {\n\t\t\n\t}", "title": "" }, { "docid": "118f2b8a20f48999973063ac332d07d3", "score": "0.65663373", "text": "@Override\r\n\t\t\tpublic void atras() {\n\r\n\t\t\t}", "title": "" }, { "docid": "80d20df1cc75d8fa96c12c49a757fc43", "score": "0.6529823", "text": "@Override\n\tprotected void getExras() {\n\t\t\n\t}", "title": "" }, { "docid": "ffd8193c9cf73515d0f9301b9a7d8817", "score": "0.6486805", "text": "@Override\n\tpublic void morrer() {\n\n\t}", "title": "" }, { "docid": "b62a7c8e0bb1090171742c543bf4b253", "score": "0.6375012", "text": "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "title": "" }, { "docid": "6c2fa45ab362625ae567ee8a229630a4", "score": "0.6226161", "text": "@Override\n\tprotected void interr() {\n\t}", "title": "" }, { "docid": "b941b399a338e8c204f1063e54a94824", "score": "0.6225098", "text": "public void mo7103g() {\n }", "title": "" }, { "docid": "b941b399a338e8c204f1063e54a94824", "score": "0.6225098", "text": "public void mo7103g() {\n }", "title": "" }, { "docid": "b941b399a338e8c204f1063e54a94824", "score": "0.6225098", "text": "public void mo7103g() {\n }", "title": "" }, { "docid": "27e4479db2c37a2e77fe796119b66d4b", "score": "0.6194878", "text": "@Override\r\n\t\t\tpublic void adelante() {\n\r\n\t\t\t}", "title": "" }, { "docid": "e3a701d0fdb1fef5e0afd9dc7c345fcb", "score": "0.61655414", "text": "@Override\n\tprotected void generateData() {\n\t\n\t}", "title": "" }, { "docid": "0d3bf6f2ee77f787007ba6b4021b5721", "score": "0.61653626", "text": "protected void olha()\r\n\t{\r\n\t\t\r\n\t}", "title": "" }, { "docid": "10ead2e988bf977cb8edb2bacf974891", "score": "0.6159608", "text": "@Override\n\tprotected void init() {\n\t\t\n\t}", "title": "" }, { "docid": "10ead2e988bf977cb8edb2bacf974891", "score": "0.6159608", "text": "@Override\n\tprotected void init() {\n\t\t\n\t}", "title": "" }, { "docid": "10ead2e988bf977cb8edb2bacf974891", "score": "0.6159608", "text": "@Override\n\tprotected void init() {\n\t\t\n\t}", "title": "" }, { "docid": "10ead2e988bf977cb8edb2bacf974891", "score": "0.6159608", "text": "@Override\n\tprotected void init() {\n\t\t\n\t}", "title": "" }, { "docid": "10ead2e988bf977cb8edb2bacf974891", "score": "0.6159608", "text": "@Override\n\tprotected void init() {\n\t\t\n\t}", "title": "" }, { "docid": "4e49f5db36ca664153e54380025b85d4", "score": "0.6096556", "text": "protected boolean method_21825() {\n }", "title": "" }, { "docid": "67e1a422c8d1e74f6601c8a6d1aaa237", "score": "0.6075536", "text": "@Override\n\tpublic void apagar() {\n\n\t}", "title": "" }, { "docid": "6f653341cfc7d30c8418e4b72116f7e2", "score": "0.60289824", "text": "public void mo5201a() {\n }", "title": "" }, { "docid": "a613dcce17453a8e1eed3b984b6b35b1", "score": "0.6028821", "text": "@Override\n\tpublic void composant() {\n\t}", "title": "" }, { "docid": "588ab475e29950e8a1944c4a28fe2189", "score": "0.60278445", "text": "public void mo7036d() {\n }", "title": "" }, { "docid": "770d423e40bf5782a700bc181e8b8a1e", "score": "0.6021083", "text": "@Override\n\tvoid init() {\n\t\t\n\t}", "title": "" }, { "docid": "770d423e40bf5782a700bc181e8b8a1e", "score": "0.6021083", "text": "@Override\n\tvoid init() {\n\t\t\n\t}", "title": "" }, { "docid": "f2fe8a59406298fe7e97b543f2bf8186", "score": "0.6009553", "text": "@Override\r\n \tpublic void init() {\r\n \t}", "title": "" }, { "docid": "fa1a013b1df2f5f1062e1cc971135645", "score": "0.5989263", "text": "@Override\n\tpublic void mamar() {\n\t\t\n\t}", "title": "" }, { "docid": "f49ed6756be41155bd7261ea2ff6564b", "score": "0.5986674", "text": "@Override\n\t\t\t\tpublic void init() {\n\n\t\t\t\t}", "title": "" }, { "docid": "f49ed6756be41155bd7261ea2ff6564b", "score": "0.5986674", "text": "@Override\n\t\t\t\tpublic void init() {\n\n\t\t\t\t}", "title": "" }, { "docid": "f49ed6756be41155bd7261ea2ff6564b", "score": "0.5986674", "text": "@Override\n\t\t\t\tpublic void init() {\n\n\t\t\t\t}", "title": "" }, { "docid": "0ecc2b05fa1b3fe069983a07eba7914d", "score": "0.5979985", "text": "private void inicialitzarTaulell() {\r\n\t\t//PENDENT IMPLEMENTAR\r\n\t}", "title": "" }, { "docid": "9fe3f6ccb967a8bcee9106fbbd56b684", "score": "0.5974584", "text": "@Override\r\n\tpublic void properties() {\n\t\t\r\n\t}", "title": "" }, { "docid": "b044552fe4d8d8225d09361b41fbea3a", "score": "0.5952514", "text": "public void mo5201a() {\n }", "title": "" }, { "docid": "fcfbf321ff3e4c56b4e383ce15e49dbb", "score": "0.59441584", "text": "@Override\r\n\tpublic void obtersaida()\r\n\t{\n\t}", "title": "" }, { "docid": "482b1825ec60700f97ed42e420d69d99", "score": "0.59392345", "text": "@Override\n\tpublic void valide() {\n\t}", "title": "" }, { "docid": "b2775812be4cd009dca27a30c5ce78fa", "score": "0.5938715", "text": "@Override\n\tprotected void fouseChange() {\n\n\t}", "title": "" }, { "docid": "4b7e3f693781babf82ed11447db2a554", "score": "0.59294003", "text": "@Override\n\tpublic void concentrarse() {\n\t\t// TODO Auto-generated method stub\n\t\t\n\t}", "title": "" }, { "docid": "41e50fb9a0b417818374927eb02c67f1", "score": "0.5929145", "text": "protected void mo5608a() {\n }", "title": "" }, { "docid": "21caf865e426ec5feea3bed303161112", "score": "0.5926301", "text": "@Override\r\n\t\t\t\t\tpublic void funktionMarkiert() {\n\t\t\t\t\t\t\r\n\t\t\t\t\t}", "title": "" }, { "docid": "21caf865e426ec5feea3bed303161112", "score": "0.5926301", "text": "@Override\r\n\t\t\t\t\tpublic void funktionMarkiert() {\n\t\t\t\t\t\t\r\n\t\t\t\t\t}", "title": "" }, { "docid": "21caf865e426ec5feea3bed303161112", "score": "0.5926301", "text": "@Override\r\n\t\t\t\t\tpublic void funktionMarkiert() {\n\t\t\t\t\t\t\r\n\t\t\t\t\t}", "title": "" }, { "docid": "8b18fd12dbb5303a665e92c25393fb78", "score": "0.59218657", "text": "@Override\n\tprotected void initData() {\n\t\t\n\t}", "title": "" }, { "docid": "8b18fd12dbb5303a665e92c25393fb78", "score": "0.59218657", "text": "@Override\n\tprotected void initData() {\n\t\t\n\t}", "title": "" }, { "docid": "9a0f5a503f38cb7c40d13ecc89073bd8", "score": "0.58980954", "text": "@Override\r\n\tpublic void getDuriation() {\n\t\t\r\n\t}", "title": "" }, { "docid": "9781c90863e9dc9781fafcc4dc828136", "score": "0.58751273", "text": "public void mo7839l() {\n }", "title": "" }, { "docid": "9781c90863e9dc9781fafcc4dc828136", "score": "0.58751273", "text": "public void mo7839l() {\n }", "title": "" }, { "docid": "32d0d506f2de2532fe4789f006c84da0", "score": "0.5864685", "text": "@Override\n\tpublic void bicar() {\n\t\t\n\t}", "title": "" }, { "docid": "02699a98134693036160a045239bddba", "score": "0.5852023", "text": "@Override\r\n\tpublic void zwroc() {\n\r\n\t}", "title": "" }, { "docid": "46569800c9d73cd59bcbec066cdb5304", "score": "0.5849903", "text": "private void lidoInf() {\n\n\n }", "title": "" }, { "docid": "b8d886581a76c72e11ab317e6cb6e2a8", "score": "0.58324575", "text": "@Override\r\n public void rechercher() {\n }", "title": "" }, { "docid": "80b5722cdc9efe11a305e92ea813ac0f", "score": "0.5828931", "text": "@Override\r\n\tpublic void inter() {\n\t\t\r\n\t}", "title": "" }, { "docid": "9d2f44c3ebe1fb8de1ac4ae677e2d851", "score": "0.58070844", "text": "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "title": "" }, { "docid": "947b4ee184fe32ab14b8c244b9461c7d", "score": "0.5807073", "text": "@Override\n\tpublic void vida() {\n\n\t}", "title": "" }, { "docid": "c86f446a8bd6af19f88cc011fdf2ffd4", "score": "0.5804191", "text": "public void asustar() {\n // TODO implement here\n \n }", "title": "" }, { "docid": "b14d9313b224be37257260448fc816d3", "score": "0.5803587", "text": "@Override\n\tpublic void breathes()\n\t{\n\n\t}", "title": "" }, { "docid": "c8f75a8f93bc20d4e8695ba99b470e1d", "score": "0.5803507", "text": "public void mo1684e() {\n }", "title": "" }, { "docid": "1c223692b2a2bdbc36ebfa379064d28d", "score": "0.5802147", "text": "public void mo7102f() {\n }", "title": "" }, { "docid": "1c223692b2a2bdbc36ebfa379064d28d", "score": "0.5802147", "text": "public void mo7102f() {\n }", "title": "" }, { "docid": "1c223692b2a2bdbc36ebfa379064d28d", "score": "0.5802147", "text": "public void mo7102f() {\n }", "title": "" }, { "docid": "19b30f4f881d8f7b600c7c12f1c30963", "score": "0.5799019", "text": "public void mo5203c() {\n }", "title": "" }, { "docid": "5783648f118108797828ca2085091ef9", "score": "0.5793457", "text": "@Override\n protected void initialize() {\n \n }", "title": "" }, { "docid": "bb30a482e2236eb664f8d8fc23724b59", "score": "0.57914007", "text": "@Override\n\tprotected void initActb() {\n\t\t\n\t}", "title": "" }, { "docid": "7846476d210d55d45e5540a9c92b1ce3", "score": "0.5791179", "text": "@Override\n\tpublic void chocar() {\n\t\t\n\t}", "title": "" }, { "docid": "7846476d210d55d45e5540a9c92b1ce3", "score": "0.5791179", "text": "@Override\n\tpublic void chocar() {\n\t\t\n\t}", "title": "" }, { "docid": "54b1134554bc066c34ed30a72adb660c", "score": "0.578839", "text": "@Override\n\tprotected void initData() {\n\n\t}", "title": "" }, { "docid": "54b1134554bc066c34ed30a72adb660c", "score": "0.578839", "text": "@Override\n\tprotected void initData() {\n\n\t}", "title": "" }, { "docid": "0cc40600dd2e7cb9f56bd77995e01fc3", "score": "0.5782206", "text": "@Override\n\tpublic void Miow() {\n\t\t\n\t}", "title": "" }, { "docid": "a5600ed00582d8ca8d293829dcfd6c38", "score": "0.5780764", "text": "private void Syso() {\n\r\n\t}", "title": "" }, { "docid": "0a14b2c4ac9647e6bc7077e1e653d540", "score": "0.5778095", "text": "@Override\n \tprotected int getSize() {\n \t\treturn 0;\n \t}", "title": "" }, { "docid": "7d110d5ea1b4795727b052c3f897a146", "score": "0.5777092", "text": "public void ligar() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.57739174", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.57739174", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.57739174", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.57739174", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.57739174", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.57739174", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.57739174", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "e022c47f335a39c6bdb94a0f49a4e940", "score": "0.5769049", "text": "@Override\r\n\tpublic void parar() {\n\t\t\r\n\t}", "title": "" }, { "docid": "900d30c04323cde584c73c5ffa48d9cf", "score": "0.5759676", "text": "@Override\n\t\tpublic void visitEnd() {\n\n\t\t}", "title": "" }, { "docid": "518a761521ca9f5cb8a8055b32b72cda", "score": "0.57589364", "text": "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "title": "" }, { "docid": "518a761521ca9f5cb8a8055b32b72cda", "score": "0.57589364", "text": "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "title": "" }, { "docid": "ebfe1bb4dd1c0618c0fad36d9f7674b4", "score": "0.5751704", "text": "@Override\n protected void initialize() {\n\n }", "title": "" }, { "docid": "0adb5f1f1c75684eab047201533dcfe7", "score": "0.57505995", "text": "protected void mo5609b() {\n }", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.57499367", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.57499367", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.57499367", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "c16c8d1ea4a8c8572e4aa91460503742", "score": "0.57493824", "text": "private void Initalization() {\n\t\t\n\t}", "title": "" }, { "docid": "b938c58260ac0b899b5e73492c412a69", "score": "0.57406497", "text": "@Override\r\n\t\t\t\t\t\r\n\t\t\t\t\tpublic void leerMarkiert() {\n\t\t\t\t\t\t\r\n\t\t\t\t\t}", "title": "" }, { "docid": "b938c58260ac0b899b5e73492c412a69", "score": "0.57406497", "text": "@Override\r\n\t\t\t\t\t\r\n\t\t\t\t\tpublic void leerMarkiert() {\n\t\t\t\t\t\t\r\n\t\t\t\t\t}", "title": "" }, { "docid": "b938c58260ac0b899b5e73492c412a69", "score": "0.57406497", "text": "@Override\r\n\t\t\t\t\t\r\n\t\t\t\t\tpublic void leerMarkiert() {\n\t\t\t\t\t\t\r\n\t\t\t\t\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.57349783", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.57349783", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.57349783", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.57349783", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "734b1972ec29b58535c294e3962d017d", "score": "0.57346857", "text": "@Override\n\tpublic void generar() {\n\t\t\n\t}", "title": "" }, { "docid": "a8f4d3149e0f7a43b23b53ce69363fd6", "score": "0.5719604", "text": "public void mo5202b() {\n }", "title": "" }, { "docid": "4da4d5cf96c032296a894fc6e8d76283", "score": "0.571904", "text": "@Override\n\tpublic void beCagey() {\n\t\t\n\t}", "title": "" }, { "docid": "c2a6308317d4e5fc230ea7d2fb55fc1b", "score": "0.57160723", "text": "@Override\n\tpublic void update() {\n\t\t// TODO Auto-generated method stub\n\t\t\n\t}", "title": "" } ]
2f20e20c42c451dd164ee83fbd092965
Metodo listado mapas de un usuario
[ { "docid": "311030e490c6ce7eac99e5dfdf4ea5a5", "score": "0.65426606", "text": "@Test\n\tpublic void testListUserMaps() throws Exception {\n\t\tpeticion.setCredenciales();\n\t\tMvcResult result = peticion.get(\"/\" + MAPPING + \"/user/\" + PropiedadesTest.getUserId())\n\t\t\t\t.andExpect(status().isOk())\n\t\t\t\t.andReturn()\n\t\t\t\t;\n\t\tAssert.assertTrue(result.getResponse().getStatus()==200);\n\t}", "title": "" } ]
[ { "docid": "5a93ae8c72969e8df0dff0570106c022", "score": "0.7328428", "text": "public abstract List<MapInfo> getUsersMapList(String id);", "title": "" }, { "docid": "f354ca0e91abffa2aa5b41383c656b24", "score": "0.66587913", "text": "@Override\n\tpublic List<Map<String, Object>> selectUserInfoList(Map<String, String> map) throws Exception {\n\t\treturn CTMZ13DAO.selectUserInfoList(map);\n\t}", "title": "" }, { "docid": "94717ce9d71e93c82c30f599073738e0", "score": "0.6603995", "text": "List<Usuario> listarParametros(Map<String, Object> parametrosBusqueda) throws GmdException;", "title": "" }, { "docid": "ef4c23894d8c22d0134ba69531126af5", "score": "0.6603346", "text": "@RequestMapping(\"/admin\")\r\n public Map<String, StoredCredential> displayUser() throws IOException, GeneralSecurityException {\r\n DataStore<StoredCredential> users = gservice.getUsers();\r\n\r\n Map<String, StoredCredential> usersMap = new HashMap<>();\r\n\r\n Set<String> allkeys = users.keySet();\r\n\r\n for (String akey : allkeys) {\r\n\r\n StoredCredential value = users.get(akey);\r\n usersMap.put(akey, value);\r\n }\r\n\r\n //TODO TJF by Djer |MVC| Le contenue de ton \"usersMap\" sevrait être ajouté dans le model ! \r\n //TODO TJF by Djer |MVC| Les \"xontrolelr\" Spring doivent retourner le nom d'une VUE ! Spring va \"automatiquement\" transfére le mode àcette Vue\r\n return usersMap;\r\n }", "title": "" }, { "docid": "170b67bde3b234c769d7dda9fc9bfefc", "score": "0.6595982", "text": "public static Map<String, Map<String,String> > GetallUsers(){\n return allUsers;\n }", "title": "" }, { "docid": "bc6ffe70a5d106c8fa32188a2792071a", "score": "0.6494659", "text": "public List<User> findAllKjZg(Map<String, Object> map) {\n\t\treturn userDao.findAllKjZg(map);\n\t}", "title": "" }, { "docid": "6820f1c8f617a2c6e309aacc6fd0a30d", "score": "0.6439565", "text": "public static void LoadAllUsers(){\n \n Map<String, Map<String,String> > map = new HashMap<String, Map<String,String>>();\n Map<String,String> user = new HashMap<String, String>();\n \n List<String> lines = ReadFile();\n int found =0;\n String[] splitedString;\n for( String line: lines) \n { \n \n if(line.contains(\">>>\")){\n String nome = user.get(\"nome\");\n map.put(nome, user); \n } \n \n else{\n splitedString = line.split(\":\"); \n user.put(splitedString[0],splitedString[1]); \n }\n }\n allUsers = map; \n }", "title": "" }, { "docid": "c0890bcab702a79be876f338fd549701", "score": "0.64244395", "text": "public Map<String, Object> consultarUsuarios(Integer intPage, Integer intPerPage, String strCedulaCodigoUsuario, String strEstado, String strUser)throws BOException;", "title": "" }, { "docid": "629433fa75eca0bc910e8f01aa37fc67", "score": "0.63414264", "text": "@Override\r\n\tpublic List<User> searchUser(Map map) {\n\t\treturn userDao.searchUser(map);\r\n\t}", "title": "" }, { "docid": "98f3bd66c285256e0b63d693c379b0e4", "score": "0.63301516", "text": "public List<Map<String, Object>> getListUserName(String s) throws Exception {\n\treturn dao.getListUserName(s);\r\n}", "title": "" }, { "docid": "63af99aa68fc320f0797dbcf6fe59bfd", "score": "0.6315893", "text": "private Map<String, MSentryUser> getUserNameToUserMap(PersistenceManager pm) {\n Query query = pm.newQuery(MSentryUser.class);\n @SuppressWarnings(\"unchecked\")\n List<MSentryUser> users = (List<MSentryUser>) query.execute();\n if (users.isEmpty()) {\n return Collections.emptyMap();\n }\n Map<String, MSentryUser> existUsersMap = new HashMap<>(users.size());\n // change the List<MSentryUser> -> Map<userName, MSentryUser>\n for (MSentryUser user : users) {\n existUsersMap.put(user.getUserName(), user);\n }\n return existUsersMap;\n }", "title": "" }, { "docid": "564f2755de909b538fe0bdd55bb3dba8", "score": "0.6252765", "text": "public List<User> findAllBjZg(Map<String, Object> map) {\n\t\treturn userDao.findAllBjZg(map);\n\t}", "title": "" }, { "docid": "e8f00afe1ecc9fe5a9425830a8180e54", "score": "0.6245144", "text": "@Override\n\tpublic Map<String, Object> getUsernamelist() {\n\t\treturn BeansVOConverter.getUserNameList((adminDao.getUsernamelist()));\n\t}", "title": "" }, { "docid": "b939cf914494de8447b87605c2f15f93", "score": "0.6232347", "text": "public List<User> viewPacientesDeMedico(String medicoAsociado);", "title": "" }, { "docid": "5e1d40e2fa0625e91a7f41b3af97ffff", "score": "0.61686516", "text": "public ArrayList<DtUsuario> listarUsuariosSeguidores(){\n // crea una lista de retorno\n ArrayList<DtUsuario> ret = new ArrayList();\n \n for (Map.Entry<String,Usuario> i : this.misSeguidores.entrySet()){\n // hace un getDT y lo agrega a la coleccion de retorno\n ret.add(i.getValue().getDT());\n }\n return ret;\n }", "title": "" }, { "docid": "53724a3d1836fb01b160c08024c842fe", "score": "0.6164213", "text": "public void listarUsuarios() {\n usuarioBO.listarUsuarioCmb(cmbUsuario);\n usuarioBO.listarUsuarioCmb(cmbUsuarioEd);\n }", "title": "" }, { "docid": "e90b348bd23ee44b3539126ad904f3f8", "score": "0.6152283", "text": "private void getAllUserInfo(){\n UserDao userDao = gpsGPSApplication.getDbService().getUserDao();\n allusers = userDao.queryBuilder().build().list();\n\n if(allusers.size()==0){\n mExpand.setVisibility(View.GONE);\n mCollapse.setVisibility(View.GONE);\n }\n else{\n usernames=new ArrayList<>();\n passwords= new ArrayList<>();\n for(int i=0;i<allusers.size();i++)\n {\n String name=allusers.get(i).getUser();\n String pwd=allusers.get(i).getPassword();\n usernames.add(name);\n passwords.add(pwd);\n }\n ArrayAdapter<String> adapter = new ArrayAdapter<String>(this,\n R.layout.list_item,usernames);\n mListView.setAdapter(adapter);\n\n }\n }", "title": "" }, { "docid": "785f4961f482bbeccd884b607b6847aa", "score": "0.61439496", "text": "public ArrayList<DtUsuario> listarUsuariosSeguidos(){\n ArrayList<DtUsuario> ret = new ArrayList();\n \n for (Map.Entry<String,Usuario> i : this.seguidos.entrySet()){\n // hace un getDT y lo agrega a la coleccion de retorno\n ret.add(i.getValue().getDT());\n }\n return ret;\n }", "title": "" }, { "docid": "2545959a7fcb568799cd257b4655dfab", "score": "0.61326826", "text": "public List<Usuario> listarUsuarios(){\n\t\treturn udao.listarUsuario(); \n\t}", "title": "" }, { "docid": "b0ba6fe39f85fa8bd883b43835f68c1b", "score": "0.61310333", "text": "public ArrayUnorderedList<String> getAllMapsName() ;", "title": "" }, { "docid": "9ac315d9eae123984a20f594602381ab", "score": "0.6100167", "text": "@Override\n\n public ArrayList<Usuario> getUsuarios(){\n return md.getUsuarios();\n }", "title": "" }, { "docid": "929738bc873466b1430398bcd5134632", "score": "0.6096139", "text": "public HashMap<String, String> getUserDEtails(){\n\n //USAMOS UN HASMAP PARA LAS CREDENCIALES\n HashMap<String, String> user = new HashMap<>();\n\n //NOMBRE USUARIO\n user.put(KEY_NAME, pref.getString(KEY_NAME, null));\n\n //APELLIDOS\n user.put(KEY_APELLIDO, pref.getString(KEY_APELLIDO, null));\n\n //IDUSUARIO\n user.put(KEY_IDUSER, pref.getString(KEY_IDUSER, null));\n\n //EMIAL\n user.put(KEY_EMAIL, pref.getString(KEY_EMAIL, null));\n\n return user;\n }", "title": "" }, { "docid": "62f1f2c09ecde45ae8b1e110bdc9f210", "score": "0.60520357", "text": "private static void printUsers(){\n \tfor (Map.Entry<String, String> entry : db.entrySet()) {\n \tSystem.out.println(entry.getKey() + \" : \" + entry.getValue());\n }\n\t}", "title": "" }, { "docid": "9d2f87bca93b9a4aa6cb463e389e87d1", "score": "0.6035127", "text": "@Override\n public void onAllUserInfo(Map<String, PublicUser> usersMap) {\n for (PublicUser user : usersMap.values()) {\n Address address = Utils.getLanAndLog(this, user.country, user.states);\n locationMap.put(user.email, new LatLng(address.getLatitude(), address.getLongitude()));\n }\n }", "title": "" }, { "docid": "5f50cc6c60f25792521439692b7ed350", "score": "0.60324764", "text": "@Override\n\tpublic List<MyMap> findByIdAndUsername() {\n\t\tString hql = \"FROM MyMap WHERE id IN (SELECT MAX(id) FROM MyMap WHERE UNIX_TIMESTAMP(NOW())-UNIX_TIMESTAMP(sent_time)<900 GROUP BY user_name)\";\n\t\tQuery query = this.getSession().createQuery(hql);\n\t\treturn query.list();\n\t}", "title": "" }, { "docid": "215a573898dc66afe8e87f3a4768c4fa", "score": "0.5986573", "text": "public static HashMap<String, User> getUserList()\n {\n return userList;\n }", "title": "" }, { "docid": "af17f4bfd3d495371d4d709bda49695d", "score": "0.5981683", "text": "@Override\n\tpublic List<Map<String, Object>> queryMembers() {\n\t\treturn userMapper.queryMembers();\n\t}", "title": "" }, { "docid": "3db66faedf3345b48898e7feef7d6852", "score": "0.5979388", "text": "@Override\n\tpublic List<String> getUnitAlluserId(Map<String, Object> map) {\n\t\treturn tongJiDao.getUnitAlluserId(map);\n\t}", "title": "" }, { "docid": "2a1f3eed76015d782217efda99dfdb71", "score": "0.5971111", "text": "@Override\r\n\tpublic Map<String, Object> userinfoSelect(Map<String, Object> map)\r\n\t\t\tthrows Exception {\n\t\treturn boardDao.userinfoSelect(map);\r\n\t}", "title": "" }, { "docid": "0560d064f2db5fbb0efe9b6d74db3b53", "score": "0.5967061", "text": "public List<Usuario> listarUsuariosPTipo(){\n\t\treturn udao.ConsultarUsuarioTipo(); \n\t}", "title": "" }, { "docid": "a43a73fb0b02576d02ad9f464f8c3d82", "score": "0.59566283", "text": "public List<User_prize> list(HashMap<String, Object> map) {\n\t\treturn sm.selectList(\"com.lanzhou.entity.User_prize.list\", map);\n\t}", "title": "" }, { "docid": "11a2cb93cccb6395c212f6d19a97e209", "score": "0.5955215", "text": "public List<Map<String, Object>> getUserList(int pageNumber, int pageSize) {\n List<Map<String, Object>> userList = userDao.login1();\n \n return userList;\n }", "title": "" }, { "docid": "c913516e83e4687cd978a743b4047e55", "score": "0.5946585", "text": "public List<User> getUserList();", "title": "" }, { "docid": "c913516e83e4687cd978a743b4047e55", "score": "0.5946585", "text": "public List<User> getUserList();", "title": "" }, { "docid": "50b6137d56207a4739ed99c32cb9f25c", "score": "0.5934156", "text": "public static Map<String, User> getUserMap() {\n return userMap;\n }", "title": "" }, { "docid": "663457ff3b6e5b2fef2f30c4add77c72", "score": "0.59262764", "text": "public abstract List<MapInfo> getMostHitMapList(String user);", "title": "" }, { "docid": "0db8b3c8ce6cc2d4dc0bd02456339b14", "score": "0.5920011", "text": "public List<Map<String, Object>> getLoc();", "title": "" }, { "docid": "70c4d51fe38ff5c09856d5dfc54c69fb", "score": "0.5911923", "text": "List<UsuarioDTO> listarUsuarios();", "title": "" }, { "docid": "d5e7b57f41f2bf3f260b34d8b5a8dd8d", "score": "0.5911629", "text": "public Map<Long, String> getUserFriends(String userName, String password);", "title": "" }, { "docid": "3a970d36d12c756f84510bac6ca420ef", "score": "0.5909658", "text": "public List<Utilisateur> listUtilisateurParGroupe(Long identifiant);", "title": "" }, { "docid": "5c6fdfab8903441428ef21fdbfad8749", "score": "0.5904601", "text": "public ArrayList<Usuario> usuariosMostrar(){\r\n ArrayList<Usuario> cedulas;\r\n if(baseDatoUsada){\r\n cedulas = controllerBDPostgre.mostrarUsuarios();\r\n }\r\n else{\r\n cedulas = oracle.mostrarUsuarios();\r\n }\r\n return cedulas;\r\n }", "title": "" }, { "docid": "400fc7fea2eb11a1876106c89eddde92", "score": "0.5884625", "text": "@Override\n\tpublic Map<Object, Object> getUserMap(HttpServletRequest request) {\n\t\tRestTemplate restTemplate = new RestTemplate();\n\t\tObject principal = SecurityContextHolder.getContext().getAuthentication().getPrincipal();\n\t\tString authCredentials = request.getHeader(\"Authorization\");\n\t\tString currentUser = BaseUtil.getPrincipal();\n\t\tHttpEntity<String> req = new HttpEntity<String>(getHeaders(principal, authCredentials));\n\t\tParameterizedTypeReference<Map<Object, Object>> responseType = new ParameterizedTypeReference<Map<Object, Object>>() {\n\t\t};\n\t\tResponseEntity<Map<Object, Object>> response = restTemplate.exchange(\n\t\t\t\tsystemConfiguration.getServiceUrl(\"CORE\") + \"user/userDetailDto?userMobile=\" + currentUser,\n\t\t\t\tHttpMethod.GET, req, responseType);\n\t\treturn response.getBody();\n\t}", "title": "" }, { "docid": "2b6605968830d8cf668d797fcff72de5", "score": "0.58673114", "text": "private void listUser() {\n System.out.println(\"****************************************************\");\n System.out.println(\"User name:\\t User password:\");\n for (User user : getUsers()) {\n System.out.println(user.getUserName() + \"\\t\\t\" + user.getPassword());\n }\n System.out.println(\"****************************************************\");\n }", "title": "" }, { "docid": "7047dc30265b4bc5a1b871f46d1aec0f", "score": "0.5859811", "text": "public abstract List<CovidMap> getMapList();", "title": "" }, { "docid": "96d24f211775dbf7948d1f2e9ff46b12", "score": "0.5858656", "text": "public String getAllMap();", "title": "" }, { "docid": "e0f4ddfe26da64f4c5a8d4e33dc2a09a", "score": "0.585802", "text": "public List<String> getUserList();", "title": "" }, { "docid": "6202002c55d4a2b7a955f08941260738", "score": "0.5855661", "text": "Map<String, Object> selectAwftByName(User user);", "title": "" }, { "docid": "91b2134bb4a5878c19f7a70fe77fff05", "score": "0.58556443", "text": "private static List<User> getUserData(){\n List<User> UserItems= new ArrayList<User>();\n\n User item1 = new User();\n item1.setMarker(\"UserSession\");\n item1.setLat(44.6488);\n item1.setLon(-63.5752);\n item1.setIsTrackerOn(false);\n UserItems.add(item1);\n\n\n return UserItems;\n }", "title": "" }, { "docid": "8d91654d5a7d5086c01d253e60718785", "score": "0.5848322", "text": "@Override\n\tpublic List<User> findList() {\n\t\treturn usermapper.findList();\n\t}", "title": "" }, { "docid": "9e364ce795abd9041c7b54426286b751", "score": "0.58385104", "text": "private java.util.List<client.Usuarios> obtenerUsuarios() {\n client.UsuarioService port = service.getUsuarioServicePort();\r\n return port.obtenerUsuarios();\r\n }", "title": "" }, { "docid": "0a1c586826a4dbf2fda7b66b5cd8b61c", "score": "0.5837396", "text": "public static Map<Integer, String> convertListToMap() {\n\t\treturn users.stream().collect(\r\n\t\t\t\tCollectors.toMap(u -> u.getId(), u -> u.getName()));\r\n\t}", "title": "" }, { "docid": "b8a404418a11eaa48c92c53bff81e1ba", "score": "0.5828006", "text": "public List<Registration> viewUsers();", "title": "" }, { "docid": "8d2f503e955c20617ee6d25b06cd5c5f", "score": "0.58218396", "text": "private List<Map<String, Object>> getData() {\n List<Map<String, Object>> list = new ArrayList<Map<String, Object>>();\n\n int roomid = Integer.valueOf(getIntent().getStringExtra(ROOM_ID));\n Chatroom room = null;\n for (Chatroom r : UserContainer.chatroomList) {\n if (r.getRoomID().equals(roomid))\n room = r;\n }\n List<User> memberList = new ArrayList<User>();\n if (room != null)\n memberList = room.getMemberList();\n for (User member : memberList) {\n Map<String, Object> map = new HashMap<String, Object>();\n map.put(\"name\", member.getName());\n map.put(\"email\", member.getEmail());\n map.put(\"image\", R.mipmap.ic_launcher);\n list.add(map);\n }\n return list;\n }", "title": "" }, { "docid": "bd83db8f49afc1aaaf6c9278d505ec5f", "score": "0.58168024", "text": "@GetMapping(\"/Map\")\n\tprivate List<AddressDto> findInfo()\n\t{\n\t\treturn UserService.findAllInfo();\n\t}", "title": "" }, { "docid": "546fbb46d23176419af99cfad8c94f19", "score": "0.58152115", "text": "public void mostrarTodosUsuarios() {\n\t\tfor (Usuario u : datosUsuarios) {\n\t\t\tSystem.out.println(\"\\n\" + u);\n\t\t}\n\t}", "title": "" }, { "docid": "e0fb3ad278661d9d89f36ba8ccfae2f9", "score": "0.5804423", "text": "public List<Usuario> getAllUser() {\n\t List<Usuario> registro = new ArrayList<Usuario>();\n\t \n\t String table \t\t= helper.TABLE_NAME; //tabla a consultar (FROM)\n\t String[] columnas \t\t= new String[]{helper.USUA_CONS, helper.USUA_NOMB, helper.USUA_FENA, helper.USUA_PAIS, helper.USUA_SEXO, helper.USUA_HAIN, helper.USUA_IMAG}; //columnas a devolver (SELECT) \n String selection \t\t= null; //consulta (WHERE) ---- String selection = helper.USUA_CONS + \" = ? and \"+helper.USUA_PAIS + \" = ?\"; \n String[] selectionArgs \t= null; //reemplaza “?” de la consulta ----- String[] selectionArgs = new String[]{\"1\",\"Colombia\"}; \n String groupBy \t\t\t= null; //agrupado por (GROUPBY)\n String having \t\t\t= null; //condición para agrupación\n String orderBy \t\t\t= null; //ordenado por \n String limit \t\t\t= null; //cantidad máx. de registros*/\n \t \n\t\tCursor rs = db.query(table, columnas, selection, selectionArgs, groupBy, having, orderBy, limit);\n\n\t rs.moveToFirst();\n\t while (!rs.isAfterLast()) {\n\t \tUsuario dato = cursorToComment(rs);\n\t \tregistro.add(dato);\n\t rs.moveToNext();\n\t }\n\t // make sure to close the cursor\n\t rs.close();\n\t return registro;\n\t }", "title": "" }, { "docid": "0ee469de3d61b362759a068b4b0191a5", "score": "0.58017874", "text": "public List<Usuario> listUsuario() {\r\n PreparedStatement ps;\r\n ResultSet rs;\r\n String consultaSQL = \"Select usuario,contraseña,id_empleado from invernadero_gran_valle.usuario;\";\r\n\r\n List<Usuario> usuarios= new ArrayList<Usuario>();\r\n try {\r\n ps = interfaceLogin.conectiondb.getConexion().prepareStatement(consultaSQL);\r\n rs = ps.executeQuery();\r\n while (rs.next()) {\r\n Usuario c = new Usuario();\r\n c.setId_empleado(rs.getInt(\"id_empleado\"));\r\n c.setUser(rs.getString(\"usuario\"));\r\n c.setPassword(rs.getString(\"contraseña\"));\r\n\r\n usuarios.add(c); \r\n }\r\n } catch (SQLException exception) {\r\n System.err.println(\"Error al CARGAR DATOS (Vehiculos) \" + exception);\r\n usuarios = Collections.emptyList();\r\n }\r\n Collections.sort(usuarios);\r\n return usuarios;\r\n }", "title": "" }, { "docid": "6d7d5a9f24ba00d4224dc7d9566c754c", "score": "0.5782595", "text": "public Map<String, User> getUserMap() {\r\n\t\treturn userMap;\r\n\t}", "title": "" }, { "docid": "ff51989ddec2a0325dd7f03a15a04530", "score": "0.5775253", "text": "public List<Usuario> getLista() {\n return cadastroMainDAOImpl.getLista();\n }", "title": "" }, { "docid": "adde9678955c223f649ca8686b87f99a", "score": "0.5774987", "text": "public static ArrayList<Location> getLocationListByUser (String uname){\n\t\tArrayList<Location> list = new ArrayList<Location>();\n\t\tfor (User user : users){\n\t\t\tif (user.getUsername().equals(uname))\n\t\t\t\tlist = user.getLocationList();\n\t\t}\n\t\treturn list;\n\t}", "title": "" }, { "docid": "ef82b08ef69befbe09f0dde4b4cc9499", "score": "0.5772962", "text": "public List getListaCarteraAsignada(Map datos);", "title": "" }, { "docid": "85f83f66364f3c6ff83d5f33ba7f97df", "score": "0.57392544", "text": "public void getUserIdMap() {\n DatabaseReference userids = mDatabase.child(\"userids\");\n userids.addListenerForSingleValueEvent(new ValueEventListener() {\n @Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n for (DataSnapshot userid: dataSnapshot.getChildren()) {\n // Add all userid's and emails to map\n userMap.put(userid.getKey(), userid.getValue().toString());\n }\n // Get groups user is part of\n getUserGroups(userMap);\n }\n @Override\n public void onCancelled(DatabaseError databaseError) {\n Toast.makeText(GroupActivity.this,\n \"Database error\", Toast.LENGTH_SHORT).show();\n }\n });\n }", "title": "" }, { "docid": "d122f1a2eb43389b37dda0ffe89e8d40", "score": "0.5736086", "text": "private void getUsers() {\n log.info(\"getting users\");\n replicator.tell(new Get<ORMultiMap<String, String>>(usersKey, readMajority), getSelf());\n }", "title": "" }, { "docid": "627001766699582431487d89c366a8e8", "score": "0.5731447", "text": "private void test() {\n\t\tMap map = testService.getUserNameByMap(\"yangyi\");\n\t\tSystem.out.println(map.get(\"UNAME\"));\n\t\tSystem.out.println(testService.getUserNameByString(\"yangyi\"));\n\t}", "title": "" }, { "docid": "18c7f89a8bce1923a3b6679d7adab2cd", "score": "0.57158357", "text": "public List<HotkeyMap> findAllMaps(){\n return mapRepository.findAll();\n }", "title": "" }, { "docid": "d0767051da8588f0a629609c967dfe12", "score": "0.57109874", "text": "public List<Object[]> readAllMenuMapping();", "title": "" }, { "docid": "c0e2e2488007f983d104ecfe9ec521a7", "score": "0.5706869", "text": "public List<Usuario> listarUsuarios() {\n\t\tTypedQuery<Usuario> query = entityManager.createNamedQuery(Usuario.LISTAR_TODOS_LOS_USUARIOS,\n\t\t\t\tUsuario.class);\n\t\t\treturn query.getResultList();\n\t}", "title": "" }, { "docid": "0c836b637fb1d7571c498591d27281e2", "score": "0.57045364", "text": "public void returnUserList() throws SQLException {\t\t//Returns all entries for admin\r\n\t\t\r\n\t\tStatement states = con.createStatement();\r\n\t\tResultSet rs = states.executeQuery(\"SELECT * FROM userdata\");\r\n\t\t\r\n\t\twhile(rs.next()) {\r\n\t\t\tSystem.out.print (rs.getString(\"Name\") + \"\\t\");\r\n\t\t\tSystem.out.print(rs.getString(\"NRIC\") + \"\\t\");\r\n\t\t\tSystem.out.print(rs.getString(\"EmailAdd\") + \"\\t\");\r\n\t\t\tSystem.out.print(rs.getInt(\"Mobile\") + \"\\t\");\r\n\t\t\tSystem.out.print(rs.getDate(\"DOB\") + \"\\t\");\r\n\t\t\tSystem.out.print(rs.getString(\"Password\") + \"\\t\");\r\n\t\t\tSystem.out.print(rs.getString(\"Role\") + \"\\t\");\r\n\t\t\tSystem.out.print(rs.getString(\"SecurityQuestion\") + \"\\t\");\r\n\t\t\tSystem.out.print(rs.getString(\"SecurityAnswer\") + \"\\t\");\r\n\t\t\tSystem.out.print(rs.getInt(\"FirstLog\") + \"\\t\");\r\n\t\t\tSystem.out.print(rs.getInt(\"Status\") + \"\\t\");\r\n\t\t\tSystem.out.println(rs.getInt(\"NumOfAttempts\") + \"\\t\");\r\n\t\t}\r\n\t\tSystem.out.println(\"\");\r\n\t}", "title": "" }, { "docid": "60c17e4bdbeb5c3f2786e1ee90b4884a", "score": "0.5704269", "text": "List<EZN206001> getAllUser();", "title": "" }, { "docid": "ae8d4c9b8958f34778a01fc4c6902ed0", "score": "0.5704257", "text": "public List<Map<String,String>> findName() {\n\t\t\n\t\treturn roletoirpdao.findName();\n\t}", "title": "" }, { "docid": "cb8b0def32a827237cde84575ad7ae91", "score": "0.56966704", "text": "public List<ContainerMapping> lookupContainerMappingsByUserName(String userName){\n return containerMappingDao.lookupContainerMappingsByUserName(userName);\n }", "title": "" }, { "docid": "c43a3221d231b65481c8950673060883", "score": "0.5696464", "text": "@Override\n\tpublic List<User> getUserListByName() {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "52742c761953e28d4982d49f6df05bee", "score": "0.56882644", "text": "@Override\n\t//查询数据\n\tpublic List<User> findList(Map<String,Object> queryMap) {\n\t\treturn userDao.findList(queryMap);\n\t}", "title": "" }, { "docid": "42b78892a80bf00aae7ab3fd3bc8e8a4", "score": "0.56871915", "text": "java.util.List<java.lang.String>\n getRootUsersList();", "title": "" }, { "docid": "d82aa40c8165bc443059f1ae2d8388ab", "score": "0.56870663", "text": "public ArrayList<HashMap<String, String>> getAllUsers() {\n ArrayList<HashMap<String, String>> wordList;\n wordList = new ArrayList<HashMap<String, String>>();\n String selectQuery = \"SELECT * FROM people_table\";\n SQLiteDatabase database = this.getWritableDatabase();\n Cursor cursor = database.rawQuery(selectQuery, null);\n if (cursor.moveToFirst()) {\n do {\n HashMap<String, String> map = new HashMap<String, String>();\n map.put(\"id\", cursor.getString(0));\n map.put(COL1, cursor.getString(1));\n map.put(COL2, cursor.getString(2));\n map.put(COL3, cursor.getString(3));\n map.put(COL4, cursor.getString(4));\n map.put(COL5, cursor.getString(5));\n wordList.add(map);\n } while (cursor.moveToNext());\n }\n database.close();\n return wordList;\n }", "title": "" }, { "docid": "0eee338aaf99f8bf71028c5f9aa81116", "score": "0.5685962", "text": "Map<String, User> getUsers() {\n return users;\n }", "title": "" }, { "docid": "4b271d97fe7bda778f0bca80e177595a", "score": "0.5663622", "text": "public Vector<Usuario> listarUsuarios() {\n\t\tVector<Usuario> lista = new Vector<>(); \r\n\t\tResultSet rs;\r\n\r\n\t\ttry {\r\n\t\t\trs = this.dbCon.getStm().executeQuery(\"SELECT * FROM usuario ORDER BY nome ASC\");\r\n\r\n\t\t\twhile (rs.next()) {\r\n\t\t\t\tlista.add(new Usuario( rs.getInt(\"id\"), rs.getString(\"tipo\"), rs.getString(\"nome\")));\r\n\t\t\t}\r\n\r\n\t\t\trs.close();\r\n\r\n\t\t}\r\n\t\tcatch (SQLException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\r\n\t\treturn lista;\r\n\t}", "title": "" }, { "docid": "6610fde8911ca9d971e2c17737d63625", "score": "0.56564003", "text": "@GetMapping(\"/getusuarios\")\n\tpublic List<Usuario> getAllUsuarios() {\n\t\treturn us.getAllUsuarios();\n\t}", "title": "" }, { "docid": "878829a0304207a14c8887946604b8cc", "score": "0.56531805", "text": "public List<Usuario> listar() {\n\t\tString jpql = \"select u from Usuario u\";\n\t\tList<Usuario> usuarios = manager.createQuery(jpql, Usuario.class).getResultList();\n\t\tusuarios.forEach(usuario -> {\n\t\t\tusuario.getListaNotificaciones().size();\n\t\t\tusuario.getListaRegistroSesiones().size();\n\t\t});\n\t\treturn usuarios;\n\t}", "title": "" }, { "docid": "3ae58547bcefa97981cb12a366d8c103", "score": "0.5649505", "text": "@Override\n\tpublic List<Map<String, Object>> getAllLuj() {\n\t\treturn commonDao.getAllLuj();\n\t}", "title": "" }, { "docid": "50cbaec297045b9a86b0444cd4f1abe9", "score": "0.56399953", "text": "@Override\n\tpublic List<Map<String, Object>> findUserInfoPage(Map<String, Object> params) {\n\t\treturn usermapper.findUserInfoPage(params);\n\t}", "title": "" }, { "docid": "d7dd74fbc1683a245209898b458cf99d", "score": "0.5626876", "text": "@GET\r\n\t@Path(\"/getAllUsers\")\r\n\tpublic Map<Integer, String> getUsers(){\r\n\t\t\r\n\t\t\r\n\t\treturn AllUsers;\r\n\t}", "title": "" }, { "docid": "d2392140a6a5b608e71006f773f72757", "score": "0.5625917", "text": "public String showUsers(){\n\t\tString userList=\"\";\n\t\tboolean control=false;\n\t\tfor(int i=0; i<users.length && !control; i++){\n\t\t\tif(users[i]!=null){\n\t\t\t\tuserList+=\"************* User **************\\n\"+\n\t\t\t\t\"** UserName: \"+users[i].getUserName()+\"\\n\"+\n\t\t\t\t\"** Age: \"+users[i].getAge()+\"\\n\"+ \n\t\t\t\t\"** Category:\"+ users[i].categoryToString()+\"\\n\"+\n\t\t\t\t\"**********************************\\n \\n\";\n\t\t\t}\n\t\t\telse{\n\t\t\t\tcontrol=true;\n\t\t\t}\n\t\t}\n\t\tif (users[0]==null){\n\t\t\tuserList=\"Aun no se han registrado usuarios\";\n\t\t}\n\t\treturn userList;\n\t}", "title": "" }, { "docid": "afaeaa5dbed285b4de984e46a42dad00", "score": "0.5616117", "text": "@Override\r\n\tpublic List<Map<String, Object>> selectAllcouList(Map<String, Object> dataMap) throws DataAccessException {\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "68112a9a3ef9d93209c035388d0ae935", "score": "0.5612176", "text": "@Override\r\n public List<Usuario_interno> All_usuarios_internos(Usuario_interno Usuario_gerente, int inicio) {\n Session sesionhi = this.hibernate_sesion.get_sessionFactor().openSession();\r\n List<Usuario_interno> user_internos = null;\r\n try {\r\n sesionhi.beginTransaction();\r\n Usuario_interno UsergerenteEntity = sesionhi.find(Usuario_interno.class, Usuario_gerente.getId_persona());\r\n if (UsergerenteEntity.getPerfil().getTipoPerfil().compareTo(Tipo_Perfil_UsuarioInterno.Administrador) == 0) {\r\n user_internos = (List<Usuario_interno>) sesionhi.createCriteria(Usuario_interno.class)\r\n .add(Restrictions.not(Restrictions.idEq(Usuario_gerente.getId_persona()))).createAlias(\"area\", \"areatotal\").setResultTransformer(Criteria.DISTINCT_ROOT_ENTITY)\r\n .add(Restrictions.eq(\"areatotal.tipoArea\", UsergerenteEntity.getArea().getTipoArea())).createAlias(\"perfil\", \"perfiluser\")\r\n .setResultTransformer(Criteria.ROOT_ENTITY).add(Restrictions.eq(\"perfiluser.tipoPerfil\", Tipo_Perfil_UsuarioInterno.Profesional))\r\n .setFirstResult(inicio).setMaxResults(inicio + 10).list();\r\n }\r\n\r\n sesionhi.getTransaction().commit();\r\n } catch (Exception e) {\r\n this.error.Manejador_errores(sesionhi, \"error en UsuarioInternoImpl:All_usuarios_internos\" + e.getMessage());\r\n\r\n } finally {\r\n sesionhi.close();\r\n }\r\n return user_internos;\r\n }", "title": "" }, { "docid": "ee8090d864261d04bafc290555855edf", "score": "0.5604024", "text": "public void GetUsers() {\n ObjectMapper objectMapper = new ObjectMapper();\n List<User> users = null;\n try {\n String s = _serviceCaller.getObjects(\"ReturnAllUserScreen?code=1GezBXkc3BdHa7RF28JarOaSBWsk9RlxDfJz7zZFsBQD2jRKNSeZag==\", null);\n Log.d(\"UserCaller\", \"Attempting to read \" + s);\n ObjectMapper mapper = new ObjectMapper();\n ArrayNode node = (ArrayNode)mapper.readTree(s);\n users = new ArrayList<>();\n for(JsonNode jn : node){\n User u = mapper.convertValue(jn, User.class);\n JsonNode skills = jn.get(\"skills\");\n ObjectReader reader = objectMapper.readerFor(new TypeReference<List<String>>() {\n });\n u.skills = reader.readValue(skills);\n users.add(u);\n }\n }\n catch (IOException ioe){\n Log.e(\"UserCaller\",\"GetUsers return all users screen didn't work: \" + ioe);\n }\n _activity.finishUpdateUsers(users);\n }", "title": "" }, { "docid": "689ccc48bebda2bf772c19bdfcb07127", "score": "0.5601149", "text": "public Map<String, Object> crearUsuario(UsuariosDTO objUsuariosDTO,String strUsuario) throws BOException;", "title": "" }, { "docid": "3754abf908e0c38b911a8d5a2d586031", "score": "0.55944103", "text": "public static Map<String, List<UserFriends>> getUsers() {\n return users;\n }", "title": "" }, { "docid": "635463b26a146b8cc38422b6e6db7939", "score": "0.5588776", "text": "public List<Usuario> consultarUsuarios() {\r\n return this.usuarioDAO.consultar(\"Usuario.findAll\");\r\n }", "title": "" }, { "docid": "48853871a115f6be6d60eaca7cfe5a3d", "score": "0.5584491", "text": "@Override\n\tpublic List<User> getUserDetails(Map<String, Object> pars) {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "a7cec1a3268dc81b5db319822fbbac36", "score": "0.55830455", "text": "@Override\n\t\t\t\t\t\tpublic void onTemFouceReturn(List<Map<String, Object>> maps) {\n\t\t\t\t\t\t\tif (maps != null) {\n\t\t\t\t\t\t\t\ttemUserFouceList.clear();\n\t\t\t\t\t\t\t\ttemUserFouceList.addAll(maps);\n\t\t\t\t\t\t\t\tnotifyDataSetChanged();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}", "title": "" }, { "docid": "a7cec1a3268dc81b5db319822fbbac36", "score": "0.55830455", "text": "@Override\n\t\t\t\t\t\tpublic void onTemFouceReturn(List<Map<String, Object>> maps) {\n\t\t\t\t\t\t\tif (maps != null) {\n\t\t\t\t\t\t\t\ttemUserFouceList.clear();\n\t\t\t\t\t\t\t\ttemUserFouceList.addAll(maps);\n\t\t\t\t\t\t\t\tnotifyDataSetChanged();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}", "title": "" }, { "docid": "23ca8a6e4fa4dbe834c309429b892ce7", "score": "0.55823547", "text": "public void obtenerGrupos() {\n\t\t\r\n\t}", "title": "" }, { "docid": "c82e6b0cafc9570efd8febd4b67aba0b", "score": "0.5581742", "text": "public List<GroupUserMapping> findByUserId(int id);", "title": "" }, { "docid": "0517d57350d636c0b30b02d7758315e1", "score": "0.55784416", "text": "public abstract List<MapInfo> getMapsInPeriod(String user, Date start, Date end);", "title": "" }, { "docid": "c899c0ae3818b258e6f2429038d11e72", "score": "0.55775106", "text": "@SuppressWarnings(\"rawtypes\")\r\n\tpublic List listaUsuarios() {\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "708960cc9026c4c71d3a3bab83862394", "score": "0.5571874", "text": "public void listOfUsers() \r\n {\r\n \tif(userList.isEmpty())\r\n \t\tSystem.out.println(\"No users.\");\r\n \telse\r\n \t{\r\n \t\tSystem.out.println(\"List of users:\\n\");\r\n \t\tfor(User users : userList)\r\n\t\t\t{\r\n \t\t\tSystem.out.println(\"Here is UserID: \" + users.getUserID());\r\n \t\t\tSystem.out.println(users.toString());\r\n\t\t\t}\r\n \t}\r\n\t}", "title": "" }, { "docid": "f1bc041dc72ce9e21c54b505194f64e3", "score": "0.55685085", "text": "@Override\n\tpublic List<MapsData> getMapsData(int userId) {\n\t\t\tList<MapsData> bingDatas = new ArrayList<>();\n\t\ttry {\n\t\t\tConnection con = (Connection) dataSource.getConnection();\n\t\t\tString sql = \"select * from maps_data where user_id = ? order by maps_data_id desc limit 0,10\";\n\t\t\tPreparedStatement ps = (PreparedStatement) con.prepareStatement(sql);\n\t\t\tps.setInt(1,userId);\n\t\t\tResultSet rs = ps.executeQuery();\n\t\t\t\n\t\t\twhile (rs.next()) {\n\t\t\t\tMapsData bingData = new MapsData();\n\t\t\t\tbingData.setMapsId(rs.getInt(\"maps_data_id\"));\n\t\t\t\tbingData.setRoot_url(rs.getString(\"root_url\"));;\n\t\t\t\tbingData.setUrl_id(rs.getString(\"url_id\"));\n\t\t\t\tbingDatas.add(bingData);\n\t\t\t\tSystem.out.println(rs.getInt(\"maps_data_id\"));\n\t\t\t}\n\t\t\tcon.close();\n\t\t}catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\t// TODO: handle exception\n\t\t}\n\t\treturn bingDatas;\n\t}", "title": "" }, { "docid": "ef5cf5225b029699287b153ca00517e6", "score": "0.5566814", "text": "@Override\r\n\tpublic List<Map<String, Object>> getAllMapList(Map<String, Object> map) throws Exception {\n\t\treturn laughDao.getAllMapList(map);\r\n\t}", "title": "" }, { "docid": "e07ad1d770c16d37cbafcfd307d11089", "score": "0.5559937", "text": "public void getUsers()\n {\n Repository.getInstance().getUserList(this);\n }", "title": "" } ]
b49c68d0788c73c20edbfbea8e61a447
set listview click listener
[ { "docid": "7139c0febff9de254496ff40a8e62994", "score": "0.0", "text": "public AdapterView.OnItemClickListener ClickListener() {\n return new AdapterView.OnItemClickListener() {\n @Override\n public void onItemClick(AdapterView<?> parent, View viewClicked, int position, long id) {\n Context context = getBaseContext();\n\n // go to the clicked item\n Intent intent = new Intent(context, ItemViewActivity.class);\n\n Specs specs = (Specs) parent.getItemAtPosition(position);\n intent.putExtra(\"Name\", specs.getName());\n intent.putExtra(\"Description\", specs.getDescription());\n intent.putExtra(\"Image\", specs.getImage());\n intent.putExtra(\"ExtraSpecs\", specs.getExtraSpecs());\n\n context.startActivity(intent);\n }\n };\n }", "title": "" } ]
[ { "docid": "22e53fe07ce67729b8377ba811a87fad", "score": "0.8053212", "text": "private void listItemClicked(AdapterView<?> parent, View view, int position, long id) {\n }", "title": "" }, { "docid": "2696ffc4236c78e8fb2db576f0df67ac", "score": "0.78769416", "text": "private void setListClick() {\n\t\tlistView.setOnItemClickListener(new OnItemClickListener() {\n\n\t\t\t@Override\n\t\t\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2,\n\t\t\t\t\tlong arg3) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tIntent intent=new Intent();\n\t\t\t\tintent.putExtra(\"fanuid\", list.get(arg2-1).vuid);\n\t\t\t\tintent.setClass(mContext, PersonalHomeActivity.class);\n\t\t\t\tstartActivity(intent);\n\t\t\t}\n\t\t});\n\t}", "title": "" }, { "docid": "4a34a6cab63ef1189512bcb252eb7b62", "score": "0.77874607", "text": "@Override\n public void onClick(View view) {\n int clickedPosition = getAdapterPosition();\n mOnClickListener.onListItemClick(clickedPosition);\n }", "title": "" }, { "docid": "0cd0342260ca69b106df738467b4fa45", "score": "0.7725391", "text": "@Override\n\tprotected void onListItemClick(ListView listView, View view, int position,\n\t\t\tlong id) {\n\n\t}", "title": "" }, { "docid": "f36eb543123fb7329fd3845f1eb5ffaa", "score": "0.7677133", "text": "private void clickcallback() {\n final ListView listView = findViewById(R.id.ListViewItems);\n\n listView.setOnItemClickListener(ClickListener());\n\n if (friendID == null) {\n listView.setOnItemLongClickListener(LongClickListener());\n }\n }", "title": "" }, { "docid": "84d93e906ca69e37ef8dc6390b4dc1d8", "score": "0.7648228", "text": "@Override\n public void onClick(View v) {\n int clickedPosition =getAdapterPosition() ;\n mOnClickListener.onListItemClick(clickedPosition);\n }", "title": "" }, { "docid": "84d93e906ca69e37ef8dc6390b4dc1d8", "score": "0.7648228", "text": "@Override\n public void onClick(View v) {\n int clickedPosition =getAdapterPosition() ;\n mOnClickListener.onListItemClick(clickedPosition);\n }", "title": "" }, { "docid": "654bfeeab7ed4fe9686716a22ba39d60", "score": "0.7604991", "text": "@Override\n\tpublic void onListItemClick(ListView l, View v, int position, long id) {\n }", "title": "" }, { "docid": "02f44d5bc671302989eff7d5baee3345", "score": "0.75489634", "text": "@Override\n public void onListItemClick(ListView l, View v, int position, long id) {\n }", "title": "" }, { "docid": "02f44d5bc671302989eff7d5baee3345", "score": "0.75489634", "text": "@Override\n public void onListItemClick(ListView l, View v, int position, long id) {\n }", "title": "" }, { "docid": "02f44d5bc671302989eff7d5baee3345", "score": "0.75489634", "text": "@Override\n public void onListItemClick(ListView l, View v, int position, long id) {\n }", "title": "" }, { "docid": "02f44d5bc671302989eff7d5baee3345", "score": "0.75489634", "text": "@Override\n public void onListItemClick(ListView l, View v, int position, long id) {\n }", "title": "" }, { "docid": "58b30f1f7aaabf2bb68b94692e4220d2", "score": "0.7512404", "text": "private void setListener() {\n\t\tlistView.setOnItemClickListener(new OnItemClickListener() {\n\n\t\t\t@Override\n\t\t\tpublic void onItemClick(AdapterView<?> parent, View arg1, int arg2,\n\t\t\t\t\tlong arg3) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tif (!NetWorkUtils.detect(context)) {\n\t\t\t\t\t((BasicActivity) context).showToast(getString(R.string.network_unavailable));\n\t\t\t\t}\n\t\t\t\tContactEntry item = (ContactEntry) parent.getAdapter().getItem(\n\t\t\t\t\t\targ2);\n\t\t\t\tIntent intent = new Intent(context, ContactInfoActivity.class);\n\t\t\t\tintent.putExtra(\"title\", item.getREALNAME());\n\t\t\t\tintent.putExtra(\"tochat_userId\", item.getMEMBERID());\n\t\t\t\tintent.putExtra(\"user_avatar\", item.getAVATAR());\n\t\t\t\tintent.putExtra(\"is_star\", item.getIS_STAR() == null ? \"0\"\n\t\t\t\t\t\t: item.getIS_STAR());\n\t\t\t\tintent.putExtra(\"note_name\", item.getNOTE_NAME());\n\t\t\t\tintent.putExtra(\"description\", item.getDESCRIPTION());\n\t\t\t\tstartActivity(intent);\n\t\t\t}\n\t\t});\n\t}", "title": "" }, { "docid": "b273af16c532c2aa69f511add792329a", "score": "0.74775714", "text": "private void listViewItemClickListener(final ListView listview, final ArrayList<String> list) {\n\t\tlistview.setOnItemClickListener(new AdapterView.OnItemClickListener() {\n\t\t\t@Override\n\t\t\tpublic void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n\t\t\t\t//setting up the selection process for the listviews\n\t\t\t\tsetSelector(view);\n\t\t\t\t//setting up the title to be displayed\n\t\t\t\ttitle = list.get(position);\n\t\t\t\t//starting up media player to play the selected item\n\t\t\t\tplayMediaPlayer(mediaPlayer);\n\t\t\t}\n\t\t});\n\t}", "title": "" }, { "docid": "9f34a98d81bd31c13f41bea310c8b8c1", "score": "0.7449635", "text": "@Override\n \tprotected void onListItemClick(ListView l, View v, int position, long id)\n \t{\n \t\t// TODO Auto-generated method stub\n \t\tsuper.onListItemClick(l, v, position, id);\n \t}", "title": "" }, { "docid": "a963eecb1d68025e16c45e73401bbd2a", "score": "0.7419256", "text": "@Override\n public void onListItemClick(int clickedItemIndex) {\n }", "title": "" }, { "docid": "c83b00b3ed12175e5a21edbf9c30f289", "score": "0.73906046", "text": "void onItemClick(List<View> views, int position);", "title": "" }, { "docid": "af290d8cc5dcf386758246bf24a83043", "score": "0.73689955", "text": "@Override\n public void onClick(View view) {\n int clickedPosition = getAdapterPosition();\n String clicked = mCreators.get(clickedPosition).getKey();\n\n mOnClickListener.onListItemClick(clicked);\n }", "title": "" }, { "docid": "0ff41ddcc49694c70e7405a6f5c9278e", "score": "0.73414296", "text": "public void onItemClicked(int position);", "title": "" }, { "docid": "0d7595b1356ae8abf004fb2f153f153a", "score": "0.73224723", "text": "private void setupClickListener(ListView callList) {\n\t\t callList.setOnItemClickListener(new OnItemClickListener() {\n\t\t\t@Override\n\t\t\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int position, long arg3) {\n\t\t\t\tIntent myIntent;\n\t\t\t\tmyIntent = new Intent (Multi.this, Show.class);\n\t\t\t\tLog.v (\"MARK DEBUG\", \"\"+position);\n\t\t\t\tif (which.equals(\"all\")) \n\t\t\t\t\tmyIntent.putExtra(\"index\", position);\n\t\t\t\telse\n\t\t\t\t\tmyIntent.putExtra(\"index\", calls[position]);\n\t\t\t\tstartActivity (myIntent);\n\t\t\t}\t\t\t\n\t\t});\n\t}", "title": "" }, { "docid": "85a44e1ec240836350e1e3a9e1a6540d", "score": "0.7291246", "text": "void onItemClickListener(int postion);", "title": "" }, { "docid": "35038670c6c421ade208b06f443646d8", "score": "0.727163", "text": "void onListFragmentItemClick(int position);", "title": "" }, { "docid": "76fa651e9a5d5d05d834cb1d662d6ddb", "score": "0.7247609", "text": "@Override\n public void onItemClick(AdapterView<?> adapterView, View view, int i, long l) {\n }", "title": "" }, { "docid": "923b5b1f36049ac66f8ec5beaa87926a", "score": "0.7243145", "text": "@Override\n public void onItemClick(AdapterView<?> adapterView, View view, int i, long l) {\n\n }", "title": "" }, { "docid": "b7a1c655e79801909704baa0a465ebe0", "score": "0.72002834", "text": "@Override\n public void onItemClick(AdapterView<?> adapterView, View view, int i, long l) {\n }", "title": "" }, { "docid": "ee58e0c38971658eba5f0511531e8314", "score": "0.71899074", "text": "public interface ListElementViewClickDelegate {\n\t\tpublic void onListElementViewClicked(Object objet);\n\n\t\tpublic void onListElementViewLongClicked(Object objet);\n\t}", "title": "" }, { "docid": "4877a3c9275e8fe0bdbb08bf11cff7d3", "score": "0.7189413", "text": "private void setOnClickListern(){\n saveButton.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n createNewIngrident();\n\n }\n });\n listView.setOnItemLongClickListener(new AdapterView.OnItemLongClickListener() {\n @Override\n public boolean onItemLongClick(AdapterView<?> parent, View view, int position, long id) {\n String selectedIngrident=((TextView) view).getText().toString();\n delteIngrident(selectedIngrident);\n return false;\n }\n });\n\n }", "title": "" }, { "docid": "ffccdaab1adee748821b08cb55fa8ae4", "score": "0.71892995", "text": "void onItemClick(int position);", "title": "" }, { "docid": "ffccdaab1adee748821b08cb55fa8ae4", "score": "0.71892995", "text": "void onItemClick(int position);", "title": "" }, { "docid": "6ffb5f791872db8bdfff93668b27b3fb", "score": "0.7164768", "text": "@Override\n public void onClick(View view) {\n clickListener.onItemClick(getAdapterPosition(), view);\n }", "title": "" }, { "docid": "b40e79a16cc024ff5cc608b73b15c01f", "score": "0.71647614", "text": "private void setupListViewListener()\r\n {\r\n lvSensors.setOnItemClickListener(\r\n new AdapterView.OnItemClickListener()\r\n {\r\n @Override\r\n //------- onItemClick() --------------------\r\n // This method is called when the element in\r\n // the ListView tapped.\r\n public void onItemClick(AdapterView<?> parent,\r\n View view, int position,\r\n long id)\r\n {\r\n // Get the element has just been tapped.\r\n Sensor sen = listSensors.get(position);\r\n int senType = sen.getType();\r\n\r\n // Invoke SensorInfo.\r\n Intent intent = new Intent(DemoSensor.this,\r\n SensorInfo.class);\r\n intent.putExtra(\"resourceID\", list);\r\n intent.putExtra(\"type\", senType);\r\n startActivity(intent);\r\n }\r\n });\r\n }", "title": "" }, { "docid": "22830dfeec5b2509504a53b2fc8e2a6f", "score": "0.7153702", "text": "public void onItemClick(View v, int position);", "title": "" }, { "docid": "f1f75a3417b0f6453f01af377f607d4b", "score": "0.71387076", "text": "@Override\n public void onItemClicked(View view) {\n }", "title": "" }, { "docid": "3ec86e1f64676e7d5f92aba3697160e7", "score": "0.7134889", "text": "@Override\n public void onListItemClick(ListView l, View v, int position, long id) {\n taskItemClickListener.onTaskListItemClick(position);\n }", "title": "" }, { "docid": "31ef8a419dbf4f3de22e08ca300cdbd1", "score": "0.7130301", "text": "void onTaskListItemClick(int position);", "title": "" }, { "docid": "5d537587a56c3125328db33018442fe9", "score": "0.71230584", "text": "public void onItemClick(AdapterView<?> parent,\n View v, int position, long id){\n\n }", "title": "" }, { "docid": "d435f7d158b2619ad0c8f8919cc58644", "score": "0.7109134", "text": "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n\n\n }", "title": "" }, { "docid": "dda3abaccf2ffac702a84006df3ad312", "score": "0.70902896", "text": "@Override\n\t\tprotected void onListItemClick(ListView l, View v, int position, long id) {\n\t\t\tsuper.onListItemClick(l, v, position, id); \n\t\t\tint a[]=new int[2];\n\t\t\ta[0]=getid;\n\t\t\ta[1]=listItemIds.get((int)id);\n\t\t\tBundle b = new Bundle();\n\t \t\tb.putIntArray(\"ids\", a);\n\t\t\tIntent i = new Intent(this,Viewmemory.class);\n\t\t\ti.putExtras(b);\n\t\t\t//entryname.setText(String.valueOf(getid)+\" \"+String.valueOf(a[1])+\" \"+listItemText.get((int)id));\n\t\t\tstartActivity(i);\n\t\t\t\n\t\t}", "title": "" }, { "docid": "9aa5ba16c529ac7023513bd54c433e7f", "score": "0.7076582", "text": "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n }", "title": "" }, { "docid": "496594a5c9041f9dfb76d6d37ec370a2", "score": "0.7066861", "text": "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position,\n long id) {\n\n\n }", "title": "" }, { "docid": "a2662a1dc663b6bf7e6c6712979d0866", "score": "0.7063219", "text": "@Override\n public void onItemClicked(int position) {\n }", "title": "" }, { "docid": "0d6eeb345c6c5c94d7098b902f267549", "score": "0.7049143", "text": "@Override\r\n public void onItemClick(AdapterView<?> arg0, View arg1, int arg2, long arg3) {\n \r\n }", "title": "" }, { "docid": "26dfbd0ab057873511599ebf37c3086c", "score": "0.7042447", "text": "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n\n }", "title": "" }, { "docid": "4e4b556a759682e8c2a959f6951d10d3", "score": "0.7034725", "text": "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n }", "title": "" }, { "docid": "1eb6889d45dc875313cad3f951893e63", "score": "0.70312965", "text": "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n\n }", "title": "" }, { "docid": "1ae908e83e7e933a365bd41b92ad0db8", "score": "0.7027786", "text": "@Override\n public void onClick(View view) {\n\n holder.clicked(list_user_id, model.getName());\n }", "title": "" }, { "docid": "2258f06c0fc417f0e44079fc9c629550", "score": "0.702709", "text": "void onItemClick(View view,int posiotion);", "title": "" }, { "docid": "834eb14816a4ab92b23bc27d05b63387", "score": "0.7020519", "text": "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n }", "title": "" }, { "docid": "834eb14816a4ab92b23bc27d05b63387", "score": "0.7020519", "text": "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n }", "title": "" }, { "docid": "834eb14816a4ab92b23bc27d05b63387", "score": "0.7020519", "text": "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n }", "title": "" }, { "docid": "834eb14816a4ab92b23bc27d05b63387", "score": "0.7020519", "text": "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n }", "title": "" }, { "docid": "834eb14816a4ab92b23bc27d05b63387", "score": "0.7020519", "text": "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n }", "title": "" }, { "docid": "834eb14816a4ab92b23bc27d05b63387", "score": "0.7020519", "text": "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n }", "title": "" }, { "docid": "834eb14816a4ab92b23bc27d05b63387", "score": "0.7020519", "text": "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n }", "title": "" }, { "docid": "710be9db65132964a5c8542ba8422020", "score": "0.7019387", "text": "@Override\n public void onItemClick(int position) {\n }", "title": "" }, { "docid": "710be9db65132964a5c8542ba8422020", "score": "0.7019387", "text": "@Override\n public void onItemClick(int position) {\n }", "title": "" }, { "docid": "7ef74f6568fb4dc18945ca1c0d8ce446", "score": "0.7018246", "text": "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n }", "title": "" }, { "docid": "405b3ed1e3056336707654ff8b0a73ee", "score": "0.70127344", "text": "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n }", "title": "" }, { "docid": "436b4d03c30668b7743828b979bfafe2", "score": "0.69885105", "text": "@Override\n public void onClick(View view) {\n if (clickHandler != null) {\n int adapterPosition = getAdapterPosition();\n clickHandler.onClick(movieItemList.get(adapterPosition));\n }\n }", "title": "" }, { "docid": "fdbbf7ce6f03b974e1552ca2b0036664", "score": "0.698843", "text": "@Override\n\tpublic void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n\t\t\n\t}", "title": "" }, { "docid": "65a1e1d426d8d26c3955087aa3b7254d", "score": "0.698428", "text": "@Override\n public void onItemClick(AdapterView<?> arg0, View arg1, int arg2, long arg3) {\n\n }", "title": "" }, { "docid": "65a1e1d426d8d26c3955087aa3b7254d", "score": "0.698428", "text": "@Override\n public void onItemClick(AdapterView<?> arg0, View arg1, int arg2, long arg3) {\n\n }", "title": "" }, { "docid": "6615ddc0588c23335020dba4304162cd", "score": "0.6981076", "text": "@Override\n public void onListItemClick(ListView l, View v, int pos, long id) {\n\n // Indicates the selected item has been checked\n if(myIndex != pos){\n myIndex =pos;\n myListener.onListSelection(pos);\n }\n getListView().setItemChecked(pos, true);\n\n }", "title": "" }, { "docid": "29fb302f41c8f80fe9fbea96c25f1366", "score": "0.6976613", "text": "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n }", "title": "" }, { "docid": "95a2a4791715346f94b571da2f735b66", "score": "0.69602895", "text": "@Override\n public void onItemClick(View view, int position) {\n }", "title": "" }, { "docid": "1b180ca9f66b4f40c19432f50b0a5366", "score": "0.69516575", "text": "@Override\n public void onClick(View v) {\n listener.onItemClick(v, position);\n }", "title": "" }, { "docid": "99acee0c0cb9934e6db8bc349f17b692", "score": "0.69506574", "text": "@Override\n public void onItemClick(View view) {\n }", "title": "" }, { "docid": "4f22252a0473c3e474c45c591df83d47", "score": "0.69440997", "text": "@Override\n public void onClick(View view) {\n FoodItemAdapter.this.listener\n .onFoodContactSelected(foodItemListFiltered.get(getAdapterPosition()));\n }", "title": "" }, { "docid": "df2ccbba2a33c888553e868ac3b88b27", "score": "0.6943226", "text": "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n\n }", "title": "" }, { "docid": "69ddfb906fc2cfa85a53c4ba5a14394d", "score": "0.6942491", "text": "@Override\n public void onItemClick(AdapterView<?> parent,View view,int position,long id) {\n }", "title": "" }, { "docid": "e41f25cdf583319238e8ef5f190a61d8", "score": "0.69400066", "text": "@Override\n public void onItemClick(AdapterView<?> adapterView, View arg1,\n int position, long arg3) {\n\n }", "title": "" }, { "docid": "4e5e3499489022ecc5b5f4f5004d558d", "score": "0.6937911", "text": "@Override \n\t public void onListItemClick(ListView l, View v, int position, long id) {\n\t\tToast.makeText(getActivity(), \"Haha\", Toast.LENGTH_SHORT).show();\n\t }", "title": "" }, { "docid": "62f48a3a1cec45b7c5346ffbc1d1df5b", "score": "0.6929012", "text": "@Override\n public void onItemClick(AdapterView<?> parent, View view,\n int position, long id) {\n\n }", "title": "" }, { "docid": "41a87b8b7802ca42ce0220ca658f311d", "score": "0.69260365", "text": "@Override\n public void onItemClick(AdapterView<?> parent, View view,\n int position, long id) {\n }", "title": "" }, { "docid": "0ceb4665cdd024226a482ae94d3a780b", "score": "0.692056", "text": "public interface ListClickListener {\n\n void click(long id);\n\n\n}", "title": "" }, { "docid": "91852bd921af89785f89b40d5611b18e", "score": "0.6916978", "text": "@Override\n\t\t\tpublic void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n\t\t\t}", "title": "" }, { "docid": "0b7cfa8c668fea87da31dc0610d2aec1", "score": "0.6905603", "text": "void actulizarListView(){\n ListView lv=(ListView)this.findViewById(R.id.lvtareas);\n\n\n CustomAdapter adapter=new CustomAdapter(notas,MainActivity.this,R.layout.detalle_tarea);\n\n\n lv.setAdapter(adapter);\n lv.setOnItemClickListener(new AdapterView.OnItemClickListener() {\n @Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n\n posTarea=position; //la posición es el índice del array\n addDetalleTarea(posTarea);\n\n\n\n }\n });\n}", "title": "" }, { "docid": "2f6685b0bb03904420bf4865360b6f76", "score": "0.69048023", "text": "@Override\n\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2, long arg3) {\n\t\t\n\t}", "title": "" }, { "docid": "2f6685b0bb03904420bf4865360b6f76", "score": "0.69048023", "text": "@Override\n\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2, long arg3) {\n\t\t\n\t}", "title": "" }, { "docid": "2f6685b0bb03904420bf4865360b6f76", "score": "0.69048023", "text": "@Override\n\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2, long arg3) {\n\t\t\n\t}", "title": "" }, { "docid": "5e153ac1009f0a20995fb8eb642babfb", "score": "0.6902526", "text": "@Override\r\n\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2, long arg3) {\n\r\n\t}", "title": "" }, { "docid": "7a3d616984e100fed0e176daaf8c9967", "score": "0.6900373", "text": "public void onItemClick(AdapterView<?> parent, View v,\n int position, long id) {\n }", "title": "" }, { "docid": "bf1845dadc87c1cd4acfe2cba7b5c055", "score": "0.6899432", "text": "@Override\n public void onClick(View view) {\n\n //view o day la recyclerView\n if(clickListener != null){\n clickListener.itemClicked(view, getPosition());\n }\n }", "title": "" }, { "docid": "7ed8f0e7c19e5f969a329c74d9742207", "score": "0.68982935", "text": "@Override\n public void onItemClick(View v, int position) {\n }", "title": "" }, { "docid": "f1e5081c5f488d1498e58d23555d16b9", "score": "0.6896121", "text": "@Override\n public void onClick(View v) {\n mListener.onItemClick(getAdapterPosition());\n }", "title": "" }, { "docid": "8c214f8bd362f1172c01daa4b19871ae", "score": "0.6894296", "text": "@Override\n public void onItemClick(AdapterView<?> arg0, View arg1,\n int position, long arg3) {\n }", "title": "" }, { "docid": "77320ec0f9f3a479dc262b99bfe1332f", "score": "0.6887961", "text": "@Override\n\t\t\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2, long arg3) {\n\t\t\t\t TextView number = (TextView)arg1.findViewById(R.id.number); \n\t\t\t\t TextView realname = (TextView)arg1.findViewById(R.id.name);\n\t\t\t\t TextView atname = (TextView)arg1.findViewById(R.id.atname);\n\t\t\t\t \n\t new AlertDialog.Builder(MainActivity.this).setTitle(\"列表框\").\n\t setItems(new String[] { \"realname: \" + realname.getText(), \"atname: \" + atname.getText(), \"number: \" + number.getText() }, null).\n\t setNegativeButton(\"确定\", null).show();\n\t\t\t}", "title": "" }, { "docid": "fd178c1e8de7affc3331f5a8f49e9dd3", "score": "0.6877688", "text": "@Override\r\n\t\t\tpublic void onItemClick(AdapterView<?> parent, View view,\r\n\t\t\t\t\tint position, long id) {\n\t\t\t\t\r\n\t\t\t}", "title": "" }, { "docid": "898c1430780c1a69b801cf12eb3dad60", "score": "0.6873774", "text": "@Override\n public void onItemClick(ItemListAdapter adapter, View v, int position) {\n }", "title": "" }, { "docid": "da73e4882718f268b3f480a5f53a078d", "score": "0.6862275", "text": "@Override\n\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2, long arg3) {\n\n\t}", "title": "" }, { "docid": "da73e4882718f268b3f480a5f53a078d", "score": "0.6862275", "text": "@Override\n\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2, long arg3) {\n\n\t}", "title": "" }, { "docid": "da73e4882718f268b3f480a5f53a078d", "score": "0.6862275", "text": "@Override\n\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2, long arg3) {\n\n\t}", "title": "" }, { "docid": "ee3fa4c2e4d2a1f11c64cf8839569e09", "score": "0.6848827", "text": "public void onItemClick(AdapterView<?> arg0, View arg1, int arg2, long arg3) {\n }", "title": "" }, { "docid": "67340cdbbf57ad0a342d93110f02336d", "score": "0.6848329", "text": "@Override\n public void onClick(View v) {\n if (listener != null)\n listener.onItemClick(itemView, getLayoutPosition());\n }", "title": "" }, { "docid": "9a3ca0054efa59eaf4eab5123aeddc47", "score": "0.6845862", "text": "protected void onListItemClick(ListView l, View v, int position, long id) {\n\t\t//TODO implement Attendee Clicked. Start IM Activity\n\t\t\n\t}", "title": "" }, { "docid": "617940cee7fbcb5ea6ecf330cb2d517f", "score": "0.6845795", "text": "private void setupListViewListener(){\n lvItems.setOnItemLongClickListener(new AdapterView.OnItemLongClickListener(){\n @Override\n public boolean onItemLongClick(AdapterView<?> adapterView, View item, int pos, long id){\n removeTodoItem(items.get(pos), pos);\n return true;\n }\n });\n\n lvItems.setOnItemClickListener(new AdapterView.OnItemClickListener(){\n\n @Override\n public void onItemClick(AdapterView<?> adapterView, View item, int position, long id){\n TodoItem editTodoItem = new TodoItem(items.get(position).getTodoItemData(), position);\n Intent editItemActivityIntent = new Intent(MainActivity.this, EditItemActivity.class);\n editItemActivityIntent.putExtra(\"TodoItem\",editTodoItem);\n etNewItem.setError(null);\n startActivityForResult(editItemActivityIntent, REQUEST_CODE);\n }\n });\n }", "title": "" }, { "docid": "f7838878f6a1401353d3c6dc7564e1d1", "score": "0.68397754", "text": "@Override\n public void onClick(View v) {\n int position = getAdapterPosition();\n mItemClickListener.onItemClickListener(position);\n }", "title": "" }, { "docid": "2b9fc600a74c35aa400b00267b05979d", "score": "0.6837688", "text": "@Override\r\n\t\tpublic void onItemClick(AdapterView<?> parent, View v, int position, long id) {\n\t\t}", "title": "" }, { "docid": "60ef710ec9d75800c3b97a60185f3b81", "score": "0.6834129", "text": "@Override\n public void onItemClick(int position) {\n itemList.get(position).onItemClick(position);\n\n rviewAdapter.notifyItemChanged(position);\n }", "title": "" }, { "docid": "943dccae76e3cd8f04e655a739431694", "score": "0.68310964", "text": "@Override\r\n\t\t\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2,\r\n\t\t\t\t\tlong arg3) {\n\t\t\t\tpp_listview2.setVisibility(View.VISIBLE);\r\n\t\t\t\tpp_listview2.setAdapter(new SimpleAdapter(CanweiInfo_Act.this, data1, R.layout.pp_listviewitem,\r\n\t\t\t\t\t\tnew String[]{\"menu\"}, new int[]{R.pp_listviewitem.text}));\r\n\t\t\t}", "title": "" }, { "docid": "377529e9147933eaf2a40d2483013402", "score": "0.68231267", "text": "@Override\n public void itemClicked(View View, int position) {\n }", "title": "" } ]
dea4b4086a5f24c0759e7ab906f702ba
iOS 7 changed the switch to not include any text
[ { "docid": "77694810ee709f4b1df0618285189502", "score": "0.0", "text": "public boolean isNoTextMode() {\n return noTextMode;\n }", "title": "" } ]
[ { "docid": "179dd2571b9a00c89d953502ca0fe721", "score": "0.6147768", "text": "String getSwitch();", "title": "" }, { "docid": "98b10fcd5aebb1ddb83ff015a2e292ac", "score": "0.59847957", "text": "@Override\r\n public boolean hasAlternativeModeText() {\r\n return true;\r\n }", "title": "" }, { "docid": "bd97891533b441ab52f020d0f9d42912", "score": "0.5933895", "text": "private AwSwitches() {}", "title": "" }, { "docid": "8ed3ec6861b143ec77b6d8dc5b52fdba", "score": "0.58826023", "text": "public void createSwitch(){\n userToFromText = (TextView)findViewById(R.id.fromHeader);\n userToFromText.setText(\"To School \");\n //Create Switch\n userToggle = (Switch)findViewById(R.id.toFromSwitch);\n userToggle.setChecked(true);\n userToggle.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {\n @Override\n public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {\n if(isChecked){\n Toast.makeText(getApplicationContext(), \"To School\", Toast.LENGTH_SHORT).show();\n userToFromText.setText(\"To School\");\n userToSchool = true;\n }\n else{\n Toast.makeText(getApplicationContext(), \"From School\", Toast.LENGTH_SHORT).show();\n userToFromText.setText(\"From School\");\n userToSchool = false;\n }\n }\n });\n }", "title": "" }, { "docid": "d9b337fc1bf87b3c9dedffd646e2dd73", "score": "0.5781311", "text": "private void text_default () {\n\n m_tv_pilot.setText (\"\");\n m_tv_band.setText (\"\");\n\n m_tv_rssi.setText (\"\");\n m_tv_ps.setText (\"\");\n m_tv_picl.setText (\"\");\n m_tv_ptyn.setText (\"\");\n m_tv_rt.setText (\"\");\n m_tv_rt.setSelected (true); // Need setSelected() for marquis\n }", "title": "" }, { "docid": "7b142f4702c0693229a01051e4e93f8b", "score": "0.5762911", "text": "@Override\n\tpublic boolean isSwitchWorking() {\n\t\treturn false;\n\t}", "title": "" }, { "docid": "830e04a121210d25345720468f50798f", "score": "0.56978005", "text": "public void onSwitchClicked(View view){\n // toggleSwitch.isChecked();\n\n // String castIs = String.valueOf(toggleSwitch.isChecked());\n // Toast.makeText(this, castIs, Toast.LENGTH_SHORT).show();\n boolean on = ((Switch) view).isChecked();\n // genre.setEnabled(false);\n // genre.setClickable(false);\n if(on){\n //on\n notification1 = \"De spinner is aan\";\n Toast.makeText(this, notification1, Toast.LENGTH_LONG).show();\n }else{\n //off\n\n notification1 = \" De spinner is uit\";\n Toast.makeText(this, notification1, Toast.LENGTH_LONG).show();\n //genre.setEnabled(true);\n // genre.setClickable(true);\n }\n }", "title": "" }, { "docid": "e2f36ca2bca0f4375f94fff902cdc95c", "score": "0.56971467", "text": "void toggle_info_label_text() {\n\t\tif(capture_frame.use_mouse.isSelected()) {\n\t\t\tinfo_label.setText(unlocked_info_text);\n\n\t\t}\n\t\telse {\n\t\t\tinfo_label.setText(locked_info_text);\n\n\t\t}\n\t}", "title": "" }, { "docid": "c09a75577f6fd7ef9a4a41edcefc90b9", "score": "0.56643724", "text": "private final void m131026f() {\n m131028h();\n TextView textView = this.f94186n;\n if (textView != null) {\n textView.setVisibility(8);\n }\n TextView textView2 = this.f94185m;\n if (textView2 != null) {\n textView2.setText(BaseApplication.INSTANCE.getString(R.string.dwi));\n }\n }", "title": "" }, { "docid": "28b4f1b88823ea6cffb08a6d85e88a2e", "score": "0.56298614", "text": "private void switchToStateInCmdText() {\n if (currSoyTagDelim == SoyTagDelimiter.SINGLE_BRACES) {\n SwitchTo(IN_CMD_TEXT_1);\n } else {\n SwitchTo(IN_CMD_TEXT_2);\n }\n }", "title": "" }, { "docid": "6f39475f6260e709db17998bf88a5eb9", "score": "0.56203175", "text": "public void setAdminSupportTitle(View view, String str) {\n TextView textView = (TextView) view.findViewById(C0010R$id.admin_support_dialog_title);\n if (textView != null) {\n if (str == null) {\n textView.setText(C0017R$string.disabled_by_policy_title);\n return;\n }\n char c = 65535;\n switch (str.hashCode()) {\n case -1040305701:\n if (str.equals(\"no_sms\")) {\n c = 2;\n break;\n }\n break;\n case -932215031:\n if (str.equals(\"policy_disable_camera\")) {\n c = 3;\n break;\n }\n break;\n case 620339799:\n if (str.equals(\"policy_disable_screen_capture\")) {\n c = 4;\n break;\n }\n break;\n case 1416425725:\n if (str.equals(\"policy_suspend_packages\")) {\n c = 5;\n break;\n }\n break;\n case 1950494080:\n if (str.equals(\"no_outgoing_calls\")) {\n c = 1;\n break;\n }\n break;\n case 2135693260:\n if (str.equals(\"no_adjust_volume\")) {\n c = 0;\n break;\n }\n break;\n }\n if (c == 0) {\n textView.setText(C0017R$string.disabled_by_policy_title_adjust_volume);\n } else if (c == 1) {\n textView.setText(C0017R$string.disabled_by_policy_title_outgoing_calls);\n } else if (c == 2) {\n textView.setText(C0017R$string.disabled_by_policy_title_sms);\n } else if (c == 3) {\n textView.setText(C0017R$string.disabled_by_policy_title_camera);\n } else if (c == 4) {\n textView.setText(C0017R$string.disabled_by_policy_title_screen_capture);\n } else if (c != 5) {\n textView.setText(C0017R$string.disabled_by_policy_title);\n } else {\n textView.setText(C0017R$string.disabled_by_policy_title_suspend_packages);\n }\n }\n }", "title": "" }, { "docid": "42408b5b785a4883b008689c8311bda2", "score": "0.56027275", "text": "@FXML\r\n private void modifyOutsourcedSelected() throws Exception {\r\n\r\n modifyPartSwitchLabel.setText(\"Company Name\");\r\n modifyPartSwitchTextField.setPromptText(\"Comp Nm\");\r\n modifyInHouse = false;\r\n }", "title": "" }, { "docid": "259bf6d1cd23f2b4724cdda58f1cf018", "score": "0.55932575", "text": "@Override\n\tpublic void turnOff() {\n\t\tSystem.out.println(\"껐다\");\n\t}", "title": "" }, { "docid": "b053f9b5f7650a46f12d3b00978f5be4", "score": "0.55804664", "text": "String getVirtual_switch();", "title": "" }, { "docid": "cc74fbf5be08ce723f96f38430a20afd", "score": "0.55266845", "text": "public void switchToggle() {\r\n switcher.set(!switcher.get());\r\n }", "title": "" }, { "docid": "2501590ed2e2b693cdf9558bbfe597b5", "score": "0.5506259", "text": "@Override\n\tpublic void onSwitchLanguage(String language) {\n\n\t}", "title": "" }, { "docid": "b87dc25b4d7ae60ff56d6088b6a27296", "score": "0.54876035", "text": "public void m14171I() {\n if (this.f12812X.mo7009a() == 55) {\n this.f12809U.setVisibility(0);\n this.f12810V.setVisibility(0);\n this.f12811W.setHint(R.string.settings_inputphonenumber_placeholder_phone_Brazil);\n this.f12808T.setTitle((int) R.string.settings_inputphonenumber_title_identifyyou_Brazil);\n return;\n }\n this.f12809U.setVisibility(8);\n this.f12810V.setVisibility(8);\n this.f12811W.setHint(R.string.settings_inputphonenumber_placeholder_phone);\n this.f12808T.setTitle((int) R.string.signup_identity_title);\n }", "title": "" }, { "docid": "cdd97fbb17e90314bce4d5926f034115", "score": "0.5448802", "text": "public void changeToggle(){;\r\n if(toggle==false)\r\n {\r\n powerState = \"off\";\r\n toggle=true;\r\n }\r\n else{\r\n powerState=\"on\";\r\n toggle=false;\r\n }\r\n }", "title": "" }, { "docid": "78934b55eba269464a881c87e21b4a45", "score": "0.54450333", "text": "public void printSwitchButtonInDisplay()\n {\n stroke((on_off) ? 0xff9e63f6 : 0xff14171A);\n fill( (on_off) ? 0xff9e63f6 : 0xff14171A);\n rect(posX, posY, _width, _height, 90, 90, 90, 90);\n \n stroke(0xff2f363d);\n fill(0xff2f363d);\n circle(((posX + (_height / 2)) + _width_animated / 2), (posY + (_height / 2)) + 1, _height);\n }", "title": "" }, { "docid": "b213e0dbd767180e1553d1668398ed4a", "score": "0.5437949", "text": "public void switchOn() {\n System.out.println(\"BULB Switched ON\");\n }", "title": "" }, { "docid": "712727f5c6dbf18376fb51ff829de37a", "score": "0.54362947", "text": "public interface UISwitch extends UIControl {\n\tfinal class UISwitchFactory {\n\t\tstatic native UISwitch create() /*-[\n\t\t//@formatter:off\n\t\t\treturn [[UISwitch alloc] init];\n\t\t//@formatter:on\n\t\t]-*/;\n\n\t\tstatic native UISwitch createWithFrame(double x, double y, double width, double height) /*-[\n\t\t//@formatter:off\n\t\t\treturn [[UISwitch alloc] initWithFrame:CGRectMake((CGFloat)x, (CGFloat)y, (CGFloat)width, (CGFloat)height)];\n\t\t//@formatter:on\n\t\t]-*/;\n\t}\n\n\t// ---------------------------------------------------------------------\n\t// Initializing the Switch Object\n\t// ---------------------------------------------------------------------\n\n\tstatic UISwitch create() {\n\t\treturn UISwitchFactory.create();\n\t}\n\n\tstatic UISwitch createWithFrame(CGRect frame) {\n\t\treturn UISwitchFactory.createWithFrame(frame.origin.x, frame.origin.y, frame.size.width, frame.size.height);\n\t}\n\n\tstatic UISwitch createWithFrame(double x, double y, double width, double height) {\n\t\treturn UISwitchFactory.createWithFrame(x, y, width, height);\n\t}\n\n\t// TODO initWithCoder:\n\n\t// ---------------------------------------------------------------------\n\t// Setting the Off/On State\n\t// ---------------------------------------------------------------------\n\n\t@ObjectiveCName(\"isOn\")\n\tboolean isOn();\n\n\t@ObjectiveCName(\"setOn:\")\n\tvoid setOn(boolean on);\n\n\t@ObjectiveCName(\"setOn:animated:\")\n\tvoid setOn(boolean on, boolean animated);\n\n\t// ---------------------------------------------------------------------\n\t// Customizing the Appearance of the Switch\n\t// ---------------------------------------------------------------------\n\n\t@ObjectiveCName(\"onTintColor\")\n\tUIColor getOnTintColor();\n\n\t@ObjectiveCName(\"setOnTintColor:\")\n\tvoid setOnTintColor(UIColor onTintColor);\n\n\t@ObjectiveCName(\"tintColor\")\n\tUIColor getTintColor();\n\n\t@ObjectiveCName(\"setTintColor:\")\n\tvoid setTintColor(UIColor tintColor);\n\n\t@ObjectiveCName(\"thumbTintColor\")\n\tUIColor getThumbTintColor();\n\n\t@ObjectiveCName(\"setThumbTintColor:\")\n\tvoid setThumbTintColor(UIColor tintColor);\n\n\t@ObjectiveCName(\"onImage\")\n\tUIImage getOnImage();\n\n\t@ObjectiveCName(\"setOnImage:\")\n\tvoid setOnImage(UIImage onImage);\n\n\t@ObjectiveCName(\"offImage\")\n\tUIImage getOffImage();\n\n\t@ObjectiveCName(\"setOffImage:\")\n\tvoid setOffImage(UIImage onImage);\n}", "title": "" }, { "docid": "22b96f9829ad456f9b225029bde71795", "score": "0.5420904", "text": "public void switchToClimber() {\r\n switcher.set(!ELEVATOR_MODE);\r\n }", "title": "" }, { "docid": "94d365b5128065821b88bc13497c96e3", "score": "0.5419961", "text": "@Override\r\n\tpublic void switchOff() {\n\t\tSystem.out.println(\"Switch Off Home Theatre\");\r\n\t}", "title": "" }, { "docid": "b4a14a1db0a317cb81653428aaac1786", "score": "0.5400803", "text": "@Override\n\tpublic void onCheckedChanged(Switch switchView, boolean isChecked) {\n\t\tEditor editor = sp.edit();\n\t\t\n\t\tswitch(switchView.getId()){\n\t\tcase R.id.phone_Btn:\n\t\t\teditor.putBoolean(Constant.PHONE_FALG, isChecked);\n\t\t\teditor.commit();\n\t\t\tbreak;\n\t\tcase R.id.sms_Btn:\n\t\t\teditor.putBoolean(Constant.SMS_FALG, isChecked);\n\t\t\teditor.commit();\n\t\t\tbreak;\n\t\tcase R.id.email_Btn:\n\t\t\teditor.putBoolean(Constant.EMAIL_FALG, isChecked);\n\t\t\teditor.commit();\n\t\t\tbreak;\n\t\tcase R.id.event_Btn:\n\t\t\teditor.putBoolean(Constant.EVENT_FALG, isChecked);\n\t\t\teditor.commit();\n\t\t\tbreak;\n\t\tcase R.id.battery_Btn:\n\t\t\teditor.putBoolean(Constant.BATTERY_FALG, isChecked);\n\t\t\teditor.commit();\n\t\t\tbreak;\n\t\tcase R.id.webchat_Btn:\n\t\t\teditor.putBoolean(Constant.WEBCHAT_FALG, isChecked);\n\t\t\teditor.commit();\n\t\t\tbreak;\n\t\tcase R.id.qq_Btn:\n\t\t\teditor.putBoolean(Constant.QQ_FALG, isChecked);\n\t\t\teditor.commit();\n\t\t\tbreak;\n\t\tcase R.id.skype_Btn:\n\t\t\teditor.putBoolean(Constant.SKYPE_FALG, isChecked);\n\t\t\teditor.commit();\n\t\t\tbreak;\n\t\tcase R.id.whatsApp_Btn:\n\t\t\teditor.putBoolean(Constant.WHATSAPP_FALG, isChecked);\n\t\t\teditor.commit();\n\t\t\tbreak;\n\t\tcase R.id.facebook_Btn:\n\t\t\teditor.putBoolean(Constant.FACEBOOK_FALG, isChecked);\n\t\t\teditor.commit();\n\t\t\tbreak;\n\t\tcase R.id.mode_layout:\n\t\t\tbreak;\n//\t\tcase R.id.tracker_btn:\n//\t\t\tif(isApp.getConnectBleDevice()){\n//\t\t\t\teditor.putBoolean(Constant.TRACKER_FLAG, isChecked);\n//\t\t\t\teditor.commit();\n//\t\t\t\t\n//\t\t\t\tplusdotBleDevice = PlusDotBLEDevice.getInstance();\n//\t\t\t\tplusdotBleDevice.synchronizationTracker(true);\n//\t\t\t}else {\n//\t\t\t\ttrackerBtn.setChecked(!isChecked);\n//\t\t\t\tToast.makeText(getActivity(), getActivity().getResources().getString(R.string.disconnect), Toast.LENGTH_SHORT).show();\n//\t\t\t}\n//\t\t\tbreak;\n\t\t}\n\t}", "title": "" }, { "docid": "4232eddc9bbb7338beca7484926ec473", "score": "0.5397316", "text": "private void adjustDeviceLabel() {\n int selectedDevice = pseudoDevice;\n try {\n deviceModel = (AssocModel) cbxDevice.getModel();\n selectedDevice = deviceModel.getSelectedNumber();\n } catch (Throwable ignored) {\n }\n deviceLabel.setEnabled(selectedDevice != pseudoDevice);\n }", "title": "" }, { "docid": "b7ea4738db31c9e7ba5b2f4401743a31", "score": "0.53855145", "text": "private void updateEditMenuItemText() {\n swapModeMenuItem.setTitle(isRgbInputActive() ? R.string.action_edit_cmy : R.string.action_edit_rgb);\n }", "title": "" }, { "docid": "90c3711597d1604640505502bf6fced5", "score": "0.53800577", "text": "public void witchesConvo2() {\n ui.mainTextPlace.setText(\"Before you can speak one of the witches plucks at your hair and another cuts your arm.\" +\n \"\\n\\nThe witches chant:\" +\n \"\\n\\n'Visit the witch,\" +\n \"\\nthe witch of 3'.\" +\n \"\\nAnd come to claim,\" +\n \"\\na reward for thee.\" +\n \"\\n\\nYou black out...\");\n\n // Buttons\n ui.choice1.setText(\"Wake\");\n ui.choice2.setText(\"-\");\n ui.choice3.setText(\"-\");\n\n // button assign\n game.position1 = \"entRunCrossRoad\";\n game.position2 = \"\";\n game.position3 = \"\";\n }", "title": "" }, { "docid": "c07d4bc3fffc20fbbce6dce315789346", "score": "0.5366415", "text": "@Override\n public String getWhiteboardText() {\n return (_whiteboardText != null)?_whiteboardText:super.getWhiteboardText();\n }", "title": "" }, { "docid": "849f22f2f97b0b7df4149f60016c0991", "score": "0.53636175", "text": "public static void displayOff() {\n write(0x15);\n }", "title": "" }, { "docid": "3d6a8f691e01c456bd6c0742e037afab", "score": "0.5362327", "text": "public void setSWITCH_TYPE(String SWITCH_TYPE) {\r\n this.SWITCH_TYPE = SWITCH_TYPE == null ? null : SWITCH_TYPE.trim();\r\n }", "title": "" }, { "docid": "6d3d3d3073e93502c41b96af1a27bb0b", "score": "0.5362296", "text": "private void m834a() {\n int streamVolume;\n TextView f;\n StringBuilder stringBuilder;\n if (this.f697b == C0612c.Volume) {\n streamVolume = (this.f696a.f894a.f1272t.getStreamVolume(3) * 100) / this.f696a.f894a.f1246A;\n f = this.f696a.f899f;\n stringBuilder = new StringBuilder();\n stringBuilder.append(streamVolume);\n stringBuilder.append(\"%\");\n f.setText(stringBuilder.toString());\n this.f696a.f898e.setText(streamVolume > 0 ? R.string.icon_osd_speaker : R.string.icon_osd_speaker_mute);\n } else if (this.f697b == C0612c.Brightness) {\n streamVolume = (int) (this.f696a.f900g.getAttributes().screenBrightness * 100.0f);\n f = this.f696a.f899f;\n stringBuilder = new StringBuilder();\n stringBuilder.append(streamVolume);\n stringBuilder.append(\"%\");\n f.setText(stringBuilder.toString());\n this.f696a.f898e.setText(R.string.icon_osd_brightness);\n }\n }", "title": "" }, { "docid": "c639c1c154ef53595629d3772b717c3c", "score": "0.5344892", "text": "public boolean isSwitchOn(){\n return engaged();\n }", "title": "" }, { "docid": "fb7471c2b72b7b22d067c36331cd6fd5", "score": "0.53429264", "text": "private void toggleNstate(CharSequence text) {\n\t\tif (text.equals(getString(R.string.four_digits_separator_str))) {\n\t\t\t// toggle N and the text of the button\n\t\t\tN = 3;\n\t\t\tsetFieldCapacityBtnTxt(N);\n\t\t\t\n\t\t\t// make some adaption for the new state\n\t\t\tnumberTxt.setHint(R.string.three_digits_hint);\n\t\t\tmakeAdaption();\n\t\t\t\n\t\t}\n\t\telse {\n\t\t\t// toggle the N and the text of the button\n\t\t\tN = 4;\n\t\t\tsetFieldCapacityBtnTxt(N);\n\t\t\t\n\t\t\t// make some adaption for the new state\n\t\t\tnumberTxt.setHint(R.string.four_digits_hint);\n\t\t\tmakeAdaption();\n\t\t}\n\t}", "title": "" }, { "docid": "b6ab59fbe5af8934348d3eb66022e100", "score": "0.53322154", "text": "@Test\n @SmallTest\n @Feature({\"Homepage\"})\n public void testToggleSwitch() {\n mHomepageTestRule.useCustomizedHomepageForTest(TEST_URL_FOO);\n mHomepageTestRule.useChromeNTPForTest();\n\n launchHomepageSettings();\n\n Assert.assertTrue(ASSERT_MESSAGE_SWITCH_ENABLE, mSwitch.isEnabled());\n Assert.assertTrue(ASSERT_MESSAGE_TITLE_ENABLED, mTitleTextView.isEnabled());\n Assert.assertTrue(ASSERT_MESSAGE_RADIO_BUTTON_ENABLED, mChromeNtpRadioButton.isEnabled());\n Assert.assertTrue(ASSERT_MESSAGE_RADIO_BUTTON_ENABLED, mCustomUriRadioButton.isEnabled());\n Assert.assertTrue(\"Homepage should be enabled.\", HomepageManager.isHomepageEnabled());\n\n // Check the widget status\n Assert.assertTrue(ASSERT_MESSAGE_RADIO_BUTTON_NTP_CHECK, mChromeNtpRadioButton.isChecked());\n Assert.assertFalse(\n ASSERT_MESSAGE_RADIO_BUTTON_CUSTOMIZED_CHECK, mCustomUriRadioButton.isChecked());\n Assert.assertEquals(ASSERT_MESSAGE_EDIT_TEXT, TEST_URL_FOO,\n mCustomUriRadioButton.getPrimaryText().toString());\n\n // Click the switch\n mSwitch.performClick();\n Assert.assertFalse(\"After toggle the switch, \" + ASSERT_MESSAGE_TITLE_DISABLED,\n mTitleTextView.isEnabled());\n Assert.assertFalse(\"After toggle the switch, \" + ASSERT_MESSAGE_RADIO_BUTTON_DISABLED,\n mChromeNtpRadioButton.isEnabled());\n Assert.assertFalse(\"After toggle the switch, \" + ASSERT_MESSAGE_RADIO_BUTTON_DISABLED,\n mCustomUriRadioButton.isEnabled());\n Assert.assertFalse(\"Homepage should be disabled after toggle switch.\",\n HomepageManager.isHomepageEnabled());\n\n // Check the widget status - everything should remain unchanged.\n Assert.assertTrue(ASSERT_MESSAGE_RADIO_BUTTON_NTP_CHECK, mChromeNtpRadioButton.isChecked());\n Assert.assertFalse(\n ASSERT_MESSAGE_RADIO_BUTTON_CUSTOMIZED_CHECK, mCustomUriRadioButton.isChecked());\n Assert.assertEquals(ASSERT_MESSAGE_EDIT_TEXT, TEST_URL_FOO,\n mCustomUriRadioButton.getPrimaryText().toString());\n\n mSwitch.performClick();\n Assert.assertTrue(ASSERT_MESSAGE_TITLE_ENABLED, mTitleTextView.isEnabled());\n Assert.assertTrue(ASSERT_MESSAGE_RADIO_BUTTON_ENABLED, mChromeNtpRadioButton.isEnabled());\n Assert.assertTrue(ASSERT_MESSAGE_RADIO_BUTTON_ENABLED, mCustomUriRadioButton.isEnabled());\n Assert.assertTrue(\"Homepage should be enabled again.\", HomepageManager.isHomepageEnabled());\n\n // Check the widget status - everything should remain unchanged.\n Assert.assertTrue(ASSERT_MESSAGE_RADIO_BUTTON_NTP_CHECK, mChromeNtpRadioButton.isChecked());\n Assert.assertFalse(\n ASSERT_MESSAGE_RADIO_BUTTON_CUSTOMIZED_CHECK, mCustomUriRadioButton.isChecked());\n Assert.assertEquals(ASSERT_MESSAGE_EDIT_TEXT, TEST_URL_FOO,\n mCustomUriRadioButton.getPrimaryText().toString());\n\n // Histogram for location change should not change when toggling switch preference.\n assertUserActionRecorded(false);\n }", "title": "" }, { "docid": "db541861c261067f9ec47addbd9db03e", "score": "0.5289385", "text": "public String getSWITCH_TYPE() {\r\n return SWITCH_TYPE;\r\n }", "title": "" }, { "docid": "af4b7bbb232703f737002494e7b3021b", "score": "0.5285415", "text": "@Override\r\n\tpublic void switchOn() {\n\t\tSystem.out.println(\"Switch On Home Theatre\");\r\n\t}", "title": "" }, { "docid": "da38a89ba16068dc480d6a9b1e8e2c1b", "score": "0.52843004", "text": "private void showToastOnTabSwitch() {\n\t\tif (Controller.getInstance().getPreferences().getBoolean(Constants.PREFERENCES_SHOW_TOAST_ON_TAB_SWITCH, true)) {\n\t\t\tString text;\n\t\t\tif (mCurrentWebView.getTitle() != null) {\n\t\t\t\ttext = String.format(getString(R.string.Main_ToastTabSwitchFullMessage), mViewFlipper.getDisplayedChild() + 1, mCurrentWebView.getTitle());\n\t\t\t} else {\n\t\t\t\ttext = String.format(getString(R.string.Main_ToastTabSwitchMessage), mViewFlipper.getDisplayedChild() + 1);\n\t\t\t}\n\t\t\tToast.makeText(this, text, Toast.LENGTH_SHORT).show();\n\t\t}\t\t\n\t}", "title": "" }, { "docid": "2fb83b08c05e638e65ddd23460c0badb", "score": "0.5275491", "text": "@Override\n\tpublic boolean getSwitchPosition() {\n\t\treturn false;\n\t}", "title": "" }, { "docid": "66d893c9201433b20b5a8866ce68e2e7", "score": "0.5268686", "text": "@Override\r\n\tpublic void onRestoreInstanceState(Bundle bundle) {\r\n\t\t// super.onRestoreInstanceState(bundle); do not restore the text in the command line box.\r\n\t\t\r\n\t}", "title": "" }, { "docid": "6e8c81cec74716db6f6b4046870cd5b4", "score": "0.52594316", "text": "private void ifaceToggleSBService()\n {\n final ImageView titleImage = (ImageView) findViewById(R.id.imageTitle);\n final TextView activeTV = (TextView) findViewById(R.id.textActive);\n \n switch(sbServiceState)\n {\n case UP:\n // shut it down\n stopSBService();\n\n titleImage.setBackgroundColor(Color.BLACK);\n activeTV.setText(\"SoundBites CNS is not active\");\n \n break;\n \n case DOWN:\n // start it up\n startSBService();\n \n titleImage.setBackgroundColor(Color.LTGRAY);\n activeTV.setText(\"SoundBites CNS is active\");\n \n break;\n \n case WAIT:\n // do nothing - patience, novice\n break;\n }\n }", "title": "" }, { "docid": "35f0534197e28072fe2fe79478a6c154", "score": "0.52551097", "text": "Switch createSwitch();", "title": "" }, { "docid": "3afb9f903266fddbf3d1f30791a84cd8", "score": "0.5250241", "text": "@Override\n\tpublic void turnOn() {\n\t\tSystem.out.println(\"켜다\");\n\t}", "title": "" }, { "docid": "b5e50136e8d821441fa4b95aaa1b5649", "score": "0.52493966", "text": "@Override\n\tpublic void toggleSwitch() {\n\t\tBlock temp = switchedBlock;\n\t\tswitchedBlock = unSwitchedBlock;\n\t\tunSwitchedBlock = temp;\n\t\tsetup();\n\t}", "title": "" }, { "docid": "44828c36d07cbf8a1dbd8c461a610ec1", "score": "0.52426845", "text": "public void inHouseSelection() {\n sourceLabel.setText(\"Machine ID\");\n }", "title": "" }, { "docid": "f79e16a2320a87f7523ea7410c86d148", "score": "0.5236411", "text": "public void turnOn() {\n\t\tSystem.out.println(\"켰다\");\n\t\tSystem.out.println();\n\t\t\n\t}", "title": "" }, { "docid": "beffe699dce5bd0ea9bb16e8667e0d8f", "score": "0.5234503", "text": "CheckersText(){\r\n\t\tpushBackText();\r\n\t\tp1TurnText.hide();\r\n\t\tp2TurnText.hide();\r\n\t}", "title": "" }, { "docid": "3daefb5ad369e167c4ecc2fc6c6db931", "score": "0.5230652", "text": "@Override\n public void onClick(View v) {\n\n String status=\"Toggle Button 1\"+toggleButton+\"\\n\"+\"Toggle Button 2\"+toggleButton2.getText();\n Toast.makeText(getApplicationContext(),status,Toast.LENGTH_LONG).show();\n\n\n }", "title": "" }, { "docid": "63190c6453df9bd29bec474ed08553ae", "score": "0.5225463", "text": "public static void SwitchLanguageIfCurrentNotCorrect(String shouldBeLanguageSwitchText) {\n\n\t\tString actualLanguageSwitchText = ClickProfileAndGetLanguageSwitchText();\n\t\tif (!actualLanguageSwitchText.equals(shouldBeLanguageSwitchText))\n\t\t{\n\t\t\t$(languageSwitchButton).click();\n\t\t}\n\t}", "title": "" }, { "docid": "36e6ce62c1a57f3cd3cb3d48ac4b17eb", "score": "0.52193946", "text": "private void switchPresenter(String str) {\n if (turnService.isTurnInProgress() && turnService.isListening(this)) {\n turnService.removeTurnEndListener(this);\n }\n// turnService.stopTimers();\n getContext().showScreen(str);\n }", "title": "" }, { "docid": "7d87e605d485d104b27eb28f68be653f", "score": "0.5214917", "text": "@Override\n public void pressHuluButton() {\n System.out.println(\"TV is already on Hulu\\n\");\n \n }", "title": "" }, { "docid": "d6625d4fa9c41434dcd278ba5d112e4b", "score": "0.52004313", "text": "private void setBtnSwitch()\n\t{\n\t\tif (settings.isCheatEnabled()) btnSwitch.setChecked(true);\n\t}", "title": "" }, { "docid": "a9e8db2ee09cbf6719fd0106404a3df2", "score": "0.51995546", "text": "public void ySwitchOnOff(){\n YVisibleObjectHandler.ySwitchOnOff(this);\n }", "title": "" }, { "docid": "0494b079c4faa14cf3abd3752db0eba7", "score": "0.51968867", "text": "public void displayVariantRandomSwitch(){\n\t\tSystem.out.println(\"[Variante] 2 cartes aleatoires ont ete echangees !\\n\");\n\t}", "title": "" }, { "docid": "c9b354dacf9a8821b0a10ed812046037", "score": "0.5196217", "text": "@Override\n\tpublic void turnOff() {\n\t\tSystem.out.println(\"끄디\");\n\t}", "title": "" }, { "docid": "88d73637a4746e78e2eb4acc84087876", "score": "0.5189083", "text": "private void displayEspressoCheckBox() {\n TextView espressoChargeText = findViewById(R.id.espresso_shot_charge);\n espressoChargeText.setText(espressoChargeT);\n }", "title": "" }, { "docid": "f21d9e60d6ba70fa5c8a7d1f42ea0cd8", "score": "0.5187703", "text": "public void setSWITCH_STATUS(String SWITCH_STATUS) {\r\n this.SWITCH_STATUS = SWITCH_STATUS == null ? null : SWITCH_STATUS.trim();\r\n }", "title": "" }, { "docid": "913fc2d6d15644974bea7d6df2688db1", "score": "0.5181292", "text": "public void pressEnglishButton() {\r\n\t\tbox.setState(box.getEnglishState());\r\n\t\tSystem.out.println(\"Switching to English\");\r\n\t}", "title": "" }, { "docid": "d6a93952060eb8f948757c08c063df01", "score": "0.5181138", "text": "@Override\n public void onPowerOn(boolean displayOn) {\n }", "title": "" }, { "docid": "3426e688017d8b781f40d5298e918121", "score": "0.5178217", "text": "private void disableSmsButton() {\n Toast.makeText(this, R.string.sms_disabled, Toast.LENGTH_LONG).show();\n }", "title": "" }, { "docid": "b242be5d4e39108db9ad14a29d62049d", "score": "0.51778406", "text": "public void monasteryIgnore() {\n ui.mainTextPlace.setText(\"You continue on to find Leon.\" +\n \"\\n\\nYou find yourself walking in the direction the monastery.\" +\n \"\\n\\nEverytime you walk in a different direction you end up heading towards the monastery.\");\n\n // Buttons\n ui.choice1.setText(\"Continue\");\n ui.choice2.setText(\"-\");\n ui.choice3.setText(\"-\");\n\n // button assign\n game.position1 = \"monasteryGates\";\n game.position2 = \"\";\n game.position3 = \"\";\n\n }", "title": "" }, { "docid": "eba3396f55c713b986e18d9bad6370a8", "score": "0.5175691", "text": "@Override\n\tpublic String setPrefatigue() {\n\t\treturn \"no prefatigue\";\n\t}", "title": "" }, { "docid": "0f291d27311a61913061234adb0847db", "score": "0.5174688", "text": "private void initSwitches() {\n sLog.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {\n @Override\n public void onCheckedChanged(CompoundButton buttonView, boolean isChecked)\n {\n byte command = 0;\n if(sTemp.isChecked())\n command |= (1 << 4);\n if(sAccelero.isChecked())\n command |= (1 << 5);\n if(sGyro.isChecked())\n command |= (1 << 6);\n if (isChecked)\n {\n command |= (1 << 7);\n setClickableSwitches(false);\n measuring = true;\n } else\n {\n setClickableSwitches(true);\n measuring = false;\n }\n\n byte[] msg = new byte[3];\n msg[0] = command;\n// msg[1] = timeHB;\n// msg[2] = timeLB;\n String debugLog = Arrays.toString(msg);\n Log.d(\"message\", debugLog);\n mDeviceController.writeCharacteristic(CharacteristicName.WRITECHAR, msg);\n }\n });\n }", "title": "" }, { "docid": "184a8fcd454b11382fb8489ca76d6d87", "score": "0.5171195", "text": "private void handleNoQuestions() {\n\t\tif (englishmode == true) {\n\t\t\tButton englishButton = (Button) findViewById(R.id.englishFlashCardButton);\n\t\t\tenglishButton\n\t\t\t\t\t.setText(getResources().getText(R.string.no_questions));\n\t\t} else {\n\t\t\tButton frenchButton = (Button) findViewById(R.id.frenchFlashCardButton);\n\t\t\tfrenchButton.setText(getResources().getText(R.string.no_questions));\n\t\t}\n\n\t}", "title": "" }, { "docid": "c91e27ac392fd76b756d9c0e45093ee4", "score": "0.51684433", "text": "public int inputSwitch() {\n\t\treturn 0;\r\n\t}", "title": "" }, { "docid": "65e28c1d8804ca86326f782253e8d2c8", "score": "0.51606107", "text": "public java.lang.String getOverridePaperlessIndicator(){\n return localOverridePaperlessIndicator;\n }", "title": "" }, { "docid": "69d70675677084ebdd41a7768131ea05", "score": "0.51562256", "text": "@Override\n public void onClick(View v) {\n if(!((CheckBox)v).isChecked() && result.getText().equals(megaString))\n result.setText(defaut);\n }", "title": "" }, { "docid": "2098c4b57aa647397f626368e2dbc01a", "score": "0.5152814", "text": "public static void displayOn() {\n write(0x16);\n }", "title": "" }, { "docid": "fb5e5fa4c40586b259861430c40ce64a", "score": "0.5152034", "text": "private String setButtonText() {\n\t\treturn Music.isOn()?\"On\":\"Off\";\n\t}", "title": "" }, { "docid": "0efa06eee0def55cbd211ee754bbd846", "score": "0.5131074", "text": "@Override\r\n public String getAlternativeModeText() {\n long energyMax = getStoredEnergy()[1];\r\n long energyStored = getStoredEnergy()[0];\r\n float energyFrac = (float) energyStored / energyMax;\r\n\r\n //ePowerPass hist toggle\r\n if (energyFrac > histHigh) {\r\n powerPassToggle = true;\r\n } else if (energyFrac < histLow) {\r\n powerPassToggle = false;\r\n } else {\r\n powerPassToggle = !powerPassToggle;\r\n }\r\n\r\n //And after this cheeky-ness, toss the string XD\r\n return powerPassToggle ? translateToLocalFormatted(\"tt.keyphrase.Sending_power\", clientLocale) + \"!\" : translateToLocalFormatted(\"tt.keyphrase.Receiving_power\", clientLocale) + \"!\";\r\n }", "title": "" }, { "docid": "acae43e4fbc08b878fb020dcf6cf5897", "score": "0.5128342", "text": "protected int getModeAHLabel() {\n/* 1045 */ return 103;\n/* */ }", "title": "" }, { "docid": "7e831f0dc8f4924ddc0c0ed37fb85bb8", "score": "0.5123178", "text": "@Override\n public void onCheckedChanged(CompoundButton arg0, boolean arg1) {\n if (arg1) {\n zhifufsView.setText(\"微信支付\");\n }\n\n }", "title": "" }, { "docid": "8249599fe702482dca5792c31a38d07c", "score": "0.5120989", "text": "public void changeStatusString(View view) {\n// availableUnavailable.set(availableUnavailable.get().equalsIgnoreCase(context.getString(R.string.text_offline)) ? context.getString(R.string.text_online) : context.getString(R.string.text_offline));\n if (getmNavigator().isNetworkConnected())\n if (getMap().size() > 0) {\n setIsLoading(true);\n toggleOfflineOnline(getMap());\n }\n }", "title": "" }, { "docid": "a3822fef41781d5bed9379f1701ff4dd", "score": "0.5117378", "text": "@Override\n public boolean onEditorAction(TextView v, int actionId, KeyEvent event) {\n locksetting_tv_note.setVisibility(View.VISIBLE);\n locksetting_et_note.setVisibility(View.GONE);\n locksetting_iv_note.setVisibility(View.VISIBLE);\n locksetting_tv_note.setText(locksetting_et_note.getText().toString());\n InputMethodManager m = (InputMethodManager) getSystemService(Context\n .INPUT_METHOD_SERVICE);\n m.toggleSoftInput(0, InputMethodManager.HIDE_NOT_ALWAYS);\n return true;\n }", "title": "" }, { "docid": "cef45d910b7ceeda9983d06bf976e5b8", "score": "0.51171833", "text": "private void changeToShortTerm() {\n\n\t\tlongtermButton.setForeground(new Color(215, 215, 215, 255));\n\t\tshorttermButton.setForeground(Color.WHITE);\n\n\t\tMakeFont makenewLongFont = new MakeFont(\"Medium\");\n\t\tshorttermButton.setFont(makenewLongFont.getFont().deriveFont(20f));\n\n\t\tMakeFont makenewShortFont = new MakeFont(\"Medium\");\n\t\tlongtermButton.setFont(makenewShortFont.getFont().deriveFont(18f));\n\n\t\tltPanel.setVisible(false);\n\t\tstPanel.setVisible(true);\n\n\t\t// Refresh the GUI\n\t\trefreshGUI();\n\n\t}", "title": "" }, { "docid": "c8f73ef19852d377053e42d923c7f82d", "score": "0.51147395", "text": "public void switchFormat() {\n format = !format;\n }", "title": "" }, { "docid": "c4dacfa72c40b0614336ec944fe73c5a", "score": "0.5112022", "text": "@Override\n\tpublic void wuRan() {\n\t\tSystem.out.println(\"自行车污染小\");\n\t}", "title": "" }, { "docid": "6c087d3be5e81dfd43943791fc291b6e", "score": "0.5109526", "text": "public boolean onSwitchChanged(Switcher source, boolean onOff);", "title": "" }, { "docid": "e30f3b148edbf0a6ad3683888012b158", "score": "0.5105939", "text": "public void setSwitchingMode(int value) {\r\n this.switchingMode = value;\r\n }", "title": "" }, { "docid": "f96c1643924c1140e7a01c31e2c6a181", "score": "0.5102887", "text": "private void showTransferInput()\n\t{\n\t\tdisplayView.setText(appState.getName() + \" says: ''\" + appState.getPhrase()\n\t\t\t\t\t\t\t+ \",'' because they think: ''\" + appState.getBlather()\n\t\t\t\t\t\t\t+ \",'' when they are \" + appState.getAge() + \" years old.\");\n\t\t\n\t}", "title": "" }, { "docid": "bac14bd16192686eb5b5902c88146c10", "score": "0.50969887", "text": "@NotNull\n\tpublic static String ClickProfileAndGetLanguageSwitchText() {\n\n\t\t$(profileButton).click();\n\t\treturn $(languageSwitchButton).getText();\n\t}", "title": "" }, { "docid": "72d5c293e2ba96bd553a9f4ea5c61a9a", "score": "0.50952595", "text": "boolean isSetTextFeature();", "title": "" }, { "docid": "6580d2bbc4ae8e33007c61345c8aeccb", "score": "0.5090571", "text": "public static boolean useSetModeToHackSpeaker(){\n return (isSamsung() && !isSamsungGalaxyMini() && getSDKVersion()<= 7) ||\n \n sBuildModel.equalsIgnoreCase(\"blade\") ||\t\t// ZTE Blade\n \n sBuildModel.equalsIgnoreCase(\"htc_supersonic\") || //HTC EVO\n \n sBuildModel.equalsIgnoreCase(\"U8110\") || // Huawei U8110\n sBuildModel.equalsIgnoreCase(\"U8150\") // Huawei U8110\n \n ;\n }", "title": "" }, { "docid": "0b8435d9ba5fc6309446d9317cc2645f", "score": "0.5090255", "text": "private void handleNoQuestions() {\n TextSwitcher questionTextSwitcher = (TextSwitcher) findViewById(R.id.TextSwitcher_QuestionText);\n questionTextSwitcher.setText(getResources().getText(R.string.no_questions));\n ImageSwitcher questionImageSwitcher = (ImageSwitcher) findViewById(R.id.ImageSwitcher_QuestionImage);\n questionImageSwitcher.setImageResource(R.drawable.noquestion);\n\n // Disable yes button\n Button yesButton = (Button) findViewById(R.id.Button_Yes);\n yesButton.setEnabled(false);\n\n // Disable no button\n Button noButton = (Button) findViewById(R.id.Button_No);\n noButton.setEnabled(false);\n }", "title": "" }, { "docid": "976d3f2490e347416b94adc825b24802", "score": "0.50843054", "text": "private void changeUIStopped(){\n //Set the TextView\n TextView serviceStatusTextView = (TextView) findViewById(R.id.serviceStatusTextView);\n serviceStatusTextView.setText(\"Service is stopped...\");\n serviceStatusTextView.setTextColor(Color.RED);\n\n //Change the UI in order to allow the User to start the Service\n View b = findViewById(R.id.startService);\n b.setVisibility(View.VISIBLE);\n View a = findViewById(R.id.stopService);\n a.setVisibility(View.INVISIBLE);\n }", "title": "" }, { "docid": "c47bb602323e24a57488a41cd928e62b", "score": "0.50831324", "text": "@Override\n\tpublic void switchChanged(long switchId) \n\t{ /* Nothing we need to do */ }", "title": "" }, { "docid": "7692976c785fc9168c8e7c1e50b6bb6f", "score": "0.5078532", "text": "public void onSwitchClicked(View view) {\n boolean on = ((Switch) view).isChecked();\n\n if(on) {\n //code for if the switch is on to activate the alarms at the alotted time\n\n\n }\n }", "title": "" }, { "docid": "5f6dc1a7dd5eceb69b91107c9f04ce80", "score": "0.507721", "text": "public String doNotCheckCapabilitiesTipText() {\n return \"If set, classifier capabilities are not checked before classifier is built\" + \" (Use with caution to reduce runtime).\";\n }", "title": "" }, { "docid": "909f365b2e843797ed2c4194a7db6c43", "score": "0.5076196", "text": "public void villageStoryCitizenYes() {\n ui.mainTextPlace.setText(\"'Well i'll be damned! The gods have sent one of their own to save us!'\" +\n \"\\n\\n'The world must know this evil will be stopped.'\");\n\n player.setGodStatus(1);\n\n // Buttons\n ui.choice1.setText(\"Evil?\");\n ui.choice2.setText(\"-\");\n ui.choice3.setText(\"-\");\n\n // button assign\n game.position1 = \"villageStoryCitizenEvil\";\n game.position2 = \"\";\n game.position3 = \"\";\n\n }", "title": "" }, { "docid": "c15d7b8d5466525d08a2d43d5080def1", "score": "0.50696874", "text": "public void villageStoryCitizenNo() {\n ui.mainTextPlace.setText(\"'Sure looked godly to me, boy.'\" +\n \"\\n\\n'But to hear you say no... can't say I aint disappointed.'\" +\n \"\\n\\n'There is an evil plaguing the land you see.'\");\n\n // Buttons\n ui.choice1.setText(\"Evil?\");\n ui.choice2.setText(\"-\");\n ui.choice3.setText(\"-\");\n\n // button assign\n game.position1 = \"villageStoryCitizenEvil\";\n game.position2 = \"\";\n game.position3 = \"\";\n\n }", "title": "" }, { "docid": "48e70d7c53a7b1e564664e7801df5ae8", "score": "0.5067404", "text": "@Override\r\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tchangeBackGround(\"yd\");\r\n\t\t\t\tmegapascalToOther();\r\n\t\t\t\t// storeValueToString();\r\n\r\n\t\t\t}", "title": "" }, { "docid": "c62ad888730ff056d71a38df7c2b721e", "score": "0.5066051", "text": "public void typeOfBusinessProtectiveActionYesClicked() {\n\t\ttypeOfBusinessProtectiveActionNo.setSelected(false);\n\t\ttypeOfBusinessProtectiveActionYesTextLabel.setVisible(true);\n\t\ttypeOfBusinessProtectiveActionYesText.setVisible(true);\n\t}", "title": "" }, { "docid": "9b4e63d4c7feb75191bcdddb2779dd60", "score": "0.5057738", "text": "@Override\r\n\t\t\t\t\t\tpublic void onSwitch() {\n\t\t\t\t\t\t\tTypeSDKLogger.i(\"XJSDK Switch\");\r\n\t\t\t\t\t\t\tTypeSDKNotify_xinjisdk notify = new TypeSDKNotify_xinjisdk();\r\n\t\t\t\t\t\t\tnotify.Logout();\r\n\t\t\t\t\t\t}", "title": "" }, { "docid": "a932f0e8c2f0dc809637b4957cecc15d", "score": "0.5054473", "text": "public final void mo86846h() {\n super.mo86846h();\n if (this.f89004k) {\n this.mPlayStatusLayout.setVisibility(8);\n this.mMusicLayout.setVisibility(8);\n if (this.mAdDownloadButton != null) {\n this.mAdDownloadButton.setVisibility(8);\n }\n } else {\n this.mPlayStatusLayout.setVisibility(0);\n m110156e(true);\n m110157f(true);\n }\n if (this.f89067p != null) {\n this.f89065n = false;\n this.f89067p.mo101070e();\n }\n }", "title": "" }, { "docid": "3df0f81a908d1152d1ee1333fc807111", "score": "0.5054228", "text": "public boolean isHighSideSwitch ()\n {\n return false;\n }", "title": "" }, { "docid": "16706c36369bf0ef59654a01c5cc45d8", "score": "0.5052947", "text": "@Override\n public boolean onQueryTextChange(String newText) {\n if (newText.isEmpty()) {\n instructions.setVisibility(View.VISIBLE);\n }\n return false;\n }", "title": "" }, { "docid": "d1024a30a2a01fc7a26d392b27ebb6d2", "score": "0.50522375", "text": "public java.lang.CharSequence getLabel() {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e5 in method: android.app.VoiceInteractor.PickOptionRequest.Option.getLabel():java.lang.CharSequence, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.app.VoiceInteractor.PickOptionRequest.Option.getLabel():java.lang.CharSequence\");\n }", "title": "" }, { "docid": "970871f53b62c3d6122fdf314bfaa11e", "score": "0.504726", "text": "public void story8Gate() {\n ui.mainTextPlace.setText(\"You slowly enter through the gate.\" +\n \"\\n\\nAs you enter you look around the castle keep.\" +\n \"\\n\\nIt is eerily silent. There is nobody around.\" +\n \"\\n\\nYou can see the castle entrance across the castle keep grounds.\" +\n \"\\n\\n'Maybe i should try and find the guards at the guard post?\");\n\n // Buttons\n ui.choice1.setText(\"Castle\");\n ui.choice2.setText(\"Guard post\");\n ui.choice3.setText(\"-\");\n\n // button assign\n game.position1 = \"story8BeforeCastle\";\n game.position2 = \"story8GuardPost\";\n game.position3 = \"\";\n }", "title": "" }, { "docid": "9b6c9ab2202c6600ea0ace9a26479656", "score": "0.50439364", "text": "@Override\r\n\tpublic void getTextToLabel() {\n\r\n\t}", "title": "" }, { "docid": "a0dc0f828de3e9eab517574c69ec41b8", "score": "0.5041614", "text": "@Override\n public void onCheckedChanged(CompoundButton arg0, boolean arg1) {\n if (arg1) {\n zhifufsView.setText(\"支付宝支付\");\n }\n\n }", "title": "" }, { "docid": "3f02642ebd7f2828461a4dbff9003459", "score": "0.50410175", "text": "public void switchTrigger() {\n \tgetCurrentSwitch().setTriggered(false);\n \tgetCurrentSwitch().setBoulder(null);\n \tsetCurrentSwitch(null);\n }", "title": "" }, { "docid": "b1c4a8ac106b4bc9b164fd89271ef650", "score": "0.5040188", "text": "public void villageStoryCitizenNothing() {\n ui.mainTextPlace.setText(\"You sit still and watch.\" +\n \"\\n\\nThe old man slowly comes from behind the barrel.\" +\n \"\\n\\nHis mouth pops open...\" +\n \"\\n\\n'Why hello there!' he says with a cheerful tone.\");\n\n // Buttons\n ui.choice1.setText(\"Speak\");\n ui.choice2.setText(\"-\");\n ui.choice3.setText(\"-\");\n\n // button assign\n game.position1 = \"villageStoryCitizenCall3\";\n game.position2 = \"\";\n game.position3 = \"\";\n\n }", "title": "" } ]
1b0db9a86fbc30535f4932272842fb48
/ renamed from: a
[ { "docid": "6271f9060dbcde8e54239239447cfaae", "score": "0.0", "text": "public void mo390a(MediaDescriptionCompat mediaDescriptionCompat) {\n Parcel obtain = Parcel.obtain();\n Parcel obtain2 = Parcel.obtain();\n try {\n obtain.writeInterfaceToken(\"android.support.v4.media.session.IMediaSession\");\n if (mediaDescriptionCompat != null) {\n obtain.writeInt(1);\n mediaDescriptionCompat.writeToParcel(obtain, 0);\n } else {\n obtain.writeInt(0);\n }\n this.f13291a.transact(41, obtain, obtain2, 0);\n obtain2.readException();\n } finally {\n obtain2.recycle();\n obtain.recycle();\n }\n }", "title": "" } ]
[ { "docid": "561e1ad2be3078ec8b0e2ca7a4d4d261", "score": "0.62639445", "text": "A(A a){\n this.a = a.a;\n this.b = a.b;\n }", "title": "" }, { "docid": "9f48728c71c479e7c8162d75ccb161a3", "score": "0.62316394", "text": "public interface C16179d {\n /* renamed from: a */\n void mo29055a();\n }", "title": "" }, { "docid": "6a4d8ba62540d5dbd93c1a8f59c8d08e", "score": "0.6214001", "text": "public interface C3647a {\n /* renamed from: a */\n void mo22811a();\n }", "title": "" }, { "docid": "80c2764e00b7106c89304582ec5f8129", "score": "0.6140085", "text": "public interface C1646b {\n /* renamed from: a */\n void mo7387a();\n }", "title": "" }, { "docid": "4389b27d17ba65be7a2d9b4b8a941e5c", "score": "0.61353695", "text": "interface C2399a {\n /* renamed from: a */\n void mo28252a();\n }", "title": "" }, { "docid": "457230fe22fd977e9bc244b23858474b", "score": "0.61102384", "text": "public interface C2312a {\n /* renamed from: a */\n void mo3477a();\n }", "title": "" }, { "docid": "ca517679c96d7b4d332adefe1ec7e271", "score": "0.60967004", "text": "interface C0172a {\n /* renamed from: a */\n void m822a();\n\n /* renamed from: a */\n void m823a(int i);\n }", "title": "" }, { "docid": "a01b24f097b70f8e60f58d6d2bd1cf63", "score": "0.6052903", "text": "protected interface C3710d {\n /* renamed from: a */\n void mo55094a();\n\n /* renamed from: b */\n void mo55095b();\n }", "title": "" }, { "docid": "6780242f080b7a5592b821fdbe1bd105", "score": "0.60490143", "text": "public interface C6296b {\n /* renamed from: a */\n void mo18911a();\n }", "title": "" }, { "docid": "9d2104286883b6a6fc3cefcd4824e351", "score": "0.6025992", "text": "@Override\r\n\tpublic void name(A sA) {\n\t\tsuper.name(sA);\r\n\t}", "title": "" }, { "docid": "fadbbc1289577649a6e73509f7e3ae45", "score": "0.59992886", "text": "interface C1093a {\n /* renamed from: a */\n void mo12033a(C1095aw c1095aw);\n\n /* renamed from: b */\n void mo12034b(C1095aw c1095aw);\n }", "title": "" }, { "docid": "3fc8219949d8cb85c4d6f8a17c5d0ef7", "score": "0.5952041", "text": "public interface C28498a {\n /* renamed from: a */\n void mo24465a(C43302b c43302b);\n }", "title": "" }, { "docid": "fdd0517212a5ceeade5a762d3e23a0aa", "score": "0.59495753", "text": "interface C4775c {\n /* renamed from: a */\n void mo10995a();\n\n /* renamed from: a */\n void mo10996a(String str);\n\n /* renamed from: b */\n void mo10997b();\n\n /* renamed from: c */\n void mo10998c();\n }", "title": "" }, { "docid": "22e164686fc5557601ecba2bbac9cabb", "score": "0.59311694", "text": "public interface C26327e {\n /* renamed from: a */\n void mo33755a(C18508a c18508a);\n}", "title": "" }, { "docid": "2e3ddbf34dc8d2c1b6a07c22db4af13b", "score": "0.5910207", "text": "public interface C30988a {\n /* renamed from: a */\n void mo50166a();\n\n /* renamed from: b */\n void mo50167b();\n }", "title": "" }, { "docid": "d34fbcb41948f723a330a488a988489e", "score": "0.5895423", "text": "public interface EcirdelAubrac {\n /* renamed from: a */\n void mo34540a();\n\n /* renamed from: a */\n void mo34541a(int i);\n\n /* renamed from: b */\n void mo34542b();\n\n /* renamed from: c */\n void mo34543c();\n\n /* renamed from: d */\n void mo34544d();\n\n /* renamed from: e */\n void mo34545e();\n\n /* renamed from: f */\n void mo34546f();\n}", "title": "" }, { "docid": "7bc2a04e38eaf5e4d6f0aa270d8645ed", "score": "0.589214", "text": "public interface C0056a {\n /* renamed from: a */\n void mo14a(int i);\n }", "title": "" }, { "docid": "e70e11a8694b993832aff11987f53409", "score": "0.5880792", "text": "public interface C0577d {\n /* renamed from: a */\n void mo4766a(double d);\n}", "title": "" }, { "docid": "4316b8830fc268176261d60b624c9d23", "score": "0.58727145", "text": "public interface C4790a {\n /* renamed from: a */\n void mo25732a(String str);\n}", "title": "" }, { "docid": "57f14af64f595b71c43572585f6abe6a", "score": "0.5868772", "text": "public interface C39165c {\n /* renamed from: a */\n void mo97196a(int i);\n}", "title": "" }, { "docid": "e6f98abf447e8b12758843d48c747b22", "score": "0.5866959", "text": "interface C0216c {\n /* renamed from: a */\n void mo659a();\n\n /* renamed from: b */\n void mo660b();\n }", "title": "" }, { "docid": "56669ae8dd36b094e446cabeeeb83e3a", "score": "0.58562404", "text": "interface C0024a {\n /* renamed from: a */\n void mo41a();\n\n /* renamed from: b */\n void mo42b();\n\n /* renamed from: c */\n void mo43c();\n }", "title": "" }, { "docid": "bf079d20f1250ac40740c48e85da3537", "score": "0.58519495", "text": "interface C2401c {\n /* renamed from: a */\n void mo28250a(int i);\n }", "title": "" }, { "docid": "f788d62c7fb0fc233451192a81f263d6", "score": "0.58498687", "text": "public interface C1636d {\n /* renamed from: a */\n void mo16599a(int i);\n}", "title": "" }, { "docid": "488aa8b4900f4321da0dac162e1073fe", "score": "0.5829243", "text": "interface C10772a {\n /* renamed from: a */\n void mo34774a();\n\n /* renamed from: a */\n void mo34775a(MediaRenderView mediaRenderView);\n }", "title": "" }, { "docid": "2f872edbebddea52a678df028253a033", "score": "0.5825239", "text": "public interface C0421a {\n /* renamed from: a */\n void mo2887a(List<C0424m> list);\n }", "title": "" }, { "docid": "6a0681eba6e2bdb15e6e10eeb6c9b71e", "score": "0.5823772", "text": "public interface C31601a {\n /* renamed from: a */\n void mo82379a(String str, int i);\n }", "title": "" }, { "docid": "5b17342eeecf657a85837a9107d2952a", "score": "0.5813055", "text": "public interface C1949o<T> {\n /* renamed from: a */\n void mo16242a(T t);\n}", "title": "" }, { "docid": "1ca831847d27e90f02105ec7b03e2ba5", "score": "0.58121306", "text": "interface C16998ap {\n /* renamed from: a */\n C16997ao mo44216a();\n}", "title": "" }, { "docid": "75810c990897f486f3351a11b2e2dfc9", "score": "0.5800254", "text": "public interface C35198b {\n /* renamed from: a */\n void mo89519a(int i, int i2, int i3);\n }", "title": "" }, { "docid": "79231370d3c4b5420206d69110f94a29", "score": "0.57991016", "text": "public interface C0496a {\n /* renamed from: a */\n void mo365a();\n\n /* renamed from: a */\n void mo366a(int i, int i2, int i3, int i4, int i5);\n\n /* renamed from: a */\n void mo367a(Bundle bundle);\n\n /* renamed from: a */\n void mo368a(CharSequence charSequence);\n\n /* renamed from: a */\n void mo369a(Object obj);\n\n /* renamed from: a */\n void mo370a(String str, Bundle bundle);\n\n /* renamed from: a */\n void mo371a(List<?> list);\n\n /* renamed from: b */\n void mo372b(Object obj);\n }", "title": "" }, { "docid": "ba0768d1e377543701653e0a0ff4e95f", "score": "0.5791809", "text": "public interface C41132a {\n /* renamed from: a */\n void mo101600a(String str);\n }", "title": "" }, { "docid": "fbe03b3bd88be3cf21cfb67620fc6ea6", "score": "0.57904166", "text": "public interface C2104a {\n /* renamed from: a */\n void mo5913a(C2102d c2102d);\n }", "title": "" }, { "docid": "f22a1fd16ca3f78fa3d0c4a5c8df90bd", "score": "0.5777292", "text": "public interface C4474a {\n /* renamed from: a */\n void mo12243a(long j);\n\n /* renamed from: b */\n void mo12244b(long j);\n }", "title": "" }, { "docid": "aafe0cdade97801181213d461312295e", "score": "0.57604057", "text": "public interface C30987k {\n /* renamed from: a */\n void mo29183a(C24346dd c24346dd);\n }", "title": "" }, { "docid": "f949ab1794a743e26754be96a28bbbcf", "score": "0.57540977", "text": "interface C8936k {\n /* renamed from: a */\n void mo24333a();\n}", "title": "" }, { "docid": "48c0b53e62661dfb52ef3ca92f6dfe5c", "score": "0.5752176", "text": "public interface C1654c {\n /* renamed from: a */\n void mo7517a(int i, int i2);\n }", "title": "" }, { "docid": "f1ef5db7f259535aed974568df030397", "score": "0.5739353", "text": "public interface C29238ba {\n /* renamed from: a */\n float mo74856a(String str);\n}", "title": "" }, { "docid": "912fb32645e91eb3d6179ecfa90f6cec", "score": "0.57367957", "text": "public interface C23656a {\n /* renamed from: a */\n void mo61561a();\n\n /* renamed from: a */\n void mo61562a(float f);\n\n /* renamed from: b */\n void mo61563b(float f);\n }", "title": "" }, { "docid": "a11a7f972504b3a75987b95f5e0b58ca", "score": "0.57355344", "text": "public interface C11756b {\n /* renamed from: a */\n void mo40256a(int i);\n\n /* renamed from: b */\n void mo40257b(int i);\n}", "title": "" }, { "docid": "b6f53c25ef9fc8d5fa9e7e61cbef4c99", "score": "0.5730142", "text": "public interface C0450d {\n /* renamed from: a */\n String mo1853a(Field field);\n}", "title": "" }, { "docid": "70a6948666993d22da30857d799c9a41", "score": "0.571775", "text": "public interface C3987c {\n /* renamed from: a */\n void mo23348a();\n\n /* renamed from: b */\n void mo23349b();\n}", "title": "" }, { "docid": "9ba5db6d4b51890895cb7bc483e7b181", "score": "0.57158196", "text": "interface C10816b {\n /* renamed from: a */\n void mo31284a(int i);\n\n void show();\n }", "title": "" }, { "docid": "c0fbb9a82dabceb7e3bf7f2d0db10843", "score": "0.57091975", "text": "public interface C0785g {\n /* renamed from: a */\n void m212a(C0953e c0953e);\n}", "title": "" }, { "docid": "cdc058443024c2a4a0a77ee006ea592f", "score": "0.57056916", "text": "interface C1129bd {\n /* renamed from: a */\n void mo2892a();\n\n /* renamed from: a */\n void mo2893a(long j, String str);\n}", "title": "" }, { "docid": "0a087cd959c0ca821943b370ad5d5f15", "score": "0.5686981", "text": "public interface C6191a {\n /* renamed from: A */\n void mo29009A(View view, int i);\n }", "title": "" }, { "docid": "1d02b7c52a42f48f1c78c30ae8a48dd1", "score": "0.5673967", "text": "@Override\r\n\tvoid ab(int a) {\n\t\t\r\n\t}", "title": "" }, { "docid": "6e3b8596b7b38c5a0bcfa05c5580b737", "score": "0.5673494", "text": "public interface C19953a {\n /* renamed from: a */\n List<String> mo53458a();\n\n /* renamed from: a */\n void mo53459a(Context context, ComponentName componentName, int i) throws RedBadgerException;\n}", "title": "" }, { "docid": "023e80b8415491ae29d65f3645fbbb4f", "score": "0.5672815", "text": "public interface C2784s {\n /* renamed from: a */\n void mo1975a(Result result);\n}", "title": "" }, { "docid": "4f6a7ae9cd13f50261b765af135d3f9c", "score": "0.56662065", "text": "public interface C1805e {\n /* renamed from: a */\n void mo7707a(C1796a aVar);\n}", "title": "" }, { "docid": "3ade5ecc125a3abe23f8d0d565f5f87d", "score": "0.56618756", "text": "public B(A a){\n this.a = a;\n }", "title": "" }, { "docid": "50fa72e02f1c99b0fe7d9026a57354a5", "score": "0.56531966", "text": "public interface C19382k {\n /* renamed from: a */\n void mo51367a();\n\n /* renamed from: a */\n void mo51368a(String str);\n}", "title": "" }, { "docid": "1c6288afa51480478a228545931ecf4e", "score": "0.56455433", "text": "public interface C12479h {\n /* renamed from: a */\n String mo30460a();\n}", "title": "" }, { "docid": "c4b58ea3a2d461bfc2678a555f6cd474", "score": "0.56429744", "text": "public interface C3798fk {\n /* renamed from: a */\n void mo15292a();\n\n /* renamed from: b */\n void mo15293b();\n}", "title": "" }, { "docid": "9d53da22f178fdaa6b37266b39793abc", "score": "0.5638306", "text": "public interface C1550o<T> {\n /* renamed from: a */\n void mo6237a(T t);\n}", "title": "" }, { "docid": "09f82bfe4caa2eaa08638354386c68f3", "score": "0.56379944", "text": "public interface C1470a {\n /* renamed from: a */\n C1539b mo6952a();\n}", "title": "" }, { "docid": "cb006ac6768ea987104805c5f03bfba2", "score": "0.562783", "text": "public interface C2400b {\n /* renamed from: a */\n void mo28251a(int i);\n }", "title": "" }, { "docid": "fb4aa3e06ab2ecb32ad2570db47a2d53", "score": "0.56180924", "text": "public interface C2937c {\n /* renamed from: a */\n void m13559a(View view, int i, int i2);\n }", "title": "" }, { "docid": "e4550f8652a2851f30740d0fe0ab5eef", "score": "0.5615221", "text": "public interface C0366a {\n /* renamed from: a */\n void mo1302a(int i);\n\n /* renamed from: a */\n void mo1303a(View view);\n }", "title": "" }, { "docid": "1e5c136c3f6e77651cefdbc370a4caba", "score": "0.5603126", "text": "private interface C9289b {\n /* renamed from: a */\n long mo24060a();\n }", "title": "" }, { "docid": "dd4e94ad1b5c3d9f00e495b2a1451766", "score": "0.5550608", "text": "public interface C2975u3<T> {\n /* renamed from: a */\n T mo13235a();\n}", "title": "" }, { "docid": "cdce99ff39b9a5468cf42f52e676fda6", "score": "0.55449855", "text": "public interface AbstractC4531a {\n /* renamed from: a */\n void mo33261a();\n }", "title": "" }, { "docid": "fd707275ed629b4a3e85b47ec106a61c", "score": "0.55263376", "text": "public interface C35974b {\n\n /* renamed from: com.tencent.mm.sandbox.b$a */\n public interface C30268a extends C15410a {\n /* renamed from: b */\n void mo27462b(int i, int i2, btd btd);\n\n /* renamed from: dN */\n void mo27463dN(int i, int i2);\n }\n\n /* renamed from: a */\n void mo56706a(C30268a c30268a);\n\n void cancel();\n}", "title": "" }, { "docid": "640263cc0febf32af39373a31af141a7", "score": "0.5523509", "text": "public interface C1690ak extends C1684ae {\n /* renamed from: a */\n C1690ak mo7302a(C2778au auVar);\n\n /* renamed from: a */\n C2543e mo7303a();\n}", "title": "" }, { "docid": "d2f1f905032a0f90178a6a2b44915291", "score": "0.5511447", "text": "public interface C2903e extends Cloneable {\n /* renamed from: a */\n aa mo3689a();\n\n /* renamed from: b */\n void mo3690b();\n}", "title": "" }, { "docid": "9a40411b08abba1fd1eff9f02e6e667f", "score": "0.55044734", "text": "public interface C12752a {\n /* renamed from: a */\n C12758a mo31252a(C12746a aVar, String str);\n\n /* renamed from: a */\n C12759b mo31253a(C12746a aVar);\n\n /* renamed from: b */\n C12764e mo31254b(C12746a aVar);\n }", "title": "" }, { "docid": "aa2661ab11c416a15c07730969505a17", "score": "0.55027384", "text": "public b(a aVar) {\n super(1);\n this.a = aVar;\n }", "title": "" }, { "docid": "4c2317242b09d323d6a7aa6237f728a1", "score": "0.55010444", "text": "public interface C30991i {\n /* renamed from: a */\n void mo50170a();\n }", "title": "" }, { "docid": "f843b0fb02913227d2f4f26b68a82e58", "score": "0.5497062", "text": "public interface C1179h {\r\n /* renamed from: a */\r\n void mo1913a();\r\n\r\n /* renamed from: b */\r\n void mo1914b();\r\n}", "title": "" }, { "docid": "546fd2b6892b93713987ac7aad180ac0", "score": "0.54928756", "text": "public interface C11936c {\n /* renamed from: a */\n void mo29548a(C11847a<?> aVar, C11848b<?> bVar);\n}", "title": "" }, { "docid": "cb3e233a5bd2afdfa9c1f17c94845fc9", "score": "0.54863036", "text": "public interface C2939e {\n /* renamed from: a */\n void m13562a(View view, int i);\n\n /* renamed from: b */\n void m13563b(View view, int i);\n\n /* renamed from: c */\n void m13564c(View view, int i);\n }", "title": "" }, { "docid": "c8499d1a7af6e20e4d40867b5badd444", "score": "0.54852605", "text": "public interface C14000K<T> {\n /* renamed from: a */\n void mo43559a(T t);\n}", "title": "" }, { "docid": "7f5e6e17de8db7f175d0859a91421599", "score": "0.547935", "text": "interface C19454a<T> {\n /* renamed from: a */\n void mo14704a();\n\n /* renamed from: a */\n void mo14705a(T t);\n\n /* renamed from: a */\n void mo14706a(Throwable th);\n\n /* renamed from: a */\n void mo14707a(ReplayProducer<T> replayProducer);\n\n /* renamed from: a */\n T[] mo14708a(T[] tArr);\n\n /* renamed from: b */\n boolean mo14709b();\n }", "title": "" }, { "docid": "8d280cb5aac23e9cc6120f7f3f0d329a", "score": "0.5478923", "text": "public interface C12753b {\n /* renamed from: a */\n void mo31255a();\n\n /* renamed from: a */\n boolean mo31256a(int i, String str);\n\n /* renamed from: a */\n boolean mo31257a(C12746a aVar);\n\n /* renamed from: b */\n boolean mo31258b(C12746a aVar);\n }", "title": "" }, { "docid": "8f79f15e3d90f065555dc439beac7787", "score": "0.5478056", "text": "public interface C23292a {\n /* renamed from: a */\n C33248at mo60578a(C33248at atVar);\n }", "title": "" }, { "docid": "f0dd6e7a7e741335f4a4e2b78ca38f94", "score": "0.54743886", "text": "@Override\n\tpublic void a() {\n\n\t}", "title": "" }, { "docid": "2f4b377b6bd57027f9ac8d6ecc36b6fd", "score": "0.5468367", "text": "private double fixangle(double a) {\n\n a = a - (360 * (Math.floor(a / 360.0)));\n\n a = a < 0 ? (a + 360) : a;\n\n return a;\n }", "title": "" }, { "docid": "291ad5db5a7e5a562d7f999ef4b2e003", "score": "0.54667985", "text": "public interface C0375c extends IInterface {\n /* renamed from: a */\n void mo6444a(C0373a aVar);\n}", "title": "" }, { "docid": "6e8ef32ad529081592e83d512736d8d1", "score": "0.54640454", "text": "public interface C0398a {\n /* renamed from: a */\n boolean mo1818a();\n }", "title": "" }, { "docid": "482fb4965bec327bbf85f04405dc018b", "score": "0.5462413", "text": "public interface C2938d {\n /* renamed from: a */\n void m13560a(View view, int i);\n\n /* renamed from: b */\n void m13561b(View view, int i);\n }", "title": "" }, { "docid": "8e10a9d6da0dd995196bfe408e590677", "score": "0.5431033", "text": "@Override\r\n\tpublic void visitar(Agua a) \r\n\t{\n\t}", "title": "" }, { "docid": "027fc129ead45994fd2b9bdb78b4360a", "score": "0.54299164", "text": "public interface C0796f {\n /* renamed from: a */\n boolean mo645a();\n}", "title": "" }, { "docid": "f218e1d5ebd509f862f838a95939c864", "score": "0.5428724", "text": "public interface C6482gg<P1, R> {\n /* renamed from: a */\n R mo34409a(P1 p1);\n}", "title": "" }, { "docid": "74a29531af8818ccac03312663a80f8a", "score": "0.5422628", "text": "public a(int i) {\n super(0);\n this.a = i;\n }", "title": "" }, { "docid": "3cb74225e297c31c56c0b5613478db45", "score": "0.542224", "text": "public interface C0814m extends C4416a<C0613a> {\n\n /* renamed from: f.a.a.g.b.b.m$a */\n public interface C0815a extends C4417a<C0613a> {\n }\n}", "title": "" }, { "docid": "df87de73b1097c5e83ea3858240ce607", "score": "0.54218644", "text": "public interface C0675b {\n /* renamed from: a */\n void mo3853a(C0857b bVar);\n\n /* renamed from: b */\n void mo3854b(C0857b bVar);\n\n /* renamed from: c */\n C0857b mo3855c();\n\n /* renamed from: t */\n void mo3856t();\n}", "title": "" }, { "docid": "437b1951aa15c4fd9e44c7fc91bcbd77", "score": "0.54154474", "text": "public interface C30981g {\n /* renamed from: a */\n void mo29181a(int i, int i2, int i3, int i4);\n\n /* renamed from: a */\n void mo29182a(C44490de c44490de);\n }", "title": "" }, { "docid": "bf31d775e81d732137f8c4320b3e21dc", "score": "0.54092646", "text": "public interface C7029ua {\n /* renamed from: a */\n void mo22566a(C7025sa saVar);\n\n /* renamed from: b */\n void mo22567b(C7025sa saVar);\n\n /* renamed from: c */\n void mo22568c(C7025sa saVar);\n}", "title": "" }, { "docid": "b57beebc894269b457ac44b4e384955b", "score": "0.54079676", "text": "public akt(atr paramatr)\r\n/* 7: */ {\r\n/* 8:15 */ this.a = paramatr;\r\n/* 9:16 */ a(akf.d);\r\n/* 10: */ }", "title": "" }, { "docid": "2f96ff37fffc48db0e09008e44ef9226", "score": "0.5406119", "text": "public final void a(a aVar) {\n }", "title": "" }, { "docid": "8671e5dce3de879e4a2dc6547108b2ca", "score": "0.53933424", "text": "public interface C1965a {\n /* renamed from: a */\n void mo1279a(View view);\n\n /* renamed from: a */\n void mo1280a(String str);\n\n /* renamed from: a */\n void mo1281a(String str, C1815d c1815d);\n }", "title": "" }, { "docid": "b0cba746052347fc7bb04f2665ba9f3c", "score": "0.53927", "text": "interface C7198q<T> {\n /* renamed from: a */\n void mo22856a(int i);\n\n /* renamed from: a */\n void mo22857a(T t, int i);\n}", "title": "" }, { "docid": "6b3413dba29af30f31a85f88bda096b0", "score": "0.53925216", "text": "public interface C1402b {\n /* renamed from: a */\n boolean mo3768a();\n\n /* renamed from: b */\n int mo3769b();\n}", "title": "" }, { "docid": "b2a0725de676b61e8e3ee2bf4b5dc9ef", "score": "0.538603", "text": "public interface C30251c {\n /* renamed from: a */\n int mo67727a();\n\n /* renamed from: a */\n void mo67728a(int i);\n\n /* renamed from: a */\n void mo67729a(int i, boolean z);\n}", "title": "" }, { "docid": "3ef4dc9a6e220a91fb84838ff25e1ba3", "score": "0.5363468", "text": "public bl a() {\n }", "title": "" }, { "docid": "3ff500e159786d448e667934bbe64c77", "score": "0.535566", "text": "public Vector turn(double a)\r\n {\r\n double x=this.x;\r\n double y= this.y;\r\n \r\n double xn;\r\n double yn;\r\n\r\n xn=(float)(x*Math.cos(a*Math.PI/180)-y*Math.sin(a*Math.PI/180));\r\n yn=(float)(x*Math.sin(a*Math.PI/180)+y*Math.cos(a*Math.PI/180));\r\n \r\n return new Vector(xn,yn);\r\n\r\n }", "title": "" }, { "docid": "71789d1f106df256e2474bba61d75dcf", "score": "0.53495365", "text": "public interface C6342a extends C6343b {\n /* renamed from: a */\n String mo22573a(String str);\n\n /* renamed from: b */\n boolean mo22574b(String str);\n}", "title": "" }, { "docid": "92a2ca2346ab55b5cfa4c63a880fb624", "score": "0.5344963", "text": "public interface C7314a {\n /* renamed from: a */\n void mo23727a(String str);\n\n /* renamed from: a */\n boolean mo23728a();\n}", "title": "" }, { "docid": "ba03edc643e93ea8b9013d9c6c77690a", "score": "0.5341089", "text": "public interface C2001b {\n /* renamed from: a */\n CyclingReportTrainStatisticsActivity m10314a();\n\n /* renamed from: a */\n void m10315a(TrainCourseDTO trainCourseDTO);\n\n /* renamed from: a */\n void m10316a(String str);\n\n /* renamed from: a */\n void m10317a(ArrayList<Entry> arrayList);\n\n /* renamed from: b */\n int m10318b();\n\n /* renamed from: b */\n void m10319b(String str);\n\n /* renamed from: b */\n void m10320b(ArrayList<Entry> arrayList);\n\n /* renamed from: c */\n ArrayList<C2411a> m10321c();\n\n /* renamed from: c */\n void m10322c(String str);\n}", "title": "" }, { "docid": "e0c21f8dbd658485edf408f7f43ae1be", "score": "0.5340893", "text": "public void a() {}", "title": "" }, { "docid": "e9723095d18f49d2bbad2aff73969dd4", "score": "0.53365916", "text": "private Type subst(Type t, String a, String b) {\n if (t instanceof UserType) {\n UserType tt = (UserType)t;\n if (tt.getName().equals(a)) return UserType.mk(b, null, tt.loc());\n return t;\n } else if (t instanceof MapType) {\n MapType tt = (MapType)t;\n return MapType.mk(\n (TupleType)subst(tt.getIdxType(), a, b),\n subst(tt.getElemType(), a, b),\n tt.loc());\n } else if (t instanceof IndexedType) {\n IndexedType tt = (IndexedType)t;\n return IndexedType.mk(\n subst(tt.getParam(), a, b),\n subst(tt.getType(), a, b),\n tt.loc());\n } else if (t instanceof DepType) {\n DepType tt = (DepType)t;\n return subst(tt.getType(), a, b);\n }\n assert t == null || t instanceof PrimitiveType;\n return t;\n }", "title": "" } ]
05af4c65423577498d2de62d6e060cc9
This would produce a rightleft rotation
[ { "docid": "63016db3718a78adf559973a466f23ef", "score": "0.0", "text": "@Test(timeout = TIMEOUT)\n public void testAdd() {\n tree.add(47);\n\n expected = \"[[66], [47, 76], [42, 53, 70, 89]]\";\n actual = Visualizer.binViz(tree);\n\n assertEquals(expected, actual);\n }", "title": "" } ]
[ { "docid": "9f54601fde3ef21b8c152f07791c0e88", "score": "0.7708283", "text": "public abstract void rotateLeft();", "title": "" }, { "docid": "e0919e5a80f4523e16d3599994f0ca14", "score": "0.7668011", "text": "public abstract void rotateRight();", "title": "" }, { "docid": "62071b7b9c48150bd65deff139a15694", "score": "0.7585677", "text": "public void rotateLeft()\n {\n rotateRight();\n rotateRight();\n rotateRight();\n }", "title": "" }, { "docid": "524b1fddaa300fe157158315a16f0ec2", "score": "0.7499237", "text": "public static BinaryNode rightLeftRotation(BinaryNode node) {\n node.rightChild=rightRotation(node.rightChild); // 4-6-8\n return leftRotation(node);\n }", "title": "" }, { "docid": "9f4b07ba586920e24bf937e9ca98af70", "score": "0.7409439", "text": "public void rotateRight() {\n\t\t\n\t\tif(Direction.E.equals(rover.getDirection())){\n\t\t\trover.setDirection(Direction.S);\n\t\t\treturn;\n\t\t}\n\t\tif(Direction.W.equals(rover.getDirection())){\n\t\t\trover.setDirection(Direction.N);\n\t\t\treturn;\n\t\t}\n\t\tif(Direction.N.equals(rover.getDirection())){\n\t\t\trover.setDirection(Direction.E);\n\t\t\treturn;\n\t\t}\n\t\tif(Direction.S.equals(rover.getDirection())){\n\t\t\trover.setDirection(Direction.W);\n\t\t\treturn;\n\t\t}\n\t}", "title": "" }, { "docid": "9cecd1d9856c667939b33ff1dd526bda", "score": "0.7357135", "text": "public void rotateLeft() {\n\t\t\n\t\tif(Direction.E.equals(rover.getDirection())){\n\t\t\trover.setDirection(Direction.N);\n\t\t\treturn;\n\t\t}\n\t\tif(Direction.W.equals(rover.getDirection())){\n\t\t\trover.setDirection(Direction.S);\n\t\t\treturn;\n\t\t}\n\t\tif(Direction.N.equals(rover.getDirection())){\n\t\t\trover.setDirection(Direction.W);\n\t\t\treturn;\n\t\t}\n\t\tif(Direction.S.equals(rover.getDirection())){\n\t\t\trover.setDirection(Direction.E);\n\t\t\treturn;\n\t\t}\n\t}", "title": "" }, { "docid": "804fc985b0e07e466ed9b5265b0f3688", "score": "0.7354153", "text": "public Orientation rotateLeft(){\n switch (this){\n case N : return W;\n case W : return S;\n case S : return E;\n default: return N;\n }\n }", "title": "" }, { "docid": "12c92c35d418d4c65f689113b8364d73", "score": "0.72991866", "text": "private HwAvlTree<T>.HwAvlTreeNode rightLeftRotation(HwAvlTree<T>.HwAvlTreeNode root) {\n ((HwAvlTreeNode) root).mRight = leftLeftRotation(((HwAvlTreeNode) root).mRight);\n return (HwAvlTreeNode<T>) rightRightRotation(root);\n }", "title": "" }, { "docid": "555c5da09a7fce418d8d2127dc1d4975", "score": "0.7254301", "text": "private HwAvlTree<T>.HwAvlTreeNode leftRightRotation(HwAvlTree<T>.HwAvlTreeNode root) {\n ((HwAvlTreeNode) root).mLeft = rightRightRotation(((HwAvlTreeNode) root).mLeft);\n return (HwAvlTreeNode<T>) leftLeftRotation(root);\n }", "title": "" }, { "docid": "665a98c6c4b1682df1a061c832331eaa", "score": "0.7247304", "text": "public AVLNode rightLeftRotation(AVLNode node) {\n \n node.children[1] = rightRotation((AVLNode) node.children[1]);\n return leftRotation(node);\n }", "title": "" }, { "docid": "8eb426e19b31a968bf45d337cc8bf407", "score": "0.72298396", "text": "private void rightRotation() {\n\t\tE elem = getData();\n\t\tBalancedBinarySearchTree<E> t = getLeft();\n\t\tsetData(t.getData());\n\t\tsetLeft(t.getLeft());\n\t\tt.setData(elem);\n\t\tt.setLeft(t.getRight());\n\t\tt.setRight(getRight());\n\t\tsetRight(t);\n\t\tt.computeHeight();\n\t\tcomputeHeight();\n\t}", "title": "" }, { "docid": "b0b62b4c3b7ad78ed0c4852016631f1b", "score": "0.7210218", "text": "private AVLNode rightRotate(AVLNode n) {\n AVLNode n1 = n.left;\n\n // ROTACION\n n.left = n1.right;\n n1.right = n;\n //n = n1;\n\n // ACTUALIZAR ALTURAS\n n.heigth = max(height(n.left), height(n.right)) + 1;\n n1.heigth = max(height(n1.left), n.heigth) + 1;\n\n // RETORNO DE NODO EQUILIBRADO\n return n1;\n }", "title": "" }, { "docid": "051ad32fa54c17aa0b8490ecc9f93c72", "score": "0.7204883", "text": "public static BinaryNode leftRightRotation(BinaryNode node) {\n node.leftChild=leftRotation(node.leftChild);\n return rightRotation(node);\n }", "title": "" }, { "docid": "5c490071afea3a9528307b464ad0cace", "score": "0.71972734", "text": "public void RotateRight(){\r\n comp.RotateRightComp();\r\n }", "title": "" }, { "docid": "440eef439be783c9b4c40aa86e2b2d0e", "score": "0.7195577", "text": "private AVLNode leftRotate(AVLNode n) {\n AVLNode n1 = n.right;\n\n // ROTACION\n n.right = n1.left;\n n1.left = n;\n //n = n1;\n\n // ACTUALIZAR ALTURAS\n n.heigth = max(height(n.left), height(n.right)) + 1;\n n1.heigth = max(height(n1.left), height(n1.right)) + 1;\n\n // RETORNO DE NODO EQUILIBRADO\n return n1;\n }", "title": "" }, { "docid": "6967b236980ac303fa648ed6d1e8ee4d", "score": "0.71717024", "text": "private static Node rotateRightLeft(Node root) {\n root.right = rotateRight(root.right);\n root = rotateLeft(root);\n return root;\n }", "title": "" }, { "docid": "0440be9eaee32b3dcacc69a6d8d3c43e", "score": "0.71448624", "text": "public AVLNode leftRightRotation(AVLNode node) {\n \n node.children[0] = leftRotation((AVLNode) node.children[0]);\n return rightRotation(node);\n }", "title": "" }, { "docid": "e12195347380ea6bb4e818a08959551f", "score": "0.7142406", "text": "public void rotateRight() {\n switch(direction) {\n case LEFT:\n direction = Direction.UP;\n break;\n case RIGHT:\n direction = Direction.DOWN;\n break;\n case UP:\n direction = Direction.RIGHT;\n break;\n case DOWN:\n direction = Direction.LEFT;\n break;\n }\n }", "title": "" }, { "docid": "f2ad8039463e41ceb5227b0d47a2d94f", "score": "0.7133376", "text": "public Direction rotateLeft()\r\n\t{\r\n\t\treturn rotate(-1);\r\n\t}", "title": "" }, { "docid": "cbee2bb4c7c23685ed92f87169a5dc71", "score": "0.71312994", "text": "public void turnLeft()\n {\n int rot = getRotation();\n setRotation ( (rot+90) % 361 );\n }", "title": "" }, { "docid": "5cdab2d3e509b2fce12f2b9d8c9e6f8a", "score": "0.71054244", "text": "private static Node rotateLeftRight(Node root) {\n root.left = rotateLeft(root.left);\n root = rotateRight(root);\n return root;\n }", "title": "" }, { "docid": "5435755a84a3ffe945c412ca0a98ba1e", "score": "0.7090898", "text": "AvlStudentNode rightRotation(AvlStudentNode node) {\r\n\r\n\t\t// accessing nodes\r\n\t\tAvlStudentNode left = node.getLeft();\r\n\t\tAvlStudentNode right = left.getRight();\r\n\r\n\t\t// changing pointers(i.e. performing rotation)\r\n\t\tnode.setLeft(right);\r\n\t\tleft.setRight(node);\r\n\r\n\t\t// adjusting the height of the nodes\r\n\t\tnode.setHeight((max(heightNode(node.getLeft()), heightNode(node.getRight()))) + 1);\r\n\t\tleft.setHeight((max(heightNode(left.getLeft()), heightNode(left.getRight()))) + 1);\r\n\r\n\t\treturn left;\r\n\t}", "title": "" }, { "docid": "f885c7ce1657df6c4272201e0682035b", "score": "0.7087871", "text": "public void rotateLeft() {\n switch(direction) {\n case LEFT:\n direction = Direction.DOWN;\n break;\n case RIGHT:\n direction = Direction.UP;\n break;\n case UP:\n direction = Direction.LEFT;\n break;\n case DOWN:\n direction = Direction.RIGHT;\n break;\n }\n }", "title": "" }, { "docid": "2d10bf2b34575d6cc1d49f2c01cd0cf9", "score": "0.7085281", "text": "void rotate();", "title": "" }, { "docid": "5cc9f7c042b1d9e54a248cb8063e3f37", "score": "0.7082701", "text": "private Node<V> rightRotate(Node<V> node) {\n Node<V> x = node.left;\n Node<V> temp = x.right;\n\n // Perform rotation\n x.right = node;\n node.left = temp;\n\n // Update heights\n node.height = max(height(node.left), height(node.right)) + 1;\n x.height = max(height(x.left), height(x.right)) + 1;\n\n // The new root after rotation\n return x;\n }", "title": "" }, { "docid": "0a8f65157f1aa10be4051aa62d2d5a43", "score": "0.7082667", "text": "public void RotateLeft(){\r\n comp.RotateLeftComp();\r\n }", "title": "" }, { "docid": "7b46c308c11f901d8d0627115ea3f137", "score": "0.7081115", "text": "public abstract void setRotateRight();", "title": "" }, { "docid": "3efd1f0e192d32ab91e1b2c9b54bb840", "score": "0.7075888", "text": "private Node rotateRightLeft(Node parent) {\n\t\tNode child = parent.right;\n\t\tNode newRoot = child.left;\n\t\tNode grand1 = newRoot.left;\n\t\tNode grand2 = newRoot.right;\n\t\tchild.left = grand2;\n\t\tparent.right = grand1;\n\n\t\tnewRoot.left = parent;\n\t\tnewRoot.right = child;\n\n\t\tcomputeHeight(child);\n\t\tcomputeHeight(parent);\n\t\treturn newRoot;\n\t}", "title": "" }, { "docid": "79df3c937caa601ae4219d2f247d9f41", "score": "0.70697474", "text": "private Node<T> rotateRightLeft(Node<T> n) {\n\t\tif (n.getRight() != null) {\n\t\t\tn.setRight(rotateRight(n.getRight()));\n\t\t}\n\t\treturn rotateLeft(n);\n\t}", "title": "" }, { "docid": "8e6ebefff209977cbddc178e7db29863", "score": "0.7062315", "text": "public abstract void setRotateLeft();", "title": "" }, { "docid": "676970c22a322c5aa116ec3f3a6040c5", "score": "0.704914", "text": "private AVLNode RL_Rotation(AVLNode k1) {\t\n k1.right = rightRotation( k1.right );\n return leftRotation( k1 );\n }", "title": "" }, { "docid": "895365228f7b12c8c101307a5a4329c7", "score": "0.7041025", "text": "private Node<V> leftRotate(Node<V> node) {\n Node<V> x = node.right;\n Node<V> temp = x.left;\n\n // Perform rotation\n x.left = node;\n node.right = temp;\n\n // Update heights\n node.height = max(height(node.left), height(node.right)) + 1;\n x.height = max(height(x.left), height(x.right)) + 1;\n\n // Return new root\n return x;\n }", "title": "" }, { "docid": "fa2d0c4e805fefff9c9e7a3e2f9e2ddd", "score": "0.7028855", "text": "AvlStudentNode leftRotation(AvlStudentNode node) {\r\n\r\n\t\t// accessing nodes\r\n\t\tAvlStudentNode right = node.getRight();\r\n\t\tAvlStudentNode left = right.getLeft();\r\n\r\n\t\t// changing pointers(i.e. performing rotation)\r\n\t\tnode.setRight(left);\r\n\t\tright.setLeft(node);\r\n\r\n\t\t// adjusts the height of the nodes\r\n\t\tnode.setHeight((max(heightNode(node.getLeft()), heightNode(node.getRight()))) + 1);\r\n\t\tright.setHeight((max(heightNode(right.getLeft()), heightNode(right.getRight()))) + 1);\r\n\r\n\t\treturn right;\r\n\t}", "title": "" }, { "docid": "7ee8cf3167d53b6c7569548a9eeacf2b", "score": "0.70263696", "text": "private Node<T> rotateLeftRight(Node<T> n) {\n\t\tif (n.getLeft() != null) {\n\t\t\tn.setLeft(rotateLeft(n.getLeft()));\n\t\t}\n\t\treturn rotateRight(n);\n\t}", "title": "" }, { "docid": "26164a8d28ef08ea2a6a918c42e7301d", "score": "0.70236105", "text": "public void rotate() {\n // Boolean to prevent right from triggering bottom conditional\n boolean temp = false;\n \n if (this.right) {\n this.right = false;\n temp = true;\n }\n if (this.top) {\n this.top = false;\n this.right = true;\n }\n if (this.left) {\n this.left = false;\n this.top = true;\n }\n if (this.bottom) {\n this.bottom = false;\n this.left = true;\n }\n if (temp) {\n this.bottom = true;\n }\n \n }", "title": "" }, { "docid": "e3f0d78c0019ae4cb76fa8b4cd61cdec", "score": "0.70124644", "text": "private Node rotateLeftRight(Node parent) {\n\t\tNode child = parent.left;\n\t\tNode newRoot = child.right;\n\t\tNode grand1 = newRoot.left;\n\t\tNode grand2 = newRoot.right;\n\t\tchild.right = grand1;\n\t\tparent.left = grand2;\n\n\t\tnewRoot.left = child;\n\t\tnewRoot.right = parent;\n\n\t\tcomputeHeight(child);\n\t\tcomputeHeight(parent);\n\t\treturn newRoot;\n\t}", "title": "" }, { "docid": "6ac8cd6ea5eb859d591b71da7f6b80f8", "score": "0.7005901", "text": "private RedBlackTreeNode rightRotate(RedBlackTreeNode node) {\n\t\tRedBlackTreeNode leftSubtree = node.left;\n\t\tRedBlackTreeNode leftRightSubtree = leftSubtree.right;\n\t\tnode.left = leftRightSubtree;\n\t\tif (leftRightSubtree != dummy)\n\t\t\tleftRightSubtree.parent = node;\n\t\tleftSubtree.parent = node.parent;\n\t\tif (dummy == node.parent)\n\t\t\troot = leftSubtree;\n\t\telse if (node.parent.left == node)\n\t\t\tnode.parent.left = leftSubtree;\n\t\telse\n\t\t\tnode.parent.right = leftSubtree;\n\t\tleftSubtree.right = node;\n\t\tnode.parent = leftSubtree;\n\t\treturn leftSubtree;\n\t}", "title": "" }, { "docid": "b4c26da7ef73924f74b9a4f44ff1ea2c", "score": "0.69828707", "text": "private void double_rightrotate(BTNode x) {\r\n\t BTNode y = x.parent;\r\n\t BTNode z = y.parent;\r\n\t BTNode T2 = x.right;\r\n\t x.right = y;\r\n\t y.parent = x;\r\n\t y.left = T2;\r\n\t T2.parent = y;\r\n\t z.right = x;\r\n\t x.parent = z;\r\n\t //now trinode are z\r\n\t\t// x \r\n\t\t// y\r\n\t single_rightrotate(y);\r\n\t \r\n }", "title": "" }, { "docid": "c290de5b6ac786a8d47aa92c5438b839", "score": "0.6979585", "text": "private Node<K, E> rotateRight(Node<K, E> node) {\n\t\tSystem.out.println(\"rotate right\");\n\t\tNode<K, E> l = node.l;\n\t\tnode.setLeft(l.r);\n\t\tl.setRight(node);\n\t\treturn l;\n\t}", "title": "" }, { "docid": "794cdd260c3183b01992de4106e83729", "score": "0.6978863", "text": "private AVLNode leftRotation(AVLNode k1)\t{\t\n AVLNode k2 = k1.right;\n k1.right = k2.left;\n k2.left = k1;\n k1.height = Math.max( height( k1.left ), height( k1.right ) ) + 1;\n k2.height = Math.max( height( k2.right ), k1.height ) + 1;\n return k2;\n }", "title": "" }, { "docid": "1c3dc9d36879c41fd71964498945485d", "score": "0.69737136", "text": "public Node leftRotation() {\n\t\tNode newRoot = this.getRightChild();\n\t\tNode newLeftChild = this;\n\t\tnewLeftChild.setRightChild(newRoot.getLeftChild());\n\t\tnewRoot.setLeftChild(newLeftChild);\n\t\t// ajustando parentesco\n\t\tnewRoot.setParent(newLeftChild.getParent());\n\t\tnewLeftChild.setParent(newRoot);\n\t\treturn newRoot;\n\t}", "title": "" }, { "docid": "6ec97091b5b86881f5804db196407cce", "score": "0.6970532", "text": "private void rightRotation(Node n) {\n\t\tif(n==null)\n\t\t\treturn;\n\t\tif(n.leftChild==null) //rotation not possible\n\t\t\treturn;\n\t\tif(n==root) {\n\t\t\tNode tempLeft=n.leftChild;\n\t\t\tn.leftChild=tempLeft.rightChild;\n\t\t\tif(n.leftChild!=null)\n\t\t\tn.leftChild.parent=n;\n\t\t\ttempLeft.rightChild=n;\n\t\t\tn.parent=tempLeft;\n\t\t\troot=tempLeft;\n\t\t\treturn;\n\t\t}\n\t\tNode tempLeft=n.leftChild;\n\t\tn.leftChild=tempLeft.rightChild;\n\t\tif(n.leftChild!=null)\n\t\tn.leftChild.parent=n;\n\t\ttempLeft.rightChild=n;\n\t\tif(n.parent.leftChild!=null&&n.parent.leftChild==n)\n\t\t\tn.parent.leftChild=tempLeft;\n\t\telse\n\t\t\tn.parent.rightChild=tempLeft;\n\t\ttempLeft.parent=n.parent;\n\t\tn.parent=tempLeft;\n\t}", "title": "" }, { "docid": "e4f4456b565e8466b371e379d662fa4d", "score": "0.6966585", "text": "private void leftRotation(Node n) {\n\t\tif(n==null)\n\t\t\treturn;\n\t\tif(n.rightChild==null) //rotation not possible\n\t\t\treturn;\n\t\tif(n==root) {\n\t\t\tNode tempright=n.rightChild;\n\t\t\tn.rightChild=tempright.leftChild;\n\t\t\tif(n.rightChild!=null)\n\t\t\tn.rightChild.parent=n;\n\t\t\ttempright.leftChild=n;\n\t\t\tn.parent=tempright;\n\t\t\troot=tempright;\n\t\t\treturn;\n\t\t}\n\t\tNode tempright=n.rightChild;\n\t\tn.rightChild=tempright.leftChild;\n\t\tif(n.rightChild!=null)\n\t\tn.rightChild.parent=n;\n\t\ttempright.leftChild=n;\n\t\tif(n.parent.leftChild!=null&&n.parent.leftChild==n)\n\t\t\tn.parent.leftChild=tempright;\n\t\telse\n\t\t\tn.parent.rightChild=tempright;\n\t\ttempright.parent=n.parent;\n\t\tn.parent=tempright;\n\t}", "title": "" }, { "docid": "e74e365cc89e6373a692dd50ed6d3e71", "score": "0.69627", "text": "public abstract void stopLeftRotate();", "title": "" }, { "docid": "650eb2f0cf9a6d7f360a221f1f672d80", "score": "0.6957717", "text": "private WhoIsNode<T> rightRotate(WhoIsNode<T> n){\n WhoIsNode<T> r = n.left;\n n.left = r.right;\n r.right=n;\n n.height=Math.max(height(n.left), height(n.right))+1;\n r.height=Math.max(height(r.left), height(r.right))+1;\n n.max=findMax(n);\n r.max=findMax(r);\n return r;\n }", "title": "" }, { "docid": "2694e818dd2c6c8ddfba99f605e3c61f", "score": "0.6942532", "text": "private void rotateRight(RBNode<E> n) {\r\n\t\tif (n.getLeft() == null) {\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tRBNode<E> oldLeft = n.getLeft();\r\n\t\tn.setLeft(oldLeft.getRight());\r\n\t\tif (n.getParent() == null) {\r\n\t\t\troot = oldLeft;\r\n\t\t} else if (n.getParent().getLeft() == n) {\r\n\t\t\tn.getParent().setLeft(oldLeft);\r\n\t\t} else {\r\n\t\t\tn.getParent().setRight(oldLeft);\r\n\t\t}\r\n\t\toldLeft.setRight(n);\r\n\t}", "title": "" }, { "docid": "029b1eb2d82123cb47d079d551f6a3b7", "score": "0.69401574", "text": "private RedBlackTreeNode leftRotate(RedBlackTreeNode node) {\n\t\tRedBlackTreeNode rightSubtree = node.right;\n\t\tRedBlackTreeNode rightLeftSubtree = rightSubtree.left;\n\t\tnode.right = rightLeftSubtree;\n\t\tif (rightLeftSubtree != dummy) {\n\t\t\trightLeftSubtree.parent = node;\n\t\t}\n\t\trightSubtree.parent = node.parent;\n\t\tif (node.parent == dummy)\n\t\t\troot = rightSubtree; \n\t\telse if (node.parent.left == node) \n\t\t\tnode.parent.left = rightSubtree;\n\t\telse \n\t\t\tnode.parent.right = rightSubtree;\n\t\trightSubtree.left = node;\n\t\tnode.parent = rightSubtree;\n\t\treturn rightSubtree;\n\t}", "title": "" }, { "docid": "40b17a3d9e6e7986105116c2ff131575", "score": "0.69300425", "text": "Node rightRotate(Node y) { \n\t Node x = y.left; \n\t Node T2 = x.right; \n\t \n\t // Perform rotation \n\t x.right = y; \n\t y.left = T2; \n\t \n\t // Update heights \n\t y.height = max(height(y.left), height(y.right)) + 1; \n\t x.height = max(height(x.left), height(x.right)) + 1; \n\t \n\t // Return new root \n\t return x; \n\t }", "title": "" }, { "docid": "da4b927e06496e668551b4f0be8ea35a", "score": "0.6925925", "text": "Node rightRotate(Node y) \n { \n Node x = y.left; \n Node T2 = x.right; \n \n // Perform rotation \n x.right = y; \n y.left = T2; \n \n // Update heights \n y.height = max(height(y.left), height(y.right)) + 1; \n x.height = max(height(x.left), height(x.right)) + 1; \n \n // Return new root \n return x; \n }", "title": "" }, { "docid": "f72ea4bceaae01b70d9fc316903335fa", "score": "0.6922788", "text": "public static BinaryNode leftRotation(BinaryNode node) {\n BinaryNode temp = node.rightChild;\n node.rightChild=temp.leftChild;\n temp.leftChild=node;\n return temp;\n }", "title": "" }, { "docid": "7797f811db9dfa2541cdf13f21efae19", "score": "0.6922564", "text": "private Node<T> rotateRightLeft(Node<T> n) {\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "aac84f5907dc3938c369878678cb9af6", "score": "0.692137", "text": "public static BinaryNode rightRotation(BinaryNode node) {\n BinaryNode temp = node.leftChild;\n node.leftChild=temp.rightChild;\n temp.rightChild=node;\n return temp;\n }", "title": "" }, { "docid": "9d7ce1edcfe54cea30c76bf39742e003", "score": "0.6915583", "text": "private void leftRotation() {\n\t\tE elem = getData();\n\t\tBalancedBinarySearchTree<E> t = getRight();\n\t\tsetData(t.getData());\n\t\tsetRight(t.getRight());\n\t\tt.setData(elem);\n\t\tt.setRight(t.getLeft());\n\t\tt.setLeft(getLeft());\n\t\tsetLeft(t);\n\t\tt.computeHeight();\n\t\tcomputeHeight();\n\t}", "title": "" }, { "docid": "0589cd36c194c2f9478b9be03b117e5d", "score": "0.6900469", "text": "private Node<K, V> rightRotation(Node<K, V> node) {\n\t\tNode<K,V> newRootNode = node.left;\n\t\tNode<K,V> temp = newRootNode.right;\n\n\t\tnewRootNode.right = node;\n\t\tnode.left = temp;\n\n\t\tnewRootNode.height = getHeight(newRootNode);\n\t\tnode.height = getHeight(node);\n\n\t\treturn newRootNode;\n\t}", "title": "" }, { "docid": "70a3d98c71828be38700be6767e31688", "score": "0.6898016", "text": "private WhoIsNode<T> leftRotate(WhoIsNode<T> n){\n WhoIsNode<T> r = n.right;\n n.right = r.left;\n r.left=n;\n n.height=Math.max(height(n.left), height(n.right))+1;\n r.height=Math.max(height(r.left), height(r.right))+1;\n n.max=findMax(n);\n r.max=findMax(r);\n return r;\n }", "title": "" }, { "docid": "55e8bfdb3003dc3bc590a6bb52ccc3c8", "score": "0.689372", "text": "public Direction rotateRight()\r\n\t{\r\n\t\treturn rotate(1);\r\n\t}", "title": "" }, { "docid": "bfbc8b6bc6bb06392e7729bc5f249597", "score": "0.68848664", "text": "private AVLNode rightRotation(AVLNode k2) {\t \t \n AVLNode k1 = k2.left;\n k2.left = k1.right;\n k1.right = k2;\n k2.height = Math.max( height( k2.left ), height( k2.right ) ) + 1;\n k1.height = Math.max( height( k1.left ), k2.height ) + 1;\n return k1;\n }", "title": "" }, { "docid": "893c942216d135ef909cff1301e3d1a6", "score": "0.6880441", "text": "public Shape RotateLeft() {\n if(CurrentShape == Shapes.Square) {\n return this;\n }\n\n Shape result = new Shape();\n result.CurrentShape = CurrentShape;\n\n for (int i = 0; i < 4; i++) {\n result.setXonRow(i,getYfromRow(i));\n result.setYonRow(i,-getXfromRow(i));\n }\nreturn result;\n }", "title": "" }, { "docid": "652f5670ce021c63658a6c5f62c3b07e", "score": "0.68703777", "text": "@Override\r\n public void rotateRight() {\r\n if (stage == 1) {\r\n reset();\r\n tetrominoes[2][2] = 1;\r\n tetrominoes[1][1] = 1;\r\n tetrominoes[2][1] = 1;\r\n tetrominoes[3][1] = 1;\r\n stage = 2;\r\n\r\n } else if (stage == 2) {\r\n reset();\r\n tetrominoes[3][1] = 1;\r\n tetrominoes[2][0] = 1;\r\n tetrominoes[2][1] = 1;\r\n tetrominoes[2][2] = 1;\r\n stage = 3;\r\n\r\n } else if (stage == 3) {\r\n reset();\r\n tetrominoes[2][0] = 1;\r\n tetrominoes[1][1] = 1;\r\n tetrominoes[2][1] = 1;\r\n tetrominoes[3][1] = 1;\r\n stage = 4;\r\n } else if(stage == 4) {\r\n reset();\r\n tetrominoes[2][1] = 1;\r\n tetrominoes[3][0] = 1;\r\n tetrominoes[3][1] = 1;\r\n tetrominoes[3][2] = 1;\r\n stage = 1;\r\n } else {\r\n System.out.println(\"Error 1:Rotate stage higher than possible\");\r\n }\r\n\r\n }", "title": "" }, { "docid": "e10211bacbdc22005bbb2c5368b740ae", "score": "0.6856479", "text": "private Node<K, V> leftRotation(Node<K, V> node) {\n\t\tNode<K, V> newRootNode = node.right;\n\t\tNode<K, V> temp = newRootNode.left;\n\n\t\tnewRootNode.left = node;\n\t\tnode.right = temp;\n\n\t\tnewRootNode.height = getHeight(newRootNode);\n\t\tnode.height = getHeight(node);\n\n\t\treturn newRootNode;\n\t}", "title": "" }, { "docid": "f62c3df256dd291aead76c61ee9c3223", "score": "0.6847232", "text": "private static Node rotateRight(Node root) {\n\n Node axis = root.left;\n root.left = axis.right;\n axis.right = root;\n root = axis;\n\n root.right.setHeight();\n root.right.setBalance();\n root.setHeight();\n root.setBalance();\n\n return root; \n }", "title": "" }, { "docid": "472b5da0815160fdee74c15ea264cf3d", "score": "0.681038", "text": "private void rotateLeft(RBNode<E> n) {\r\n\t\tif (n.getRight() == null) {\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tRBNode<E> oldRight = n.getRight();\r\n\t\tn.setRight(oldRight.getLeft());\r\n\t\tif (n.getParent() == null) {\r\n\t\t\troot = oldRight;\r\n\t\t} else if (n.getParent().getLeft() == n) {\r\n\t\t\tn.getParent().setLeft(oldRight);\r\n\t\t} else {\r\n\t\t\tn.getParent().setRight(oldRight);\r\n\t\t}\r\n\t\toldRight.setLeft(n);\r\n\t}", "title": "" }, { "docid": "cb6a52ba32faee39d3fad3063bc0ece2", "score": "0.6806637", "text": "Node leftRotate(Node x) \n { \n Node y = x.right; \n Node T2 = y.left; \n \n // Perform rotation \n y.left = x; \n x.right = T2; \n \n // Update heights \n x.height = max(height(x.left), height(x.right)) + 1; \n y.height = max(height(y.left), height(y.right)) + 1; \n \n // Return new root \n return y; \n }", "title": "" }, { "docid": "3859b1b81f98e943072ac3d29a4b180e", "score": "0.680524", "text": "final public void rotateRight() {\n this.orientation = getNextOrientation();\n }", "title": "" }, { "docid": "8393ef3c7a1de2daf51d13b0354aff10", "score": "0.68022126", "text": "protected void rightRotate(Node x) {\n Node y = (Node) x.left;\n \n x.left = y.right;\n if (x.left != null) {\n y.right.parent = x;\n }\n \n y.parent = x.parent;\n \n y.right = x;\n x.parent = y;\n \n if (root == x) {\n root = y;\n } else {\n if (y.parent.left == x) {\n y.parent.left = y;\n } else {\n y.parent.right = y;\n } \n }\n }", "title": "" }, { "docid": "b81e33a97a41c2ab5cb8e42f2fefdf3a", "score": "0.6797783", "text": "Node leftRotate(Node x) { \n\t Node y = x.right; \n\t Node T2 = y.left; \n\t \n\t // Perform rotation \n\t y.left = x; \n\t x.right = T2; \n\t \n\t // Update heights \n\t x.height = max(height(x.left), height(x.right)) + 1; \n\t y.height = max(height(y.left), height(y.right)) + 1; \n\t \n\t // Return new root \n\t return y; \n\t }", "title": "" }, { "docid": "07f041aa03aa884f1b213ccbd304e5eb", "score": "0.67966175", "text": "public double getRotation() {\r\n\t\tdouble right = rightElevator.getEncoder().getPosition();\r\n\t\t//double left = -leftElevator.getEncoder().getPosition();\r\n\t\treturn right;\r\n\t}", "title": "" }, { "docid": "6bb1fbae710047033ca69315bbd105eb", "score": "0.67946017", "text": "private void rightRotate(RBNode x) {\n\t\tRBNode y = x.getLeft();\n\t\tx.setLeft(y.getRight());\n\t\tif (!y.getRight().equals(NULL)) {\n\t\t\ty.getRight().setParent(x); // transfer y's right subtree to x\n\t\t}\n\t\ty.setParent(x.getParent());\n\t\tif (x.getParent().equals(NULL)) {\n\t\t\tthis.root = y; // if original was root, fix pointer\n\t\t} else if (x == x.getParent().getRight()) {\n\t\t\tx.getParent().setRight(y);\n\t\t} else {\n\t\t\tx.getParent().setLeft(y);\n\t\t} // y is now child of its parent\n\t\ty.setRight(x);\n\t\tx.setParent(y); // fix child and parent pointers, rotation now complete\n\t\ty.setSize(x.getSize());\n\t\tx.updateSize();\n\t}", "title": "" }, { "docid": "6e25b5688f6b3292459b7ef0a61a933b", "score": "0.67880356", "text": "public void rightRotate(Node<E> n)\r\n\t{\r\n\t\t\r\n\t\tNode<E> little = n.getLeft();\r\n\t\tn.setParent(little);\r\n\t\tn.setLeft(little.getRight());\r\n\t\tlittle.setRight(n);\r\n\t\tredoPreorder = true;\r\n\t\tredoInorder = true;\r\n\t\tredoPostorder = true;\r\n\t}", "title": "" }, { "docid": "8fcf8c57e1fc0cce577dc2c8bfafe611", "score": "0.6784638", "text": "private void single_rightrotate(BTNode x) {\r\n\t BTNode y = x.parent;\r\n\t BTNode z = y.parent;\r\n\t BTNode T1 = y.left;\r\n\t if(z == root) {\r\n\t\t root = y;\r\n\t\t y.left = z;\r\n\t\t z.parent = y;\r\n\t\t z.right = T1;\r\n\t\t T1.parent = z;\r\n\t\t y.parent = null;\r\n\t }else {\r\n\t\t if(z.parent.right == z) {\r\n\t\t\t y.parent = z.parent;\r\n\t\t\t z.parent.right = y;\r\n\t\t\t y.left = z;\r\n\t\t\t z.parent = y;\r\n\t\t\t z.right = T1;\r\n\t\t\t T1.parent = z;\r\n\t\t }else {\r\n\t\t\t y.parent = z.parent;\r\n\t\t\t z.parent.left = y;\r\n\t\t\t y.left = z;\r\n\t\t\t z.parent = y;\r\n\t\t\t z.right = T1;\r\n\t\t\t T1.parent = z;\r\n\t\t \r\n\t\t\t \r\n\t\t }\r\n\t }\r\n }", "title": "" }, { "docid": "5d49129ff8a8166bc0166d8ff7a6b344", "score": "0.6777089", "text": "public void rightRotate(RedBlackNode x) {\n\t\tRedBlackNode y = x.getLc();\n\t\tx.setLc(y.getRc());\n\t\ty.getRc().setP(x);\n\t\ty.setP(x.getP());\n\t\t\n\t\tif(x.getP() == nil) {\n\t\t\troot = y;\n\t\t}\n\t\telse {\n\t\t\tif( x == x.getP().getLc()) {\n\t\t\t\tx.getP().setLc(y);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tx.getP().setRc(y);\n\t\t\t}\n\t\t}\n\t\t\n\t\ty.setRc(x);\n\t\tx.setP(y);\n\t}", "title": "" }, { "docid": "8c97896240fb46666acd635f2b9be111", "score": "0.6767466", "text": "private Node<T> rotateLeftRight(Node<T> n) {\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "38bdcb15505d773db3c3761dc5fe653d", "score": "0.67509943", "text": "public Node leftRotate(Node x) {\n\t\tNode y = x.right;\n\t\tNode T2 = y.left;\n\t\t\n\t\t// Rotation\n\t\tx.right = T2;\n\t\ty.left = x;\n\t\t\n\t\ty.height = Math.max(getNodeHeight(y.left), getNodeHeight(y.right)) + 1;\n\t\tx.height = Math.max(getNodeHeight(x.left), getNodeHeight(x.right)) + 1;\n\t\t\n\t\t// Return the new root\n\t\treturn y;\n\t}", "title": "" }, { "docid": "125bcfa435fb5ba38daa64cb50bbf376", "score": "0.6749151", "text": "private Node rotateRight(Node parent) {\n\t\tNode newRoot = parent.left;\n\t\tNode grandson = newRoot.right;\n\t\tparent.left = grandson;\n\t\tnewRoot.right = parent;\n\n\t\tcomputeHeight(parent);\n\t\treturn newRoot;\n\t}", "title": "" }, { "docid": "37700278b4d5b2f9eb4c37e622badb2c", "score": "0.67258114", "text": "public void rotateRight() {\n if (body.getAngularVelocity() < -1 * 2 * Math.PI) {\n return;\n }\n float torque = -angularAcceleration * body.getMassData().I;\n body.applyTorque(torque, true);\n }", "title": "" }, { "docid": "f636a5930338e282275021e279f8194a", "score": "0.67254347", "text": "private void rotateRight(RedBlackNode node) {\n // Copy node's left child.\n RedBlackNode yNode = node.getLeft();\n\n // Update node's left child by yNode's right subtree.\n node.setLeft(yNode.getRight());\n\n // Update yNode's right child's parent by node if it's not a leaf node.\n if(yNode.getRight() != nil) {\n yNode.getRight().setParent(node);\n }\n\n updateParentChildLink(node.getParent(), node, yNode);\n\n yNode.setRight(node);\n node.setParent(yNode);\n }", "title": "" }, { "docid": "d7a3b9f934ecd46926d3bf6e305e67fb", "score": "0.67242867", "text": "public void rotateRightLeft(BSTNode<K, V> grandParent) {\n // rotating right\n rotateRight(grandParent.right);\n // rotating left\n rotateLeft(grandParent);\n }", "title": "" }, { "docid": "8819288037b0aa3fa7bc731c76b2d58c", "score": "0.670685", "text": "public void rot90DegRight(){\n \tRGBColor newMatrix[][] = new RGBColor[this.height][this.width];\n \t \tif (this.height == this.width) {\n \t \t\tfor (int h=0; h<this.height; h++) {\n \t \t\t\tfor (int w=0; w<this.width; w++) {\n \t \t\t\t\tnewMatrix[w][h] = this.imageMatrix[h][this.width-w-1];\n \t \t\t\t}\n \t \t\t}\n \t \t} else {\n \t \t\tfor (int h=0; h<this.width; h++) {\n \t\t\t\tfor (int w=0; w<this.height; w++) {\n \t\t\t\t\tnewMatrix[w][h] = this.imageMatrix[h][this.height-w-1];\n \t\t\t\t}\n \t \t\t}\n \t \t}\n \t \tint swap;\n \t \tswap = this.height;\n \t \tthis.height = this.width;\n \t \tthis.width = swap;\n \t \tthis.imageMatrix = newMatrix; \n }", "title": "" }, { "docid": "a1136573d0146b5bc845f6ba1330b2c7", "score": "0.6703779", "text": "public void RotateLeft(int edge, int amount) {\n }", "title": "" }, { "docid": "31e7843f0732cda518c3eed9ca78a419", "score": "0.6698955", "text": "private Node<K, E> rotateLeft(Node<K, E> node) {\n\t\tSystem.out.println(\"rotate left\");\n\t\tNode<K, E> r = node.r;\n\t\tnode.setRight(r.l);\n\t\tr.setLeft(node);\n\t\treturn r;//new up node\n\t}", "title": "" }, { "docid": "9debf28def485d33e48d139206996069", "score": "0.66946393", "text": "public static void leftRotation(int[] x) {\n\t\t \n\t int firstIndex = x[0];\n\t \n\t for(int i = 0; i < x.length-1; i++) {\n\t \t\n\t \tx[i] = x[i+1];\n\t \t\t \t\n\t }\n\t \n\t //x[x.length-1] = firstIndex;\n\t \n\t System.out.println(Arrays.toString(x));\n\t \t\n\t}", "title": "" }, { "docid": "bde7fd9dc2ff8cf686cce39ca3856d37", "score": "0.669119", "text": "public Node rightRotate(Node y) {\n\t\tNode x = y.left;\n\t\tNode T2 = x.right;\n\t\t\n\t\t// Rotation\n\t\tx.right = y;\n\t\ty.left = T2;\n\t\t\n\t\ty.height = Math.max(getNodeHeight(y.left), getNodeHeight(y.right)) + 1;\n\t\tx.height = Math.max(getNodeHeight(x.left), getNodeHeight(x.right)) + 1;\n\t\t\n\t\t// Return the new root\n\t\treturn x;\n\t}", "title": "" }, { "docid": "bf767704b0bb8959e5d1dfa820fe9e4e", "score": "0.6689311", "text": "public void RotateRight(int edge, int amount) {\n }", "title": "" }, { "docid": "af726691e2e7b9f788d0f81dd59c3d21", "score": "0.66786855", "text": "private void double_leftrotate(BTNode x) {\r\n\t BTNode y = x.parent;\r\n\t BTNode z = y.parent;\r\n\t BTNode T1 = x.left;\r\n\t x.left = y;\r\n\t y.parent = x;\r\n\t y.right = T1;\r\n\t T1.parent = y;\r\n\t z.left = x;\r\n\t x.parent = z;\r\n\t//now trinode are z\r\n\t// x\r\n\t// y\r\n\t single_leftrotate(y);\r\n }", "title": "" }, { "docid": "ac57ca9f9c5bc8f19c95110727ceedaa", "score": "0.6674383", "text": "private void rotateLeft(RedBlackNode node) {\n // Copy node's right child.\n RedBlackNode yNode = node.getRight();\n \n // Turn yNode's left subtree into node's right subtree.\n node.setRight(yNode.getLeft());\n\n // Update yNode's left child's parent by node if it's not a leaf node.\n if(yNode.getLeft() != nil) {\n yNode.getLeft().setParent(node);\n }\n\n updateParentChildLink(node.getParent(), node, yNode);\n\n yNode.setLeft(node);\n node.setParent(yNode);\n }", "title": "" }, { "docid": "6313642b0e89a69064bf0e0a56eb94e9", "score": "0.66742206", "text": "public void leftRotate(RedBlackNode x) {\n\t\t RedBlackNode y = x.getRc();\n\t\t x.setRc(y.getLc());\n\t\t y.getLc().setP(x);\n\t\t y.setP(x.getP());\n\t\t \n\t\t if(x.getP() == nil) {\n\t\t\t root = y;\n\t\t }\n\t\t else {\n\t\t\t if(x == x.getP().getLc()) {\n\t\t\t\t x.getP().setLc(y);\n\t\t\t }\n\t\t\t else {\n\t\t\t\t x.getP().setRc(y);\n\t\t\t }\n\t\t }\n\t\t y.setLc(x);\n\t\t x.setP(y);\n\t\t\n\t}", "title": "" }, { "docid": "663fbdd9be785a73cac0540a89291ce4", "score": "0.6670074", "text": "public void rotateLeftRight(BSTNode<K, V> grandParent) {\n // rotating left\n rotateLeft(grandParent.left);\n // rotating right\n rotateRight(grandParent);\n }", "title": "" }, { "docid": "f0846b96a89ccc80b88a3f3f9b7f12ae", "score": "0.6666022", "text": "private AVLNode LR_Rotation(AVLNode k3) {\t\n k3.left = leftRotation( k3.left );\n return rightRotation( k3 );\n }", "title": "" }, { "docid": "9658b6a04ce5caa4d57ea04ef63b42d9", "score": "0.665577", "text": "public Shape RotateRight() {\n if(CurrentShape == Shapes.Square) {\n return this;\n }\n Shape result = new Shape();\n result.CurrentShape = CurrentShape;\n for (int i = 0; i < 4; i++) {\n result.setXonRow(i,-getYfromRow(i));\n result.setYonRow(i, getXfromRow(i));\n }\n return result;\n }", "title": "" }, { "docid": "c1d0a47cd3f5a49578fdbfa07c0608d1", "score": "0.6654962", "text": "private static BitMatrix rotateRight(BitMatrix input) {\n int width = input.getWidth();\n BitMatrix result = new BitMatrix(width);\n for (int x = 0; x < width; x++) {\n for (int y = 0; y < width; y++) {\n if (input.get(x,y)) {\n result.set(y, width - x - 1);\n }\n }\n }\n return result;\n }", "title": "" }, { "docid": "3f162d5cb116e10b2d8d0f36a20eb17c", "score": "0.6649931", "text": "public void rightRotate(RedBlackNode x) {\n\n\t\tif (x.getLc() == this.nil) {\n return;\n }\n\n if (this.root.getP() != this.nil) {\n return;\n }\n\n RedBlackNode y = x.getLc();\n x.setLc(y.getRc());\n y.getRc().setP(x);\n y.setP(x.getP());\n\n if (x.getP() == this.nil) {\n this.root = y;\n } else {\n if (x.getP().getLc() == x) {\n x.getP().setLc(y);\n } else {\n x.getP().setRc(y);\n }\n }\n y.setRc(x);\n x.setP(y);\n\t}", "title": "" }, { "docid": "1751d8ecd22e98108c036a14846beafa", "score": "0.664196", "text": "public TreeNode rotateRight(TreeNode node){\t\t\r\n\r\n\t\tTreeNode left = node.getLeft();\r\n\t\tleft.setParent(node.getParent());\r\n\r\n\t\tnode.setLeft(left.getRight());\r\n\r\n\t\tTreeNode nl = node.getLeft();\r\n\r\n\t\tif (nl != null) {\r\n\t\t\tnl.setParent(node);\r\n\t\t}\r\n\r\n\t\tleft.setRight(node);\r\n\t\tnode.setParent(left);\r\n\r\n\t\tTreeNode lp = left.getParent();\r\n\r\n\t\tif (lp != null) {\r\n\t\t\tif (lp.getRight() == node) {\r\n\t\t\t\tlp.setRight(left);\r\n\t\t\t} else if (lp.getLeft() == node) {\r\n\t\t\t\tlp.setLeft(left);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tsetBalance(node);\r\n\t\tsetBalance(left);\r\n\r\n\t\treturn left;\r\n }", "title": "" }, { "docid": "2061156e3a3e707984b9f3ce6c715d30", "score": "0.664124", "text": "public abstract void stopRightRotate();", "title": "" }, { "docid": "3a9ae8ad03d5aeab43c4f126cab1737b", "score": "0.66406363", "text": "public void rotateRight()\n {\n //Move pieces\n Piece temp1;\n //only do first 2 col because last col is side of other face\n for(int row=0;row<3;row++)\n {\n for(int col=0;col<2;col++)\n {\n //hold front\n temp1=pieces[0][row][col];\n //change front to left\n pieces[0][row][col]=pieces[Math.abs(2-col)][row][0];\n //change left to back\n pieces[Math.abs(2-col)][row][0]=pieces[2][row][Math.abs(2-col)];\n //change back to right\n pieces[2][row][Math.abs(2-col)]=pieces[col][row][2];\n //change right to front\n pieces[col][row][2]=temp1;\n }\n } \n \n //rotate pieces\n for(int dep=0;dep<3;dep++)\n {\n for(int rows=0;rows<3;rows++)\n {\n for(int cols=0;cols<3;cols++)\n {\n pieces[dep][rows][cols].rotateRight();\n }\n }\n }\n }", "title": "" }, { "docid": "18517734529abfdaa326dd6df84976fe", "score": "0.66371286", "text": "private void rotateRight(RedBlackTreeNode n) {\n if (n.getParent() != nullNode) {\n if (n == n.getParent().getLeft()) {\n n.getParent().setLeft(n.getLeft());\n } else {\n n.getParent().setRight(n.getLeft());\n }\n n.getLeft().setParent(n.getParent());\n n.setParent(n.getLeft());\n if (n.getLeft().getRight() != nullNode) {\n n.getLeft().getRight().setParent(n);\n }\n n.setLeft(n.getLeft().getRight());\n n.getParent().setRight(n);\n } else {\n RedBlackTreeNode left = root.getLeft();\n root.setLeft(root.getLeft().getRight());\n left.getRight().setParent(root);\n root.setParent(left);\n left.setRight(root);\n left.setParent(nullNode);\n root = left;\n }\n }", "title": "" }, { "docid": "7c0fb2734616c876e07d82077db228ad", "score": "0.662908", "text": "private GImage rotateLeft(GImage image) {\n\t\t// Your code starts here\n\t\tint[][] array = image.getPixelArray();\n\t\tint height = array.length;\n\t\tint width = array[0].length;\n\t\tint[][] array2 = new int[width][height];\n\t\tfor (int i = 0; i < height; i++) {\n\t\t\tfor (int j = 0; j < width; j++) {\n\t\t\t\tarray2[width - j - 1][i] = array[i][j];\n\t\t\t}\n\t\t}\n\t\treturn new GImage(array2);\n\t\t// Your code ends here\n\t}", "title": "" }, { "docid": "1452e4af172217a396251e5498ecccd8", "score": "0.6623223", "text": "private void leftRotate(RBNode x) {\n\t\tRBNode y = x.getRight();\n\t\tx.setRight(y.getLeft());\n\t\tif (!y.getLeft().equals(NULL)) {\n\t\t\ty.getLeft().setParent(x); // transfer y's left subtree to x\n\t\t}\n\t\ty.setParent(x.getParent());\n\t\tif (x.getParent().equals(NULL)) {\n\t\t\tthis.root = y; // if original was root, fix pointer\n\t\t} else if (x == x.getParent().getLeft()) {\n\t\t\tx.getParent().setLeft(y);\n\t\t} else {\n\t\t\tx.getParent().setRight(y);\n\t\t} // y is now child of its parent\n\t\ty.setLeft(x);\n\t\tx.setParent(y); // fix child and parent pointers, rotation now complete\n\t\ty.setSize(x.getSize());\n\t\tx.updateSize();\n\t}", "title": "" }, { "docid": "1ce6ea30876b7264cfd846bfe336c3c1", "score": "0.66187334", "text": "private TreeNode rightRotate(TreeNode currentNode){\n TreeNode originalLeftChild = currentNode.getLeftChild();\n TreeNode currentOriginalParent = currentNode.getParent();\n kindOfChild currentNodeLeftOrRight = leftOrRightSon(currentNode);\n currentNode.setLeftChild(originalLeftChild.getRightChild());\n if (originalLeftChild.getRightChild() != null) {\n originalLeftChild.getRightChild().setParent(currentNode);\n }\n originalLeftChild.setRightChild(currentNode);\n currentNode.setParent(originalLeftChild);\n originalLeftChild.setParent(currentOriginalParent);\n currentNode.fixHeight();\n originalLeftChild.fixHeight();\n parentConnectionUpdate(currentOriginalParent, originalLeftChild, currentNodeLeftOrRight);\n return originalLeftChild;\n }", "title": "" }, { "docid": "a7fe1176c972f093997f5028e06f19ee", "score": "0.6611727", "text": "private TreeNode rotateRight(TreeNode oldParent) {\r\n // Detach right subtree of left node\r\n TreeNode orphan = oldParent.left.right;\r\n // Left child becomes new parent\r\n TreeNode newParent = oldParent.left;\r\n // Attach the \"orphan\" as LEFT subtree of old parent node\r\n oldParent.left = orphan;\r\n // Attach old parent as a right subtree of new parent\r\n newParent.right = oldParent;\r\n\r\n oldParent.height = super.computeHeight(oldParent);\r\n newParent.height = super.computeHeight(newParent);\r\n return newParent;\r\n }", "title": "" }, { "docid": "f998dccf6ab36c380ea5706e8b6e2341", "score": "0.6610753", "text": "public void leftRotate(Node<E> n)\r\n\t{\r\n\t\tNode<E> big = n.getRight();\r\n\t\tn.setParent(big);\r\n\t\tn.setRight(big.getLeft());\r\n\t\tbig.setLeft(n);\r\n\t\tredoPreorder = true;\r\n\t\tredoInorder = true;\r\n\t\tredoPostorder = true;\r\n\t}", "title": "" }, { "docid": "7fcfbdea68f362ae2f82415bd6b01310", "score": "0.6609251", "text": "public Node singleRightRotation(Node parent, DataContainer data) {\n//\t\tSystem.out.println(\"SR: \"+data.numRot);\n//\t\tSystem.out.println(\"newRoot: \"+newRoot.element);\n//\t\tSystem.out.println(\"newRootRight: \"+newRoot.right.element);\n\t\t//System.out.println(\"single right\");\n\t\tdata.numRot++;\n\t\t//System.out.println(\"Rotated: \"+this.data.numRot);\n\t\tNode child = parent.left;\n\t\tNode orphan = child.right;\n\t\tchild.right = parent;\n\t\tparent.left = orphan;\n\t\tparent.rank -= child.rank + 1;\n\t\tparent.balance = Code.SAME;\n\t\tchild.balance = Code.SAME;\n\t\tdata.continueRot = false;\n\t\treturn child;\n\t}", "title": "" } ]
749fe29f19f141e84a5181a0caeb56e7
Gets the remaining unallocated tasks. (i.e. total sum of allocated so far)
[ { "docid": "fe823b35253a8b4e900f155678680154", "score": "0.6780282", "text": "private int getRemainingTasksCount(InputWorkLoad input, List<TaskDistributionOutput> initialSplit) {\n\t\treturn input.getNumTasks() - getSumOfAllocatedTasksSoFar(initialSplit);\n\t}", "title": "" } ]
[ { "docid": "79e524e21a4e25e7389a3693549f9dd5", "score": "0.7014629", "text": "protected int numOfTasksLeft() {\n return tasks.size();\n }", "title": "" }, { "docid": "a5aede70066b7679d1352f7a5e2ef424", "score": "0.6823808", "text": "public int numPendingTasks() {\n\t\treturn dueTasks.size() + scheduledTasks.size();\n\t}", "title": "" }, { "docid": "6a000f7e7c3ad3a85f96c3352029931f", "score": "0.66630274", "text": "private int getSumOfAllocatedTasksSoFar(List<TaskDistributionOutput> initialSplit) {\n\t\treturn initialSplit.stream().mapToInt(i -> i.getNumTasks()).sum();\n\t}", "title": "" }, { "docid": "0ede81fd2cfb9403e394476308c248ae", "score": "0.62839407", "text": "public int processesRemaining() {\n \t\treturn processes.size();\n \t}", "title": "" }, { "docid": "876e275d2d47417ee67045bb1096168f", "score": "0.6235077", "text": "long getSpaceRemaining();", "title": "" }, { "docid": "06edde036105b447a1201cad3abd00d1", "score": "0.6190318", "text": "public int getWaitingTaskCount() {\n return taskList.size();\n }", "title": "" }, { "docid": "fc76808afac92f446ead35a42511184b", "score": "0.61594886", "text": "public int getSizeofTasks() {\n return this.taskList.size();\n }", "title": "" }, { "docid": "840827bb5f55069836569e0518f7b3ed", "score": "0.61379737", "text": "public int getSize() {\n return tasks.size();\n }", "title": "" }, { "docid": "840827bb5f55069836569e0518f7b3ed", "score": "0.61379737", "text": "public int getSize() {\n return tasks.size();\n }", "title": "" }, { "docid": "d2decb4126bc1b3983bb4bfcd369e071", "score": "0.613209", "text": "public int getFreeSpace(){\n\t\treturn this.getMaximumJobs()-this.jobStatus.size();\n\t}", "title": "" }, { "docid": "98dd13e30721eaa8b357caaf68b69df6", "score": "0.61174685", "text": "public long getQueuedTaskCount();", "title": "" }, { "docid": "74bdcc88c0ad32bbc23726bacee1c72a", "score": "0.61052495", "text": "public int size() {\n return tasks.size();\n }", "title": "" }, { "docid": "74bdcc88c0ad32bbc23726bacee1c72a", "score": "0.61052495", "text": "public int size() {\n return tasks.size();\n }", "title": "" }, { "docid": "4d7687446bcdb2580db7d8d97528d0c2", "score": "0.6089086", "text": "int getTotal_unevictable();", "title": "" }, { "docid": "4d7687446bcdb2580db7d8d97528d0c2", "score": "0.6089086", "text": "int getTotal_unevictable();", "title": "" }, { "docid": "3f3c40adc8163dd7253d23c54adbfe55", "score": "0.6079674", "text": "protected int getTotalIneligibleInactiveQueues() {\n return tallyInactiveTotals(\n getInactiveQueuesByPrecedence().tailMap(getPrecedenceFloor()));\n }", "title": "" }, { "docid": "73e26175d4adfed5016c0663c2264d7f", "score": "0.60666776", "text": "public int getTotalOfScheduledTasks(){\n\t\treturn asyncJobs.size();\n\t}", "title": "" }, { "docid": "9a158ee9be45b6889410ea7f9008b05b", "score": "0.6052932", "text": "public int getRemaining() {\n\t\treturn 0;\r\n\t}", "title": "" }, { "docid": "caec886d9dbd0d3120a0fa2e54e5f5bc", "score": "0.6043215", "text": "int getTasksCount();", "title": "" }, { "docid": "caec886d9dbd0d3120a0fa2e54e5f5bc", "score": "0.6043215", "text": "int getTasksCount();", "title": "" }, { "docid": "d377540fa4ec9d0aca8ae80209b5890c", "score": "0.60275686", "text": "public int getTotalOfActiveTasks() {\n\t\tint total = 0;\n\t\tfor ( Future<?> future : asyncJobs )\n\t\t\tif ( !future.isDone() )\n\t\t\t\ttotal++;\n\t\treturn total;\n\t}", "title": "" }, { "docid": "2583fe8dc8706ce4a533fd1f6812b5a9", "score": "0.59999806", "text": "public int getTasksCount() {\n return tasks_.size();\n }", "title": "" }, { "docid": "c02f4193053152a803bad9cb7223a784", "score": "0.5988626", "text": "int getUsesRemaining();", "title": "" }, { "docid": "385832066eec4aab3a086535318880aa", "score": "0.5978786", "text": "int getRemainingEvents() {\n return remaining.get();\n }", "title": "" }, { "docid": "e4541759a63d2757c2561c724d0b467d", "score": "0.5977094", "text": "public int getNumberOfTasks() {\n return tasks.size();\n }", "title": "" }, { "docid": "d2dcac4240e654d886cf99b7304dd4ac", "score": "0.59747463", "text": "public synchronized boolean tasksRemaining() {\r\n\t\treturn !taskMap.isEmpty();\r\n\t}", "title": "" }, { "docid": "6b928be99942cf49b5a1849cf27264fd", "score": "0.5973902", "text": "protected int getTotalEligibleInactiveQueues() {\n return tallyInactiveTotals(\n getInactiveQueuesByPrecedence().headMap(getPrecedenceFloor()));\n }", "title": "" }, { "docid": "2b718252451d7d25ba149777f1a5b644", "score": "0.5964797", "text": "public int getNonCompletedWorkSize() {\n synchronized (monitor) {\n return scheduled.size() + scheduledAfterCommit.size()\n + running.size();\n }\n }", "title": "" }, { "docid": "e2cba6cc42a54e13db4fa01396ba8331", "score": "0.5959649", "text": "public int tasks()\n {\n return m_TaskList.size();\n }", "title": "" }, { "docid": "81fe456085bb1f7c6dbb8de5aa9f87b8", "score": "0.595721", "text": "@java.lang.Override\n public int getTasksCount() {\n return tasks_.size();\n }", "title": "" }, { "docid": "8d83ece5018e676fc3e5f0c5df68dc3f", "score": "0.5946056", "text": "public int getTasksCount() {\n return tasks_.size();\n }", "title": "" }, { "docid": "5e5fbcbc80a37ceeecc2afab79bf24d4", "score": "0.59425014", "text": "public int getTaskCount() {\n if (foreground == background) return background.getTaskCount();\n return foreground.getTaskCount() + background.getTaskCount();\n }", "title": "" }, { "docid": "120f7a4e41e366109e04cc3e06d77c9e", "score": "0.5929372", "text": "public int size(){\n return taskitems.size();\n }", "title": "" }, { "docid": "942fe70c8a680760bef6de5062fad128", "score": "0.5917742", "text": "public int getNumTasks() {\r\n\t\treturn this.numTasks;\r\n\t}", "title": "" }, { "docid": "f9ff267dc66ee2692eed73dfa7579fe3", "score": "0.5901671", "text": "public int removeNextTask() {\n int theTime = ((Task) taskQ.remove()).getTime();\n length = getLength() + theTime;\n return theTime;\n }", "title": "" }, { "docid": "3694d30811f9138f90f821e7d1105fdf", "score": "0.5896602", "text": "public int getRemainingCapacity()\n\t{\n\t\treturn getCapacity() - getFluidAmount();\n\t}", "title": "" }, { "docid": "b7f5773452b19cd1c3916186f5d0a54a", "score": "0.5879288", "text": "public int getNumTasks(){\n\t\treturn numtasks;\n\t}", "title": "" }, { "docid": "950b1d869df09b347fdbfe401392cc7e", "score": "0.5868161", "text": "public int getTasksCount() {\n if (tasksBuilder_ == null) {\n return tasks_.size();\n } else {\n return tasksBuilder_.getCount();\n }\n }", "title": "" }, { "docid": "9f49508adf0d105996b07c4473d2f644", "score": "0.5866899", "text": "public int getUsesRemaining() {\n return usesRemaining_;\n }", "title": "" }, { "docid": "9a3be3d4476cd53a3e8b07f3fe2e048a", "score": "0.5851449", "text": "public int getUsesRemaining() {\n return usesRemaining_;\n }", "title": "" }, { "docid": "6d5c5198bc446fe52b23601a3ef23c30", "score": "0.5820628", "text": "public long getMemoryConsumptionForThisTask() {\n return memoryManager.getExecutionMemoryUsageForTask(taskAttemptId);\n }", "title": "" }, { "docid": "cb08d6e1e574d80c8477e7c202870882", "score": "0.58133763", "text": "public int taskArraySize() {\n return arrayOfTasks.size();\n }", "title": "" }, { "docid": "af0e201c5b83ab1d97f6f89cac5edfd0", "score": "0.58111167", "text": "public int noOftasksNotdone() {\n int i = 0;\n for (Task t : tasks) {\n if (!t.getStatus()) {\n i++;\n }\n }\n return i;\n }", "title": "" }, { "docid": "6a31b425e801e2b50ae3e93c2fb5a401", "score": "0.5798121", "text": "int getUnbatchedTransfersCount();", "title": "" }, { "docid": "74e3988fa9069b956ab32d56ef73174c", "score": "0.57934445", "text": "@Override\n public int getFreeSpace() {\n return capacity - currentWeight;\n }", "title": "" }, { "docid": "68e95b355368989527f42ec2bc7998fe", "score": "0.5774643", "text": "protected synchronized int getNumActive() {\n return activeTasks;\n }", "title": "" }, { "docid": "7a95da36a864b8bf06454b84a2ac08d5", "score": "0.576644", "text": "protected int getTotalInactiveQueues() {\n return tallyInactiveTotals(getInactiveQueuesByPrecedence());\n }", "title": "" }, { "docid": "98ff1b3e80b8d89543a4cfac191f8629", "score": "0.57593536", "text": "public long cleanUpAllAllocatedMemory() {\n synchronized (this) {\n for (MemoryConsumer c: consumers) {\n if (c != null && c.getUsed() > 0) {\n if (logger.isDebugEnabled()) {\n // In case of failed task, it's normal to see leaked memory\n logger.debug(\"unreleased {} memory from {}\", Utils.bytesToString(c.getUsed()), c);\n }\n }\n }\n consumers.clear();\n\n for (MemoryBlock page : pageTable) {\n if (page != null) {\n if (logger.isDebugEnabled()) {\n logger.debug(\"unreleased page: {} in task {}\", page, taskAttemptId);\n }\n page.pageNumber = MemoryBlock.FREED_IN_TMM_PAGE_NUMBER;\n memoryManager.tungstenMemoryAllocator().free(page);\n }\n }\n Arrays.fill(pageTable, null);\n }\n\n // release the memory that is not used by any consumer (acquired for pages in tungsten mode).\n memoryManager.releaseExecutionMemory(acquiredButNotUsed, taskAttemptId, tungstenMemoryMode);\n\n return memoryManager.releaseAllExecutionMemoryForTask(taskAttemptId);\n }", "title": "" }, { "docid": "bd82e1e512e187d1bd849889b57f7259", "score": "0.57550967", "text": "public int GetPendingCount() {\n this.handlePendingLock.lock();\n try {\n return this.pendingQueue.size();\n } finally {\n this.handlePendingLock.unlock();\n }\n }", "title": "" }, { "docid": "3da1d290faa18b6132382404d41793a4", "score": "0.57348555", "text": "public int getAvailableFutureAllocation(){\n return localAvailableFutureAllocation;\n }", "title": "" }, { "docid": "1ce2d6c5c4591dc3439479c19ff06709", "score": "0.5712822", "text": "public int[] releaseResources() {\n finished = true;\n remainingProcesses--;\n return allocated;\n }", "title": "" }, { "docid": "f817735a6c7d3fa5c6a5faee83e9a839", "score": "0.5681106", "text": "long getOccupiedSpace();", "title": "" }, { "docid": "53cb4c030894e6a41ff9ddb0d8d32d57", "score": "0.56661844", "text": "public Integer getTaskCount() {\n \t\treturn new Integer(taskCount);\n \t}", "title": "" }, { "docid": "c199b0609fc6800c4c0d79fd5e967785", "score": "0.56616354", "text": "int getConsumedSpace();", "title": "" }, { "docid": "003950a2a415b9f805b0f5cbf1024343", "score": "0.565306", "text": "public final int RemainingElements() {\n return currentSize;\n }", "title": "" }, { "docid": "a7d74c2d79dab0efb17a0bff1b3f3d88", "score": "0.5652544", "text": "public List<Work> getNonCompleted() {\n synchronized (monitor) {\n List<Work> list = new ArrayList<Work>(running.size()\n + scheduled.size());\n list.addAll(running);\n list.addAll(scheduled);\n list.addAll(scheduledAfterCommit);\n return list;\n }\n }", "title": "" }, { "docid": "b738e7e1a8cdf89bbe72d85999d769e1", "score": "0.56383574", "text": "public int getNumberOfTasks() {\n return list.size();\n }", "title": "" }, { "docid": "b7cb241285529df17a515be27f46b8bd", "score": "0.5631592", "text": "public int remainingCapacity()\n {\n final ReentrantLock lock = this.lock;\n lock.lock();\n\n try\n {\n return getBufferCapacity() - count;\n }\n finally\n {\n lock.unlock();\n }\n }", "title": "" }, { "docid": "7b7a53a967fc67ffacb7b2554c6e4151", "score": "0.563047", "text": "public int getRunningTasksNumber() {\n return (int) tasks.stream().filter((taskWorker) -> (taskWorker.getStatus() == TaskWorker.Status.STARTED || taskWorker.getStatus() == TaskWorker.Status.PENDING)).count();\n }", "title": "" }, { "docid": "66ec63e40d43944739b8ca2e61e7ab55", "score": "0.5626528", "text": "public int size() {\n\t\treturn taskList.size();\n\t}", "title": "" }, { "docid": "016ffef4b0ea9f2677f0c1cea57784eb", "score": "0.5611564", "text": "int getNumRunningTasks();", "title": "" }, { "docid": "5e917db4fa97f57c033a0d1057348ab3", "score": "0.5606873", "text": "public long getRemaining() {\n return remaining;\n }", "title": "" }, { "docid": "68a4268787e3bd55e216d4d888e5da0e", "score": "0.5588106", "text": "public int size() {\n return taskList.size();\n }", "title": "" }, { "docid": "fac465342ad40808fe56e2acf1be3984", "score": "0.55822617", "text": "protected synchronized int getNumPending() {\n return pendingRequests;\n }", "title": "" }, { "docid": "cfa87f22663085b5468e6d391fd77dbb", "score": "0.55311346", "text": "int tasksSize(int i) {\n return tasks[i].size();\n }", "title": "" }, { "docid": "73ed92e8ab55ebe36ed5b91a875b481c", "score": "0.5527535", "text": "public long getSpaceRemaining() {\n return spaceRemaining_;\n }", "title": "" }, { "docid": "8638a50d9b2bfffde70dfaccb9d6bf0a", "score": "0.5518628", "text": "public int downloadsRemaining(){\n\t\tSet<String> retailers = processorMap.keySet();\n\t\tint remaining = 0;\n\t\tfor(String retailer: retailers){\n\t\t\tremaining += downloadsRemaining(retailer);\n\t\t}\n\t\treturn remaining;\n\t}", "title": "" }, { "docid": "159c819a4c3898073cabdf79bd5fe425", "score": "0.5511059", "text": "public int inCompleteTaskCount()\n {\n return (int) taskList.stream()\n .filter(task -> task.getStatus() == false)\n .count();\n }", "title": "" }, { "docid": "4ecc11ff05a0ffa24ccce46f08649398", "score": "0.55101514", "text": "private List<TaskDistributionOutput> allocateRemainingToSortedVendors(List<TaskDistributionOutput> sortedVendors,\n\t\t\tint remainingTasks) {\n\t\tfor (int i = 0; (i < sortedVendors.size() && remainingTasks > 0); i++) {\n\t\t\tTaskDistributionOutput taskDist = sortedVendors.get(i);\n\t\t\ttaskDist.setNumTasks(taskDist.getNumTasks() + 1);\n\t\t\t--remainingTasks;\n\t\t}\n\t\treturn sortedVendors;\n\t}", "title": "" }, { "docid": "d3348118bd85b8d8f9a2a8b08d400de2", "score": "0.5510149", "text": "int getEvictionRunningCount();", "title": "" }, { "docid": "ae0faa9ee53b00fd6901bac49b055f45", "score": "0.5487957", "text": "public int nRemaining() {\n\t\treturn(_max-_current);\n\t}", "title": "" }, { "docid": "b20ab2ab1c709cd8910caeed25f53edd", "score": "0.5486409", "text": "public long getPendingFuturesCount() {\n return tasks.stream().filter(ExecutorTask::isPending).count();\n }", "title": "" }, { "docid": "9780ffb49b0b2e5cc6f56edb0d5bb025", "score": "0.5483815", "text": "public long getSpaceRemaining() {\n return spaceRemaining_;\n }", "title": "" }, { "docid": "78154c680026e85eb7d4f459934af386", "score": "0.548247", "text": "int getTaskInfoCount();", "title": "" }, { "docid": "29e87992fbf9e1bf48b7afcd6c52c006", "score": "0.54774415", "text": "public int numRemaining();", "title": "" }, { "docid": "29e87992fbf9e1bf48b7afcd6c52c006", "score": "0.54774415", "text": "public int numRemaining();", "title": "" }, { "docid": "460b80ebe284e4970fccadfe0a3a2912", "score": "0.54659086", "text": "@Override\n public long getQueuedTaskCount() {\n\n return executor.getQueuedTaskCount();\n }", "title": "" }, { "docid": "0db01758edca150ba9a4713f7051908b", "score": "0.546382", "text": "private void recalculateTotalTasksForEveryCategory() {\n if (totalOverdueTasks != 0) {\n totalOverdueTasks = totalOverdueTasks - 1;\n }\n if (totalTodayTasks != 0) {\n totalTodayTasks = totalTodayTasks - 1;\n }\n if (totalTomorrowTasks != 0) {\n totalTomorrowTasks = totalTomorrowTasks - 1;\n }\n if (totalUpcomingTasks != 0) {\n totalUpcomingTasks = totalUpcomingTasks - 1;\n }\n if (totalSomedayTasks != 0) {\n totalSomedayTasks = totalSomedayTasks - 1;\n }\n }", "title": "" }, { "docid": "552144f44b513e8022a997e8ef7a7ddb", "score": "0.5461689", "text": "public int downloadsRemaining(String retailer){\n\t\tThreadPoolExecutor exec = processorMap.get(retailer);\n\t\tif(exec == null)\n\t\t\treturn 0;\n\t\treturn exec.getQueue().size();\n\t}", "title": "" }, { "docid": "5161aab57d6f9ce2033fe18ec042fb83", "score": "0.5455422", "text": "public int getTotalBusy(){\r\n\t\treturn this.totalBusy;\r\n\t}", "title": "" }, { "docid": "ac2a4df99d517dfe8f3d375774ef5a4f", "score": "0.54502195", "text": "public static int getThreadPoolFreeSlots() {\r\n return threadPool.getMaximumPoolSize() - threadPool.getPoolSize();\r\n }", "title": "" }, { "docid": "0def1ca4c591082d51552c0ac59f4ac9", "score": "0.54488385", "text": "private static long usedMemory() {\n\t\treturn rTime.totalMemory() - rTime.freeMemory();\n\t}", "title": "" }, { "docid": "ad1dd1453a5dad430ed52dcac8518566", "score": "0.5448324", "text": "public int getNumRunningTasks() {\n return numRunningTasks_;\n }", "title": "" }, { "docid": "09919b848cbfc1f4c900bfafd902500b", "score": "0.5442936", "text": "public int getNumRunningTasks() {\n return numRunningTasks_;\n }", "title": "" }, { "docid": "9f1853511c78c4e308a2b8c85cb1751a", "score": "0.54343843", "text": "int capacity();", "title": "" }, { "docid": "9f1853511c78c4e308a2b8c85cb1751a", "score": "0.54343843", "text": "int capacity();", "title": "" }, { "docid": "9f1853511c78c4e308a2b8c85cb1751a", "score": "0.54343843", "text": "int capacity();", "title": "" }, { "docid": "45d6fd00e28a616e5ae1816d575ed553", "score": "0.5431181", "text": "@Override\n\tpublic Collection<LoadBalancingQueueItem> getQueuedTasks() {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "a2a925baf29cbc0d6c1c18dbadc35d46", "score": "0.5422422", "text": "public Collection<ScheduledTask> getPendingTasks() {\n\t\treturn Stream.concat(dueTasks.stream(), scheduledTasks.stream()).collect(Collectors.toList());\n\t}", "title": "" }, { "docid": "219613aa9d1557f061f1533ddd8800bc", "score": "0.54109585", "text": "public int FreeSlots() {\n\t\tint count = 0;\n\t\tfor (ParkingSlot slot : this.parkingSlots) {\n\t\t\tif (slot.status == SlotStatus.Free) {\n\t\t\t\tcount += 1;\n\t\t\t}\n\t\t}\n\t\treturn count;\n\t}", "title": "" }, { "docid": "654207b20649fa8627a2f8610d063ba9", "score": "0.5404505", "text": "public int sortTaskNotCompleted() {\n\n\t\tint taskNotCompleted = 0;\n\n\t\tfor (Task tsk : allTasks) {\n\n\t\t\tif (tsk.getStatusCompleted().equalsIgnoreCase(\"Not done\")) {\n\t\t\t\ttaskNotCompleted++;\n\n\t\t\t}\n\t\t}\n\n\t\treturn taskNotCompleted;\n\n\t}", "title": "" }, { "docid": "0c989eff86ae1299a45ee011da3f2012", "score": "0.5398819", "text": "@Override\n\tpublic List<LoadBalancingQueueItem> getAllTasks() {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "c2fac7561da56900d9812cde684edc3c", "score": "0.5397538", "text": "@Override\n public long getFreeSpace() {\n return 0;\n }", "title": "" }, { "docid": "40514878c2ff26787683d5aed9bdbb4f", "score": "0.539129", "text": "Integer capacity();", "title": "" }, { "docid": "e4c38d0d18a16be658edded8391042f6", "score": "0.5389786", "text": "@Override\n\tpublic final int getThreadsUsed() {\n\t\treturn 0;\n\t}", "title": "" }, { "docid": "7d317460b1943cbe34fc3258c121a38f", "score": "0.5387058", "text": "int getFrozenSupplyCount();", "title": "" }, { "docid": "5ed699c8c192993ee04888785b10be97", "score": "0.5383769", "text": "public int sumOfTotalRequests(){\n\t\tint sum = 0;\n\t\tfor (int i = 0; i < 5; i++){\n\t\t\tsum += this.getTotalDestinationRequests()[i];\n\t\t}\n\t\treturn sum;\n\t}", "title": "" }, { "docid": "f8590aa78323cb2f3266f00bc460a25a", "score": "0.53748685", "text": "public int getTotalContinuas() {\n return totalContinuas;\n }", "title": "" }, { "docid": "2835a40b7389969a7c2a5456ad8a73cf", "score": "0.53727335", "text": "public int shipsRemaining() throws RemoteException;", "title": "" }, { "docid": "e0cc1f9b0e1a41e664675656426fdfb8", "score": "0.53719103", "text": "public Builder clearNumRunningTasks() {\n bitField0_ = (bitField0_ & ~0x00000008);\n numRunningTasks_ = 0;\n onChanged();\n return this;\n }", "title": "" } ]
28f33d69e4577a311784e77c06004f12
When receiving a certificate challenge from Android, the SDK will apply the selected policy for HttpsURLConnection object.
[ { "docid": "5c4803e8cb214a6452fed41798dc4e4a", "score": "0.7205742", "text": "void applySecurityPolicy(HttpsURLConnection connection);", "title": "" } ]
[ { "docid": "7327bdba64674351203496132b8fe8a1", "score": "0.80944264", "text": "public interface RequestSecurityPolicy {\n /**\n * When receiving a certificate challenge from Android, the SDK will apply the selected policy for HttpsURLConnection object.\n */\n void applySecurityPolicy(HttpsURLConnection connection);\n}", "title": "" }, { "docid": "c004d1b30a51fa03ffe19c6290df0b4b", "score": "0.5851906", "text": "@Override\nprotected Void doInBackground(Void... params){\n TrustManager[] trustAllCerts = new TrustManager[] { new X509TrustManager() {\n public java.security.cert.X509Certificate[] getAcceptedIssuers() {\n return null;\n }\n\n public void checkClientTrusted(java.security.cert.X509Certificate[] certs, String authType) {\n }\n\n public void checkServerTrusted(java.security.cert.X509Certificate[] certs, String authType) {\n }\n } };\n\n // Install the all-trusting trust manager\n try {\n SSLContext sc = SSLContext.getInstance(\"SSL\");\n sc.init(null, trustAllCerts, new java.security.SecureRandom());\n HttpsURLConnection.setDefaultSSLSocketFactory(sc.getSocketFactory());\n } catch (Exception e) {\n throw new RuntimeException(e);\n }\n\n // Your code ...\n URL url = null;\n HttpsURLConnection conn = null;\n try {\n url = new URL(\"https://example.com\");\n } catch (MalformedURLException e) {\n e.printStackTrace();\n }\n\n // ...\n}", "title": "" }, { "docid": "ba5244b61b525f1486db9bb3558a48a0", "score": "0.56725633", "text": "public interface TlsPolicy {\n \n boolean providesConfidentiality();\n \n boolean providesAuthentication();\n \n boolean providesIntegrity();\n \n\n X509ExtendedTrustManager getTrustManager();\n\n /**\n * NOTE: when using HttpsURLConnection, the hostname verifier is only \n * called if the server certificate does not match the address used to\n * connect. \n * When using Apache's StrictHostnameVerifier, the failure\n * message looks like \"HTTPS hostname wrong: should be <192.168.1.100>\"\n * When using our DenyAllHostnameVerifier, the failure message\n * looks like \"DENY-ALL\"\n * \n * \n * @return \n */\n X509HostnameVerifier getHostnameVerifier();\n \n /**\n * Due to the architecture of the Java SSLContext and the workaround for\n * connection pooling with TlsPolicyManager, the protocol selector must\n * be known prior to using the TlsPolicyManager. The TlsConnection \n * class provides a convenience function for creating the SSLContext \n * using the protocol selector.\n * be known \n * @return \n */\n ProtocolSelector getProtocolSelector();\n}", "title": "" }, { "docid": "a45aa0fa645413ae4e627b791aa03107", "score": "0.5540709", "text": "public void ShowSSLDialog(java.lang.String r23, byte[] r24, android.net.http.SslCertificate r25, boolean r26) {\n /*\n r22 = this;\n r3 = com.adobe.air.AndroidActivityWrapper.GetAndroidActivityWrapper();\n r10 = r3.getActivity();\n if (r10 != 0) goto L_0x000e;\n L_0x000a:\n r10 = r3.WaitForNewActivity();\n L_0x000e:\n r7 = new com.adobe.air.AndroidAlertDialog;\n r7.<init>(r10);\n r16 = r7.GetAlertDialogBuilder();\n r9 = r10.getLayoutInflater();\n r14 = r10.getResources();\n r19 = \"ssl_certificate_warning\";\n r0 = r19;\n r17 = com.adobe.air.utils.Utils.GetLayoutView(r0, r14, r9);\n if (r17 == 0) goto L_0x0178;\n L_0x0029:\n r18 = r17.getResources();\n r19 = \"ServerName\";\n r0 = r19;\n r1 = r18;\n r2 = r17;\n r15 = com.adobe.air.utils.Utils.GetWidgetInViewByNameFromPackage(r0, r1, r2);\n r15 = (android.widget.TextView) r15;\n r19 = new java.lang.StringBuilder;\n r19.<init>();\n r20 = r15.getText();\n r19 = r19.append(r20);\n r20 = \" \";\n r19 = r19.append(r20);\n r0 = r19;\n r1 = r23;\n r19 = r0.append(r1);\n r19 = r19.toString();\n r0 = r19;\n r15.setText(r0);\n r5 = 0;\n if (r24 == 0) goto L_0x0179;\n L_0x0062:\n r5 = new com.adobe.air.Certificate;\n r5.<init>();\n r0 = r24;\n r5.setCertificate(r0);\n L_0x006c:\n r19 = \"IDA_CERTIFICATE_DETAILS\";\n r0 = r19;\n r6 = com.adobe.air.utils.Utils.GetResourceString(r0, r14);\n r19 = 8;\n r0 = r19;\n r0 = new java.lang.Object[r0];\n r19 = r0;\n r20 = 0;\n r21 = r5.getIssuedToCommonName();\n r19[r20] = r21;\n r20 = 1;\n r21 = r5.getIssuedToOrganization();\n r19[r20] = r21;\n r20 = 2;\n r21 = r5.getIssuedToOrganizationalUnit();\n r19[r20] = r21;\n r20 = 3;\n r21 = r5.getIssuedByCommonName();\n r19[r20] = r21;\n r20 = 4;\n r21 = r5.getIssuedByOrganization();\n r19[r20] = r21;\n r20 = 5;\n r21 = r5.getIssuedByOrganizationalUnit();\n r19[r20] = r21;\n r20 = 6;\n r21 = r5.getIssuedOn();\n r19[r20] = r21;\n r20 = 7;\n r21 = r5.getExpiresOn();\n r19[r20] = r21;\n r0 = r19;\n r8 = java.lang.String.format(r6, r0);\n r19 = \"CertificateDetails\";\n r0 = r19;\n r1 = r18;\n r2 = r17;\n r4 = com.adobe.air.utils.Utils.GetWidgetInViewByNameFromPackage(r0, r1, r2);\n r4 = (android.widget.TextView) r4;\n r19 = android.widget.TextView.BufferType.SPANNABLE;\n r0 = r19;\n r4.setText(r8, r0);\n r19 = \"NeutralButton\";\n r0 = r19;\n r1 = r18;\n r2 = r17;\n r12 = com.adobe.air.utils.Utils.GetWidgetInViewByNameFromPackage(r0, r1, r2);\n r12 = (android.widget.Button) r12;\n r19 = new com.adobe.air.SSLSecurityDialog$1;\n r0 = r19;\n r1 = r22;\n r0.<init>(r7);\n r0 = r19;\n r12.setOnClickListener(r0);\n r19 = \"PositiveButton\";\n r0 = r19;\n r1 = r18;\n r2 = r17;\n r13 = com.adobe.air.utils.Utils.GetWidgetInViewByNameFromPackage(r0, r1, r2);\n r13 = (android.widget.Button) r13;\n if (r26 == 0) goto L_0x0182;\n L_0x0103:\n r19 = new com.adobe.air.SSLSecurityDialog$2;\n r0 = r19;\n r1 = r22;\n r0.<init>(r7);\n r0 = r19;\n r13.setOnClickListener(r0);\n r19 = 0;\n r0 = r19;\n r13.setVisibility(r0);\n L_0x0118:\n r19 = \"NegativeButton\";\n r0 = r19;\n r1 = r18;\n r2 = r17;\n r11 = com.adobe.air.utils.Utils.GetWidgetInViewByNameFromPackage(r0, r1, r2);\n r11 = (android.widget.Button) r11;\n r19 = new com.adobe.air.SSLSecurityDialog$3;\n r0 = r19;\n r1 = r22;\n r0.<init>(r7);\n r0 = r19;\n r11.setOnClickListener(r0);\n r16.setView(r17);\n r19 = new com.adobe.air.SSLSecurityDialog$4;\n r0 = r19;\n r1 = r22;\n r0.<init>();\n r0 = r16;\n r1 = r19;\n r0.setOnKeyListener(r1);\n r19 = new com.adobe.air.SSLSecurityDialog$5;\n r0 = r19;\n r1 = r22;\n r0.<init>(r7);\n r0 = r19;\n r10.runOnUiThread(r0);\n r0 = r22;\n r0 = r0.m_lock;\n r19 = r0;\n r19.lock();\n r0 = r22;\n r0 = r0.m_useraction;\t Catch:{ InterruptedException -> 0x018a, all -> 0x0195 }\n r19 = r0;\n if (r19 != 0) goto L_0x016f;\n L_0x0166:\n r0 = r22;\n r0 = r0.m_condition;\t Catch:{ InterruptedException -> 0x018a, all -> 0x0195 }\n r19 = r0;\n r19.await();\t Catch:{ InterruptedException -> 0x018a, all -> 0x0195 }\n L_0x016f:\n r0 = r22;\n r0 = r0.m_lock;\n r19 = r0;\n r19.unlock();\n L_0x0178:\n return;\n L_0x0179:\n r5 = new com.adobe.air.Certificate;\n r0 = r25;\n r5.<init>(r0);\n goto L_0x006c;\n L_0x0182:\n r19 = 8;\n r0 = r19;\n r13.setVisibility(r0);\n goto L_0x0118;\n L_0x018a:\n r19 = move-exception;\n r0 = r22;\n r0 = r0.m_lock;\n r19 = r0;\n r19.unlock();\n goto L_0x0178;\n L_0x0195:\n r19 = move-exception;\n r0 = r22;\n r0 = r0.m_lock;\n r20 = r0;\n r20.unlock();\n throw r19;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.adobe.air.SSLSecurityDialog.ShowSSLDialog(java.lang.String, byte[], android.net.http.SslCertificate, boolean):void\");\n }", "title": "" }, { "docid": "5c5e3379ceccea88894af323f99780ed", "score": "0.5329907", "text": "private static void handleSSLCertificate() throws Exception {\n\t\tTrustManager[] trustAllCerts = new TrustManager[] { new X509TrustManager() {\n\t\t\tpublic X509Certificate[] getAcceptedIssuers() {\n\t\t\t\treturn null;\n\t\t\t}\n\n\t\t\tpublic void checkClientTrusted(X509Certificate[] certs,\n\t\t\t\t\tString authType) {\n\t\t\t\t// Trust always\n\t\t\t}\n\n\t\t\tpublic void checkServerTrusted(X509Certificate[] certs,\n\t\t\t\t\tString authType) {\n\t\t\t\t// Trust always\n\t\t\t}\n\t\t} };\n\n\t\t// Install the all-trusting trust manager\n\t\tSSLContext sc = SSLContext.getInstance(\"SSL\");\n\t\t// Create empty HostnameVerifier\n\t\tHostnameVerifier hv = new HostnameVerifier() {\n\t\t\tpublic boolean verify(String arg0, SSLSession arg1) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t};\n\n\t\tsc.init(null, trustAllCerts, new java.security.SecureRandom());\n\t\tHttpsURLConnection.setDefaultSSLSocketFactory(sc.getSocketFactory());\n\t\tHttpsURLConnection.setDefaultHostnameVerifier(hv);\n\t}", "title": "" }, { "docid": "ea768a21209a127a8eee25dc4d816af5", "score": "0.5313025", "text": "void onSSLCertificateError(UnrecognizedCertificateException exception);", "title": "" }, { "docid": "47a22e5b5314c125c77487ef2b2a5e0d", "score": "0.5286938", "text": "public HttpURLConnection createConnection(URL url) throws IOException {\n HttpsURLConnection httpsURLConnection = (HttpsURLConnection) super.createConnection(url);\n try {\n httpsURLConnection.setSSLSocketFactory(new TPVVSSLFactory());\n httpsURLConnection.setHostnameVerifier(HttpsURLConnection.getDefaultHostnameVerifier());\n } catch (Exception e) {\n e.printStackTrace();\n }\n return httpsURLConnection;\n }", "title": "" }, { "docid": "ecf985dfcca6b37076f9222c88373b7f", "score": "0.5276468", "text": "@Override\n public void validCertificateAvailable() {\n dismissDialog();\n if(android.os.Build.VERSION.SDK_INT < 14) {\n String targetURL = KeyTalkCommunicationManager.getUrl();\n if(targetURL == null || targetURL.isEmpty() || TextUtils.isEmpty(targetURL)) {\n showDialog(AppConstants.DIALOG_EMPTY_TARGET_URL);\n } else {\n Intent intent = new Intent(this, WebViewActivity.class);\n startActivity(intent);\n ServiceListingActivity.this.finish();\n }\n } else if(android.os.Build.VERSION.SDK_INT >= 14 && android.os.Build.VERSION.SDK_INT <= 18) {\n boolean isNative = PreferenceManager.getBoolean(ServiceListingActivity.this, Keys.PreferenceKeys.DEVICE_TYPE);\n if(isNative) {\n boolean isAddedToNativeKeyStore = KeyTalkCommunicationManager.getNativeKeyStoreInstallationStatus(ServiceListingActivity.this, KeyTalkCommunicationManager.getUrl());\n if(isAddedToNativeKeyStore) {\n String targetURL = KeyTalkCommunicationManager.getUrl();\n if(targetURL == null || targetURL.isEmpty() || TextUtils.isEmpty(targetURL)) {\n showDialog(AppConstants.DIALOG_EMPTY_TARGET_URL);\n } else {\n Intent browserIntent = new Intent(Intent.ACTION_VIEW, Uri.parse( KeyTalkCommunicationManager.getUrl()));\n startActivity(browserIntent);\n }\n } else {\n showDialog(AppConstants.DIALOG_REINSTALL_CERTIFICATE);\n }\n } else {\n String targetURL = KeyTalkCommunicationManager.getUrl();\n if(targetURL == null || targetURL.isEmpty() || TextUtils.isEmpty(targetURL)) {\n showDialog(AppConstants.DIALOG_EMPTY_TARGET_URL);\n } else {\n Intent intent = new Intent(this, WebViewActivity.class);\n startActivity(intent);\n ServiceListingActivity.this.finish();\n }\n }\n } else {\n boolean isAddedToNativeKeyStore = KeyTalkCommunicationManager.getNativeKeyStoreInstallationStatus(ServiceListingActivity.this, KeyTalkCommunicationManager.getUrl());\n if(isAddedToNativeKeyStore) {\n String targetURL = KeyTalkCommunicationManager.getUrl();\n if(targetURL == null || targetURL.isEmpty() || TextUtils.isEmpty(targetURL)) {\n showDialog(AppConstants.DIALOG_EMPTY_TARGET_URL);\n } else {\n Intent browserIntent = new Intent(Intent.ACTION_VIEW, Uri.parse(KeyTalkCommunicationManager.getUrl()));\n startActivity(browserIntent);\n }\n } else {\n showDialog(AppConstants.DIALOG_REINSTALL_CERTIFICATE);\n }\n }\n }", "title": "" }, { "docid": "d5a117682b8572deb1f50d02f9b5b2c3", "score": "0.52122176", "text": "private Connection() {\n\n//==================================================//\n\n\n //==============================//\n\n // client = new AsyncHttpClient(true, 0, 443);\n client = new AsyncHttpClient();\n client.setSSLSocketFactory(MySSLSocketFactory.getFixedSocketFactory());\n contentType = \"application/json\";\n client.setUserAgent(System.getProperty(\"http.agent\"));\n //Mozilla/5.0 (Windows NT 10.0; WOW64; rv:47.0) Gecko/20100101 Firefox/47.0\"\n // client.setUserAgent(\"Mozilla/5.0 (Windows NT 10.0; WOW64; rv:47.0) Gecko/20100101 Firefox/47.0\");\n client.setTimeout(20 * 1000);\n client.setResponseTimeout(20 * 1000);\n client.setConnectTimeout(20 * 1000);\n // client.setEnableRedirects(true);\n\n // Log.e(\"agentss\",System.getProperty(\"https.agent\"));\n gson = new GsonBuilder().serializeNulls().create();\n //client.getHttpClient().getConnectionManager().shutdown();\n/*\n try {\n KeyStore trustStore = KeyStore.getInstance(KeyStore.getDefaultType());\n trustStore.load(null, null);\n MySSLSocketFactory sf = new MySSLSocketFactory(trustStore);\n sf.setHostnameVerifier(MySSLSocketFactory.ALLOW_ALL_HOSTNAME_VERIFIER);\n client.setSSLSocketFactory(sf);\n }\n catch (Exception e) {\n }\n */\n\n }", "title": "" }, { "docid": "73ac737b325c37388a43c110c17a66ef", "score": "0.5197181", "text": "@Override\n protected Boolean doInBackground(Void... params) {\n\n try {\n // Simulate network access.\n Thread.sleep(2000);\n } catch (InterruptedException e) {\n return false;\n }\n\n /*for (String credential : DUMMY_CREDENTIALS) {\n String[] pieces = credential.split(\":\");\n if (pieces[0].equals(mEmail)) {\n // Account exists, return true if the password matches.\n return pieces[1].equals(mPassword);\n }\n }*/\n\n HostnameVerifier hostnameVerifier = org.apache.http.conn.ssl.SSLSocketFactory.ALLOW_ALL_HOSTNAME_VERIFIER;\n\n DefaultHttpClient client = new DefaultHttpClient();\n\n SchemeRegistry registry = new SchemeRegistry();\n SSLSocketFactory socketFactory = SSLSocketFactory.getSocketFactory();\n socketFactory.setHostnameVerifier((X509HostnameVerifier) hostnameVerifier);\n registry.register(new Scheme(\"https\", socketFactory, 443));\n SingleClientConnManager mgr = new SingleClientConnManager(client.getParams(), registry);\n DefaultHttpClient httpClient = new DefaultHttpClient(mgr, client.getParams());\n\n // Set verifier\n HttpsURLConnection.setDefaultHostnameVerifier(hostnameVerifier);\n HttpPost httpPost = new HttpPost(\"https://www.chlife-stat.org/authenticate.php\");\n\n\n List<NameValuePair> nameValuePairs = new ArrayList<NameValuePair>();\n\n try {\n nameValuePairs.add(new BasicNameValuePair(\"district\", mDistrict));\n nameValuePairs.add(new BasicNameValuePair(\"church_id\", mChurch_id));\n nameValuePairs.add(new BasicNameValuePair(\"account\", mAccount));\n nameValuePairs.add(new BasicNameValuePair(\"pwd\",mPassword));\n nameValuePairs.add(new BasicNameValuePair(\"captcha_code\", mCaptcha_code));\n\n httpPost.setEntity(new UrlEncodedFormEntity(nameValuePairs));\n\n Log.e(\"http response:\", httpPost.toString());\n // Execute HTTP Post Request\n HttpResponse response = httpClient.execute(httpPost);\n Log.e(\"http response headers:\", \"\");\n\n java.io.InputStream is = response.getEntity().getContent();\n java.io.BufferedReader rd = new java.io.BufferedReader(new java.io.InputStreamReader(is));\n String line;\n while ((line = rd.readLine()) != null) {\n System.out.println(line);\n }\n } catch (ClientProtocolException e) {\n Log.e(\"ClientProtocolException\",e.getMessage());\n } catch (IOException e) {\n Log.e(\"IOException\",e.getMessage());\n } catch (Error e) {\n Log.e(\"AllErrors\",e.getMessage());\n }\n\n // TODO: register the new account here.\n return true;\n }", "title": "" }, { "docid": "e4f9b25787fd7dee3f00ec49ad32c610", "score": "0.519484", "text": "public static void allowAllCertificates() {\n try {\n TrustManager[] trustAllCerts = new TrustManager[] { new X509TrustManager() {\n public X509Certificate[] getAcceptedIssuers() {\n X509Certificate[] myTrustedAnchors = new X509Certificate[0];\n return myTrustedAnchors;\n }\n\n @Override\n public void checkClientTrusted(X509Certificate[] certs,\n String authType) {}\n\n @Override\n public void checkServerTrusted(X509Certificate[] certs,\n String authType) {}\n } };\n\n SSLContext sc = SSLContext.getInstance(\"SSL\");\n sc.init(null, trustAllCerts, new SecureRandom());\n HttpsURLConnection\n .setDefaultSSLSocketFactory(sc.getSocketFactory());\n HttpsURLConnection\n .setDefaultHostnameVerifier(new HostnameVerifier() {\n\n @Override\n public boolean verify(String arg0, SSLSession arg1) {\n return true;\n }\n });\n } catch (Exception e) {}\n }", "title": "" }, { "docid": "e8910b72d44ff623accce29b9d872bc0", "score": "0.5179686", "text": "private static void setAllowAllSSL(HttpsURLConnection httpsConn,\n KeyManager km) throws KeyManagementException, NoSuchAlgorithmException {\n TrustManager[] trustAllCerts = new TrustManager[] {\n new X509TrustManager() {\n @Override\n public java.security.cert.X509Certificate[] getAcceptedIssuers() {\n return new X509Certificate[]{};\n }\n\n @Override\n public void checkClientTrusted(\n java.security.cert.X509Certificate[] certs, String authType)\n throws CertificateException {\n }\n\n @Override\n public void checkServerTrusted(\n java.security.cert.X509Certificate[] certs, String authType)\n throws CertificateException {\n }\n }\n };\n KeyManager[] kms = (km == null) ? null : new KeyManager[]{km};\n SSLContext sc = SSLContext.getInstance(\"SSL\");\n sc.init(kms, trustAllCerts, new SecureRandom());\n httpsConn.setSSLSocketFactory(sc.getSocketFactory());\n // Don't check the hostname\n httpsConn.setHostnameVerifier(new NoopHostnameVerifier());\n }", "title": "" }, { "docid": "e18af2593ad05810076d4b87f0818937", "score": "0.5119459", "text": "public void trustAllHosts() {\n final String TAG = \"trustAllHosts\";\n // Create a trust manager that does not validate certificate chains\n TrustManager[] trustAllCerts = new TrustManager[] { new X509TrustManager() {\n public java.security.cert.X509Certificate[] getAcceptedIssuers() {\n return new java.security.cert.X509Certificate[] {};\n }\n public void checkClientTrusted(X509Certificate[] chain, String authType) throws CertificateException {\n// Log.i(TAG, \"checkClientTrusted\");\n }\n public void checkServerTrusted(X509Certificate[] chain, String authType) throws CertificateException {\n// Log.i(TAG, \"checkServerTrusted\");\n }\n } };\n // Install the all-trusting trust manager\n try {\n SSLContext sc = SSLContext.getInstance(\"TLS\");\n sc.init(null, trustAllCerts, new java.security.SecureRandom());\n HttpsURLConnection.setDefaultSSLSocketFactory(sc.getSocketFactory());\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "c2e324d07a18cab945501b2e0498e2cd", "score": "0.5119055", "text": "java.util.concurrent.Future<RequestCertificateResult> requestCertificateAsync(\n RequestCertificateRequest requestCertificateRequest);", "title": "" }, { "docid": "23f6deaba216f7b0e1f053e74ace1321", "score": "0.5114553", "text": "@Override\n public void onReceivedSslError(WebView view, SslErrorHandler handler, SslError error) {\n\n handler.proceed();\n\n Log.d(TAG, \"SSL Error \" + handler.toString());\n Log.d(TAG, \"SSL Error \" + error.toString());\n }", "title": "" }, { "docid": "6ec039e97d74e0ed84469c9524f043f8", "score": "0.50642705", "text": "@Override\npublic void checkServerTrusted(X509Certificate[] arg0, String arg1)\nthrows CertificateException {\n}", "title": "" }, { "docid": "3e5569d875c3229a3cb20e6f05986969", "score": "0.49488455", "text": "@Override\n public void onReceivedSslError(WebView view, SslErrorHandler handler, SslError error){\n handler.proceed();\n }", "title": "" }, { "docid": "c1e01a4de7be219a8bbf5ca97fb09e51", "score": "0.49209458", "text": "@Override\n protected URLConnection openConnection(URL url, Proxy proxy) throws IOException {\n\n final HttpsURLConnectionImpl httpsURLConnection = (HttpsURLConnectionImpl) super.openConnection(url, proxy);\n if (\"artisan.okta.com\".equals(url.getHost()) && \"/home/amazon_aws/0oad7khqw5gSO701p0x7/272\".equals(url.getPath())) {\n\n return new URLConnection(url) {\n @Override\n public void connect() throws IOException {\n httpsURLConnection.connect();\n }\n\n public InputStream getInputStream() throws IOException {\n byte[] content = IOUtils.toByteArray(httpsURLConnection.getInputStream());\n String contentAsString = new String(content, \"UTF-8\");\n\n //System.out.println(\"########################## got stream content ##############################\");\n //System.out.println(contentAsString);\n ByteArrayOutputStream baos = new ByteArrayOutputStream();\n //contentAsString = contentAsString.replaceAll(\",\\\"ENG_ENABLE_SCRIPT_INTEGRITY\\\"\", \"\"); // nested SRIs?\n baos.write(contentAsString.replaceAll(\"integrity ?=\", \"integrity.disabled=\").getBytes(\"UTF-8\"));\n return new ByteArrayInputStream(baos.toByteArray());\n }\n\n public OutputStream getOutputStream() throws IOException {\n return httpsURLConnection.getOutputStream();\n }\n\n };\n\n } else {\n return httpsURLConnection;\n }\n }", "title": "" }, { "docid": "6652ff75a6c9a52dcdd3c708b9b104e7", "score": "0.49205378", "text": "ContentSecurityPolicy getContentSecurityPolicy();", "title": "" }, { "docid": "e8a3c7a2be360bcdbe905ecd1dc05115", "score": "0.49156472", "text": "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 }", "title": "" }, { "docid": "d51328495798d950a2c1cc0a5e9dfc0c", "score": "0.4914257", "text": "void onChallengeResponseReceived(@NonNull final RawAuthorizationResult response);", "title": "" }, { "docid": "0879847e06f287499fdee2bc28819b4b", "score": "0.4906577", "text": "void onOpenCMPConsentToolActivity(ServerResponse response, CMPSettings settings);", "title": "" }, { "docid": "d0327986d076574e7a3ee714a53eb610", "score": "0.4886148", "text": "@Override\npublic void checkClientTrusted(X509Certificate[] arg0, String arg1)\nthrows CertificateException {\n}", "title": "" }, { "docid": "b701ce4734fc8d473dde913697f0bff7", "score": "0.48832512", "text": "private HttpResponseSecure httpRequestSecure(URL url, List<Header> headers, String method) throws IOException {\n\n BufferedReader streamReader;\n\n HttpsURLConnection connection = (HttpsURLConnection) setupConnection(url,headers,method);\n connection.setDoOutput(false);\n connection.connect();\n\n final int httpResponseCode = connection.getResponseCode();\n final List<Header> responseHeaders = Header.getHeaders(connection.getHeaderFields());\n\n try {\n streamReader = new BufferedReader(new InputStreamReader(connection.getInputStream()));\n }\n catch (IOException e) {\n streamReader = new BufferedReader(new InputStreamReader(connection.getErrorStream()));\n }\n\n StringBuilder sb = new StringBuilder();\n String currentLine;\n\n while((currentLine = streamReader.readLine()) != null) {\n sb.append(currentLine).append(\"\\n\");\n }\n\n HttpResponseSecure respSec = new HttpResponseSecure(responseHeaders,httpResponseCode,sb.toString().trim(),connection);\n connection.disconnect();\n try {\n Objects.requireNonNull(streamReader).close();\n }\n catch (IOException ignored){ }\n\n return respSec;\n }", "title": "" }, { "docid": "0f43b4a7accc57a8d460eec5ff1524c2", "score": "0.48361886", "text": "@Override\n public void onSSLCertificateError(UnrecognizedCertificateException exception) {\n if (null != mRequestNetworkErrorListener) {\n mRequestNetworkErrorListener.onSSLCertificateError(exception);\n }\n }", "title": "" }, { "docid": "f39ea30a9afe765b3e215adea99909e3", "score": "0.48180732", "text": "private HttpsURLConnection setupConnection(String connectUrl, int dataLength) throws IOException {\n URL url = new URL(connectUrl);\n\n HttpsURLConnection.setDefaultHostnameVerifier(new CustomizedHostnameVerifier());\n HttpsURLConnection conn = (HttpsURLConnection) url.openConnection();\n conn.setDoOutput(true);\n conn.setUseCaches(false);\n conn.setRequestMethod(\"POST\");\n \n String userPassword = \"api\" + \":\" + apiKey;\n \n if (LOGGER.isDebugEnabled()) {\n LOGGER.debug(\"userPassword: \" + userPassword);\n }\n \n String encoding = new sun.misc.BASE64Encoder().encode (userPassword.getBytes());\n conn.setRequestProperty (\"Authorization\", \"Basic \" + encoding);\n //conn.setRequestProperty(\"Authorization\", \"api=\" + apiKey);\n conn.setConnectTimeout(connectionTimeout);\n conn.setReadTimeout(readTimeout);\n return conn;\n }", "title": "" }, { "docid": "f2f8efbd912135bbb28f15944e2deaa2", "score": "0.4812456", "text": "public boolean setHeaders(HttpURLConnection paramHttpURLConnection, HeaderParser paramHeaderParser, String paramString) {\n/* */ String str2;\n/* 296 */ this.params.setNonce(paramHeaderParser.findValue(\"nonce\"));\n/* 297 */ this.params.setOpaque(paramHeaderParser.findValue(\"opaque\"));\n/* 298 */ this.params.setQop(paramHeaderParser.findValue(\"qop\"));\n/* */ \n/* 300 */ String str1 = \"\";\n/* */ \n/* 302 */ if (this.type == 'p' && paramHttpURLConnection\n/* 303 */ .tunnelState() == HttpURLConnection.TunnelState.SETUP) {\n/* 304 */ str1 = HttpURLConnection.connectRequestURI(paramHttpURLConnection.getURL());\n/* 305 */ str2 = HttpURLConnection.HTTP_CONNECT;\n/* */ } else {\n/* */ try {\n/* 308 */ str1 = paramHttpURLConnection.getRequestURI();\n/* 309 */ } catch (IOException iOException) {}\n/* 310 */ str2 = paramHttpURLConnection.getMethod();\n/* */ } \n/* */ \n/* 313 */ if (this.params.nonce == null || this.authMethod == null || this.pw == null || this.realm == null) {\n/* 314 */ return false;\n/* */ }\n/* 316 */ if (this.authMethod.length() >= 1)\n/* */ {\n/* */ \n/* */ \n/* 320 */ this\n/* 321 */ .authMethod = Character.toUpperCase(this.authMethod.charAt(0)) + this.authMethod.substring(1).toLowerCase();\n/* */ }\n/* 323 */ String str3 = paramHeaderParser.findValue(\"algorithm\");\n/* 324 */ if (str3 == null || \"\".equals(str3)) {\n/* 325 */ str3 = \"MD5\";\n/* */ }\n/* 327 */ this.params.setAlgorithm(str3);\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 333 */ if (this.params.authQop()) {\n/* 334 */ this.params.setNewCnonce();\n/* */ }\n/* */ \n/* 337 */ String str4 = getHeaderValueImpl(str1, str2);\n/* 338 */ if (str4 != null) {\n/* 339 */ paramHttpURLConnection.setAuthenticationProperty(getHeaderName(), str4);\n/* 340 */ return true;\n/* */ } \n/* 342 */ return false;\n/* */ }", "title": "" }, { "docid": "f155e8d25be6a446b63bc22a18d7f312", "score": "0.47991484", "text": "private HttpResponseSecure httpRequestSecure(URL url, List<Header> headers, String method, byte[] data) throws IOException {\n\n BufferedReader streamReader;\n\n HttpsURLConnection connection = (HttpsURLConnection) setupConnection(url,headers,method);\n connection.setDoOutput(true);\n connection.connect();\n\n OutputStream outputStream = connection.getOutputStream();\n outputStream.write(data);\n outputStream.flush();\n outputStream.close();\n\n final int httpResponseCode = connection.getResponseCode();\n final List<Header> responseHeaders = Header.getHeaders(connection.getHeaderFields());\n\n try {\n streamReader = new BufferedReader(new InputStreamReader(connection.getInputStream()));\n }\n catch (IOException e) {\n streamReader = new BufferedReader(new InputStreamReader(connection.getErrorStream()));\n }\n\n StringBuilder sb = new StringBuilder();\n String currentLine;\n\n while((currentLine = streamReader.readLine()) != null) {\n sb.append(currentLine).append(\"\\n\");\n }\n\n HttpResponseSecure respSec = new HttpResponseSecure(responseHeaders,httpResponseCode,sb.toString().trim(),connection);\n connection.disconnect();\n try {\n Objects.requireNonNull(streamReader).close();\n }\n catch (IOException ignored){ }\n\n return respSec;\n }", "title": "" }, { "docid": "ef8075c23bc864ac1054680e42e7fd86", "score": "0.47901383", "text": "public ResponseFromHTTP makeRequest() throws CustomRuntimeException\n\t{\n\t\tResponseFromHTTP result=null;\n\t\tCloseableHttpClient httpclient=null;\n\t\tCloseableHttpResponse response=null;\n\t\tboolean needAuth=false;\n\t\tboolean viaProxy=httpTransportInfo.isUseProxy() && StringUtils.isNotBlank(httpTransportInfo.getProxyHost());\n\n\t\tHttpHost target = new HttpHost(httpTransportInfo.getHost(), httpTransportInfo.getPort(),httpTransportInfo.getProtocol());\n\t\t//basic auth for request\n\t\tCredentialsProvider credsProvider = new BasicCredentialsProvider();\n\t\tif(StringUtils.isNotBlank(httpTransportInfo.getLogin()) && \n\t\t\t\tStringUtils.isNotBlank(httpTransportInfo.getPassword()))\n\t\t{\n\t\t\tcredsProvider.setCredentials(\n\t\t\t\t\tnew AuthScope(target.getHostName(), target.getPort()),\n\t\t\t\t\tnew UsernamePasswordCredentials(httpTransportInfo.getLogin(), httpTransportInfo.getPassword()));\n\t\t\tneedAuth=true;\n\t\t}\n\n\t\t//proxy auth?\n\t\tif(viaProxy && StringUtils.isNotBlank(httpTransportInfo.getProxyLogin()) &&\n\t\t\t\tStringUtils.isNotBlank(httpTransportInfo.getProxyPassword()))\n\t\t{\n\t\t\t//proxy auth setting\n\t\t\tcredsProvider.setCredentials(\n\t\t\t\t\tnew AuthScope(httpTransportInfo.getProxyHost(), httpTransportInfo.getProxyPort()),\n\t\t\t\t\tnew UsernamePasswordCredentials(httpTransportInfo.getProxyLogin(), httpTransportInfo.getProxyPassword()));\n\t\t}\n\n\t\ttry\n\t\t{\n\n\t\t\tHttpClientBuilder httpclientBuilder = HttpClients.custom()\n\t\t\t\t\t.setDefaultCredentialsProvider(credsProvider);\n\t\t\t//https\n\t\t\tif(\"https\".equalsIgnoreCase(httpTransportInfo.getProtocol()))\n\t\t\t{\n\t\t\t\t//A.K. - Set stub for check certificate - deprecated from 4.4.1\n\t\t\t\tSSLContextBuilder sslContextBuilder=SSLContexts.custom();\n\t\t\t\tTrustStrategyLZ trustStrategyLZ=new TrustStrategyLZ();\n\t\t\t\tsslContextBuilder.loadTrustMaterial(null,trustStrategyLZ);\n\t\t\t\tSSLContext sslContext = sslContextBuilder.build();\n\t\t\t\tSSLConnectionSocketFactory sslsf = new SSLConnectionSocketFactory(sslContext,SSLConnectionSocketFactory.ALLOW_ALL_HOSTNAME_VERIFIER);\n\t\t\t\thttpclientBuilder.setSSLSocketFactory(sslsf);\n\t\t\t}\n\n\t\t\thttpclient=httpclientBuilder.build();\n\n\t\t\t//timeouts\n\t\t\tBuilder builder = RequestConfig.custom()\n\t\t\t\t\t.setSocketTimeout(httpTransportInfo.getSocketTimeoutSec()*1000)\n\t\t\t\t\t.setConnectTimeout(httpTransportInfo.getConnectTimeoutSec()*1000);\n\n\t\t\t//via proxy?\n\t\t\tif(viaProxy)\n\t\t\t{\n\t\t\t\t//proxy setting\n\t\t\t\tHttpHost proxy = new HttpHost(httpTransportInfo.getProxyHost(),httpTransportInfo.getProxyPort(),httpTransportInfo.getProxyProtocol());\n\t\t\t\tbuilder.setProxy(proxy);\n\t\t\t}\n\n\t\t\tRequestConfig requestConfig=builder.build();\n\n\t\t\t// Create AuthCache instance\n\t\t\tAuthCache authCache = new BasicAuthCache();\n\t\t\t// Generate BASIC scheme object and add it to the local\n\t\t\t// auth cache\n\t\t\tBasicScheme basicAuth = new BasicScheme();\n\t\t\tauthCache.put(target, basicAuth);\n\n\t\t\t// Add AuthCache to the execution context\n\t\t\tHttpClientContext localContext = HttpClientContext.create();\n\t\t\tlocalContext.setAuthCache(authCache);\n\n\t\t\tPathParser parsedPath=new PathParser(getUri());\n\t\t\tif(restMethodDef.isUseOriginalURI())\n\t\t\t{\n\t\t\t\t//in this case params from URI will not add to all params\n\t\t\t\tparsedPath.getParams().clear();\n\t\t\t}\n\t\t\tparsedPath.getParams().addAll(getRequestDefinition().getParams());\n\t\t\t//prepare URI\n\t\t\tURIBuilder uriBuilder = new URIBuilder().setPath(parsedPath.getUri());\n\t\t\tif(!getRequestDefinition().isHttpMethodPost())\n\t\t\t{\n\t\t\t\t//form's parameters - GET/DELETE/OPTIONS/PUT\n\t\t\t\tfor(NameValuePair nameValuePair : parsedPath.getParams())\n\t\t\t\t{\n\t\t\t\t\turiBuilder.setParameter(nameValuePair.getName(),nameValuePair.getValue());\n\t\t\t\t}\t\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tURI resultUri =(restMethodDef.isUseOriginalURI())?new URI(getUri()):uriBuilder.build();\n\n\t\t\t//\t\t\tHttpRequestBase httpPostOrGet=(getRequestDefinition().isHttpMethodPost())?\n\t\t\t//\t\t\t\t\tnew HttpPost(resultUri):\n\t\t\t//\t\t\t\t\tnew HttpGet(resultUri);\n\n\t\t\tHttpRequestBase httpPostOrGetEtc=null;\n\t\t\t//\n\t\t\tswitch(getRequestDefinition().getHttpMethod())\n\t\t\t{\n\t\t\t\tcase POST: httpPostOrGetEtc=new HttpPost(resultUri);break;\n\t\t\t\tcase DELETE: httpPostOrGetEtc=new HttpDelete(resultUri);break;\n\t\t\t\tcase OPTIONS: httpPostOrGetEtc=new HttpOptions(resultUri);break;\n\t\t\t\tcase PUT: httpPostOrGetEtc=new HttpPut(resultUri);break;\n\n\t\t\t\tdefault: httpPostOrGetEtc=new HttpGet(resultUri);break;\n\t\t\t}\n\n\t\t\t//Specifie protocol version\n\t\t\tif(httpTransportInfo.isVersionHttp10())\n\t\t\t\thttpPostOrGetEtc.setProtocolVersion(HttpVersion.HTTP_1_0);\n\n\t\t\t//user agent\n\t\t\thttpPostOrGetEtc.setHeader(HttpHeaders.USER_AGENT,httpTransportInfo.getUserAgent());\n\t\t\t//заголовки из запроса\n\t\t\tif(getRequestDefinition().getHeaders().size()>0)\n\t\t\t{\n\t\t\t\tfor(NameValuePair nameValuePair : getRequestDefinition().getHeaders())\n\t\t\t\t{\n\t\t\t\t\tif(org.apache.commons.lang.StringUtils.isNotBlank(nameValuePair.getName()) &&\n\t\t\t\t\t\t\torg.apache.commons.lang.StringUtils.isNotBlank(nameValuePair.getValue()))\n\t\t\t\t\t{\n\t\t\t\t\t\thttpPostOrGetEtc.setHeader(nameValuePair.getName(),nameValuePair.getValue());\n\t\t\t\t\t}\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t//Additional HTTP headers from httpTransportInfo\n\t\t\tif(httpTransportInfo.getAddHeaders()!=null)\n\t\t\t{\n\t\t\t\tfor(Map.Entry<String, String> entry:httpTransportInfo.getAddHeaders().entrySet())\n\t\t\t\t{\n\t\t\t\t\tif(org.apache.commons.lang.StringUtils.isNotBlank(entry.getKey()) &&\n\t\t\t\t\t\t\torg.apache.commons.lang.StringUtils.isNotBlank(entry.getValue()))\n\t\t\t\t\t{\n\t\t\t\t\t\thttpPostOrGetEtc.setHeader(entry.getKey(),entry.getValue());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\thttpPostOrGetEtc.setConfig(requestConfig);\n\t\t\t//Form's parameters, request POST\n\t\t\tif(getRequestDefinition().isHttpMethodPost())\n\t\t\t{\n\t\t\t\tif(getPostBody()!=null)\n\t\t\t\t{\n\t\t\t\t\tStringEntity stringEntity=new StringEntity(getPostBody(),httpTransportInfo.getCharset());\n\t\t\t\t\t((HttpPost) (httpPostOrGetEtc)).setEntity(stringEntity);\n\t\t\t\t}\n\t\t\t\telse if(parsedPath.getParams().size()>0)\n\t\t\t\t{\n\t\t\t\t\tUrlEncodedFormEntity entityForm = new UrlEncodedFormEntity(parsedPath.getParams(), httpTransportInfo.getCharset());\n\t\t\t\t\t((HttpPost) (httpPostOrGetEtc)).setEntity(entityForm);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t//Body for PUT\n\t\t\tif(getRequestDefinition().getHttpMethod()==HttpMethod.PUT)\n\t\t\t{\n\t\t\t\tif(getPostBody()!=null)\n\t\t\t\t{\n\t\t\t\t\tStringEntity stringEntity=new StringEntity(getPostBody(),httpTransportInfo.getCharset());\n\t\t\t\t\t((HttpPut) (httpPostOrGetEtc)).setEntity(stringEntity);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tresponse = httpclient.execute(target, httpPostOrGetEtc, (needAuth)?localContext:null);\n\t\t\t//response.\n\t\t\tHttpEntity entity = response.getEntity();\n\t\t\tif(entity!=null)\n\t\t\t{\n\t\t\t\t//charset\n\t\t\t\tContentType contentType = ContentType.get(entity);\n\t\t\t\tString currentCharSet=httpTransportInfo.getCharset();\n\t\t\t\tif(contentType!=null)\n\t\t\t\t{\n\t\t\t\t\t//String mimeType = contentType.getMimeType();\n\t\t\t\t\tif(contentType.getCharset()!=null)\n\t\t\t\t\t\tcurrentCharSet=contentType.getCharset().name();\n\t\t\t\t}\n\t\t\t\tInputStream inputStream=entity.getContent();\n\t\t\t\tif(getRequestDefinition().isBinaryResponseBody())\n\t\t\t\t{\n\t\t\t\t\t//binary content\n\t\t\t\t\tbyte[] bodyBin = IOUtils.toByteArray(inputStream);\n\t\t\t\t\tresult=new ResponseFromHTTP(response.getAllHeaders(),bodyBin,response.getStatusLine().getStatusCode());\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t//copy content to string\n\t\t\t\t\tStringWriter writer = new StringWriter();\n\t\t\t\t\tIOUtils.copy(inputStream, writer, currentCharSet);\n\t\t\t\t\tresult=new ResponseFromHTTP(response.getAllHeaders(),writer.toString(),response.getStatusLine().getStatusCode());\n\t\t\t\t}\n\t\t\t\tinputStream.close();\n\t\t\t}\n\t\t}\n\t\tcatch (Exception e)\n\t\t{\n\t\t\tthrow new CustomRuntimeException(\"fetchData over http uri: \"+getUri(),e);\n\t\t}\n\t\tfinally\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\tif(response!=null)\n\t\t\t\t\tresponse.close();\n\t\t\t\tif(httpclient!=null)\n\t\t\t\t\thttpclient.close();\n\t\t\t}\n\t\t\tcatch (IOException e)\n\t\t\t{\n\t\t\t\te.printStackTrace();\n\t\t\t} \t\n\t\t}\t\t\n\t\treturn result;\n\n\t}", "title": "" }, { "docid": "474b57bafa47aeb58511e7a0c4a0d423", "score": "0.47700396", "text": "private void registerCustomProtocolHandler() {\n try {\n URL.setURLStreamHandlerFactory(new URLStreamHandlerFactory() {\n @Override\n public URLStreamHandler createURLStreamHandler(String protocol) {\n if (\"https\".equals(protocol)) {\n return new sun.net.www.protocol.https.Handler() {\n @Override\n protected URLConnection openConnection(URL url, Proxy proxy) throws IOException {\n // Leaving sysout comments here for debugging and clarity if the tool does break again because of an Okta Update\n //System.out.format(\"openConnection %s (%s, %s)\\n\", url, url.getHost(), url.getPath());\n\n final HttpsURLConnectionImpl httpsURLConnection = (HttpsURLConnectionImpl) super.openConnection(url, proxy);\n if (\"artisan.okta.com\".equals(url.getHost()) && \"/home/amazon_aws/0oad7khqw5gSO701p0x7/272\".equals(url.getPath())) {\n\n return new URLConnection(url) {\n @Override\n public void connect() throws IOException {\n httpsURLConnection.connect();\n }\n\n public InputStream getInputStream() throws IOException {\n byte[] content = IOUtils.toByteArray(httpsURLConnection.getInputStream());\n String contentAsString = new String(content, \"UTF-8\");\n\n //System.out.println(\"########################## got stream content ##############################\");\n //System.out.println(contentAsString);\n ByteArrayOutputStream baos = new ByteArrayOutputStream();\n //contentAsString = contentAsString.replaceAll(\",\\\"ENG_ENABLE_SCRIPT_INTEGRITY\\\"\", \"\"); // nested SRIs?\n baos.write(contentAsString.replaceAll(\"integrity ?=\", \"integrity.disabled=\").getBytes(\"UTF-8\"));\n return new ByteArrayInputStream(baos.toByteArray());\n }\n\n public OutputStream getOutputStream() throws IOException {\n return httpsURLConnection.getOutputStream();\n }\n\n };\n\n } else {\n return httpsURLConnection;\n }\n }\n\n };\n }\n return null;\n }\n });\n } catch (Throwable t) {\n System.out.println(\"Unable to register custom protocol handler\");\n }\n }", "title": "" }, { "docid": "2d177a0adf5433441f464a9e31678121", "score": "0.47690293", "text": "DelegatingX509Certificate(java.security.cert.X509Certificate r1) {\n /*\n // Can't load method instructions: Load method exception: null in method: android.security.keystore.DelegatingX509Certificate.<init>(java.security.cert.X509Certificate):void, dex: in method: android.security.keystore.DelegatingX509Certificate.<init>(java.security.cert.X509Certificate):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.security.keystore.DelegatingX509Certificate.<init>(java.security.cert.X509Certificate):void\");\n }", "title": "" }, { "docid": "9f67bf857f9d3fe85214e311d4a44d17", "score": "0.47646534", "text": "@Override\n protected void initializeVisionRequest(VisionRequest<?> visionRequest)\n throws IOException {\n super.initializeVisionRequest(visionRequest);\n\n String packageName = getPackageName();\n visionRequest.getRequestHeaders().set(ANDROID_PACKAGE_HEADER, packageName);\n\n String sig = PackageManagerUtils.getSignature(getPackageManager(), packageName);\n\n visionRequest.getRequestHeaders().set(ANDROID_CERT_HEADER, sig);\n }", "title": "" }, { "docid": "9f67bf857f9d3fe85214e311d4a44d17", "score": "0.47646534", "text": "@Override\n protected void initializeVisionRequest(VisionRequest<?> visionRequest)\n throws IOException {\n super.initializeVisionRequest(visionRequest);\n\n String packageName = getPackageName();\n visionRequest.getRequestHeaders().set(ANDROID_PACKAGE_HEADER, packageName);\n\n String sig = PackageManagerUtils.getSignature(getPackageManager(), packageName);\n\n visionRequest.getRequestHeaders().set(ANDROID_CERT_HEADER, sig);\n }", "title": "" }, { "docid": "9f67bf857f9d3fe85214e311d4a44d17", "score": "0.47646534", "text": "@Override\n protected void initializeVisionRequest(VisionRequest<?> visionRequest)\n throws IOException {\n super.initializeVisionRequest(visionRequest);\n\n String packageName = getPackageName();\n visionRequest.getRequestHeaders().set(ANDROID_PACKAGE_HEADER, packageName);\n\n String sig = PackageManagerUtils.getSignature(getPackageManager(), packageName);\n\n visionRequest.getRequestHeaders().set(ANDROID_CERT_HEADER, sig);\n }", "title": "" }, { "docid": "49e632d888e28201e65941467b022d80", "score": "0.47585502", "text": "private HttpURLConnection prepareConnection() {\n URL url;\n\n HttpURLConnection connection;\n\n String connectionType = \"http\";\n if (this.connectionType == HTTPS)\n connectionType = \"https\";\n\n try {\n url = new URL(connectionType, printerAddress, printerPort, \"/\");\n Log.i(LOG_TAG, url.toString());\n } catch (MalformedURLException e) {\n e.printStackTrace();\n Log.e(LOG_TAG, \"bad url\");\n return null;\n }\n\n try {\n connection = (HttpURLConnection) url.openConnection();\n } catch (IOException e) {\n e.printStackTrace();\n Log.e(LOG_TAG, \"can't connect\");\n return null;\n }\n\n connection.setReadTimeout(15000);\n connection.setReadTimeout(15000);\n connection.setDoInput(true);\n connection.setDoOutput(true);\n\n\n\n try {\n connection.setRequestMethod(\"POST\");\n } catch (ProtocolException e) {\n e.printStackTrace();\n Log.e(LOG_TAG, \"protocol fail\");\n return null;\n }\n\n connection.setRequestProperty(\"Content-Type\", \"application/ipp\");\n connection.setRequestProperty(\"Accept\", \"text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2\");\n\n return connection;\n }", "title": "" }, { "docid": "aad34c7e40bb5ce4e0e1d776f9547dcd", "score": "0.47368404", "text": "private void setTrustedCertificates() {\n TrustManager[] trustAllCerts = new TrustManager[]{new X509TrustManager() {\n public java.security.cert.X509Certificate[] getAcceptedIssuers() {\n return null;\n }\n\n public void checkClientTrusted(X509Certificate[] certs, String authType) {\n }\n\n public void checkServerTrusted(X509Certificate[] certs, String authType) {\n }\n }};\n // Install the all-trusting trust manager\n final SSLContext sc;\n try {\n sc = SSLContext.getInstance(\"TLS\");\n sc.init(null, trustAllCerts, new java.security.SecureRandom());\n } catch (NoSuchAlgorithmException | KeyManagementException e) {\n e.printStackTrace();\n return;\n }\n\n HttpsURLConnection.setDefaultSSLSocketFactory(sc.getSocketFactory());\n // Create all-trusting host name verifier\n HostnameVerifier allHostsValid = new HostnameVerifier() {\n public boolean verify(String hostname, SSLSession session) {\n return true;\n }\n };\n\n // Install the all-trusting host verifier\n HttpsURLConnection.setDefaultHostnameVerifier(allHostsValid);\n }", "title": "" }, { "docid": "24cf7d146565d824408b80d983620121", "score": "0.4695689", "text": "private static SSLSocketFactory trustAllHosts(HttpsURLConnection connection) {\n // Install the all-trusting trust manager\n SSLSocketFactory oldFactory = connection.getSSLSocketFactory();\n try {\n // Install our all trusting manager\n SSLContext sc = SSLContext.getInstance(\"TLS\");\n sc.init(null, trustAllCerts, new java.security.SecureRandom());\n SSLSocketFactory newFactory = sc.getSocketFactory();\n connection.setSSLSocketFactory(newFactory);\n } catch (Exception e) {\n Log.e(LOG_TAG, e.getMessage(), e);\n }\n return oldFactory;\n }", "title": "" }, { "docid": "d4575ec7f7438b6d0a7df99dddac1e5b", "score": "0.46817437", "text": "void onNetworkCredentialsRequested();", "title": "" }, { "docid": "5da15c9420777e63c5642a8e458c28bc", "score": "0.46780136", "text": "boolean onHandshakeResponse(\n HttpMessage httpMessage,\n Socket inSocket,\n @SuppressWarnings(\"deprecation\") ZapGetMethod method);", "title": "" }, { "docid": "6375fd5fb9d4efd2c17bdaaa0ac378ca", "score": "0.46613067", "text": "public final HttpURLConnection mo15945c(URL url, String str) {\n C4228f.C4229a a;\n try {\n HttpURLConnection httpURLConnection = (HttpURLConnection) url.openConnection();\n httpURLConnection.setConnectTimeout(10000);\n httpURLConnection.setUseCaches(false);\n httpURLConnection.setReadTimeout(10000);\n httpURLConnection.addRequestProperty(\"Content-Type\", \"application/json\");\n httpURLConnection.addRequestProperty(\"Accept\", \"application/json\");\n httpURLConnection.addRequestProperty(\"Content-Encoding\", \"gzip\");\n httpURLConnection.addRequestProperty(\"Cache-Control\", \"no-cache\");\n httpURLConnection.addRequestProperty(\"X-Android-Package\", this.f8010a.getPackageName());\n if (!(this.f8012c.get() == null || this.f8011b.get() == null || (a = this.f8012c.get().mo15810a(\"fire-installations-id\")) == C4228f.C4229a.NONE)) {\n httpURLConnection.addRequestProperty(\"x-firebase-client\", this.f8011b.get().mo15341a());\n httpURLConnection.addRequestProperty(\"x-firebase-client-log-type\", Integer.toString(a.f7823g));\n }\n String str2 = null;\n try {\n Context context = this.f8010a;\n byte[] a2 = C1957a.m2688a(context, context.getPackageName());\n if (a2 == null) {\n Log.e(\"ContentValues\", \"Could not get fingerprint hash for package: \" + this.f8010a.getPackageName());\n } else {\n str2 = C1961e.m2877a(a2, false);\n }\n } catch (PackageManager.NameNotFoundException e) {\n StringBuilder u = C0843a.m460u(\"No such package: \");\n u.append(this.f8010a.getPackageName());\n Log.e(\"ContentValues\", u.toString(), e);\n }\n httpURLConnection.addRequestProperty(\"X-Android-Cert\", str2);\n httpURLConnection.addRequestProperty(\"x-goog-api-key\", str);\n return httpURLConnection;\n } catch (IOException unused) {\n throw new C4291f(\"Firebase Installations Service is unavailable. Please try again later.\", C4291f.C4292a.UNAVAILABLE);\n }\n }", "title": "" }, { "docid": "efb8d73386ab446e6217e9a591750c0a", "score": "0.46364176", "text": "private static void addUnsafeTrust(OkHttpClient.Builder builder) {\n final TrustManager[] trustAllCerts = new TrustManager[]{\n new X509TrustManager() {\n @Override\n public void checkClientTrusted(java.security.cert.X509Certificate[] chain, String authType) {\n }\n\n @Override\n public void checkServerTrusted(java.security.cert.X509Certificate[] chain, String authType) {\n }\n\n @Override\n public java.security.cert.X509Certificate[] getAcceptedIssuers() {\n return new java.security.cert.X509Certificate[]{};\n }\n }\n };\n\n // Install the all-trusting trust manager\n SSLContext sslContext = null;\n try {\n sslContext = SSLContext.getInstance(\"SSL\");\n } catch (NoSuchAlgorithmException e) {\n e.printStackTrace();\n }\n try {\n sslContext.init(null, trustAllCerts, new java.security.SecureRandom());\n } catch (KeyManagementException e) {\n e.printStackTrace();\n }\n\n // Create an ssl socket factory with our all-trusting manager\n final SSLSocketFactory sslSocketFactory = sslContext.getSocketFactory();\n builder.sslSocketFactory(sslSocketFactory, (X509TrustManager) trustAllCerts[0]);\n builder.hostnameVerifier((hostname, session) -> true);\n }", "title": "" }, { "docid": "3f769aeb3654a9c201af46e4f1231e10", "score": "0.46335346", "text": "private static void trustAllHosts() {\n TrustManager[] trustAllCerts = new TrustManager[]{new X509TrustManager() {\n public java.security.cert.X509Certificate[] getAcceptedIssuers() {\n return new java.security.cert.X509Certificate[]{};\n }\n\n public void checkClientTrusted(X509Certificate[] chain, String authType) {\n }\n\n public void checkServerTrusted(X509Certificate[] chain, String authType) {\n }\n }};\n // Install the all-trusting trust manager\n try {\n SSLContext sc = SSLContext.getInstance(\"TLS\");\n sc.init(null, trustAllCerts, new java.security.SecureRandom());\n HttpsURLConnection.setDefaultSSLSocketFactory(sc.getSocketFactory());\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "a1cbfb40d1fb3d0a9e6064d695341f1c", "score": "0.46271613", "text": "@Override\n protected void createConnectionOptions(ClientOptions clientOptions) {\n if (clientOptions.getOption(ClientOptions.CON_SSL_TRUST_ALL).hasParsedValue()) {\n try {\n SSLContext ctx = SSLContext.getInstance(\"TLS\");\n ctx.init(new KeyManager[0], new TrustManager[]{new TrustingTrustManager()}, null);\n SSLContext.setDefault(ctx);\n } catch (NoSuchAlgorithmException | KeyManagementException e) {\n throw new RuntimeException(\"Could not set up the all-trusting TrustManager\", e);\n }\n }\n\n // Configure SSL options, which in case of activemq-client are set as Java properties\n // http://activemq.apache.org/how-do-i-use-ssl.html\n // https://docs.oracle.com/javase/8/docs/technotes/guides/security/jsse/JSSERefGuide.html#CustomizingStores\n\n if (clientOptions.getOption(ClientOptions.CON_SSL_KEYSTORE_LOC).hasParsedValue()) {\n System.setProperty(\"javax.net.ssl.keyStore\", relativize(clientOptions.getOption(ClientOptions.CON_SSL_KEYSTORE_LOC).getValue()));\n }\n if (clientOptions.getOption(ClientOptions.CON_SSL_KEYSTORE_PASS).hasParsedValue()) {\n System.setProperty(\"javax.net.ssl.keyStorePassword\", clientOptions.getOption(ClientOptions.CON_SSL_KEYSTORE_PASS).getValue());\n }\n// System.setProperty(\"javax.net.ssl.keyStorePassword\", \"secureexample\");\n if (clientOptions.getOption(ClientOptions.CON_SSL_TRUSTSTORE_LOC).hasParsedValue()) {\n System.setProperty(\"javax.net.ssl.trustStore\", relativize(clientOptions.getOption(ClientOptions.CON_SSL_TRUSTSTORE_LOC).getValue()));\n }\n if (clientOptions.getOption(ClientOptions.CON_SSL_TRUSTSTORE_PASS).hasParsedValue()) {\n System.setProperty(\"javax.net.ssl.trustStorePassword\", clientOptions.getOption(ClientOptions.CON_SSL_TRUSTSTORE_PASS).getValue());\n }\n if (clientOptions.getOption(ClientOptions.CON_SSL_STORE_TYPE).hasParsedValue()) {\n System.setProperty(\"javax.net.ssl.keyStoreType\", clientOptions.getOption(ClientOptions.CON_SSL_STORE_TYPE).getValue());\n System.setProperty(\"javax.net.ssl.trustStoreType\", clientOptions.getOption(ClientOptions.CON_SSL_STORE_TYPE).getValue());\n }\n\n super.createConnectionOptions(clientOptions);\n }", "title": "" }, { "docid": "c72f07578eac8b951ada1348dda22228", "score": "0.46184987", "text": "void acceptChallenge(int challengeId);", "title": "" }, { "docid": "1b0d0be14e2a21ce7addfe060d6ff11e", "score": "0.45911932", "text": "private void connectUsingCertificate() {\n\t\tfinal String METHOD = \"connectUsingCertificate\";\n\t\tString protocol = null;\n\t\tint port = getPortNumber();\n\t\tif (isWebSocket()) {\n\t\t\tprotocol = \"wss://\";\n\t\t\t// If there is no port specified use default\n\t\t\tif(port == -1) {\n\t\t\t\tport = WSS_PORT;\n\t\t\t}\n\t\t} else {\n\t\t\tprotocol = \"ssl://\";\n\t\t\t// If there is no port specified use default\n\t\t\tif(port == -1) {\n\t\t\t\tport = MQTTS_PORT;\n\t\t\t}\n\t\t} \n\n\t\tString mqttServer = getMQTTServer();\n\t\t\n\t\tif(mqttServer != null){\n\t\t\tserverURI = protocol + mqttServer + \":\" + port;\n\t\t} else {\n\t\t\tserverURI = protocol + getOrgId() + \".\" + MESSAGING + \".\" + this.getDomain() + \":\" + port;\n\t\t}\n\t\t\n\t\ttry {\n\t\t\tmqttAsyncClient = new MqttAsyncClient(serverURI, clientId, DATA_STORE);\n\t\t\tmqttAsyncClient.setCallback(mqttCallback);\n\t\t\tmqttClientOptions = new MqttConnectOptions();\n\t\t\tif (clientUsername != null) {\n\t\t\t\tmqttClientOptions.setUserName(clientUsername);\n\t\t\t}\n\t\t\tif (clientPassword != null) {\n\t\t\t\tmqttClientOptions.setPassword(clientPassword.toCharArray());\n\t\t\t}\n\t\t\tmqttClientOptions.setCleanSession(this.isCleanSession());\n\t\t\tif(this.keepAliveInterval != -1) {\n\t\t\t\tmqttClientOptions.setKeepAliveInterval(this.keepAliveInterval);\n\t\t\t}\n\t\t\t\n\t\t\tmqttClientOptions.setMaxInflight(getMaxInflight());\n\t\t\tmqttClientOptions.setAutomaticReconnect(isAutomaticReconnect());\n\t\t\t\n\t\t\t/* This isn't needed as the production messaging.internetofthings.ibmcloud.com \n\t\t\t * certificate should already be in trust chain.\n\t\t\t * \n\t\t\t * See: \n\t\t\t * http://stackoverflow.com/questions/859111/how-do-i-accept-a-self-signed-certificate-with-a-java-httpsurlconnection\n\t\t\t * https://gerrydevstory.com/2014/05/01/trusting-x509-base64-pem-ssl-certificate-in-java/\n\t\t\t * http://stackoverflow.com/questions/12501117/programmatically-obtain-keystore-from-pem\n\t\t\t * https://gist.github.com/sharonbn/4104301\n\t\t\t * \n\t\t\t * CertificateFactory cf = CertificateFactory.getInstance(\"X.509\");\n\t\t\t * InputStream certFile = AbstractClient.class.getResourceAsStream(\"messaging.pem\");\n\t\t\t * Certificate ca = cf.generateCertificate(certFile);\n\t\t\t *\n\t\t\t * KeyStore keyStore = KeyStore.getInstance(KeyStore.getDefaultType());\n\t\t\t * keyStore.load(null, null);\n\t\t\t * keyStore.setCertificateEntry(\"ca\", ca);\n\t\t\t * TrustManager trustManager = TrustManagerUtils.getDefaultTrustManager(keyStore);\n\t\t\t * SSLContext sslContext = SSLContextUtils.createSSLContext(\"TLSv1.2\", null, trustManager);\n\t\t\t * \n\t\t\t */\n\n\t\t\tSSLContext sslContext = SSLContext.getInstance(\"TLSv1.2\");\n\t\t\tsslContext.init(null, null, null);\n\t\t\t\n\t\t\t//Validate the availability of Server Certificate\n\t\t\t\n\t\t\tif (trimedValue(options.getProperty(\"Server-Certificate\")) != null){\n\t\t\t\tif (trimedValue(options.getProperty(\"Server-Certificate\")).contains(\".pem\")||trimedValue(options.getProperty(\"Server-Certificate\")).contains(\".der\")||trimedValue(options.getProperty(\"Server-Certificate\")).contains(\".cer\")){\n\t\t\t\t\tserverCert = trimedValue(options.getProperty(\"Server-Certificate\"));\n\t\t\t\t\t}else{\n\t\t\t\t\t\tLoggerUtility.log(Level.SEVERE, CLASS_NAME, METHOD, \"Only PEM, DER & CER certificate formats are supported at this point of time\");\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t}else{\n\t\t\t\t\t\tLoggerUtility.log(Level.SEVERE, CLASS_NAME, METHOD, \"Value for Server Certificate is missing\");\n\t\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\n\t\t\t//Validate the availability of Client Certificate\n\t\t\tif (trimedValue(options.getProperty(\"Client-Certificate\")) != null){\n\t\t\t\tif (trimedValue(options.getProperty(\"Client-Certificate\")).contains(\".pem\")||trimedValue(options.getProperty(\"Client-Certificate\")).contains(\".der\")||trimedValue(options.getProperty(\"Client-Certificate\")).contains(\".cer\")){\n\t\t\t\t\tclientCert = trimedValue(options.getProperty(\"Client-Certificate\"));\n\t\t\t\t\t}else{\n\t\t\t\t\t\tLoggerUtility.log(Level.SEVERE, CLASS_NAME, METHOD, \"Only PEM, DER & CER certificate formats are supported at this point of time\");\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t}else{\n\t\t\t\t\t\tLoggerUtility.log(Level.SEVERE, CLASS_NAME, METHOD, \"Value for Client Certificate is missing\");\n\t\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t//Validate the availability of Client Certificate Key\n\t\t\tif (trimedValue(options.getProperty(\"Client-Key\")) != null){\n\t\t\t\tif (trimedValue(options.getProperty(\"Client-Key\")).contains(\".key\")){\n\t\t\t\t\tclientCertKey = trimedValue(options.getProperty(\"Client-Key\"));\n\t\t\t\t\t}else{\n\t\t\t\t\t\tLoggerUtility.log(Level.SEVERE, CLASS_NAME, METHOD, \"Only Certificate key in .key format is supported at this point of time\");\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t}else{\n\t\t\t\t\t\tLoggerUtility.log(Level.SEVERE, CLASS_NAME, METHOD, \"Value for Client Key is missing\");\n\t\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\n\t\t\t//Validate the availability of Certificate Password\n\t\t\ttry{\n\t\t\tif (trimedValue(options.getProperty(\"Certificate-Password\")) != null){\n\t\t\t\tcertPassword = trimedValue(options.getProperty(\"Certificate-Password\"));\n\t\t\t\t} else {\n\t\t\t\t\tcertPassword = \"\";\n\t\t\t\t}\n\t\t\t} catch (Exception e){\n\t\t\t\t\tLoggerUtility.log(Level.SEVERE, CLASS_NAME, METHOD, \"Value for Certificate Password is missing\", e);\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t\tthrow e;\n\t\t\t\t}\n\t\t\t\n\t\t\tmqttClientOptions.setSocketFactory(getSocketFactory(serverCert, clientCert, clientCertKey, certPassword));\n\n\t\t} catch (Exception e) {\n\t\t\tLoggerUtility.warn(CLASS_NAME, METHOD, \"Unable to configure TLSv1.2 connection: \" + e.getMessage());\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "title": "" }, { "docid": "0ab8aacf9b04b9b1ac6b9aa74fa8d34d", "score": "0.4566964", "text": "private SSLSocket prepare(SSLSocket baseSocket) {\n\t\tbaseSocket.setEnabledCipherSuites(ciphers);\n\t\treturn baseSocket;\n\t}", "title": "" }, { "docid": "467d6690b93ce200c9ae73c6a0340bd8", "score": "0.45575592", "text": "Future<CreateCertificateResponse> createCertificate(\n CreateCertificateRequest request,\n AsyncHandler<CreateCertificateRequest, CreateCertificateResponse> handler);", "title": "" }, { "docid": "6b785928a98f143f9e723dd38e361192", "score": "0.45504102", "text": "private void _initChallengeResponse() throws InvalidKeyException, SecurityFeaturesException, InvalidChallengeException {\n _requestSessionKey();\n }", "title": "" }, { "docid": "af7c988616c50627b4c6e20cfbac93d1", "score": "0.45297512", "text": "public HttpURLConnection createHttpURLConnection(String url) throws Exception {\n\t\tURL obj = new URL(url);\n\t\tHttpURLConnection conn = (HttpURLConnection)obj.openConnection();\n\t\tif (conn instanceof HttpsURLConnection && obj.getHost().equals(\"epilog.heapcraft.net\")) {\n\t\t\tHttpsURLConnection sslConn = (HttpsURLConnection)conn;\n\t\t\tsslConn.setSSLSocketFactory(getSSLSocketFactory(\"letsencryptauthorityx3.cer\"));\n\t\t}\n\t\treturn conn;\n\t}", "title": "" }, { "docid": "ffd0f69c4bebb3e6f90edaf4a420eb43", "score": "0.45288655", "text": "public abstract T useTransportSecurity(File certChain, File privateKey);", "title": "" }, { "docid": "9ede20daa6b9137585e53aadc7d61fd2", "score": "0.45282742", "text": "private static Socket m39192a(Socket socket) {\n if (socket instanceof SSLSocket) {\n SSLSocket sSLSocket = (SSLSocket) socket;\n ArrayList arrayList = new ArrayList(Arrays.asList(sSLSocket.getSupportedProtocols()));\n arrayList.retainAll(Arrays.asList(new String[]{\"TLSv1.2\", \"TLSv1.1\", \"TLSv1\"}));\n sSLSocket.setEnabledProtocols((String[]) arrayList.toArray(new String[arrayList.size()]));\n }\n return socket;\n }", "title": "" }, { "docid": "b89ce7cdbfa1e1d5eed49eec8fcba17e", "score": "0.4519406", "text": "public CompletionStage<Result> download()\n {\n IRequestValidator requestValidator=new CertDownloadRequestValidator();\n return handleRequest(request(),requestValidator, JsonKeys.CERT_DOWNLOAD);\n }", "title": "" }, { "docid": "47681b2b97a77d83afa8532295adab0c", "score": "0.451728", "text": "public Void execute() throws SocketTimeoutException, NetworkException, UnexpectedResponseException, SSLException {\n try {\n super.execute();\n } catch (Exception e) {\n Log.m1919i(this.TAG, \"<- call(failed) - mark it as success anyways\");\n }\n return null;\n }", "title": "" }, { "docid": "e1437a6881451eead52173f8aa08e05c", "score": "0.45124358", "text": "public jpuppeteer.util.XFuture<?> setIgnoreCertificateErrors(jpuppeteer.cdp.client.entity.security.SetIgnoreCertificateErrorsRequest request) {\n return connection.send(\"Security.setIgnoreCertificateErrors\", request);\n }", "title": "" }, { "docid": "d21fbb2c677ed2a0b7ad1d7548d06ff4", "score": "0.4501541", "text": "void onOperationalCredentialsRequested(byte[] csr);", "title": "" }, { "docid": "8122903306e1ec622f156d3f2bf72fc6", "score": "0.44999337", "text": "private static void hackRequestForSwitchingSecureScheme() {\n// Logger.debug(\"SCOPE -> hackRequestForSwitchingSecureScheme\");\n Http.Request.current().secure = true;\n hackRequestPort();\n }", "title": "" }, { "docid": "3b26ab49a2f4c237c95f7f54e6b61600", "score": "0.44844255", "text": "public void updateChannelPolicy(lnrpc.Rpc.PolicyUpdateRequest request,\n io.grpc.stub.StreamObserver<lnrpc.Rpc.PolicyUpdateResponse> responseObserver) {\n asyncUnaryCall(\n getChannel().newCall(getUpdateChannelPolicyMethod(), getCallOptions()), request, responseObserver);\n }", "title": "" }, { "docid": "fe8d01344c249e5d0bf5a4dd8a2237e3", "score": "0.4481433", "text": "private void setupHttpConnectionStuff() {\n if (Build.VERSION.SDK_INT < Build.VERSION_CODES.FROYO) {\n System.setProperty(\"http.keepAlive\", \"false\");\n }\n if (Build.VERSION.SDK_INT > Build.VERSION_CODES.ICE_CREAM_SANDWICH) {\n try {\n final File httpCacheDir = new File(getCacheDir(), \"http\");\n HttpResponseCache.install(httpCacheDir, TEN_MEGABYTES);\n } catch (IOException ioe) {\n Log.e(Constants.LOG_TAG, \"Could not install http cache on this device.\");\n }\n }\n }", "title": "" }, { "docid": "3a55dd73255d2025dd31e0c447e6d941", "score": "0.44714105", "text": "@Override\n public void checkServerTrusted(java.security.cert.X509Certificate[] certs, String authType) {\n }", "title": "" }, { "docid": "ceba54fe45369cdcb2f6b7290716b3e5", "score": "0.44714078", "text": "public void updateChannelPolicy(lnrpc.Rpc.PolicyUpdateRequest request,\n io.grpc.stub.StreamObserver<lnrpc.Rpc.PolicyUpdateResponse> responseObserver) {\n asyncUnimplementedUnaryCall(getUpdateChannelPolicyMethod(), responseObserver);\n }", "title": "" }, { "docid": "f81a2fc6a86d3969c659aeec1868dfd0", "score": "0.44540724", "text": "@Override\n protected Void doInBackground(Void... arg0) {\n HttpHandler sh = new HttpHandler();\n\n // Making a request to url and getting response\n String jsonStr = sh.makeServiceCall(\"http://privacyranking.cs.hs-rm.de/app/\"+AppID);\n String perm = sh.makeServiceCall(\"http://privacyranking.cs.hs-rm.de/perm/\"+AppID);\n\n HashMap<String, String> permList = new HashMap<>();\n\n if (jsonStr != null) {\n try {\n /**\n * Erstelle ein JSONObject mit dem Inhalt\n * Erstelle eine Array Liste mit dem Inhalt der Permissions\n * Durchlauf des JSONArray und Auflistung der einzelnen permissions.\n * Wir nehmen die Daten und speichern sie in Strings.\n */\n JSONObject c = new JSONObject(jsonStr);\n\n JSONArray p = new JSONArray(perm);\n for (int i = 0; i < p.length(); i++) {\n JSONObject pe = p.getJSONObject(i);\n\n if(!pe.getString(\"name\").equals(\"No Permissions needed.\")) {\n permList.put(pe.getString(\"name\"), pe.getString(\"weight\"));\n }\n }\n\n // Fügt App Informationen der appContactList hinzu\n String title = c.getString(\"title\");\n String title_en = c.getString(\"title_en\");\n String description = c.getString(\"description\");\n String rating = c.getString(\"rating\");\n String min_downloads = c.getString(\"min_downloads\");\n double cost = Math.round(c.getInt(\"cost\")/10000)/100.0;\n String currency = c.getString(\"currency\");\n String changelog = c.getString(\"changelog\");\n String App_id = c.getString(\"App_id\");\n String similarity = c.getString(\"similarity\");\n\n AppContact tempAppContact = new AppContact();\n tempAppContact.title = title;\n tempAppContact.title_en = title_en;\n tempAppContact.permissionsList = permList;\n tempAppContact.description = description;\n tempAppContact.rating = rating;\n tempAppContact.min_downloads = min_downloads;\n tempAppContact.cost = cost + \" \" + currency;\n tempAppContact.changelog = changelog;\n tempAppContact.link = \"https://play.google.com/store/apps/details?id=\" + App_id;\n tempAppContact.appId = App_id;\n tempAppContact.similarity = similarity;\n\n appContactList.add(tempAppContact);\n } catch (final JSONException e) {\n Log.e(TAG, \"Json parsing error: \" + e.getMessage());\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n Toast.makeText(getApplicationContext(),\n \"Json parsing error: \" + e.getMessage(),\n Toast.LENGTH_LONG)\n .show();\n }\n });\n }\n } else {\n Log.e(TAG, \"Couldn't get json from server.\");\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n Toast.makeText(getApplicationContext(),\n \"Couldn't get json from server. Check LogCat for possible errors!\",\n Toast.LENGTH_LONG)\n .show();\n }\n });\n }\n return null;\n }", "title": "" }, { "docid": "e8b60ef8e80f4d783023714cee976c36", "score": "0.44443774", "text": "@Override\r\n public void onReceivedHttpAuthRequest(WebView view, HttpAuthHandler handler, String host, String realm) {\n Log.d(\"webview\",handler.toString());\r\n super.onReceivedHttpAuthRequest(view, handler, host, realm);\r\n }", "title": "" }, { "docid": "8c335860b7724c4d127eccf0040c7869", "score": "0.44387946", "text": "@Override\n\tpublic Credential authenticateProxy(Proxy proxy, URL url,\n\t\t\tList<Challenge> challenges) throws IOException {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "d19998170960fb03b1cef6df9338f4ce", "score": "0.44305488", "text": "@Override\n protected void prepareHandshakeMessageContents() {\n }", "title": "" }, { "docid": "c7396a4975fdc5081320973ff521e2c5", "score": "0.44292623", "text": "@Override\n\t\t\tpublic void onReceivedSslError(WebView view,\n\t\t\t\t\tSslErrorHandler handler, SslError error) {\n\t\t\t\tsuper.onReceivedSslError(view, handler, error);\n\t\t\t\thandler.proceed();\n\t\t\t}", "title": "" }, { "docid": "68eb93245bdecf7d0d94f63a6935664e", "score": "0.44263685", "text": "java.util.concurrent.Future<RequestCertificateResult> requestCertificateAsync(\n RequestCertificateRequest requestCertificateRequest,\n com.amazonaws.handlers.AsyncHandler<RequestCertificateRequest, RequestCertificateResult> asyncHandler);", "title": "" }, { "docid": "4718604fea53560ea0328e9a14a1ca09", "score": "0.44240713", "text": "public TrustingSSLSocketFactory() throws SSLException {\n\t\tSecurity.addProvider(new com.sun.net.ssl.internal.ssl.Provider());\n\t\tSystem.setProperty(\"java.protocol.handler.pkgs\", \"com.sun.net.ssl.internal.www.protocol\");\n\t\ttry {\n\t\t\tSSLContext sslContext;\n\t\t\tsslContext = SSLContext.getInstance(\"SSLv3\");\n\t\t\tsslContext.init(null, new TrustManager[]{new UtilSSLSocketFactory.TrustingX509TrustManager()}, null);\n\t\t\tfactory = sslContext.getSocketFactory();\n\t\t} catch (NoSuchAlgorithmException nsae) {\n\t\t\tthrow new SSLException(\"Unable to initialize the SSL context: \", nsae);\n\t\t} catch (KeyManagementException kme) {\n\t\t\tthrow new SSLException(\"Unable to register a trust manager: \", kme);\n\t\t}\n\t\tciphers = factory.getDefaultCipherSuites();\n\t}", "title": "" }, { "docid": "dbbe4beb488588c46806428f563ba413", "score": "0.44191292", "text": "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}", "title": "" }, { "docid": "a8b1557a2d6b948a41780ad9a5e86863", "score": "0.4417639", "text": "private void runAth1() throws GeneralSecurityException, IOException {\n final ByteBuffer msg = getAth(); // Create CHALLENGE request\n final byte[] res = sndAth(msg); // Send the CHALLENGE Request message\n final byte[] sig = Arrays.copyOfRange(res, WpcAthRsp.LEN_ATH, res.length); // Get the signature from the CHALLENGE_AUTH Response\n if (!verify1(msg.array(), res, sig)) { // Verification of the signature failed?\n final WpcCrtChn chn = getChn(); // Request the WPC Certificate Chain\n final byte[] dig = WpcAthRsp.getSigDig(chn.getDig(), msg.array(), res); // Get the Digest for the challenge\n verify(dig, sig, chn.getPu()); // Verification of the signature failed?\n mCach.add(chn); // Add Certificate Chain to Certificate cache\n }\n }", "title": "" }, { "docid": "4cc7c04ab12ad06a957142b38620b624", "score": "0.44165295", "text": "@Test\n\tpublic void testHandshakesExecuted() throws KeyManagementException, NoSuchAlgorithmException, IOException {\n\t\tExperimentalTrustManager handler = new ExperimentalTrustManager();\n\t\tinitContext(handler);\n\t\tURL fbUrl = new URL(\"https://www.facebook.com\");\n\t\tHttpsURLConnection con = createConnection(fbUrl);\n\t\tcon.connect();\n\t\tassertEquals(\"Firstime handshake should occur\", 1, handler.getHandshakeCount());\n\t\tcon.disconnect();\n\t\t\n\t\tcon = createConnection(fbUrl);\n\t\tcon.connect();\n\t\tassertEquals(\"Second handshake didn't occur because of shared ssl session\", 1, handler.getHandshakeCount());\n\t\tcon.disconnect();\n\t\t\n\t\tURL ytUrl = new URL(\"https://www.youtube.com/\");\n\t\tcon = createConnection(ytUrl);\n\t\tcon.connect();\n\t\tassertEquals(\"Connection to other location is in other ssl session so handshage occurs\", 2, handler.getHandshakeCount());\n\t\tcon.disconnect();\n\t\t\n\t\tcon = createConnection(ytUrl);\n\t\tcon.connect();\n\t\tassertEquals(\"Seccond session is also shared - no handshake\", 2, handler.getHandshakeCount());\n\t\tcon.disconnect();\n\t\t\n\t\t// once again try first connection if session was forgotten or not\n\t\tcon = createConnection(fbUrl);\n\t\tcon.connect();\n\t\tassertEquals(\"First session is still valid - no handshage\", 2, handler.getHandshakeCount());\n\t\tcon.disconnect();\n\t}", "title": "" }, { "docid": "1259a01a1705153aa8509b019c622bb3", "score": "0.44161195", "text": "@Override\n public void onObtained(HttpURLConnection connection) {\n\n String clientId = getClientId();\n String clientSecret = getClientSecret();\n\n String header = \"Basic \" + IoUtils.base64(clientId + \":\" + clientSecret, Charsets.ASCII);\n connection.setRequestProperty(OAuthClient.AUTHORIZATION, header);\n }", "title": "" }, { "docid": "1ca32408fe640e050204aa19dc41d339", "score": "0.43999296", "text": "private static void trustAllHosts() {\n\t\tTrustManager[] trustAllCerts = new TrustManager[] { new X509TrustManager() {\n\t\t\tpublic java.security.cert.X509Certificate[] getAcceptedIssuers() {\n\t\t\t\treturn new java.security.cert.X509Certificate[] {};\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void checkClientTrusted(\n\t\t\t\t\tjava.security.cert.X509Certificate[] chain,\n\t\t\t\t\tString authType)\n\t\t\t\t\t\t\tthrows java.security.cert.CertificateException {\n\t\t\t\t// TODO Auto-generated method stub\n\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void checkServerTrusted(\n\t\t\t\t\tjava.security.cert.X509Certificate[] chain,\n\t\t\t\t\tString authType)\n\t\t\t\t\t\t\tthrows java.security.cert.CertificateException {\n\t\t\t\t// TODO Auto-generated method stub\n\n\t\t\t}\n\t\t} };\n\n\t\t// Install the all-trusting trust manager\n\t\ttry {\n\t\t\tSSLContext sc = SSLContext.getInstance(\"TLS\");\n\t\t\tsc.init(null, trustAllCerts, new java.security.SecureRandom());\n\t\t\tHttpsURLConnection\n\t\t\t.setDefaultSSLSocketFactory(sc.getSocketFactory());\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "title": "" }, { "docid": "b6cdb8d0771d4fc98f282fdbc121c6ff", "score": "0.43973672", "text": "@Override\n public void checkServerTrusted(X509Certificate[] chain, String authType) throws CertificateException {\n }", "title": "" }, { "docid": "fab724d08dc4b621cc053ac4c4ae574f", "score": "0.43953982", "text": "default void setIamPolicy(\n com.google.iam.v1.SetIamPolicyRequest request,\n io.grpc.stub.StreamObserver<com.google.iam.v1.Policy> responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getSetIamPolicyMethod(), responseObserver);\n }", "title": "" }, { "docid": "763219b705b166fcf42d757d2264563f", "score": "0.4394839", "text": "@Override\npublic SSL_MODES getSSLMode() {\n\treturn null;\n}", "title": "" }, { "docid": "b39852f6a16909537adeff56a2fe6a31", "score": "0.43749416", "text": "private void runSmpl() throws GeneralSecurityException, IOException {\n WpcCrtChn chn = getChn(); // Request the WPC Certificate Chain\n ByteBuffer msg = getAth(); // Create CHALLENGE request\n byte[] res = sndAth(msg); // Send the CHALLENGE Request message\n byte[] dig = WpcAthRsp.getSigDig(chn.getDig(), msg.array(), res); // Get the Digest for the challenge\n byte[] sig = Arrays.copyOfRange(res, WpcAthRsp.LEN_ATH, res.length); // Get the signature from the CHALLENGE_AUTH Response\n verify(dig, sig, chn.getPu()); // Verify the signature\n }", "title": "" }, { "docid": "f69b0c906da4245a14d29ce1f8f98230", "score": "0.43724048", "text": "private void setupCertificates(OkHttpClient.Builder builder, final X509Certificate[] certificates) {\n TrustManager[] trustManager = new TrustManager[]{new X509TrustManager() {\n @Override\n public void checkClientTrusted(X509Certificate[] chain, String authType) throws CertificateException {\n }\n\n @Override\n public void checkServerTrusted(X509Certificate[] chain, String authType) throws CertificateException {\n }\n\n @Override\n public X509Certificate[] getAcceptedIssuers() {\n return new X509Certificate[]{};\n }\n }};\n\n try {\n // install the trust manager\n SSLContext sslContext = SSLContext.getInstance(\"SSL\");\n sslContext.init(null, trustManager, new SecureRandom());\n // create an ssl socket factory with our trust manager\n SSLSocketFactory sslSocketFactory = sslContext.getSocketFactory();\n\n builder.sslSocketFactory(sslSocketFactory);\n builder.hostnameVerifier(new HostnameVerifier() {\n @Override\n public boolean verify(String hostname, SSLSession session) {\n return true;\n }\n });\n } catch (Exception e) {\n MyLog.e(\"HttpClientFactory\", e.getMessage());\n }\n }", "title": "" }, { "docid": "f5ba569f6b6abf1eeae234c0be2d5b80", "score": "0.43687794", "text": "@Override\n \t\t\tpublic void checkServerTrusted(X509Certificate[] chain,\n \t\t\t\t\tString authType) throws CertificateException {\n \t\t\t\t\n \t\t\t}", "title": "" }, { "docid": "e204e87dd5fa29d9d109346b8d08c4cf", "score": "0.43667126", "text": "public abstract void\n verifyOriginalPacket_(CertificateV2 trustedCertificate);", "title": "" }, { "docid": "60a6d9fe45ad76128e816e6f88c43fbd", "score": "0.43659228", "text": "@Override\n public void checkClientTrusted(java.security.cert.X509Certificate[] certs, String authType) {\n }", "title": "" }, { "docid": "af3f8c93406c0c0a3b51052ae39fa06e", "score": "0.43453825", "text": "public T useTransportSecurity(InputStream certChain, InputStream privateKey) {\n throw new UnsupportedOperationException();\n }", "title": "" }, { "docid": "df6446183456292b52a5334ec6f69fde", "score": "0.4343849", "text": "default void getIamPolicy(\n com.google.iam.v1.GetIamPolicyRequest request,\n io.grpc.stub.StreamObserver<com.google.iam.v1.Policy> responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getGetIamPolicyMethod(), responseObserver);\n }", "title": "" }, { "docid": "919e33ecd01267d8dea0aa1aeaf812b9", "score": "0.43317646", "text": "public void checkServerTrusted(java.security.cert.X509Certificate[] certs, String authType) {\n\t\t\t }", "title": "" }, { "docid": "8a34361cede15497be6e137844148d2b", "score": "0.4330004", "text": "private static void hackRequestForSwitchingInsecureScheme() {\n// Logger.debug(\"SCOPE -> hackRequestForSwitchingInsecureScheme\");\n Http.Request.current().secure = false;\n hackRequestPort();\n }", "title": "" }, { "docid": "88f9bb512005099d8b53c0c9b296aa1f", "score": "0.43290824", "text": "private static synchronized void satisfyTrustAllCerts() {\n\t\tif (trustAllCerts == null) {\n\t\t\ttrustAllCerts = new TrustManager[] { new X509TrustManager() {\n\t\t\t\tpublic X509Certificate[] getAcceptedIssuers() {\n\t\t\t\t\treturn new X509Certificate[0];\n\t\t\t\t}\n\n\t\t\t\tpublic void checkClientTrusted(X509Certificate[] certs, String authType) {\n\t\t\t\t}\n\n\t\t\t\tpublic void checkServerTrusted(X509Certificate[] certs, String authType) {\n\t\t\t\t}\n\t\t\t} };\n\t\t}\n\t}", "title": "" }, { "docid": "71680091c989f4b43de02878324971ff", "score": "0.4324341", "text": "private CloseableHttpClient createHttpClient_AcceptsUntrustedCerts() {\r\n\t HttpClientBuilder b = HttpClientBuilder.create();\r\n\t \r\n\t // setup a Trust Strategy that allows all certificates.\r\n\t //\r\n\t SSLContext sslContext = null;\r\n\t\ttry {\r\n\t\t\tsslContext = new SSLContextBuilder().loadTrustMaterial(null, new TrustStrategy() {\r\n\t\t\t public boolean isTrusted(X509Certificate[] arg0, String arg1) throws CertificateException {\r\n\t\t\t return true;\r\n\t\t\t }\r\n\t\t\t}).build();\r\n\t\t} catch (KeyManagementException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (NoSuchAlgorithmException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (KeyStoreException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\tb.setSslcontext(sslContext);\r\n\t \r\n\t\t\r\n\t // don't check Hostnames, either.\r\n\t // -- use SSLConnectionSocketFactory.getDefaultHostnameVerifier(), if you don't want to weaken\r\n\t HostnameVerifier hostnameVerifier = SSLConnectionSocketFactory.ALLOW_ALL_HOSTNAME_VERIFIER;\r\n\t \r\n\t // here's the special part:\r\n\t // -- need to create an SSL Socket Factory, to use our weakened \"trust strategy\";\r\n\t // -- and create a Registry, to register it.\r\n\t //\r\n\t SSLConnectionSocketFactory sslSocketFactory = new SSLConnectionSocketFactory(sslContext, hostnameVerifier);\r\n\t Registry<ConnectionSocketFactory> socketFactoryRegistry = RegistryBuilder.<ConnectionSocketFactory>create()\r\n\t .register(\"http\", PlainConnectionSocketFactory.getSocketFactory())\r\n\t .register(\"https\", sslSocketFactory)\r\n\t .build();\r\n\t \r\n\t // now, we create connection-manager using our Registry.\r\n\t // -- allows multi-threaded use\r\n\t PoolingHttpClientConnectionManager connMgr = new PoolingHttpClientConnectionManager( socketFactoryRegistry);\r\n\t b.setConnectionManager( connMgr);\r\n\t \r\n\t // finally, build the HttpClient;\r\n\t // -- done!\r\n\t CloseableHttpClient client = b.build();\r\n\t return client;\r\n\t}", "title": "" }, { "docid": "a7e3f0b68e08f479bb1d166b2421a575", "score": "0.43224978", "text": "private void m1388b(SSLSocket sSLSocket) {\n sSLSocket.setEnabledProtocols(new String[]{\"TLSv1.2\"});\n }", "title": "" }, { "docid": "6408b8f3d44e1ff3c5255e05638e95c9", "score": "0.43177184", "text": "@Override\r\n\t\t\t\t\tpublic void checkServerTrusted(X509Certificate[] arg0, String arg1) throws CertificateException\r\n\t\t\t\t\t{\n\t\t\t\t\t}", "title": "" }, { "docid": "81ffa4378aaf104dbf6ffb33ba539e66", "score": "0.43095812", "text": "java.util.concurrent.Future<GetCertificateResult> getCertificateAsync(\n GetCertificateRequest getCertificateRequest);", "title": "" }, { "docid": "a2746569aa71b86d12485be1b7ef83b0", "score": "0.43002966", "text": "@Override\n public void credentialRequest(String serviceUsers, boolean isUserNameRequested, boolean isPasswordRequested, String passwordText, boolean isPinRequested, boolean isResponseRequested, String challenge) {\n\n dismissDialog();\n\n Intent intent = null;\n if(isUserNameRequested) {\n //Go to user name screen\n intent = new Intent(this, UserNameInputScreen.class);\n } else if(isPasswordRequested) {\n //Go to password screen\n intent = new Intent(this, PasswordScreenActivity.class);\n } else if(isPinRequested) {\n //Go to pin number screen\n intent = new Intent(this, PinNumberScreenActivity.class);\n } else if(isResponseRequested) {\n //Go to responseRequested\n intent = new Intent(this, ChallengeResponseScreenActivity.class);\n }\n if(intent != null) {\n intent.putExtra(AppConstants.AUTH_SERVICE_USERS, serviceUsers);\n intent.putExtra(AppConstants.IS_AUTH_REQUIRED_USER_NAME, isUserNameRequested);\n intent.putExtra(AppConstants.IS_AUTH_REQUIRED_PASSWORD, isPasswordRequested);\n intent.putExtra(AppConstants.IS_AUTH_REQUIRED_PASSWORD_TEXT, passwordText);\n intent.putExtra(AppConstants.IS_AUTH_REQUIRED_PIN, isPinRequested);\n intent.putExtra(AppConstants.IS_AUTH_REQUIRED_RESPONSE, isResponseRequested);\n intent.putExtra(AppConstants.AUTH_SERVICE_CHALLENGE, challenge);\n\n startActivityForResult(intent,AppConstants.REQUEST_CODE_CERT_REQUEST_CREDENTIAL_ACTIVITY);\n } else {\n //Error\n //Display Error message\n }\n }", "title": "" }, { "docid": "2b2013b44a642bf92cb4ff9322a53444", "score": "0.43000817", "text": "@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n KeyTalkCommunicationManager.addToLogFile(\"ServiceListingActivity\",\"onActivityResult requestCode and resultcode: \"+requestCode+\",\"+resultCode);\n if (requestCode == AppConstants.REQUEST_CODE_CERT_REQUEST_CREDENTIAL_ACTIVITY && resultCode == RESULT_OK) {\n if(data != null && data.hasExtra(AppConstants.IS_CERT_REQUEST_ERROR) && data.hasExtra(AppConstants.CERT_REQUEST_ERROR_MSG)) {\n this.errorMessage = data.getStringExtra(AppConstants.CERT_REQUEST_ERROR_MSG);\n showDialog(AppConstants.DIALOG_RCCD_AUTH_ERROR_MSG);\n } else if(data != null && data.hasExtra(AppConstants.IS_CERT_REQUEST_SUCESS)) {\n providerServiceList = KeyTalkCommunicationManager.getAllRCCDFileContents(ServiceListingActivity.this);\n //showDialog(AppConstants.DIALOG_CERT_SUCESSFULLY_RECEIVED);\n try {\n final String serviceMessages[] = KeyTalkCommunicationManager.getServerMessage();\n if (serviceMessages != null && serviceMessages.length > 0) {\n boolean isMsg = false;\n for (int i = 0; i < serviceMessages.length; i++) {\n if (i + 1 < serviceMessages.length) {\n if (serviceMessages[i].trim() != null && !serviceMessages[i].trim().equals(\"\") && !serviceMessages[i].trim().isEmpty() && serviceMessages[i + 1].trim() != null && !serviceMessages[i + 1].trim().equals(null) && !serviceMessages[i + 1].trim().equals(\"\") && !serviceMessages[i + 1].trim().isEmpty()) {\n isMsg = true;\n break;\n }\n }\n }\n if (isMsg) {\n showDialog(AppConstants.DIALOG_CERT_SUCESSFULLY_RECEIVED_MSG);\n } else {\n //showDialog(AppConstants.DIALOG_CERT_SUCESSFULLY_RECEIVED);\n boolean isNative = PreferenceManager.getBoolean(ServiceListingActivity.this, Keys.PreferenceKeys.DEVICE_TYPE);\n if(android.os.Build.VERSION.SDK_INT >= 14 && isNative) {\n showDialog(AppConstants.DIALOG_CERT_SUCESSFULLY_RECEIVED);\n } else {\n String targetURL = KeyTalkCommunicationManager.getUrl();\n if(targetURL == null || targetURL.isEmpty() || TextUtils.isEmpty(targetURL)) {\n showDialog(AppConstants.DIALOG_EMPTY_TARGET_URL);\n } else {\n Intent intent = new Intent(ServiceListingActivity.this, WebViewActivity.class);\n startActivity(intent);\n ServiceListingActivity.this.finish();\n }\n }\n }\n } else {\n //showDialog(AppConstants.DIALOG_CERT_SUCESSFULLY_RECEIVED);\n boolean isNative = PreferenceManager.getBoolean(ServiceListingActivity.this, Keys.PreferenceKeys.DEVICE_TYPE);\n if(android.os.Build.VERSION.SDK_INT >= 14 && isNative) {\n showDialog(AppConstants.DIALOG_CERT_SUCESSFULLY_RECEIVED);\n } else {\n String targetURL = KeyTalkCommunicationManager.getUrl();\n if(targetURL == null || targetURL.isEmpty() || TextUtils.isEmpty(targetURL)) {\n showDialog(AppConstants.DIALOG_EMPTY_TARGET_URL);\n } else {\n Intent intent = new Intent(ServiceListingActivity.this, WebViewActivity.class);\n startActivity(intent);\n ServiceListingActivity.this.finish();\n }\n }\n }\n } catch (Exception e) {\n //showDialog(AppConstants.DIALOG_CERT_SUCESSFULLY_RECEIVED);\n boolean isNative = PreferenceManager.getBoolean(ServiceListingActivity.this, Keys.PreferenceKeys.DEVICE_TYPE);\n if(android.os.Build.VERSION.SDK_INT >= 14 && isNative) {\n showDialog(AppConstants.DIALOG_CERT_SUCESSFULLY_RECEIVED);\n } else {\n String targetURL = KeyTalkCommunicationManager.getUrl();\n if(targetURL == null || targetURL.isEmpty() || TextUtils.isEmpty(targetURL)) {\n showDialog(AppConstants.DIALOG_EMPTY_TARGET_URL);\n } else {\n Intent intent = new Intent(ServiceListingActivity.this, WebViewActivity.class);\n startActivity(intent);\n ServiceListingActivity.this.finish();\n }\n }\n }\n } else if(data != null && data.hasExtra(AppConstants.IS_CERT_REQUEST_DELAY_CREDENTIALS)) {\n credentialRequest(data.getStringExtra(AppConstants.AUTH_SERVICE_USERS),\n data.getBooleanExtra(AppConstants.IS_AUTH_REQUIRED_USER_NAME, false),\n data.getBooleanExtra(AppConstants.IS_AUTH_REQUIRED_PASSWORD, false),\n data.getStringExtra(AppConstants.IS_AUTH_REQUIRED_PASSWORD_TEXT),\n data.getBooleanExtra(AppConstants.IS_AUTH_REQUIRED_PIN, false),\n data.getBooleanExtra(AppConstants.IS_AUTH_REQUIRED_RESPONSE, false),\n data.getStringExtra(AppConstants.AUTH_SERVICE_CHALLENGE));\n } else if(data != null && data.hasExtra(AppConstants.IS_RESET_CREDENTIALS_REQUEST) && data.getBooleanExtra(AppConstants.IS_RESET_CREDENTIALS_REQUEST, false)) {\n\n Intent intent = new Intent(this, ChangePasswordActivity.class);\n if(data.hasExtra(AppConstants.IS_RESET_REQUEST_FROM_SERVER_USER)) {\n intent.putExtra(AppConstants.IS_RESET_REQUEST_FROM_SERVER_USER, data.getStringExtra(AppConstants.IS_RESET_REQUEST_FROM_SERVER_USER));\n }\n if(data.hasExtra(AppConstants.IS_RESET_REQUEST_FROM_SERVER_PWD)) {\n intent.putExtra(AppConstants.IS_RESET_REQUEST_FROM_SERVER_PWD, data.getStringExtra(AppConstants.IS_RESET_REQUEST_FROM_SERVER_PWD));\n }\n startActivityForResult(intent,AppConstants.REQUEST_CODE_RESET_PWD_ACTIVITY);\n\n } else if(data != null && data.hasExtra(AppConstants.IS_CHALLENGE_CREDENTIALS_REQUEST) && data.getBooleanExtra(AppConstants.IS_CHALLENGE_CREDENTIALS_REQUEST, false)) {\n\n Intent intent = new Intent(this, ChallengeRequestActivity.class);\n if(data.hasExtra(AppConstants.IS_CHALLENGE_CREDENTIALS_DATA)) {\n intent.putExtra(AppConstants.IS_CHALLENGE_CREDENTIALS_DATA, data.getStringArrayExtra(AppConstants.IS_CHALLENGE_CREDENTIALS_DATA));\n }\n startActivityForResult(intent,AppConstants.REQUEST_CODE_CERT_REQUEST_CREDENTIAL_ACTIVITY);\n\n } else if(data != null && data.hasExtra(AppConstants.IS_NEW_CHALLENGE_CREDENTIALS_REQUEST) && data.getBooleanExtra(AppConstants.IS_NEW_CHALLENGE_CREDENTIALS_REQUEST, false)) {\n\n Intent intent = new Intent(this, NewChallengeResponseScreenActivity.class);\n if(data.hasExtra(AppConstants.IS_NEW_CHALLENGE_CREDENTIALS_DATA)) {\n intent.putExtra(AppConstants.IS_NEW_CHALLENGE_CREDENTIALS_DATA, data.getStringArrayExtra(AppConstants.IS_NEW_CHALLENGE_CREDENTIALS_DATA));\n }\n if(data.hasExtra(AppConstants.IS_NEW_RESPONSE_CREDENTIALS_DATA)) {\n intent.putExtra(AppConstants.IS_NEW_RESPONSE_CREDENTIALS_DATA, data.getStringArrayExtra(AppConstants.IS_NEW_RESPONSE_CREDENTIALS_DATA));\n }\n startActivityForResult(intent,AppConstants.REQUEST_CODE_CERT_REQUEST_CREDENTIAL_ACTIVITY);\n\n }\n\n } else if (requestCode == AppConstants.REQUEST_CODE_CERT_INSTALL_ACTIVITY){\n if(resultCode == RESULT_OK) {\n //Installed show dialog\n try{\n KeyTalkCommunicationManager.updateNativeKeyStoreInstallationStatus(ServiceListingActivity.this, KeyTalkCommunicationManager.getUrl(),true);\n boolean isNative = PreferenceManager.getBoolean(ServiceListingActivity.this, Keys.PreferenceKeys.DEVICE_TYPE);\n if(isNative) {\n String targetURL = KeyTalkCommunicationManager.getUrl();\n if(targetURL == null || targetURL.isEmpty() || TextUtils.isEmpty(targetURL)) {\n showDialog(AppConstants.DIALOG_EMPTY_TARGET_URL);\n } else {\n Intent browserIntent = new Intent(Intent.ACTION_VIEW, Uri.parse(KeyTalkCommunicationManager.getUrl()));\n startActivity(browserIntent);\n }\n } else {\n String targetURL = KeyTalkCommunicationManager.getUrl();\n if(targetURL == null || targetURL.isEmpty() || TextUtils.isEmpty(targetURL)) {\n showDialog(AppConstants.DIALOG_EMPTY_TARGET_URL);\n } else {\n Intent intent = new Intent(ServiceListingActivity.this, WebViewActivity.class);\n startActivity(intent);\n ServiceListingActivity.this.finish();\n }\n\n }\n } catch(Exception e) {\n String targetURL = KeyTalkCommunicationManager.getUrl();\n if(targetURL == null || targetURL.isEmpty() || TextUtils.isEmpty(targetURL)) {\n showDialog(AppConstants.DIALOG_EMPTY_TARGET_URL);\n } else {\n Intent intent = new Intent(ServiceListingActivity.this, WebViewActivity.class);\n startActivity(intent);\n ServiceListingActivity.this.finish();\n }\n\n }\n //showDialog(AppConstants.DIALOG_CERT_INSTALLATION_SUCESS);\n } else {\n showDialog(AppConstants.DIALOG_CERT_INSTALLATION_FAILED);\n }\n } else if(requestCode == AppConstants.REQUEST_CODE_RESET_PWD_ACTIVITY && resultCode == RESULT_OK) {\n if(data != null && data.hasExtra(AppConstants.IS_RESET_REQUEST_ERROR) && data.hasExtra(AppConstants.CERT_REQUEST_ERROR_MSG)) {\n this.errorMessage = data.getStringExtra(AppConstants.CERT_REQUEST_ERROR_MSG);\n showDialog(AppConstants.DIALOG_RCCD_AUTH_ERROR_MSG);\n } else if(data != null && data.hasExtra(AppConstants.IS_CERT_REQUEST_DELAY_CREDENTIALS)) {\n credentialRequest(data.getStringExtra(AppConstants.AUTH_SERVICE_USERS),\n data.getBooleanExtra(AppConstants.IS_AUTH_REQUIRED_USER_NAME, false),\n data.getBooleanExtra(AppConstants.IS_AUTH_REQUIRED_PASSWORD, false),\n data.getStringExtra(AppConstants.IS_AUTH_REQUIRED_PASSWORD_TEXT),\n data.getBooleanExtra(AppConstants.IS_AUTH_REQUIRED_PIN, false),\n data.getBooleanExtra(AppConstants.IS_AUTH_REQUIRED_RESPONSE, false),\n data.getStringExtra(AppConstants.AUTH_SERVICE_CHALLENGE));\n }\n } else if(requestCode == AppConstants.REQUEST_CODE_UPDATE_SERVER_URL_ACTIVITY && resultCode == RESULT_OK) {\n if(data != null && data.hasExtra(AppConstants.IS_NEW_SERVER_URL_ADDED)) {\n if(data.getBooleanExtra(AppConstants.IS_NEW_SERVER_URL_ADDED, false)) {\n providerServiceList = KeyTalkCommunicationManager.getAllRCCDFileContents(ServiceListingActivity.this);\n providerServiceAdaptor = new ProviderServicesAdaptor(this,providerServiceList);\n expListView.setAdapter(providerServiceAdaptor);\n expListView.setOnChildClickListener(this);\n for (int i = 0; i < providerServiceList.size(); i++) {\n expListView.expandGroup(i);\n }\n providerServiceAdaptor.notifyDataSetChanged();\n }\n }\n } else if (requestCode == ERROR_DIALOG_REQUEST_CODE) {\n // Adding a fragment via GooglePlayServicesUtil.showErrorDialogFragment\n // before the instance state is restored throws an error. So instead,\n // set a flag here, which will cause the fragment to delay until\n // onPostResume.\n mRetryProviderInstall = true;\n }\n\n }", "title": "" }, { "docid": "1e467ebb2d8f6b769f3dabb654fe6543", "score": "0.42999086", "text": "protected URLConnection openConnection(URL url)\r\n/* 29: */ throws IOException\r\n/* 30: */ {\r\n/* 31:27 */ System.out.println(\"In openConnection\");\r\n/* 32: */ \r\n/* 33:29 */ return new KentCryptURLConnection(url);\r\n/* 34: */ }", "title": "" }, { "docid": "7fc6781db988ee058954cd1e9b83bf22", "score": "0.42946014", "text": "public interface ICredentials extends RequestPolicyFactory {\n\n}", "title": "" }, { "docid": "0f502287ffae3c91c0cdde5ca046501b", "score": "0.42903233", "text": "protected TrustManager[] getTrustManager()\n {\n TrustManager[] trustAllCerts = new TrustManager[]\n { \n new AllFACeTrustedManager() \n }; \n \n return trustAllCerts;\n }", "title": "" }, { "docid": "706e3d22e0b5cd34bc3a86631330a1b0", "score": "0.42896202", "text": "public static void main(String[] args) {\n\t\tKeyStore truststore;\r\n\t\tString filepath = System.getenv(\"JAVA_HOME\") + \"\\\\jre\\\\lib\\\\security\\\\cacerts\";\r\n\t\tString passwd=\"changeit\";\r\n\t\t//String filepath =\"d:\\\\12306.jks\";\r\n\t\t//String passwd=\"111111\";\r\n\t\ttry {\r\n\t\t\ttruststore = KeyStore.getInstance(KeyStore.getDefaultType());\r\n\t\t\ttruststore.load(new FileInputStream(new File(filepath)), passwd.toCharArray());\r\n\r\n\t\t\tSSLContext sslContext = SSLContexts.custom().loadTrustMaterial(truststore, new MyTrustSelfSignedStrategy())\r\n\t\t\t\t\t.build();\r\n\t\t\t\r\n//\t\t\tSSLContext sslContext = SSLContexts.custom().loadTrustMaterial(truststore)\r\n//\t\t\t\t\t.build();\r\n\t\t\tSSLConnectionSocketFactory sslcsf = new SSLConnectionSocketFactory(sslContext, new String[] { \"TLSv1\" },\r\n\t\t\t\t\tnull, SSLConnectionSocketFactory.BROWSER_COMPATIBLE_HOSTNAME_VERIFIER);\r\n\t\t\tCloseableHttpClient httpclient = HttpClients.custom().setSSLSocketFactory(sslcsf).build();\r\n\r\n\t\t\tHttpPost httppost = new HttpPost(\"https://ebank.95559.com.cn/corporbank/NsTrans\");\r\n\r\n\t\t\tSystem.out.println(\"executing request\" + httppost.getRequestLine());\r\n\r\n\t\t\tCloseableHttpResponse response = httpclient.execute(httppost);\r\n\t\t\ttry {\r\n\t\t\t\tHttpEntity entity = response.getEntity();\r\n\r\n\t\t\t\tSystem.out.println(\"----------------------------------------\");\r\n\t\t\t\tSystem.out.println(response.getStatusLine());\r\n\t\t\t\tif (entity != null) {\r\n\t\t\t\t\tSystem.out.println(\"Response content length: \" + entity.getContentLength());\r\n\t\t\t\t}\r\n\t\t\t\tEntityUtils.consume(entity);\r\n\t\t\t} finally {\r\n\t\t\t\tresponse.close();\r\n\t\t\t}\r\n\r\n\t\t} catch (KeyStoreException e1) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te1.printStackTrace();\r\n\r\n\t\t} catch (KeyManagementException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (NoSuchAlgorithmException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (ClientProtocolException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (IOException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (CertificateException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\r\n\t}", "title": "" }, { "docid": "761f81014111441cd292970b7c972297", "score": "0.428526", "text": "@Override\r\n\tpublic void checkServerTrusted(X509Certificate[] chain, String authType) throws CertificateException {\n\t\t\r\n\t}", "title": "" }, { "docid": "c5ce0eb8668aa798a322d0327612bd13", "score": "0.42850795", "text": "private static void setupSSL() {\n\t\ttry {\n\t\t\tTrustManager[] trustAllCerts = createTrustAllCertsManager();\n\t\t\tSSLContext sslContext = SSLContext.getInstance(SSL_CONTEXT_PROTOCOL);\n\t\t\tSecureRandom random = new java.security.SecureRandom();\n\t\t\tsslContext.init(null, trustAllCerts, random);\n\t\t\tHttpsURLConnection.setDefaultSSLSocketFactory(sslContext.getSocketFactory());\n\t\t} catch (NoSuchAlgorithmException e) {\n\t\t\tLOGGER.error(INVALID_PROTOCOL_ERROR_MESSAGE, e);\n\t\t\tthrow new ExceptionInInitializerError(e);\n\t\t} catch (GeneralSecurityException e) {\n\t\t\tthrow new ExceptionInInitializerError(e);\n\t\t}\n\n\t}", "title": "" }, { "docid": "b74175bbda945fb26823ce69adc5dbbf", "score": "0.42830038", "text": "public AndroidWorkProfileCertificateProfileBaseRequest(@Nonnull final String requestUrl,\n @Nonnull final IBaseClient<?> client,\n @Nullable final java.util.List<? extends com.microsoft.graph.options.Option> requestOptions,\n @Nonnull final Class<? extends AndroidWorkProfileCertificateProfileBase> responseClass) {\n super(requestUrl, client, requestOptions, responseClass);\n }", "title": "" }, { "docid": "84ab89e0e2cb680ed7331dbbf8932b8e", "score": "0.4272124", "text": "public boolean requiresSecurityPolicy()\n {\n return true;\n }", "title": "" }, { "docid": "c2c408c08d4f3b0d0ce49c5feff87146", "score": "0.4271457", "text": "public Cancellable requestCertificate(final Identifier source,\n final I principal, final Continuation<X509Certificate, Exception> c,\n Map<String, Object> options) {\n return super.requestValue(source, principal, c, options);\n }", "title": "" } ]
7c5470e91b033106d101649c505c1cea
/ 207: / 208:
[ { "docid": "e720016f8228adc2ef6eb6a454d0e5d1", "score": "0.0", "text": "private <T> T mergeObjectEncodedAsGroup(T value, Schema<T> schema)\r\n/* 209: */ throws IOException\r\n/* 210: */ {\r\n/* 211: 355 */ if (value == null) {\r\n/* 212: 357 */ value = schema.newMessage();\r\n/* 213: */ }\r\n/* 214: 359 */ schema.mergeFrom(this, value);\r\n/* 215: 360 */ if (!schema.isInitialized(value)) {\r\n/* 216: 362 */ throw new UninitializedMessageException(value, schema);\r\n/* 217: */ }\r\n/* 218: 365 */ checkLastTagWas(0);\r\n/* 219: */ \r\n/* 220: 367 */ return value;\r\n/* 221: */ }", "title": "" } ]
[ { "docid": "288fd3ee71b736e770bbef790831c263", "score": "0.5969734", "text": "User mo18615e();", "title": "" }, { "docid": "4a3a3aeaffc4b367a8aa8488e4b59610", "score": "0.5953119", "text": "public void mo10856b() {\n }", "title": "" }, { "docid": "b21335651fee041596ce91a9107b8ac8", "score": "0.58904564", "text": "public int mo11162g_() {\n return 2;\n }", "title": "" }, { "docid": "ef778fe5f546910a1595dac69f444c39", "score": "0.58581346", "text": "public abstract String mo33160c() throws NotFoundException, FormatException;", "title": "" }, { "docid": "9331cff1d982697736443f97427ed2cd", "score": "0.5850704", "text": "U mo2906bz();", "title": "" }, { "docid": "a042b189f046655c68839a63747c20c8", "score": "0.5762563", "text": "protected int mo2280c() {\n return 5;\n }", "title": "" }, { "docid": "5664d044031aa871dd8c8e9072dbb275", "score": "0.57108843", "text": "public void mo26016k() {\n }", "title": "" }, { "docid": "355baf776d7bd9ff1d3dd582201dffe4", "score": "0.5701946", "text": "void mo29638hb();", "title": "" }, { "docid": "ea8a8ac1a11363283f7d9dd43ed22262", "score": "0.56924915", "text": "private void m73472h() {\n C31441e eVar = new C31441e();\n eVar.mo128205a().mo128634a().f107306c = C31387f.EnumC31390c.Text;\n eVar.mo128205a().mo128634a().f107307d = ((C14521a) mo108896M()).f52214a;\n eVar.mo128205a().mo128634a().mo128023d().f107279f = Integer.valueOf(getAdapterPosition() - 9);\n eVar.mo128205a().f107773f = ZAUrlUtils.m91720a(C6969H.m41409d(\"G5A86D408BC388320F51A9F5AEB\"), new PageInfoType[0]);\n eVar.mo128205a().mo128634a().mo128022c().f107272b = C6969H.m41409d(\"G5A86D408BC388320F51A9F5AEBD2CCC56D\");\n C30167Za.za3Log(C31520u.EnumC31522b.Show, eVar, null, null);\n }", "title": "" }, { "docid": "381199211c7a233685fbdcbcf9d26193", "score": "0.5692189", "text": "public void mo26021p() {\n }", "title": "" }, { "docid": "f4f7bcdf27874d7a17a80f57f8df43e0", "score": "0.5691996", "text": "public void mo10744d() {\n }", "title": "" }, { "docid": "8fec0037b44e3e60906afccc763bb2b1", "score": "0.5686569", "text": "protected long mo2282e() {\n return f1316b;\n }", "title": "" }, { "docid": "d7c967a69d4eaad64437dc45cb6b9dec", "score": "0.5677127", "text": "C8240v5<E> mo30112B();", "title": "" }, { "docid": "842ba76c621428940e3906e2c7c775d0", "score": "0.5662665", "text": "int m16412c();", "title": "" }, { "docid": "f85974af201e44f741a558970a23b76d", "score": "0.5647321", "text": "C6569z mo22429a();", "title": "" }, { "docid": "a3788334bee2773a4251ca66a8285fa0", "score": "0.56197435", "text": "public void mo26013h() {\n }", "title": "" }, { "docid": "6646a960c5796be6d17e6d805d383412", "score": "0.5571231", "text": "public int method_3159() {\n return this.field_2087;\n }", "title": "" }, { "docid": "ee49d350aa1b80fa7ebe5e168812c8e8", "score": "0.55649155", "text": "public void mo26014i() {\n }", "title": "" }, { "docid": "01b0325c75b4d9eda6383746e6a95fa7", "score": "0.5563438", "text": "void mo2896bp();", "title": "" }, { "docid": "fd0f71b615d7174e170be258aa59bd5a", "score": "0.55561423", "text": "C7580w0 mo24890a();", "title": "" }, { "docid": "5aaed5cce161ce8cb3dd5d063ec6aaf5", "score": "0.5540392", "text": "public int method_1890() {\r\n return this.field_1682;\r\n }", "title": "" }, { "docid": "c91a6929c294727e24c4c3467bf33108", "score": "0.55365705", "text": "public void mo26020o() {\n }", "title": "" }, { "docid": "2bd152bb33ecbe797b9818e175c5d4ec", "score": "0.5513777", "text": "public void mo55659a() {\n }", "title": "" }, { "docid": "104dece2daec1a20fba97602ea88f53c", "score": "0.55121076", "text": "void mo21804d();", "title": "" }, { "docid": "0312bf6af4d040efa8c8582b4fcad926", "score": "0.5502131", "text": "String mo22431c();", "title": "" }, { "docid": "8967722bfce37de8d00d56ef6a76d78c", "score": "0.54969376", "text": "public void mo26009e() {\n }", "title": "" }, { "docid": "cafbba7d0d4a9bb71a4b9a1eb7cb0c0d", "score": "0.5485227", "text": "static int m18451a(int i) {\n return 140 - i;\n }", "title": "" }, { "docid": "2bf078857e66b31b5a12ad42e224e738", "score": "0.5475281", "text": "protected int mo2279b() {\n return 5000;\n }", "title": "" }, { "docid": "01a3c80df896d3360907b17859ccfa2f", "score": "0.547346", "text": "String mo30206b();", "title": "" }, { "docid": "674e65452f81bf29486bf9f2131da9b1", "score": "0.54673845", "text": "private int m2768ak() {\n if (this.f2946i.mo61676d() != this.f2946i.mo61677e() || mo61784S()) {\n return this.f2946i.mo61677e() - this.f2946i.mo61676d();\n }\n return this.f2946i.mo61677e();\n }", "title": "" }, { "docid": "52198cab8ce9d6d894927734cc20273c", "score": "0.54671395", "text": "public void mo23635d() {\n }", "title": "" }, { "docid": "c86165739f0ad51ad67a502be959e3b9", "score": "0.54649687", "text": "String mo22432a();", "title": "" }, { "docid": "9038850983491dccba48948ecf81cdcb", "score": "0.5457958", "text": "String mo11240s();", "title": "" }, { "docid": "409bafa9c84a209cd947c3ff2cb4f21b", "score": "0.5457925", "text": "static int m4570a(int i) {\r\n return (i * 2) - 113;\r\n }", "title": "" }, { "docid": "de9d820aa7022de3f155611decfc4bef", "score": "0.54566294", "text": "public void mo9848a() {\n }", "title": "" }, { "docid": "83c4a22259783ccf4f899b70b0e55b0e", "score": "0.54554766", "text": "public int h() {\n/* 505 */ return 4;\n/* */ }", "title": "" }, { "docid": "bd224f54e95d2dd41e75d4f7dd7df109", "score": "0.54488575", "text": "public abstract String mo11798g();", "title": "" }, { "docid": "cf495ef9b2708251f1a707604305e445", "score": "0.5445603", "text": "public void mo10012e() {\n }", "title": "" }, { "docid": "67b69bc5da5432117143d4b37155ca9e", "score": "0.5442612", "text": "public void mo61201z() {\n }", "title": "" }, { "docid": "e329f7b95a61b39576b16d496aeff311", "score": "0.54376894", "text": "public String method_7296() {\r\n return this.field_7034;\r\n }", "title": "" }, { "docid": "5c66efa7f43e1719cfeea22624eb6f3f", "score": "0.5436203", "text": "protected float l()\r\n/* 48: */ {\r\n/* 49: 60 */ return -20.0F;\r\n/* 50: */ }", "title": "" }, { "docid": "d47bbd92eee3b78d25c07abe4ff33c5f", "score": "0.54307115", "text": "C20676a mo55851e();", "title": "" }, { "docid": "63443601aa90e2ccc153541f097054ff", "score": "0.5416864", "text": "int mo22430b();", "title": "" }, { "docid": "0a2f61cb9550449a1374a9587d193637", "score": "0.54162955", "text": "public void mo27570b() {\n }", "title": "" }, { "docid": "3b54f90983745dfd5993571ac2074d26", "score": "0.54060096", "text": "public String GetByteRange ();", "title": "" }, { "docid": "715756bbe44b0262624c6633342518ac", "score": "0.54033566", "text": "public String toString() {\n/* 584 */ return \"w9x7 (lifting)\";\n/* */ }", "title": "" }, { "docid": "db961ee48e40913f08791b6135ff1275", "score": "0.54032004", "text": "void mo3857a(C5145h c5145h);", "title": "" }, { "docid": "8d16438530e6f09b7ae27e743a771cb5", "score": "0.5398915", "text": "String mo17298b();", "title": "" }, { "docid": "845846648642e09c44699df32129d7c7", "score": "0.53982633", "text": "public void mo13484i() {\n }", "title": "" }, { "docid": "4b2d339c36f5baad3dbebf1e375f40d2", "score": "0.53981996", "text": "private C10087i m41240b() {\n int b = C0441a.b(this.f32993a, R.color.gold1, null);\n int b2 = C0441a.b(this.f32993a, R.color.transparent, null);\n int b3 = C0441a.b(this.f32993a, R.color.title_gray, null);\n int b4 = C0441a.b(this.f32993a, R.color.title_gray, null);\n Drawable a = C0441a.a(this.f32993a, R.drawable.paywall_enable_gold_background, null);\n Drawable a2 = C0441a.a(this.f32993a, R.drawable.paywall_disabled_background, null);\n return C10087i.m41223o().mo10747e(Integer.valueOf(b)).mo10749g(Integer.valueOf(b)).mo10748f(Integer.valueOf(b2)).mo10750h(Integer.valueOf(b2)).mo10742b(Integer.valueOf(b2)).mo10746d(Integer.valueOf(b2)).mo10739a(Integer.valueOf(b3)).mo10744c(Integer.valueOf(b3)).mo10741b(a).mo10743c(a2).mo10745d(C0441a.a(this.f32993a, R.drawable.gold_paywall_pill_background, null)).mo10751i(Integer.valueOf(b)).mo10752j(Integer.valueOf(b4)).mo10740a();\n }", "title": "" }, { "docid": "43074ca6be78d09570c6c8c4b980b7e7", "score": "0.5396507", "text": "protected abstract String mo1859b();", "title": "" }, { "docid": "4c2ad7d16bd7520755328bc475258fd2", "score": "0.53938276", "text": "void mo21801b();", "title": "" }, { "docid": "e7af5e9fc349056790cc1ade21a01a9f", "score": "0.53893906", "text": "protected int b()\r\n/* 13: */ {\r\n/* 14: 80 */ return this.a.W().s().length;\r\n/* 15: */ }", "title": "" }, { "docid": "9f0f95ccef49fcce3c39594376bd3b71", "score": "0.53854465", "text": "public void mo26023r() {\n }", "title": "" }, { "docid": "b9024f59965817099d00d0bd0c3e6faa", "score": "0.5383281", "text": "public void mo23097a() {\n }", "title": "" }, { "docid": "0bf153a3616315eb44c9e98bf2fced65", "score": "0.5382438", "text": "public final void mo9047a() {\n }", "title": "" }, { "docid": "39fc93a8afed8fd9587e1725b3dd1330", "score": "0.53810126", "text": "public void mo9673C_() {\n }", "title": "" }, { "docid": "39fc93a8afed8fd9587e1725b3dd1330", "score": "0.53810126", "text": "public void mo9673C_() {\n }", "title": "" }, { "docid": "369aaf7f2d5f04ffc22023154a31faac", "score": "0.53768814", "text": "long mo41085H_();", "title": "" }, { "docid": "864204884d4574787cdfc56d55310faf", "score": "0.5370455", "text": "Integer getMFCScpe();", "title": "" }, { "docid": "573f314cdcac11ee4b3d473c9f750d17", "score": "0.53695565", "text": "public int method_3164() {\n return this.field_2086;\n }", "title": "" }, { "docid": "d21fee1cebd06431a4d8be4e6af67473", "score": "0.5368014", "text": "public void func_73866_w_() {}", "title": "" }, { "docid": "0d706ec83316608dffe6fb3a50b42f93", "score": "0.5358213", "text": "public void mo104202a() {\n }", "title": "" }, { "docid": "2859cfa1ea9ef4df4c0d20d11a4884a2", "score": "0.5356261", "text": "private C10087i m41241c() {\n int b = C0441a.b(this.f32993a, R.color.gold1, null);\n int b2 = C0441a.b(this.f32993a, R.color.transparent, null);\n int b3 = C0441a.b(this.f32993a, R.color.title_gray, null);\n int b4 = C0441a.b(this.f32993a, R.color.title_gray, null);\n int b5 = C0441a.b(this.f32993a, R.color.paywall_gold_select_background, null);\n Drawable a = C0441a.a(this.f32993a, R.drawable.top_picks_enabled_gold_background, null);\n Drawable a2 = C0441a.a(this.f32993a, R.drawable.top_picks_save_background, null);\n Drawable a3 = C0441a.a(this.f32993a, R.drawable.paywall_disabled_background, null);\n int b6 = C0441a.b(this.f32993a, R.color.default_paywall_item_grey, null);\n return C10087i.m41223o().mo10747e(Integer.valueOf(b)).mo10749g(Integer.valueOf(b)).mo10748f(Integer.valueOf(b5)).mo10750h(Integer.valueOf(b2)).mo10738a(C0441a.a(this.f32993a, R.drawable.top_picks_base_item_enabled, null)).mo10742b(Integer.valueOf(b6)).mo10746d(Integer.valueOf(b6)).mo10739a(Integer.valueOf(b3)).mo10744c(Integer.valueOf(b3)).mo10741b(a).mo10743c(a3).mo10745d(a2).mo10751i(Integer.valueOf(b)).mo10752j(Integer.valueOf(b4)).mo10740a();\n }", "title": "" }, { "docid": "79c707f3d28263fcc89902b0527d5c14", "score": "0.5350231", "text": "public void mo736a() {\n }", "title": "" }, { "docid": "6b518dcb8e71be7858c8004de70365b1", "score": "0.5348768", "text": "C0632u mo6908a();", "title": "" }, { "docid": "1ea0141f5ef2b1e8bb7df04aaf3d71a0", "score": "0.5341292", "text": "public byte getPacketID()\r\n/* 65: */ {\r\n/* 66:56 */ return 3;\r\n/* 67: */ }", "title": "" }, { "docid": "7d256367116e256a8c4602b4ef64bbbb", "score": "0.53406143", "text": "C6741n mo23055a();", "title": "" }, { "docid": "697b22fbee02bb308007aa740b1a7b09", "score": "0.5338867", "text": "public int getFormatIndex()\r\n/* 21: */ {\r\n/* 22: 64 */ return this.index;\r\n/* 23: */ }", "title": "" }, { "docid": "5d98d1ddd9012f8ccf12eac3363ae4eb", "score": "0.533869", "text": "long getposBinStream()\n\t{\treturn pos+nbS2S*96+3*32+64*4; }", "title": "" }, { "docid": "b46b3e2d06552b27a4f946f63edaaeda", "score": "0.5333385", "text": "protected String bn()\r\n/* 36: */ {\r\n/* 37: 46 */ return \"mob.cow.hurt\";\r\n/* 38: */ }", "title": "" }, { "docid": "129a905b5c61081866d86e0a755f202f", "score": "0.5328505", "text": "void mo11229h();", "title": "" }, { "docid": "55dfce5fc476d491438035068c1cb48a", "score": "0.5327532", "text": "static int m14340a(int i, byte b, short s) {\n if ((b & 8) != 0) {\n i--;\n }\n if (s <= i) {\n return (short) (i - s);\n }\n Http2.m14268d(\"PROTOCOL_ERROR padding %s > remaining length %s\", Short.valueOf(s), Integer.valueOf(i));\n throw null;\n }", "title": "" }, { "docid": "d09640729b5b608c74070be5405a9852", "score": "0.53236324", "text": "protected void a(int paramInt1, int paramInt2, int paramInt3, int paramInt4, int paramInt5, int paramInt6)\r\n/* 31: */ {\r\n/* 32:100 */ IngestServer localIngestServer = this.a.W().s()[paramInt1];\r\n/* 33:101 */ String str1 = localIngestServer.serverUrl.replaceAll(\"\\\\{stream_key\\\\}\", \"\");\r\n/* 34:102 */ String str2 = (int)localIngestServer.bitrateKbps + \" kbps\";\r\n/* 35:103 */ String str3 = null;\r\n/* 36:104 */ dai localdai = this.a.W().v();\r\n/* 37:106 */ if (localdai != null)\r\n/* 38: */ {\r\n/* 39:107 */ if (localIngestServer == localdai.c())\r\n/* 40: */ {\r\n/* 41:108 */ str1 = a.k + str1;\r\n/* 42:109 */ str2 = (int)(localdai.i() * 100.0F) + \"%\";\r\n/* 43: */ }\r\n/* 44:110 */ else if (paramInt1 < localdai.d())\r\n/* 45: */ {\r\n/* 46:111 */ if (localIngestServer.bitrateKbps == 0.0F) {\r\n/* 47:112 */ str2 = a.m + \"Down!\";\r\n/* 48: */ }\r\n/* 49: */ }\r\n/* 50: */ else\r\n/* 51: */ {\r\n/* 52:115 */ str2 = a.q + \"1234\" + a.v + \" kbps\";\r\n/* 53: */ }\r\n/* 54: */ }\r\n/* 55:117 */ else if (localIngestServer.bitrateKbps == 0.0F) {\r\n/* 56:118 */ str2 = a.m + \"Down!\";\r\n/* 57: */ }\r\n/* 58:121 */ paramInt2 -= 15;\r\n/* 59:123 */ if (a(paramInt1)) {\r\n/* 60:124 */ str3 = a.j + \"(Preferred)\";\r\n/* 61:125 */ } else if (localIngestServer.defaultServer) {\r\n/* 62:126 */ str3 = a.k + \"(Default)\";\r\n/* 63: */ }\r\n/* 64:129 */ this.u.c(cah.a(this.u), localIngestServer.serverName, paramInt2 + 2, paramInt3 + 5, 16777215);\r\n/* 65:130 */ this.u.c(cah.b(this.u), str1, paramInt2 + 2, paramInt3 + cah.c(this.u).a + 5 + 3, 3158064);\r\n/* 66:131 */ this.u.c(cah.d(this.u), str2, d() - 5 - cah.e(this.u).a(str2), paramInt3 + 5, 8421504);\r\n/* 67:132 */ if (str3 != null) {\r\n/* 68:133 */ this.u.c(cah.f(this.u), str3, d() - 5 - cah.g(this.u).a(str3), paramInt3 + 5 + 3 + cah.h(this.u).a, 8421504);\r\n/* 69: */ }\r\n/* 70: */ }", "title": "" }, { "docid": "a1113d0fc8cb0c23dc19ebb8e6ed5c6f", "score": "0.5315981", "text": "public void mo119665g() {\n }", "title": "" }, { "docid": "bcac08493224cb6a5ff621b5a668c888", "score": "0.5309825", "text": "public void mo26015j() {\n }", "title": "" }, { "docid": "586573b7588d3d186753756d9511f1e0", "score": "0.5308094", "text": "protected int method_501() {\r\n return this.field_183;\r\n }", "title": "" }, { "docid": "a83c582329af7d5caa37156c9640cfc8", "score": "0.5306481", "text": "C4952s mo6264a();", "title": "" }, { "docid": "17d1fc463a82da507fb045d283409dd2", "score": "0.5305905", "text": "void mo36742a(C28527a c28527a);", "title": "" }, { "docid": "a41459fbeb4f8ae476a15a273d828fe6", "score": "0.53021455", "text": "void mo11228g();", "title": "" }, { "docid": "33f3cf6a3898654f822043472690d00a", "score": "0.52963907", "text": "public void mo23636e() {\n }", "title": "" }, { "docid": "19c1f5d86cafe0700017af339c91d658", "score": "0.5290621", "text": "void mo120549c();", "title": "" }, { "docid": "297b855c9e67169696330263bfafb1a5", "score": "0.52904445", "text": "void mo18612b();", "title": "" }, { "docid": "34a8247f6a3ac2159ac39e10e39c1e7a", "score": "0.5285046", "text": "void mo47b(C0159n c0159n);", "title": "" }, { "docid": "a0d6da7ab653c7d380d11067414591ec", "score": "0.5283579", "text": "int dilLength()\n/* */ {\n/* 1733 */ return shareBytes().length - 86 - 16;\n/* */ }", "title": "" }, { "docid": "b99f8ff2e9ee35a0c55b4a04e25f1fbb", "score": "0.52819467", "text": "protected float m()\r\n/* 38: */ {\r\n/* 39: 50 */ return 0.05F;\r\n/* 40: */ }", "title": "" }, { "docid": "2527b5cbf48733572584ffe82f5b09b4", "score": "0.52802116", "text": "void mo21803c();", "title": "" }, { "docid": "555ef4e0462825494b2cea69540f132f", "score": "0.5279577", "text": "public void mo23978b() {\n }", "title": "" }, { "docid": "4522faae328fb7e2ee99e62696332c94", "score": "0.52764535", "text": "protected void mo2283f() {\n f1315a++;\n }", "title": "" }, { "docid": "0950d64fdc28f65539e0df7fcc638ee8", "score": "0.5276247", "text": "public void mo26017l() {\n }", "title": "" }, { "docid": "e8497ba61a95a1cc34ae299970c8a9fc", "score": "0.52730465", "text": "private void m97105a() {\n Matisse.m142291a(EditFeedbackFragment.this).mo123735a(MimeType.m142304of(MimeType.JPEG, MimeType.PNG, MimeType.GIF)).mo123745a(new GifFilter()).mo123758c(false).mo123756b(true).mo123761e(EditFeedbackFragment.this.getResources().getDimensionPixelSize(R.dimen.h0)).mo123750a(new GlideEngine()).mo123754b(1).mo123759d(1).mo123752a(true).mo123743a(ThemeManager.m86874a() ? R.style.h6 : R.style.h5).mo123742a(0.85f).mo123763f(16);\n }", "title": "" }, { "docid": "03f211a4566b51f68038a852c51847f1", "score": "0.52726346", "text": "String mo11318h();", "title": "" }, { "docid": "32fd8d3c19c1ec4da6716993515db7a2", "score": "0.52723354", "text": "String mo30225n();", "title": "" }, { "docid": "de01a2dcc816a293fef814f6588c0027", "score": "0.52711815", "text": "String mo10874m();", "title": "" }, { "docid": "6749b17fb85df46a0c746d2e26f02012", "score": "0.5266651", "text": "C9404b mo9614b();", "title": "" }, { "docid": "9b29988979d452433bf9bca03dddd71d", "score": "0.5264221", "text": "public void mo3670c() {\n }", "title": "" }, { "docid": "b33954f16e81c6015632cdccb23b8a2b", "score": "0.5263037", "text": "public abstract String mo28218NR();", "title": "" }, { "docid": "4b6f541a63294e34bbcc04b1b1e78b1a", "score": "0.52569216", "text": "@VTID(35)\r\n double titleOffset2();", "title": "" }, { "docid": "d85b0b6c1744806c0a6b7a03e797f20b", "score": "0.52515185", "text": "private void m133847a(float r25, float r26, float r27, int r28) {\n /*\n r24 = this;\n r0 = r24\n r3 = r28\n java.lang.String[] r4 = r0.f109373g\n if (r4 == 0) goto L_0x0367\n java.lang.String[] r4 = r0.f109373g\n int r4 = r4.length\n if (r4 != 0) goto L_0x000f\n goto L_0x0367\n L_0x000f:\n android.text.TextPaint r4 = r0.f109355B\n android.graphics.Paint$FontMetrics r4 = r4.getFontMetrics()\n float r5 = r4.ascent\n float r6 = r4.descent\n java.lang.String[] r7 = r0.f109373g\n int r7 = r7.length\n int r8 = r7 + -1\n float r9 = (float) r8\n float r10 = r4.descent\n float r4 = r4.ascent\n float r10 = r10 - r4\n float r9 = r9 * r10\n android.graphics.PointF[][] r4 = new android.graphics.PointF[r7][]\n float r6 = r6 - r5\n int r5 = (int) r6\n int r6 = r0.f109388v\n float r6 = (float) r6\n float r6 = r6 * r27\n int r6 = (int) r6\n r0.f109386t = r6\n int r6 = r0.f109389w\n float r6 = (float) r6\n float r6 = r6 * r27\n int r6 = (int) r6\n r0.f109387u = r6\n int r6 = r0.f109387u\n int r10 = r0.f109389w\n if (r6 < r10) goto L_0x0044\n int r6 = r0.f109389w\n r0.f109387u = r6\n L_0x0044:\n int r6 = r0.f109386t\n int r10 = r0.f109388v\n if (r6 < r10) goto L_0x004e\n int r6 = r0.f109388v\n r0.f109386t = r6\n L_0x004e:\n r6 = 1073741824(0x40000000, float:2.0)\n float r9 = r9 / r6\n float r6 = r26 - r9\n int r6 = (int) r6\n float r9 = r0.f109385s\n float r9 = r9 * r27\n r2 = 1082130432(0x40800000, float:4.0)\n float r9 = r9 / r2\n r2 = -1\n r2 = 0\n r12 = 0\n r13 = 0\n r14 = 0\n r15 = 0\n r16 = 0\n r17 = -1\n r18 = -1\n L_0x0067:\n if (r2 >= r7) goto L_0x018a\n android.text.TextPaint r11 = r0.f109355B\n java.lang.String[] r10 = r0.f109373g\n r10 = r10[r2]\n float r10 = r11.measureText(r10)\n int r10 = (int) r10\n int r11 = r10 / 2\n float r11 = (float) r11\n float r19 = r25 - r11\n r20 = r15\n int r15 = r0.f109386t\n float r15 = (float) r15\n float r19 = r19 - r15\n float r11 = r25 + r11\n int r15 = r0.f109386t\n float r15 = (float) r15\n float r11 = r11 + r15\n r15 = 1\n if (r3 != r15) goto L_0x0095\n int r11 = r0.f109386t\n float r11 = (float) r11\n float r19 = r25 - r11\n float r11 = (float) r10\n float r11 = r25 + r11\n int r15 = r0.f109386t\n float r15 = (float) r15\n float r11 = r11 + r15\n L_0x0095:\n r15 = 3\n if (r3 != r15) goto L_0x00a5\n float r11 = (float) r10\n float r11 = r25 - r11\n int r15 = r0.f109386t\n float r15 = (float) r15\n float r19 = r11 - r15\n int r11 = r0.f109386t\n float r11 = (float) r11\n float r11 = r25 + r11\n L_0x00a5:\n java.lang.String[] r15 = r0.f109373g\n r15 = r15[r2]\n java.lang.String r15 = r15.trim()\n int r15 = r15.length()\n if (r15 != 0) goto L_0x00ca\n r15 = 1\n if (r3 != r15) goto L_0x00be\n int r11 = r0.f109386t\n float r11 = (float) r11\n float r11 = r25 + r11\n r19 = r11\n goto L_0x00c0\n L_0x00be:\n r19 = r25\n L_0x00c0:\n r11 = 3\n if (r3 != r11) goto L_0x00c8\n int r11 = r0.f109386t\n float r11 = (float) r11\n float r19 = r25 - r11\n L_0x00c8:\n r11 = r19\n L_0x00ca:\n int r12 = r10 - r12\n int r12 = java.lang.Math.abs(r12)\n float r12 = (float) r12\n int r12 = (r12 > r9 ? 1 : (r12 == r9 ? 0 : -1))\n if (r12 >= 0) goto L_0x00ef\n r12 = 1\n if (r3 != r12) goto L_0x00de\n r12 = 0\n int r15 = (r13 > r12 ? 1 : (r13 == r12 ? 0 : -1))\n if (r15 <= 0) goto L_0x00f0\n goto L_0x00f3\n L_0x00de:\n r12 = 0\n r15 = 3\n if (r3 != r15) goto L_0x00e7\n int r15 = (r14 > r12 ? 1 : (r14 == r12 ? 0 : -1))\n if (r15 <= 0) goto L_0x00f0\n goto L_0x00f3\n L_0x00e7:\n r15 = 2\n if (r3 != r15) goto L_0x00f0\n int r15 = (r14 > r12 ? 1 : (r14 == r12 ? 0 : -1))\n if (r15 <= 0) goto L_0x00f0\n goto L_0x00f3\n L_0x00ef:\n r12 = 0\n L_0x00f0:\n r13 = r11\n r14 = r19\n L_0x00f3:\n if (r2 != 0) goto L_0x00f7\n int r16 = r6 - r5\n L_0x00f7:\n int r11 = r16 + r5\n r15 = 1\n if (r7 <= r15) goto L_0x0123\n if (r2 <= 0) goto L_0x010c\n android.text.TextPaint r15 = r0.f109355B\n java.lang.String[] r12 = r0.f109373g\n int r17 = r2 + -1\n r12 = r12[r17]\n float r12 = r15.measureText(r12)\n int r12 = (int) r12\n goto L_0x010e\n L_0x010c:\n r12 = r17\n L_0x010e:\n if (r2 >= r8) goto L_0x0120\n android.text.TextPaint r15 = r0.f109355B\n r21 = r5\n java.lang.String[] r5 = r0.f109373g\n int r17 = r2 + 1\n r5 = r5[r17]\n float r5 = r15.measureText(r5)\n int r5 = (int) r5\n goto L_0x0129\n L_0x0120:\n r21 = r5\n goto L_0x0127\n L_0x0123:\n r21 = r5\n r12 = r17\n L_0x0127:\n r5 = r18\n L_0x0129:\n if (r12 <= 0) goto L_0x0130\n if (r10 < r12) goto L_0x0130\n int r15 = r0.f109387u\n int r11 = r11 + r15\n L_0x0130:\n if (r5 <= 0) goto L_0x0137\n if (r10 <= r5) goto L_0x0137\n int r15 = r0.f109387u\n int r11 = r11 + r15\n L_0x0137:\n if (r2 != 0) goto L_0x013d\n int r15 = r0.f109387u\n int r16 = r16 - r15\n L_0x013d:\n r15 = r16\n if (r2 != r8) goto L_0x0147\n r22 = r5\n int r5 = r0.f109387u\n int r11 = r11 + r5\n goto L_0x0149\n L_0x0147:\n r22 = r5\n L_0x0149:\n r5 = 4\n android.graphics.PointF[] r5 = new android.graphics.PointF[r5]\n r23 = r6\n android.graphics.PointF r6 = new android.graphics.PointF\n float r15 = (float) r15\n r6.<init>(r14, r15)\n r16 = 0\n r5[r16] = r6\n android.graphics.PointF r6 = new android.graphics.PointF\n r6.<init>(r13, r15)\n r15 = 1\n r5[r15] = r6\n android.graphics.PointF r6 = new android.graphics.PointF\n float r15 = (float) r11\n r6.<init>(r13, r15)\n r16 = 2\n r5[r16] = r6\n android.graphics.PointF r6 = new android.graphics.PointF\n r6.<init>(r14, r15)\n r15 = 3\n r5[r15] = r6\n r4[r2] = r5\n r5 = r20\n if (r10 <= r5) goto L_0x017a\n r15 = r10\n goto L_0x017b\n L_0x017a:\n r15 = r5\n L_0x017b:\n int r2 = r2 + 1\n r16 = r11\n r17 = r12\n r5 = r21\n r18 = r22\n r6 = r23\n r12 = r10\n goto L_0x0067\n L_0x018a:\n r5 = r15\n android.graphics.Path r2 = r0.f109358E\n r2.reset()\n java.util.List<android.graphics.PointF> r2 = r0.f109365L\n r2.clear()\n r2 = 0\n L_0x0196:\n if (r2 >= r7) goto L_0x0231\n if (r2 != 0) goto L_0x01ac\n android.graphics.Path r6 = r0.f109358E\n r9 = r4[r2]\n r10 = 0\n r9 = r9[r10]\n float r9 = r9.x\n r11 = r4[r2]\n r11 = r11[r10]\n float r10 = r11.y\n r6.moveTo(r9, r10)\n L_0x01ac:\n android.graphics.Path r6 = r0.f109358E\n r9 = r4[r2]\n r10 = 1\n r9 = r9[r10]\n float r9 = r9.x\n r11 = r4[r2]\n r11 = r11[r10]\n float r11 = r11.y\n r6.lineTo(r9, r11)\n r6 = r4[r2]\n r9 = 0\n r6 = r6[r9]\n float r6 = r6.x\n r9 = r4[r2]\n r9 = r9[r10]\n float r9 = r9.x\n int r6 = (r6 > r9 ? 1 : (r6 == r9 ? 0 : -1))\n if (r6 != 0) goto L_0x01f3\n android.graphics.Path r6 = r0.f109358E\n r9 = r4[r2]\n r9 = r9[r10]\n float r9 = r9.x\n r11 = r4[r2]\n r11 = r11[r10]\n float r10 = r11.y\n r6.lineTo(r9, r10)\n android.graphics.Path r6 = r0.f109358E\n r9 = r4[r2]\n r10 = 2\n r9 = r9[r10]\n float r9 = r9.x\n r11 = r4[r2]\n r11 = r11[r10]\n float r11 = r11.y\n r6.lineTo(r9, r11)\n goto L_0x01f4\n L_0x01f3:\n r10 = 2\n L_0x01f4:\n android.graphics.Path r6 = r0.f109358E\n r9 = r4[r2]\n r9 = r9[r10]\n float r9 = r9.x\n r11 = r4[r2]\n r11 = r11[r10]\n float r10 = r11.y\n r6.lineTo(r9, r10)\n java.util.List<android.graphics.PointF> r6 = r0.f109365L\n r9 = r4[r2]\n r10 = 0\n r9 = r9[r10]\n r6.add(r9)\n java.util.List<android.graphics.PointF> r6 = r0.f109365L\n r9 = r4[r2]\n r10 = 1\n r9 = r9[r10]\n r6.add(r9)\n java.util.List<android.graphics.PointF> r6 = r0.f109365L\n r9 = r4[r2]\n r10 = 2\n r9 = r9[r10]\n r6.add(r9)\n java.util.List<android.graphics.PointF> r6 = r0.f109365L\n r9 = r4[r2]\n r10 = 3\n r9 = r9[r10]\n r6.add(r9)\n int r2 = r2 + 1\n goto L_0x0196\n L_0x0231:\n r2 = r8\n L_0x0232:\n if (r2 < 0) goto L_0x02a2\n r6 = r4[r2]\n r7 = 0\n r6 = r6[r7]\n float r6 = r6.x\n r7 = r4[r2]\n r9 = 1\n r7 = r7[r9]\n float r7 = r7.x\n int r6 = (r6 > r7 ? 1 : (r6 == r7 ? 0 : -1))\n if (r6 != 0) goto L_0x0259\n android.graphics.Path r6 = r0.f109358E\n r7 = r4[r2]\n r9 = 3\n r7 = r7[r9]\n float r7 = r7.x\n r10 = r4[r2]\n r10 = r10[r9]\n float r10 = r10.y\n r6.lineTo(r7, r10)\n goto L_0x025a\n L_0x0259:\n r9 = 3\n L_0x025a:\n android.graphics.Path r6 = r0.f109358E\n r7 = r4[r2]\n r7 = r7[r9]\n float r7 = r7.x\n r10 = r4[r2]\n r10 = r10[r9]\n float r9 = r10.y\n r6.lineTo(r7, r9)\n r6 = r4[r2]\n r7 = 0\n r6 = r6[r7]\n float r6 = r6.x\n r9 = r4[r2]\n r10 = 1\n r9 = r9[r10]\n float r9 = r9.x\n int r6 = (r6 > r9 ? 1 : (r6 == r9 ? 0 : -1))\n if (r6 != 0) goto L_0x028e\n android.graphics.Path r6 = r0.f109358E\n r9 = r4[r2]\n r9 = r9[r7]\n float r9 = r9.x\n r10 = r4[r2]\n r10 = r10[r7]\n float r10 = r10.y\n r6.lineTo(r9, r10)\n L_0x028e:\n android.graphics.Path r6 = r0.f109358E\n r9 = r4[r2]\n r9 = r9[r7]\n float r9 = r9.x\n r10 = r4[r2]\n r10 = r10[r7]\n float r10 = r10.y\n r6.lineTo(r9, r10)\n int r2 = r2 + -1\n goto L_0x0232\n L_0x02a2:\n r7 = 0\n android.graphics.Path r2 = r0.f109358E\n r6 = r4[r7]\n r9 = 1\n r6 = r6[r9]\n float r6 = r6.x\n r10 = r4[r7]\n r10 = r10[r9]\n float r9 = r10.y\n r2.lineTo(r6, r9)\n android.graphics.Rect r2 = new android.graphics.Rect\n r2.<init>()\n android.text.TextPaint r6 = r0.f109355B\n java.lang.String[] r9 = r0.f109373g\n r9 = r9[r7]\n java.lang.String[] r10 = r0.f109373g\n r10 = r10[r7]\n int r10 = r10.length()\n r6.getTextBounds(r9, r7, r10, r2)\n int r2 = r5 >> 1\n r6 = 1\n if (r3 != r6) goto L_0x02f0\n android.graphics.RectF r6 = new android.graphics.RectF\n int r9 = r0.f109386t\n float r9 = (float) r9\n float r9 = r25 - r9\n r10 = r4[r7]\n r10 = r10[r7]\n float r7 = r10.y\n float r10 = (float) r5\n float r10 = r25 + r10\n int r11 = r0.f109386t\n float r11 = (float) r11\n float r10 = r10 + r11\n r11 = r4[r8]\n r12 = 2\n r11 = r11[r12]\n float r11 = r11.y\n r6.<init>(r9, r7, r10, r11)\n r0.f109367a = r6\n L_0x02f0:\n r6 = 3\n if (r3 != r6) goto L_0x0315\n android.graphics.RectF r6 = new android.graphics.RectF\n float r5 = (float) r5\n float r5 = r25 - r5\n int r7 = r0.f109386t\n float r7 = (float) r7\n float r5 = r5 - r7\n r7 = 0\n r9 = r4[r7]\n r9 = r9[r7]\n float r7 = r9.y\n int r9 = r0.f109386t\n float r9 = (float) r9\n float r9 = r25 + r9\n r10 = r4[r8]\n r11 = 2\n r10 = r10[r11]\n float r10 = r10.y\n r6.<init>(r5, r7, r9, r10)\n r0.f109367a = r6\n goto L_0x0316\n L_0x0315:\n r11 = 2\n L_0x0316:\n if (r3 != r11) goto L_0x033a\n android.graphics.RectF r3 = new android.graphics.RectF\n float r2 = (float) r2\n float r5 = r25 - r2\n int r6 = r0.f109386t\n float r6 = (float) r6\n float r5 = r5 - r6\n r6 = 0\n r7 = r4[r6]\n r6 = r7[r6]\n float r6 = r6.y\n float r1 = r25 + r2\n int r2 = r0.f109386t\n float r2 = (float) r2\n float r1 = r1 + r2\n r2 = r4[r8]\n r4 = 2\n r2 = r2[r4]\n float r2 = r2.y\n r3.<init>(r5, r6, r1, r2)\n r0.f109367a = r3\n L_0x033a:\n android.graphics.RectF r1 = r0.f109368b\n android.graphics.RectF r2 = r0.f109367a\n r1.set(r2)\n android.graphics.RectF r1 = r0.f109368b\n android.graphics.RectF r2 = r0.f109368b\n float r2 = r2.left\n int r3 = r0.f109390x\n float r3 = (float) r3\n float r2 = r2 - r3\n android.graphics.RectF r3 = r0.f109368b\n float r3 = r3.top\n int r4 = r0.f109390x\n float r4 = (float) r4\n float r3 = r3 - r4\n android.graphics.RectF r4 = r0.f109368b\n float r4 = r4.right\n int r5 = r0.f109390x\n float r5 = (float) r5\n float r4 = r4 + r5\n android.graphics.RectF r5 = r0.f109368b\n float r5 = r5.bottom\n int r6 = r0.f109390x\n float r6 = (float) r6\n float r5 = r5 + r6\n r1.set(r2, r3, r4, r5)\n return\n L_0x0367:\n return\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.p280ss.android.ugc.aweme.story.shootvideo.textsticker.view.p1662a.C42070a.m133847a(float, float, float, int):void\");\n }", "title": "" }, { "docid": "9d818f5a6aa8c519cf4d216c2bbb1810", "score": "0.52507114", "text": "void mo30218g();", "title": "" }, { "docid": "b90a85352bff2d76f367ee348156967c", "score": "0.5249639", "text": "public void mo23099b() {\n }", "title": "" } ]
0358fec156963ec2602a9b6cec547000
The list of items that can be used for entitlement (wager amounts/etc)
[ { "docid": "a57592f436f9c0b59fa72358106b62b5", "score": "0.6590906", "text": "@ApiModelProperty(value = \"The list of items that can be used for entitlement (wager amounts/etc)\")\n public List<ActivityEntitlementResource> getEntitlements() {\n return entitlements;\n }", "title": "" } ]
[ { "docid": "5063e754d5059e28ae707999deaef9dc", "score": "0.6833645", "text": "public String listItems()\n {\n if(playerItems.isEmpty())\n {\n return \"You are not carrying any items\";\n }\n String itemsList = \"You are carrying:\\n\";\n for(Item item : playerItems)\n {\n itemsList += \"-\" + item.getLongDescription() + \"\\n\";\n }\n itemsList += toStringWeight();\n return itemsList;\n }", "title": "" }, { "docid": "f0079dcdb576ef2a7223fc3a86299eee", "score": "0.65374047", "text": "public static List<String> getItemValue() {\n List<String> itemsList = new ArrayList<String>();\n itemsList.add(\"Hand sanitizer\");\n itemsList.add(\"iphone 11 pro max\");\n itemsList.add(\"T-shirt\");\n itemsList.add(\"Mens shirt\");\n itemsList.add(\"Shoes\");\n itemsList.add(\"Camera\");\n itemsList.add(\"Bike\");\n itemsList.add(\"Tv\");\n System.out.println(itemsList);\n return itemsList;\n }", "title": "" }, { "docid": "293cfecae77298ae6a52a2022628988c", "score": "0.65275365", "text": "java.lang.String getLootList();", "title": "" }, { "docid": "293cfecae77298ae6a52a2022628988c", "score": "0.65275365", "text": "java.lang.String getLootList();", "title": "" }, { "docid": "bced28f6c006bc5f6bc9e293c5593f24", "score": "0.65167487", "text": "java.util.List<com.google.ccc.hosted.marketplace.v2.LicenseNotification.Expiries> \n getExpiriesList();", "title": "" }, { "docid": "ee81f4105c39c8ba0266037cf4e70485", "score": "0.646877", "text": "@Override\n public List<ItemType> getApplicableItems() {\n return Arrays.asList(ItemType.AXE, ItemType.PICKAXE, ItemType.SWORD);\n }", "title": "" }, { "docid": "392955e24124627389a15b0a33ab62f4", "score": "0.64327115", "text": "java.util.List<io.opencannabis.schema.commerce.CommercialPurchase.TicketItem> \n getItemList();", "title": "" }, { "docid": "82601152553c0c17accb054a1f674531", "score": "0.642648", "text": "java.util.List<java.lang.Integer> getGrantedItemDefsList();", "title": "" }, { "docid": "3ff47bf3c97408f5a9680f00478488bc", "score": "0.6324886", "text": "public void listItems(){\n log(\"List Items BEGIN\\n\");\n Iterator iterator = itemMap.entrySet().iterator();\n /*\n * Iteration of items to obtain information of item\n */\n while (iterator.hasNext()) {\n Map.Entry pair = (Map.Entry)iterator.next();\n Item item = (Item)pair.getValue();\n log(String.format(\"Item: %s Price: %f Reward Point: %f Total Sale: %d Available: %b \\n\", item.getName(), item.currentPrice(), item.rewardPoint(), item.getSaleCount(), item.isAvailable()));\n }\n log(\"List Items END\\n\");\n }", "title": "" }, { "docid": "1458767ad612a43cbfaa1749cc386a19", "score": "0.6299387", "text": "java.util.List<com.nkm.framework.resource.data.ShuiguoBytes.SHUIGUO> \n getItemsList();", "title": "" }, { "docid": "fbd97cfe918e9de93542b049d107c0b9", "score": "0.6176328", "text": "public String getItems() {\n return items;\n }", "title": "" }, { "docid": "3c1b1b83500b8e989453e6a6fbf9440a", "score": "0.6136092", "text": "private void itemList() {\n\t\tSystem.out.println(\" Welcome to Canadian Wonders\\n *********************************\");\n\t\tSystem.out.println(\"Here is a price list of our most popular products (in Canadian dollars)\\n\");\n\t\tSystem.out.println(\"Jar of Maple Syrup: $\" + JAR_PRICE);\n\t\tSystem.out.println(\"Photograph of Victoria: $\" + PHOTO_PRICE);\n\t\tSystem.out.println(\"Beaver Hat: $\" + HAT_PRICE);\n\t\tSystem.out.println(\"\\nThe above prices don't include taxes. The tax rate is \" + twoDigits.format(TAX_RATE * 100) + \"%\");\n\t\tSystem.out.println(\"Our exchange rate is 1 US dollar = \" + RATE + \" Canadian dollars\");\n\t}", "title": "" }, { "docid": "25352464448a1d52a359f2a0e3f25a1e", "score": "0.60644346", "text": "@Override\n public String getAllItems() {\n StringBuilder sb = new StringBuilder();\n sb.append(\"[\");\n for(int i = 0; i < list.size(); i++)\n sb.append(list.get(i).getKey()).append(\":\").append(list.get(i).getValue()).append(\",\");\n if (list.size() > 0) sb.setLength(sb.length() - 1);\n sb.append(\"]\");\n return sb.toString();\n }", "title": "" }, { "docid": "281e72fb667c455c6bf1a392fc4834be", "score": "0.5992281", "text": "public void listPurchaseList()\r\n {\r\n int i;\r\n Item tempItem;\r\n for(i = 0; i < purchaseList.size(); i++)\r\n {\r\n tempItem = purchaseList.get(i).getPurchasedItem();\r\n if(\"ticketing\".equals(tempItem.getItemDepartment()))//\"ticketing\" \"merchandise\"\r\n {\r\n System.out.println(\"|Purchase Date: \"+purchaseList.get(i).getPurchaseDate()+\"| Item ID: \"+tempItem.getItemId()+\"| Item Name: \"+tempItem.getItemName()+\" | Item Type: \"+tempItem.getItemType()+\" | Item Quanity: \"+purchaseList.get(i).getQunaityOfPurchase()+\" | Cost of Transaction: \"+purchaseList.get(i).getTransactionCost());\r\n }\r\n if(\"merchandise\".equals(tempItem.getItemDepartment()))//\"ticketing\" \"merchandise\"\r\n {\r\n System.out.println(\"|Purchase Date: \"+purchaseList.get(i).getPurchaseDate()+\"| Item ID: \"+tempItem.getItemId()+\"| Item Name: \"+tempItem.getItemName()+\" | Item Size: \"+tempItem.getItemSize()+\" | Item Quanity: \"+purchaseList.get(i).getQunaityOfPurchase()+\" | Cost of Transaction: \"+purchaseList.get(i).getTransactionCost());\r\n }\r\n \r\n \r\n }\r\n }", "title": "" }, { "docid": "cc414f4015d5c63d4220c40b57b64181", "score": "0.5983952", "text": "public Collection<Entitlement> getEntitlements() {\n List<Entitlement> result = Collections.emptyList();\n JSONObject rootEntitlements = infraAirlockService.getSyncedEntitlements();\n if (rootEntitlements != null && rootEntitlements.length() > 0) {\n JSONArray entitlements = rootEntitlements.optJSONArray(Constants.JSON_FEATURE_FIELD_ENTITLEMENTS);\n if (entitlements != null && entitlements.length() > 0) {\n result = new ArrayList<>();\n for (int i = 0; i < entitlements.length(); i++) {\n JSONObject entitlementObj = entitlements.getJSONObject(i);\n result.add(new Entitlement(entitlementObj));\n }\n }\n }\n return result;\n }", "title": "" }, { "docid": "239a52bc35fea98ee920119595102f2d", "score": "0.59537995", "text": "List<Item> getItems();", "title": "" }, { "docid": "97b5dd78cba32b7af7fbb3f644f9eec2", "score": "0.5948958", "text": "List<VendingMachine> getAllItems();", "title": "" }, { "docid": "b4bb00fa8784ea4203897d280af3e719", "score": "0.5943779", "text": "public List<Item> getItems();", "title": "" }, { "docid": "d6d79ed931c4a122e005c7e769077d8d", "score": "0.5931201", "text": "private List<String> getOwnedProducts() throws RemoteException {\n Bundle ownedItems = mService.getPurchases(3, getPackageName(), \"inapp\", null);\n int response = ownedItems.getInt(\"RESPONSE_CODE\");\n Log.i(\"Iap-Ad\", \"Response code of purchased item query\");\n if (response == 0) {\n return ownedItems.getStringArrayList(\"INAPP_PURCHASE_ITEM_LIST\");\n }\n return Collections.emptyList();\n }", "title": "" }, { "docid": "7442822e76a08b7535b1f99159366ffc", "score": "0.5919377", "text": "public String getItemList () throws Exception\n\t{\n\t\tif (m_sItemList == null)\n\t\t{\n\t\t\tYFSEnvironment env = YFSUtil.getYFSEnv();\n\t\t\tgetItemList (env, null, null);\n\t\t}\n\t\treturn m_sItemList;\n\t}", "title": "" }, { "docid": "9acc725eb5e3130835a51a617c5af218", "score": "0.59176165", "text": "@Override\r\n\tpublic String toString() {\r\n\t\tString p = \"\";\r\n\t\tfor (Items s : listItems) {\r\n\t\t\tp = p + s.toString();\r\n\t\t\tp = p + \"\\n\";\r\n\t\t}\r\n\t\treturn p;\r\n\t}", "title": "" }, { "docid": "9c0e89378ec73063f2bbfd38d48d2793", "score": "0.5911209", "text": "public List<String> getAllItemNames() {\r\n\r\n\t\tList<String> allList = new ArrayList<>();\r\n\t\tfor (Item each : regularItems) {\r\n\r\n\t\t\tallList.add(each.getName());\r\n\t\t}\r\n\t\tfor (OnSaleItem each : OnSaleItems) {\r\n\r\n\t\t\tallList.add(each.getName());\r\n\t\t}\r\n\r\n\t\treturn allList;\r\n\t}", "title": "" }, { "docid": "08c0d00f0a9dff7e6642a9e55a7032d7", "score": "0.5905202", "text": "public List<Item> getItemList() {\n return chooseableItems;\n }", "title": "" }, { "docid": "44a576a9f01c31055da9e8b31fc370de", "score": "0.58967024", "text": "java.util.List<TfProtoDefMessages.CMsgPaintKit_Definition.Item> \n getItemList();", "title": "" }, { "docid": "0e0b711299ef489ae89ea9c5fea568fd", "score": "0.5890617", "text": "java.util.List<DotaGcmessagesCommon.CAdditionalEquipSlot> \n getEquipsList();", "title": "" }, { "docid": "3626b524871766176cb6acaa6382a2aa", "score": "0.5882109", "text": "@Override\n\tpublic List<String> getItemNoList(List<BaItem> all) {\n\t\treturn all.stream().map(p -> p.getItemNo()).collect(Collectors.toList());\n\t}", "title": "" }, { "docid": "88c6536507e9d84d931197f98a172e9b", "score": "0.58642787", "text": "public java.util.List<io.opencannabis.schema.commerce.CommercialPurchase.TicketItem> getItemList() {\n return item_;\n }", "title": "" }, { "docid": "230b169fd2b5d3106848967e4b85edf1", "score": "0.58603764", "text": "public String printItem()\n {\n String l=\"\";\n \n \n for (String mapKey : listofitem.keySet()) {\n l +=listofitem.get(mapKey)+\", \"+listofitem.get(mapKey).getDescription()+\" weigth: \"+listofitem.get(mapKey).getWeight()+\"\\n\";\n \n }\n \n return l+\"\\n\";\n }", "title": "" }, { "docid": "641a9e19fa6ce04504d34aeca4d60245", "score": "0.58490086", "text": "public java.util.List<io.opencannabis.schema.commerce.CommercialPurchase.TicketItem.Builder> \n getItemBuilderList() {\n return getItemFieldBuilder().getBuilderList();\n }", "title": "" }, { "docid": "f50e946524513ba77071baa3ed7ad7da", "score": "0.58367425", "text": "java.util.List<DotaGcmessagesCommon.CMatchAdditionalUnitInventory> \n getAdditionalUnitsInventoryList();", "title": "" }, { "docid": "1c8e556307668bc5e0f1909a025f9bec", "score": "0.5817852", "text": "java.util.List<io.kubernetes.client.proto.V1beta1Extensions.Ingress> getItemsList();", "title": "" }, { "docid": "9da836565db0d551c95988307307a8d3", "score": "0.581129", "text": "public List<ItemAttributeEnchanterData> getItemAttributeEnchantData(String itemName) {\n ConfigurationSection section = config.getConfigurationSection(\n CFG_ATT_ENCHANT_VALUES + \".\" + itemName);\n Set<String> keys = section.getKeys(false);\n\n List<ItemAttributeEnchanterData> result = new ArrayList<>();\n for (String key : keys) {\n ConfigurationSection section2 = section.getConfigurationSection(key);\n result.add(new ItemAttributeEnchanterData(section2));\n }\n\n return result;\n }", "title": "" }, { "docid": "1230aea37d05dcdac04e8e8c4e15d352", "score": "0.579736", "text": "public java.util.List<java.lang.Integer>\n getGrantedItemDefsList() {\n return java.util.Collections.unmodifiableList(grantedItemDefs_);\n }", "title": "" }, { "docid": "ac6db1df762f8067cad50c260a226e5a", "score": "0.5796216", "text": "public java.util.List<io.opencannabis.schema.commerce.CommercialPurchase.TicketItem> getItemList() {\n if (itemBuilder_ == null) {\n return java.util.Collections.unmodifiableList(item_);\n } else {\n return itemBuilder_.getMessageList();\n }\n }", "title": "" }, { "docid": "eb765cff32131d4346734dce86b39315", "score": "0.5796104", "text": "public String getBorrowedItems(){\n return borrowedItems;\n}", "title": "" }, { "docid": "ffe61a572162c68c955f5a18b476df44", "score": "0.57953554", "text": "public String checkEntityItemsAvailability() {\n\n\t\ttotalStockBOs.clear();\n\t\tList<Integer> itemIDs = new ArrayList<Integer>();\n\t\tfor (InvoiceItemBO it : currentInvoice.getInvoiceItems()) {\n\t\t\titemIDs.add(it.getItem());\n\t\t}\n\t\tcurrentInvoice.setEntityBO(getAppModel(currentInvoice.getEntity(),\n\t\t\t\tentityBOs));\n\t\tif (currentInvoice.getEntityBO() == null) {\n\t\t\tString ent = \"Entity\";\n\t\t\tif (CrownConstants.RETAIL.equals(invoiceType)) {\n\t\t\t\tent = \"Shop\";\n\t\t\t}\n\t\t\tFacesUtil.addErrorFlashMessage(\"Select \" + ent, \"Select \" + ent\n\t\t\t\t\t+ \" to check availability\");\n\t\t\treturn null;\n\t\t}\n\t\tif (itemIDs.isEmpty()) {\n\t\t\tFacesUtil.addErrorFlashMessage(\"Add Items\",\n\t\t\t\t\t\"Add Items to check availability\");\n\t\t\treturn null;\n\t\t}\n\n\t\tGeneralService generalService = CrownServiceLocator.INSTANCE\n\t\t\t\t.getCrownService(GeneralService.class);\n\t\ttotalStockBOs.addAll(generalService.getInvoiceAvailability(\n\t\t\t\tcurrentInvoice.getEntity(), itemIDs.toArray()));\n\n\t\tfor (TotalStockBO bo : totalStockBOs) {\n\t\t\tbo.setItemBO(getItemBO(bo.getItemID()));\n\t\t}\n\n\t\tCollections.sort(totalStockBOs, new Comparator<TotalStockBO>() {\n\n\t\t\t@Override\n\t\t\tpublic int compare(TotalStockBO o1, TotalStockBO o2) {\n\t\t\t\tfinal ItemBO bo1 = o1.getItemBO();\n\t\t\t\tfinal ItemBO bo2 = o2.getItemBO();\n\t\t\t\tif (bo1 != null && bo2 != null) {\n\t\t\t\t\treturn bo1.getItemName().compareTo(bo2.getItemName());\n\t\t\t\t}\n\t\t\t\treturn 0;\n\t\t\t}\n\t\t});\n\n\t\treturn null;\n\t}", "title": "" }, { "docid": "61d86a5e36f215c4c524f9acbca55d85", "score": "0.57944983", "text": "@Override\r\n\tpublic String toString() {\n\t\treturn this.itemName;\r\n\t}", "title": "" }, { "docid": "9a9b4bcc75d4545bd5e36403b076cbad", "score": "0.5787033", "text": "public java.util.List<com.nkm.framework.resource.data.ShuiguoBytes.SHUIGUO> getItemsList() {\n if (itemsBuilder_ == null) {\n return java.util.Collections.unmodifiableList(items_);\n } else {\n return itemsBuilder_.getMessageList();\n }\n }", "title": "" }, { "docid": "584feb18d4e0bf10a22e427adf95b6d5", "score": "0.5781496", "text": "@Override \n\tpublic String toString() {\n\t\treturn this.warehouseName + \":\" + this.items.toString();\n\t}", "title": "" }, { "docid": "ac40b15eccbbf334bbb6f893c679422e", "score": "0.576811", "text": "java.util.List<io.kubernetes.client.proto.V1beta1Extensions.Deployment> getItemsList();", "title": "" }, { "docid": "2adf943d84ff49950ca4534fec302796", "score": "0.57534134", "text": "public String getDescricoesItens(){\n String retorno = \"\"; \n for (Item itemAtual : getItem()){\n retorno += String.format(\"%s, \", itemAtual.getDescricao());\n }\n return retorno.isEmpty() ? retorno : retorno.substring(0, retorno.length () -2);\n }", "title": "" }, { "docid": "9b053f4e366b2005b0db4f2b959d9052", "score": "0.5742682", "text": "public List<String> getDisplayInformationList() {\n\t\tList<String> oDisplayInformationList = new ArrayList<String>();\n\t\t\n\t\tfor (PosCheckExtraInfo oPosCheckExtraInfo: m_oExtraInfoList) {\n\t\t\tif (oPosCheckExtraInfo.getVariable().equals(PosCheckExtraInfo.VARIABLE_CARD_NO) && oPosCheckExtraInfo.getSection().equals(PosCheckExtraInfo.SECTION_LOYALTY)) {\n\t\t\t\toDisplayInformationList.add(AppGlobal.g_oLang.get()._(\"number\") + \" \" + oPosCheckExtraInfo.getValue());\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\treturn oDisplayInformationList;\n\t}", "title": "" }, { "docid": "3cad07c334a69ddaa8e5483efd18ba30", "score": "0.5741886", "text": "public IterConfigItem[] getAvailableItems()\n\t{\n\t\tIterConfigItem iciFPX = new IterConfigItem( \"FPXPos\" , \"FPX\" , null ) ;\n\t\tIterConfigItem iciFPY = new IterConfigItem( \"FPYPos\" , \"FPY\" , null ) ;\n\t\tIterConfigItem iciFPZ = new IterConfigItem( \"FPZPos\" , \"FPZ\" , null ) ;\n\t\tIterConfigItem[] iciA = { iciFPX , iciFPY , iciFPZ } ;\n\n\t\treturn iciA ;\n\t}", "title": "" }, { "docid": "dd66cbceef7bf203408791df09281ccf", "score": "0.5721354", "text": "public List<Item__5> getItems() {\n return items;\n }", "title": "" }, { "docid": "abca4bd56d0e0407231d1ba3eae4700c", "score": "0.5718821", "text": "private String getAttributeListString() {\n\t\tStringBuilder builder = new StringBuilder();\n\n\t\tbuilder.append(getNumericString(\"spotId\"));\n\t\tbuilder.append(getNumericString(\"minBreakHeight\"));\n\t\tbuilder.append(getNumericString(\"maxBreakHeight\"));\n\t\tbuilder.append(getNumericString(\"fadedRating\"));\n\t\tbuilder.append(getNumericString(\"solidRating\"));\n\t\tbuilder.append(getNumericString(\"primarySwellHeight\"));\n\t\tbuilder.append(getNumericString(\"primarySwellPeriod\"));\n\t\tbuilder.append(getAttributeString(\"compassDirection\",\n\t\t\t\tArrays.toString(CompassDirection.values())));\n\t\tbuilder.append(getNumericString(\"windSpeed\"));\n\t\tbuilder.append(getAttributeString(\"windDirection\",\n\t\t\t\tArrays.toString(CompassDirection.values())));\n\t\tbuilder.append(getNumericString(\"weather\"));\n\t\tbuilder.append(getNumericString(\"temperature\"));\n\t\tbuilder.append(\"@attribute show {yes,no}\");\n\n\t\treturn builder.toString();\n\t\t}", "title": "" }, { "docid": "15649649d1cd5ae440c11c057679bb51", "score": "0.57165366", "text": "List<Item> getAllItems();", "title": "" }, { "docid": "172259dddb2e4f15314bc9edd961e94d", "score": "0.5710112", "text": "public Items getItemList() {\n return holds;\n }", "title": "" }, { "docid": "1b88689ca99c6303b6292cbc4fbd3355", "score": "0.5707405", "text": "public String getItemNameList()\n {\n return itemNameList;\n }", "title": "" }, { "docid": "e55404ddeffe1452e00859bbf93d8e27", "score": "0.5705104", "text": "public List<Item> listItems();", "title": "" }, { "docid": "7349ac6658c90bedede66a5a7be99b5b", "score": "0.5700499", "text": "public String getItemListEntryWithdrawn(final Map<String, Object> properties) throws WebserverSystemException {\r\n\r\n return getXml(ITEM_LIST_ENTRY_WITHDRAWN_RESOURCE_NAME, ITEM_LIST_ENTRY_WITHDRAWN_TYPE_PATH, properties);\r\n }", "title": "" }, { "docid": "011e79d07ad332db2894219e06af3a24", "score": "0.56925404", "text": "public java.util.List<java.lang.Integer>\n getGrantedItemDefsList() {\n return grantedItemDefs_;\n }", "title": "" }, { "docid": "af49c0268a43caa7283c2d2aa8b251a1", "score": "0.5679623", "text": "public List<String> getAdditionalInfo(){\n\n List<String> info = new ArrayList<>();\n info.add(\"Number of Entries: \" + currentUserData.numberOfEntries());\n info.add(\"Search Range: \" + currentUserData.getSearchRange());\n info.add(\"Maximum Weight: \" + currentUserData.getMax() + \" lbs.\");\n info.add(\"Minimum Weight: \" + currentUserData.getMin()+ \" lbs.\") ;\n info.add(\"Average Weight: \" + currentUserData.getAverage() + \" lbs.\");\n info.add(\"Greatest Fluctuation in Weight: \" + currentUserData.getLargestFluctuation() + \" lbs.\");\n\n return info;\n }", "title": "" }, { "docid": "6836e5e96da781ffd983ee072f643c75", "score": "0.5671633", "text": "public List getItems(Items items);", "title": "" }, { "docid": "c961fa2811af659bebbc9a4aaeb38a9d", "score": "0.5660856", "text": "public String toString(){\n\tString list = \"\";\n\tfor(WorkOrderItem workOrderItem : checkList)\n\t{\n\t\tlist = list + \"- \" + workOrderItem.getDescription() + \" \" + workOrderItem.getPrice() + \"\\n\";\n\t\t}\n\t\treturn list;\n\t}", "title": "" }, { "docid": "28e639e5594feb0542ace689c62b1102", "score": "0.5654786", "text": "public ArrayList<String> getItemNameList(){ return itemNameList; }", "title": "" }, { "docid": "1df685068f356355bfab27540fa9b859", "score": "0.5653516", "text": "public List<TubeItem> getItems();", "title": "" }, { "docid": "28bf7862af9dceba4a5d30c9868456b5", "score": "0.56488067", "text": "public java.util.List<com.nkm.framework.resource.data.ShuiguoBytes.SHUIGUO> getItemsList() {\n return items_;\n }", "title": "" }, { "docid": "364b9d8fa90ff2643b894d22c30e52f9", "score": "0.5645509", "text": "public static InventoryItems[] createInventoryList() {\n InventoryItems[] inventory = \r\n new InventoryItems[Constants.NUMBER_OF_INVENTORY_ITEMS];\r\n \r\n InventoryItems typewriter = new InventoryItems();\r\n typewriter.setDescription(\"Typewriter\");\r\n inventory[Item.typewriter.ordinal()] = typewriter;\r\n \r\n return inventory;\r\n }", "title": "" }, { "docid": "8ea9d932a94f6577f446a6a9ac1913a6", "score": "0.5644999", "text": "public String toString(){\n\t\tStringBuilder result = new StringBuilder(\"\\n\");\n\t\tfor (Item item : itemList){\n\t\t\tresult.append(item.toString()+\"\\n\");\n\t\t}\n\t\treturn result.toString();\n\t}", "title": "" }, { "docid": "f37a15dc491eea6602c0ae38aeb542e1", "score": "0.56429154", "text": "public static void loadCustomMiscellaneousItemsList() {\n\t\tMain.customMiscellaneousItemsList.add(ItemsPlus.obsidianInfusedWater);\n\t\t\n\t\t\n\t\t// legendary items\n\t\t\n\t}", "title": "" }, { "docid": "a105bca761936996d42391b90023d5a3", "score": "0.56377745", "text": "private ArrayList<Item> generateItemsList() {\n String itemNames[] = getResources().getStringArray(R.array.items_name);\n String itemDescriptions[] = getResources().getStringArray(R.array.item_description);\n\n ArrayList<Item> list = new ArrayList<>();\n\n for (int i = 0; i < itemNames.length; i++) {\n list.add(new Item(itemNames[i], itemDescriptions[i]));\n }\n\n return list;\n }", "title": "" }, { "docid": "69e3876d822254390d82e13c51d578cf", "score": "0.56290746", "text": "@Override\n public Map<String, String> listWx() {\n Map<String, String> data = new HashMap<>();\n /*for (TinymallSystem system : systemList) {\n data.put(system.getKeyName(), system.getKeyValue());\n }*/\n return data;\n }", "title": "" }, { "docid": "d83cb25ea40071a56a40b4d6780c831f", "score": "0.5624206", "text": "public String toString(){\n\t\tString contents = \"\";\n\t\tfor(int i = 0; i < numberOfItems(); i++){\n\t\t\tcontents += this.items[i].getName() + \" \" + this.amount[i] + \"X, \";\n\t\t}\n\t\tif(contents == \"\"){\n\t\t\tcontents = \"No Items\";\n\t\t}\n\t\treturn contents;\n\t}", "title": "" }, { "docid": "c06f4d1b693fd4ac0a142aba9ed2753c", "score": "0.5619126", "text": "public abstract List<String> getItemKeys();", "title": "" }, { "docid": "441e6941e9174b8b83cb4701303867e2", "score": "0.56137156", "text": "@GET\n @Path(\"/item/get\")\n @Produces(MediaType.APPLICATION_JSON)\n public List<Item> viewAllItems() {\n return userSessionLocal.listAllItems();\n }", "title": "" }, { "docid": "0ea1d67f2c736556c969c0fdae4ae9e5", "score": "0.56111646", "text": "public ArrayList<Items> showItems() {\n\t\t//get the items.\n\t\t\n\t\tArrayList<Items> items=new ArrayList<Items>();\n\t\t//if empty\n\t\tif(this.items.isEmpty()==false) {\n\t\t\t//print items the player currently has.\n\t\t\t\n\t\t\t\n\t\t\tfor(Items i:this.items.keySet()) {\n\t\t\t\n\t\t\t\titems.add(i);\n\t\t\t\t// print out the name of each item\n\t\t\t\tif(this.items.get(i)!=0){\n\t\t\t\t\tSystem.out.println(\"-> \"+i.getPlaceDescription());\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn items;\n\t}", "title": "" }, { "docid": "ca5bceb02251bac6f2fce00febf49fbe", "score": "0.5607585", "text": "public abstract Map<String, ItemInfo> getAllItemsData(BotDefinition bot);", "title": "" }, { "docid": "b1de583a345196c1a840aa56488eef7d", "score": "0.5603852", "text": "private void itemizedList(){\r\n\t\tdouble amt = 0, price = 0;\r\n\t\t// Fill-in Code\r\n\t\tint check=0;\r\n\t\tfor(int i=0;i<cheese.length;i++) {\r\n\t\t\tif(cheese[i].getAmount()>0) {\r\n\t\t\t\tSystem.out.printf(\"%.1f lb of %s @ $%.2f = $%.2f\\n\", cheese[i].getAmount(), cheese[i].getName(),cheese[i].getPrice(), cheese[i].getAmount()*cheese[i].getPrice());\r\n\t\t\t}\r\n\t\t}\r\n\t\tfor(int i=0;i<cheese.length;i++) {\r\n\t\t\tif(cheese[i].getAmount()!=0) {\r\n\t\t\t\tcheck+=1;\r\n\t\t\t}\r\n\t\t}\r\n\t\tif(check==0) {\r\n\t\t\tSystem.out.println(\"No items were purchased.\");\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "9d2a2cf10a49d347ecb76414b28cd1f8", "score": "0.55999255", "text": "java.util.List<java.lang.Integer> getItemsList();", "title": "" }, { "docid": "b8e12872810c3dc153c1dc89c0ce2255", "score": "0.5598631", "text": "public String toString() {\n return itemID + \",\" + quantity + \",\" + durability + \",\" + getEnchantmentString();\n }", "title": "" }, { "docid": "52743789ad7ff6c0afe1baf57055f978", "score": "0.55962384", "text": "public static List<String> getValues() {\n List<String> list = new ArrayList<>();\n list.add(\"Waste\");\n list.add(\"Treatable-Muddy\");\n list.add(\"Treatable-Clear\");\n list.add(\"Potable\");\n return list;\n }", "title": "" }, { "docid": "cde3917a6dca2781c28c8fa2dca7f7da", "score": "0.55768013", "text": "public String getHoldings(String itemId) {\r\n\t\treturn \"vols. 1-3\";\r\n\t}", "title": "" }, { "docid": "eb48b581864016f8802ade79765cab5b", "score": "0.5572677", "text": "public String toString(){\r\n\t\treturn this.item+\" - \"+this.expense;\r\n\t}", "title": "" }, { "docid": "0dcc81183fdec2b4223e749adbbc9835", "score": "0.5571577", "text": "com.google.protobuf.ByteString\n getLootListBytes();", "title": "" }, { "docid": "7a52a564b49086959336bf28455d54d1", "score": "0.55707586", "text": "public void printList(){\n System.out.println(\"Inventory: \\n\");\n for(int i = 0; i < medicines.size(); i++ ){\n System.out.println(\"Name: \" + medicines.get(i).getMediName() + \" Amount: \" + medicines.get(i).getAmount() + \" \\n\");\n }\n }", "title": "" }, { "docid": "9694f34fbef4d61273f534c858b690fe", "score": "0.5566565", "text": "@Override\n public Map<String, String> listExpress() {\n Map<String, String> data = new HashMap<>();\n /*for (TinymallSystem system : systemList) {\n data.put(system.getKeyName(), system.getKeyValue());\n }*/\n return data;\n }", "title": "" }, { "docid": "0055e8d10d213004a4a626f320a84c9e", "score": "0.5562232", "text": "java.util.List<io.kubernetes.client.proto.V1beta1Extensions.PodSecurityPolicy> getItemsList();", "title": "" }, { "docid": "73f3a8b39085c43c8c02f669f6bc06fe", "score": "0.55547225", "text": "private ArrayList<String> getPurposes() {\n String path = Environment.getExternalStorageDirectory() + \"/\" + Environment.DIRECTORY_DOCUMENTS + \"/MediaCenterSignIn/purposes.txt\";\n ArrayList<String> purposes = new ArrayList<>();\n\n // read all lines from database\n try (FileReader fr = new FileReader(path);\n BufferedReader br = new BufferedReader(fr)) {\n for (String line; (line = br.readLine()) != null;) {\n purposes.add(line);\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n return purposes;\n }", "title": "" }, { "docid": "cf9d7190c942fcd1ba69876bdab065de", "score": "0.5543918", "text": "public String printItems() {\n String output = \"\";\n int itemNumber = 1;\n for(Product item : itemsInSale) {\n output += \"\\n-------------------- NEW ITEM --------------------\\n\";\n output += \"Item #\" + (itemNumber++) + \"\\n\";\n output += item.getDescription() + \"\\n\";\n output += String.format(\"Cost: $%.2f\" , item.getCost());\n }\n return output;\n }", "title": "" }, { "docid": "88c9a670aa8874548136ae6428aaa421", "score": "0.55437094", "text": "com.google.ccc.hosted.marketplace.v2.LicenseNotification.Expiries getExpiries(int index);", "title": "" }, { "docid": "ad3745a759e5288adf41b8aa94c71558", "score": "0.5542813", "text": "public Map<String, String> getUsableInventory() {\n\t\tMap<String, String> picsToPaths = ResourceLoader.load(Constant.itemTypeTag, Constant.imagePropertyFile);\n\t\tMap<String, String> items = new HashMap<String, String>();\n\t\t\n\t\tfor (PickupObjectDef pickUp : myInventory.keySet()) {\n\t\t\tif (pickUp.actions.size() > 0) items.put(pickUp.name, picsToPaths.get(pickUp.objName));\n\t\t}\n\t\tConstant.LOG(this.getClass(), \"All inventory: \" + items.toString());\n\t\treturn items;\n\t}", "title": "" }, { "docid": "52eacf3203828725bf5a326ce529dbdd", "score": "0.5541677", "text": "List<Bid> getBids(Item item);", "title": "" }, { "docid": "5478978ce7b3b0fc9c9a0f9899c90f3d", "score": "0.55410665", "text": "public java.util.List<io.kubernetes.client.proto.V1beta1Extensions.Ingress> getItemsList() {\n if (itemsBuilder_ == null) {\n return java.util.Collections.unmodifiableList(items_);\n } else {\n return itemsBuilder_.getMessageList();\n }\n }", "title": "" }, { "docid": "aa6d0a01f7e1d2a21fbff142779ac099", "score": "0.553787", "text": "java.util.List<io.kubernetes.client.proto.V1beta1Extensions.NetworkPolicy> getItemsList();", "title": "" }, { "docid": "91bafece4a7263a429a7188ae2549ddb", "score": "0.5537032", "text": "void listInventory() {\n\t\tSystem.out.println(\"--------------------------------------\");\n\t\tSystem.out.println(\"Video Name | Checkout Status | Rating\");\n\t\tfor(int i=0;i<count;i++)\n\t\t\tSystem.out.println(store[i].getName()+\"\\t|\" +store[i].getCheckout()+ \"\\t|\"+ store[i].getRating());\n\t\tSystem.out.println(\"--------------------------------------\");\n\t\t\n\t\t\n\t}", "title": "" }, { "docid": "0912834e852ba130c51f3263f608b99b", "score": "0.5532933", "text": "public String[] getitemlist(){\n\n\t\tString[] outstringarray = new String[getsize()];\n\t\tfor(int i=0; i< getsize(); i++){\n\t\t\t\n\t\t\tString outstring = \"\";\n\t\t\toutstring = outstring + getitemname(i);\n\t\t\toutstring = outstring + \"\\t\\t.......\" +Double.toString(getitemcost(i));\n\t\t\toutstringarray[i] = outstring;\n\t\t}\n\t\t//System.out.println(\"total outstringarray\"+Arrays.toString(outstringarray));\n\t\treturn outstringarray;\n\t}", "title": "" }, { "docid": "009a71cb4eaf65b22eb503144100c8f0", "score": "0.55273837", "text": "int getGrantedItemDefs(int index);", "title": "" }, { "docid": "4576ac7c60eb204f0b50217ca7a7ed3b", "score": "0.5521045", "text": "java.util.List<java.lang.Integer> getItemDefsList();", "title": "" }, { "docid": "deee387a38381a2aae32a3e7fe09ef5f", "score": "0.5517536", "text": "public ArrayList<Item> getRequestedItems() {\n return requestedItems;\n }", "title": "" }, { "docid": "00ceec5e08783a3c18d459582da45b81", "score": "0.55137783", "text": "java.util.List<io.opencannabis.schema.commerce.CommercialPurchase.PurchaseKey> \n getTransactionList();", "title": "" }, { "docid": "4889771daab17e6e3b8740375e692ab6", "score": "0.5511341", "text": "public static List<String> getAvailableDroppedItems() {\n\t\tList<String> strings = new ArrayList<String>();\n\t\tfor (Material material : Material.values()) {\n\t\t\tString typ = MbPets.getInstance().getConfig()\n\t\t\t\t.getString(\"disguiseTypes.DROPPED_ITEM.\" + material.name() + \".displaytext\"); \n\t\t\tif (typ != null) {\n\t\t\t\tstrings.add(typ);\n\t\t\t}\n\t\t}\n\t\treturn strings;\n\t}", "title": "" }, { "docid": "818a97dd190ed3724871c75f90677740", "score": "0.5509043", "text": "public String itemsInString() { \n String textItems = \"\";\n if(!bag.isEmpty()){\n for(Item currentItem : bag){\n if(currentItem != null){\n textItems += currentItem.getId();\n }\n if(currentItem == null){\n bag.remove(currentItem);\n }\n } \n }\n return textItems;\n }", "title": "" }, { "docid": "f5210b44eb2df22050639c88e3da4cd2", "score": "0.5504057", "text": "@Override\n\tpublic String toString() {\n\t\treturn \"Item Id \" + this.itemId + \"Item Name\" + this.name + \"Item Price\" + this.price;\n\t\t\n\t}", "title": "" }, { "docid": "cc5585fc859258d2f2f098e2c96e4550", "score": "0.5502288", "text": "@Override\n public String toString() {\n return \"item name: \"+ this.getName() + \" itemDescriptionription of the item: \" + this.getLongDescription();\n }", "title": "" }, { "docid": "c878e91c9d3b8742c2cf031f3fd6283f", "score": "0.55008084", "text": "public java.util.List<io.kubernetes.client.proto.V1beta1Extensions.PodSecurityPolicy.Builder>\n getItemsBuilderList() {\n return getItemsFieldBuilder().getBuilderList();\n }", "title": "" }, { "docid": "e48a343e5b3959ce9b4d11d1f4fe431d", "score": "0.54997534", "text": "public ArrayList<Equipment> getAllItems(){\n\t\treturn itmDb.getAllItems();\n\t}", "title": "" }, { "docid": "13282edac7abfb1ce042547d681023b9", "score": "0.54969263", "text": "private List<ItensListSelect> prepareListOfItem() {\r\n\r\n\t\tList<ItensListSelect> list = new ArrayList<ItensListSelect>();\r\n\r\n\t\tItensListSelect item;\r\n\r\n\t\tfor (String key : NhcBO.getInstance().getItemListDB().keySet()) {\r\n\r\n\t\t\tif(NhcBO.getInstance().getMatrix().get(key) != null && NhcBO.getInstance().getMatrix().get(key).contains(personName)) {\r\n\t\t\t\titem = new ItensListSelect(key, true);\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\titem = new ItensListSelect(key, false);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tlist.add(item);\r\n\t\t}\r\n\r\n\t\treturn list;\r\n\t}", "title": "" }, { "docid": "608c3075812fb22502579ea90aef8918", "score": "0.5494932", "text": "public static final RSItem[] getItems() {\n if (!isOpen()) {\n return Items07.empty();\n }\n RSInterface itemsInterface = Interfaces.get(SCREEN_INDEX, ITEMS_INDEX);\n if (itemsInterface != null) {\n RSItem[] items = itemsInterface.getItems();\n if (items != null) {\n for (RSItem item : items) {\n convertToDepositBoxItem(item);\n }\n return items;\n }\n }\n return Items07.empty();\n }", "title": "" }, { "docid": "a71449d83bfd15fb1b3c12af8aafe334", "score": "0.5492928", "text": "java.util.List<java.lang.String>\n getItemNameList();", "title": "" }, { "docid": "99d94e80f17e2ad01a2138c20ccb5ff7", "score": "0.54905367", "text": "public ArrayList<ListItem> getProvisions(){\r\n return provisions ;\r\n}", "title": "" } ]
e3ce049cbe3395f0646e7248bc978d2d
Methode changeant la page courrante a la page suivante
[ { "docid": "0b09ca1a19b01a345396bb9ce0e726b8", "score": "0.0", "text": "public int suivant() {\n\t\tpage++;\n\t\trepaint();\n\t\treturn page;\n\t}", "title": "" } ]
[ { "docid": "7d21a8a6b9760cad6494780e3c737599", "score": "0.75030744", "text": "public void changePage (ProcessPage pp) {\n\t}", "title": "" }, { "docid": "f3b0b2ac4133f4bf8f0ce4f60c724cba", "score": "0.72136074", "text": "public void setPage(Page page) {\n this.page=page;\n }", "title": "" }, { "docid": "9a04e42b45f33f6830aed2fdd67b2433", "score": "0.7176619", "text": "public void changePage(int page) {\r\n\t\t// To know what page the player is currently on, so they can get back to\r\n\t\t// it after toggling\r\n\t\tlastPage = page;\r\n\r\n\t\t// If the Scoreboard is currently toggled it will update, otherwise\r\n\t\t// it'll wait for the next toggle\r\n\t\tif (scoreboard.getObjective(DisplaySlot.SIDEBAR) != null)\r\n\t\t\tgetPage(page).setDisplaySlot(DisplaySlot.SIDEBAR);\r\n\t}", "title": "" }, { "docid": "2a3dc54bcb952c1e803425ddd747c14b", "score": "0.71453965", "text": "public void goToPage(int page);", "title": "" }, { "docid": "4cc735c4d8533da7adc998046edf0ad0", "score": "0.71141106", "text": "public void updatePage () {\n\t}", "title": "" }, { "docid": "7a63bce6dbaf9629e6dddf26bd9cb77c", "score": "0.7062545", "text": "public void setPage(Page page) {\r\n this.page = page;\r\n }", "title": "" }, { "docid": "42876de414a7b18744e86f7de80078ed", "score": "0.6982691", "text": "public void setPage(Page page) {\n this.page = page;\n }", "title": "" }, { "docid": "3ae46a8979ca56303113c20ecd293147", "score": "0.69213444", "text": "public void setPage(int value) {\n this.page = value;\n }", "title": "" }, { "docid": "6d743ccb9c5952670c868d1d2325e0c9", "score": "0.69045913", "text": "public void setPage(Page page) {\n\t\tthis.page = page;\n\t}", "title": "" }, { "docid": "8358de04ee9c39397194a4bf7d75e30d", "score": "0.682702", "text": "public static void updatePage(){\n }", "title": "" }, { "docid": "1d8dda0cdee9c8a9e457c6e25b392a46", "score": "0.67988974", "text": "public static void changePage() {\r\n\t\tSystem.out.print(\"Would you like to change the Status? (Y/N) : \");\r\n\t\trefLoginController.yesNoUserList(sc.next());\r\n\t}", "title": "" }, { "docid": "72c1f1c046ccb9ec862f88824b71111c", "score": "0.6794372", "text": "@Override\n\tpublic void change() {\n\t\tSystem.out.println(\"美工给我变化一个页面\");\n\n\t}", "title": "" }, { "docid": "aa1b7ff78e623c5c06a3fd304bf66842", "score": "0.6692103", "text": "public void setPage(Webpage page) {\n this.page = page;\n }", "title": "" }, { "docid": "b7c6e417c2414b8a655088c4a3fe2bda", "score": "0.6691333", "text": "public void changePage(int page) {\n \tswitch(page) {\n \tcase PAGE_WEB: \t\t\n \t\t//Show the loading popup\n \t\tmProgDialog = ProgressDialog.show(context, \"\", \"Loading\");\n \t\t\n \t\t//Create a separate thread to do the initialization\n \t\tThread libraryInitializationThread = new Thread() {\n \t\t\tpublic void run() {\n \t\t\t\t//Initialize the library\n \t\t\t\tinitLibrary();\n \t\t\t\t\n \t\t\t\t// The library is initialized so let's launch it by notifying our handler\n \t\t\t\t/*if (PayPal.getInstance().isLibraryInitialized()) {\n \t\t\t\t\thRefresh.sendEmptyMessage(INITIALIZE_SUCCESS);\n \t\t\t\t}\n \t\t\t\telse {\n \t\t\t\t\thRefresh.sendEmptyMessage(INITIALIZE_FAILURE);\n \t\t\t\t}*/\n \t\t\t}\n \t\t};\n \t\tlibraryInitializationThread.start();\n \t\tbreak;\n \t}\n }", "title": "" }, { "docid": "3ddc38bef1bb24dd58ccb42209a54968", "score": "0.6690952", "text": "@Override\n\t\tpublic void onPageChangeNotify(int page) {\n\t\t\tif (mConsolSwith.isChecked()) {\n\t\t\t\tmCurrentPage = page;\n\t\t\t\tmHandler.sendMessage(mHandler.obtainMessage(MSG_REFRESH_PAGE, page, page));\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "d454f5ec1accc386dc196bf11364128f", "score": "0.66866124", "text": "@Override\n public void onPageChange() {\n }", "title": "" }, { "docid": "680af4573a2ac335ae70db5e7bf01fce", "score": "0.66661716", "text": "void setPage(Pagination page);", "title": "" }, { "docid": "ee303a62f36c6ed7323413fbb77c9c82", "score": "0.6605279", "text": "protected void refreshPageContent(){}", "title": "" }, { "docid": "b03b1bea1869284adc12a5ab5a760b5c", "score": "0.66043514", "text": "public void setSelPage(RMPage aPage)\n {\n setSelPageIndex(aPage.indexOf());\n }", "title": "" }, { "docid": "9fba2575012d53520c4caa4437d389cd", "score": "0.65995586", "text": "void onPageChange(int position);", "title": "" }, { "docid": "7e99120f4d19701fcd7d610707372151", "score": "0.6556156", "text": "protected void setCurrentPage(PageGUI pageGUI) {\n this.currentPage = pageGUI;\n }", "title": "" }, { "docid": "502a5138ba4137d9684c9f215f794b37", "score": "0.65480554", "text": "private void setPage() {\n\t\tString del = \" \";\n\t\tString[] pictureList = myBook.getCurrentPicture().split(del);\n\n\t\t//Load animation image list\n\t\timageList.clear();\n\t\tfor (int i = 0; i < pictureList.length; i++) {\n\t\t\timageList.add(i, pictureList[i] + \".png\");\n\t\t}\n\t\tstartAnimation(imageList);\n\t\t\n\t\t// This gets the first image\n\t\t/*picFile = new File(dir, \"/mmsr/\" + intID + \"/pic/\" + pictureList[0]\n\t\t\t\t+ \".png\");\n\t\tBitmap bitmap = BitmapFactory.decodeFile(picFile.toString());\n\t\tfinal ImageView imagePage = (ImageView) this\n\t\t\t\t.findViewById(R.id.imageViewPic);\n\t\timagePage.setImageBitmap(bitmap);*/\n\n\t\ttl.removeAllViews(); // clear table layout\n\n\t\tif (pref_en)\n\t\t\taddText(\"EN\", myBook.getScriptByPage(\"EN\", myBook.getCurrentPage()));\n\t\tif (pref_bm)\n\t\t\taddText(\"BM\", myBook.getScriptByPage(\"BM\", myBook.getCurrentPage()));\n\t\tif (pref_cn)\n\t\t\taddText(\"CN\", myBook.getScriptByPage(\"CN\", myBook.getCurrentPage()));\n\t\tif (pref_tm)\n\t\t\taddText(\"TM\", myBook.getScriptByPage(\"TM\", myBook.getCurrentPage()));\n\t}", "title": "" }, { "docid": "63e8dcc12c42d5a9a8ab9228285b511d", "score": "0.6502587", "text": "final void setPageCode(int newPageCode) {\r\n\r\n\tif (newPageCode != CustGwtDataHolder.PAGE_CURR\r\n\t\t&& newPageCode != CustGwtDataHolder.PAGE_NEXT\r\n\t\t&& newPageCode != CustGwtDataHolder.PAGE_PREV) {\r\n\t newPageCode = CustGwtDataHolder.PAGE_CURR;\r\n\t}\r\n\tthis.pageCode = newPageCode;\r\n }", "title": "" }, { "docid": "4a0e6ebab44b3c7d02a2f14b834baa6b", "score": "0.64352983", "text": "public void setPage( final Page p ) {\n m_page = p;\n }", "title": "" }, { "docid": "644b2ec6667a6e64bf2848144bd7d9b1", "score": "0.640375", "text": "public void onClick(View v) {\n pageChange();\n }", "title": "" }, { "docid": "4f180a76ea6f974a6c8c788017cf33c4", "score": "0.63776624", "text": "abstract void setNextPage(com.webobjects.appserver.WOComponent nextPage);", "title": "" }, { "docid": "2e12c682428384f2113914a11e7cb1e2", "score": "0.6373755", "text": "public void nextPage();", "title": "" }, { "docid": "cdc56191f290dc05b51cefb97d4cc0da", "score": "0.6324035", "text": "void onPageChanged(GuiScreen gui, int whatPtr, int lastPage);", "title": "" }, { "docid": "e1ee7d10da092d75d1762cb9f0c55ad9", "score": "0.6305577", "text": "public void setPageSelected(AbstractPage page) {\n \t\tIterator iter = this.getTestEditPart().getChildren().iterator();\n \t\twhile (iter.hasNext()) {\n \t\t\tEditPart part = (EditPart) iter.next();\n \t\t\tif (part instanceof AbstractPageEditPart) {\n \t\t\t\tAbstractPage p = (AbstractPage) part.getModel();\n \t\t\t\tif (p.equals(page)) {\n \t\t\t\t\tpart.setSelected(EditPart.SELECTED_PRIMARY);\n \t\t\t\t}\n \t\t\t\telse {\n \t\t\t\t\tpart.setSelected(EditPart.SELECTED_NONE);\n \t\t\t\t}\n \t\t\t}\n \t\t}\n \t}", "title": "" }, { "docid": "9df2e3011b53e9b1a30670bfa901ab70", "score": "0.6302406", "text": "@Override\r\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tsetPage(page);\r\n\t\t\t}", "title": "" }, { "docid": "dc808b0cd286f3b4f3567601703fd9bd", "score": "0.630116", "text": "public void setCurrentPage(int currentPage) {\n this.currentPage = currentPage;\n }", "title": "" }, { "docid": "dc808b0cd286f3b4f3567601703fd9bd", "score": "0.630116", "text": "public void setCurrentPage(int currentPage) {\n this.currentPage = currentPage;\n }", "title": "" }, { "docid": "ae9d5dcffc9734de5ddb603613d1646a", "score": "0.62864673", "text": "public void showpage() {\n\t\t\n\t}", "title": "" }, { "docid": "bf2f63e0f7fd063ec926c57311b44c5a", "score": "0.6268606", "text": "public abstract void pageManaging();", "title": "" }, { "docid": "423a94886afa2812ef6d805134921153", "score": "0.6251955", "text": "public abstract void hostMenu(int page);", "title": "" }, { "docid": "23779754dfebf073736bda2b39ee8549", "score": "0.6240186", "text": "public void pageShowing();", "title": "" }, { "docid": "5acd306f79f9a9500fa2f8d056205079", "score": "0.6220643", "text": "public void retour() {\r\n\t\tNavigation.redirect(\"index.xhtml\");\r\n\t}", "title": "" }, { "docid": "6b5798543db6212a2a2d4eb6e3b1e58f", "score": "0.621147", "text": "public void selectPage(int page) {\n\t\theader.setText(headers[page] + addText[page]);\n\t\tspecialTransitions(page);\n\t\tremove(buttonPanels[this.page]);\n\t\tadd(buttonPanels[page], BorderLayout.SOUTH);\n\t\trepaint();\n\t\tthis.page = page;\n\t\titemDeselected();\n\t}", "title": "" }, { "docid": "74bbeee34482983d7b84ba69f9b5a6cd", "score": "0.62060285", "text": "public void setCurrentPage (View pageToShow)\n {\n pager.setCurrentItem (pagerAdapter.getItemPosition (pageToShow), true);\n }", "title": "" }, { "docid": "dd70dc05b17457ad8d042183f57acc1a", "score": "0.6196941", "text": "public void setPageNo(int newPageNo) {\r\n\r\n\tif (newPageNo <= 0) {\r\n\t newPageNo = 1;\r\n\t}\r\n\tpageNo = newPageNo;\r\n\tthis.setPageCode(CustGwtDataHolder.PAGE_CURR);\r\n }", "title": "" }, { "docid": "9d64aeaf5e6558f3ff286a67f249b586", "score": "0.61746806", "text": "public void showNextPage() {}", "title": "" }, { "docid": "5befafde2578bdfcc1fbc8ad6b2f647f", "score": "0.6168768", "text": "public void commitPage();", "title": "" }, { "docid": "0c09684f009ca13b95f119b007355c00", "score": "0.61686546", "text": "public void firstPage();", "title": "" }, { "docid": "3741c29ca0d7fb598398518c1fd200cb", "score": "0.61407334", "text": "@Override\n public int getPage() {\n return page;\n }", "title": "" }, { "docid": "272945f3ee14df24129c708a44ba858e", "score": "0.61271894", "text": "public void setCurrentPage(int currentPage) {\n\t\tthis.currentPage = currentPage;\n\t}", "title": "" }, { "docid": "4635b8c7879f8cd4b3769de75b4d53d0", "score": "0.61212796", "text": "void goToNextPage();", "title": "" }, { "docid": "9760d28361f460c1483fc07d73c964d5", "score": "0.6119052", "text": "public void setPage(int page) {\n\t\tif (!panes.containsKey(page))\n\t\t\tthrow new ArrayIndexOutOfBoundsException(\"page outside range\");\n\t\tthis.page = page;\n }", "title": "" }, { "docid": "a74d40234f977e7e7836b61185a27a6f", "score": "0.6115474", "text": "private void updatePage(String title, int page)\n {\n imgURL = getClass().getResource(\"/images/\" + title + page + \".jpg\");\n imgLabel.setIcon(new ImageIcon(imgURL, title));\n }", "title": "" }, { "docid": "a1550e84815de93a8c2ec7f0595435db", "score": "0.6113141", "text": "public void setCurrentPage(java.lang.String currentPage) {\n this.currentPage = currentPage;\n }", "title": "" }, { "docid": "44895b40fbb54e68d7d96d67129a1435", "score": "0.609826", "text": "@Override\n\tpublic void refreshPage() {\n\n\t}", "title": "" }, { "docid": "3b59c4299eab07e66bc5609c7a5d30bb", "score": "0.60830426", "text": "public void setUserPage(String userPage) {\n threadConfig.get().setUserPage(userPage);\n }", "title": "" }, { "docid": "c3c17ae7b19a4675294da3e34adf02e9", "score": "0.6073944", "text": "public abstract void groupMenu(int page);", "title": "" }, { "docid": "8dc71e9cfb73719fea2c2efa0400f31e", "score": "0.60727745", "text": "@Override\n public void editCurrentConcert() {\n Intent intent = new Intent(concertPageModel.this, editPageModel.class);\n startActivity(intent);\n }", "title": "" }, { "docid": "db1f7b4b1c8c1ea12eb7aacf6a7ca2cd", "score": "0.60725355", "text": "public static String changePage(String url,String page) throws Exception{\r\n\t\t// 得到浏览器对象,直接New一个就能得到,现在就好比说你得到了一个浏览器了 \r\n\t WebClient webclient = new WebClient(); \r\n\t \r\n\t // 这里是配置一下不加载css和javaScript,配置起来很简单,是不是 \r\n\t webclient.getOptions().setCssEnabled(false); \r\n\t webclient.getOptions().setJavaScriptEnabled(true); \r\n\t // 启动客户端重定向\r\n\t \t//webclient.getOptions().setRedirectEnabled(true);\r\n\t \t\t\r\n\t \t// js运行错误时,是否抛出异常\r\n\t\twebclient.getOptions().setThrowExceptionOnScriptError(false);\r\n\t\t// 设置超时\r\n\t\t//webclient.getOptions().setTimeout(50000);\r\n\t \r\n\t // 做的第一件事,去拿到这个网页,只需要调用getPage这个方法即可 \r\n\t HtmlPage htmlpage = webclient.getPage(url); \r\n\t //等待后台js加载完毕\r\n\t webclient.waitForBackgroundJavaScript(100);\r\n\t //执行翻页js函数\r\n\t htmlpage.executeJavaScript(\"__doPostBack('AspNetPager1','\"+page+\"');\");\r\n\t \r\n\t \r\n\t String result = htmlpage.asXml(); \r\n\t \r\n\t //System.out.println(result);\r\n\t webclient.close();\r\n\t return result;\r\n\t}", "title": "" }, { "docid": "6e6cfa2c61c1ac3e8a4952eb0eca1da9", "score": "0.6071323", "text": "@Override\n public void onPageChanged(int page, int pageCount) {\n }", "title": "" }, { "docid": "cf7a0d3beaa96a54cbec96959dfc5286", "score": "0.606846", "text": "public void pageBack();", "title": "" }, { "docid": "d22190623dc68abaec59ecd31b2a02ea", "score": "0.60549", "text": "@Override\n\t\tpublic void onPageSelected(int newPosition) {\n\n\t\t}", "title": "" }, { "docid": "c145fea6d542f07f139576cbad60f543", "score": "0.60297394", "text": "public void previousPage();", "title": "" }, { "docid": "c20066740e15a8516b0477b11ffbc896", "score": "0.5992442", "text": "public static void refreshPage() {\n FacesContext facesContext = FacesContext.getCurrentInstance();\n String refreshpage = facesContext.getViewRoot().getViewId();\n ViewHandler viewHandler = facesContext.getApplication().getViewHandler();\n UIViewRoot viewroot = viewHandler.createView(facesContext, refreshpage);\n viewroot.setViewId(refreshpage);\n facesContext.setViewRoot(viewroot);\n\n }", "title": "" }, { "docid": "cf290487b825731182a1d1e3b141c251", "score": "0.59860784", "text": "public abstract String goToListPage();", "title": "" }, { "docid": "1b99dfeeadc47f65afa0c589ccb5114b", "score": "0.59776545", "text": "void beginPage();", "title": "" }, { "docid": "5353be384525482dc41d98b2d289b629", "score": "0.59677786", "text": "private void updatePage(int selectedPage) {\n updateFab(selectedPage);\n updateSnackbar(selectedPage);\n }", "title": "" }, { "docid": "5d18be36e98b7a69347aebbd9ca1078a", "score": "0.5950435", "text": "void pageReset() {\n }", "title": "" }, { "docid": "cbca69c84e127ceecdb5a28047852e99", "score": "0.5945116", "text": "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tpageNo =1;\n\t\t\t\tbtn_1.setTextColor(getResources().getColor(R.color.black));\n\t\t\t\tbtn_2.setTextColor(getResources().getColor(R.color.black));\n\t\t\t}", "title": "" }, { "docid": "6fddfe97ec54d7ba335f9a6e4a21d5cc", "score": "0.5925824", "text": "private void reloadPage(Component component) {\n component.continueToOriginalDestination();\n /*pageURL = getPagePublicURL();\n RedirectPage redirectPage = new RedirectPage(pageURL);\n component.setResponsePage(redirectPage);*/\n\n// throw new RestartResponseAtInterceptPageException(redirectPage);\n }", "title": "" }, { "docid": "e14c4f9c703fd56b743a2440b6a2de85", "score": "0.5921121", "text": "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tpageNo =1;\n\t\t\t\tbtn_2.setTextColor(getResources().getColor(R.color.black));\n\t\t\t\tbtn_1.setTextColor(getResources().getColor(R.color.black));\n\t\t\t}", "title": "" }, { "docid": "3999227bfa8179e9279f3befcf6b3e38", "score": "0.5920285", "text": "public void pagar(){\n }", "title": "" }, { "docid": "d722e920d5463fedf79cddebe1a84b8f", "score": "0.5917226", "text": "void setNumberOfPages(int numberOfPages);", "title": "" }, { "docid": "3b7742f87db8b43d8d8cefc8bf6d9939", "score": "0.59169316", "text": "void goToPreviousPage();", "title": "" }, { "docid": "16c91c06d91f0c5bd66fa54048062ffe", "score": "0.59169084", "text": "public void flipToPage(int pageNumber) {\n FileResource fileResource\n = new FileResource(listOfPdfPages.get(pageNumber - 1));\n Image image = new Image(null, fileResource);\n image.setWidth(\"100%\");\n\n courseworkPagePanel.setContent(image);\n currentPage = pageNumber;\n pageField.setValue(\"\" + currentPage);\n }", "title": "" }, { "docid": "4ea187ffdf8cd129c54231096bf5f0d4", "score": "0.59164405", "text": "public Builder setPage(int value) {\n \n page_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "5c4f14d39d08b7d543235b83bf15138f", "score": "0.59086025", "text": "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tpageNumber++;\n\t\t\t\tpage = (\"page/\" + pageNumber + \"/\");\n\t\t\t\tsetPageText(buttons);\n\t\t\t}", "title": "" }, { "docid": "43c2aeece8d2f9f15469cad4385a8d71", "score": "0.59012604", "text": "public void setPagenum(Integer pagenum) {\n this.pagenum = pagenum;\n }", "title": "" }, { "docid": "ed73ab731871f6cea447e66052256bd1", "score": "0.5871825", "text": "void setCanUpdatePages(boolean b);", "title": "" }, { "docid": "94b23b032b5939f978f9fffee7f88b78", "score": "0.5867901", "text": "private void switchToPage() {\n mainPage.setPageName(MainPage.AUTHENTICATION_PAGE);\n mainPage.getMainFrame().setTitle(MainPage.AUTHENTICATION_PAGE);\n mainPage.getLayout().show(mainPage.getMainPanel(), MainPage.AUTHENTICATION_PAGE);\n }", "title": "" }, { "docid": "afdac391c17645fae2cda373ad13001b", "score": "0.58572906", "text": "protected abstract String getTargetPage();", "title": "" }, { "docid": "dbf2873929d2690c15d52b9518c3325d", "score": "0.5855647", "text": "public void setPage(int position) {\n currentPage = position;\n view.getCheckedBtn(position).setChecked(true);\n\n //change some infos of the toolbar\n if (position == 0) {\n view.setToolBarRightBtnVisible(true);\n } else {\n view.setToolBarRightBtnVisible(false);\n }\n\n }", "title": "" }, { "docid": "6f6883030b3781913f97d8bd5a3be13e", "score": "0.5787544", "text": "public static void willchangeToMypage(MainFrame mf, JPanel willchange, JPanel mypage) {\n\t\tmf.add(mypage);\r\n\t\tmf.remove(willchange);\r\n\t\tmf.repaint();\r\n\t}", "title": "" }, { "docid": "9415340e2e4795e428345f869e5e0fad", "score": "0.5785925", "text": "void beginPage(String name);", "title": "" }, { "docid": "e04421e00331b0316299ca22e7cf3d77", "score": "0.5782113", "text": "public void changeCurrentPage(String target){\n if(target == \"dial\"){\n // go to dial page\n PhoneDial panel = new PhoneDial();\n NewWindowFrame frame = new NewWindowFrame(panel);\n frame.setVisible(true);\n ((JFrame) SwingUtilities.getWindowAncestor(this)).dispose();\n }\n else if(target == \"contacts\"){\n // go to contacts page\n ContactsPage panel = new ContactsPage();\n NewWindowFrame frame = new NewWindowFrame(panel);\n frame.setVisible(true);\n ((JFrame) SwingUtilities.getWindowAncestor(this)).dispose();\n }\n else if(target == \"logs\"){\n // go to call logs page\n CallLogs panel = new CallLogs();\n NewWindowFrame frame = new NewWindowFrame(panel);\n frame.setVisible(true);\n ((JFrame) SwingUtilities.getWindowAncestor(this)).dispose();\n }\n }", "title": "" }, { "docid": "b68e6d7b7c989fad33baae8b5e2548d4", "score": "0.57733303", "text": "public void back(){\n changePage(PoliciaPages.MAIN_PAGE_DEL);\n }", "title": "" }, { "docid": "7bedc7d56995ce87a24fb5ab929943fd", "score": "0.5771608", "text": "@Override\n\tpublic void onNextPage(BasePage page) {\n\t}", "title": "" }, { "docid": "0f56c5d38dcd1e47f11b89f7f35845af", "score": "0.57685065", "text": "@SuppressWarnings(\"unchecked\")\r\n\t\tpublic void selectPage(ActionRequest request, ActionResponse response) throws Exception\r\n\t\t{\r\n\t\t\t/* every time a page is selected by a user, the number of the page he/she is viewing\r\n\t\t\t * is stored in a session variable, together with the userId \r\n\t\t\t * so for example if a user wants to create a new record and then he/she cancels the action\r\n\t\t\t * he/she comes back to the previous selected page \r\n\t\t\t * \r\n\t\t\t * this is also created not to have page view conflict when two or more user are using the same portal\r\n\t\t\t */\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tPortletSession session = request.getPortletSession();\r\n\t\t\tint showPage = Integer.parseInt(ParamUtil.getString(request, \"showPage\"));\r\n\r\n\t\t\tArrayList<PageMemory> myPages = new ArrayList<PageMemory>();\r\n\t\t\t\r\n\t\t\tif ((ArrayList<PageMemory>) session.getAttribute(\"PAGES\", PortletSession.APPLICATION_SCOPE) != null)\r\n\t\t\t{\r\n\t\t\t\tmyPages = (ArrayList<PageMemory>) session.getAttribute(\"PAGES\", PortletSession.APPLICATION_SCOPE);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tUserServiceUtil myUSU = new UserServiceUtil();\r\n\t\t\t@SuppressWarnings(\"static-access\")\r\n\t\t\tUser myUser = myUSU.getCurrentUser();\r\n\t\t\tSystem.out.println(myUser.getUserId());\r\n\t\t\t\r\n\t\t\tboolean pageCheck = false; // for each user we check if the user has recently viewed a \"BUSINESS\" page\r\n\t\t\t\r\n\t\t\tfor (int i = 0; i < myPages.size(); i++)\r\n\t\t\t{\r\n\t\t\t\tif (myPages.get(i).getPageMemo().equals(\"BUSINESS\"))\r\n\t\t\t\t{\r\n\t\t\t\t\tif (myPages.get(i).getUserId() == myUser.getUserId())\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tpageCheck = true;\r\n\t\t\t\t\t\tmyPages.get(i).setPageValue(showPage); // the value of the new page for the current user is set\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t // the previous value is removed\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t // so for each user we store just the last \"BUSINESS\" page visited\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// if the user has seen no \"BUSINESS\" pages in this session, a new value is created with the current page value\r\n\t\t\tif (pageCheck == false) \r\n\t\t\t{\r\n\t\t\t\tPageMemory myPage = new PageMemory(myUser.getUserId(), \"BUSINESS\", showPage);\r\n\t\t\t\tmyPages.add(myPage);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tsession.setAttribute(\"PAGES\", myPages, PortletSession.APPLICATION_SCOPE); // session variable is updated\r\n\t\t\t\t\t\r\n\t\t\tgetBusinessRecords(request, response); // refreshing view jsp\r\n\t\t}", "title": "" }, { "docid": "d6d8cdf81e25ef6f30851228a02660da", "score": "0.5768501", "text": "private void updateUi() {\n int index = mCurrentPage.getIndex();\n int pageCount = mPdfRenderer.getPageCount();\n mButtonPrevious.setEnabled(0 != index);\n mButtonNext.setEnabled(index + 1 < pageCount);\n// getActivity().setTitle(getString(R.string.app_name_with_index, index + 1, pageCount));\n }", "title": "" }, { "docid": "cae7ace7f30d662ff9b2af5be47fb377", "score": "0.576506", "text": "@Override\r\n\tpublic void onPageSelected(int arg0) {\n\r\n\t}", "title": "" }, { "docid": "a7e225f56972fab41640ad78830e6d7a", "score": "0.5757527", "text": "private void navigation() {\n ItemStack noPage = ItemStackBuilder.init(Material.RED_STAINED_GLASS).build();\n ItemStack nextPage = ItemStackBuilder.init(Material.GREEN_STAINED_GLASS).name(Colors.color(\"&a&lNastepna strona\")).build();\n ItemStack prevPage = ItemStackBuilder.init(Material.RED_STAINED_GLASS).name(Colors.color(\"&c&lPoprzednia strona\")).build();\n\n Consumer<InventoryClickEvent> nextPageClick = e -> {\n e.setCancelled(true);\n page++;\n display();\n };\n Consumer<InventoryClickEvent> prevPageClick = e -> {\n e.setCancelled(true);\n page--;\n display();\n };\n\n if (this.page == 0)\n gui.addItem(new Pos(0, 2).slot(), noPage, e -> e.setCancelled(true) );\n else\n gui.addItem(new Pos(0, 2).slot(), prevPage, prevPageClick );\n\n if (prefixes.size() > this.page*21 + 21)\n gui.addItem(new Pos(8, 2).slot(), nextPage, nextPageClick );\n else\n gui.addItem(new Pos(8, 2).slot(), noPage, e -> e.setCancelled(true) );\n }", "title": "" }, { "docid": "bf73524b63d49c7fd405b2003d49c24d", "score": "0.57520264", "text": "public void landingPage() {\n\t\t\n\t}", "title": "" }, { "docid": "0bae77bb57355f07aa1eca79fea53276", "score": "0.57310826", "text": "@Override\n\tpublic void onPageSelected(int arg0) {\n\t\tsetTabChange(arg0);\n\t}", "title": "" }, { "docid": "68dfcec2f528443328c1d0dd63d61ad3", "score": "0.57306314", "text": "protected void changeViewPager() {\n\t\tif(viewPager != null){\n\t\t\tint count = viewPager.getCurrentItem();\n\t\t\tviewPager.setCurrentItem(count+1,true);\n\t\t}\n\t}", "title": "" }, { "docid": "cbed5f5bd5c022ea898d7bfca403bbea", "score": "0.57159734", "text": "public void pageShown();", "title": "" }, { "docid": "04708852073c8ed0ad21c38504b9c163", "score": "0.57078457", "text": "@Override\r\n public void pageStepBwd() {\n }", "title": "" }, { "docid": "ce2714f56b5242c62e0fd47b4eb9619c", "score": "0.5706522", "text": "protected void updatePagination(Document doc) {\n \tString myPage = \"1\";\n \tString label;\n \t\n \t// Grab page number\n \ttry {\n \t\tElements pageNumbers = doc.select(\"div[class=pagenav]\");\n \t\tElements pageLinks = pageNumbers.get(0).select(\"td[class^=vbmenu_control]\");\n \t\tmyPage = pageLinks.text().split(\" \")[1];\n \t\tfinalPage = pageLinks.text().split(\" \")[3];\n \n \t} catch (Exception e) {\n \t\tmyPage = \"1\";\n \t\tfinalPage = \"1\";\n \t} finally {\n \t\tfinal TextView pagination = (TextView)findViewById(R.id.paginationText);\n \tlabel = pagination.getText().toString(); \t\n \tlabel = label.replace(\"X\", myPage);\n \tlabel = label.replace(\"Y\", finalPage);\n \tfinal String finalizedLabel = label;\n \t\trunOnUiThread(new Runnable() {\n \t public void run() {\t\n \t \tpagination.setText(finalizedLabel);\n \t }\n \t \t});\n \t}\n \t\n \tenforceVariants(Integer.parseInt(myPage), Integer.parseInt(finalPage));\n }", "title": "" }, { "docid": "e153790efef80c4be20bca49b89e317c", "score": "0.5704788", "text": "public void goToThisPage() {\n\t\teUtil.switchToNewestWindow();\n\t}", "title": "" }, { "docid": "d234b98de339d095bccd9edd2efa992a", "score": "0.5704456", "text": "public static void homepagemove() {\n\t\tsearch_book_pageImpl.homepagemove();\n\t\t\n\t}", "title": "" }, { "docid": "caf88bf0ec9b5426bc01e95b27e8282f", "score": "0.57010776", "text": "private void setCurPoint(int index) {\n mCurrentpage = index;\n }", "title": "" }, { "docid": "f29a037ffd7913b3e8704b8f515562de", "score": "0.56997067", "text": "public void goTo(){\r\n\t\r\n}", "title": "" }, { "docid": "7b6e959ee6246b99bc159cb31b87f6d8", "score": "0.56918675", "text": "public static void modifiedToMain(MainFrame mf, JPanel mypage, JPanel willChange) {\n\t\tmf.add(willChange);\r\n\t\tmf.remove(mypage);\r\n\t\tmf.repaint();\r\n\t}", "title": "" }, { "docid": "463fcf8dc2cf8a2f42fc469607724d26", "score": "0.56794035", "text": "@Override\n public void onPageSelected(int arg0) {\n }", "title": "" }, { "docid": "a4e2d48ee8a7ee6d6b827c93716578ad", "score": "0.5676071", "text": "public void setPageNo(java.lang.Integer value) {\n this.pageNo = value;\n }", "title": "" }, { "docid": "6349bd0187b694c8be60e52453817c7b", "score": "0.56699044", "text": "@Override\r\n\t\tpublic void onPageSelected(int arg0) {\n\t\t}", "title": "" }, { "docid": "3ee1cd4daf48d3c97b08222789952e6a", "score": "0.56595653", "text": "public void setDefaultPage(int defaultPage2) {\n this.defaultPage = defaultPage2;\n }", "title": "" } ]
ab4863ea944fe1daabb14b765a37e8aa
Print the exception and generates the bug report
[ { "docid": "8c13bdebc51df66d3f301ed472a9063f", "score": "0.658972", "text": "public void printExceptionInMorphing(Exception e,String absoluteWorkingDirectoryPath, String initialPath, String finalPath) {\n System.out.println(\"************Exception in the morphing process occurs *********\");\n System.out.println(\"\\nPlease report the issue at https://github.com/bonnyfone/vectalign \\n \");\n System.out.println(\"\\nWe have generate the bug report file under the name MorphingBugReport \\n \");\n File file=new File(absoluteWorkingDirectoryPath,\"MorphingBugReport\");\n try {\n if(!file.exists()){\n file.createNewFile();\n }\n //then write in it\n BufferedWriter buff=new BufferedWriter(new FileWriter(file));\n\n buff.write(\"Please report the issue at https://github.com/bonnyfone/vectalign\");\n buff.write(\"Hello Mr Stefano Bonetta \");\n //TODO add gitRef\n buff.write(\"I am using your tool throught the librairy AnimatedVectorTool of Mathias Seguy (add git ref) and when we try to normalyze those two paths an exception is raised \");\n buff.write(\"Would you please have a look and save my life :)\");\n buff.write(\"InitialPath\"+initialPath);\n buff.write(\"FinalPath\"+finalPath);\n buff.write(\"Thanks again for your project\");\n buff.flush();\n buff.close();\n } catch (IOException e1) {\n e1.printStackTrace();\n }\n }", "title": "" } ]
[ { "docid": "7dc1b41008b99d51c2c0046e04278e8a", "score": "0.68015337", "text": "public void printError(RubyException excp);", "title": "" }, { "docid": "6e03023716840d9cfe1783bcab525bea", "score": "0.6730535", "text": "@Override\n public void exception(Throwable exception) {\n exception.printStackTrace();\n }", "title": "" }, { "docid": "eb38d1339a50fcd7dc4b51d66474b1cb", "score": "0.6589002", "text": "void printerr(Exception exception) {\n\t\tcontext.printerr(exception);\n\t}", "title": "" }, { "docid": "8ae2b55b9ab54f657fd87208e3c5f144", "score": "0.65547764", "text": "@Override\n\tpublic void printStackTrace() {\n\t\tSystem.err.println(\"Exception happened, the cause is \" + reason);\n\t}", "title": "" }, { "docid": "e0156501cd111d5551a1c4416abcd075", "score": "0.6513202", "text": "private void bugWarning(Throwable e) {\n LOGGER.error(\"Bug!\", e);\n }", "title": "" }, { "docid": "e6e1e668e8496f58f493e7c5be6065c3", "score": "0.6478269", "text": "protected void reportException(Exception ex) {\n/* 130 */ LOGGER.warn(\"Exception during compression of '\" + this.source.toString() + \"'.\", ex);\n/* */ }", "title": "" }, { "docid": "f127640a60ac81119eafe5b9b9bb6051", "score": "0.6460443", "text": "@Override\n public void exceptionThrown(Exception e) {\n Exceptions.printStackTrace(e);\n }", "title": "" }, { "docid": "618109b8e476a345c72b05ade849f74d", "score": "0.6308847", "text": "@Override\n public void report(Throwable throwable, String message) {\n }", "title": "" }, { "docid": "273c1f49e9ea10911a41882e1f7a8f82", "score": "0.62872154", "text": "public static ErrorEvent bugReport (ChatEntity source, Throwable ex)\n {\n\treturn new ErrorEvent (source, BUG_REPORT, ex);\n }", "title": "" }, { "docid": "a4cc35067c4324a6ea2dd5a5d158bba4", "score": "0.6268931", "text": "public void ReportException(Exception e) {\n \t\tthis.Exceptions += 1;\n \t\tString msg = \"--Exception Backtrace: \";\n \t\tStackTraceElement[] trace = e.getStackTrace();\n \t\tString message = \"\";\n \t\t\n \t\tif (e.getMessage() != null) {\n \t\t\tString[] msg_lines = e.getMessage().split(\"\\\\n\");\n \t\t\tfor (int i = 0; i <= msg_lines.length -1; i++) {\n \t\t\t\tmessage += msg_lines[i] + \" \";\n \t\t\t}\n \t\t\t\n \t\t\tthis._log(\"(!)Exception raised: \" + message);\n \t\t\t\n \t\t\tfor (int i = 0; i <= trace.length -1; i++) {\n \t\t\t\tString tmp = trace[i].toString();\n \t\t\t\tmsg += \"--\" + tmp;\n \t\t\t}\n \t\t} else {\n \t\t\tmsg = \"Something really bad happened here and the exception is null!!!\";\n \t\t}\n \t\t\n \t\tthis._log(\"(!)\" + msg);\n \t}", "title": "" }, { "docid": "91e2f5c388eb6e53729585e5a6f188dd", "score": "0.6268456", "text": "@Override\n\t\t\tpublic void exception() {\n\n\t\t\t}", "title": "" }, { "docid": "17237f0debfbacdb7f4900c8472f35cc", "score": "0.6214835", "text": "void raisedException(DebuggerException exception);", "title": "" }, { "docid": "6a3f44910581a3c83176b38fa9ef7766", "score": "0.62119013", "text": "private void printSQLException(SQLException e) {\n\t\t\n\t}", "title": "" }, { "docid": "59549e559313f3b38c224505bb5c13ee", "score": "0.61964715", "text": "@Test\n public void testPrintException() {\n List<Throwable> putMeIn = new LinkedList<Throwable>();\n \n IllegalArgumentException iae = new IllegalArgumentException(E1);\n IllegalStateException ise = new IllegalStateException(E2);\n \n putMeIn.add(iae);\n putMeIn.add(ise);\n \n MultiException me = new MultiException(putMeIn);\n \n ByteArrayOutputStream baos = new ByteArrayOutputStream();\n PrintStream writer = new PrintStream(baos);\n \n me.printStackTrace(writer);\n \n writer.close();\n \n String asString = baos.toString();\n \n Assert.assertTrue(asString.contains(E1));\n Assert.assertTrue(asString.contains(E2));\n }", "title": "" }, { "docid": "ee0e52c615c2b02e481e34431834af2d", "score": "0.6178534", "text": "@Override\n public void exception() {\n\n }", "title": "" }, { "docid": "aecfbb4b7b94b8ee3a7fb228f1c21c84", "score": "0.614658", "text": "public void showException(String explanation, Throwable ex);", "title": "" }, { "docid": "578f26571ed7147f44b9f7fa5c561739", "score": "0.6144818", "text": "@Override\n\tpublic void printStackTrace()\n\t{\n\t\tsuper.printStackTrace();\n\t}", "title": "" }, { "docid": "18a86fc941806aa4a9fef42ee90e59fd", "score": "0.61199105", "text": "public static void dump(Exception e) {\n if(Runtime.debuggingEnabled()) {\n System.err.println(\"Message: \" + e.getMessage());\n System.err.print(\"Stack Trace: \");\n e.printStackTrace();\n }\n try {\n FileWriter writer = new FileWriter(Application.Runtime.errorLog(),true);\n writer.write(\"<Error Type=\\\"\" + e.getClass().getName() + \"\\\">\\n\");\n writer.write(\"\\t<Message>\" + e.getMessage() + \"</Message>\\n\");\n writer.write(\"\\t<StackTrace>\\n\");\n for(StackTraceElement elem : e.getStackTrace()) {\n writer.write(\"\\t\\t<Position Class=\\\"\" + elem.getClassName() + \n \"\\\" Method=\\\"\" + elem.getMethodName() + \"\\\" Line=\\\"\" +\n elem.getLineNumber() + \"\\\" File=\\\"\" + elem.getFileName() +\"\\\"/>\\n\");\n }\n writer.write(\"\\t</StackTrace>\\n</Error>\\n\");\n writer.close();\n }\n catch (IOException e1) {}\n \n \n }", "title": "" }, { "docid": "e992b26fad934063d9716cdccc56b0c4", "score": "0.6100053", "text": "public static void main(String[] args) throws NoSuchFieldException, SecurityException {\n\t\t\r\n\t\tCutomizedExceptionClass b=new CutomizedExceptionClass();\r\n\t\tb.getClass().getField(\"tanmayee\");\r\n\t\tTreeSet tr=new TreeSet();\r\n\t\tHashSet hm=new HashSet();\r\n\t\t/*System.out.println(\"I am trying to create my own exception ..\");\r\n\t\ttry {\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tthrow new MyException(\"An exception\");\r\n\t\t} catch (MyException e) {\r\n\t\t\tSystem.out.println(\"caught8\t\");\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\t//e.printStackTrace();\r\n\t\t}\r\n*/\r\n\t}", "title": "" }, { "docid": "5736ed3a6e0b30d7bb1b0e1547651999", "score": "0.609189", "text": "@Test\r\n\tpublic void testReportProblem() {\r\n\t\tnuxtuals.addCar(fordernetExplorer);\r\n\r\n\t\tnuxtuals.processRental();\r\n\t\tnuxtuals.processReturn(true);\r\n\t\t// System.out.println(nuxtuals.repairingCars());\r\n\t\tassertFalse(nuxtuals.hasRepairingCars());\r\n\t\tassertEquals(\"f7404: Microsoft IE (pukeBlue)\\n\",\r\n\t\t\t\tnuxtuals.availableCars());\r\n\t}", "title": "" }, { "docid": "f7b0a122c9e41451ef01bdaaf658edb2", "score": "0.6084201", "text": "public void reportExecutionFailure(Exception exceptionThrown);", "title": "" }, { "docid": "71325280e4cb54976d95825c05b25f48", "score": "0.605836", "text": "public static void main(String[] args) {\n try{\n throw new MyIndexOutOfBoundException(10, 0, 9);\n }catch (Exception ex){\n ex.printStackTrace();\n }\n }", "title": "" }, { "docid": "4aa1db08a8401318d1f605b3ba26a4f7", "score": "0.60498625", "text": "private void fillStackTrace(Throwable ex, PrintWriter pw,FacesContext context) {\n if (null == ex) {\n return;\n }\n \n ex.printStackTrace(pw);\n \n \n // The first time fillStackTrace is called it will always\n // be a ServletException\n if (ex instanceof ServletException) {\n Throwable cause = ((ServletException) ex).getRootCause();\n if (null != cause) {\n pw.println(\"Root Cause:\");\n pw.println(ex.getMessage()); // eu acrescentei\n context.addMessage(null, new FacesMessage(FacesMessage.SEVERITY_FATAL,ex.getMessage(),null)); \n fillStackTrace(cause, pw,context);\n }\n } else {\n // Embedded cause inside the ServletException\n Throwable cause = ex.getCause();\n \n if (null != cause) {\n pw.println(\"Cause:\");\n fillStackTrace(cause, pw,context);\n }\n }\n }", "title": "" }, { "docid": "ed6fc378f66bffb86845f3c76c9e4996", "score": "0.6039729", "text": "public void showError(String op, Exception e) {\n\t\tGUIUtilities.showStackTrace(getAppContext().makeComponent(), e,\n\t\t\t\t\"Please submit a bug report.\\n\\n\" + op);\n\t}", "title": "" }, { "docid": "6e5364e57dec63065d4905c99e7c1fbb", "score": "0.6026485", "text": "public void printError(RubyException excp) {\n \t\tif (excp == null || excp.isNil()) {\n return;\n }\n \n ThreadContext tc = getCurrentContext();\n IRubyObject backtrace = excp.callMethod(tc, \"backtrace\");\n \n PrintStream errorStream = getErrorStream();\n if (backtrace.isNil() || !(backtrace instanceof RubyArray)) {\n if (tc.getSourceFile() != null) {\n errorStream.print(tc.getPosition());\n } else {\n errorStream.print(tc.getSourceLine());\n }\n } else if (((RubyArray) backtrace).getLength() == 0) {\n printErrorPos(errorStream);\n } else {\n IRubyObject mesg = ((RubyArray) backtrace).first(IRubyObject.NULL_ARRAY);\n \n if (mesg.isNil()) {\n printErrorPos(errorStream);\n } else {\n errorStream.print(mesg);\n }\n }\n \n RubyClass type = excp.getMetaClass();\n String info = excp.toString();\n \n if (type == getClass(\"RuntimeError\") && (info == null || info.length() == 0)) {\n errorStream.print(\": unhandled exception\\n\");\n } else {\n String path = type.getName();\n \n if (info.length() == 0) {\n errorStream.print(\": \" + path + '\\n');\n } else {\n if (path.startsWith(\"#\")) {\n path = null;\n }\n \n String tail = null;\n if (info.indexOf(\"\\n\") != -1) {\n tail = info.substring(info.indexOf(\"\\n\") + 1);\n info = info.substring(0, info.indexOf(\"\\n\"));\n }\n \n errorStream.print(\": \" + info);\n \n if (path != null) {\n errorStream.print(\" (\" + path + \")\\n\");\n }\n \n if (tail != null) {\n errorStream.print(tail + '\\n');\n }\n }\n }\n \n excp.printBacktrace(errorStream);\n \t}", "title": "" }, { "docid": "d07869e18e1470eadcaf8e3bddf1328d", "score": "0.6012433", "text": "public static void printSQLException(SQLException e) {\n\t\t\n\t}", "title": "" }, { "docid": "cdd03013d9e33e7d63d14a4a4e17585b", "score": "0.6002227", "text": "@Override\n\tprotected void printError() {\n\t\tSystem.err.println(this.toString() + \": Expression num should be \" + exprNumC);\t\t\n\t}", "title": "" }, { "docid": "43f9a1e93ec1f88170c53281772154f1", "score": "0.5996113", "text": "@Test\n public void testPrintExceptionPrintWriter() {\n List<Throwable> putMeIn = new LinkedList<Throwable>();\n \n IllegalArgumentException iae = new IllegalArgumentException(E1);\n IllegalStateException ise = new IllegalStateException(E2);\n \n putMeIn.add(iae);\n putMeIn.add(ise);\n \n MultiException me = new MultiException(putMeIn);\n \n ByteArrayOutputStream baos = new ByteArrayOutputStream();\n PrintWriter writer = new PrintWriter(baos);\n \n me.printStackTrace(writer);\n \n writer.close();\n \n String asString = baos.toString();\n \n Assert.assertTrue(asString.contains(E1));\n Assert.assertTrue(asString.contains(E2));\n }", "title": "" }, { "docid": "089816bcc586dda92a72211415cfaed9", "score": "0.5983528", "text": "public static void main(String[] args) throws Exception {\n\t\ttry {\n\t\t\tassert false;\n\t\t\tSystem.out.println(\"a\");\n\t\t}\n\t\tcatch(Error e)\n\t\t{\n\t\t\tSystem.out.println(\"e\");\n\t\t\tthrow new Exception();\n\t\t\t\n\t\t}\n\t\tfinally \n\t\t{\n\t\t\tSystem.out.println(\"f\");\n\t\t}\n\t\t\n\t\t\n\n\t}", "title": "" }, { "docid": "d05136e05f14d5daa8d22624fa25cbea", "score": "0.5974901", "text": "@Test(timeout = 4000)\n public void test263() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n errorPage0.strike();\n // Undeclared exception!\n try { \n errorPage0.title(\"wheel.components.ActionExpression@0000000007\");\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"wheel.components.StandaloneComponent\", e);\n }\n }", "title": "" }, { "docid": "c4bc0ec6d54d6135333d493122a5b306", "score": "0.5966683", "text": "protected static void errorInfo(String exception){\n\n String output = \"Error: \" + exception + \". \";\n\n switch (exception){\n case \"Wrong Number of Parameters\":\n output += \"It was expected at least two arguments, port number (integer) \" +\n \"and dictionary name (string).\";\n break;\n case \"Wrong Input Type for Port Number\":\n output += \"It was expected an integer number for the port argument.\";\n break;\n case \"Wrong Port Number\":\n output += \"The number for the port number is not suitable. Please try with \" +\n \"other port number (ex.: 3005).\";\n break;\n case \"Port Already in Use\":\n output += \"The port is already in use. Please try with other number.\";\n break;\n case \"Client Closes Connection\":\n output += \"The client \" + clients + \" has closed the connection.\";\n output = output.replace(\"Error: \", \"\");\n break;\n default:\n output += \"No tracked error.\";\n }\n System.out.print(output);\n }", "title": "" }, { "docid": "73e0b47cf4b2e2fa9a2e9f6d4e0173f5", "score": "0.5939354", "text": "void debug(Throwable e);", "title": "" }, { "docid": "113d01400218fe7b1f8d269a435bdb64", "score": "0.59337425", "text": "public void debug(Exception e) {\n\t\t//e.printStackTrace(System.out);\n\t}", "title": "" }, { "docid": "07939c67c9e49631f8ecf74a8bc2cf03", "score": "0.592659", "text": "public void logDebug(Throwable exception)\n\t{\n\t}", "title": "" }, { "docid": "8fed31a19d4467a0a97a6d5b379d48d4", "score": "0.59056854", "text": "@Test\n public void givenErrorAction$whenRunAndPrinted$thenPrintedCorrectly() {\n Action action = createErrorAction();\n ////\n //When performed and printed\n try {\n performAndPrintAction(action);\n throw new IllegalStateException(\"This pass mustn't be executed since the action should fail.\");\n } catch (RuntimeException e) {\n ////\n //Then printed correctly\n //noinspection unchecked\n assertThat(\n TestUtils.removeSpentTimeFromResultColumn(getWriter()),\n allOf(\n asString(\"get\", 0).startsWith(\"[E]An error action\").$(),\n asString(\"get\", 1).equalTo(\" [E]This gives a runtime exception always\").$(),\n asInteger(\"size\").equalTo(3).$()\n ));\n }\n }", "title": "" }, { "docid": "2ba4d3240b4f90099f918ff8776f46be", "score": "0.59047174", "text": "void logException(Exception exc) {\n\t\tStringBuilder logMsgBuilder = new StringBuilder();\n\t\tlogMsgBuilder.append(\"\\nThe following message is intended to be stored in a log file: \\n\");\n\t\tlogMsgBuilder.append(createTime());\n\t\tlogMsgBuilder.append(\", An exception was thrown: \");\n\t\tlogMsgBuilder.append(exc.getMessage());\n\t\tSystem.out.println(logMsgBuilder);\n\t\texc.printStackTrace();\n\t}", "title": "" }, { "docid": "c398c503d7f40231ec397f04a4c1c42b", "score": "0.5901223", "text": "private void handleException(java.lang.Throwable exception) {\r\n\r\n\t/* Uncomment the following lines to print uncaught exceptions to stdout */\r\n\t// System.out.println(\"--------- UNCAUGHT EXCEPTION ---------\");\r\n\t// exception.printStackTrace(System.out);\r\n}", "title": "" }, { "docid": "d6e7d9e2a2d7f2bf335c99bba12e2f1a", "score": "0.5881227", "text": "private void handleException(Throwable exception) {\r\n\r\n\t/* Uncomment the following lines to print uncaught exceptions to stdout */\r\n\tSystem.out.println(\"--------- UNCAUGHT EXCEPTION ---------\");\r\n\texception.printStackTrace(System.out);\r\n}", "title": "" }, { "docid": "01f8268afbc38e2d6fecb77e01ccaf53", "score": "0.58740187", "text": "Throwable getProblem();", "title": "" }, { "docid": "9be8b802e3f03787700ae2f3864081ca", "score": "0.58630455", "text": "void debugException(java.lang.String msg, java.lang.Throwable throwable);", "title": "" }, { "docid": "2e9e5bf95d3483aadac9659f28e29a28", "score": "0.5826261", "text": "void printExceptionTable(MethodData method) {// throws IOException\r\n Vector exception_table = method.getexception_table();\r\n if (exception_table.size() > 0) {\r\n out.println(\" Exception table:\");\r\n out.println(\" from to target type\");\r\n for (int idx = 0; idx < exception_table.size(); ++idx) {\r\n TrapData handler = (TrapData) exception_table.elementAt(idx);\r\n printFixedWidthInt(handler.start_pc, 6);\r\n printFixedWidthInt(handler.end_pc, 6);\r\n printFixedWidthInt(handler.handler_pc, 6);\r\n out.print(\" \");\r\n int catch_cpx = handler.catch_cpx;\r\n if (catch_cpx == 0) {\r\n out.println(\"any\");\r\n } else {\r\n out.print(\"Class \");\r\n out.println(cls.getClassName(catch_cpx));\r\n out.println(\"\");\r\n }\r\n }\r\n }\r\n }", "title": "" }, { "docid": "fa0f9869c3b712b1841d2f484915237d", "score": "0.58254874", "text": "public void report() {\n }", "title": "" }, { "docid": "59f5a4611676a044ff90b3cca8351575", "score": "0.58191746", "text": "@Override\n public void printErrorMessage() {\n AthenaUi athenaUi = new AthenaUi();\n athenaUi.printDoneInvalidIndexException();\n }", "title": "" }, { "docid": "2259a115599c84dfcbaf4ff0c89f47d5", "score": "0.5811249", "text": "@Test(timeout = 4000)\n public void test170() throws Throwable {\n ResultMatrixGnuPlot resultMatrixGnuPlot0 = new ResultMatrixGnuPlot();\n // Undeclared exception!\n try { \n resultMatrixGnuPlot0.doubleToString(2.0, (-815));\n fail(\"Expecting exception: ArrayIndexOutOfBoundsException\");\n \n } catch(ArrayIndexOutOfBoundsException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"java.lang.AbstractStringBuilder\", e);\n }\n }", "title": "" }, { "docid": "641eaef9ba8cd34f3bf9c40ce511c5a5", "score": "0.57992595", "text": "private void printLog(Throwable ex, ErrorMessage em) {\r\n\r\n\t\tlogger.error(\"***If the error code starts with 11 then it is an customized error code for application***\");\r\n\r\n\t\tStackTraceElement[] elems = ex.getStackTrace();\r\n\t\tStringBuffer sb = new StringBuffer();\r\n\r\n\t\tlogger.error(\"Error/Exception occured \"\r\n\t\t\t\t+ ex.getClass().getCanonicalName() + \"::\" + ex.getMessage()\r\n\t\t\t\t+ \"::\" + elems[0].toString());\r\n\t\tlogger.error(em.toString());\r\n\t\tfor (int i = 1; i < elems.length; i++) {\r\n\t\t\tsb.append(\"\\n\\t\\t\" + elems[i].toString());\r\n\t\t}\r\n\r\n\t\tlogger.error(sb.toString());\r\n\r\n\t}", "title": "" }, { "docid": "3ac701b11879240c824cab3719ebc74d", "score": "0.579719", "text": "@Test(timeout = 4000)\n public void test155() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n Table table0 = new Table(errorPage0, \"igKL'>wlr>^#`#i\");\n // Undeclared exception!\n try { \n table0.title(\"igKL'>wlr>^#`#i\");\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"wheel.components.StandaloneComponent\", e);\n }\n }", "title": "" }, { "docid": "d4de5229c2269dc2d476ab8c1573a295", "score": "0.5794161", "text": "@Override\r\n\tpublic void report() {\n\t\t\r\n\t}", "title": "" }, { "docid": "4f85a21469cae8129d2fb6ccb8afdcad", "score": "0.5791272", "text": "public void renderingException(RenderingException renderingException) {\r\n renderingException.printStackTrace();\r\n }", "title": "" }, { "docid": "d0a6c41a78ca641d31f8b12dbd72beb2", "score": "0.5790578", "text": "@Override\n public void printErrorMessage() {\n AthenaUi athenaUi = new AthenaUi();\n athenaUi.printInvalidRecurrenceException();\n }", "title": "" }, { "docid": "05b9004dfdcb6411915c3c6939b226a8", "score": "0.5788143", "text": "void showError(Exception e);", "title": "" }, { "docid": "91d6f78f6398c1b4910338f8300db52e", "score": "0.5784865", "text": "@Test\n public void test040() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n // Undeclared exception!\n try {\n Component component0 = errorPage0.title(\"'lFIXz*F.>/\");\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }", "title": "" }, { "docid": "f72238b2c33abfa56226abf3316b65cd", "score": "0.5784757", "text": "static void codeBug() {\n throw new RuntimeException(\"FAILED ASSERTION\");\n }", "title": "" }, { "docid": "84cb5c73d39ef292d33e72528993ac68", "score": "0.5775548", "text": "public static void displayException(SQLException exception){\r\n\t\tSystem.err.print(\"Error Message: \" + exception.getMessage());\r\n\t\tSystem.err.print(\"Error Code: \" + exception.getErrorCode());\r\n\t\tSystem.err.print(\"SQL State: \" + exception.getSQLState());\r\n\t\t\r\n\t}", "title": "" }, { "docid": "d05829929947a0b7b7e1435fffb05a1a", "score": "0.57743436", "text": "@Test\n public void testPrintFail() {\n printer.print(new Exception());\n\n assertEquals(\"\", savedStream.toString());\n }", "title": "" }, { "docid": "02f9ab30f37028e2a6a183dd5500a5b7", "score": "0.5766678", "text": "@Override\r\n\t\t\tpublic void reporte() {\n\r\n\t\t\t}", "title": "" }, { "docid": "02f9ab30f37028e2a6a183dd5500a5b7", "score": "0.5766678", "text": "@Override\r\n\t\t\tpublic void reporte() {\n\r\n\t\t\t}", "title": "" }, { "docid": "109db2e503268d5e354b9281a85bed1e", "score": "0.57665306", "text": "@Test(timeout = 4000)\n public void test187() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n // Undeclared exception!\n try { \n errorPage0.head();\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"wheel.components.StandaloneComponent\", e);\n }\n }", "title": "" }, { "docid": "168d7655f5d8bcecba038cebe150057a", "score": "0.57539004", "text": "static void printStack(IOException e) {\n StringWriter err = new StringWriter();\n PrintWriter printErr = new PrintWriter(err);\n printErr.println(\"=======[BLAZE SERVER: ENCOUNTERED IO EXCEPTION]=======\");\n e.printStackTrace(printErr);\n printErr.println(\"=====================================================\");\n LOG.severe(err.toString());\n }", "title": "" }, { "docid": "9d51cdd13c938123b57ad3f5425c9d90", "score": "0.5734412", "text": "protected static void exc( Throwable e, String headline, int indent )\n {\n // log headline if answer exception\n if ( indent == -1 )\n {\n indent= 0;\n if ( headline != null )\n toolBuf._( headline ).newLine();\n }\n\n // increase tab level\n indent++;\n\n // Assert\n if ( e == null )\n {\n toolBuf.insertChars( ' ', indent * 2 )._( fmtExcNull );\n return;\n }\n\n // log exception details\n toolBuf.insertChars( ' ', indent * 2 )._( \"Type: \")._(e.getClass().getName() ).newLine();\n toolBuf.insertChars( ' ', indent * 2 )._( \"Message: \")._(e.getMessage() ).newLine();\n\n // recursion\n if ( e.getCause() != null )\n {\n toolBuf.insertChars( ' ', indent * 2 )._( \"Cause: \" ).newLine();\n exc( e.getCause() , null, indent );\n }\n\n // print stack trace, but only on indent level 0\n if ( indent == 1 )\n {\n // log stack trace header msg\n toolBuf.insertChars( ' ', 2 )._( fmtExcStackTraceHeader ).newLine();\n\n // print stack trace into tempBuf\n e.printStackTrace( exceptionPS );\n tempBuf.clear()._( exceptionBAOS.toString() );\n exceptionBAOS.reset();\n\n // loop over lines in temp buf\n tempLineEndIdx= 0;\n while ( true )\n {\n // next line\n nextTempBufLine();\n if ( tempLineStartIdx == tempLineEndIdx )\n break;\n\n // append line\n if( tempBuf.containsAt( \"\\tat \", tempLineStartIdx ) )\n toolBuf.insertChars( ' ', 4 )._NC( tempBuf.buffer(), tempLineStartIdx + 4, tempLineEndIdx - tempLineStartIdx - 4).newLine();\n }\n }\n\n }", "title": "" }, { "docid": "f358378bc04403f9da7d48f5760d79b5", "score": "0.5710177", "text": "synchronized void report(BugType type, Exception e) {\n if (this.reported) {\n GalleryLog.d(\"ThumbnailReporter\", \" record has been reported: \" + this.failReason);\n return;\n }\n checkFail();\n if (this.failTimes >= 1) {\n GalleryLog.d(\"ThumbnailReporter\", \" report to radar. fail times : \" + this.failTimes + \", reason : \" + this.failReason);\n BusinessRadar.reportFile(type, this.filePath, \"stack: \" + ThumbnailReporter.sCallingStack + \", reason: \" + this.failReason, e);\n this.reported = true;\n }\n }", "title": "" }, { "docid": "49936c1de4a85b83b6ba4c16b43eac33", "score": "0.57091504", "text": "@Test(timeout = 4000)\n public void test08() throws Throwable {\n // Undeclared exception!\n try { \n DBUtil.fixCase((ISession) null, \"9m$HF\");\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"net.sourceforge.squirrel_sql.plugins.dbcopy.util.DBUtil\", e);\n }\n }", "title": "" }, { "docid": "0fb6103febdae8f6cf5cf879bb1c9f3a", "score": "0.5699681", "text": "public static void main(String[] args) {\n\t\ttry {\n\t\t\t// throw an object of user defined exception\n\t\t\tthrow new UserDefinedExcetion(\"This is user defined exception\");\n\n\t\t} catch (UserDefinedExcetion e) {\n\t\t\tSystem.out.println(\"Caught the exception\");\n\t\t\tSystem.out.println(e.getMessage());\n\t\t}\n\n\t}", "title": "" }, { "docid": "0fc46d7b697661b283ed2fea13488fe7", "score": "0.5694456", "text": "public static void main(String[] args) {\n\t\ttry {\n\t\t\tSystem.out.println(\"try block\");\n\t\t\tthrow new MyException(\"This is my custom exception\");\n\t\t} catch (Exception e) {\n\t\t\t// TODO: handle exception\n\t\t\tSystem.out.println(\"Catch block\");\n\t\t\tSystem.out.println(e);\n\t\t\t//e.printStackTrace();\n\t\t}\n\t}", "title": "" }, { "docid": "741786ab2ceb7ace77fd65595d7c1296", "score": "0.568967", "text": "public void paperEffectiveAgainstTest() throws AssertException\r\n {\r\n \t// TODO: implement.\r\n }", "title": "" }, { "docid": "923e40b5a02d66b7331b573fad6bb007", "score": "0.5686465", "text": "public void printIoExceptionErrorMessage(IOException exception) {\r\n System.out.println(\"something went wrong while saving...\" + exception.getMessage());\r\n }", "title": "" }, { "docid": "ca5b424b2757df84c48dc8a4b499922e", "score": "0.5686353", "text": "public static void main(String[] args) {\n\n\t\t\n\t\tThrowable able = new Throwable(\"想吐。。。\");\n\t\tSystem.out.println(able.toString()); // 输出该异常的类名\n\t\tSystem.out.println(able.getMessage()); // 输出异常的信息\n\t\table.printStackTrace(); // 打印栈信息\n\t}", "title": "" }, { "docid": "0074604c935611f2601cb175c07e77e1", "score": "0.56847316", "text": "@Test(timeout = 4000)\n public void test39() throws Throwable {\n // Undeclared exception!\n try { \n DBUtil.fixCase((ISession) null, \"(e\\\"\");\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"net.sourceforge.squirrel_sql.plugins.dbcopy.util.DBUtil\", e);\n }\n }", "title": "" }, { "docid": "6728eded6065b3460ff9cc3cba9a90cc", "score": "0.56834507", "text": "public void logInfo(Throwable exception)\n\t{\n\t}", "title": "" }, { "docid": "2890569db51f5ca6eca7ab157d90ba57", "score": "0.5680797", "text": "@Override\n\tpublic void exception(Object o) {\n\t\t\n\t}", "title": "" }, { "docid": "b6129f8b4db13576ca5442f850dd91ba", "score": "0.5678599", "text": "void diagnose();", "title": "" }, { "docid": "8b8b2a8b6049f2ff22cdac1314fd1520", "score": "0.56685066", "text": "@Test(timeout = 4000)\n public void test055() throws Throwable {\n Form form0 = new Form(\"iyf`xit~\");\n ErrorPage errorPage0 = new ErrorPage();\n // Undeclared exception!\n try { \n form0.text(errorPage0);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }", "title": "" }, { "docid": "620a5831df5d37d593c28c821a5026f3", "score": "0.5662575", "text": "private void handleException(java.lang.Throwable exception) {\n\n\t/* Uncomment the following lines to print uncaught exceptions to stdout */\n\t// System.out.println(\"--------- UNCAUGHT EXCEPTION ---------\");\n\t// exception.printStackTrace(System.out);\n}", "title": "" }, { "docid": "48426cb938980c9ac9d9ac365dc0ac62", "score": "0.5660418", "text": "void infoException(java.lang.String logtodisplay,\n java.lang.Throwable throwable);", "title": "" }, { "docid": "0492ce9f8cb4192b3d3cbab480d6546f", "score": "0.56597686", "text": "ProblemException () { }", "title": "" }, { "docid": "ada128504c2eef838e7161826ca092a3", "score": "0.56578076", "text": "void showError(Throwable e);", "title": "" }, { "docid": "204ad62600800daa3eb4cd2cf6c8fa7f", "score": "0.56462103", "text": "public void printError(RubyException excp) {\n if (excp == null || excp.isNil()) {\n return;\n }\n \n PrintStream errorStream = getErrorStream();\n errorStream.print(config.getTraceType().printBacktrace(excp, errorStream == System.err && getPosix().isatty(FileDescriptor.err)));\n }", "title": "" }, { "docid": "69f4c2712b685411279edf8f434d32de", "score": "0.56460285", "text": "void reportError(String message);", "title": "" }, { "docid": "9d0b041787be517f997a8c715a4acd6d", "score": "0.5643179", "text": "public WireItRunException(String msg, Exception ex) {\n super(msg, ex);\n ex.printStackTrace();\n }", "title": "" }, { "docid": "9942fde778206cb3efcb0ce6a2790d08", "score": "0.56414235", "text": "public void printBugInfo() {\r\n\t\tfor (Bug b : this.bugs) {\r\n\t\t\tSystem.out.println(b.toString());\r\n//\t\t\tSystem.out.println(b.toText());\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "c696d26011dad588e5cc3f4615d7eb8f", "score": "0.5635441", "text": "public static void logException(Exception e) {\n StringWriter sw = new StringWriter();\n e.printStackTrace(new PrintWriter(sw));\n String exceptionAsString = sw.toString();\n System.out.println(getTimestamp() + exceptionAsString);\n\t}", "title": "" }, { "docid": "39952dd3da78e5cffd82d172b17db1cb", "score": "0.5634777", "text": "private void handleException(java.lang.Throwable exception) {\n\n\t\t/* Uncomment the following lines to print uncaught exceptions to stdout */\n\t\t// System.out.println(\"--------- UNCAUGHT EXCEPTION ---------\");\n\t\t// exception.printStackTrace(System.out);\n\t}", "title": "" }, { "docid": "b13b79c93d7fbb0d2237cd5d83aacf6e", "score": "0.56337404", "text": "void info(Throwable e);", "title": "" }, { "docid": "8eb93fd4d876fdf9dc431a38db83a223", "score": "0.5630188", "text": "@SuppressWarnings(\"unused\")\n\tprivate void getShortException( IResultMap tests ) {\n\t\tfor ( ITestResult result : tests.getAllResults() ) {\n\t\t\tm_methodIndex++;\n\t\t\tThrowable exception = result.getThrowable();\n\t\t\tList<String> msgs = Reporter.getOutput( result );\n\t\t\tboolean hasReporterOutput = msgs.size() > 0;\n\t\t\tboolean hasThrowable = exception != null;\n\t\t\tif (hasThrowable) {\n\t\t\t\tboolean wantsMinimalOutput = result.getStatus() == ITestResult.SUCCESS;\n\t\t\t\tif (hasReporterOutput) {\n\t\t\t\t\tm_out.print(\"<h3>\"\n\t\t\t\t\t\t\t+ (wantsMinimalOutput ? \"Expected Exception\"\n\t\t\t\t\t\t\t\t\t: \"Failure\") + \"</h3>\");\n\t\t\t\t}\n\t\t\t\t// Getting first line of the stack trace\n\t\t\t\tString str = Utils.stackTrace(exception, true)[0];\n\t\t\t\tscanner = new Scanner(str);\n\t\t\t\tString firstLine = scanner.nextLine();\n\t\t\t\tm_out.println(firstLine);\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "7637dab94732066a59b474afd4ee0f76", "score": "0.562885", "text": "@Test(timeout = 4000)\n public void test028() throws Throwable {\n NameSpec nameSpec0 = NameSpec.IF_REPRODUCIBLE;\n CharArrayWriter charArrayWriter0 = new CharArrayWriter();\n MockPrintWriter mockPrintWriter0 = new MockPrintWriter(charArrayWriter0);\n // Undeclared exception!\n try { \n SQLUtil.renderAddForeignKey((DBForeignKeyConstraint) null, nameSpec0, mockPrintWriter0);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"org.databene.jdbacl.SQLUtil\", e);\n }\n }", "title": "" }, { "docid": "17742d83ff739abc9cef16be6af19963", "score": "0.56275445", "text": "void report(DiagnosticPosition pos, JCDiagnostic details);", "title": "" }, { "docid": "47e6c0c95a9e7e633fe3f9b61a71ad83", "score": "0.5626915", "text": "@Test(timeout = 4000)\n public void test129() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n Table table0 = new Table(errorPage0, (String) null);\n // Undeclared exception!\n try { \n table0.encode(\"Ls*.\");\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"wheel.components.Component\", e);\n }\n }", "title": "" }, { "docid": "1ca5ff25e2bd7bed267b09a9f474dd3d", "score": "0.5619979", "text": "public static void printSQLException(SQLException ex) {\n\n\t for (Throwable e : ex) {\n\t if (e instanceof SQLException) {\n\t \n\n e.printStackTrace(System.err);\n System.err.println(\"SQLState: \" +\n ((SQLException)e).getSQLState());\n\n System.err.println(\"Error Code: \" +\n ((SQLException)e).getErrorCode());\n\n System.err.println(\"Message: \" + e.getMessage());\n\n Throwable t = ex.getCause();\n while(t != null) {\n System.out.println(\"Cause: \" + t);\n t = t.getCause(); \n\t }\n\t }\n\t }\n\t}", "title": "" }, { "docid": "f554a870e5e39fa05a677db490759b15", "score": "0.5615997", "text": "private void logPatternSyntaxException(PatternSyntaxException pse){\n log.debug(\"An error occured while compiling the regular expression!\");\n log.debug(\"The pattern in question is: \" + pse.getPattern());\n log.debug(\"The description is: \" + pse.getDescription());\n log.debug(\"The message is: \" + pse.getMessage());\n log.debug(\"The index is: \" + pse.getIndex());\n }", "title": "" }, { "docid": "d8013a2a1f4bb4a92a3bd66cebe6f341", "score": "0.56094337", "text": "public final void mo59109c(Exception exc) {\n }", "title": "" }, { "docid": "7dfe3dae821a9ae9f0252e7a579b38ee", "score": "0.5609145", "text": "private void setupCrashReportDumper() {\n\t\tThread crashDumperThread = new Thread() {\n\t\t\t@Override\n\t\t\tpublic void run() {\n\t\t\t\tif (lethalException != null && !(lethalException instanceof INotStoredCrash)) {\n\t\t\t\t\tif (storages != null) {\n\t\t\t\t\t\tstoreCrash(lethalException);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tSystem.err.println(\"[OpenEye] Can't store crash report, since storage is not initialized\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\n\t\tcrashDumperThread.setUncaughtExceptionHandler(new UncaughtExceptionHandler() {\n\t\t\t@Override\n\t\t\tpublic void uncaughtException(Thread t, Throwable e) {\n\t\t\t\tSystem.err.println(\"[OpenEye] Exception in shutdown handler, report may not be sent\");\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t});\n\n\t\tRuntime.getRuntime().addShutdownHook(crashDumperThread);\n\t}", "title": "" }, { "docid": "1ba892b2aad5c993adb8c13390006db6", "score": "0.5602024", "text": "public EvaluationException(String detail) {\r\n\tsuper(detail);\r\n}", "title": "" }, { "docid": "1c492af5fea005a5a211cc61b1763b95", "score": "0.56000984", "text": "@Test(timeout = 4000)\n public void test08() throws Throwable {\n MessageFormatter messageFormatter0 = new MessageFormatter();\n LinkedList<PropertyResourceBundle> linkedList0 = new LinkedList<PropertyResourceBundle>();\n messageFormatter0.createLoadException(linkedList0);\n ApplicationException applicationException0 = new ApplicationException(\"nW\\u00F4^</\", (Object) null);\n MockPrintStream mockPrintStream0 = new MockPrintStream(\"nW\\u00F4^</\");\n MockPrintWriter mockPrintWriter0 = new MockPrintWriter(mockPrintStream0, false);\n PrintWriter printWriter0 = mockPrintWriter0.printf(\"nW\\u00F4^</\", (Object[]) messageFormatter0.DEFAULT_BUNDLE_PATH);\n LTSException.createStackTrace(printWriter0);\n // Undeclared exception!\n try { \n messageFormatter0.getMessage((Throwable) applicationException0);\n fail(\"Expecting exception: RuntimeException\");\n \n } catch(RuntimeException e) {\n //\n // com.lts.application.ApplicationMessages.error.keyNotFound\n //\n verifyException(\"com.lts.application.international.MessageFormatter\", e);\n }\n }", "title": "" }, { "docid": "d100f2bdb5e357ca76958d0022cb6aef", "score": "0.5599989", "text": "private void printException(Exception e,int level)\n { if (log!=null) log.printException(e,level+SipStack.LOG_LEVEL_UA);\n }", "title": "" }, { "docid": "fba73885e32c860251405ed804089f72", "score": "0.55995405", "text": "public void printSQLException(SQLException e) {\n\t // Unwraps the entire exception chain to unveil the real cause of the\n\t // Exception.\n\t \tGlobal.lastSQLState = e.getSQLState();\n\t \tif (Global.lastSQLState.equals(\"23505\"))\n\t \t\t// Duplicate Key on Add or Change - handled in this program\n\t \t\treturn;\n\t while (e != null)\n\t {\n\t System.err.println(\"\\n----- SQLException -----\");\n\t System.err.println(\" SQL State: \" + e.getSQLState());\n\t System.err.println(\" Error Code: \" + e.getErrorCode());\n\t System.err.println(\" Message: \" + e.getMessage());\n\t // for stack traces, refer to derby.log or uncomment this:\n\t //e.printStackTrace(System.err);\n\t e = e.getNextException();\n\t }\n\t }", "title": "" }, { "docid": "a4c4333405fda40b9557bcb69120c8de", "score": "0.55952835", "text": "public void logNotice(Throwable exception)\n\t{\n\t}", "title": "" }, { "docid": "41fa73842e1223c7d9ac9a478c177e42", "score": "0.55876446", "text": "public static void main(String[] args) {\n\t\tthrow e;\n\n\t}", "title": "" }, { "docid": "baf4ce7145bdc5d461e2abc6aa3f8c99", "score": "0.55863726", "text": "private static void printAndExit(Log log, Exception exception, String message, String signature) {\r\n if (exception != null) {\r\n Helper.logException(log, signature, exception);\r\n }\r\n\r\n System.err.println(message);\r\n System.exit(1);\r\n }", "title": "" }, { "docid": "5769ad26396affd92d5f889c7059020c", "score": "0.55842733", "text": "@Test(timeout = 4000)\n public void test115() throws Throwable {\n Form form0 = new Form(\"i4Oyf`xt~\");\n // Undeclared exception!\n try { \n form0.head();\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }", "title": "" }, { "docid": "fc7333771a43a362d700ad893721bd19", "score": "0.5583446", "text": "public static void error(Throwable exception) {\n\t\terror(\"DebaUtilPlugin UnExpected Exception ...\\n\", exception); //$NON-NLS-1$\n\t}", "title": "" }, { "docid": "5cecafb3f070bf5cb0f003b6460cf792", "score": "0.55791116", "text": "@Test\n public void test15() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n // Undeclared exception!\n try {\n Component component0 = errorPage0.body();\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }", "title": "" } ]
2aad2f868b8c02c177ceee7afaf94243
Deposits money into the bank account.
[ { "docid": "67517e9991a8509d0a204553042e6ecc", "score": "0.67746776", "text": "public void deposit(double amount) {\n\t\tbalance += amount;\n\t}", "title": "" } ]
[ { "docid": "f958fefc4e66ff0562cf14017b0678ab", "score": "0.7760199", "text": "@Override\n\tpublic void deposit(int money) {\n\t\t\n\t}", "title": "" }, { "docid": "cd7b3f95d210a637095a3dd6eb204e8c", "score": "0.749094", "text": "public void debitBankAccount() {\n\t\tint beforeDebit = this.sender.getBankAccount().getAmount();\n\t\tthis.sender.getBankAccount().setAmount(beforeDebit - this.getCost());\n\t\tSystem.out.println(this.getCost() + \" euros is debited from \" + this.sender.getName()\n\t\t\t\t+ \" account whose balance is now \" + this.sender.getBankAccount().getAmount() + \" euros\");\n\t}", "title": "" }, { "docid": "be2146ce8154ebcbb644d92ea46a68ca", "score": "0.73785716", "text": "private static void deposite (double amount) {\n double resultDeposit = balance + amount;\r\n System.out.println(\"Deposit successful.\\nCurrent balance: \" + \"$\" + resultDeposit+ \".\");\r\n }", "title": "" }, { "docid": "774f5c819a48f2fe1b1d5a600fe60916", "score": "0.7362981", "text": "private void deposit() {\n userInput = 0;\n while (userInput <= 0) {\n System.out.printf(\"Din nuværende balance er: %.2f DKK\\n\" +\n \"Indtast ønsket beløb at indsætte: \", balanceConverted);\n\n textMenuKey(false, \"\");\n\n if (userInput <= 0) {\n System.out.println(\"Indtast et gyldigt beløb\");\n }\n }\n\n moneyController(userInput);\n mysql.transactionUpdate(customerNumber, customerName, balance, userInput, \"Deposited\");\n }", "title": "" }, { "docid": "74817040242646637c64665c811a7e98", "score": "0.73131675", "text": "public static void deposit(){\n TOTALCMONEY = TOTALCMONEY + BALANCEDEPOSIT; //the cashier money equals the cashier money plus the amount that is being deposited\r\n BALANCE = BALANCE + BALANCEDEPOSIT; //the user balance equals the user balance plus the amount that is being deposited\r\n }", "title": "" }, { "docid": "6f96247e4f69b2d6e71e190bf8e6ee33", "score": "0.72318053", "text": "void deposit(double Cash){\r\n\t\tbalance=balance+Cash;\r\n\t}", "title": "" }, { "docid": "7be7b3c80216fe62befd3386e6b8fe19", "score": "0.7210003", "text": "@Override\r\n\tpublic void deposit(int amount) {\n\t\t\r\n\t}", "title": "" }, { "docid": "09c75fff3a5cdb6c89ed3d4002dd30e6", "score": "0.7106194", "text": "public void depositAmount() {\n\t\n\t\ttry {\n\t\t\tlog.log(Level.INFO, \"Please Enter the account number you want to deposit: \");\n\t\t\tint depositAccountNumber = scan.nextInt();\n\t\t\tlong amount;\n\t\t\tlog.log(Level.INFO, \"Please Enter the amount you want to Deposit : \");\n\t\t\tamount = scan.nextLong();\n\t\t\tbankop.deposit(depositAccountNumber,amount);\n\t\t\t\n\t\t}catch(AccountDetailsException | BalanceException message ) {\n\t\t\tlog.log(Level.INFO, message.getMessage());\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "5bfddcf7a0ef9730c613dcfdebb84adc", "score": "0.7079675", "text": "public void decreaseMoneyForReserve(String login,BigDecimal money);", "title": "" }, { "docid": "ee0769980ffb9fc83e30d0a7991afd46", "score": "0.7062767", "text": "public static void deposit() {\n\t\ttry {\n\t\t\tif (!LoginMgr.isLoggedIn()) {\n\t\t\t\tthrow new NotLoggedInException();\n\t\t\t}\n\n\t\t\t//Scanner s = new Scanner(System.in);\n\t\t\tSystem.out.println(\"Enter account number:\");\n\t\t\tString accNum = \"\";\n\t\t\tif (Quinterac.s.hasNextLine())\n\t\t\t\taccNum = Quinterac.s.nextLine();\n\n\t\t\tif (!ValidAccListMgr.checkAccNumExist(accNum)) {\n\t\t\t\tSystem.out.println(\"Please enter a valid account number\");\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tSystem.out.println(\"Enter the amount of money to deposit in cents:\");\n\t\t\tint amount = 0;\n\t\t\tif (Quinterac.s.hasNextInt()) amount = Integer.parseInt(Quinterac.s.nextLine());\n\t\t\t\n\t\t\tString modeName = LoginMgr.checkMode();\n\t\t\tif (modeName.equals(\"machine\")) {\n\t\t\t\tatmCheckDepositValid(accNum, amount);\n\t\t\t} else if (modeName.equals(\"agent\")) {\n\t\t\t\tagentCheckDepositValid(accNum, amount);\n\t\t\t}\n\n\t\t} catch (NotLoggedInException e) {\n\t\t\tSystem.out.println(e.getMessage());\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(e.getMessage());\n\t\t}\n\t}", "title": "" }, { "docid": "2298025a3b02a40551ac90d74a7ac832", "score": "0.7027989", "text": "public void deposit(BigDecimal deposit){\n balance = balance.add(deposit);\n }", "title": "" }, { "docid": "54ff70b8a8bb7f5ad9c202df9b2a6a0d", "score": "0.7003898", "text": "public void deposit(double value)\r\n {\r\n //TODO need logic to make sure you can't deposit more then you have in cash\r\n subtractCash(value);\r\n savings += value;\r\n }", "title": "" }, { "docid": "66930727567a3c761e70db4baac83cba", "score": "0.696563", "text": "void deposit(int value)//To deposit money from the account\n {\n balance += value;\n }", "title": "" }, { "docid": "b32bfa477449cbd217fbb5899e668391", "score": "0.6963287", "text": "public void deposit (int amount) {\n if (amount >= 0) {\n balance = balance + amount;\n valueDeposits = valueDeposits + amount;\n if (balance > maximumBalance) {\n maximumBalance = balance;\n }\n }\n }", "title": "" }, { "docid": "9778a7bc1b8d3defece483a39bcd4a7a", "score": "0.69260705", "text": "void depositByCash(double amount) {\n\t\tif (isSuspended()) {\n\t\t\tSystem.out.println(\"Account is suspended.\");\n\t\t\tSystem.out.println(\"Depositing failed.\");\n\t\t\treturn;\n\t\t}\n\t\tif (amount <= 0) {\n\t\t\tSystem.out.println(\"Amount must be more than 0.\");\n\t\t\tSystem.out.println(\"Depositing failed.\");\n\t\t\treturn;\n\t\t}\n\t\tbalance += amount;\n\t\tSystem.out.println(\"Deposit \" + amount + \" successfully\");\n\t}", "title": "" }, { "docid": "6e3e07457b07bf23fc8bfa5c894f8dd3", "score": "0.6922971", "text": "@Override\n\tpublic boolean desposit(int accNo, double money) {\n\t\treturn false;\n\t}", "title": "" }, { "docid": "2344c43ea51ea895fbe40208c6d3a223", "score": "0.6916557", "text": "public void deposit(double amount){\n\t\tbalance += amount;\n\t}", "title": "" }, { "docid": "5f40aefa1275bc6e8e9618ecf314e5db", "score": "0.69023645", "text": "public void deposit(double amount)\n {\n balance = balance + amount;\n }", "title": "" }, { "docid": "de8c2cb5564082fe8e3e8100d9cc6d13", "score": "0.68880355", "text": "public void debit(double amountDebit){\n\t\tif(amountDebit < 0)\n\t\t\tthrow new IllegalArgumentException();\n\t\t//Think about throw an exception if you don't allow the inhabitant to have an overdraft ! Here we allow it. \n\t\tthis.money= this.money - amountDebit;\n\t}", "title": "" }, { "docid": "0f97fbb50a74c006719789eabd455e74", "score": "0.68490344", "text": "public void deposit(double amount) \n\t{\n\t\tbalance += amount;\n\t}", "title": "" }, { "docid": "bc149c76cc214b0b3e1078a6139a4ec3", "score": "0.6845816", "text": "void deposit(double amount){\r\n\t\t//add to the current balance the amount\r\n\t\t setBalance(getBalance() + amount);\r\n\t }", "title": "" }, { "docid": "31adfafc01edcfdb5631639673fe5257", "score": "0.6821051", "text": "public void deposit(double amount) {\n balance = balance + amount + 10;\n }", "title": "" }, { "docid": "e7cb942901febd57cad3be58fc8bbe44", "score": "0.681009", "text": "@Override\n public void deposit(double amount) {\n try {\n doDepositing(amount);\n } catch (BankException e) {\n System.out.println(e.getMessage());\n }\n }", "title": "" }, { "docid": "38f69f2404f5bde26d8b1088dabfb3c6", "score": "0.6806365", "text": "public void deposit(double amount) {\n this.balance += amount;\n }", "title": "" }, { "docid": "b5f60f756c6c2a9e78cb67a4e3c38e6b", "score": "0.6789857", "text": "public void deposit(double deposit){\n accTransactions.add(new Transaction('D', deposit, balance, \"deposit\"));\n balance += deposit;\n }", "title": "" }, { "docid": "645d9ee40edac64510a571909fcd9835", "score": "0.67875683", "text": "public void deposit(int amount)\n {\n setBalance(getBalance()+amount);\n }", "title": "" }, { "docid": "e3aed8a9c3318779cd04189fa42a318f", "score": "0.67873025", "text": "@Override\n public boolean deposit(Account account, BigDecimal amount) {\n return false;\n }", "title": "" }, { "docid": "6e6277aaafe4acabf08d47ba70f80a2c", "score": "0.6770549", "text": "protected void deposit(double amount)\n\t{\n\t\tacc_balance+=amount;\n\t}", "title": "" }, { "docid": "aeb4202a06008fb46ec722e637483411", "score": "0.67560256", "text": "public void depositMoney(double amount) {\n\t\tbalance = balance + amount;\n\t}", "title": "" }, { "docid": "d85e865e2a2318c48dd1a0d76d743f9d", "score": "0.6734016", "text": "@Override\n\tpublic void deposit() {\n\t\t\n\t}", "title": "" }, { "docid": "2d19ce93d38870de86b2690e9f5b9563", "score": "0.67135763", "text": "public void deposit(double amount)\n {\n startingBalance += amount;\n }", "title": "" }, { "docid": "1c318af5820d60d4a6a1cb319b339fba", "score": "0.669184", "text": "public void deposit(int amountToDeposit) {\n if (amountToDeposit > 0) {\n balance = balance + amountToDeposit;\n }\n }", "title": "" }, { "docid": "5f6cf49476fa35facca34deaa9a6c3f6", "score": "0.6676216", "text": "public void depositMoney(double amount) {\n\t\tif (amount>=0){\n\t\t\tsetBalance(getBalance() + amount);\n\t\t}else{\n\t\t\tSystem.out.println(\"You can not deposit a negative value!\");\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "473d0285a6a3d6eef7b4bc06de01f670", "score": "0.6670278", "text": "public void deposit(long amount) {\n\t\n\tbalance += amount;\n\t\n\tlog += \"Deposit made to this account in the ammount of \"+amount+\" on \"+date+\"\\n\";\n\tlog += log += \" Current balance is \"+balance+\" \\n\";\n\tupdate();\n}", "title": "" }, { "docid": "0dabe1430b66d29605bc2331f269d5fe", "score": "0.6634903", "text": "public void deposit();", "title": "" }, { "docid": "b40d4b702a7d5b3e3a2b4f4098fe6b50", "score": "0.66319513", "text": "public void deposit(double amount)\t{\n\t\tbalance = balance + amount;\n\t\tbalance = Math.round(balance * 100.0) / 100.0;\n\t}", "title": "" }, { "docid": "d3329f06e5ce396291ec9293cffe48b6", "score": "0.66101557", "text": "public void makeDeposit() {\n deposit();\n }", "title": "" }, { "docid": "3e794318d34d3c766455781cb5ab29a2", "score": "0.6589185", "text": "public void debit(int userAccountNumber, double amount) {\r\n getAccount(userAccountNumber).debit(amount);\r\n }", "title": "" }, { "docid": "53c66693e39714be7e972df4970f2ebf", "score": "0.6569165", "text": "@Override\n public void deposit(double amount) {\n double balance = getBalance();\n setBalance(balance+amount);\n }", "title": "" }, { "docid": "b0b6374bfda53e2dee7782a3965cd32a", "score": "0.65649927", "text": "public void deposit(double amount){\n if (isFrozen == true){\n return;\n }\n if (UserAccount.isAmountValid(amount) == false){\n throw new IllegalArgumentException(\"Amount entered is not possible to be deposited\");\n }\n else{\n balance += amount;\n savingTransactions[arrayLocation]= \"Deposit into savings account of the amount: \" + String.valueOf(amount);\n arrayLocation++;\n }\n }", "title": "" }, { "docid": "aa9ce9008b01baaccf4b771455337c9b", "score": "0.65574986", "text": "public void deposit(int depositAmount)\r\n {\n this.balance += depositAmount;\r\n System.out.println(\"Deposit of \" + depositAmount + \" made. New Balance is \" + this.balance);\r\n }", "title": "" }, { "docid": "723f89a34b0d5e8f56543e5fdde1cd33", "score": "0.6551418", "text": "private Account debitAmount(String accountNumber, BigDecimal amt) throws TransferServiceException\n\t{\n\t\tAccount account = repository.findByAccountNumber(accountNumber);\n\t\tisAccountValid(account);\n\t\taccount.setBalance(getBalance(accountNumber).subtract(amt));\n\t\treturn account;\n\t}", "title": "" }, { "docid": "e57123eb00a0796098e8073d888e6904", "score": "0.6550997", "text": "public void deposit (double amount) \r\n {\r\n\r\n balance += amount;\r\n System.out.println (\"Deposit into account shs: \" + account);\r\n System.out.println (\"Standing Amount: \" + amount);\r\n System.out.println (\"Current balance: \" + balance);\r\n System.out.println ();\r\n\r\n }", "title": "" }, { "docid": "79ee2364ca84d157e73619e8f0728bf2", "score": "0.65434504", "text": "public boolean deposit(long id, String password, String currency, double amount);", "title": "" }, { "docid": "f372509ac519f89a7e6b13a3750be344", "score": "0.65420735", "text": "@Override\r\n\tpublic double depositDao(double money) throws EwalletException {\n\t\ttemp.setCustBal(temp.getCustBal()+money);\r\n\t\ttry {\r\n\t\t\ttemp.settDetails(\"Date :\"+tDate+\" Depsoited Amount :\"+money+\" Total Balance :\"+temp.getCustBal());\r\n\t\t} catch (Exception e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\tdao.updatedetails(temp.getAccNum(),temp);\r\n\t\treturn temp.getCustBal();\r\n\t\t\r\n\t}", "title": "" }, { "docid": "7184c1a601b52e978918c8940d66a144", "score": "0.6529087", "text": "public double depositInto(double amount)\r\n {\r\n _balance += amount;\r\n\r\n return _balance;\r\n }", "title": "" }, { "docid": "840d85196c589b681d5232e64bcee8dc", "score": "0.65117097", "text": "public void deposit (double amount)\n {\n imposeTransactionFee ();\n super.deposit (amount);\n }", "title": "" }, { "docid": "52a9d48fd997526c011ccefcc851d258", "score": "0.6495041", "text": "public void deposit (double amount) {\r\n\t\t\r\n\t\tbalance=balance+amount;\r\n\t\tif(balance > 0) {\r\n\t\t\t\r\n\t\t\toverDrawn = false;\r\n\t\t}\r\n\t\t\r\n\t}", "title": "" }, { "docid": "9a760ae65513fe067db95504ea6666bd", "score": "0.64931875", "text": "void deposit (double depositAmount, String userName) {\n\t\tBankAccountRepositoryJdbc bar = new BankAccountRepositoryJdbc();\n\t\tbalance = bar.getBalance(userName);\n\t\t\n\t\ttry {\n\t\t\tif(depositAmount != 0) {\n\t\t\t\tif(depositAmount > 0) {\n\t\t\t\t\tbalance = balance+depositAmount;\n\t\t\t\t\taccount.setBalance(balance);\n\t\t\t\t\taccount.setUsername(userName);\n\t\t\t\t\tbar.updateAccount(account);\n\t\t\t\t} else {\n\t\t\t\t\tthrow new NegativeAmountDepositException (\"You attempted to deposit a negative amount.\");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tcatch (NegativeAmountDepositException e) {\n\t\t\tLOGGER.info(e);\n\t\t}\n\t}", "title": "" }, { "docid": "8f4a85f3fcf496e08810d5f3420cc398", "score": "0.64930767", "text": "@Override\n public void deposit(int accountId, long amount) {\n if(!accounts.containsKey(accountId)){\n throw new IllegalArgumentException(\"Account \" + accountId + \" does not exist in this Bank.\");\n }\n else{\n synchronized (accounts.get(accountId)){\n accounts.get(accountId).deposit(amount);\n }\n }\n }", "title": "" }, { "docid": "6fff2708a4fb1dd0b9ada0bbe795baab", "score": "0.64849794", "text": "public void deposit(double depositAmmount)\r\n\t{\r\n\t\tif(depositAmmount > 0.0) // it the deposit is valid\r\n\t\t\tbalance = balance + depositAmmount; // add it to the balance\r\n\t}", "title": "" }, { "docid": "19278fd96d2651fd87c1f3d429e6443e", "score": "0.6484016", "text": "public void DepositMoneyInBank() {\n\n for (int i = 0; i < commands.length; i++) {\n commands[i].execute();\n storage.push(commands[i]);\n }\n }", "title": "" }, { "docid": "a9b690161872c8143728ce5808e89feb", "score": "0.6481817", "text": "public void deposit(double amount)\n {\n balanceChangeLock.lock();\n try\n {\n System.out.print(\"Depositando \" + amount);\n double newBalance = balance + amount;\n System.out.println(\", novo saldo igual a \" + newBalance);\n balance = newBalance;\n sufficientFundsCondition.signalAll();\n }\n finally\n {\n balanceChangeLock.unlock();\n }\n }", "title": "" }, { "docid": "c007e5a2790f45b7e72b8ebaab76627e", "score": "0.64803845", "text": "public void dispenseMoney(float withdrawAmount, float totalBills, int[] bill, int[] availableAmount) {\n\t\tint amount, remain;\n\t\tString plural;\n\t\tfor(int i = 0; i < bill.length; i++){\n\t\t\tif (withdrawAmount >= bill[i]){\n\t\t\t\tamount = (int) withdrawAmount / bill[i];\n\t\t\t\tremain = (int) withdrawAmount % (amount * bill[i]);\n\n\t\t\t\tavailableAmount[i] -= amount;\n\t\t\t\ttotalBills -= bill[i] * amount; \n\t\t\t\tplural = ((amount > 1) ? \"s\" : \"\");\n\t\t\t\tSystem.out.println(amount + \" bill\" + plural + \" $\" + bill[i]);\n\n\t\t\t\tif (remain == 0){\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\twithdrawAmount = remain;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "b83720d424626e8d5ac5ed6c58b30cbb", "score": "0.6479439", "text": "@Test\n\tpublic void testDeductMoney() {\n\t\tcard.addMoney(500);\n\t\tcard.deductMoney(200);\n\t\tassertEquals(400.0, card.getBalance());\n\t}", "title": "" }, { "docid": "d9c55d07c27b9693f1d350fb4f718a5c", "score": "0.64609796", "text": "public void deposit(double amount) {\n balance += amount;\n \n try {\n \n Class.forName(\"net.ucanaccess.jdbc.UcanaccessDriver\");\n \n // Load Driver\n String connURL=\"jdbc:ucanaccess://c:/Users/Ellen/Documents/CIST2373/ChattBankMDB.mdb\";\n \n // Get Connection\n Connection con = DriverManager.getConnection(connURL);\n \n // Create Statement\n Statement stmt = con.createStatement();\n \n // Create sql string \n String sql = \"Update Accounts set Balance = \"+getBalance()+ \n \" where AcctNo='\"+getAcctNo()+\"'\";\n \n // Check for properly formed sql\n System.out.println(sql);\n \n // Execute Statement\n int n = stmt.executeUpdate(sql);\n if (n == 1)\n System.out.println(\"Update was successful!\");\n else\n System.out.println(\"Update failed!\"); \n \n // Close Connection\n con.close(); \n } //end try\n \n catch (Exception err) {\n System.out.println(\"Error: \" + err);\n } //end catch\n }", "title": "" }, { "docid": "3b0b17f37efb5440e3467280214ae216", "score": "0.64545393", "text": "private void doDeposit() {\n System.out.println(\"How much do you want to deposit?\");\n boolean keepgoing = true;\n int amount = -1;\n while (keepgoing) {\n amount = input.nextInt();\n if (amount > 0) {\n keepgoing = false;\n pickedAccount.deposit(amount);\n }\n }\n System.out.println(\"deposited \" + amount + \" $\");\n }", "title": "" }, { "docid": "15847a0f2338a4a6790f514a69783d47", "score": "0.6450668", "text": "void deduct(String name, Integer amount);", "title": "" }, { "docid": "f574399e76af14199feed85ecc80cfb0", "score": "0.6448724", "text": "public void debitar(int valor) throws SaldoInsuficienteException{\r\n this.contaCorrente.debitar(valor);\r\n }", "title": "" }, { "docid": "f54e4f5e271adc3dadc2532ffe33a716", "score": "0.644666", "text": "public void deposit(double depositAmount) {\n if (depositAmount < 0) throw new IllegalArgumentException(\"Deposit Amount cannot be negative\");\n balance += depositAmount;\n ++numDeposits;\n }", "title": "" }, { "docid": "8382caa3e425e67cea858d959dfd4544", "score": "0.64456314", "text": "public void deposit(double depAmnt){\n try {\n String queryStr = \"update dummybank set amount = ? where accountNo = ?\";\n ps = con.prepareStatement(queryStr);\n ps.setDouble(1,this.amnt + depAmnt );\n ps.setString(2, accNo);\n ps.executeUpdate();\n } catch (SQLException ex) {\n Logger.getLogger(BankDBConnector.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "title": "" }, { "docid": "1fb542b0f632ea7aa46a7f54e01747a7", "score": "0.6422632", "text": "@Override\r\n\tpublic void deposit() {\n\t\tSystem.out.println(\"This Deposit value is from Axisbank class\");\r\n\t\t//super.deposit();\r\n\t}", "title": "" }, { "docid": "1e78ea64d44a8a7d997a78ef88aaead6", "score": "0.6404242", "text": "void depositByCheque(double amount) {\n\t\tif (isSuspended()) {\n\t\t\tSystem.out.println(\"Account is suspended.\");\n\t\t\treturn;\n\t\t}\n\t\tif (amount <= 0) {\n\t\t\tSystem.out.println(\"Amount must be more than 0.\");\n\t\t\tSystem.out.println(\"Depositing failed.\");\n\t\t\treturn;\n\t\t}\n\t\tcheque += amount;\n\t\tSystem.out.println(\"Deposit cheque \" + amount + \" successfully\");\n\t}", "title": "" }, { "docid": "842854f9e45da87fb763e2202cbc6ebc", "score": "0.6398988", "text": "public void deposit(BigDecimal amount) {\n this.setBalance(this.getBalance().add(amount));\n }", "title": "" }, { "docid": "c2d6197ea81c6198ca0e65a2758e7af4", "score": "0.6388078", "text": "public double deposit(double amount){\n double total=amount;\n if(type.equals(\"TMB\"));total=-0.5;\n currentBalance+=total;\n return currentBalance;\n }", "title": "" }, { "docid": "c95b4d9d6ec9ddf964c78cb1c95cfad0", "score": "0.6374057", "text": "public void dispenseMoney(Money amount){\n\t\ttry{\n\t\t\tThread.sleep(4000);\n\t\t} catch(InterruptedException e)\n\t\t{}\n\t\tavailableCash.subtract(amount);\n\t}", "title": "" }, { "docid": "2c434e02ff5a1c84607af75ce0656f8b", "score": "0.6354496", "text": "public int deposit(int depositAmmount);", "title": "" }, { "docid": "e8adc28a82cb078404c3d4528a08826d", "score": "0.6348617", "text": "public void debit(float f){\n\t\taccount.debit(f);\n\t\tSystem.out.println(\"\\t- \"+ f + \" euros are debited from \" + this + \" account whose balance is now \" +account);\n\t\t\n\t}", "title": "" }, { "docid": "ab12c441780023ea3894e8e3607c23c2", "score": "0.63450676", "text": "public void deposit( double amount ) throws Exception\n\t{\n // TODO\n // deposit amount of money, if it is legal/valid amount\n\t\tif(amount >= 0.0)\n\t\t\tbalance += amount;\n\t\telse\n\t\t\tthrow new Exception(\"Invalid Deposite Amount\");\n\t}", "title": "" }, { "docid": "5a222f561e4f63a5276bd0f6b7cc179d", "score": "0.6336881", "text": "void deposit() {\n System.out.println(\"Enter the amount to deposit : \");\n int deposit = scan.nextInt();\n balance += deposit;\n }", "title": "" }, { "docid": "0f1e31f6202c4f7649036108e458fb83", "score": "0.63310766", "text": "@Override\r\n\tpublic boolean deopsit(double amount) {\n\t\ttry {\r\n\t\t\tif (accountStatus.equals(AccountStatus.ACTIVE)) {\r\n\t\t\t\tbalance = (float) (balance + amount);\r\n\t\t\t} else {\r\n\t\t\t\tthrow new AccountInactiveException(\"You'er Account is not Active !\");\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\t\t\t// TODO: handle exception\r\n\t\t\tSystem.err.println(e.getMessage());\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "title": "" }, { "docid": "49cc47bb15f3135e22bba9df376b7810", "score": "0.6317958", "text": "public void depreciate(){\r\n float amountN = getAmount();\r\n float reduce = amountN*(rate/100);\r\n amountN = amountN - reduce;\r\n this.amount = amountN;\r\n }", "title": "" }, { "docid": "89d87a21eabdfeeb373a695dde8d07bb", "score": "0.6315746", "text": "@Override\n public void deposit(double amount) {\n super.deposit(amount);\n store_trans(amount);\n }", "title": "" }, { "docid": "10bfce4155a51c295fda7f50d9ed4c35", "score": "0.63157326", "text": "@Override //nadpisanie - adnotacja, wskazówka\n public int withdraw(int cash) {\n super.balance -=cash;\n return cash;\n }", "title": "" }, { "docid": "0c1029844f0964ccd07c804ba9b9c04a", "score": "0.6306434", "text": "public void spendAllMoney() {\n\t\tcurrentBalance = 0;\n\t}", "title": "" }, { "docid": "d03593875fc36db53835255ba88a22fc", "score": "0.63049895", "text": "private void doDeposit() {\n while (true){\n try{\n Account userAccount = ui.readAccount(currentUser.getAccounts());\n int amountDeposited = ui.takeDepositEnvelope();\n userAccount.credit(amountDeposited);\n ui.deliverMoney(amountDeposited);\n ui.displayNewBalance(userAccount);\n break;\n\n } catch (Exception e){\n ui.displayError(\"Please enter a valid number.\");\n }\n }\n\n\n }", "title": "" }, { "docid": "db2c5a85c31aea77c25e62019010ce51", "score": "0.62854445", "text": "void deposit(float amount) {\n\n float newBalance;\n if (this.transactionHistory.isEmpty()) {\n newBalance = amount;\n } else {\n newBalance = this.transactionHistory.getLastTransaction().getBalanceAfter() + amount;\n }\n Transaction transaction = new Transaction(amount, true, newBalance);\n transactionHistory.addTransaction(transaction);\n }", "title": "" }, { "docid": "dad6b98956c4f8019dff87d3892ed900", "score": "0.6284356", "text": "public void depositMenu(){\n\t\tstate = ATM_State.DEPOSIT;\n\t\tgui.setDisplay(\"Amount to deposit: \\n$\");\t\n\t}", "title": "" }, { "docid": "2d1ee8bd6e747023bdf4bc378a22a6e3", "score": "0.62839484", "text": "public void deposit(int amount) {\n\t\tint newBalance = balance + amount;\n\t\ttry{\n\t\t\tThread.sleep(5); //added to make magnify corruption & make visible\n\t\t}catch(InterruptedException ex) {\n\t\t\tex.printStackTrace();\n\t\t}\n\t\tthis.balance = newBalance;\n\t}", "title": "" }, { "docid": "5d9e0ca32f2477ffaaa12b6ee0533efd", "score": "0.6276758", "text": "public static void extract_money(){\n TOTALCMONEY = TOTALCMONEY - BALANCERETRIEVE; //the total cashier money equals the total cashier money minus the retrieve request\r\n BALANCE = BALANCE - BALANCERETRIEVE; //the user balance equals the account minus the retrieve request\r\n }", "title": "" }, { "docid": "6a1031b3eb06dbebb107f7b844563649", "score": "0.62612057", "text": "void depos() \r\n{\r\nScanner sc4 = new Scanner(System.in);\r\nSystem.out.print(\"Please enter the amount to deposit:\");\r\nint depos = sc4.nextInt();\r\nmoney[x] = money[x] + depos;\r\nSystem.out.println(\"The Amount \"+depos+\" has been Deposited successfully!\");\r\nSystem.out.println(\"The Current Balance is:\"+money[x]);\r\n}", "title": "" }, { "docid": "5dc949b6a1533dfaed2141a129c814a0", "score": "0.62563103", "text": "@Override\n\tvoid deposit(double amount) {\n\t\tsuper.balance += amount - 20;\n\t}", "title": "" }, { "docid": "5d3fa5225248792f3e5dfb06ff12dc35", "score": "0.62553686", "text": "boolean debit(TransactionRequest transaction) throws ebank.InsufficientBalanceException,ebank.CardNumberException, SQLException, ClassNotFoundException;", "title": "" }, { "docid": "aaf69e8b0a5f3bb2d934df226182ba5e", "score": "0.62374645", "text": "void deleteBet(Account account, int id, BigDecimal amount) throws DAOException;", "title": "" }, { "docid": "78d03f0c0dcfea86e7cf26df84e9a4b9", "score": "0.62315834", "text": "@Override\r\n\tpublic double deductAccountMaintenanceFee() {\n\t\tif (this.getBalance() < 250.0)\r\n\t\t\treturn super.withdraw(250.0);\r\n\t\telse \r\n\t\t\treturn this.getBalance();\r\n\t\t\r\n\t}", "title": "" }, { "docid": "5c990020c43198ad320d59e90357e1ae", "score": "0.62291175", "text": "public long deposit(long amount) {\n balance += amount;\n return balance;\n }", "title": "" }, { "docid": "12f071ad87ab31530e900b0c5ca015a4", "score": "0.6226643", "text": "public void deposit (int amount){\n if(amount>=3000){\n super.deposit(amount+200);\n } else {\n super.deposit(amount);\n }\n }", "title": "" }, { "docid": "cfcbb6ba65755d553d7ade5cdb3f33b2", "score": "0.6211258", "text": "public int deposit(int amount) {\n\n balance += amount;\n System.out.println(\"--------------------------------------------\\n\" +\n \"* Your new balance is \" + this.balance + \" *\\n\" +\n \"--------------------------------------------\\n\");\n return balance;\n\n }", "title": "" }, { "docid": "bff2536720d52540f9c233f729ac326b", "score": "0.6205365", "text": "public void depositMoney(double amount, boolean checkingAccount) {\n if (checkingAccount) {\n checkingBalance += amount;\n totalBalance += amount;\n } else {\n savingsBalance += amount;\n totalBalance += amount;\n }\n }", "title": "" }, { "docid": "c4b827b961ff8266322a96c5f440a160", "score": "0.62005407", "text": "public Person reduceDebt(Float returnedMoney){\n this.debt += returnedMoney;\n return this;\n }", "title": "" }, { "docid": "5ca3309d33e2ddda3d15b7f4315960e0", "score": "0.61944544", "text": "public void deposit(double value){\r\n balance += value;\r\n}", "title": "" }, { "docid": "2e6740b0f0541abbfd4fe1ad37e75312", "score": "0.61846983", "text": "public void deposit(String accountNumber, int amount) {\n\t\tConnection conn;\n\t\tPreparedStatement ps, pp, ll;\n\t\tString url = \"jdbc:mysql://localhost:3306/mars\";\n\t\tString username = \"root\";\n\t\tString password = \"1113\";\n\t\tint lastBalance;\n\t\ttry {\n\t\t\tClass.forName(\"com.mysql.jdbc.Driver\");\n\t\t} catch (ClassNotFoundException e1) {\n\t\t\te1.printStackTrace();\n\t\t}\n\t\ttry{\n\t\tconn=DriverManager.getConnection(url, username, password);\n\t\tString sql = \"select balance,userId from \"+this.name+\" where accountNumber=?\";\n\t\tps= (PreparedStatement) conn.prepareStatement(sql);\n\t\tps.setString(1, accountNumber.toString());\n\t\tResultSet rs = ps.executeQuery();\n\t\tint nowBalance = 0;\n\t\tString id = \"\";\n\t\twhile(rs.next()) { \n\t\t\tnowBalance=rs.getInt(\"balance\");\n\t\t\tid = rs.getString(\"userId\");\n\t\t}\n\t\tlastBalance = nowBalance + amount;\n\t\t//System.out.println(lastBalance);\n\t\t\n\t\tString sql1 = \"UPDATE \"+this.name+\" SET balance=? where accountNumber=?\";\n\t\tpp = (PreparedStatement) conn.prepareStatement(sql1);\n\t\tpp.setInt(1, lastBalance);\n\t\tpp.setString(2, accountNumber.toString());\n\t\tpp.executeUpdate();\n\t\t\n\t\tString logs = \"deposit : \"+ amount+\" / balance: \"+String.valueOf(lastBalance);\n\t\tString sql11 = \"insert into \"+id+\" (log) values (?)\";\n\t\tll = (PreparedStatement) conn.prepareStatement(sql11);\n\t\tll.setString(1, logs);\n\t\tll.executeUpdate();\n\t\t\n\t\t}catch (SQLException e) {\n\t\t throw new IllegalStateException(\"Cannot connect the database!\", e);\n\t\t}\n\t}", "title": "" }, { "docid": "55127f0e2718ece343fc60110791d9af", "score": "0.61828977", "text": "@Override\n\tpublic void withdraw(int money) {\n\t\t\n\t}", "title": "" }, { "docid": "c84b5cafa4b53a555132da0d93b661a6", "score": "0.6178262", "text": "public int depositCash(int cash, int ubalance)\n {\n\n ubalance += cash;\n return ubalance;\n }", "title": "" }, { "docid": "7fbf8dc0e56be5daa8a050cce0d23791", "score": "0.61696434", "text": "@Override\n public BigDecimal withdraw(Account account, BigDecimal bigDecimal) {\n return null;\n }", "title": "" }, { "docid": "7567a41809818fa8e05127b8e461536f", "score": "0.6165543", "text": "public double deposit(double amount, boolean branch) {\n balance += amount;\n return balance;\n }", "title": "" }, { "docid": "43395da3aeca408b1ff8deaddc585234", "score": "0.61541855", "text": "public void withdraw(double amount) {\n this.balance -= amount;\n }", "title": "" }, { "docid": "aeab9bfac6f94741c45c62e3e86c18b1", "score": "0.6138575", "text": "@Override\n\tpublic void DepositMoney(Gamers gamer) {\n\t\tSystem.out.println(\"Lütfen yatıracağınız para miktarını giriniz\");\n\t\tint newDepositMoney;\n\t\tnewDepositMoney=sc.nextInt();\n\t\tsc.nextLine();\n\t\tgamer.setWalletBalance(gamer.getWalletBalance()+newDepositMoney);\n\t\tdbserviceadaptors.Save(gamer);\n\t\tSystem.out.println(\"Yeni bakiyeniz \"+gamer.getWalletBalance()+\" olarak güncellendi.\");\n\t\t\n\t}", "title": "" }, { "docid": "839dd89d8c07e251287399426fa93c2e", "score": "0.6120853", "text": "public void restCash(double amount) {\r\n cash -= amount;\r\n }", "title": "" } ]
657860608494418f72f92343c59b0ca0
/ this test uses the validate(Object) method of the selector pool. creating 1000 objects, which are not valid: ReachedEndException
[ { "docid": "c17aa5a51d213a6edaf44f60322474a9", "score": "0.82605785", "text": "@Test(expected = ReachedEndException.class)\n\tpublic void validateObjects() throws ReachedEndException {\n\t\tthis.selectorPool = new DefaultTestSelectorPool() {\n\n\t\t\t@Override\n\t\t\tpublic boolean validate(Object inputObj) {\n\t\t\t\t// every validation will fail: this means a new object will be\n\t\t\t\t// created again\n\t\t\t\tassertThat(inputObj, notNullValue());\n\n\t\t\t\treturn false;\n\t\t\t}\n\t\t};\n\t\t// exception has to be thrown with the first call (maximumNumber of\n\t\t// objects are created, but none is valid)\n\t\tassertThat(this.selectorPool.acquire(), nullValue());\n\t\tfail(\"The reached end exception had to be thrown already... but has not.\");\n\t}", "title": "" } ]
[ { "docid": "659a47f6692e8c725d409d72e170b03a", "score": "0.7312129", "text": "@Test(expected = ReachedEndException.class)\n\tpublic void filterObjects() throws ReachedEndException {\n\t\tthis.selectorPool = new DefaultTestSelectorPool(new Predicate<Object>() {\n\n\t\t\t@Override\n\t\t\tpublic boolean apply(Object inputObj) {\n\t\t\t\t// this filter fails every object, which is not null...\n\t\t\t\tassertThat(inputObj, notNullValue());\n\n\t\t\t\treturn inputObj == null;\n\t\t\t}\n\t\t}) {\n\n\t\t\t@Override\n\t\t\tpublic boolean validate(Object obj) {\n\t\t\t\t// every validation will be successful\n\t\t\t\treturn true;\n\t\t\t}\n\n\t\t};\n\t\t// exception has to be thrown with the first call (maximumNumber of\n\t\t// objects are created, but none is valid)\n\t\tassertThat(this.selectorPool.acquire(), nullValue());\n\t\tfail(\"The reached end exception had to be thrown already... but has not.\");\n\t}", "title": "" }, { "docid": "9f3f818bf8cb96fea80294298e1a9505", "score": "0.6659405", "text": "public void testMaxAgeFailedCreation() throws Exception {\n System.out.println(\"PoolTest.testMaxAgeFailedCreation\");\n final int min = 4;\n final int max = 9;\n final int maxAge = 5000;\n final int poll = 100;\n\n final CountDownLatch discarded = new CountDownLatch(max);\n final CountDownLatch created = new CountDownLatch(min);\n final CountDownLatch createInstances = new CountDownLatch(1);\n\n final Pool.Builder builder = new Pool.Builder();\n builder.setMinSize(min);\n builder.setMaxSize(max);\n builder.setMaxAge(new Duration(maxAge, MILLISECONDS));\n builder.setSweepInterval(new Duration(poll, MILLISECONDS));\n builder.setSupplier(new Pool.Supplier<Bean>() {\n public void discard(final Bean o, final Pool.Event reason) {\n countDown(discarded, o, \"discarded\");\n }\n\n public Bean create() {\n try {\n createInstances.await();\n } catch (final InterruptedException e) {\n Thread.interrupted();\n }\n try {\n throw new RuntimeException();\n } finally {\n created.countDown();\n }\n }\n });\n\n\n final Pool pool = this.pool = builder.build().start();\n\n // Fill pool to max\n Bean.instances.set(0);\n for (int i = 0; i < max; i++) {\n assertTrue(\"bean not added \" + i, pool.add(new Bean()));\n }\n\n\n { // Should have a full, non-null pool\n final List entries = drain(pool, 1000);\n checkMin(min, entries);\n checkEntries(max, entries);\n push(pool, entries);\n }\n\n // Now wait for the instances in the pool to expire\n await(discarded, maxAge * 4, TimeUnit.MILLISECONDS);\n\n // Minimum instances are still being created\n // The rest of the pool should be empty (null)\n {\n final List entries = drain(pool, 1000);\n // Should have \"non-min\" number of entries\n checkMax(max - min, entries);\n\n // Nothing should be a \"min\" item as those\n // are still being created\n checkMin(0, entries);\n\n // And as the pool was just drained all the\n // entries we get should be null\n checkNull(entries);\n\n push(pool, entries);\n }\n\n Bean.instances.set(0);\n\n // Try and trick the pool into adding more \"min\" items\n // Fill the pool as much as we can -- should only let us\n // fill to the max factoring in the \"min\" instances that\n // are currently being created\n {\n final List entries = drain(pool, 1000);\n\n // Should reject the instance we try to add\n\n assertFalse(pool.add(new Bean()));\n\n\n // Empty the pool\n discard(pool, entries);\n\n\n // Now count how many instances it lets us add\n Bean.instances.set(0);\n while (pool.add(new Bean())) ;\n\n // As the \"min\" instances are still being created\n // it should only let us fill max - min, then + 1\n // to account for the instance that gets rejected\n // and terminates the while loop\n final int expected = max - min + 1;\n\n assertEquals(expected, Bean.instances.getAndSet(0));\n }\n\n // Ok, let the \"min\" instance creation threads continue\n createInstances.countDown();\n\n // Wait for the \"min\" instance creation to complete\n await(created, 10, TimeUnit.SECONDS);\n\n { // Pool should be full but...\n final List entries = drain(pool, 1000);\n // we failed to create the min instances\n checkMin(0, entries);\n\n // the \"min\" entries should have been freed up\n // and we should have all the possible entires\n checkMax(max, entries);\n\n // though there should be \"min\" quantities of nulls\n checkEntries(max - min, entries);\n\n // Now when we push these back in, the right number\n // of entries should be converted to \"min\" entries\n push(pool, entries);\n\n }\n\n { // Pool should be full but...\n final List entries = drain(pool, 1000);\n\n // now we should have the right number of mins\n checkMin(min, entries);\n\n // should still have a full pool\n checkMax(max, entries);\n\n // though there should still be \"min\" quantities of nulls\n // as we still haven't created any more instances, we just\n // converted some of our instances into \"min\" entries\n checkEntries(max - min, entries);\n\n }\n\n // -- DONE --\n }", "title": "" }, { "docid": "b814802ae3821a7301f18e49e07599da", "score": "0.6429335", "text": "public void testFlushFailedCreation() throws Exception {\n System.out.println(\"PoolTest.testFlushFailedCreation\");\n final int min = 4;\n final int max = 9;\n final int poll = 200;\n\n final CountDownLatch discarded = new CountDownLatch(max);\n final CountDownLatch created = new CountDownLatch(min);\n final CountDownLatch createInstances = new CountDownLatch(1);\n\n final Pool.Builder builder = new Pool.Builder();\n builder.setMinSize(min);\n builder.setMaxSize(max);\n builder.setSweepInterval(new Duration(poll, TimeUnit.MILLISECONDS));\n builder.setSupplier(new Pool.Supplier() {\n public void discard(final Object o, final Pool.Event reason) {\n discarded.countDown();\n }\n\n public Object create() {\n try {\n createInstances.await();\n } catch (final InterruptedException e) {\n Thread.interrupted();\n }\n try {\n throw new RuntimeException();\n } finally {\n created.countDown();\n }\n }\n });\n\n\n final Pool pool = this.pool = builder.build().start();\n\n // Fill pool to max\n Bean.instances.set(0);\n for (int i = 0; i < max; i++) {\n assertTrue(pool.add(new Bean()));\n }\n\n\n { // Should have a full, non-null pool\n final List entries = drain(pool, 100);\n checkMin(min, entries);\n checkEntries(max, entries);\n push(pool, entries);\n }\n\n pool.flush();\n\n // Wait for the Evictor to come around and sweep out the pool\n await(discarded, 10, TimeUnit.SECONDS);\n\n // Minimum instances are still being created\n // The rest of the pool should be empty (null)\n {\n final List entries = drain(pool, 100);\n // Should have \"non-min\" number of entries\n checkMax(max - min, entries);\n\n // Nothing should be a \"min\" item as those\n // are still being created\n checkMin(0, entries);\n\n // And as the pool was just drained all the\n // entries we get should be null\n checkNull(entries);\n\n push(pool, entries);\n }\n\n Bean.instances.set(0);\n\n // Try and trick the pool into adding more \"min\" items\n // Fill the pool as much as we can -- should only let us\n // fill to the max factoring in the \"min\" instances that\n // are currently being created\n {\n final List entries = drain(pool, 100);\n\n // Should reject the instance we try to add\n\n assertFalse(pool.add(new Bean()));\n\n\n // Empty the pool\n discard(pool, entries);\n\n\n // Now count how many instances it lets us add\n Bean.instances.set(0);\n while (pool.add(new Bean())) ;\n\n // As the \"min\" instances are still being created\n // it should only let us fill max - min, then + 1\n // to account for the instance that gets rejected\n // and terminates the while loop\n final int expected = max - min + 1;\n\n assertEquals(expected, Bean.instances.getAndSet(0));\n }\n\n // Ok, let the \"min\" instance creation threads continue\n createInstances.countDown();\n\n // Wait for the \"min\" instance creation to complete\n await(created, 10, TimeUnit.SECONDS);\n\n { // Pool should be full but...\n final List entries = drain(pool, 100);\n // we failed to create the min instances\n checkMin(0, entries);\n\n // the \"min\" entries should have been freed up\n // and we should have all the possible entires\n checkMax(max, entries);\n\n // though there should be \"min\" quantities of nulls\n checkEntries(max - min, entries);\n\n // Now when we push these back in, the right number\n // of entries should be converted to \"min\" entries\n push(pool, entries);\n\n }\n\n { // Pool should be full but...\n final List entries = drain(pool, 100);\n\n // now we should have the right number of mins\n checkMin(min, entries);\n\n // should still have a full pool\n checkMax(max, entries);\n\n // though there should still be \"min\" quantities of nulls\n // as we still haven't created any more instances, we just\n // converted some of our instances into \"min\" entries\n checkEntries(max - min, entries);\n\n }\n\n // -- DONE --\n }", "title": "" }, { "docid": "c2d7e5ef5a87f1b87d24e494bb8ffaaa", "score": "0.6058872", "text": "@Test\n public void allowMaximumSizeToDivergeFromCoreSizeErrorTest() throws Exception {\n\n ((Logger) LoggerFactory.getLogger(Logger.ROOT_LOGGER_NAME)).setLevel(Level.INFO);\n\n ClassLoader classLoader = ClassLoader.getSystemClassLoader();\n\n System.setProperty(\"archaius.configurationSource.additionalUrls\", \"file://\"\n + classLoader.getResource(FILE_NAME).getFile());\n\n HystrixCommand.Setter setter = HystrixCommand.Setter.withGroupKey(HystrixCommandGroupKey.Factory.asKey(\"reproduce-the-bug\"));\n\n final ExecutorService executor = Executors.newFixedThreadPool(BATCH_SIZE);\n\n final CircuitBreaker circuitBreaker = new CircuitBreaker(setter);\n\n int i = 0;\n\n while (i < BATCH_SIZE) {\n logger.info(\"iterations\"+i);\n executor.submit(new CommandRunnable(circuitBreaker, \"Issue Test \" + i));\n i++;\n }\n\n Thread.sleep(WAIT);\n\n assertThat(10,is(iterList.size()));\n\n }", "title": "" }, { "docid": "274f6e105a84bbb6006aa2eaa08467cf", "score": "0.5986315", "text": "public void testMaxAgeOnReturn() throws Exception {\n System.out.println(\"PoolTest.testMaxAgeOnReturn\");\n final int min = 4;\n final int max = 9;\n final int maxAge = 200;\n final int sweepInterval = Integer.MAX_VALUE;\n\n final CountDownLatch created = new CountDownLatch(min);\n final CountDownLatch createInstances = new CountDownLatch(1);\n\n final Pool.Builder builder = new Pool.Builder();\n builder.setMinSize(min);\n builder.setMaxSize(max);\n builder.setMaxAge(new Duration(maxAge, MILLISECONDS));\n builder.setSweepInterval(new Duration(sweepInterval, MILLISECONDS));\n builder.setSupplier(new Pool.Supplier<Bean>() {\n public void discard(final Bean bean, final Pool.Event reason) {\n bean.discard();\n }\n\n public Bean create() {\n try {\n createInstances.await();\n } catch (final InterruptedException e) {\n Thread.interrupted();\n }\n try {\n return new Bean();\n } finally {\n created.countDown();\n }\n }\n });\n\n\n final Pool pool = this.pool = builder.build().start();\n\n // Fill pool to max\n Bean.instances.set(0);\n for (int i = 0; i < max; i++) {\n assertTrue(pool.add(new Bean()));\n }\n\n\n { // Should have a full, non-null pool\n final List entries = drain(pool, 100);\n checkMin(min, entries);\n checkEntries(max, entries);\n push(pool, entries);\n }\n\n {\n // Drain pool again, flush, then try and return them\n final List<Pool<Bean>.Entry> entries = drain(pool, 100);\n checkEntries(max, entries);\n\n // Now wait for max age\n Thread.sleep(maxAge);\n\n for (final Pool<Bean>.Entry entry : entries) {\n assertFalse(\"entry should not be accepted\", pool.push(entry));\n }\n }\n\n // Minimum instances are still being created\n // The rest of the pool should be empty (null)\n {\n final List entries = drain(pool, 100);\n\n // Nothing should be a \"min\" item as those\n // are still being created\n checkMin(0, entries);\n\n // And as the pool was just drained all the\n // entries we get should be null\n checkNull(entries);\n\n // Should have \"non-min\" number of entries\n checkMax(max - min, entries);\n\n push(pool, entries);\n }\n\n Bean.instances.set(0);\n\n // Try and trick the pool into adding more \"min\" items\n // Fill the pool as much as we can -- should only let us\n // fill to the max factoring in the \"min\" instances that\n // are currently being created\n {\n final List entries = drain(pool, 100);\n\n checkMax(max - min, entries);\n\n // Should reject the instance we try to add\n\n assertFalse(pool.add(new Bean()));\n\n\n // Empty the pool\n discard(pool, entries);\n\n\n // Now count how many instances it lets us add\n Bean.instances.set(0);\n while (pool.add(new Bean())) ;\n\n // As the \"min\" instances are still being created\n // it should only let us fill max - min, then + 1\n // to account for the instance that gets rejected\n // and terminates the while loop\n final int expected = max - min + 1;\n\n assertEquals(expected, Bean.instances.getAndSet(0));\n }\n\n // Ok, let the \"min\" instance creation threads continue\n createInstances.countDown();\n\n // Wait for the \"min\" instance creation to complete\n await(created, 10, TimeUnit.SECONDS);\n\n { // Pool should be full again\n final List entries = drain(pool, 100);\n checkMin(min, entries);\n checkEntries(max, entries);\n push(pool, entries);\n }\n\n // -- DONE --\n }", "title": "" }, { "docid": "b511c830922c0c4a7f08869d312f7f1a", "score": "0.58720994", "text": "@Test\n\tpublic void testOutOfMemError() throws Exception {\n\n\t final NexusMultiPageEditor editor = createNexusEditor(\"FeKedge_1_15.nxs\");\n\t\n\t\teditor.setActivePage(1);\n\t\t\n\t\tfinal NexusTreeEditor treeEd = (NexusTreeEditor)editor.getActiveEditor();\n\t\ttreeEd.expandAll();\n\t\t\n\t\twhile (Job.getJobManager().currentJob() != null) EclipseUtils.delay(1000);\n\t\tEclipseUtils.delay(2000);\n\t\t\n\t\teditor.setActivePage(0);\n\n\t}", "title": "" }, { "docid": "ad1dbe125ccccc8ad15c7de4e3f8c627", "score": "0.5832351", "text": "@Test\n public void testMaxPoolSize() throws XMLParserException, ComponentInitializationException {\n basicParserPool.initialize();\n Assert.assertEquals(0, basicParserPool.getPoolSize());\n \n ArrayList<DocumentBuilder> list = new ArrayList<>();\n \n // Get 3x the maxPoolSize number of builders\n for (int i=0; i < 3*maxPoolSize; i++) {\n list.add(basicParserPool.getBuilder());\n }\n \n Assert.assertEquals(0, basicParserPool.getPoolSize());\n \n for (DocumentBuilder b : list) {\n basicParserPool.returnBuilder(b); \n }\n \n // Even though we return 3*maxPoolSize builders, only maxPoolSize should be cached\n Assert.assertEquals(maxPoolSize, basicParserPool.getPoolSize());\n }", "title": "" }, { "docid": "c3f43228c1f2ebe549175a40e9e725b7", "score": "0.58104235", "text": "public ObjectPool(final int minObjects, final int maxObjects, final long validationInterval) { \n // initialize pool \n initialize(minObjects); \n // check pool conditions in a separate thread \n executorService = Executors.newSingleThreadScheduledExecutor(); \n executorService.scheduleWithFixedDelay(new Runnable() // annonymous class \n { \n @Override \n public void run() { \n int size = pool.size(); \n \n if (size < minObjects) { \n int sizeToBeAdded = minObjects + size; \n for (int i = 0; i < sizeToBeAdded; i++) { \n pool.add(createObject()); \n } \n } else if (size > maxObjects) { \n int sizeToBeRemoved = size - maxObjects; \n for (int i = 0; i < sizeToBeRemoved; i++) { \n pool.poll(); \n } \n } \n } \n }, validationInterval, validationInterval, TimeUnit.SECONDS); \n }", "title": "" }, { "docid": "2c415ef94ba38127832078476e00f550", "score": "0.5777909", "text": "@Test\n\tpublic void testOverflow() {\n\t\tfactory.initialize(Integer.MAX_VALUE);\n\n\t\tthrown.expect(IdsFactoryException.class);\n\t\tthrown.expectMessage(CoreMatchers.containsString(\"amount of available identifiers is reached\"));\n\n\t\tfactory.getId();\n\t}", "title": "" }, { "docid": "d360856608c5a0346fb7faebd7d9004d", "score": "0.5777053", "text": "public void testIdleTimeout() throws Exception {\n System.out.println(\"PoolTest.testIdleTimeout\");\n final int min = 4;\n final int max = 9;\n final int idleTimeout = 1000;\n final int sweepInterval = idleTimeout / 4;\n\n final List<Bean> discarded = new CopyOnWriteArrayList<>();\n final CountDownLatch discard = new CountDownLatch(max - min);\n final CountDownLatch hold = new CountDownLatch(1);\n\n final Pool.Builder<Bean> builder = new Pool.Builder<>();\n builder.setMinSize(min);\n builder.setMaxSize(max);\n builder.setExecutor(Executors.newFixedThreadPool(5));\n builder.setIdleTimeout(new Duration(idleTimeout, TimeUnit.MILLISECONDS));\n builder.setSweepInterval(new Duration(sweepInterval, TimeUnit.MILLISECONDS));\n builder.setSupplier(new Pool.Supplier<Bean>() {\n public void discard(final Bean bean, final Pool.Event reason) {\n bean.discard();\n discarded.add(bean);\n discard.countDown();\n try {\n // Executor should have enough threads\n // to execute removes on all the\n // timed out objects.\n hold.await();\n } catch (final InterruptedException e) {\n Thread.interrupted();\n }\n }\n\n public Bean create() {\n // Should never be called\n return new Bean();\n }\n });\n\n\n final Pool pool = this.pool = builder.build().start();\n\n // Fill pool to max\n Bean.instances.set(0);\n for (int i = 0; i < max; i++) {\n assertTrue(pool.add(new Bean()));\n }\n\n\n { // Should have a full, non-null pool\n final List entries = drain(pool, 100);\n checkMin(min, entries);\n checkEntries(max, entries);\n\n // Wait for the timeout -- items should not expire while in use\n Thread.sleep((long) (idleTimeout * 1.2));\n\n push(pool, entries);\n }\n\n\n await(discard, 20, TimeUnit.SECONDS);\n\n // All non-min instances should have been removed\n // no more, no less\n assertEquals(max - min, discarded.size());\n\n for (final Bean bean : discarded) {\n final long inactive = bean.discarded - bean.accessed;\n\n // Actual idle time should not be less than our setting\n assertTrue(\"timed out too soon: timeout=\" + idleTimeout + \", idle=\" + inactive, inactive >= idleTimeout);\n\n // It shouldn't be too much more either\n assertTrue(\"timed out too long\", inactive < idleTimeout + (sweepInterval * 2));\n }\n\n { // Pool should only have min number of non-null entries\n final List entries = drain(pool, 100);\n checkMin(min, entries);\n checkEntries(min, entries);\n push(pool, entries);\n }\n\n // -- DONE --\n\n assertEquals(max, Bean.instances.get());\n }", "title": "" }, { "docid": "55fe483a66481c492177b818ac601de9", "score": "0.56421757", "text": "@Test\r\n\tpublic void testInsertSuccessKilled() throws Exception\r\n\t{\n\t}", "title": "" }, { "docid": "3398a67e64d2eb68bac4941885c83c6b", "score": "0.5630137", "text": "@Test(timeout=300000)\n public void test10() throws Throwable {\n Controller controller0 = new Controller(\"M_CONTENT_INCOMPLETE\", 78, 78);\n VirtualDatabase virtualDatabase0 = new VirtualDatabase(controller0, \"M_CONTENT_INCOMPLETE\", 78, false, 78, 78, (long) 78, 78, (AbstractBlobFilter) null);\n WaitForCompletionPolicy waitForCompletionPolicy0 = new WaitForCompletionPolicy();\n RAIDb1_LPRF rAIDb1_LPRF0 = new RAIDb1_LPRF(virtualDatabase0, waitForCompletionPolicy0);\n DeleteRequest deleteRequest0 = new DeleteRequest(\"M_CONTENT_INCOMPLETE\", false, 78, \"M_CONTENT_INCOMPLETE\");\n MetadataCache metadataCache0 = new MetadataCache(78, 78);\n deleteRequest0.setBlocking(false);\n try { \n rAIDb1_LPRF0.execWriteRequestWithKeys(deleteRequest0, metadataCache0);\n fail(\"Expecting exception: NoMoreBackendException\");\n \n } catch(NoMoreBackendException e) {\n //\n // loadbalancer.backendlist.empty\n //\n assertThrownBy(\"org.objectweb.cjdbc.controller.loadbalancer.raidb1.RAIDb1\", e);\n }\n }", "title": "" }, { "docid": "de5eca79105e111ff41f94a9a7e9d7bf", "score": "0.5618945", "text": "@Test\n public void testBadEndPointCount() {\n when(_serviceFactory.isHealthy(eq(BAZ_ENDPOINT))).thenReturn(true);\n\n // Exhaust all of the end points...\n int numEndPointsAvailable = Iterables.size(_hostDiscovery.getHosts());\n for (int i = 0; i < numEndPointsAvailable; i++) {\n try {\n _pool.execute(NEVER_RETRY, new ServiceCallback<Service, Void>() {\n @Override\n public Void call(Service service) throws ServiceException {\n throw new ServiceException();\n }\n });\n fail(); // should have propagated service exception\n } catch (MaxRetriesException e) {\n // Expected\n }\n }\n\n _pool.forceHealthChecks();\n\n // Only BAZ should be healthy\n assertEquals(1, _pool.getNumValidEndPoints());\n assertEquals(2, _pool.getNumBadEndPoints());\n }", "title": "" }, { "docid": "9d04337c5ad4d1ee223f83cfebcb4a78", "score": "0.55915934", "text": "@Test(timeout = 4000)\n public void test04() throws Throwable {\n VisualListModel visualListModel0 = new VisualListModel();\n visualListModel0.getValidElements();\n visualListModel0.getSize();\n visualListModel0.addAllElements(2177, (Collection<VisualPageListItem>) null);\n assertEquals(0, visualListModel0.getSize());\n }", "title": "" }, { "docid": "1b25787fb641511cee8a814322cb6abb", "score": "0.55632335", "text": "@Test(timeout = 4000)\n public void test23() throws Throwable {\n VisualListModel visualListModel0 = new VisualListModel();\n visualListModel0.getSize();\n LinkedList<VisualPageListItem> linkedList0 = new LinkedList<VisualPageListItem>();\n Consumer<Object> consumer0 = (Consumer<Object>) mock(Consumer.class, new ViolatedAssumptionAnswer());\n linkedList0.forEach(consumer0);\n visualListModel0.addAllElements(0, (Collection<VisualPageListItem>) linkedList0);\n List<VisualPageListItem> list0 = visualListModel0.getValidElements();\n assertNull(list0);\n }", "title": "" }, { "docid": "3ed1a6b96d9ceb45fa0118d77d7ba986", "score": "0.55591154", "text": "@Test(timeout = 4000)\n public void test39() throws Throwable {\n ConnectionFactories connectionFactories0 = new ConnectionFactories();\n ConnectionFactory connectionFactory0 = new ConnectionFactory();\n try { \n connectionFactories0.addConnectionFactory(2784, connectionFactory0);\n fail(\"Expecting exception: IndexOutOfBoundsException\");\n \n } catch(IndexOutOfBoundsException e) {\n //\n // Index: 2784, Size: 0\n //\n verifyException(\"java.util.ArrayList\", e);\n }\n }", "title": "" }, { "docid": "940552f76540cd507d2cff83ce3fcf44", "score": "0.55473614", "text": "@Test(timeout = 4000)\n public void test26() throws Throwable {\n VisualListModel visualListModel0 = new VisualListModel();\n visualListModel0.moveDownIndex(1024);\n HashSet<VisualPageListItem> hashSet0 = new HashSet<VisualPageListItem>(1024);\n visualListModel0.addAllElements(1024, (Collection<VisualPageListItem>) hashSet0);\n assertEquals(0, visualListModel0.getSize());\n }", "title": "" }, { "docid": "3024c99e157967d636e57161c025af0d", "score": "0.552364", "text": "@Test(timeout = 4000)\n public void test266() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n Block block0 = new Block(errorPage0);\n Component component0 = block0.end();\n assertEquals(\"wheel_ErrorPage\", component0.getComponentId());\n assertTrue(block0._isGeneratedId());\n }", "title": "" }, { "docid": "7c8c67a93e7dbbf31000b9631a2eee9e", "score": "0.5490914", "text": "@Test(timeout=300000)\n public void test00() throws Throwable {\n WaitForCompletionPolicy waitForCompletionPolicy0 = new WaitForCompletionPolicy();\n Controller controller0 = new Controller(\"n-UEli_0EEw ta8\", 0, 0);\n BlobEscapedFilter blobEscapedFilter0 = new BlobEscapedFilter();\n VirtualDatabase virtualDatabase0 = new VirtualDatabase(controller0, \"\", 3, true, 3, 0, 0L, 1831, (AbstractBlobFilter) blobEscapedFilter0);\n RAIDb1_RR rAIDb1_RR0 = new RAIDb1_RR(virtualDatabase0, waitForCompletionPolicy0);\n StoredProcedure storedProcedure0 = new StoredProcedure(\"L\", false, 3, (String) null, false);\n MetadataCache metadataCache0 = new MetadataCache(1, 1831);\n try { \n rAIDb1_RR0.execReadStoredProcedure(storedProcedure0, metadataCache0);\n fail(\"Expecting exception: NoMoreBackendException\");\n \n } catch(NoMoreBackendException e) {\n //\n // loadbalancer.backendlist.empty\n //\n assertThrownBy(\"org.objectweb.cjdbc.controller.loadbalancer.raidb1.RAIDb1\", e);\n }\n }", "title": "" }, { "docid": "84319bc956aa187545d873ae3b1e2cd1", "score": "0.54908407", "text": "@Test(timeout = 4000)\n public void test419() throws Throwable {\n DynamicSelectModel dynamicSelectModel0 = new DynamicSelectModel();\n ErrorPage errorPage0 = new ErrorPage();\n Component component0 = errorPage0.sup((Object) dynamicSelectModel0);\n assertEquals(\"wheel_ErrorPage\", errorPage0.getComponentId());\n assertTrue(component0._isGeneratedId());\n }", "title": "" }, { "docid": "948190ad89fbc8e97acd934a5cb44e93", "score": "0.54885983", "text": "@Test\n public void testAdjustPoolSize()\n {\n\n validationExecutor = new CompactionManager.ValidationExecutor();\n\n int corePoolSize = validationExecutor.getCorePoolSize();\n int maxPoolSize = validationExecutor.getMaximumPoolSize();\n\n DatabaseDescriptor.setConcurrentValidations(corePoolSize * 2);\n validationExecutor.adjustPoolSize();\n assertThat(validationExecutor.getCorePoolSize()).isEqualTo(corePoolSize * 2);\n assertThat(validationExecutor.getMaximumPoolSize()).isEqualTo(maxPoolSize * 2);\n validationExecutor.shutdownNow();\n }", "title": "" }, { "docid": "8ff1b875e99dff5df3b4c869934b94ca", "score": "0.54798543", "text": "@Test(timeout = 4000)\n public void test61() throws Throwable {\n ConnectionFactories connectionFactories0 = new ConnectionFactories();\n connectionFactories0.getQueueConnectionFactory();\n ConnectionFactory connectionFactory0 = new ConnectionFactory();\n try { \n connectionFactories0.setConnectionFactory(0, connectionFactory0);\n fail(\"Expecting exception: IndexOutOfBoundsException\");\n \n } catch(IndexOutOfBoundsException e) {\n //\n // Index: 0, Size: 0\n //\n verifyException(\"java.util.ArrayList\", e);\n }\n }", "title": "" }, { "docid": "1159d5f66e41dc6e79a37c5f125298e4", "score": "0.54716796", "text": "@Test(timeout = 4000)\n public void test408() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n DynamicSelectModel dynamicSelectModel0 = errorPage0.selectModel();\n Component component0 = errorPage0.ins((Object) dynamicSelectModel0);\n assertEquals(\"wheel_ErrorPage\", errorPage0.getComponentId());\n assertTrue(component0._isGeneratedId());\n }", "title": "" }, { "docid": "76e675ceb4c18e6b122e441611fa89ca", "score": "0.5459579", "text": "@Test(timeout = 4000)\n public void test254() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n Block block0 = new Block(errorPage0);\n block0.afterAdd();\n assertEquals(\"wheel_ErrorPage\", errorPage0.getComponentId());\n assertTrue(block0._isGeneratedId());\n }", "title": "" }, { "docid": "9e484472a5ecde701bd3136f2fcef898", "score": "0.54477614", "text": "@Test(timeout = 4000)\n public void test53() throws Throwable {\n ConnectionFactories connectionFactories0 = new ConnectionFactories();\n int int0 = 41;\n QueueConnectionFactory queueConnectionFactory0 = new QueueConnectionFactory();\n try { \n connectionFactories0.addQueueConnectionFactory(41, queueConnectionFactory0);\n fail(\"Expecting exception: IndexOutOfBoundsException\");\n \n } catch(IndexOutOfBoundsException e) {\n //\n // Index: 41, Size: 0\n //\n verifyException(\"java.util.ArrayList\", e);\n }\n }", "title": "" }, { "docid": "1ecd6d5d985b479f3a4af462c5c13328", "score": "0.54413605", "text": "@Test\n public void poolSizeTest() {\n // TODO: test poolSize\n }", "title": "" }, { "docid": "acf9486aeaf8669ffed6b973acab778c", "score": "0.53962785", "text": "@Test(timeout = 4000)\n public void test14() throws Throwable {\n ConnectionFactories connectionFactories0 = new ConnectionFactories();\n try { \n connectionFactories0.getQueueConnectionFactory(0);\n fail(\"Expecting exception: IndexOutOfBoundsException\");\n \n } catch(IndexOutOfBoundsException e) {\n //\n // Index: 0, Size: 0\n //\n verifyException(\"java.util.ArrayList\", e);\n }\n }", "title": "" }, { "docid": "926b7d84a4d4384e8dcc993d3420ccf5", "score": "0.5396042", "text": "@Test(timeout = 4000)\n public void test41() throws Throwable {\n ConnectionFactories connectionFactories0 = new ConnectionFactories();\n XAQueueConnectionFactory xAQueueConnectionFactory0 = new XAQueueConnectionFactory();\n try { \n connectionFactories0.addXAQueueConnectionFactory(757, xAQueueConnectionFactory0);\n fail(\"Expecting exception: IndexOutOfBoundsException\");\n \n } catch(IndexOutOfBoundsException e) {\n //\n // Index: 757, Size: 0\n //\n verifyException(\"java.util.ArrayList\", e);\n }\n }", "title": "" }, { "docid": "85eee573d979fff525019006efe84319", "score": "0.53958213", "text": "@Override\n\tpublic void testExecutionLoopCount(int count) {\n\n\t}", "title": "" }, { "docid": "ccb161efb2602c85df5732bb0f078146", "score": "0.53947437", "text": "@Test(priority=5)\n\tpublic void validateAddition() throws InterruptedException {\n\t\t\n\t\towner.validateData(\"fowner\", \"lowner\", \"owner's address\", \"Michigan\", \"4561237890\", \"fifi\", \"1988-03-24\", \"cat\");\n\t}", "title": "" }, { "docid": "4049b73f3b6ffb104b57c513bb77e0d3", "score": "0.53895754", "text": "@Test(timeout = 4000)\n public void test30() throws Throwable {\n ConnectionFactories connectionFactories0 = new ConnectionFactories();\n try { \n connectionFactories0.getXATopicConnectionFactory(0);\n fail(\"Expecting exception: IndexOutOfBoundsException\");\n \n } catch(IndexOutOfBoundsException e) {\n //\n // Index: 0, Size: 0\n //\n verifyException(\"java.util.ArrayList\", e);\n }\n }", "title": "" }, { "docid": "4f090248d85d6aa3d1d025ce624c20c7", "score": "0.5385005", "text": "@Test(timeout = 4000)\n public void test24() throws Throwable {\n VisualListModel visualListModel0 = new VisualListModel();\n Collection<VisualPageListItem> collection0 = visualListModel0.subList(0, 0, true);\n visualListModel0.addAllElements(0, collection0);\n assertEquals(0, visualListModel0.getSize());\n }", "title": "" }, { "docid": "7b9240174f5459b7a8a256927d14bcea", "score": "0.53750235", "text": "@Test(timeout=300000)\n public void test03() throws Throwable {\n Controller controller0 = new Controller(\"M_CONTENT_INCOMPLETE\", 78, 78);\n VirtualDatabase virtualDatabase0 = new VirtualDatabase(controller0, \"M_CONTENT_INCOMPLETE\", 78, false, 78, 78, (long) 78, 78, (AbstractBlobFilter) null);\n WaitForCompletionPolicy waitForCompletionPolicy0 = new WaitForCompletionPolicy();\n RAIDb1_LPRF rAIDb1_LPRF0 = new RAIDb1_LPRF(virtualDatabase0, waitForCompletionPolicy0);\n DeleteRequest deleteRequest0 = new DeleteRequest(\"M_CONTENT_INCOMPLETE\", false, 78, \"M_CONTENT_INCOMPLETE\");\n MetadataCache metadataCache0 = new MetadataCache(78, 78);\n try { \n rAIDb1_LPRF0.execWriteRequestWithKeys(deleteRequest0, metadataCache0);\n fail(\"Expecting exception: NoMoreBackendException\");\n \n } catch(NoMoreBackendException e) {\n //\n // loadbalancer.backendlist.empty\n //\n assertThrownBy(\"org.objectweb.cjdbc.controller.loadbalancer.raidb1.RAIDb1\", e);\n }\n }", "title": "" }, { "docid": "3b6e142a63515e1da581204868f33849", "score": "0.5371322", "text": "public void testCollectionSize()\r\n {\r\n try\r\n {\r\n Manager homer = new Manager(1,\"Homer\",\"Simpson\",\"homer@simpson.com\",1,\"serial 1\");\r\n Employee bart = new Employee(2,\"Bart\",\"Simpson\",\"bart@simpson.com\",2,\"serial 2\");\r\n Employee lisa = new Employee(3,\"Lisa\",\"Simpson\",\"lisa@simpson.com\",4,\"serial 3\");\r\n Manager homersBrother = new Manager(4,\"Homer Jr\",\"Simpson\",\"homerjr@simpson.com\",1,\"serial 4\");\r\n Employee lisasSister = new Employee(5,\"Lisa Sr\",\"Simpson\",\"lisasr@simpson.com\",4,\"serial 5\");\r\n bart.setManager(homer);\r\n lisa.setManager(homer);\r\n homer.addSubordinate(lisa);\r\n homer.addSubordinate(bart);\r\n lisasSister.setManager(homersBrother);\r\n homersBrother.addSubordinate(lisasSister);\r\n\r\n PersistenceManager pm = pmf.getPersistenceManager();\r\n Transaction tx = pm.currentTransaction();\r\n try\r\n {\r\n tx.begin();\r\n pm.makePersistent(bart);\r\n pm.makePersistent(homer);\r\n pm.makePersistent(lisa);\r\n pm.makePersistent(homersBrother);\r\n pm.makePersistent(lisasSister);\r\n tx.commit();\r\n\r\n tx.begin();\r\n Query q = pm.newQuery(Manager.class);\r\n q.setFilter(\"subordinates.size() == 2\");\r\n Collection c = (Collection) q.execute();\r\n assertEquals(1, c.size());\r\n assertEquals(((Manager)c.iterator().next()).getFirstName(), \"Homer\");\r\n tx.commit();\r\n }\r\n catch (Exception e)\r\n {\r\n LOG.error(\"Exception thrown during test\", e);\r\n fail(\"Exception thrown while executing query with collection.size()\");\r\n }\r\n finally\r\n {\r\n if (tx.isActive())\r\n {\r\n tx.rollback();\r\n }\r\n pm.close();\r\n }\r\n }\r\n finally\r\n {\r\n // Clean out our data\r\n CompanyHelper.clearCompanyData(pmf);\r\n }\r\n }", "title": "" }, { "docid": "f1f83b3fd7ee8d82933de6fc581389c6", "score": "0.534769", "text": "@Test(timeout = 4000)\n public void test10() throws Throwable {\n ConnectionFactories connectionFactories0 = new ConnectionFactories();\n int int0 = 0;\n try { \n connectionFactories0.getXAQueueConnectionFactory(0);\n fail(\"Expecting exception: IndexOutOfBoundsException\");\n \n } catch(IndexOutOfBoundsException e) {\n //\n // Index: 0, Size: 0\n //\n verifyException(\"java.util.ArrayList\", e);\n }\n }", "title": "" }, { "docid": "28119a67b5da000e30b348cf3596d4d6", "score": "0.5345143", "text": "@Test(timeout = 4000)\n public void test432() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n StringSelectModel stringSelectModel0 = new StringSelectModel();\n // Undeclared exception!\n try { \n errorPage0.multiSelect((String) null, stringSelectModel0, (CharSequence) null);\n fail(\"Expecting exception: RuntimeException\");\n \n } catch(RuntimeException e) {\n //\n // Form elements can be created only by compoents that are attached to a form component.\n //\n verifyException(\"wheel.components.ComponentCreator\", e);\n }\n }", "title": "" }, { "docid": "7667c551733fda2bf01201e167f5fb53", "score": "0.5342631", "text": "@Test(timeout = 4000)\n public void test14() throws Throwable {\n VisualListModel visualListModel0 = new VisualListModel();\n visualListModel0.moveDownIndex(102);\n Collection<VisualPageListItem> collection0 = visualListModel0.subList(102, 1488, false);\n assertNull(collection0);\n }", "title": "" }, { "docid": "4a19aac5580997d7ca7e91574f5e0944", "score": "0.5341156", "text": "@Test(timeout = 4000)\n public void test097() throws Throwable {\n Range range0 = Range.ofLength(4294967294L);\n Spliterator<Long> spliterator0 = range0.spliterator();\n range0.equals(spliterator0);\n assertFalse(range0.isEmpty());\n }", "title": "" }, { "docid": "98730d9b3ae5cdd3a31ac0d9672be0f9", "score": "0.5299402", "text": "@Test(timeout = 4000)\n public void test152() throws Throwable {\n Range.Builder range_Builder0 = new Range.Builder();\n Range.Builder range_Builder1 = range_Builder0.copy();\n assertNotSame(range_Builder0, range_Builder1);\n }", "title": "" }, { "docid": "a165842e62ea1d4bd3e086a604c82503", "score": "0.529822", "text": "@Test(timeout = 4000)\n public void test244() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n Component component0 = errorPage0.dd((Object) \"length\");\n component0._getForm(true);\n assertEquals(\"wheel_ErrorPage\", errorPage0.getComponentId());\n assertTrue(component0._isGeneratedId());\n }", "title": "" }, { "docid": "b2f9e4b17a2591dd295f43c0d78d97f2", "score": "0.5296665", "text": "@Test(timeout = 4000)\n public void test310() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n DynamicSelectModel dynamicSelectModel0 = new DynamicSelectModel();\n // Undeclared exception!\n try { \n errorPage0.select((String) null, dynamicSelectModel0, (CharSequence) null);\n fail(\"Expecting exception: RuntimeException\");\n \n } catch(RuntimeException e) {\n //\n // Form elements can be created only by compoents that are attached to a form component.\n //\n verifyException(\"wheel.components.ComponentCreator\", e);\n }\n }", "title": "" }, { "docid": "b0810483948c7d98278894a8f82f2a2e", "score": "0.52966374", "text": "@Test(timeout=300000)\n public void test02() throws Throwable {\n Controller controller0 = new Controller(\"'U{}g6xX|\", 904, 0);\n NoneBlobFilter noneBlobFilter0 = new NoneBlobFilter();\n VirtualDatabase virtualDatabase0 = new VirtualDatabase(controller0, \"loadbalancer.backend.workerthread.blocking.add\", 0, true, 0, 2, 1L, (-3221), (AbstractBlobFilter) noneBlobFilter0);\n WaitForCompletionPolicy waitForCompletionPolicy0 = new WaitForCompletionPolicy();\n RAIDb1_LPRF rAIDb1_LPRF0 = new RAIDb1_LPRF(virtualDatabase0, waitForCompletionPolicy0);\n try { \n rAIDb1_LPRF0.execWriteStoredProcedure((StoredProcedure) null);\n fail(\"Expecting exception: NoMoreBackendException\");\n \n } catch(NoMoreBackendException e) {\n //\n // loadbalancer.backendlist.empty\n //\n assertThrownBy(\"org.objectweb.cjdbc.controller.loadbalancer.raidb1.RAIDb1\", e);\n }\n }", "title": "" }, { "docid": "d68863fafdf8c0fa0641de17a2ca78a4", "score": "0.52958447", "text": "@Test(timeout = 4000)\n public void test094() throws Throwable {\n Range.Builder range_Builder0 = new Range.Builder(9223372036854775513L);\n Range range0 = range_Builder0.build();\n Object object0 = new Object();\n range0.equals(object0);\n assertFalse(range0.isEmpty());\n }", "title": "" }, { "docid": "6c9b78f396da9b05831fa3b306be987a", "score": "0.52927655", "text": "@Test(timeout = 4000)\n public void test09() throws Throwable {\n ConnectionFactories connectionFactories0 = new ConnectionFactories();\n try { \n connectionFactories0.getConnectionFactory(0);\n fail(\"Expecting exception: IndexOutOfBoundsException\");\n \n } catch(IndexOutOfBoundsException e) {\n //\n // Index: 0, Size: 0\n //\n verifyException(\"java.util.ArrayList\", e);\n }\n }", "title": "" }, { "docid": "ade31d529107f68d46f399964d6b9a9c", "score": "0.528324", "text": "@Test(timeout = 4000)\n public void test057() throws Throwable {\n Range.Builder range_Builder0 = null;\n try {\n range_Builder0 = new Range.Builder((Range) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // range can not be null\n //\n verifyException(\"org.jcvi.jillion.core.Range$Builder\", e);\n }\n }", "title": "" }, { "docid": "d3054a3cfa666509a88e9a47e9657b59", "score": "0.5277071", "text": "@Test(timeout = 4000)\n public void test25() throws Throwable {\n VisualListModel visualListModel0 = new VisualListModel();\n visualListModel0.getSize();\n LinkedList<VisualPageListItem> linkedList0 = new LinkedList<VisualPageListItem>();\n Consumer<Object> consumer0 = (Consumer<Object>) mock(Consumer.class, new ViolatedAssumptionAnswer());\n String[] stringArray0 = new String[9];\n stringArray0[0] = \"\";\n stringArray0[1] = \"\";\n stringArray0[2] = \"\";\n stringArray0[3] = \"0|JYE\";\n stringArray0[4] = \"\";\n stringArray0[5] = \"}T\";\n stringArray0[6] = \"org.pdfsam.guiclient.commons.models.VisualListModel\";\n stringArray0[7] = \"oEYgyJ\";\n stringArray0[8] = \"\";\n JComboBox<String> jComboBox0 = new JComboBox<String>(stringArray0);\n jComboBox0.getToolTipText();\n visualListModel0.removeListDataListener(jComboBox0);\n Vector<VisualPageListItem> vector0 = visualListModel0.data;\n int[] intArray0 = new int[0];\n visualListModel0.moveDownIndexes(intArray0);\n visualListModel0.undeleteElements(intArray0);\n VisualListModel visualListModel1 = new VisualListModel();\n visualListModel1.getValidElements();\n visualListModel0.moveUpIndex(3552);\n assertNotSame(visualListModel0, visualListModel1);\n }", "title": "" }, { "docid": "ef79c0c179068d15a4271bef789c71c7", "score": "0.5273103", "text": "@Test(timeout = 4000)\n public void test46() throws Throwable {\n ConnectionFactories connectionFactories0 = new ConnectionFactories();\n XATopicConnectionFactory xATopicConnectionFactory0 = new XATopicConnectionFactory();\n try { \n connectionFactories0.addXATopicConnectionFactory((-1), xATopicConnectionFactory0);\n fail(\"Expecting exception: IndexOutOfBoundsException\");\n \n } catch(IndexOutOfBoundsException e) {\n //\n // Index: -1, Size: 0\n //\n verifyException(\"java.util.ArrayList\", e);\n }\n }", "title": "" }, { "docid": "95aac7238b3dfe55388863420698af5d", "score": "0.5271823", "text": "@Test\n public void testPopulateQuestionsPool_int() throws Exception {\n\t\tlogger.info(\"populateQuestionsPool\");\n int questionPoolSize = 0;\n Set<Question> expResult = null;\n Set<Question> result = mockedQuestionDao.populateQuestionsPool(questionPoolSize);\n }", "title": "" }, { "docid": "3146198335e06f333214aa2700104600", "score": "0.527176", "text": "@Test(timeout = 4000)\n public void test68() throws Throwable {\n ConnectionFactories connectionFactories0 = new ConnectionFactories();\n XAConnectionFactory[] xAConnectionFactoryArray0 = connectionFactories0.getXAConnectionFactory();\n connectionFactories0.setXAConnectionFactory(xAConnectionFactoryArray0);\n XAQueueConnectionFactory xAQueueConnectionFactory0 = new XAQueueConnectionFactory();\n QueueConnectionFactory queueConnectionFactory0 = new QueueConnectionFactory();\n try { \n connectionFactories0.setQueueConnectionFactory(0, queueConnectionFactory0);\n fail(\"Expecting exception: IndexOutOfBoundsException\");\n \n } catch(IndexOutOfBoundsException e) {\n //\n // Index: 0, Size: 0\n //\n verifyException(\"java.util.ArrayList\", e);\n }\n }", "title": "" }, { "docid": "b5174797c8dc7379f71fed55578eb61a", "score": "0.52698356", "text": "@Test(timeout = 4000)\n public void test67() throws Throwable {\n ConnectionFactories connectionFactories0 = new ConnectionFactories();\n XATopicConnectionFactory xATopicConnectionFactory0 = new XATopicConnectionFactory();\n try { \n connectionFactories0.setXATopicConnectionFactory(0, xATopicConnectionFactory0);\n fail(\"Expecting exception: IndexOutOfBoundsException\");\n \n } catch(IndexOutOfBoundsException e) {\n //\n // Index: 0, Size: 0\n //\n verifyException(\"java.util.ArrayList\", e);\n }\n }", "title": "" }, { "docid": "52cbc1cefd9db8da06d1d93eab940477", "score": "0.5269765", "text": "@Test(timeout = 4000)\n public void test149() throws Throwable {\n // Undeclared exception!\n try { \n Range.parseRange(\"org.jcvi.jillion.core.Range$RangeIterator\");\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // can not parse org.jcvi.jillion.core.Range$RangeIterator into a Range\n //\n verifyException(\"org.jcvi.jillion.core.Range\", e);\n }\n }", "title": "" }, { "docid": "556a03d3e6c6fac84a527b823365a0fa", "score": "0.52609795", "text": "public void testFlushOnReturn() throws Exception {\n System.out.println(\"PoolTest.testFlushOnReturn\");\n final int min = 4;\n final int max = 9;\n\n // Effectively disable sweeping the pool and \n // verify that Flush is still enforced by the\n // simple act of trying to return a flushed\n // item to the pool\n\n final int sweepInterval = Integer.MAX_VALUE;\n\n final CountDownLatch created = new CountDownLatch(min);\n final CountDownLatch createInstances = new CountDownLatch(1);\n\n final Pool.Builder builder = new Pool.Builder();\n builder.setMinSize(min);\n builder.setMaxSize(max);\n builder.setSweepInterval(new Duration(sweepInterval, TimeUnit.MILLISECONDS));\n builder.setSupplier(new Pool.Supplier<Bean>() {\n public void discard(final Bean bean, final Pool.Event reason) {\n bean.discard();\n }\n\n public Bean create() {\n try {\n createInstances.await();\n } catch (final InterruptedException e) {\n Thread.interrupted();\n }\n try {\n return new Bean();\n } finally {\n created.countDown();\n }\n }\n });\n\n\n final Pool pool = this.pool = builder.build().start();\n\n // Fill pool to max\n Bean.instances.set(0);\n for (int i = 0; i < max; i++) {\n assertTrue(pool.add(new Bean()));\n }\n\n\n { // Should have a full, non-null pool\n final List entries = drain(pool, 100);\n checkMin(min, entries);\n checkEntries(max, entries);\n push(pool, entries);\n }\n\n {\n // Drain pool again, flush, then try and return them\n final List<Pool<Bean>.Entry> entries = drain(pool, 100);\n checkEntries(max, entries);\n\n // Now call flush\n pool.flush();\n\n for (final Pool<Bean>.Entry entry : entries) {\n assertFalse(\"entry should not be accepted\", pool.push(entry));\n }\n }\n\n\n // Minimum instances are still being created\n // The rest of the pool should be empty (null)\n {\n final List entries = drain(pool, 100);\n // Should have \"non-min\" number of entries\n checkMax(max - min, entries);\n\n // Nothing should be a \"min\" item as those\n // are still being created\n checkMin(0, entries);\n\n // And as the pool was just drained all the\n // entries we get should be null\n checkNull(entries);\n\n push(pool, entries);\n }\n\n Bean.instances.set(0);\n\n // Try and trick the pool into adding more \"min\" items\n // Fill the pool as much as we can -- should only let us\n // fill to the max factoring in the \"min\" instances that\n // are currently being created\n {\n final List entries = drain(pool, 100);\n\n // Should reject the instance we try to add\n\n assertFalse(pool.add(new Bean()));\n\n\n // Empty the pool\n discard(pool, entries);\n\n\n // Now count how many instances it lets us add\n Bean.instances.set(0);\n while (pool.add(new Bean())) ;\n\n // As the \"min\" instances are still being created\n // it should only let us fill max - min, then + 1\n // to account for the instance that gets rejected\n // and terminates the while loop\n final int expected = max - min + 1;\n\n assertEquals(expected, Bean.instances.getAndSet(0));\n }\n\n // Ok, let the \"min\" instance creation threads continue\n createInstances.countDown();\n\n // Wait for the \"min\" instance creation to complete\n await(created, 10, TimeUnit.SECONDS);\n\n { // Pool should be full again\n final List entries = drain(pool, 100);\n checkMin(min, entries);\n checkEntries(max, entries);\n push(pool, entries);\n }\n\n // -- DONE --\n }", "title": "" }, { "docid": "79721f29b1d03469fcab4b4d1c32a164", "score": "0.5258988", "text": "@Test(timeout = 4000)\n public void test259() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n Block block0 = new Block(errorPage0);\n Component component0 = block0.getParent();\n assertEquals(\"wheel_ErrorPage\", component0.getComponentId());\n assertTrue(block0._isGeneratedId());\n }", "title": "" }, { "docid": "6f2c392182ff9ed8b4873a4a8991d059", "score": "0.52564967", "text": "@Test(timeout = 4000)\n public void test319() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n Component component0 = errorPage0.big((Object) \"l\");\n assertEquals(\"wheel_ErrorPage\", errorPage0.getComponentId());\n assertTrue(component0._isGeneratedId());\n }", "title": "" }, { "docid": "967e7ae2fbcc334034115cc706199a90", "score": "0.52541214", "text": "@Test(timeout = 4000)\n public void test23() throws Throwable {\n VisualListModel visualListModel0 = new VisualListModel();\n visualListModel0.getSize();\n TreeSet<VisualPageListItem> treeSet0 = new TreeSet<VisualPageListItem>();\n visualListModel0.addAllElements(0, (Collection<VisualPageListItem>) treeSet0);\n assertEquals(0, visualListModel0.getSize());\n }", "title": "" }, { "docid": "89b4efb08a9f1aa8f6e31f006aebd22f", "score": "0.52488655", "text": "@Test(timeout = 4000)\n public void test070() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n Radio radio0 = new Radio(errorPage0, \"J}GQf\", \"J}GQf\");\n DynamicSelectModel dynamicSelectModel0 = new DynamicSelectModel();\n // Undeclared exception!\n try { \n radio0.strong((Object) dynamicSelectModel0);\n fail(\"Expecting exception: RuntimeException\");\n \n } catch(RuntimeException e) {\n //\n // Can't add components to a component that is not an instance of IContainer.\n //\n verifyException(\"wheel.components.Component\", e);\n }\n }", "title": "" }, { "docid": "8b0709a757dfd1244b9fe7d5693483ae", "score": "0.5243679", "text": "@Test(timeout = 4000)\n public void test152() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n Block block0 = new Block(errorPage0);\n Component component0 = block0.text(errorPage0);\n Submit submit0 = new Submit(component0, \"Qp*,H$+}6'C\", \"Qp*,H$+}6'C\");\n XmlEntityRef xmlEntityRef0 = new XmlEntityRef(\"Qp*,H$+}6'C\");\n // Undeclared exception!\n try { \n submit0.h4((Object) xmlEntityRef0);\n fail(\"Expecting exception: RuntimeException\");\n \n } catch(RuntimeException e) {\n //\n // Can't add components to a component that is not an instance of IContainer.\n //\n verifyException(\"wheel.components.Component\", e);\n }\n }", "title": "" }, { "docid": "1bba03c58ea06be14289d90260a72965", "score": "0.5235106", "text": "public void verifySeatingCapacity() {\n\t\t\n\t}", "title": "" }, { "docid": "7b4e4d348fe0266fa654a1fb9e80a13d", "score": "0.52311903", "text": "@Test(timeout=300000)\n public void test11() throws Throwable {\n HexaBlobFilter hexaBlobFilter0 = new HexaBlobFilter();\n VirtualDatabase virtualDatabase0 = new VirtualDatabase((Controller) null, \"loadbalancer.setsavepoint.failed.stack\", 320, false, 320, 320, (long) 320, 320, (AbstractBlobFilter) hexaBlobFilter0);\n WaitForCompletionPolicy waitForCompletionPolicy0 = new WaitForCompletionPolicy();\n ErrorCheckingRandom errorCheckingRandom0 = new ErrorCheckingRandom(320);\n RAIDb1ec_RR rAIDb1ec_RR0 = new RAIDb1ec_RR(virtualDatabase0, waitForCompletionPolicy0, (ErrorCheckingPolicy) errorCheckingRandom0, (-1817));\n StoredProcedure storedProcedure0 = new StoredProcedure(\"loadbalancer.setsavepoint.failed.stack\", false, (-2080), \"loadbalancer.setsavepoint.failed.stack\", false);\n DatabaseBackend databaseBackend0 = new DatabaseBackend(\"\", \"loadbalancer.setsavepoint.failed.stack\", \"\", \"\", \"\", false, \"\");\n try { \n rAIDb1ec_RR0.executeStoredProcedureOnBackend(storedProcedure0, databaseBackend0, (MetadataCache) null);\n fail(\"Expecting exception: SQLException\");\n \n } catch(SQLException e) {\n //\n // loadbalancer.connectionmanager.not.found\n //\n assertThrownBy(\"org.objectweb.cjdbc.controller.loadbalancer.raidb1.RAIDb1\", e);\n }\n }", "title": "" }, { "docid": "9d553f03820df238bfb70dafdc276a4a", "score": "0.5212779", "text": "@Test(timeout = 4000)\n public void test20() throws Throwable {\n VisualListModel visualListModel0 = new VisualListModel();\n Stack<VisualPageListItem> stack0 = new Stack<VisualPageListItem>();\n stack0.add((VisualPageListItem) null);\n HashSet<VisualPageListItem> hashSet0 = new HashSet<VisualPageListItem>();\n visualListModel0.setData((Vector<VisualPageListItem>) stack0);\n visualListModel0.moveDownIndex(91);\n assertEquals(1, visualListModel0.getSize());\n }", "title": "" }, { "docid": "e6ba20fce980c9dbb1758547090360e5", "score": "0.51870924", "text": "@Test(timeout = 4000)\n public void test429() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n Block block0 = new Block(errorPage0);\n Component component0 = block0.text(errorPage0);\n // Undeclared exception!\n try { \n component0.h6((Object) \"%7/\");\n fail(\"Expecting exception: RuntimeException\");\n \n } catch(RuntimeException e) {\n //\n // Can't add components to a component that is not an instance of IContainer.\n //\n verifyException(\"wheel.components.Component\", e);\n }\n }", "title": "" }, { "docid": "23212da02c7dc626c69c399c12c78e69", "score": "0.5186835", "text": "@Test(timeout = 4000)\n public void test52() throws Throwable {\n ConnectionFactories connectionFactories0 = new ConnectionFactories();\n XAConnectionFactory xAConnectionFactory0 = new XAConnectionFactory();\n try { \n connectionFactories0.addXAConnectionFactory(2331, xAConnectionFactory0);\n fail(\"Expecting exception: IndexOutOfBoundsException\");\n \n } catch(IndexOutOfBoundsException e) {\n //\n // Index: 2331, Size: 0\n //\n verifyException(\"java.util.ArrayList\", e);\n }\n }", "title": "" }, { "docid": "ae5b0866c234cf803610006e306530a8", "score": "0.5184432", "text": "@Test(timeout = 4000)\n public void test304() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n Block block0 = new Block(errorPage0);\n Component component0 = block0.sup();\n assertEquals(\"wheel_ErrorPage\", errorPage0.getComponentId());\n assertTrue(component0._isGeneratedId());\n }", "title": "" }, { "docid": "b99649b45a24e2e5bb97599fc6bfa637", "score": "0.51809514", "text": "@Test\n public void poolMaxWaitMsecTest() {\n // TODO: test poolMaxWaitMsec\n }", "title": "" }, { "docid": "3c363080f3393590a74b21d645a10b98", "score": "0.51732194", "text": "@Test(timeout = 4000)\n public void test07() throws Throwable {\n ConnectionFactories connectionFactories0 = new ConnectionFactories();\n connectionFactories0.clearXATopicConnectionFactory();\n int int0 = 970;\n ConnectionFactories connectionFactories1 = new ConnectionFactories();\n try { \n connectionFactories1.getXAConnectionFactory(0);\n fail(\"Expecting exception: IndexOutOfBoundsException\");\n \n } catch(IndexOutOfBoundsException e) {\n //\n // Index: 0, Size: 0\n //\n verifyException(\"java.util.ArrayList\", e);\n }\n }", "title": "" }, { "docid": "0a83fe956970e5feb42ea573bfe27a09", "score": "0.5172311", "text": "@Test\n public void testPopulateQuestionsPool_int_int() throws Exception {\n\t\tlogger.info(\"populateQuestionsPool\");\n int questionPoolSize = 0;\n int answersNumberPerQuestion = 0;\n Set<Question> expResult = null;\n Set<Question> result = mockedQuestionDao.populateQuestionsPool(questionPoolSize, answersNumberPerQuestion);\n }", "title": "" }, { "docid": "1808cdc04cf3e1658f991589d87ddc9e", "score": "0.51720774", "text": "@Test\n public void testLimitedSizeQueueToIterator(){\n LimitedSizeQueue<Object> limitedSizeQueue = new LimitedSizeQueue<>();\n Assert.assertTrue(\"is false\",limitedSizeQueue.addAll(getList()));\n Assert.assertTrue(\"is false\",limitedSizeQueue.iterator().hasNext());\n }", "title": "" }, { "docid": "9a0acfcd3536c17125359b6f78e77ea3", "score": "0.51689184", "text": "@Test(timeout = 4000)\n public void test77() throws Throwable {\n DBUtil.wrapWithPooledConnection((Connection) null, true);\n // Undeclared exception!\n try { \n DBUtil.assertAllDbResourcesClosed(true);\n fail(\"Expecting exception: AssertionError\");\n \n } catch(AssertionError e) {\n //\n // There are unclosed database resources: 1 connection(s)\n //\n }\n }", "title": "" }, { "docid": "701cd3c5078fdc0db5e509f5f6910ad1", "score": "0.5167995", "text": "@AfterEach\n public void tearDown()\n {\n // pool object already explicitely released by call to returnObject in test\n // will throw java.lang.IllegalStateException, as pool is external to parserService\n //parserService.putParser(parser);\n this.release(parserService);\n }", "title": "" }, { "docid": "77ecbb6f6a79c137616e31680c63df07", "score": "0.5165698", "text": "@Test(timeout = 4000)\n public void test37() throws Throwable {\n JRip jRip0 = new JRip();\n jRip0.setOptions((String[]) null);\n jRip0.setOptions((String[]) null);\n JRip.RipperRule jRip_RipperRule0 = jRip0.new RipperRule();\n ArrayList<Attribute> arrayList0 = new ArrayList<Attribute>();\n Instances instances0 = new Instances(\"\", arrayList0, 69);\n try { \n jRip_RipperRule0.grow(instances0);\n fail(\"Expecting exception: Exception\");\n \n } catch(Exception e) {\n //\n // Consequent not set yet.\n //\n verifyException(\"weka.classifiers.rules.JRip$RipperRule\", e);\n }\n }", "title": "" }, { "docid": "4c3f43bb8a4fe67f3b4e6dfb8d868c79", "score": "0.5165299", "text": "public void checkSize()\n\t{\n if(postings.size() >= maxListSize)\n {\n save();\n\n if(actualList + 1 >= nextList)\n {\n actualList = nextList;\n nextList++;\n postings = new ArrayList<PostingsListElement>();\n }\n else\n {\n actualList = -1;\n postings = null;\n }\n }\n\t}", "title": "" }, { "docid": "46e4a3f32429199c8f6ebc99a9b6c4fd", "score": "0.5160326", "text": "@Test\n public void testInvalidTransactionInThreadPool() throws InterruptedException {\n runMultipleThreads(1,2, 3000, this::getAge);\n Thread.sleep(600000); /// main thread should sleep enough for debug purposes\n }", "title": "" }, { "docid": "1df6f64a4ca3702d1777bb817dacb213", "score": "0.515214", "text": "@Test(timeout = 4000)\n public void test097() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n Block block0 = new Block(errorPage0);\n Submit submit0 = new Submit(block0, \"Qp*,H$F}C\", \"Qp*,H$F}C\");\n // Undeclared exception!\n try { \n submit0.q();\n fail(\"Expecting exception: RuntimeException\");\n \n } catch(RuntimeException e) {\n //\n // Can't add components to a component that is not an instance of IContainer.\n //\n verifyException(\"wheel.components.Component\", e);\n }\n }", "title": "" }, { "docid": "79163578ba73dac0e5a2c2fab892d1db", "score": "0.51425505", "text": "@Test(timeout = 4000)\n public void test25() throws Throwable {\n ConnectionFactories connectionFactories0 = new ConnectionFactories();\n TopicConnectionFactory topicConnectionFactory0 = new TopicConnectionFactory();\n try { \n connectionFactories0.addTopicConnectionFactory(22, topicConnectionFactory0);\n fail(\"Expecting exception: IndexOutOfBoundsException\");\n \n } catch(IndexOutOfBoundsException e) {\n //\n // Index: 22, Size: 0\n //\n verifyException(\"java.util.ArrayList\", e);\n }\n }", "title": "" }, { "docid": "ef811e9a0ac4300e4e921eca7612682d", "score": "0.5141857", "text": "@Test(timeout = 4000)\n public void test70() throws Throwable {\n ConnectionFactories connectionFactories0 = new ConnectionFactories();\n connectionFactories0.clearXAConnectionFactory();\n connectionFactories0.getTopicConnectionFactory();\n XAQueueConnectionFactory xAQueueConnectionFactory0 = new XAQueueConnectionFactory();\n try { \n connectionFactories0.setXAQueueConnectionFactory(0, xAQueueConnectionFactory0);\n fail(\"Expecting exception: IndexOutOfBoundsException\");\n \n } catch(IndexOutOfBoundsException e) {\n //\n // Index: 0, Size: 0\n //\n verifyException(\"java.util.ArrayList\", e);\n }\n }", "title": "" }, { "docid": "d9d23d90d3a9c549bd7fe5b614821748", "score": "0.5135735", "text": "@Test(timeout = 4000)\n public void test007() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n Component component0 = errorPage0.a();\n Component component1 = component0.strong();\n assertTrue(component1._isGeneratedId());\n assertEquals(\"wheel_ErrorPage\", errorPage0.getComponentId());\n }", "title": "" }, { "docid": "3034b962b131bd76de30296b11b1808d", "score": "0.51324874", "text": "public static void main(String[] args) {\n\t\trunOutOfMemory();\r\n\t\tint size = Integer.MAX_VALUE;\r\n\t\tSet<Object> m = new HashSet<>();\r\n\t\t\ttry {\r\n\t\t\t\tbyte[] bytes = new byte[size];\r\n\t\t\tm.add(bytes);\r\n\t\t\tSystem.out.println(\"Object created \");\r\n\t\t\tSystem.out.println(\"Object added in set = \"+ m.size());\r\n\t\t\t}catch(Error er){\r\n\t\t\t\tSystem.out.println(\"Error occured \" + er.getMessage());\r\n\t\t\t\ter.printStackTrace();\r\n\t\t\t\tSystem.out.println(\"Object added in set after error = \"+ m.size());\r\n\t\t\t}\r\n\r\n\t}", "title": "" }, { "docid": "5aaa688456c0e1770615def1ddc62136", "score": "0.51273054", "text": "@Test(timeout = 4000)\n public void test146() throws Throwable {\n Range range0 = Range.of(1L, 1L);\n Consumer<Long> consumer0 = (Consumer<Long>) mock(Consumer.class, new ViolatedAssumptionAnswer());\n range0.forEach(consumer0);\n assertFalse(range0.isEmpty());\n }", "title": "" }, { "docid": "c072b3dda8d196874ef6b37df91f1569", "score": "0.5126374", "text": "@Test(timeout = 4000)\n public void test013() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n DynamicSelectModel dynamicSelectModel0 = errorPage0.selectModel();\n Component component0 = errorPage0.p((Object) dynamicSelectModel0);\n assertTrue(component0._isGeneratedId());\n assertEquals(\"wheel_ErrorPage\", errorPage0.getComponentId());\n }", "title": "" }, { "docid": "458c652ed1c103c14c9e8ea699e81d21", "score": "0.5122062", "text": "@Test\n public void testInsertCase5() {\n ActiveMeasurement am = new ActiveMeasurement(\"foo\");\n //we create 20 nodes with duration of 100.\n //the chain should only contain 10 (net.anotheria.moskito.core.entrypoint.PastMeasurementChainNode.MAX_LENGTH)\n PastMeasurementChainNode root = null;\n\n //build chain.\n for (int i = 0; i < 30; i++) {\n PastMeasurementChainNode node = new PastMeasurementChainNode(am);\n node.unitTestSetEndTime(System.currentTimeMillis() + 100);\n root = PastMeasurementChainNode.addToChainIfLongerDuration(root, node);\n }\n\n\n assertEquals(10, root.getLength());\n }", "title": "" }, { "docid": "6ebcff29c834ff3a5dc398fa249c0c87", "score": "0.5115809", "text": "public void setUp() { \n pool = new ObjectPool<ExportingProcess>(4, 10, 5) \n { \n protected ExportingProcess createObject() \n { \n // create a test object which takes some time for creation \n return new ExportingProcess( processNo.incrementAndGet()); \n } \n }; \n }", "title": "" }, { "docid": "0f2757a99bbcd9dc3d6df0067a5d6227", "score": "0.5115224", "text": "@Test\r\n public void testSizeWhenGrowing(){\r\n for (int i=1; i<100; i++) {\r\n String value = \"v\"+i;\r\n assertTrue(\"Offer should succeed.\",queue.offer(value));\r\n assertEquals(\"Size should be \"+i+\" after offer.\", i, queue.size());\r\n assertEquals(\"Head should be v1.\", \"v1\", queue.peek());\r\n }\r\n for (int i=1; i<100; i++) {\r\n String value = \"v\"+i;\r\n assertEquals(i+\"'th head should be \"+value+\".\", value, queue.peek());\r\n assertEquals(i+\"'th head should be \"+value+\".\", value, queue.poll());\r\n }\r\n assertTrue(\"Queue should be empty after polling all items.\", queue.isEmpty());\r\n }", "title": "" }, { "docid": "61eccd84a15d21b8eb5a19252efbce61", "score": "0.51105565", "text": "@Test(timeout = 4000)\n public void test40() throws Throwable {\n ConnectionFactories connectionFactories0 = new ConnectionFactories();\n QueueConnectionFactory queueConnectionFactory0 = new QueueConnectionFactory();\n try { \n connectionFactories0.setQueueConnectionFactory(41, queueConnectionFactory0);\n fail(\"Expecting exception: IndexOutOfBoundsException\");\n \n } catch(IndexOutOfBoundsException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"org.exolab.jms.config.ConnectionFactories\", e);\n }\n }", "title": "" }, { "docid": "992a5a6cb29a78740c4044a6fb7233ca", "score": "0.51033956", "text": "@Test(timeout = 4000)\n public void test55() throws Throwable {\n DBUtil.wrapWithPooledConnection((Connection) null, true);\n DBUtil.getOpenStatementCount();\n // Undeclared exception!\n try { \n DBUtil.assertAllDbResourcesClosed(true);\n fail(\"Expecting exception: AssertionError\");\n \n } catch(AssertionError e) {\n //\n // There are unclosed database resources: 1 connection(s)\n //\n }\n }", "title": "" }, { "docid": "09d7f47f9663d6fa77fa927979d214ab", "score": "0.50968236", "text": "@Test(timeout = 4000)\n public void test336() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n Component component0 = errorPage0.big();\n Submit submit0 = new Submit(component0, (String) null, \"a:l[b(*\");\n // Undeclared exception!\n try { \n submit0.fieldset();\n fail(\"Expecting exception: RuntimeException\");\n \n } catch(RuntimeException e) {\n //\n // Can't add components to a component that is not an instance of IContainer.\n //\n verifyException(\"wheel.components.Component\", e);\n }\n }", "title": "" }, { "docid": "c884984f39c895bb4cf3c516527b0816", "score": "0.5096223", "text": "@Test(timeout = 4000)\n public void test145() throws Throwable {\n Range range0 = Range.of((-4294901759L), 3072L);\n // Undeclared exception!\n try { \n range0.split(0L);\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // max splitLength must be >= 1\n //\n verifyException(\"org.jcvi.jillion.core.Range\", e);\n }\n }", "title": "" }, { "docid": "e692d85350b648872d0ade2379cafc71", "score": "0.5094156", "text": "@Test(timeout = 4000)\n public void test43() throws Throwable {\n ConnectionFactories connectionFactories0 = new ConnectionFactories();\n ConnectionFactory connectionFactory0 = new ConnectionFactory();\n connectionFactories0.addConnectionFactory(connectionFactory0);\n connectionFactories0.isValid();\n XAQueueConnectionFactory[] xAQueueConnectionFactoryArray0 = connectionFactories0.getXAQueueConnectionFactory();\n assertEquals(0, xAQueueConnectionFactoryArray0.length);\n }", "title": "" }, { "docid": "1450619e6664bb6898959a8d8a4345b1", "score": "0.5090168", "text": "@Test\n public void testSequentialFindAllMatchesException() {\n\n // sequences have the same directionality so product cannot be made\n try {\n ReplicationProduct rp = new ReplicationProduct(\"Test 5\", template1, primer1Fwd);\n fail();\n }\n catch (IllegalArgumentException e) {}\n }", "title": "" }, { "docid": "6232d457402cf4ab14bb4f890d042b5f", "score": "0.5087973", "text": "@Test(timeout = 4000)\n public void test350() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n Component component0 = errorPage0.sub((Object) \"|4lJ{,W21{2@>P(c\");\n assertEquals(\"wheel_ErrorPage\", errorPage0.getComponentId());\n assertTrue(component0._isGeneratedId());\n }", "title": "" }, { "docid": "a668d0518eaba253ed8253725553e505", "score": "0.5087831", "text": "@Test(timeout=300000)\n public void test12() throws Throwable {\n WaitForCompletionPolicy waitForCompletionPolicy0 = new WaitForCompletionPolicy();\n Controller controller0 = new Controller(\"L\", 29, 29);\n BlobEscapedFilter blobEscapedFilter0 = new BlobEscapedFilter();\n VirtualDatabase virtualDatabase0 = new VirtualDatabase(controller0, \"L\", 29, false, 29, 29, (long) 29, 29, (AbstractBlobFilter) blobEscapedFilter0);\n TransactionMarkerMetaData transactionMarkerMetaData0 = new TransactionMarkerMetaData((long) 29, (long) 29, \"L\");\n LinkedList<ChronoLocalDate> linkedList0 = new LinkedList<ChronoLocalDate>();\n virtualDatabase0.setTotalOrderQueue(linkedList0);\n RAIDb1_WRR rAIDb1_WRR0 = new RAIDb1_WRR(virtualDatabase0, waitForCompletionPolicy0);\n rAIDb1_WRR0.commit(transactionMarkerMetaData0);\n assertEquals(\"loadbalancer\", rAIDb1_WRR0.getAssociatedString());\n }", "title": "" }, { "docid": "3a70d76de836750c7f7386b0fdec05bd", "score": "0.5087746", "text": "@Test(timeout = 4000)\n public void test416() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n Component component0 = errorPage0.s();\n assertEquals(\"wheel_ErrorPage\", errorPage0.getComponentId());\n assertTrue(component0._isGeneratedId());\n }", "title": "" }, { "docid": "c3b4d1550ea55d93fa10d5b89c6e8824", "score": "0.50846624", "text": "@Test(timeout = 4000)\n public void test059() throws Throwable {\n // Undeclared exception!\n try { \n Range.ofLength((-1321L));\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // must be >=0\n //\n verifyException(\"org.jcvi.jillion.core.Range$Builder\", e);\n }\n }", "title": "" }, { "docid": "c56642ecd1f5c0ef184030520eef9995", "score": "0.508462", "text": "@Override\n void yieldIfQueueTooDeep() {\n }", "title": "" }, { "docid": "d62c14731d01ec75e6c03047879a4029", "score": "0.5079942", "text": "@Test(timeout = 4000)\n public void test50() throws Throwable {\n ConnectionFactories connectionFactories0 = new ConnectionFactories();\n QueueConnectionFactory queueConnectionFactory0 = new QueueConnectionFactory();\n try { \n connectionFactories0.setQueueConnectionFactory((-2674), queueConnectionFactory0);\n fail(\"Expecting exception: IndexOutOfBoundsException\");\n \n } catch(IndexOutOfBoundsException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"org.exolab.jms.config.ConnectionFactories\", e);\n }\n }", "title": "" }, { "docid": "b24cdbbe43265d33567fdac7cf1b8036", "score": "0.5078273", "text": "@Test(timeout = 4000)\n public void test348() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n Component component0 = errorPage0.dfn();\n Component component1 = component0.small((Object) errorPage0);\n assertEquals(\"wheel_ErrorPage\", errorPage0.getComponentId());\n assertTrue(component1._isGeneratedId());\n }", "title": "" }, { "docid": "ffe6de44ce01d300b8bc80c963a75cb9", "score": "0.5074605", "text": "@Test(timeout = 4000)\n public void test072() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n Checkbox checkbox0 = new Checkbox(errorPage0, \"KBfc]M9/'5\", (String) null);\n // Undeclared exception!\n try { \n checkbox0.strong();\n fail(\"Expecting exception: RuntimeException\");\n \n } catch(RuntimeException e) {\n //\n // Can't add components to a component that is not an instance of IContainer.\n //\n verifyException(\"wheel.components.Component\", e);\n }\n }", "title": "" }, { "docid": "e50a40ccba7f8c21f4e39aef5cd6f580", "score": "0.50722253", "text": "@Test(timeout=300000)\n public void test29() throws Throwable {\n Controller controller0 = new Controller(\"'U{}g6xX|\", 904, 0);\n NoneBlobFilter noneBlobFilter0 = new NoneBlobFilter();\n VirtualDatabase virtualDatabase0 = new VirtualDatabase(controller0, \"loadbalancer.backend.workerthread.blocking.add\", 0, true, 0, 2, 1L, (-3221), (AbstractBlobFilter) noneBlobFilter0);\n WaitForCompletionPolicy waitForCompletionPolicy0 = new WaitForCompletionPolicy();\n RAIDb1_LPRF rAIDb1_LPRF0 = new RAIDb1_LPRF(virtualDatabase0, waitForCompletionPolicy0);\n rAIDb1_LPRF0.getXmlImpl();\n }", "title": "" }, { "docid": "22620262d32ac260c550666f4394d65d", "score": "0.50702775", "text": "@Test(timeout = 4000)\n public void test82() throws Throwable {\n DefaultDBTable defaultDBTable0 = new DefaultDBTable();\n DBUniqueConstraint dBUniqueConstraint0 = new DBUniqueConstraint(defaultDBTable0, \"pqFU8B#i&bQ&1\\n$2M\", false, (String[]) null);\n DBUniqueIndex dBUniqueIndex0 = new DBUniqueIndex(\"pqFU8B#i&bQ&1\\n$2M\", true, dBUniqueConstraint0);\n DBTable dBTable0 = dBUniqueIndex0.getTable();\n NameSpec nameSpec0 = NameSpec.IF_REPRODUCIBLE;\n MockPrintWriter mockPrintWriter0 = new MockPrintWriter(\"drop indexsg#s!#8%oi?@-t=}\");\n String string0 = \"nlo>nx\";\n PrintWriter printWriter0 = mockPrintWriter0.printf(\"nlo>nx\", (Object[]) null);\n printWriter0.print(4294967298L);\n SQLUtil.renderCreateTable(dBTable0, true, nameSpec0, printWriter0);\n SQLUtil.isDML(\"drop indexsg#s!#8%oi?@-t=}\");\n StringBuilder stringBuilder0 = new StringBuilder(\"nlo>nx\");\n NameSpec nameSpec1 = NameSpec.NEVER;\n SQLUtil.constraintSpec(dBUniqueConstraint0, nameSpec1);\n SQLUtil.isDDL(\"pQ`\");\n stringBuilder0.append((-2978));\n stringBuilder0.append(1628.0F);\n SQLUtil.mutatesStructure(\"rowCount expected \");\n ThreadFactory threadFactory0 = mock(ThreadFactory.class, new ViolatedAssumptionAnswer());\n ScheduledThreadPoolExecutor scheduledThreadPoolExecutor0 = null;\n try {\n scheduledThreadPoolExecutor0 = new ScheduledThreadPoolExecutor((-289267762), threadFactory0);\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"java.util.concurrent.ThreadPoolExecutor\", e);\n }\n }", "title": "" }, { "docid": "c244beddda7bc2ae77f57614552f6899", "score": "0.5069454", "text": "@Test(timeout = 4000)\n public void test353() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n Component component0 = errorPage0.strike();\n Component component1 = component0.h5();\n assertEquals(\"wheel_ErrorPage\", errorPage0.getComponentId());\n assertTrue(component1._isGeneratedId());\n }", "title": "" }, { "docid": "2993dbfd98367980a4112dd91c6408fb", "score": "0.5068364", "text": "@Test\n public void testFiveNodeSubmitQueryWithBoundedLinearizableConsistency() throws Throwable {\n testSubmitQuery(5, ReadConsistency.LINEARIZABLE_LEASE);\n }", "title": "" } ]
60097f027855b03faf103d335ad2e1e5
Creates and returns a string representation of the clause in either POSL or RuleML format. The format is determined by the jdrew.oo.Config.PRPRINT variable. If PRPRINT is true then the POSL format is used for output, otherwise RuleML (0.88 + rests or 0.91) is used.
[ { "docid": "060c4c63e0fab65e082f2b79e50af65a", "score": "0.5938713", "text": "public String toString(int format) {\r\n if (jdrew.oo.Config.PRPRINT) {\r\n return toPOSLString();\r\n } else {\r\n return toRuleMLString(format);\r\n }\r\n }", "title": "" } ]
[ { "docid": "b5783bbc4bea9c52f89efa4e76725c60", "score": "0.63344985", "text": "public String toString() {\r\n if (jdrew.oo.Config.PRPRINT) {\r\n return toPOSLString();\r\n } else {\r\n return toRuleMLString(RuleMLParser.RULEML88);\r\n }\r\n }", "title": "" }, { "docid": "b2ce066497bdd12b7b96cc61760a1bbf", "score": "0.5610115", "text": "public String toPOSLString() {\r\n String s = \"\";\r\n s += atoms[0].toPOSLString(variableNames, true);\r\n\r\n if (atoms.length > 1) {\r\n s += \" :- \";\r\n for (int i = 1; i < atoms.length; i++) {\r\n s += atoms[i].toPOSLString(variableNames, false) + \", \";\r\n }\r\n\r\n s = s.substring(0, s.length() - 2);\r\n }\r\n\r\n s += \".\";\r\n\r\n return s;\r\n }", "title": "" }, { "docid": "50817de9f8ba0533134741e8e0a1d08c", "score": "0.5526243", "text": "public String toPPString() {\n\t\tif (this.isMultislot) {\n\t\t\treturn \" (\" + this.name + \" $?\" + this.value.toString() +\n\t\t\t\")\" + Constants.LINEBREAK;\n } else if (this.negated) {\n return \" (\" + this.name + \" ~?\" + this.value.toString() +\n \")\" + Constants.LINEBREAK;\n\t\t} else {\n\t\t\treturn \" (\" + this.name + \" ?\" + this.value.toString() +\n\t\t\t\")\" + Constants.LINEBREAK;\n\t\t}\n\t}", "title": "" }, { "docid": "9ce6eba0769ca90a978d4486810d3543", "score": "0.55075455", "text": "@Override\n\tpublic String toString() {\n\t\treturn getOriginalFormula() == null ? \"No formula specified\\n\"\n\t\t\t\t: \"Original Formula: \" + getOriginalFormula() + \"\\nClause Normal Form: \" + super.toString();\n\t}", "title": "" }, { "docid": "ecc3db946e25f91e32fdd9572cc2f22b", "score": "0.5113951", "text": "public String toLTL()\n\t{\n\t\tparseXmlFile();\n\t\tString ltlFormula = getFormulaFromXml();\n\t\tchar[] placeholders = {'P', 'S', 'R', 'Z'};\n\t\tboolean formulaComplete = false;\n\t\tfor(int i = 0; i < ltlFormula.length(); i++)\n\t\t{\n\t\t\tif(formulaComplete)\n\t\t\t{\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tfor(int j = 0; j < placeholders.length; j++)\n\t\t\t{\n\t\t\t\tif(ltlFormula.charAt(i) == placeholders[j])\n\t\t\t\t{\n\t\t\t\t\tString front = ltlFormula.substring(0, i);\n\t\t\t\t\tString back = processSubstring(ltlFormula.substring(i + 1));\n\t\t\t\t\tltlFormula = front + query.getEvents().get(j) + back;\n\t\t\t\t\tformulaComplete = true;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn ltlFormula;\n\t}", "title": "" }, { "docid": "c01e9c639253c5c379394abe55dca8a1", "score": "0.50747424", "text": "public String toPNML() {\n\t\tif (m_initialMarking <= 0) {\n\t\t\treturn \"\\t\\t\\t<place id=\\\"\" + m_id + \"\\\">\\n\"\n\t\t\t\t\t+ \"\\t\\t\\t\\t<name>\\n\"\n\t\t\t\t\t+ \"\\t\\t\\t\\t\\t<text>\" + m_name + \"</text>\\n\"\n\t\t\t\t\t+ \"\\t\\t\\t\\t</name>\\n\"\n\t\t\t\t\t+ \"\\t\\t\\t</place>\";\n\t\t} else {\n\t\t\treturn \"\\t\\t\\t<place id=\\\"\" + m_id + \"\\\">\\n\"\n\t\t\t\t\t+ \"\\t\\t\\t\\t<name>\\n\"\n\t\t\t\t\t+ \"\\t\\t\\t\\t\\t<text>\" + m_name + \"</text>\\n\"\n\t\t\t\t\t+ \"\\t\\t\\t\\t</name>\\n\"\n\t\t\t\t\t+ \"\\t\\t\\t\\t<initialmarking>\\n\"\n\t\t\t\t\t+ \"\\t\\t\\t\\t\\t<text>\" + Integer.toBinaryString(m_initialMarking) + \"</text>\\n\"\n\t\t\t\t\t+ \"\\t\\t\\t\\t</initialmarking>\\n\"\n\t\t\t\t\t+ \"\\t\\t\\t</place>\";\t\t\n\t\t}\n\t}", "title": "" }, { "docid": "53693676e789ee61932e4519a10dc8e4", "score": "0.50656456", "text": "public String toString() {\n\t\tStringBuilder statementBuilder = new StringBuilder();\n\n\t\tfor (Condition condition : getConditions()) {\n\n\t\t\tString operator = null;\n\n\t\t\tswitch (condition.getOperator()) {\n\t\t\tcase EQUAL_TO:\n\t\t\t\toperator = \"==\";\n\t\t\t\tbreak;\n\t\t\tcase EQUALS:\n\t\t\t\toperator = \".equals('\";\n\t\t\t\tbreak;\n\t\t\tcase NOT_EQUAL_TO:\n\t\t\t\toperator = \"!=\";\n\t\t\t\tbreak;\n\t\t\tcase GREATER_THAN:\n\t\t\t\toperator = \">\";\n\t\t\t\tbreak;\n\t\t\tcase LESS_THAN:\n\t\t\t\toperator = \"<\";\n\t\t\t\tbreak;\n\t\t\tcase GREATER_THAN_OR_EQUAL_TO:\n\t\t\t\toperator = \">=\";\n\t\t\t\tbreak;\n\t\t\tcase LESS_THAN_OR_EQUAL_TO:\n\t\t\t\toperator = \"<=\";\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tstatementBuilder.append(condition.getField()).append(\" \").append(operator).append(\" \");\n\n\t\t\tif (condition.getValue() instanceof String) {\n\t\t\t\tstatementBuilder.append(\"'\").append(condition.getValue()).append(\"'\");\n\t\t\t} else {\n\t\t\t\tstatementBuilder.append(condition.getValue());\n\t\t\t}\n\n\t\t\tstatementBuilder.append(\" && \");\n\t\t}\n\n\t\tString statement = statementBuilder.toString();\n\n\t\t// remove trailing &&\n\t\treturn statement.substring(0, statement.length() - 4);\n\t}", "title": "" }, { "docid": "316b6b80c865e0011e3d18d94952c53c", "score": "0.50484484", "text": "public String toRuleMLString(int format) {\r\n Element rml = this.toRuleML(format);\r\n java.io.StringWriter sw = new java.io.StringWriter();\r\n nu.xom.Serializer sl = new nu.xom.Serializer(sw);\r\n sl.setIndent(3);\r\n sl.setLineSeparator(\"\\n\");\r\n try {\r\n sl.write(rml);\r\n } catch (java.io.IOException e) {\r\n System.err.println(e.getMessage());\r\n }\r\n return sw.getBuffer().toString();\r\n }", "title": "" }, { "docid": "73831cb296ce3058000e80967bc61e13", "score": "0.49963126", "text": "public String getMQLCreateString()\n {\n final StringBuilder ret = new StringBuilder();\n\n if (this.prefix != null) {\n ret.append(this.prefix).append(' ');\n }\n\n ret.append(this.kind).append(' ');\n\n if (this.user != null) {\n ret .append(\"\\\"\" + AbstractTest.convertMql(this.user.getName()) + \"\\\" \");\n }\n\n if (this.key != null) {\n ret.append(\"key \\\"\").append(AbstractTest.convertMql(this.key)).append(\"\\\" \");\n }\n\n ret.append(StringUtil_mxJPO.joinMql(',', false, this.accessList, \"none\")).append(' ');\n\n if (this.organization != null) {\n ret.append(this.organization).append(\" organization \");\n }\n if (this.project != null) {\n ret.append(this.project).append(\" project \");\n }\n if (this.owner != null) {\n ret.append(this.owner).append(\" owner \");\n }\n if (this.reserve != null) {\n ret.append(this.reserve).append(\" reserve \");\n }\n if (this.maturity != null) {\n ret.append(this.maturity).append(\" maturity \");\n }\n if (this.category != null) {\n ret.append(this.category).append(\" category \");\n }\n if (this.filter != null) {\n ret.append(\"filter \\\"\").append(AbstractTest.convertMql(this.filter)).append(\"\\\" \");\n }\n if (this.localfilter != null) {\n ret.append(\"localfilter \\\"\").append(AbstractTest.convertMql(this.localfilter)).append(\"\\\" \");\n }\n return ret.toString();\n }", "title": "" }, { "docid": "0ac85132f232cf93e5b93ee5a756ff48", "score": "0.49620968", "text": "public static String P(){\n\t\tgetNextToken();\n\t\tString ans=\"\";\n\t\tif (token.equalsIdString(\"LPAREN\"))\n { \n\t\t\tgetNextToken();\n\t\t\tans = Q();\n if (token.equalsIdString(\"RPAREN\"))\n {\n \tgetNextToken();\n \tif (token.equalsIdString(\"SEMICOLON\"))\n {\n \t\tgetNextToken();\n }\n \telse\n \t{\n \t\terror (\"Missing semicolon\");\n \t}\n }\n else\n {\n \terror (\"Unclosed parenthesis\");;\n }\n }\n else\n {\n \terror( \"Invalid print statement\" );\n }\n\t\treturn ans;\n\t}", "title": "" }, { "docid": "962f62bc1cc7d35837765b6f2b1be689", "score": "0.4859984", "text": "public String toString() {\r\n StringBuffer buffer = new StringBuffer();\r\n /* Print the formula's definition. */\r\n buffer.append(\"<COSTFORMULA>\\n\");\r\n if(mOperand != null) {\r\n /* Append the operand representation. */\r\n \tbuffer.append(\"<RULE>\");\r\n buffer.append(mOperand);\r\n \tbuffer.append(\"</RULE>\");\r\n }\r\n buffer.append(\"\\n</COSTFORMULA>\\n\");\r\n return buffer.toString();\r\n }", "title": "" }, { "docid": "7a991d0b8f066dec17be0330a81e2ae5", "score": "0.4814102", "text": "public String toString() {\n\n\t\tString condition = \"\";\n\n\t\tif (this.isLeaf()) {\n\t\t\tif (this.getComparison() != null) {\n\t\t\t\tcondition += this.getComparison().toString() + \" \";\n\t\t\t} else {\n\t\t\t\tcondition += \"no comparison \";\n\t\t\t}\n\t\t} else {\n\t\t\tif (this.getFirstChild() != null) {\n\t\t\t\tcondition += this.getFirstChild().toString() + \" \";\n\t\t\t} else {\n\t\t\t\tcondition += \"no child \";\n\t\t\t}\n\n\t\t\tif (this.getLogicOperation() != null) {\n\t\t\t\tcondition += this.getLogicOperation().toString() + \" \";\n\t\t\t} else {\n\t\t\t\tcondition += \"no logic \";\n\t\t\t}\n\n\t\t\tif (this.getSecondChild() != null) {\n\t\t\t\tcondition += this.getSecondChild().toString();\n\t\t\t} else {\n\t\t\t\tcondition += \"no child \";\n\t\t\t}\n\n\t\t}\n\t\treturn condition;\n\t}", "title": "" }, { "docid": "4d494648746203994893ab4715859328", "score": "0.47791055", "text": "@Override\n public String toString() {\n return String.format(\"%25s precision: %7.2f%% - TP: %3d, FP: %3d\",\n lang.getLanguageName(),\n getPrecision() * 100,\n tp, fp);\n }", "title": "" }, { "docid": "be8db60cf14ead3f8fa680c2e4a86685", "score": "0.47686893", "text": "@Override\n\tpublic String toString() {\n\t\tString str = \"Pr(e|d) = \";\n\t\tint i = 0;\n\t\tfor(Term term : this.terms) {\n\t\t\tif(i != 0) {\n\t\t\t\tstr += \" * \";\n\t\t\t}\n\t\t\tstr += term.toString();\n\t\t\ti++;\n\t\t}\n\t\treturn str;\n\t}", "title": "" }, { "docid": "6bbb9da1acf678fdffdf43901e24a622", "score": "0.47644877", "text": "public final String toPdb() {\n if (alternateLocation().orElse(\" \").length() != 1) {\n PdbAtomLine.LOGGER.error(\n \"Field 'alternateLocation' is longer than 1 char. Only first letter will be taken\");\n }\n if (chainIdentifier().length() != 1) {\n PdbAtomLine.LOGGER.error(\n \"Field 'chainIdentifier' is longer than 1 char. Only first letter will be taken\");\n }\n if (insertionCode().orElse(\" \").length() != 1) {\n PdbAtomLine.LOGGER.error(\n \"Field 'insertionCode' is longer than 1 char. Only first letter will be taken\");\n }\n\n final String format =\n (atomName().length() == 4) ? PdbAtomLine.FORMAT_ATOM_4_CHARACTER : PdbAtomLine.FORMAT;\n return String.format(\n Locale.US,\n format,\n serialNumber(),\n atomName(),\n alternateLocation().orElse(\" \").charAt(0),\n residueName(),\n chainIdentifier().charAt(0),\n residueNumber(),\n insertionCode().orElse(\" \").charAt(0),\n x(),\n y(),\n z(),\n occupancy(),\n temperatureFactor(),\n elementSymbol(),\n charge());\n }", "title": "" }, { "docid": "eed111a95a7db2b9553658af0c346709", "score": "0.4741026", "text": "public String toString(List<String> inclusions) {\n String s = \"\";\n if (inclusions.contains(\"CLD\")) {\n \t\n \t// get ovs statement\n \tString ovs = \"\";\n \tList<MNode> parents = mNode.getDiscreteParents(); \n \tfor (MNode mn : parents){\n \t\tovs += mn.toStringOVs();\n \t\tovs += \",\";\n \t}\n \tovs = StringUtil.This().removeRedundantItem(ovs);\n \tovs = ovs.replace(\",\", \".\"); \t\n \tovs = ovs.replace(\" \", \"\");\n \t \t\n s = s + \"[L: \";\n int i = 0;\n for (String k : ipcScorers.keySet()) {\n Scorer sc = ipcScorers.get(k); \n \n k = k.replace(\"&&\", \"&\");\n k = k.replace(\"==\", \"=\");\n \n if (parents.size() > 0) {\n\t s = i == 0 ? s + \"if any \" + ovs + \" have ( \" + k + \" ) [\" \n\t \t\t : s + \"else if any \" + ovs + \" have ( \" + k + \" ) [\";\n }\n \n s = s + getCLD_op((Object)sc);\n ++i;\n if (k.isEmpty()) continue;\n s = s + \"]\\n\t\t\t\";\n }\n \n // * Add default distribution */\n // For the continuous case, we didn't define yet a default distribution grammar, \n // so we commented out here.\n \n// List<MNode> cparents = mNode.getContinuousParents();\n if (parents.size() > 0) {\n s = s + \"else[\\n\t\t\t\";\n\t s = s + getCLD_default_op((Object)defaultScorer);\n\t s = s + \"]\\n\";\n\t }\n \n s = s + \"]\\r\\n\";\n \n }\n return s;\n }", "title": "" }, { "docid": "e0440599f033259609be8ea0bb31a274", "score": "0.47219172", "text": "public final AstPrinter.op_clause_return op_clause() throws RecognitionException {\n AstPrinter.op_clause_return retval = new AstPrinter.op_clause_return();\n retval.start = input.LT(1);\n\n\n CommonTree root_0 = null;\n\n CommonTree _first_0 = null;\n CommonTree _last = null;\n\n AstPrinter.define_clause_return define_clause18 =null;\n\n AstPrinter.load_clause_return load_clause19 =null;\n\n AstPrinter.group_clause_return group_clause20 =null;\n\n AstPrinter.store_clause_return store_clause21 =null;\n\n AstPrinter.filter_clause_return filter_clause22 =null;\n\n AstPrinter.distinct_clause_return distinct_clause23 =null;\n\n AstPrinter.limit_clause_return limit_clause24 =null;\n\n AstPrinter.sample_clause_return sample_clause25 =null;\n\n AstPrinter.order_clause_return order_clause26 =null;\n\n AstPrinter.cross_clause_return cross_clause27 =null;\n\n AstPrinter.join_clause_return join_clause28 =null;\n\n AstPrinter.union_clause_return union_clause29 =null;\n\n AstPrinter.stream_clause_return stream_clause30 =null;\n\n AstPrinter.mr_clause_return mr_clause31 =null;\n\n AstPrinter.split_clause_return split_clause32 =null;\n\n AstPrinter.foreach_clause_return foreach_clause33 =null;\n\n\n\n try {\n // /Users/wrvhage/Dropbox/teaching/Information_Retrieval_2012_2013/Distributed/pig-0.10.0-lucene/src//org/apache/pig/parser/AstPrinter.g:84:11: ( define_clause | load_clause | group_clause | store_clause | filter_clause | distinct_clause | limit_clause | sample_clause | order_clause | cross_clause | join_clause | union_clause | stream_clause | mr_clause | split_clause | foreach_clause )\n int alt5=16;\n switch ( input.LA(1) ) {\n case DEFINE:\n {\n alt5=1;\n }\n break;\n case LOAD:\n {\n alt5=2;\n }\n break;\n case COGROUP:\n case GROUP:\n {\n alt5=3;\n }\n break;\n case STORE:\n {\n alt5=4;\n }\n break;\n case FILTER:\n {\n alt5=5;\n }\n break;\n case DISTINCT:\n {\n alt5=6;\n }\n break;\n case LIMIT:\n {\n alt5=7;\n }\n break;\n case SAMPLE:\n {\n alt5=8;\n }\n break;\n case ORDER:\n {\n alt5=9;\n }\n break;\n case CROSS:\n {\n alt5=10;\n }\n break;\n case JOIN:\n {\n alt5=11;\n }\n break;\n case UNION:\n {\n alt5=12;\n }\n break;\n case STREAM:\n {\n alt5=13;\n }\n break;\n case MAPREDUCE:\n {\n alt5=14;\n }\n break;\n case SPLIT:\n {\n alt5=15;\n }\n break;\n case FOREACH:\n {\n alt5=16;\n }\n break;\n default:\n if (state.backtracking>0) {state.failed=true; return retval;}\n NoViableAltException nvae =\n new NoViableAltException(\"\", 5, 0, input);\n\n throw nvae;\n\n }\n\n switch (alt5) {\n case 1 :\n // /Users/wrvhage/Dropbox/teaching/Information_Retrieval_2012_2013/Distributed/pig-0.10.0-lucene/src//org/apache/pig/parser/AstPrinter.g:84:13: define_clause\n {\n root_0 = (CommonTree)adaptor.nil();\n\n\n _last = (CommonTree)input.LT(1);\n pushFollow(FOLLOW_define_clause_in_op_clause249);\n define_clause18=define_clause();\n\n state._fsp--;\n if (state.failed) return retval;\n if ( state.backtracking==0 ) \n adaptor.addChild(root_0, define_clause18.getTree());\n\n\n if ( state.backtracking==0 ) {\n }\n }\n break;\n case 2 :\n // /Users/wrvhage/Dropbox/teaching/Information_Retrieval_2012_2013/Distributed/pig-0.10.0-lucene/src//org/apache/pig/parser/AstPrinter.g:85:13: load_clause\n {\n root_0 = (CommonTree)adaptor.nil();\n\n\n _last = (CommonTree)input.LT(1);\n pushFollow(FOLLOW_load_clause_in_op_clause264);\n load_clause19=load_clause();\n\n state._fsp--;\n if (state.failed) return retval;\n if ( state.backtracking==0 ) \n adaptor.addChild(root_0, load_clause19.getTree());\n\n\n if ( state.backtracking==0 ) {\n }\n }\n break;\n case 3 :\n // /Users/wrvhage/Dropbox/teaching/Information_Retrieval_2012_2013/Distributed/pig-0.10.0-lucene/src//org/apache/pig/parser/AstPrinter.g:86:13: group_clause\n {\n root_0 = (CommonTree)adaptor.nil();\n\n\n _last = (CommonTree)input.LT(1);\n pushFollow(FOLLOW_group_clause_in_op_clause278);\n group_clause20=group_clause();\n\n state._fsp--;\n if (state.failed) return retval;\n if ( state.backtracking==0 ) \n adaptor.addChild(root_0, group_clause20.getTree());\n\n\n if ( state.backtracking==0 ) {\n }\n }\n break;\n case 4 :\n // /Users/wrvhage/Dropbox/teaching/Information_Retrieval_2012_2013/Distributed/pig-0.10.0-lucene/src//org/apache/pig/parser/AstPrinter.g:87:13: store_clause\n {\n root_0 = (CommonTree)adaptor.nil();\n\n\n _last = (CommonTree)input.LT(1);\n pushFollow(FOLLOW_store_clause_in_op_clause292);\n store_clause21=store_clause();\n\n state._fsp--;\n if (state.failed) return retval;\n if ( state.backtracking==0 ) \n adaptor.addChild(root_0, store_clause21.getTree());\n\n\n if ( state.backtracking==0 ) {\n }\n }\n break;\n case 5 :\n // /Users/wrvhage/Dropbox/teaching/Information_Retrieval_2012_2013/Distributed/pig-0.10.0-lucene/src//org/apache/pig/parser/AstPrinter.g:88:13: filter_clause\n {\n root_0 = (CommonTree)adaptor.nil();\n\n\n _last = (CommonTree)input.LT(1);\n pushFollow(FOLLOW_filter_clause_in_op_clause306);\n filter_clause22=filter_clause();\n\n state._fsp--;\n if (state.failed) return retval;\n if ( state.backtracking==0 ) \n adaptor.addChild(root_0, filter_clause22.getTree());\n\n\n if ( state.backtracking==0 ) {\n }\n }\n break;\n case 6 :\n // /Users/wrvhage/Dropbox/teaching/Information_Retrieval_2012_2013/Distributed/pig-0.10.0-lucene/src//org/apache/pig/parser/AstPrinter.g:89:13: distinct_clause\n {\n root_0 = (CommonTree)adaptor.nil();\n\n\n _last = (CommonTree)input.LT(1);\n pushFollow(FOLLOW_distinct_clause_in_op_clause320);\n distinct_clause23=distinct_clause();\n\n state._fsp--;\n if (state.failed) return retval;\n if ( state.backtracking==0 ) \n adaptor.addChild(root_0, distinct_clause23.getTree());\n\n\n if ( state.backtracking==0 ) {\n }\n }\n break;\n case 7 :\n // /Users/wrvhage/Dropbox/teaching/Information_Retrieval_2012_2013/Distributed/pig-0.10.0-lucene/src//org/apache/pig/parser/AstPrinter.g:90:13: limit_clause\n {\n root_0 = (CommonTree)adaptor.nil();\n\n\n _last = (CommonTree)input.LT(1);\n pushFollow(FOLLOW_limit_clause_in_op_clause334);\n limit_clause24=limit_clause();\n\n state._fsp--;\n if (state.failed) return retval;\n if ( state.backtracking==0 ) \n adaptor.addChild(root_0, limit_clause24.getTree());\n\n\n if ( state.backtracking==0 ) {\n }\n }\n break;\n case 8 :\n // /Users/wrvhage/Dropbox/teaching/Information_Retrieval_2012_2013/Distributed/pig-0.10.0-lucene/src//org/apache/pig/parser/AstPrinter.g:91:13: sample_clause\n {\n root_0 = (CommonTree)adaptor.nil();\n\n\n _last = (CommonTree)input.LT(1);\n pushFollow(FOLLOW_sample_clause_in_op_clause348);\n sample_clause25=sample_clause();\n\n state._fsp--;\n if (state.failed) return retval;\n if ( state.backtracking==0 ) \n adaptor.addChild(root_0, sample_clause25.getTree());\n\n\n if ( state.backtracking==0 ) {\n }\n }\n break;\n case 9 :\n // /Users/wrvhage/Dropbox/teaching/Information_Retrieval_2012_2013/Distributed/pig-0.10.0-lucene/src//org/apache/pig/parser/AstPrinter.g:92:13: order_clause\n {\n root_0 = (CommonTree)adaptor.nil();\n\n\n _last = (CommonTree)input.LT(1);\n pushFollow(FOLLOW_order_clause_in_op_clause362);\n order_clause26=order_clause();\n\n state._fsp--;\n if (state.failed) return retval;\n if ( state.backtracking==0 ) \n adaptor.addChild(root_0, order_clause26.getTree());\n\n\n if ( state.backtracking==0 ) {\n }\n }\n break;\n case 10 :\n // /Users/wrvhage/Dropbox/teaching/Information_Retrieval_2012_2013/Distributed/pig-0.10.0-lucene/src//org/apache/pig/parser/AstPrinter.g:93:13: cross_clause\n {\n root_0 = (CommonTree)adaptor.nil();\n\n\n _last = (CommonTree)input.LT(1);\n pushFollow(FOLLOW_cross_clause_in_op_clause376);\n cross_clause27=cross_clause();\n\n state._fsp--;\n if (state.failed) return retval;\n if ( state.backtracking==0 ) \n adaptor.addChild(root_0, cross_clause27.getTree());\n\n\n if ( state.backtracking==0 ) {\n }\n }\n break;\n case 11 :\n // /Users/wrvhage/Dropbox/teaching/Information_Retrieval_2012_2013/Distributed/pig-0.10.0-lucene/src//org/apache/pig/parser/AstPrinter.g:94:13: join_clause\n {\n root_0 = (CommonTree)adaptor.nil();\n\n\n _last = (CommonTree)input.LT(1);\n pushFollow(FOLLOW_join_clause_in_op_clause390);\n join_clause28=join_clause();\n\n state._fsp--;\n if (state.failed) return retval;\n if ( state.backtracking==0 ) \n adaptor.addChild(root_0, join_clause28.getTree());\n\n\n if ( state.backtracking==0 ) {\n }\n }\n break;\n case 12 :\n // /Users/wrvhage/Dropbox/teaching/Information_Retrieval_2012_2013/Distributed/pig-0.10.0-lucene/src//org/apache/pig/parser/AstPrinter.g:95:13: union_clause\n {\n root_0 = (CommonTree)adaptor.nil();\n\n\n _last = (CommonTree)input.LT(1);\n pushFollow(FOLLOW_union_clause_in_op_clause404);\n union_clause29=union_clause();\n\n state._fsp--;\n if (state.failed) return retval;\n if ( state.backtracking==0 ) \n adaptor.addChild(root_0, union_clause29.getTree());\n\n\n if ( state.backtracking==0 ) {\n }\n }\n break;\n case 13 :\n // /Users/wrvhage/Dropbox/teaching/Information_Retrieval_2012_2013/Distributed/pig-0.10.0-lucene/src//org/apache/pig/parser/AstPrinter.g:96:13: stream_clause\n {\n root_0 = (CommonTree)adaptor.nil();\n\n\n _last = (CommonTree)input.LT(1);\n pushFollow(FOLLOW_stream_clause_in_op_clause418);\n stream_clause30=stream_clause();\n\n state._fsp--;\n if (state.failed) return retval;\n if ( state.backtracking==0 ) \n adaptor.addChild(root_0, stream_clause30.getTree());\n\n\n if ( state.backtracking==0 ) {\n }\n }\n break;\n case 14 :\n // /Users/wrvhage/Dropbox/teaching/Information_Retrieval_2012_2013/Distributed/pig-0.10.0-lucene/src//org/apache/pig/parser/AstPrinter.g:97:13: mr_clause\n {\n root_0 = (CommonTree)adaptor.nil();\n\n\n _last = (CommonTree)input.LT(1);\n pushFollow(FOLLOW_mr_clause_in_op_clause432);\n mr_clause31=mr_clause();\n\n state._fsp--;\n if (state.failed) return retval;\n if ( state.backtracking==0 ) \n adaptor.addChild(root_0, mr_clause31.getTree());\n\n\n if ( state.backtracking==0 ) {\n }\n }\n break;\n case 15 :\n // /Users/wrvhage/Dropbox/teaching/Information_Retrieval_2012_2013/Distributed/pig-0.10.0-lucene/src//org/apache/pig/parser/AstPrinter.g:98:13: split_clause\n {\n root_0 = (CommonTree)adaptor.nil();\n\n\n _last = (CommonTree)input.LT(1);\n pushFollow(FOLLOW_split_clause_in_op_clause446);\n split_clause32=split_clause();\n\n state._fsp--;\n if (state.failed) return retval;\n if ( state.backtracking==0 ) \n adaptor.addChild(root_0, split_clause32.getTree());\n\n\n if ( state.backtracking==0 ) {\n }\n }\n break;\n case 16 :\n // /Users/wrvhage/Dropbox/teaching/Information_Retrieval_2012_2013/Distributed/pig-0.10.0-lucene/src//org/apache/pig/parser/AstPrinter.g:99:13: foreach_clause\n {\n root_0 = (CommonTree)adaptor.nil();\n\n\n _last = (CommonTree)input.LT(1);\n pushFollow(FOLLOW_foreach_clause_in_op_clause460);\n foreach_clause33=foreach_clause();\n\n state._fsp--;\n if (state.failed) return retval;\n if ( state.backtracking==0 ) \n adaptor.addChild(root_0, foreach_clause33.getTree());\n\n\n if ( state.backtracking==0 ) {\n }\n }\n break;\n\n }\n if ( state.backtracking==0 ) {\n\n retval.tree = (CommonTree)adaptor.rulePostProcessing(root_0);\n }\n\n }\n\n catch(RecognitionException re) {\n throw re;\n }\n\n finally {\n \t// do for sure before leaving\n }\n return retval;\n }", "title": "" }, { "docid": "b8b00e58d427de8bcfd0def5b1cd4813", "score": "0.4720916", "text": "public String toString()\n\t{\n\t\tif(this.kind.hasStaticLexeme())\n\t\t\treturn String.format(\"%s(lineNum:%d, charPos:%d)\", this.kind,this.lineNum,this.charPos);\n\t\telse\n\t\t\treturn String.format(\"%s(%s)(lineNum:%d, charPos:%d)\", this.kind,this.lexeme,this.lineNum,this.charPos);\n\t}", "title": "" }, { "docid": "2897f6be782102a0ab62e8f3fd76fd03", "score": "0.47143075", "text": "public String toString()\n {\n return expr.toString() + \" \" + (ascending ? \"ASC\" : \"DESC\") + (nullPrecedence != null ? ((nullPrecedence == NullPrecedence.NULLS_FIRST) ? \" NULLS FIRST\" : \" NULLS LAST\") : \"\");\n }", "title": "" }, { "docid": "635c6d27f9e228c2152df3cdf04f485d", "score": "0.47088474", "text": "public void testPennPrint() {\n Tree t = Tree.valueOf(\"( (SBARQ (WHNP (WP What)) (SQ (VBP are) (NP (DT the) (NNP Valdez) (NNS Principles))) (. ?)))\",\n new LabeledScoredTreeReaderFactory(new TreeNormalizer()));\n assertNull(\"Root of tree should have null label if none in String\", t.label().value());\n\n String separator = System.getProperty(\"line.separator\");\n String answer = (\"( (SBARQ\" + separator +\n \" (WHNP (WP What))\" + separator +\n \" (SQ (VBP are)\" + separator +\n \" (NP (DT the) (NNP Valdez) (NNS Principles)))\" + separator +\n \" (. ?)))\" + separator);\n assertEquals(answer, t.pennString());\n }", "title": "" }, { "docid": "56f6fe66a20494edd69664289c1c931c", "score": "0.4697152", "text": "public String toString() {\r\n\t\tString strForPol =\"\";\r\n\t\tIterator <Monom> runner=this.iteretor();\r\n\t\twhile(runner.hasNext()) {\r\n\t\t\tMonom m=runner.next();\r\n\t\t\tif(!m.isZero()) {\r\n\t\t\t\t//if it's not zero add all the Monoms togehter and sperate them with '+'\r\n\t\t\t\tstrForPol=strForPol+\"+\"+m.toString();\r\n\t\t\t}\r\n\t\t}\r\n\t\tif(strForPol==\"\") \r\n\t\t\tstrForPol=\"0\";\r\n\t\tif(strForPol.charAt(0)=='+')\r\n\t\t\t//if the first char is '+', the String can start from the second one\r\n\t\t\tstrForPol=strForPol.substring(1);\r\n\t\tstrForPol=strForPol.replace(\"+-\", \"-\");\r\n\t\t//if there was a negative number, it is shown as \"+-\" now.\r\n\t\t//replace it with just '-'\r\n\t\treturn strForPol;\r\n\t}", "title": "" }, { "docid": "56204e50fd51afa8cb5400b54d917f94", "score": "0.46876654", "text": "public String FormulaToString()\r\n {\r\n \r\n String returningString = \"\"; \r\n if (opList != null)\r\n {\r\n for (int i = 0; i < opList.size(); i++) { \r\n TreeCell currentOp = opList.get(i); \r\n returningString +=currentOp.turnToString();\r\n }\r\n String formulaS = returningString.replaceAll(\" \", \" \");\r\n while (formulaS.contains(\" \"))\r\n formulaS = formulaS.replaceAll(\" \", \" \");\r\n returningString = formulaS;\r\n }\r\n return returningString;\r\n }", "title": "" }, { "docid": "6a4a176403b9919785cf9a19a22279dc", "score": "0.4681455", "text": "public void writePerplexity(double l1, double l2, double l3, String test_data, String output_file) {\n\t\tStringBuilder outStr = new StringBuilder();\n\t\toutStr.append(\"\\n\");\n\t\tList<List<String>> sentences = ParseUtils.getLinesAsSentences(FileUtils.readFile(test_data));\n\t\tdouble sum = 0.0;\n\t\tdouble word_num = 0;\n\t\tdouble oov_num = 0;\n\t\tdouble sent_num = sentences.size();\n\t\tfor (int sentI=0; sentI<sentences.size(); sentI++) {\n\t\t\tList<String> sentence = sentences.get(sentI);\n\t\t\toutStr.append(\"Sent #\"+(sentI+1)+\": \"+ParseUtils.listToString(sentence)+\"\\n\");\n\t\t\tdouble sentProb = 0.0;\n\t\t\tint sent_oov = 0;\n//\t\t\tSystem.out.println(\"sentence: \"+ParseUtils.listToString(sentence));\n\t\t\tint sent_word_num = sentence.size()-2;\n\t\t\tword_num += sent_word_num; // Words in line minus <s> and </s>\n\t\t\tString prevStr = \"\";\n\t\t\tString wMin1 = \"\";\n\t\t\tString wMin2 = \"\";\n\t\t\tfor (int i=1; i<sentence.size(); i++) {\n\t\t\t\tString gramStr = sentence.get(i);\n\t\t\t\twMin1 = sentence.get(i-1);\n\t\t\t\tif (i > 1) {\n\t\t\t\t\twMin2 = sentence.get(i-2);\n\t\t\t\t\tprevStr = wMin2+\" \"+wMin1;\n\t\t\t\t} else {\n\t\t\t\t\tprevStr = wMin1;\n\t\t\t\t}\n\t\t\t\toutStr.append(i+\": lg P(\"+gramStr+\" | \"+prevStr+\") = \");\n\t\t\t\tdouble wordProb = 0;\n\t\t\t\tboolean unseenGram = false;\n\t\t\t\tif (ngrams.containsKey(gramStr)) {\n\t\t\t\t\tdouble P1 = ngrams.get(gramStr);\n\t\t\t\t\twordProb += l1 * P1;\n//\t\t\t\t\tif (sentI==24) {\n//\t\t\t\t\t\toutStr.append(\"\\ngramStr: \"+gramStr+\" prob: \"+ngrams.get(gramStr)+\" l1: \"+l1+\" P1: \"+P1+\"\\n\");\n//\t\t\t\t\t}\n\t\t\t\t\tgramStr = wMin1 + \" \"+gramStr;\n\t\t\t\t\tif (ngrams.containsKey(gramStr)) {\n\t\t\t\t\t\tdouble P2 = ngrams.get(gramStr);\n\t\t\t\t\t\twordProb += l2 * P2;\n\t\t\t\t\t\tif (i > 1) {\n\t\t\t\t\t\t\tgramStr = wMin2 + \" \"+ gramStr;\n\t\t\t\t\t\t\tif (ngrams.containsKey(gramStr)) {\n\t\t\t\t\t\t\t\tdouble P3 = ngrams.get(gramStr);\n\t\t\t\t\t\t\t\twordProb += l3 * P3;\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tunseenGram = true;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n//\t\t\t\t\t\tif (sentI==24) {\n//\t\t\t\t\t\t\toutStr.append(\"\\ngramStr: \"+gramStr+\" prob: \"+ngrams.get(gramStr)+\" l2: \"+l2+\" P2: \"+P2+\"\\n\");\n//\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\tunseenGram = true;\n\t\t\t\t\t}\n\t\t\t\t\twordProb = Math.log10(wordProb);\n\t\t\t\t\toutStr.append(String.format(\"%.17f\",wordProb));\n\t\t\t\t\tif (unseenGram) {\n\t\t\t\t\t\toutStr.append(\" (unseen ngrams)\");\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tsent_oov++;\n\t\t\t\t\toutStr.append(\"-inf (unknown word)\");\n\t\t\t\t}\n\t\t\t\toutStr.append(\"\\n\");\n\t\t\t\tsentProb += wordProb;\n//\t\t\t\toutStr.append(\"sentprob=\"+sentProb+\"\\n\");\n\t\t\t}\n\t\t\tint sent_num_temp = 1;\n\t\t\tdouble sent_cnt = sent_word_num + sent_num_temp - sent_oov;\n\t\t\tdouble sent_total = -sentProb / sent_cnt;\n\t\t\tdouble sent_ppl = Math.pow(10, sent_total);\n\t\t\toutStr.append(\"1 sentence, \"+sent_word_num+\" words, \"+sent_oov+\" OOVs\\n\");\n\t\t\toutStr.append(\"lgprob=\"+sentProb+\" ppl=\"+sent_ppl+\"\\n\");\n\t\t\toutStr.append(\"\\n\\n\\n\");\n\t\t\tsum += sentProb;\n\t\t\toov_num += sent_oov;\n\t\t}\n\t\tdouble cnt = word_num + sent_num - oov_num;\n\t\tdouble total = -sum / cnt;\n\t\tdouble ppl = Math.pow(10, total);\n\t\tdouble ave_lgprob = sum / cnt;\n\t\toutStr.append(\"%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%\\n\");\n\t\toutStr.append(\"sent_num=\"+(int)sent_num+\" word_num=\"+(int)word_num+\" oov_num=\"+(int)oov_num+\"\\n\");\n\t\toutStr.append(\"lgprob=\"+sum+\" ave_lgprob=\"+ave_lgprob+\" ppl=\"+ppl+\"\\n\");\n\t\tFileUtils.writeFile(output_file, outStr.toString());\n\t}", "title": "" }, { "docid": "6f4d99f0833e21e87a15471fe4d252da", "score": "0.46733043", "text": "public String toString(int depth) {\n\t\tString out = \"\";\n\t\tfor (int i = 0; i < depth; i++) {\n\t\t\tout += \" \";\n\t\t}\n\t\tif (feature == null) {\n\t\t\tout += (decision ? \"YES\" : \"NO\");\n\t\t\tout += \"\\n\";\n\t\t\treturn out;\n\t\t}\n\t\tout += \"if \" + feature + \"\\n\";\n\t\tout += yesBranch.toString(depth+1);\n\t\tfor (int i = 0; i < depth; i++) {\n\t\t\tout += \" \";\n\t\t}\n\t\tout += \"else\\n\";\n\t\tout += noBranch.toString(depth+1);\n\t\treturn out;\n\t}", "title": "" }, { "docid": "b6df439ed0b61c474d49d277dfcc9ffd", "score": "0.46644026", "text": "public String toString(int depth) {\n String out = \"\";\n for (int i = 0; i < depth; i++) {\n out += \" \";\n }\n if (feature == null) {\n out += (decision ? \"YES\" : \"NO\");\n out += \"\\n\";\n return out;\n }\n out += \"if \" + feature + \"\\n\";\n out += yesBranch.toString(depth + 1);\n for (int i = 0; i < depth; i++) {\n out += \" \";\n }\n out += \"else\\n\";\n out += noBranch.toString(depth + 1);\n return out;\n }", "title": "" }, { "docid": "d8c50a4cd9f10f4c6ab3b969757da957", "score": "0.46154153", "text": "public String toStringPrettyPrint() {\n String res = \"christened\";\n if (date != null) {\n res += \" on \" + date;\n }\n if (StringUtils.isNotBlank(place)) {\n res += \" at the place of '\" + place + \"'\";\n }\n if (town != null && !StringUtils.isBlank(town.getFullName())) {\n res += \" at \" + town.toStringPrettyString();\n }\n if (StringUtils.isNotBlank(godParents)) {\n res += \" with godparents='\" + godParents + \"'\";\n }\n if (!proofs.isEmpty()) {\n res += \" (\" + proofs + \")\";\n }\n return res;\n }", "title": "" }, { "docid": "6ea1dcd2d88cadd2934dd578c963d738", "score": "0.46108794", "text": "public String getPseudoLanguageStatement (NormalizedPseudoQuery pseudoQuery) {\n StringBuffer sbPseudoLanguageStatement = new StringBuffer();\n String metricsStatement = PseudoLanguageServiceHelper.statementForMetrics(pseudoQuery);\n String populationStatement = PseudoLanguageServiceHelper.statementForPopulation(pseudoQuery);\n String conditionsStatement = statementForConditions(pseudoQuery);\n String summarizationStatement = PseudoLanguageServiceHelper.statementForSummarizations(pseudoQuery);\n String orderClausesStatement = PseudoLanguageServiceHelper.statementForOrderClauses(pseudoQuery);\n String havingStatement = statementForHaving(pseudoQuery);\n String cohortStatement = statementForCohort(pseudoQuery);\n if (ExecueCoreUtil.isCollectionNotEmpty(pseudoQuery.getMetrics())) {\n sbPseudoLanguageStatement.append(metricsStatement);\n }\n // if (pseudoQuery.getPopulation() != null) {\n // sbPseudoLanguageStatement.append(SPACE).append(GRP_OF).append(SPACE).append(populationStatement);\n // }\n if (ExecueCoreUtil.isCollectionNotEmpty(pseudoQuery.getConditions())) {\n sbPseudoLanguageStatement.append(SPACE).append(WHERE).append(SPACE).append(conditionsStatement);\n }\n if (ExecueCoreUtil.isCollectionNotEmpty(pseudoQuery.getSummarizations())) {\n sbPseudoLanguageStatement.append(SPACE).append(SUM_BY).append(SPACE).append(summarizationStatement);\n }\n if (ExecueCoreUtil.isCollectionNotEmpty(pseudoQuery.getOrderClauses())) {\n sbPseudoLanguageStatement.append(SPACE).append(ORDER_BY).append(SPACE).append(orderClausesStatement);\n }\n if (ExecueCoreUtil.isCollectionNotEmpty(pseudoQuery.getHavingClauses())) {\n sbPseudoLanguageStatement.append(SPACE).append(HAVING).append(SPACE).append(havingStatement);\n }\n if (pseudoQuery.getCohortClause() != null && ExecueCoreUtil.isNotEmpty(cohortStatement)) {\n // if (ExecueCoreUtil.isEmpty(populationStatement)) {\n // sbPseudoLanguageStatement.append(SPACE).append(LIMITED_TO_GRP);\n // } else {\n sbPseudoLanguageStatement.append(SPACE).append(LIMITED_TO_GRP).append(OF_WITH_SPACES);\n sbPseudoLanguageStatement.append(populationStatement);\n // }\n sbPseudoLanguageStatement.append(cohortStatement);\n }\n return sbPseudoLanguageStatement.toString();\n }", "title": "" }, { "docid": "4035d583e7f1756e9ff0c5baa708e380", "score": "0.4586727", "text": "@Override\n\tvoid print() {\n\t\tSystem.out.println(\"Start of Chain Clause\");\n\t\tIterator<Clause> it_clause= this.clauses.iterator(); \n\t\tIterator<Variable> it_pivots= this.pivots.iterator();\n\t\tIterator<Literal> it_literal;\n\t\t\n\t\tSet<Literal> literals = it_clause.next().getLiterals();\n\t\twhile(it_clause.hasNext())\n\t\t{\n\t\t\tSystem.out.print(\"Right: \");\n\t\t\tit_literal = literals.iterator();\n\t\t\twhile(it_literal.hasNext()) {System.out.print(\" \"+it_literal.next().toString());}\n\t\t\tSystem.out.print(\" Left: \");\n\t\t\tit_literal = it_clause.next().getLiterals().iterator();\n\t\t\twhile(it_literal.hasNext()) {System.out.print(\" \"+it_literal.next().toString());}\n System.out.print(\" Pivot: \"+it_pivots.next().toString());\n System.out.print(\"\\n\");\n\t\t}\n\t\tSystem.out.print(\"Final Literals: \");\n\t\tit_literal = this.getLiterals().iterator();\n\t\twhile(it_literal.hasNext()) {System.out.print(\" \"+it_literal.next().toString());}\n\t\tSystem.out.println(\"\\nEnd of Chain Clause\");\n\t}", "title": "" }, { "docid": "081a3a2c51b1898c9cd1658927f24a87", "score": "0.4570591", "text": "public String toString(){\r\n\t\tStringBuffer buff= new StringBuffer();\r\n\t\t\r\n\t\tbuff.append(lemma+\"\\t\");\r\n\t\tbuff.append(imperativeCount+\"\\t\");\r\n\t\tbuff.append(stoppedActionCount+\"\\t\");\r\n\t\tbuff.append(persuadeCount+\"\\t\");\r\n\t\tbuff.append(sincePointOfTimeCount+\"\\t\");\r\n\t\tbuff.append(durationCount+\"\\t\");\r\n\t\tbuff.append(timeUnitCount+\"\\t\");\r\n\t\tbuff.append(withIntentCount+\"\\t\");\r\n\t\tbuff.append(carefullyCount+\"\\t\");\r\n\t\tbuff.append(almostlyCount+\"\\t\");\r\n\t\t\r\n\t\t//buff.append(subjects);\r\n\t\treturn buff.toString();\r\n\t}", "title": "" }, { "docid": "e3ad669495d6b86d6d093701e5c7ffe2", "score": "0.4566704", "text": "public Element toRuleML(int format) {\r\n\t\t\r\n Element el;\r\n if (atoms.length == 1) {\r\n\r\n el = atoms[0].toRuleML(variableNames, true, format);\r\n } else {\r\n el = new Element(\"Implies\");\r\n if (atoms.length > 2) {\r\n Element el2 = new Element(\"And\");\r\n for (int i = 1; i < atoms.length; i++) {\r\n\r\n el2.appendChild(atoms[i].toRuleML(variableNames, false, format));\r\n }\r\n el.appendChild(el2);\r\n } else {\r\n el.appendChild(atoms[1].toRuleML(variableNames, false, format));\r\n }\r\n\r\n el.appendChild(atoms[0].toRuleML(variableNames, true, format));\r\n\r\n }\r\n //Each atom no longer needs a closure attribute, the closure is\r\n //defined at the Rulebase level\r\n //Attribute a = new Attribute(\"closure\", \"universal\");\r\n //el.addAttribute(a);\r\n\r\n return el;\r\n }", "title": "" }, { "docid": "4b70d40daa23a876f3077585cbeb312d", "score": "0.45576653", "text": "@Override\r\n\tpublic String toString() {\r\n\t\t StringBuilder builder = new StringBuilder(\"Proposal [\")\r\n\t\t\t\t\t.append(\"auction: \")\r\n\t\t\t\t\t.append(auction.getId())\r\n\t\t\t\t\t.append(\",\")\r\n\t\t\t\t\t.append(\"proposer: \")\r\n\t\t \t\t\t.append(proposer)\r\n\t\t \t\t\t.append(\"; calculated time needed for total PDP: \")\r\n\t\t\t\t\t.append(getTimeCostProposal())\r\n\t\t\t\t\t.append(\"; calculated time from current truck position to parcel pickup position: \")\r\n\t\t \t\t\t.append(currentToPickupTime)\r\n\t\t \t\t\t.append(\"; calculated time from parcel pickup position to parcel delivery position: \")\r\n\t\t \t\t\t.append(pickupToDeliveryTime);\r\n\r\n\t\tbuilder.append(\"]\");\r\n\t\t\t \r\n\t\treturn builder.toString();\r\n\t}", "title": "" }, { "docid": "df8b71af155ac9da25b4b2952b3fa4d9", "score": "0.45343378", "text": "public String toString() {\n String type[] = {\"temporary\", \"training\", \"indefinite\"};\n String part = \"- \" + getName() + \": \" + getDepartment() + \" department, \" + type[getContract()] + \" contract, \";\n return part + getYears() + \" years in the company, salary of \" + getSalary() + \" bitcoins\";\n }", "title": "" }, { "docid": "ddfdc67f53a8ba6080e4e3e39a59e17b", "score": "0.4530235", "text": "public String toString() {\n\t\tStringBuilder build = new StringBuilder();\n\t\tbuild.append(name);\n\t\tbuild.append(\" (\");\n\t\tfor (int i = 0; i < classes.length; i++) {\n\t\t\tbuild.append(classes[i]);\n\t\t\tif (i != classes.length - 1) {\n\t\t\t\tbuild.append(\", \");\n\t\t\t} else {\n\t\t\t\tbuild.append(\")\\n\");\n\t\t\t}\n\t\t}\n\t\t\n\t\tif (spellLevel == 0) {\n\t\t\tbuild.append(school + \" \");\n\t\t\tbuild.append(\"Cantrip\");\n\t\t} else {\n\t\t\tbuild.append(spellLevel);\n\t\t\tif (spellLevel == 1) {\n\t\t\t\tbuild.append(\"st \");\n\t\t\t} else if (spellLevel == 2) {\n\t\t\t\tbuild.append(\"nd \");\n\t\t\t} else if (spellLevel == 3) {\n\t\t\t\tbuild.append(\"rd \");\n\t\t\t} else {\n\t\t\t\tbuild.append(\"th \");\n\t\t\t}\n\t\t\tbuild.append(\"level \" + school);\n\t\t}\n\t\tif (isRitual) {\n\t\t\tbuild.append(\" <R>\");\n\t\t}\n\t\tbuild.append(\"\\n\");\n\t\tbuild.append(\"Casting Time: \" + castTime + \"\\n\");\n\t\tbuild.append(\"Duration: \" + duration + \"\\n\");\n\t\tbuild.append(\"Range: \" + range + \"\\n\");\n\t\tbuild.append(format(\"Components: \" + components) + \"\\n\");\n\t\tbuild.append(\"\\n\");\n\t\tbuild.append(format(description));\n\t\tif (higherLvls != null) {\n\t\t\tbuild.append(\"\\n - At Higher Levels -\\n\");\n\t\t\tbuild.append(format(higherLvls));\n\t\t}\n\t\treturn build.toString();\n\t}", "title": "" }, { "docid": "e2717e1971aa139e96b74994103f73bc", "score": "0.45183742", "text": "protected void logPropriedades() {\r\n\t\tAttribute.check(this.oplModel != null);\r\n\t\tIloOplModelDefinition definition = oplModel.getModelDefinition();\r\n\t\tPrintStream out = LoggerFactory.getInfoPrintStream(loggerData);\r\n\t\tout.println(\"Propriedades do modelo OPL:\");\r\n\t\tout.format(ComandoOPL.strPropertyPrintPattern, \"id\", Integer.toString(oplModel.getModelID()));\r\n\t\tout.format(ComandoOPL.strPropertyPrintPattern, \"name\", oplModel.getName());\r\n\t\tout.format(ComandoOPL.strPropertyPrintPattern, \"hasMain\", Boolean.toString(definition.hasMain()));\r\n\t\tout.format(ComandoOPL.strPropertyPrintPattern, \"hasObjective\", Boolean.toString(definition.hasObjective()));\r\n\t\tout.format(ComandoOPL.strPropertyPrintPattern, \"isNonLinear\", Boolean.toString(definition.isNonLinear()));\r\n\t\tout.format(ComandoOPL.strPropertyPrintPattern, \"isNull\", Boolean.toString(definition.isNull()));\r\n\t\tout.format(ComandoOPL.strPropertyPrintPattern, \"isSimpleObjective\", Boolean.toString(definition.isSimpleObjective()));\r\n\t\tout.format(ComandoOPL.strPropertyPrintPattern, \"isUsingCP\", Boolean.toString(definition.isUsingCP()));\r\n\t\tout.format(ComandoOPL.strPropertyPrintPattern, \"isUsingCplex\", Boolean.toString(definition.isUsingCplex()));\r\n\t\tout.close();\r\n\t}", "title": "" }, { "docid": "3965f0824f55d835ef16951f268eb1f2", "score": "0.44825706", "text": "public String toRPN(EvaluationContext evaluationContext) {\n StringBuilder result = new StringBuilder();\n for (Token t : getRPN(evaluationContext)) {\n if (result.length() != 0)\n result.append(\" \");\n result.append(t.toString());\n }\n return result.toString();\n }", "title": "" }, { "docid": "84157f5a3bdd3b442c96d8d41c663806", "score": "0.4474324", "text": "public String getPrintableForm() {\n StringBuilder builder = new StringBuilder();\n for (SQLProfileData profileData : logTraceMap.values()) {\n builder.append(\"<br/>/** Begin :\" + profileData.getId() + \" - QUERY BEGIN\")\n .append(\"\\n\\n<br/>\")\n .append(profileData.getStatement()).append(\"\\n\").append(\";PARAMETERS :\").append(profileData.getParameter()).append(\"\\n\\n<br/><br/>\")\n .append(\"END :\" + profileData.getId() + \"- QUERY END \\n*/\").append(\"\\n\\n<br/><br/>\");\n }\n return builder.toString();\n }", "title": "" }, { "docid": "5178ae856debe742c2afee658491efef", "score": "0.4470361", "text": "public String toString() {\n StringBuilder buf = new StringBuilder();\n buf.append(criterion.getIndex());\n buf.append(\" , \");\n buf.append(criterion.getName());\n buf.append(\" , \");\n \n buf.append(nodes.size());\n buf.append(\" , \");\n if (nodes.size() > 0) {\n buf.append(nodes.get(0).getId());\n buf.append(\" , \");\n buf.append(nodes.get(nodes.size() - 1).getId());\n buf.append(\" , \");\n \n buf.append(nodes.get(0).getGId() + 1);\n buf.append(\" , \");\n buf.append(nodes.get(nodes.size() - 1).getGId() + 1);\n buf.append(\" , \");\n \n } else {\n buf.append(0);\n buf.append(\" , \");\n buf.append(0);\n buf.append(\" , \");\n \n buf.append(0);\n buf.append(\" , \");\n buf.append(0);\n buf.append(\" , \");\n }\n return buf.toString();\n }", "title": "" }, { "docid": "4b6c763244cef9f96d9f1abba9463ceb", "score": "0.44570655", "text": "public String toFormattedString() {\r\n \tif (m_list.isEmpty()) {\r\n \t\tassert isValidPoly(); \r\n \t\treturn \"0.0\";\r\n \t} else{\r\n \t\tString formattedString = \"\"; \t\t\r\n \t\t\r\n \t\tListIterator<Term> iter = m_list.listIterator();\r\n\t \twhile (iter.hasNext()) {\r\n\t \t\tTerm aTerm = iter.next();\r\n\t \t\tint expon = aTerm.getExpon();\r\n\t \t\tdouble coeff = aTerm.getCoeff();\r\n\t \t\t\r\n\t \t\tif ((coeff != 1 && coeff != -1) || (coeff == 1 && expon == 0)) {\r\n\t \t\t\tformattedString += coeff;\r\n\t \t\t} else if (coeff == -1) {\r\n\t \t\t\tformattedString += \"-\";\r\n\t \t\t}\r\n\t \t\tif (expon == 0) {\r\n\t \t\t\tformattedString += \"\";\r\n\t \t\t} else if (expon == 1) {\r\n\t \t\t\tformattedString += \"x\";\r\n\t \t\t} else {\r\n\t \t\t\tformattedString += \"x^\" + expon;\r\n\t \t\t}\r\n\t \t\t\r\n\t \t\tif (iter.nextIndex() != m_list.size()) {\r\n\t \t\t\tformattedString += \" + \";\r\n\t \t\t}\r\n\t \t}\r\n\t \t\r\n\t \tassert isValidPoly(); \r\n\t \treturn formattedString;\r\n \t}\r\n }", "title": "" }, { "docid": "b0e040a706fef532b4dd33348e379458", "score": "0.4450361", "text": "public String toString()\r\n\t{\r\n\t\tStringBuilder output = new StringBuilder();\r\n\t\t\r\n\t\tfor (Predicate pred : constraints)\r\n\t\t\toutput.append(pred.constraintString() + \" \");\r\n\t\t\r\n\t\treturn output.toString();\r\n\t}", "title": "" }, { "docid": "9917882f9677864777af9eb76d9ac533", "score": "0.44454744", "text": "@Override\n\tpublic String toProlog() {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "d9a1867a93eced28e4f96da4ad16f2c0", "score": "0.44322932", "text": "public String toString() {\n\t\tString polyStr = new String();\n\t\t\n\t\tfor(Monom monom: polynom) \n\t\t\tpolyStr += monom.toString();\n\t\t\n\t\tif(polynom.get(0).getNumber()>0)\n\t\t\tpolyStr = polyStr.substring(1);\n\t\treturn polyStr;\n\t}", "title": "" }, { "docid": "2242ce1a8162d3794c013877e485b999", "score": "0.44274879", "text": "public String statement() {\n double totalAmount = 0;\n int frequentRenterPoints = 0;\n String result = \"Rental Record for \" + getName() + \"\\n\";\n for (Rental each : rentals) {\n double thisAmount = each.getCharge();\n frequentRenterPoints++;\n if((each.getMovie().getPriceCode()== Movie.NEW_RELEASE)&&each.getDaysRented()>1){\n frequentRenterPoints++;\n }\n result+=\"\\t\"+ each.getMovie().getTitle() + \"\\t\" + thisAmount +\"\\n\";\n\n totalAmount +=thisAmount;\n }\n result+=\"Amount owed is \"+ totalAmount +\"\\n\";\n result+=\"You earned \"+ frequentRenterPoints +\" frequent renter points\\n\";\n return result;\n }", "title": "" }, { "docid": "f1c73e97d2e1b453b3283195c7f6a1bc", "score": "0.44240123", "text": "private String buildQuery(String wClause)\r\n\t{\r\n\t String query=\"SELECT o_id,odate, cid, oDelStatus,oDelDate, pinNO\";\r\n\t\t\r\n\t\tif (wClause.length()>0)\r\n\t\t\tquery=query+\" WHERE \"+ wClause;\r\n\t\t\t\r\n\t\treturn query;\r\n\t}", "title": "" }, { "docid": "c0232a4dc9b7811fb0d43bbd7a3eae56", "score": "0.44133037", "text": "public String format() {\n return ruleStr;\n }", "title": "" }, { "docid": "6d1a0592baca9b6197b8665d7943a10b", "score": "0.44033277", "text": "public String toString() {\n\t\tStringBuilder sb = new StringBuilder();\n\t\tif (depth != 0) {\n\t\t\tsb.append(\"depth \");\n\t\t\tsb.append(depth);\n\t\t}\n\t\tif (scoreMate != null) {\n\t\t\tsb.append(\" score mate \");\n\t\t\tsb.append(scoreMate);\n\t\t} else if (scoreCp != null) {\n\t\t\tsb.append(\" score cp \");\n\t\t\tsb.append(scoreCp);\n\t\t}\n\t\tif (nodes != 0) {\n\t\t\tsb.append(\" nodes \");\n\t\t\tsb.append(nodes);\n\t\t}\n\t\tif (time != 0) {\n\t\t\tsb.append(\" time \");\n\t\t\tsb.append(time);\n\t\t}\n\t\tif (nps != 0) {\n\t\t\tsb.append(\" nps \");\n\t\t\tsb.append(nps);\n\t\t}\n\t\tif (pv != null) {\n\t\t\tsb.append(\" pv \");\n\t\t\tsb.append(pv);\n\t\t}\n\t\treturn sb.toString();\n\t}", "title": "" }, { "docid": "136ce010848077f75583dfb929042b55", "score": "0.43914554", "text": "public String toString() {\n return name + \" is a \" + type + \" and costs $\" + costToAdopt + \".\";\n }", "title": "" }, { "docid": "f3edab9c81d1d2cd3ef2994d25cf0380", "score": "0.43833137", "text": "public String toString() {\n\n\t\tif (m_Train == null) {\n\t\t\treturn name+\": No model built yet.\";\n\t\t}\n\n\t\tString result = name+\"\\n\" +\n\t\t\"Fuzzy-rough rule induction\\n\";\n\t\tStringBuffer text = new StringBuffer();\n\t\ttext.append(\"\\nSimilarity measure: \"+m_Similarity);\n\t\ttext.append(\"\\nImplicator: \"+m_Implicator);\n\t\ttext.append(\"\\nT-Norm: \"+m_TNorm+\"\\nRelation composition: \"+m_Similarity.getTNorm());\n\t\ttext.append(\"\\n\\nNumber of rules: \"+cands.size());\n\t\ttext.append(\"\\nAverage rule arity: \"+arity);\n\n\t\tresult+=text.toString();\n\n\t\treturn result;\n\t}", "title": "" }, { "docid": "747de1faba03a71ac7035d71e190fd17", "score": "0.43740052", "text": "public String toCode() {\n if(derivative == ESTIMATE)\n return \"xfsl_option(weight_perturbation,\"+perturbation+\")\";\n if(derivative == STOCHASTIC)\n return \"xfsl_option(stochastic_perturbation,\"+perturbation+\")\";\n return \"\";\n }", "title": "" }, { "docid": "aab0807fd11fb5e9d7e4756fb6e01174", "score": "0.4371277", "text": "public String toString() {\n\t\tif (category instanceof Literal)\n\t\t\treturn category.toString();\n\t\telse if (word != null)\n\t\t\treturn ((String) category) + \" = \" + word;\n\t\telse\n\t\t\treturn (String) category;\n\t}", "title": "" }, { "docid": "dfd46c818acb15fb2a1d05f48278d571", "score": "0.4366433", "text": "public String toStatementString() {\n \t\tfinal StringBuilder buf = new StringBuilder( guesstimatedBufferSize );\n \n \t\tif ( StringHelper.isNotEmpty( comment ) ) {\n \t\t\tbuf.append( \"/* \" ).append( comment ).append( \" */ \" );\n \t\t}\n \n \t\tbuf.append( \"select \" )\n \t\t\t\t.append( selectClause )\n \t\t\t\t.append( \" from \" )\n \t\t\t\t.append( fromClause );\n \n \t\tif ( StringHelper.isNotEmpty( outerJoinsAfterFrom ) ) {\n \t\t\tbuf.append( outerJoinsAfterFrom );\n \t\t}\n \n \t\tif ( isNotEmpty( whereClause ) || isNotEmpty( outerJoinsAfterWhere ) ) {\n \t\t\tbuf.append( \" where \" );\n \t\t\t// the outerJoinsAfterWhere needs to come before where clause to properly\n \t\t\t// handle dynamic filters\n \t\t\tif ( StringHelper.isNotEmpty( outerJoinsAfterWhere ) ) {\n \t\t\t\tbuf.append( outerJoinsAfterWhere );\n \t\t\t\tif ( isNotEmpty( whereClause ) ) {\n \t\t\t\t\tbuf.append( \" and \" );\n \t\t\t\t}\n \t\t\t}\n \t\t\tif ( isNotEmpty( whereClause ) ) {\n \t\t\t\tbuf.append( whereClause );\n \t\t\t}\n \t\t}\n \n \t\tif ( orderByClause != null ) {\n \t\t\tbuf.append( \" order by \" ).append( orderByClause );\n \t\t}\n \n \t\tif ( lockOptions.getLockMode() != LockMode.NONE ) {\n \t\t\tbuf.append( dialect.getForUpdateString( lockOptions ) );\n \t\t}\n \n \t\treturn dialect.transformSelectString( buf.toString() );\n \t}", "title": "" }, { "docid": "621d721f297234051eca75c98e1cc459", "score": "0.43661556", "text": "public String print()\n\t{\n\t\tString s = \"\";\n\t\tIterator<AsbruExpression> it;\n\t\tAsbruExpression expression;\n\t\t\n\t\ts = \"<list>\";\n\t\ts = s + commentContainer.printComments();\n\t\t\n\t\tit = expressions.iterator();\n\t\twhile(it.hasNext())\n\t\t{\n\t\t\texpression = it.next();\n\t\t\ts = s + expression.print();\n\t\t}\n\t\t\n\t\ts = s + \"</list>\";\n\t\t\n\t\treturn s;\n\t}", "title": "" }, { "docid": "805c92f4a0d231e56fe9c2e9c98c2cee", "score": "0.4363522", "text": "@Override\r\n\tpublic String toString() {\r\n\t\treturn removeExtraSpaces(postfixExpression);\r\n\t}", "title": "" }, { "docid": "d4bf66b4af5f34c1ee7986419c4c301f", "score": "0.43547514", "text": "public String getStatement() {\r\n\t\tString result = null;\r\n\r\n\t\tswitch (LRStype) {\r\n\t\tcase RESPONSE:\r\n\t\t\tJsonArray emptyobject = new JsonArray();\r\n\t\t\tJsonArray LRSArray = rootObject.has(JsonParserKeys.LRS_STATEMENT)\r\n\t\t\t\t\t? rootObject.get(JsonParserKeys.LRS_STATEMENT).getAsJsonArray()\r\n\t\t\t\t\t: emptyobject;\r\n\t\t\tresult = LRSArray.toString();\r\n\t\t\tbreak;\r\n\t\tcase POST:\r\n\t\t\tresult = rootObject.toString();\r\n\t\t\tbreak;\r\n\t\t}\r\n\r\n\t\treturn result;\r\n\t}", "title": "" }, { "docid": "326450154081e3ccc060c8ba8d618355", "score": "0.4338971", "text": "public String\ttoRPN(final String ipt) {\r\n\t\tString[]\t\ttokens = ipt.split(String.valueOf(\" \"));\r\n\t\tString\t\t\topt = new String();\r\n\t\tStack<String>\toperators = new Stack<String>();\r\n\t\tboolean \t\tvalidP = false;\r\n\r\n\t\tfor (int idx = 0; idx < tokens.length; ++idx)\r\n\t\t{\r\n\t\t\tString token = tokens[idx];\r\n\t\t\tif (token.matches(\"(\\\\+|-)?\\\\d+(\\\\.\\\\d+)?\"))\r\n\t\t\t{\r\n\t\t\t\topt += token + \" \";\r\n\t\t\t}\r\n\t\t\t\t\r\n\t\t\telse if (token.matches(\"[\\\\+|\\\\-|\\\\*|\\\\/|\\\\%]\")) {\r\n\t\t\t\twhile (!operators.isEmpty() && isOperator(operators.peek().charAt(0)))\r\n\t\t\t\t{\r\n\t\t\t\t\tchar o1 = token.charAt(0);\r\n\t\t\t\t\tchar o2 = operators.peek().charAt(0);\r\n\t\t\t\t\tif ((isLeftAssociated(o1)&& getPrecedence(o1) <= getPrecedence(o2))\r\n\t\t\t\t\t\t|| (isRightAssociated(o1) && getPrecedence(o1) < getPrecedence(o2))) {\r\n\t\t\t\t\t\toperators.pop();\r\n\t\t\t\t\t\topt += o2 + \" \";\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse break;\r\n\t\t\t\t}\r\n\t\t\t\toperators.push(token);\r\n\t\t\t}\r\n\t\t\telse if (token.matches(\"\\\\(\"))\r\n\t\t\t\toperators.push(token);\r\n\t\t\telse if (token.matches(\"\\\\)\")) {\r\n\t\t\t\twhile (!operators.isEmpty()) {\r\n\t\t\t\t\tif (operators.peek().charAt(0) == '(') {\r\n\t\t\t\t\t\tvalidP = true;\r\n\t\t\t\t\t\toperators.pop();\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t\topt += operators.pop() + \" \";\r\n\t\t\t\t}\r\n\t\t\t\tif (!validP)\r\n\t\t\t\t\tthrow new RuntimeException(\"Mismatched parenthesis.\");\r\n\t\t\t\tvalidP = false;\r\n\t\t\t}\r\n\t\t\t//else\r\n\t\t\t\t//throw new RuntimeException(\"Error.\");\r\n\t\t}\r\n\t\twhile (!operators.isEmpty()) {\r\n\t\t\tif (operators.peek().equals(\"(\") || operators.peek().equals(\")\"))\r\n\t\t\t\tthrow new RuntimeException(\"Mismatched parenthesis.\");\r\n\t\t\topt += operators.pop() + \" \";\t\r\n\t\t}\r\n\t\treturn (opt.length() > 1) ? opt.substring(0, opt.length() - 1) : opt;\r\n\t}", "title": "" }, { "docid": "0a6ceb58ea304b8138b358d2052d93de", "score": "0.43380845", "text": "public String toString() {\n StringBuilder str = new StringBuilder(\"{\");\n boolean found = false;\n if (numeric != null) {\n found = true;\n str.append(\"numeric \");\n str.append(numeric);\n }\n if (complex != null) {\n if (found) {\n str.append(\"<ERROR: multiple CHOICE: complex> \");\n }\n str.append(\"complex \");\n str.append(complex);\n }\n str.append(\"}\");\n return str.toString();\n }", "title": "" }, { "docid": "22be143182f451db0bd2c3e199a913e1", "score": "0.4336684", "text": "public String toString()\r\n {\r\n return (_P+\"/\"+_Q);\r\n }", "title": "" }, { "docid": "464ee5b988d56e83cdf251e745579a73", "score": "0.4333209", "text": "public String printCondition(Node node){\r\n\t\tString cond =\"\";\r\n\t\t\r\n\t\tif(node.left != null){\r\n\t\t\tcond += \"(\"+printCondition(node.left);\r\n\t\t}\r\n\t\tcond += \" \"+node.symbol;\r\n\t\tif(node.right != null){\r\n\t\t\tcond += printCondition(node.right)+\")\";\r\n\t\t}\r\n\t\t\r\n\t\t//cond +=\"\\n\";\r\n\t\treturn cond;\r\n\t}", "title": "" }, { "docid": "19af8f6c7622c5213d2e7202ccf7312a", "score": "0.43233606", "text": "public String toMathML() {\r\n\r\n\t\ttry {\r\n\t\t\treturn new String(\"<mtext>\" + getAmount() + \" \" + getSmallNameMathML() + \"</mtext>\");\r\n\t\t} catch (MissingParameters e) {\r\n\t\t\treturn new String(\"<mtext>\" + getSmallNameMathML() + \"</mtext>\");\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "f1c1ff1e1d5c8608effc2948b7fcdd83", "score": "0.4320547", "text": "public String getFormatted() {\n\n\t\tString formatted = Type.PHRASE.equals(type) ? quotePhrase(raw) : raw;\n\t\treturn negated ? negateRaw(formatted) : formatted;\n\t}", "title": "" }, { "docid": "cb66f1c0f417c5173f22977c4710f1ba", "score": "0.431687", "text": "@Override\n\tpublic String toPropertyString() {\n\t\tlogger.entering(_CLASS, \"toPropertyString()\");\n\t\tAdjustmentType adjustmentType = null;\n\t\tNumberFormat cFmt = null;\n\t\tNumberFormat pFmt = null;\n\t\tString result = null;\n\t\tStringBuilder sb = null;\n\n\t\tsb = new StringBuilder(2048);\n\t\tcFmt = NumberFormat.getCurrencyInstance();\n\t\tpFmt = NumberFormat.getPercentInstance();\n\t\tsb.append(super.toPropertyString());\n\t\tif (sb.length() > 0) {\n\t\t\tsb.append(\", \");\n\t\t} // END if (sb.length() > 0)\n\t\tadjustmentType = getAdjustmentType();\n\t\tsb.append(\", adjustmentAmount=\");\n\t\tif (adjustmentType == AdjustmentType.FixedAmount) {\n\t\t\tsb.append(cFmt.format(getAdjustmentAmount()));\n\t\t\tsb.append(\", adjustmentType=\").append(ADJUSTMENT_TYPE_FIXED_AMOUNT);\n\t\t} else {\n\t\t\tsb.append(pFmt.format(getAdjustmentAmount()));\n\t\t\tsb.append(\", adjustmentType=\").append(ADJUSTMENT_TYPE_PERCENTAGE);\n\t\t} // END if (adjustmentType == AdjustmentType.FixedAmount)\n\t\tsb.append(\", amount=\").append(cFmt.format(getAmount()));\n\t\tsb.append(\", contactCompanyName=\").append(getContactName());\n\t\tsb.append(\", contactName=\").append(getContactName());\n\t\tsb.append(\", contactPhone=\").append(getContactPhone());\n\t\tsb.append(\", customerReferenceNote=\").append(getCustomerReferenceNote());\n\t\tsb.append(\", deductible=\").append(cFmt.format(getDeductible()));\n\t\tsb.append(\", destinationZip=\").append(getDestinationZip());\n\t\tsb.append(\", distance=\").append(getDistance());\n\t\tsb.append(\", fuelSurcharge=\").append(cFmt.format(getFuelSurcharge()));\n\t\tsb.append(\", insuranceCharges=\").append(cFmt.format(getInsuranceCharges()));\n\t\tsb.append(\", orderType=\").append(getOrderType());\n\t\tsb.append(\", originZip=\").append(getOriginZip());\n\t\tsb.append(\", quoteMethod=\").append(getQuoteMethodLabel());\n\t\tsb.append(\", serviceLevel=\").append(getServiceLevel());\n\t\tsb.append(\", valuation=\").append(cFmt.format(getValuation()));\n\t\tsb.append(\", valuationDeclined=\").append(isValuationDeclined());\n\t\tresult = sb.toString();\n\n\t\tlogger.exiting(_CLASS, \"toPropertyString()\", result);\n\t\treturn result;\n\t}", "title": "" }, { "docid": "4a74e81e7f36834bb459fca2c35561f2", "score": "0.43167803", "text": "@Override\r\n\tpublic String toFormatString() {\n\t\treturn \"\\n*MISSION UNIT*\\n\" +\r\n\t\t\"Leader name: \" + leaderName + \"\\n\" +\r\n\t\t\"Title: \" + title + \"\\n\" +\r\n\t\t\"Description: \" + description + \"\\n\" +\r\n\t\t\"Progress: \" + ToolBox.progressStr(progress) + \"\\n\";\r\n\t}", "title": "" }, { "docid": "475b0edbde4df5db71f8d5d98a277227", "score": "0.43141562", "text": "public String printJournal() {\r\n if (getOrganization().equals(\"NULL\") == false){\r\n return(\"\\n~~Journal~~\\n\"+ getCallNumber() +\"\\n\"+ getTitle() +\"\\n\"+ getOrganization() +\"\\n\"+ getYear() +\"\\n\");\r\n }\r\n return(\"\\n~~Journal~~\\n\"+ getCallNumber() +\"\\n\"+ getTitle() +\"\\n\"+ getYear() +\"\\n\");\r\n }", "title": "" }, { "docid": "8ecd15bae37ad78a8401db8c09a3610d", "score": "0.43075264", "text": "public String toString() {\n\t\tStringBuilder buffer = new StringBuilder();\n\t\t// write itemset 1\n\t\tfor (int i = 0; i < itemset1.length; i++) {\n\t\t\tbuffer.append(itemset1[i]);\n\t\t\tif (i != itemset1.length - 1) {\n\t\t\t\tbuffer.append(\" \");\n\t\t\t}\n\t\t}\n\t\t// write separator\n\t\tbuffer.append(\" ==> \");\n\t\t// write itemset 2\n\t\tfor (int i = 0; i < itemset2.length; i++) {\n\t\t\tbuffer.append(itemset2[i]);\n\t\t\tif (i != itemset2.length - 1) {\n\t\t\t\tbuffer.append(\" \");\n\t\t\t}\n\t\t}\n\n\t\tbuffer.append(\"#Rule Utility: \");\n\t\tfor (int i = 0; i < utilityset.length; i++) {\n\t\t\tbuffer.append(utilityset[i]);\n\t\t\tif (i != utilityset.length - 1) {\n\t\t\t\tbuffer.append(\" \");\n\t\t\t}\n\t\t}\n\n\t\tbuffer.append(\"%\");\n\n\t\t// write separator\n\t\tbuffer.append(\" #PotentialUtility: \");\n\t\t// write support\n\t\tbuffer.append(potentialUtility);\n\t\t// write separator\n\t\tbuffer.append(\" #PatternUtility: \");\n\t\t// write support\n\t\tbuffer.append(itemsetUtility);\n\t\t// write separator\n\t\tbuffer.append(\" #UCONF: \");\n\t\t// write confidence\n\t\tbuffer.append(doubleToString(confidence));\n\t\treturn buffer.toString();\n\t}", "title": "" }, { "docid": "a1f023ed401b49d8c7ce3f79341d9c25", "score": "0.42958373", "text": "public String toString() {\n\t\t// Define data structure\n\t\tString lyricString;\n\n\t\t// Generate a string representation about what this class contain\n\t\tlyricString = String.format(\"%.2f\", this.from) + \" \" + this.lyric;\n\n\t\treturn lyricString;\n\t}", "title": "" }, { "docid": "0da14b71eb70341c3bccb01cbdec448e", "score": "0.42940524", "text": "public List getPLSQL() {\n if (PLSQL == null) {//GEN-END:|249-getter|0|249-preInit\n // write pre-init user code here\n PLSQL = new List(\"Is it PL/SQL?\", Choice.IMPLICIT);//GEN-BEGIN:|249-getter|1|249-postInit\n PLSQL.append(\"Yes!\", null);\n PLSQL.append(\"No\", null);\n PLSQL.addCommand(getBackCommand23());\n PLSQL.setCommandListener(this);\n PLSQL.setSelectedFlags(new boolean[] { false, false });//GEN-END:|249-getter|1|249-postInit\n // write post-init user code here\n }//GEN-BEGIN:|249-getter|2|\n return PLSQL;\n }", "title": "" }, { "docid": "cd0a86f615ee00afc6d8ee5993cb5afb", "score": "0.42837045", "text": "public Predicate toTerm() {\n\t\tPredicate t = new Predicate(\"message\");\n\t\tt.addTerm(msgId);\n\t\tt.addTerm(threadId);\n\t\tt.addTerm(new Predicate(sender));\n\t\tt.addTerm(new Predicate(receiver));\n\t\tString s = (new Integer(ilForce)).toString();\n\t\tt.addTerm(new Predicate(s));\n\t\tt.addTerm(propCont);\n\t\treturn t;\n\t}", "title": "" }, { "docid": "1615a5136999ef884f0c868b51ab0a34", "score": "0.42789957", "text": "@Override\n\tpublic String toString() {\n\t\tString result = \"\";\n\n\t\tresult += this.formatingStrategy.formatData();\n\t\treturn result;\n\t}", "title": "" }, { "docid": "11a39a8fd16b04fa05e0393411a52c5d", "score": "0.42767155", "text": "public String toString() {\n String res ;\n \n res = \"\" ;\n if(duration != null) {\n res += \"Duration: \" + duration;\n }\n if(_dynamic != null) {\n res += \", Dynamic: \" + _dynamic;\n }\n if(effects != null) {\n res += \", Effects : \" + effects;\n }\n if(fingeringLeftHand != null) {\n res += \", fingeringLeftHand : \" + fingeringLeftHand ;\n }\n if(fingeringRightHand != null) {\n res += \", fingeringRightHand : \" + fingeringRightHand ;\n }\n if(isAccentuated) {\n \tres += \", isAccentuated\" ;\n }\n if(_isDeadNote) {\n \tres += \", isDeadNote\" ;\n }\n if(isDotted) {\n \tres += \", isDotted\" ;\n }\n if(_isGhostNote) {\n \tres += \", isGhostNote\" ;\n }\n if(_isTieNote) {\n \tres += \", isTieNote:\" ;\n }\n res += \", nTuplet\" + \": \" + _nTuplet ;\n res += \", fret number:\" + _fretNumber;\n \n return (res) ;\n }", "title": "" }, { "docid": "b5720fcf96afe3761da5dd35f5049324", "score": "0.42765933", "text": "private String makeSqlPrize( RetrieveModel retrieve ) throws StoreException{\r\n\r\n StringBuffer sb = new StringBuffer();\r\n\r\n sb.append(\" SELECT A.RECEIVER AS CUST_NAME, \\n\");\r\n sb.append(\" A.CUST_NO AS CUST_NO, \\n\");\r\n sb.append(\" B.MEMB_NO AS MEMB_NO, \\n\");\r\n sb.append(\" A.TEL AS TEL_NU, \\n\");\r\n sb.append(\" FUN_ADD_POSTADDR(A.RECEIVER_POST,A.RECEIVER_POST_SEQ,A.RECEIVER_ADDR) AS ADDR \\n\");\r\n sb.append(\" FROM TRECEIVER A, \\n\");\r\n sb.append(\" TCUSTOMER B, \\n\");\r\n sb.append(\" TLOTTERYPROMOPRIZE C \\n\");\r\n sb.append(\" WHERE A.CUST_NO = B.CUST_NO(+) \\n\");\r\n sb.append(\" AND A.CUST_NO = C.CUST_NO \\n\");\r\n sb.append(\" AND A.DEFAULT_YN = '1' \\n\");\r\n sb.append(\" AND C.LOTTERY_PROMO_NO = ? \\n\");\r\n\r\n //= log SQL -------------------------------------------------\r\n if (log.isDebugEnabled()) {\r\n log.debug(sb.toString());\r\n }\r\n return sb.toString();\r\n }", "title": "" }, { "docid": "a65f2905d5eba021ccbb6d88c1400cb6", "score": "0.4274687", "text": "public POLine build()\n {\n POLine poLine = new POLine(this.lineNumber + \" \" + this.lineQuantity + \" \" + this.lineVnpkQty);\n\n return poLine;\n }", "title": "" }, { "docid": "b951a4865146d444d32f69359fb1d525", "score": "0.42626786", "text": "ReturnPack printRule(double totalRatio, String commissionDBID) throws SQLException{\n\t\tString query = \"SELECT OP, VAL1, VAL2, PAY FROM commission_rule \" +\n\t\t\t\t\"WHERE COMMISSION_DBID='\" + commissionDBID + \"'\";\n\t\tResultSet rsTmp = pageData.executeFromString(query);\n\t\tReturnPack rp = new ReturnPack();\n\t\twhile(rsTmp.next()){// possible op 0=<, 1=>, 2==, 3=>=<\n\t\t\tif(rsTmp.getInt(1) == 0 && totalRatio < rsTmp.getDouble(2)){ //<\n\t\t\t\trp.toPrint = \"<td align='center'>x &lt;\" + rsTmp.getDouble(2) +\"</td>\";\n\t\t\t\trp.doubleValue = rsTmp.getDouble(4);\n\t\t\t\treturn rp;\n\t\t\t}else if(rsTmp.getInt(1) == 1 && totalRatio >= rsTmp.getDouble(2)){ //>=\n\t\t\t\trp.toPrint = \"<td align='center'>x &gt;=\" + rsTmp.getDouble(2) +\"</td>\";\n\t\t\t\trp.doubleValue = rsTmp.getDouble(4);\n\t\t\t\treturn rp;\n\t\t\t}else if(rsTmp.getInt(1) == 2 && totalRatio == rsTmp.getDouble(2)){ //=\n\t\t\t\trp.toPrint = \"<td align='center'>x =\" + rsTmp.getDouble(2) + \"</td>\";\n\t\t\t\trp.doubleValue = rsTmp.getDouble(4);\n\t\t\t\treturn rp;\n\t\t\t}else if(rsTmp.getInt(1) == 3 && totalRatio >= rsTmp.getDouble(2) && totalRatio < rsTmp.getDouble(3)){ //>=<\n\t\t\t\trp.toPrint = \"<td align='center'>\" + rsTmp.getDouble(2) + \"&gt;= x &lt;\" + rsTmp.getDouble(3) + \"</td>\";\n\t\t\t\trp.doubleValue = rsTmp.getDouble(4);\n\t\t\t\treturn rp;\n\t\t\t}\n\t\t}\n\t\trp.toPrint = \"<td align='center'>-</td>\";\n\t\trp.doubleValue = -1;\n\t\treturn rp;\n\t}", "title": "" }, { "docid": "a7206940716138ae968a405efc2e9680", "score": "0.42626733", "text": "@Override\n public String toString() {\n return this.getBaseWord().toString()\n .concat(String.format(\" %s\", this.prepositionalObject));\n }", "title": "" }, { "docid": "1b2f7ced7a82b1d117e48a57c9cf9e8e", "score": "0.42594883", "text": "public synchronized String toString()\n {\n StringBuffer sLine = new StringBuffer(1000);\n\n // insert line number\n // Use right bound notation and format 6 digits!\n sLine.append(\"[\" );\n if (m_nLine<10)\n sLine.append(\" \");\n else\n if (m_nLine<100)\n sLine.append(\" \");\n else\n if (m_nLine<1000)\n sLine.append(\" \");\n else\n if (m_nLine<10000)\n sLine.append(\" \");\n else\n if (m_nLine<100000)\n sLine.append(\" \");\n sLine.append(m_nLine);\n sLine.append(\"] \" );\n\n // add time stamp\n // close with a \"TAB\" ... because some time stamps are not normalized to\n // a well defined string length .-)\n sLine.append(m_aStamp.toString()+\" \\t\");\n\n // add special line type\n if ((m_nType & TYPE_OK) == TYPE_OK)\n sLine.append(\" OK \");\n else\n if ((m_nType & TYPE_ERROR) == TYPE_ERROR)\n sLine.append(\" ERROR \");\n else\n if ((m_nType & TYPE_ERROR_INFO) == TYPE_ERROR_INFO)\n sLine.append(\" ERROR INFO \");\n else\n if ((m_nType & TYPE_WARNING) == TYPE_WARNING)\n sLine.append(\" WARNING \");\n else\n if ((m_nType & TYPE_WARNING_INFO) == TYPE_WARNING_INFO)\n sLine.append(\" WARNING INFO \");\n else\n if ((m_nType & TYPE_INFO) == TYPE_INFO)\n sLine.append(\" INFO \");\n else\n if ((m_nType & TYPE_TESTMARK) == TYPE_TESTMARK)\n sLine.append(\" TEST \");\n else\n if ((m_nType & TYPE_LINK) == TYPE_LINK)\n sLine.append(\" LINK \");\n else\n if ((m_nType & TYPE_STATISTIC) == TYPE_STATISTIC)\n sLine.append(\" STATISTIC \");\n else\n if (\n ((m_nType & TYPE_SCOPE_OPEN ) == TYPE_SCOPE_OPEN ) ||\n ((m_nType & TYPE_SCOPE_CLOSE) == TYPE_SCOPE_CLOSE)\n )\n sLine.append(\" SCOPE \");\n else\n sLine.append(\" \");\n\n // add scope information\n for (int s=0; s<m_nScope; ++s)\n sLine.append(\" \");\n\n if ((m_nType & TYPE_SCOPE_OPEN) == TYPE_SCOPE_OPEN)\n sLine.append(\" { \");\n else\n if ((m_nType & TYPE_SCOPE_CLOSE) == TYPE_SCOPE_CLOSE)\n sLine.append(\" } \");\n else\n sLine.append(\" \");\n\n // add message\n sLine.append(m_sMessage);\n sLine.append(\"\\n\" );\n\n return sLine.toString();\n }", "title": "" }, { "docid": "262ba46201c89c2481382bad7293494f", "score": "0.42563397", "text": "public String formatDDL(String ddl) {\r\n if (noFormat)\r\n return ddl;\r\n\r\n ddl = ddl.trim() + \"\\n\";\r\n\t\t\r\n\t\t// replace unix line endings with windows\r\n\t\tddl = ddl.replaceAll(\"\\r\\n\", \"\\n\");\r\n ddl = ddl.replaceAll(\"\\n\", \"\\r\\n\");\r\n\r\n if (!isMorePrettyFormat)\r\n return ddl;\r\n\r\n /* smart formatting */\r\n ddl = ddl.replaceAll(newline + \"GRANT \", newline + newline + \" GRANT \");\r\n ddl = ddl.replaceAll(newline + \"COMMENT \", newline + newline + \" COMMENT \");\r\n ddl = ddl.replaceAll(newline + \" CREATE \", newline + \"CREATE \");\r\n ddl = ddl.replaceAll(newline + \" ALTER \", newline + \"ALTER \");\r\n return ddl;\r\n }", "title": "" }, { "docid": "fc9d6ff1c59a23dd287334bff2427a80", "score": "0.42464182", "text": "@Override\n public String toString() {\n int i; \n DecimalFormat format = new DecimalFormat(\"0.0000\");\n String string = \"\";\n for (i = 0; i < condition.length; i++) { \n string += format.format(condition[i]) + \", \";\n }\n string += action + \", \" + format.format(radius) + \", \" + format.format(fitness);\n return string;\n }", "title": "" }, { "docid": "9290b3f6cf3bad0690833de596d4576d", "score": "0.42459616", "text": "static public String format( Point2D p, int precision ) {\n\t\tString ret = \"(\";\n\t\tif( !Double.isNaN( p.getX() ) ){\n\t\t\tret += p.getX();\n\t\t\tret = shrinkToPrecision( ret, precision );\n\t\t}\n\t\telse\n\t\t\tret += \"NaN\";\n\t\tret += \";\";\n\t\tif( !Double.isNaN( p.getY() ) ){\n\t\t\tret += p.getY();\n\t\t\tret = shrinkToPrecision( ret, precision ); // geht, da lastIndexOf in shrinkToPrecision(*)\n\t\t}\n\t\telse\n\t\t\tret += \"NaN\";\n\t\tret += \")\";\n\t\treturn ret;\n\t}", "title": "" }, { "docid": "1ab6f4b70a16767501fc6ba24c134a37", "score": "0.42458135", "text": "public String toString() {\n\t\treturn Form+\"\\t\"+Lemma+\"\\t\"+Lemma+\"\\t\"+POS+\"\\t\"+POS+\"\\t_\\t_\\t\"+headID+\"\\t\"+headID+\"\\t\"+Deprel+\"\\t\"+Deprel;\n\t\t//return Form+\"\\t\"+Lemma+\"\\t\"+POS+\"\\t\"+headID+\"\\t\"+Deprel;\n\t}", "title": "" }, { "docid": "b0f1e1ac1d07353f7ff5fc66647150df", "score": "0.4244604", "text": "public String toLuceneQuery()\n {\n ArrayList<String> groups = new ArrayList<String>();\n if (!all.isEmpty()) {\n groups.add(\"(+\" + Joiner.on(\" +\").join(all) + \")\");\n }\n if (!not.isEmpty()) {\n groups.add(\"(-\" + Joiner.on(\" -\").join(not) + \")\");\n }\n if (!any.isEmpty()) {\n groups.add(\"(\" + Joiner.on(Characters.SPACE).join(all) + \")\");\n }\n if (groups.isEmpty()) {\n return \"\";\n } else {\n return groups.size() == 1 ? groups.get(0) : Joiner.on(\" AND \").join(groups);\n }\n }", "title": "" }, { "docid": "d9fcd1c6176bb6b899e0863da2e0cf54", "score": "0.42428416", "text": "public String toString() {\r\n\t\tString s1;\r\n\t\tif (myDenom < 0) {\r\n\t\t\ts1 = ((myNum * -1) + \"/\" + (myDenom * -1));\r\n\t\t} else {\r\n\t\t\ts1 = (myNum + \"/\" + myDenom);\r\n\t\t}\r\n\t\treturn s1;\r\n\t}", "title": "" }, { "docid": "8f13c9f7676ae8af2f16761f4ea2e824", "score": "0.42424756", "text": "String build() {\n StringBuilder query = new StringBuilder(operation.toString());\n\n if (operation == Operation.CREATE) {\n query.append(\" temporary external\");\n }\n if (operation == Operation.INSERT) {\n query.append(CompactionType.REBALANCE.equals(compactionType) ? \" overwrite\" : \" into\");\n }\n query.append(\" table \");\n\n if (operation == Operation.DROP) {\n query.append(\"if exists \");\n }\n\n query.append(resultTableName);\n\n switch (operation) {\n case CREATE:\n getDdlForCreate(query);\n break;\n case ALTER:\n buildAddClauseForAlter(query);\n break;\n case INSERT:\n query.append(\" select \");\n buildSelectClauseForInsert(query);\n query.append(\" from \");\n getSourceForInsert(query);\n buildWhereClauseForInsert(query);\n break;\n case DROP:\n default:\n }\n\n return query.toString();\n }", "title": "" }, { "docid": "1c027fc80ef8b82b6dbd99f8caab60e8", "score": "0.42345816", "text": "public String toString(){\n NumberFormat nf = NumberFormat.getNumberInstance();\n\n if (ending_unit_type.equals(\"inches\")||ending_unit_type.equals(\"feet\")||ending_unit_type.equals(\"yards\")) {\n // format the maximum significant figures to four places\n nf.setMaximumFractionDigits(2);\n }else {\n // format the maximum significant figures to four places\n nf.setMaximumFractionDigits(4);\n }\n\n return nf.format(getEnding_qty()) + \" \" + getEnding_unit_type();\n }", "title": "" }, { "docid": "0ea03b4b941c733866b2968726a62d24", "score": "0.42279688", "text": "private String getFinalBillReciept(){\n return billReciept+\n \" Sales Tax = \"+getSalesTax()+ \n \"\\n discount = -\"+getDiscount()+ \n \"\\n-------------------------------------------------------\"+\n \"\\n Total Bill = \"+getFinalBillAmount()+\n \"\\n-------------------------------------------------------\";\n \n \n }", "title": "" }, { "docid": "0f0523a47d5c6437d7dfc8b14e4d32ea", "score": "0.4225846", "text": "public TerminalRule getML_COMMENTRule() {\n\t\treturn gaTerminals.getML_COMMENTRule();\n\t}", "title": "" }, { "docid": "0f0523a47d5c6437d7dfc8b14e4d32ea", "score": "0.4225846", "text": "public TerminalRule getML_COMMENTRule() {\n\t\treturn gaTerminals.getML_COMMENTRule();\n\t}", "title": "" }, { "docid": "0f0523a47d5c6437d7dfc8b14e4d32ea", "score": "0.4225846", "text": "public TerminalRule getML_COMMENTRule() {\n\t\treturn gaTerminals.getML_COMMENTRule();\n\t}", "title": "" }, { "docid": "0f0523a47d5c6437d7dfc8b14e4d32ea", "score": "0.4225846", "text": "public TerminalRule getML_COMMENTRule() {\n\t\treturn gaTerminals.getML_COMMENTRule();\n\t}", "title": "" }, { "docid": "0f0523a47d5c6437d7dfc8b14e4d32ea", "score": "0.4225846", "text": "public TerminalRule getML_COMMENTRule() {\n\t\treturn gaTerminals.getML_COMMENTRule();\n\t}", "title": "" }, { "docid": "0f0523a47d5c6437d7dfc8b14e4d32ea", "score": "0.4225846", "text": "public TerminalRule getML_COMMENTRule() {\n\t\treturn gaTerminals.getML_COMMENTRule();\n\t}", "title": "" }, { "docid": "0f0523a47d5c6437d7dfc8b14e4d32ea", "score": "0.4225846", "text": "public TerminalRule getML_COMMENTRule() {\n\t\treturn gaTerminals.getML_COMMENTRule();\n\t}", "title": "" }, { "docid": "0f0523a47d5c6437d7dfc8b14e4d32ea", "score": "0.4225846", "text": "public TerminalRule getML_COMMENTRule() {\n\t\treturn gaTerminals.getML_COMMENTRule();\n\t}", "title": "" }, { "docid": "0f0523a47d5c6437d7dfc8b14e4d32ea", "score": "0.4225846", "text": "public TerminalRule getML_COMMENTRule() {\n\t\treturn gaTerminals.getML_COMMENTRule();\n\t}", "title": "" }, { "docid": "7f8813f699cd8f23a07cbdddd9f15a06", "score": "0.42221782", "text": "@Override\n public String toString()\n {\n return Native\n .solverToString(getContext().nCtx(), getNativeObject());\n }", "title": "" }, { "docid": "b1b1a883f1c0dad0f1744ee8e2d41e15", "score": "0.42193863", "text": "public String toString()\r\n {\r\n DecimalFormat fmt = new DecimalFormat(\"0.000\");\r\n String myString = this.name + \" is a \" + getClassLevel() + \" \"\r\n \t+ this.major + \"\\n\"\r\n \t+ \"who has completed \" + this.hoursCompleted + \" hours \" +\r\n \t\"with a \" + fmt.format(this.gpa) + \" gpa.\\n\";\r\n return myString;\r\n }", "title": "" }, { "docid": "f5bca6ab1ec74ef69e8e629af98ac719", "score": "0.4206269", "text": "@Override\n\tpublic String toString() {\n\t\tif (coefficient == 0.0d) {\n\t\t\treturn \"n/a\";\n\t\t}\n\t\tNumberFormat formatter = new DecimalFormat(\"#.##\");\n\t\tStringBuffer resourceString = new StringBuffer();\n\t\tresourceString.append(\"f() = \");\n\t\tresourceString.append(formatter.format(coefficient));\n\t\tif (degreeExamples > 0 || degreeAttributes > 0) {\n\t\t\tresourceString.append(\" * (\");\n\t\t}\n\t\tif (degreeExamples > 0) {\n\t\t\tif (logDegreeExamples > 0) {\n\t\t\t\tresourceString.append(\"log\");\n\t\t\t\tresourceString.append(formatter.format(logDegreeExamples));\n\t\t\t\tif (degreeExamples > 1) {\n\t\t\t\t\tresourceString.append(\"(examples^\");\n\t\t\t\t\tresourceString.append(formatter.format(degreeExamples));\n\t\t\t\t} else {\n\t\t\t\t\tresourceString.append(\"(examples\");\n\t\t\t\t}\n\t\t\t\tresourceString.append(')');\n\t\t\t} else {\n\t\t\t\tif (degreeExamples > 1) {\n\t\t\t\t\tresourceString.append(\"examples^\");\n\t\t\t\t\tresourceString.append(formatter.format(degreeExamples));\n\t\t\t\t} else {\n\t\t\t\t\tresourceString.append(\"examples\");\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (degreeAttributes > 0) {\n\t\t\t\tresourceString.append(\" * \");\n\t\t\t}\n\t\t}\n\t\tif (degreeAttributes > 0) {\n\t\t\tif (logDegreeAttributes > 0) {\n\t\t\t\tresourceString.append(\"log\");\n\t\t\t\tresourceString.append(formatter.format(logDegreeAttributes));\n\t\t\t\tif (degreeAttributes > 1) {\n\t\t\t\t\tresourceString.append(\"(attributes^\");\n\t\t\t\t\tresourceString.append(formatter.format(degreeAttributes));\n\t\t\t\t} else {\n\t\t\t\t\tresourceString.append(\"(attributes\");\n\t\t\t\t}\n\t\t\t\tresourceString.append(')');\n\t\t\t} else {\n\t\t\t\tif (degreeAttributes > 1) {\n\t\t\t\t\tresourceString.append(\"attributes^\");\n\t\t\t\t\tresourceString.append(formatter.format(degreeAttributes));\n\t\t\t\t} else {\n\t\t\t\t\tresourceString.append(\"attributes\");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (degreeExamples > 0 || degreeAttributes > 0) {\n\t\t\tresourceString.append(')');\n\t\t}\n\t\treturn resourceString.toString();\n\t}", "title": "" }, { "docid": "4f97cbdb67b0453e9967a7d235f5d0a8", "score": "0.41905302", "text": "@Override\n\tpublic String toString() {\t\t\n\t\treturn super.toString() + \"::\" + role + \" Compensation $\" + customFormat(\"###,##0.00\", this.payment);\n\t}", "title": "" }, { "docid": "a41a3f12ed070ed70ecba0fbf32f9a6c", "score": "0.4184435", "text": "public String toString() {\n\t\tString a = this.a.toString();\n\t\tString b = this.b.toString();\n\t\tString c = this.c.toString();\n\t\tStringBuilder printEquation = new StringBuilder();\n\t\tif (!(this.a.isZero())) {\n\t\t\t\tprintEquation.append(a+\"x^2\");\n\t\t}\n\t\t\n\t\tif ((!(this.b.isZero()) && !(this.a.isZero()))) {\n\t\t\tif (this.b.compareTo(this.b.abs()) == -1) {\n\t\t\t\tprintEquation.append(b+\"x\");\n\t\t\t} else {\n\t\t\t\tprintEquation.append(\"+\" + b+\"x\");\n\t\t\t}\n\t\t} else if ((!(this.b.isZero()) && (this.a.isZero()))) {\n\t\t\tprintEquation.append(b + \"x\");\n\t\t}\n\t\t\n\t\tif (((!(this.a.isZero())) || (!(this.b.isZero()))) && (!(this.c.isZero()))) {\n\t\t\tif (this.c.compareTo(this.c.abs()) == -1) {\n\t\t\t\tprintEquation.append(c);\n\t\t\t} else {\n\t\t\t\tprintEquation.append(\"+\" + c);\n\t\t\t}\n\t\t} else if (((this.a.isZero()) && (this.b.isZero())) && !(this.c.isZero())) {\n\t\t\tprintEquation.append(c);\n\t\t} else if (((this.a.isZero()) && (this.b.isZero())) && (this.c.isZero())){\n\t\t\tprintEquation.append(\"0\");\n\t\t}\n\t\t\n\t\treturn printEquation.toString();\n\t\t\n\t\t\n\t}", "title": "" }, { "docid": "84a83b9e409d4b224da7b889c79b6af5", "score": "0.41760686", "text": "public static String getNDGConditionText(String ndgType, Vector<Point> points) {\r\n\t\t// Note: it is assumed that passed in list of points isn't empty and has correct number of points.\r\n\t\tPoint pt1 = points.get(0);\r\n\t\tPoint pt2 = points.get(1);\r\n\t\tPoint pt3 = (points.size() > 2) ? points.get(2) : null;\r\n\t\tPoint pt4 = (points.size() > 3) ? points.get(3) : null;\r\n\t\t\r\n\t\tStringBuilder sb = new StringBuilder();\r\n\t\t\r\n\t\tif (ndgType == AlgebraicNDGCondition.NDG_TYPE_2PT_IDENTICAL) {\r\n\t\t\tsb.append(\"Points \");\r\n\t\t\tsb.append(pt1.getGeoObjectLabel());\r\n\t\t\tsb.append(\" and \");\r\n\t\t\tsb.append(pt2.getGeoObjectLabel());\r\n\t\t\tsb.append(\" are not identical\");\r\n\t\t\treturn sb.toString();\r\n\t\t}\r\n\t\t\r\n\t\tif (ndgType == AlgebraicNDGCondition.NDG_TYPE_3PT_COLLINEAR) {\r\n\t\t\tsb.append(\"Points \");\r\n\t\t\tsb.append(pt1.getGeoObjectLabel());\r\n\t\t\tsb.append(\", \");\r\n\t\t\tsb.append(pt2.getGeoObjectLabel());\r\n\t\t\tsb.append(\" and \");\r\n\t\t\tsb.append(pt3.getGeoObjectLabel());\r\n\t\t\tsb.append(\" are not collinear\");\r\n\t\t\treturn sb.toString();\r\n\t\t}\r\n\t\t\r\n\t\tif (ndgType == AlgebraicNDGCondition.NDG_TYPE_3PT_MIDPOINT) {\r\n\t\t\tsb.append(\"Point \");\r\n\t\t\tsb.append(pt3.getGeoObjectLabel());\r\n\t\t\tsb.append(\" is not the midpoint of segment with endpoints \");\r\n\t\t\tsb.append(pt1.getGeoObjectLabel());\r\n\t\t\tsb.append(\" and \");\r\n\t\t\tsb.append(pt2.getGeoObjectLabel());\r\n\t\t\treturn sb.toString();\r\n\t\t}\r\n\t\t\r\n\t\tif (ndgType == AlgebraicNDGCondition.NDG_TYPE_3PT_ON_PERP_BIS) {\r\n\t\t\tsb.append(\"Point \");\r\n\t\t\tsb.append(pt3.getGeoObjectLabel());\r\n\t\t\tsb.append(\" is not on perpendicular bisector of segment with endpoints \");\r\n\t\t\tsb.append(pt1.getGeoObjectLabel());\r\n\t\t\tsb.append(\" and \");\r\n\t\t\tsb.append(pt2.getGeoObjectLabel());\r\n\t\t\treturn sb.toString();\r\n\t\t}\r\n\t\t\r\n\t\tif (ndgType == AlgebraicNDGCondition.NDG_TYPE_3PT_RIGHT_ANG) {\r\n\t\t\tsb.append(\"Line through points \");\r\n\t\t\tsb.append(pt1.getGeoObjectLabel());\r\n\t\t\tsb.append(\" and \");\r\n\t\t\tsb.append(pt3.getGeoObjectLabel());\r\n\t\t\tsb.append(\" is not perpendicular to line through points \");\r\n\t\t\tsb.append(pt3.getGeoObjectLabel());\r\n\t\t\tsb.append(\" and \");\r\n\t\t\tsb.append(pt2.getGeoObjectLabel());\r\n\t\t\treturn sb.toString();\r\n\t\t}\r\n\t\t\r\n\t\tif (ndgType == AlgebraicNDGCondition.NDG_TYPE_3PT_ON_CIRCLE) {\r\n\t\t\tsb.append(\"Point \");\r\n\t\t\tsb.append(pt3.getGeoObjectLabel());\r\n\t\t\tsb.append(\" is not on circle with center \");\r\n\t\t\tsb.append(pt1.getGeoObjectLabel());\r\n\t\t\tsb.append(\" and point from it \");\r\n\t\t\tsb.append(pt2.getGeoObjectLabel());\r\n\t\t\treturn sb.toString();\r\n\t\t}\r\n\t\t\r\n\t\tif (ndgType == AlgebraicNDGCondition.NDG_TYPE_3PT_SEG_SUM) {\r\n\t\t\tsb.append(\"Segment with endpoints \");\r\n\t\t\tsb.append(pt1.getGeoObjectLabel());\r\n\t\t\tsb.append(\" and \");\r\n\t\t\tsb.append(pt2.getGeoObjectLabel());\r\n\t\t\tsb.append(\" is not sum of two segments: segment with endpoints \");\r\n\t\t\tsb.append(pt1.getGeoObjectLabel());\r\n\t\t\tsb.append(\" and \");\r\n\t\t\tsb.append(pt3.getGeoObjectLabel());\r\n\t\t\tsb.append(\" and segment with endpoints \");\r\n\t\t\tsb.append(pt3.getGeoObjectLabel());\r\n\t\t\tsb.append(\" and \");\r\n\t\t\tsb.append(pt2.getGeoObjectLabel());\r\n\t\t\treturn sb.toString();\r\n\t\t}\r\n\t\t\r\n\t\tif (ndgType == AlgebraicNDGCondition.NDG_TYPE_4PT_COLLINEAR) {\r\n\t\t\tsb.append(\"Points \");\r\n\t\t\tsb.append(pt1.getGeoObjectLabel());\r\n\t\t\tsb.append(\", \");\r\n\t\t\tsb.append(pt2.getGeoObjectLabel());\r\n\t\t\tsb.append(\", \");\r\n\t\t\tsb.append(pt3.getGeoObjectLabel());\r\n\t\t\tsb.append(\" and \");\r\n\t\t\tsb.append(pt4.getGeoObjectLabel());\r\n\t\t\tsb.append(\" are not collinear\");\r\n\t\t\treturn sb.toString();\r\n\t\t}\r\n\t\t\r\n\t\tif (ndgType == AlgebraicNDGCondition.NDG_TYPE_4PT_CONCYCLIC) {\r\n\t\t\tsb.append(\"Points \");\r\n\t\t\tsb.append(pt1.getGeoObjectLabel());\r\n\t\t\tsb.append(\", \");\r\n\t\t\tsb.append(pt2.getGeoObjectLabel());\r\n\t\t\tsb.append(\", \");\r\n\t\t\tsb.append(pt3.getGeoObjectLabel());\r\n\t\t\tsb.append(\" and \");\r\n\t\t\tsb.append(pt4.getGeoObjectLabel());\r\n\t\t\tsb.append(\" are not concyclic\");\r\n\t\t\treturn sb.toString();\r\n\t\t}\r\n\t\t\r\n\t\tif (ndgType == AlgebraicNDGCondition.NDG_TYPE_4PT_EQ_SEG) {\r\n\t\t\tsb.append(\"Segment with endpoints \");\r\n\t\t\tsb.append(pt1.getGeoObjectLabel());\r\n\t\t\tsb.append(\" and \");\r\n\t\t\tsb.append(pt2.getGeoObjectLabel());\r\n\t\t\tsb.append(\" and segment with endpoints \");\r\n\t\t\tsb.append(pt3.getGeoObjectLabel());\r\n\t\t\tsb.append(\" and \");\r\n\t\t\tsb.append(pt4.getGeoObjectLabel());\r\n\t\t\tsb.append(\" are not of same lengths\");\r\n\t\t\treturn sb.toString();\r\n\t\t}\r\n\t\t\r\n\t\tif (ndgType == AlgebraicNDGCondition.NDG_TYPE_4PT_PARALLEL) {\r\n\t\t\tsb.append(\"Line through points \");\r\n\t\t\tsb.append(pt1.getGeoObjectLabel());\r\n\t\t\tsb.append(\" and \");\r\n\t\t\tsb.append(pt2.getGeoObjectLabel());\r\n\t\t\tsb.append(\" is not parallel with line through points \");\r\n\t\t\tsb.append(pt3.getGeoObjectLabel());\r\n\t\t\tsb.append(\" and \");\r\n\t\t\tsb.append(pt4.getGeoObjectLabel());\r\n\t\t\treturn sb.toString();\r\n\t\t}\r\n\t\t\r\n\t\tif (ndgType == AlgebraicNDGCondition.NDG_TYPE_4PT_PERPENDICULAR) {\r\n\t\t\tsb.append(\"Line through points \");\r\n\t\t\tsb.append(pt1.getGeoObjectLabel());\r\n\t\t\tsb.append(\" and \");\r\n\t\t\tsb.append(pt2.getGeoObjectLabel());\r\n\t\t\tsb.append(\" is not perpendicular to line through points \");\r\n\t\t\tsb.append(pt3.getGeoObjectLabel());\r\n\t\t\tsb.append(\" and \");\r\n\t\t\tsb.append(pt4.getGeoObjectLabel());\r\n\t\t\treturn sb.toString();\r\n\t\t}\r\n\t\t\r\n\t\tif (ndgType == AlgebraicNDGCondition.NDG_TYPE_4PT_HARMONIC) {\r\n\t\t\tsb.append(\"Pair of points \");\r\n\t\t\tsb.append(pt1.getGeoObjectLabel());\r\n\t\t\tsb.append(\" and \");\r\n\t\t\tsb.append(pt2.getGeoObjectLabel());\r\n\t\t\tsb.append(\" is not in harmonic conjunction with pair of points \");\r\n\t\t\tsb.append(pt3.getGeoObjectLabel());\r\n\t\t\tsb.append(\" and \");\r\n\t\t\tsb.append(pt4.getGeoObjectLabel());\r\n\t\t\treturn sb.toString();\r\n\t\t}\r\n\t\t\r\n\t\tif (ndgType == AlgebraicNDGCondition.NDG_TYPE_4PT_CONG_COLL_SEG) {\r\n\t\t\tsb.append(\"Segment with endpoints \");\r\n\t\t\tsb.append(pt1.getGeoObjectLabel());\r\n\t\t\tsb.append(\" and \");\r\n\t\t\tsb.append(pt2.getGeoObjectLabel());\r\n\t\t\tsb.append(\" is not collinear and congruent with segment with endpoints \");\r\n\t\t\tsb.append(pt3.getGeoObjectLabel());\r\n\t\t\tsb.append(\" and \");\r\n\t\t\tsb.append(pt4.getGeoObjectLabel());\r\n\t\t\treturn sb.toString();\r\n\t\t}\r\n\t\t\r\n\t\tif (ndgType == AlgebraicNDGCondition.NDG_TYPE_4PT_ON_ANG_BIS) {\r\n\t\t\tsb.append(\"Point \");\r\n\t\t\tsb.append(pt4.getGeoObjectLabel());\r\n\t\t\tsb.append(\" is not on angle bisector of angle with vertex \");\r\n\t\t\tsb.append(pt2.getGeoObjectLabel());\r\n\t\t\tsb.append(\" and two points from different rays \");\r\n\t\t\tsb.append(pt1.getGeoObjectLabel());\r\n\t\t\tsb.append(\" and \");\r\n\t\t\tsb.append(pt3.getGeoObjectLabel());\r\n\t\t\treturn sb.toString();\r\n\t\t}\r\n\t\t\r\n\t\tif (ndgType == AlgebraicNDGCondition.NDG_TYPE_4PT_2_ON_CIRCLE) {\r\n\t\t\tsb.append(\"Points \");\r\n\t\t\tsb.append(pt3.getGeoObjectLabel());\r\n\t\t\tsb.append(\" and \");\r\n\t\t\tsb.append(pt4.getGeoObjectLabel());\r\n\t\t\tsb.append(\" are not together on circle with center \");\r\n\t\t\tsb.append(pt1.getGeoObjectLabel());\r\n\t\t\tsb.append(\" and one point on it \");\r\n\t\t\tsb.append(pt2.getGeoObjectLabel());\r\n\t\t\treturn sb.toString();\r\n\t\t}\r\n\t\t\r\n\t\tif (ndgType == AlgebraicNDGCondition.NDG_TYPE_4PT_ON_CIRCLE) {\r\n\t\t\tsb.append(\"Point \");\r\n\t\t\tsb.append(pt4.getGeoObjectLabel());\r\n\t\t\tsb.append(\" is not on circle with center \");\r\n\t\t\tsb.append(pt1.getGeoObjectLabel());\r\n\t\t\tsb.append(\" and radius equal to segment with endpoints \");\r\n\t\t\tsb.append(pt2.getGeoObjectLabel());\r\n\t\t\tsb.append(\" and \");\r\n\t\t\tsb.append(pt3.getGeoObjectLabel());\r\n\t\t\treturn sb.toString();\r\n\t\t}\r\n\t\t\r\n\t\tif (ndgType == AlgebraicNDGCondition.NDG_TYPE_4PT_INVERSE) {\r\n\t\t\tsb.append(\"Points \");\r\n\t\t\tsb.append(pt3.getGeoObjectLabel());\r\n\t\t\tsb.append(\" and \");\r\n\t\t\tsb.append(pt4.getGeoObjectLabel());\r\n\t\t\tsb.append(\" are not two inverse points with respect to circle with center \");\r\n\t\t\tsb.append(pt1.getGeoObjectLabel());\r\n\t\t\tsb.append(\" and one point from it \");\r\n\t\t\tsb.append(pt2.getGeoObjectLabel());\r\n\t\t\treturn sb.toString();\r\n\t\t}\r\n\t\t\r\n\t\tif (ndgType == AlgebraicNDGCondition.NDG_TYPE_4PT_2_ON_PERP_BIS) {\r\n\t\t\t// TODO\r\n\t\t\treturn sb.toString();\r\n\t\t}\r\n\t\t\r\n\t\tif (ndgType == AlgebraicNDGCondition.NDG_TYPE_4PT_TOUCH_CIRCLES) {\r\n\t\t\t// TODO\r\n\t\t\treturn sb.toString();\r\n\t\t}\r\n\t\t// TODO - other types of NDG conditions\r\n\t\t\r\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "4accb483b0194586e91438f6c632e2fe", "score": "0.41676506", "text": "public static String printLL(Node startNode) {\n\t\t// validation\n\t\tif(startNode == null) {\n\t\t\treturn \"EMPTY\";\n\t\t}\n\t\t// printing\n\t\tStringBuilder builder = new StringBuilder();\n\t\t// print the linked list data till current node becomes NULL\n\t\twhile(startNode != null) {\n\t\t\tbuilder.append(startNode.getValue()+\" -> \");\n\t\t\tstartNode = startNode.getNext();\n\t\t}\n\t\t// check builder length\n\t\tif(builder.length() > 0) {\n\t\t\tbuilder.delete((builder.length()-4), builder.length());\n\t\t}\n\t\t// return builder string\n\t\treturn builder.toString();\n\t}", "title": "" }, { "docid": "5216271bf1e4ec72f2d67823b8bdd109", "score": "0.41623634", "text": "@Override\n public void calcReason(SimpleSolver solver, Literal p, Vec<Literal> outReason) {\n if(! (p.equals(Literal.UNDEFINED_LITERAL) || p.equals(literals.get(0))))\n throw new UncheckedInvariantException(\"Invariant failure: p should either be undefined or the first \" +\n \"literal in the clause. \");\n \n int startIndex = p.equals(Literal.UNDEFINED_LITERAL) ? 0 : 1;\n for(int i = startIndex; i < literals.size(); ++i) {\n // invariant: solver.value(lits[i]) == FALSE\n if(solver.value(literals.get(i)) != LBool.FALSE)\n throw new UncheckedInvariantException(\"Invariant failure: value assigned to literals[i] should be \"\n + \"false.\");\n outReason.push(literals.get(i).negated());\n if(isLearnt)\n solver.bumpClauseActivity(this);\n }\n }", "title": "" }, { "docid": "0dc22ef7a6684b42f1eeb8f455c9a718", "score": "0.4158714", "text": "private void printRuleSet() {\n String result = \"\";\n AbstractGPNode[] tmpNodes;\n for (int t = 0; t < this.m_Area.length; t++) {\n // first the Non-Terminals\n result += \"N \\t := \\t{\";\n for (int i = 0; i < this.m_Rules[t].length; i++) {\n if (i == 0) result += \"expr, \";\n else {\n if (i == 1) result += \"var, \";\n else {\n if (((AbstractGPNode[])this.m_Rules[t][i]).length > 0) result += \"op\"+(i-1)+\", \";\n }\n }\n }\n result += \"}\\n\";\n // then the Ternimnals\n result += \"T \\t := \\t{\";\n this.m_Area[t].compileReducedList();\n ArrayList area = this.m_Area[t].getReducedList();\n for (int i = 0; i < area.size(); i++) result += ((AbstractGPNode)area.get(i)).getStringRepresentation()+\", \";\n result += \"}\\n\";\n // now the S\n result += \"S \\t := \\t<expr>\\n\\n\";\n\n // now the rules\n for (int i = 0; i < this.m_Rules[t].length; i++) {\n if (i == 0) {\n // the first rules\n result += \"0. \\t := \\t<expr> \\t::\\t\";\n System.out.println(\"i: \" + i);\n int[][] rulz = (int[][])this.m_Rules[t][i];\n for (int j = 0; j < rulz.length; j++) {\n result += this.getRuleString(rulz[j]) + \"\\n\";\n if ((j+1) < rulz.length) result += \"\\t \\t \\t \\t \\t \\t\";\n }\n } else {\n // now the rules for the terminals\n if (i == 1) {\n // These are the GP-Terminals\n tmpNodes = (AbstractGPNode[])this.m_Rules[t][i];\n result += \"1. \\t := \\t<var> \\t::\\t\"+ tmpNodes[0].getStringRepresentation()+\"\\n\";\n for (int j = 1; j < tmpNodes.length; j++) result += \"\\t \\t \\t \\t \\t \\t\"+ tmpNodes[j].getStringRepresentation()+\"\\n\";\n } else {\n // These are the GP-Functions\n tmpNodes = (AbstractGPNode[])this.m_Rules[t][i];\n if (tmpNodes.length > 0) {\n result += i+\". \\t := \\t<op\"+(i-1)+\"> \\t::\\t\"+ tmpNodes[0].getStringRepresentation()+\"\\n\";\n for (int j = 1; j < tmpNodes.length; j++) result += \"\\t \\t \\t \\t \\t \\t\"+ tmpNodes[j].getStringRepresentation()+\"\\n\";\n }\n }\n }\n }\n result += \"\\n\";\n }\n\n // Now print the result:\n System.out.println(\"\"+result);\n }", "title": "" } ]
296ac9b49184fcfa99b3e1faf6ef4109
Find by ID of reference: menuItems.id
[ { "docid": "37fb5c35c1f58e9ba1effade2bfa003a", "score": "0.5864454", "text": "public List<Role> findByMenuItemsId(String menuItemsId);", "title": "" } ]
[ { "docid": "d88a0103acbcf20cac514db640a20fd9", "score": "0.7830409", "text": "MenuItem findMenuItem(Integer menuItemId) throws BusinessException;", "title": "" }, { "docid": "0a0cc60e9712a2f2ed1c9df709e19e21", "score": "0.74367136", "text": "public Item GetItemByID(String id) \n {\n \t//need to add try - check if list not empty else throw error\n \tif(!menuList.isEmpty()) \n \t{\n\t \tfor(Item i : menuList) \n\t \t{\n\t \t\tif(i.getId().equals(id)) \n\t \t\t{\n\t \t\t\treturn i;\n\t \t\t}\n\t \t}\n \t}\n \t//need to catch - comparing id that don't exist in list\n \treturn null;\n }", "title": "" }, { "docid": "77a85f83ea3bc57eadddf31616f74c01", "score": "0.6949641", "text": "LsMenu selectByPrimaryKey(Long id);", "title": "" }, { "docid": "1a6e30ece298da784a05c96f99e08b02", "score": "0.69172937", "text": "public SysMenu selectMenuById(Long menuId);", "title": "" }, { "docid": "988cc0c2f8b83a512d74bc486d4c1000", "score": "0.69002724", "text": "private void findAnItemById() {\n String id = this.input.ask(\"Enter id of Item to find: \");\n Item item = this.tracker.findById(id);\n if (item != null) {\n System.out.println(item.toString());\n } else {\n System.out.println(\"FIND BY ID: item not found. id - \" + id + \"Doesn't exist\");\n }\n }", "title": "" }, { "docid": "652e3458e2a63230ae167ddcce167c84", "score": "0.6823935", "text": "Menu selectByPrimaryKey(Integer id);", "title": "" }, { "docid": "652e3458e2a63230ae167ddcce167c84", "score": "0.6823935", "text": "Menu selectByPrimaryKey(Integer id);", "title": "" }, { "docid": "c4fd1fd29976dda68bbdb6c5e1d36ff4", "score": "0.6771906", "text": "WxMenuConfig selectByPrimaryKey(Integer id);", "title": "" }, { "docid": "390365ab2c3a9295c0317d1bf50e176b", "score": "0.67264646", "text": "MenuItem getMenuItemTestOnly(int id) {\n return menuItemRepository.findOne(id);\n }", "title": "" }, { "docid": "e1c72e00de39d09f74f58167966bc0d0", "score": "0.66696393", "text": "ExternalToolItem find(Integer id);", "title": "" }, { "docid": "06d7fda94b4e791928b4fce0b441cd3d", "score": "0.66161805", "text": "public Item findById(String id) {\n Item result = null;\n for (Item item : items) {\n if (item != null && item.getId().equals(id)) {\n result = item;\n }\n }\n return result;\n }", "title": "" }, { "docid": "e929872442e0ea24dde9f65e8c4466b0", "score": "0.65923196", "text": "@Nullable\n IMenuObject getMenuObjectOfID (@Nullable String sID);", "title": "" }, { "docid": "80a07e52e4bbf3ba31404f5c39b6fae2", "score": "0.65908843", "text": "@Override\n @Transactional(readOnly = true)\n public Optional<MenuItem> findOne(Long id) {\n log.debug(\"Request to get MenuItem : {}\", id);\n return menuItemRepository.findById(id);\n }", "title": "" }, { "docid": "bd1e4d9e6e7a46d84ebe9227f67c62ce", "score": "0.65778106", "text": "@Override\n\tpublic UserMenu findOne(Object id) {\n\t\tUserMenu entity = commonDAO.findOne(UserMenu.class, id);\n\t\treturn entity;\n\t}", "title": "" }, { "docid": "da838437ea6545f0af7dd167351c7281", "score": "0.6558337", "text": "@Override\n @Transactional\n public Menu findById(Integer id) {\n Query query = sessionFactory.getCurrentSession().createQuery(\"select m from Menu m where m.id = :id\");\n query.setParameter(\"id\", id);\n Menu result = (Menu) query.uniqueResult();\n if (result == null) {\n throw new RuntimeException(\"There is no such Menu with id: \" + \"\\\"\" + id + \"\\\"\");\n }\n return result;\n }", "title": "" }, { "docid": "d65b83d994c761a8ff30f17b3c3af6cf", "score": "0.653883", "text": "List<MenuItem> findMenuItemsByMenu(Integer menuId)\n throws BusinessException;", "title": "" }, { "docid": "2c0c53d68ec026f021831917906827db", "score": "0.6535895", "text": "SystemMenu selectByPrimaryKey(Integer id);", "title": "" }, { "docid": "dd1b3b6bcc848de22b796c86203020ea", "score": "0.6510775", "text": "public Item findById(String id) {\n Item result = null;\n for (Item item : this.items) {\n if (item != null && item.getId().equals(id)) {\n result = item;\n break;\n }\n }\n return result;\n }", "title": "" }, { "docid": "47fad64a0a4b7e234b54a0d73e8473bb", "score": "0.6493575", "text": "MenuDao selectByPrimaryKey(Integer id);", "title": "" }, { "docid": "9a366f5c88904c31cc572c5f3357dcbf", "score": "0.6449435", "text": "public static ParseObject getMenuObjectByID(String menuObjectID) {\n ParseObject tmpParseObject = null;\n ParseQuery<ParseObject> query = ParseQuery.getQuery(\"MenuObjects\"); //TODO use const\n\n try {\n tmpParseObject = query.get(menuObjectID);\n// if (tmpParseRes.size() != 0){\n// tmpParseObject = tmpParseRes.get(0);\n// }\n } catch (ParseException e) {\n e.printStackTrace();\n }\n\n return tmpParseObject;\n }", "title": "" }, { "docid": "cbcc8e5a7f8cf39bacef0193be72e52a", "score": "0.64091116", "text": "@Override\n\t@SystemServiceLog(description=\"根据主键id查询菜单信息\")\n\tpublic TNavigation selectByPrimaryKey(Long id) {\n\t\treturn tnavigation.selectByPrimaryKey(id);\n\t}", "title": "" }, { "docid": "5747e8b9102cf4a78ddb3fabbfba4498", "score": "0.6343627", "text": "@Override\n\tpublic LogTreeItem findItem(String itemid) {\n\t\tif(StringUtils.isEmpty(itemid)){\n\t\t\treturn null;\n\t\t}else{\n\t\t\tLogTreeItem model=itemdao.findByid(Long.valueOf(itemid));\n\t\t\treturn model;\n\t\t}\n\t}", "title": "" }, { "docid": "b47fda67221f96a16dcb554c082acbc2", "score": "0.63350695", "text": "MasterRoleMenu getById(int roleMenuId);", "title": "" }, { "docid": "52d8fd300141162246877bb7daa8c28d", "score": "0.63314617", "text": "MtCliqueMenus selectByPrimaryKey(Integer id);", "title": "" }, { "docid": "7a7407d0773b97dca9600d584ddf6fcd", "score": "0.63260263", "text": "@Override\n\tpublic Menu getMenuById(int id) {\n\t\tSession session = sessionFactory.getCurrentSession();\n\t\treturn session.get(Menu.class, id); //get berdasarkan model\n\t}", "title": "" }, { "docid": "ad56f9ea68429e8d0ba02c8f00fbeac7", "score": "0.6266056", "text": "@Override\n public MenuItems findByMenuName(String itemName) throws MenuItemNotFoundException{\n // Optional optional=Optional.of(repository.findByName(itemName));\n if(!repository.existsByName(itemName)){\n throw new MenuItemNotFoundException();\n }\n MenuItems menuItems=repository.findByName(itemName);\n return menuItems;\n }", "title": "" }, { "docid": "fa96e16adf30e63a59ed7d5c14a42145", "score": "0.6253088", "text": "private PropertyItem findItem(IPropertySheetEntry entry) {\r\n\t\t// Iterate through treeItems to find item\r\n\t\tPropertyItem[] items = pv2.getItems();\r\n\t\tfor (int i = 0; i < items.length; i++) {\r\n\t\t\tPropertyItem item = items[i];\r\n\t\t\tPropertyItem findItem = findItem(entry, item);\r\n\t\t\tif (findItem != null) {\r\n\t\t\t\treturn findItem;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "f28c07e877477d13dd50c6c655dc8f0a", "score": "0.62499166", "text": "@Override\r\n\tpublic SysMenu selectByPrimaryKey(Integer id) {\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "0cdce5bde3985da4a63f843b73dbbcfb", "score": "0.6238384", "text": "MenuRole selectByPrimaryKey(Integer id);", "title": "" }, { "docid": "80db2e6ed525fa2827f2f0bd5bee241f", "score": "0.6230294", "text": "public static Menu search(Menu menu, long id) throws MenuNotFoundException {\n if (menu.getId() == id) {\n return menu;\n } else if (menu.getMenues() != null && !menu.getMenues().isEmpty()) {\n for (Menu submenu :\n menu.getMenues()) {\n if (submenu.getId() == id) {\n return submenu;\n }\n }\n }\n throw new MenuNotFoundException();\n }", "title": "" }, { "docid": "674692964f3612e26be9925ece971c86", "score": "0.61917496", "text": "@GET\n @Path(\"/findIdRest/{idMenu}\")\n @Produces({MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML})\n public List<Menu> findByIdRest(@PathParam(\"idMenu\") String id) {\n return service.findByIdRest(id);\n }", "title": "" }, { "docid": "638aa6fc27482c0b67e22ea27c589e13", "score": "0.6168094", "text": "@Override\r\n\tpublic MenuItem getMenuItem(long menuItemId) {\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "cd430c1dae819bcabdc8494bf92816ac", "score": "0.6157635", "text": "default MenuItem fromId(Long id) {\n if (id == null) {\n return null;\n }\n MenuItem menuItem = new MenuItem();\n menuItem.setId(id);\n return menuItem;\n }", "title": "" }, { "docid": "d03a47b809006870b4c8744d0083494e", "score": "0.61438215", "text": "public static Item findById(final int id) {\n return find.byId(id);\n\n }", "title": "" }, { "docid": "8ece63ecf50c09840c371486b4cf000e", "score": "0.6141619", "text": "@GET\n @Path(\"{idMenu}\")\n @Produces({MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML})\n public Menu findByMenuId(@PathParam(\"idMenu\") String id) {\n return service.findByMenuId(id);\n }", "title": "" }, { "docid": "bd50b7e03a5c9ec2c4c822672701d0e4", "score": "0.61215097", "text": "public Menu getMenu(final Long id) {\n return menuRepository.getOne(id);\n }", "title": "" }, { "docid": "4b2883ee9a6e20d0498a01176bfac593", "score": "0.6098505", "text": "Item getByID(UUID id);", "title": "" }, { "docid": "c2732baf60462afe6674bfc4ab6a53d3", "score": "0.6069633", "text": "Item findById(long id);", "title": "" }, { "docid": "8bba9616253870ec880b16d8d40d86b5", "score": "0.6063255", "text": "public void findByID(int id) {\n\t\t// using linear search.\n\n\t}", "title": "" }, { "docid": "604fc420a9c024380eb5bada74d88251", "score": "0.6031023", "text": "public static Md0003Menu find(Long id) {\n return CoreServices.find(Md0003Menu.class,id);\n }", "title": "" }, { "docid": "0506502d28a7237c28ecda1462a0f736", "score": "0.6027017", "text": "public CmsMenu queryByKey(int key) throws Exception;", "title": "" }, { "docid": "9182fad832cc696f04a5a129ff827717", "score": "0.6017125", "text": "public int getMenuItemID() {\n return this.menuItemID;\n }", "title": "" }, { "docid": "aed3ecb0313a5e66981c8322e715cd8f", "score": "0.6004733", "text": "DataShopInstanceItem find(Long id);", "title": "" }, { "docid": "094c3a40adf1cc9deb41d924b7b2f506", "score": "0.59922636", "text": "Item getItemById(int id);", "title": "" }, { "docid": "a78f44700a89823de336329a8dced0e7", "score": "0.5984729", "text": "public Integer getMenuId() {\n return menuId;\n }", "title": "" }, { "docid": "ca583b6e4da6c45be90e3290e6b2b12b", "score": "0.5972521", "text": "public Item getItemById(Integer id) {\r\n Item item = null;\r\n try {\r\n item = getFacade().findItemById(id);\r\n return item;\r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n }\r\n return item;\r\n }", "title": "" }, { "docid": "0a4f6a287c50cbf7a2d23c8c82891f3a", "score": "0.5958426", "text": "ExternalToolItem get(Integer id);", "title": "" }, { "docid": "567e1b698027e39cfa31a985c7ef9e3b", "score": "0.5941661", "text": "public String selectItem(MenuItem selectedItem) {\n current = selectedItem;\n \n // Do reverse lookup for the view ID\n for (String key: menuItems.keySet())\n if (menuItems.get(key) == selectedItem)\n return key;\n \n return null;\n }", "title": "" }, { "docid": "849ce7dec6e214b87670aec7ea679dad", "score": "0.5936549", "text": "public AccessRequestHistoryItem find(int id) {\n return (AccessRequestHistoryItem)find(AccessRequestHistoryItem.class, id);\n }", "title": "" }, { "docid": "a417e393f3fd04cbf6c69e0d22579797", "score": "0.5933397", "text": "@GetMapping(\"/{id}\")\n\tpublic ResponseEntity<Message<Menu>> findById(@PathVariable int id) {\n\t\tOptional<Menu> menu = menuService.findById(id);\n\t\tif(!menu.isPresent()) {\n\t\t\tMessage<Menu> message = new Message<Menu>(\"Menu not found\", null);\n\t\t\treturn ResponseEntity.status(HttpStatus.NOT_FOUND).body(message);\n\t\t}\n\t\tMessage<Menu> message = new Message<Menu>(menu.get());\n\t\treturn ResponseEntity.ok(message);\n\t}", "title": "" }, { "docid": "d446381849eee6db1a11b95b40bf0c27", "score": "0.5860537", "text": "public void searchbyId() {\n\t\tclick(By.xpath(\"/html/body/div[1]/div[2]/div/div/div/div[2]/div[2]/ul/li[1]/a\"));\n }", "title": "" }, { "docid": "8eec2fd7b99db41bcb4738045e8707aa", "score": "0.58453697", "text": "@Override\n\tpublic TbItem findById(Integer id) {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "1850c76d0fffcb3b0cfc3e63e09714f8", "score": "0.58237064", "text": "@Override\r\n\tpublic Item getItem(long id) {\n\t\treturn (Item) repository.findItemById(id);\r\n\t\t//return (Item) repository.getCatalogItems().get(id);\r\n\t}", "title": "" }, { "docid": "ea9ea103bce20e11a0aab4dff988cb50", "score": "0.5797771", "text": "@Override\n\tpublic Item getItemByIdentifier(String id) {\n\n\t\tif (null == id)\n\t\t\treturn null;\n\t\t\n\t\tGradeItem gradebookItemModel = (GradeItem) this.getGradebookItemModel();\n\t\t\n\t\tif(null == gradebookItemModel)\n\t\t\treturn null;\n\t\t\t\t\n\t\treturn findItemByIdAmongChildren(id, gradebookItemModel.getChildren());\n\t\t\n\t}", "title": "" }, { "docid": "ccebfd3c4b82dd04abee168f17279eec", "score": "0.5783683", "text": "public String getMenuId() {\r\n\t\treturn menuId;\r\n\t}", "title": "" }, { "docid": "275de39ddb5c93560f61f7af0d031c21", "score": "0.577687", "text": "DollNavigation selectByPrimaryKey(Integer id);", "title": "" }, { "docid": "bf2093ebc232af79bcf4ebca25173674", "score": "0.5749541", "text": "java.lang.String getItemId();", "title": "" }, { "docid": "bf2093ebc232af79bcf4ebca25173674", "score": "0.5749541", "text": "java.lang.String getItemId();", "title": "" }, { "docid": "bf2093ebc232af79bcf4ebca25173674", "score": "0.5749541", "text": "java.lang.String getItemId();", "title": "" }, { "docid": "bf2093ebc232af79bcf4ebca25173674", "score": "0.5749541", "text": "java.lang.String getItemId();", "title": "" }, { "docid": "bf2093ebc232af79bcf4ebca25173674", "score": "0.5749541", "text": "java.lang.String getItemId();", "title": "" }, { "docid": "bf2093ebc232af79bcf4ebca25173674", "score": "0.5749541", "text": "java.lang.String getItemId();", "title": "" }, { "docid": "bf2093ebc232af79bcf4ebca25173674", "score": "0.5749541", "text": "java.lang.String getItemId();", "title": "" }, { "docid": "bf2093ebc232af79bcf4ebca25173674", "score": "0.5749541", "text": "java.lang.String getItemId();", "title": "" }, { "docid": "bf2093ebc232af79bcf4ebca25173674", "score": "0.5749541", "text": "java.lang.String getItemId();", "title": "" }, { "docid": "bf2093ebc232af79bcf4ebca25173674", "score": "0.5749541", "text": "java.lang.String getItemId();", "title": "" }, { "docid": "bf2093ebc232af79bcf4ebca25173674", "score": "0.5749541", "text": "java.lang.String getItemId();", "title": "" }, { "docid": "31045562c947e541921417f0701475be", "score": "0.57380927", "text": "Item getItem(long itemId);", "title": "" }, { "docid": "81deb36a77bbf397461964cf1e81078f", "score": "0.5728623", "text": "public static int findByID(LendItemArrayList list, int id)\n {\n \tfor(int i = 0; i < list.lendItems.length; i++)\n \t{\n \t\tif(list.lendItems[i].id == id)\n \t\t{\n \t\t\treturn i;\n \t\t}\n \t}\n \t\n \treturn -1;\n }", "title": "" }, { "docid": "996285655738e37b9f41840740463360", "score": "0.5710947", "text": "public void findById(int id) {\n LOG.info(\"Find by id: \" + id);\n }", "title": "" }, { "docid": "df8a4e967a5a23bec60dc89d9aa8f12e", "score": "0.57079643", "text": "Pieza findByID(String id);", "title": "" }, { "docid": "0aee548bc03106d8f2aaeb8a5a6c5876", "score": "0.57072943", "text": "public Item getItemById(int id) {\r\n\t\treturn itemRepo.findById(id).get();\r\n\t}", "title": "" }, { "docid": "22c9a6742f292988741793ba5d6c0b6c", "score": "0.5698571", "text": "public ItemId getId() {\n return id;\n }", "title": "" }, { "docid": "0ed7927653d23148132c246707324cd9", "score": "0.5692105", "text": "public Product findProduct(int id)\n {\n for(Product product : stock)\n {\n if(product.getID() == id)\n {\n System.out.println(\"Product: \" + product);\n return product; \n }\n }\n return null;\n }", "title": "" }, { "docid": "a6d645de6a50cafd2361a535196c3878", "score": "0.5687561", "text": "public long getItemId() {\n/* 254 */ return this.itemId;\n/* */ }", "title": "" }, { "docid": "b329e9c1e90237e0ac93f82edc14afb4", "score": "0.56861204", "text": "DataShopInstanceItem get(Long id);", "title": "" }, { "docid": "67aeaba22240095641ba2a34122bb21b", "score": "0.56760275", "text": "@Override\n public MenuItems updateMenuItems(MenuItems menuItems)throws MenuItemNotFoundException {\n\n MenuItems updatedMenuItems=null;\n // Optional optional=repository.findById(menuItems.getMenuId());\n if(!repository.existsByName(menuItems.getName())){\n logger.error(\"Menu item not found\");\n throw new MenuItemNotFoundException();\n }\n // MenuItems getMenuItem=new MenuItems(menuItems.getMenuId(),menuItems.getCategory(),menuItems.getName(),\n // menuItems.getDescription(),menuItems.getPrice());\n updatedMenuItems=repository.save(menuItems);\n logger.info(\"Menu item updated\");\n return updatedMenuItems;\n\n }", "title": "" }, { "docid": "4f238b6f5fb7681994479e59349f8b1e", "score": "0.5673634", "text": "@GET(\"lookup.php\")\n Call<DetailedListOfMealsResponce> findItemByID(\n @Query(\"i\") String id\n );", "title": "" }, { "docid": "11e3e8f6c0ccc9a2a79c0ab201f88f83", "score": "0.5673322", "text": "private PropertyItem findItem(IPropertySheetEntry entry, PropertyItem item) {\r\n\t\t// If we can find the TreeItem in the cache, just return it\r\n\t\tObject mapItem = entryToItemMap.get(entry);\r\n\t\tif (mapItem != null && mapItem instanceof PropertyItem)\r\n\t\t\treturn (PropertyItem) mapItem;\r\n\r\n\t\t// compare with current item\r\n\t\tif (entry == item.getData()) {\r\n\t\t\treturn item;\r\n\t\t}\r\n\r\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "dcd73655b9bcd3af11b5ad5249a2ed9b", "score": "0.56647676", "text": "public MenuVO searchMenu(MenuVO param) throws Exception {\n\t\treturn bizBasicDao.selectMenu(param);\n\t}", "title": "" }, { "docid": "fe798e6048b37e7d78f0464270ecfd2b", "score": "0.56639713", "text": "public String getId() {\n return innerItem.getId();\n }", "title": "" }, { "docid": "1b42276fa431a784f065fdbb7c29402a", "score": "0.56635076", "text": "public void loadItemByID(String id) throws Exception;", "title": "" }, { "docid": "7f13a18602e34093cd9fd0827efdde8e", "score": "0.5633945", "text": "@GetMapping(\"/items/{id}\")\n\tpublic Optional<items> getItemId(@PathVariable int id) {\n\t\treturn itemrepository.findById(id);\n\t}", "title": "" }, { "docid": "546c23ac2e7964848be24e7cc12b003f", "score": "0.5628583", "text": "public List<SysMenu> selectMenuListByUserId(SysMenu menu);", "title": "" }, { "docid": "e9b3feae31bb05b84e53548f72dd06b2", "score": "0.5621762", "text": "public void setMenuId(Integer menuId) {\n this.menuId = menuId;\n }", "title": "" }, { "docid": "5340dd1595120cfd4547f1e69d32b0be", "score": "0.5612957", "text": "String getItem(int id) {\n return items.get(id).nom;\n }", "title": "" }, { "docid": "8529e46ec89ceb13ba1914834cb1a7ee", "score": "0.5605116", "text": "@Override\n\tpublic BoardItem selectOne(int itemid) {\n\t\treturn boardItemDao.selectOne(itemid);\n\t}", "title": "" }, { "docid": "9ffaedb393b1ebd48debb0b79d1da5fb", "score": "0.5599145", "text": "@Override\n public MenuItems deleteMenuItems(String menuItem) throws MenuItemNotFoundException{\n MenuItems menuItems=null;\n // Optional optional=Optional.of(repository.findByName(menuItem));\n if(!repository.existsByName(menuItem)){\n logger.error(\"Menu item not found\");\n throw new MenuItemNotFoundException();\n }\n menuItems=repository.findByName(menuItem);\n repository.deleteByname(menuItem);\n logger.info(\"Menu item deleted\");\n return menuItems;\n }", "title": "" }, { "docid": "f1ecacd5de9b4729548ec3d251f4ac03", "score": "0.5585866", "text": "TreeItem<Node> findItem(Node node);", "title": "" }, { "docid": "f740502c76cf0186cd09099b4f1a7e5f", "score": "0.55839866", "text": "TodoItem getItemById(String itemId);", "title": "" }, { "docid": "8122d39afb84627168413e4e2e994786", "score": "0.5580636", "text": "public T find(Object id);", "title": "" }, { "docid": "04c2c6d4bf092546a3814f3021c31994", "score": "0.55579054", "text": "public E findById(long myid) {\n E myperson=null;\n for (int i = 0; i < personlist.size(); i++) {\n\n if (personlist.get(i).getId() == myid) {\n System.out.println(personlist.get(i).getId());\n myperson = personlist.get(i);\n\n\n }\n }\n return myperson;\n\n }", "title": "" }, { "docid": "25c830ff0b791e663ecc3c19157a0bdb", "score": "0.55440223", "text": "@Test\n\tpublic void whenWeKnowSomeIdThenWeCanFindItemByThisId() {\n\t\tTracker tracker = new Tracker();\n\t\tItem it1 = new Item(\"test1\", \"testdesc1\", 123);\n\t\tItem it2 = new Item(\"test2\", \"testdesc2\", 234);\n\t\tItem it3 = new Item(\"test3\", \"testdesc3\", 345);\n\t\ttracker.add(it1);\n\t\ttracker.add(it2);\n\t\ttracker.add(it3);\n\t\tItem excpectation = tracker.findAll().get(1);\n\t\tassertThat(tracker.findById(\"testdesc2test2\"), is(excpectation));\n\t}", "title": "" }, { "docid": "c37f3b64f777f33e5ae8a867bd097416", "score": "0.55430925", "text": "public Item findByID(int id, Context context){\n Item item = new Item();\n Cursor cursor = super.findByID(DB_TABLE,id,DB_ALL_COLUMNS);\n if(cursor.getCount() > 0){\n cursor.moveToFirst();\n item.setID(cursor.getInt(0));\n ProductDBHelper prodDBH = new ProductDBHelper(context);\n item.setProduct(prodDBH.findByID(cursor.getInt(1),context));\n BuyListDBHelper blDBH = new BuyListDBHelper(context);\n item.setBuyList(blDBH.findByID(cursor.getInt(2),context));\n item.setQuantity(cursor.getFloat(3));\n item.setUnitPrice(cursor.getFloat(4));\n if(cursor.getInt(5) != 0){\n item.setIntoChart(true);\n } else{\n item.setIntoChart(false);\n }\n }\n return item;\n }", "title": "" }, { "docid": "c5c03adb060986ec50f275da1332fad3", "score": "0.5539714", "text": "Optional<Item> find(Long id, String pathForFile) throws ServiceException;", "title": "" }, { "docid": "e3b24650898cbab6317d388c2db57961", "score": "0.5533073", "text": "private ItemList findItemListById(String id) throws UnknownHostException {\n\t\tDBCollection collection = Database.getInstance().getItemListCollection();\n\t\treturn (ItemList) collection.findOne(new BasicDBObject(\"_id\", new ObjectId(id)));\n\t}", "title": "" }, { "docid": "3ed35f5af1b6b716846933adeecf7786", "score": "0.5530986", "text": "@Override\n public FoodItem getFoodItem(int id) {\n return mRealm.where(FoodItem.class).equalTo(\"id\", id).findFirst();\n }", "title": "" }, { "docid": "e2258861408c3c37d6a4718879312d31", "score": "0.5527228", "text": "private static Item getInventoryItem(final int id) {\n\t\t\tfor (Item item : Inventory.getItems()) {\n\t\t\t\tif (item.getId() == id) {\n\t\t\t\t\treturn new Item(item.getWidgetChild());\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn null;\n\t\t}", "title": "" }, { "docid": "320134a7f8b47aa1aa91d70e2d99c217", "score": "0.5495549", "text": "public static final SourceModel.Expr findMatchingUniquelyNamedItemById(SourceModel.Expr items, SourceModel.Expr id) {\r\n\t\t\treturn \r\n\t\t\t\tSourceModel.Expr.Application.make(\r\n\t\t\t\t\tnew SourceModel.Expr[] {SourceModel.Expr.Var.make(Functions.findMatchingUniquelyNamedItemById), items, id});\r\n\t\t}", "title": "" }, { "docid": "00b35d2919798fbb2c8caa5fed8e42f6", "score": "0.54913205", "text": "@Resource\n protected abstract int getMenuResourceId();", "title": "" } ]
dd416af5bb0292bbbd9203008a8a1fa8
Enter relevant functionality for when the first widget is created
[ { "docid": "78d04779fe029e12accbcaa81aed0383", "score": "0.0", "text": "@Override\n public void onEnabled(Context context) {\n }", "title": "" } ]
[ { "docid": "eedec2bf2f1b98d31d892eb87398ba37", "score": "0.7402504", "text": "@Override\n\t\tpublic void initWidget() {\n\t\t\t\n\t\t}", "title": "" }, { "docid": "a455d0dc687f3b174ca5a32c8e3e961f", "score": "0.7400789", "text": "protected void init() {\r\n\t\tsetWidget(getOurWidget());\r\n\t}", "title": "" }, { "docid": "9b7aef75507433d80d8d1d62954d57ec", "score": "0.72405237", "text": "public void initWidget();", "title": "" }, { "docid": "299a1462cb7d9b885cecadc4e72c6b9c", "score": "0.7003781", "text": "@Override\n public void initWidgets() {\n\n }", "title": "" }, { "docid": "4c34447256687a6ebe519b48ce08b885", "score": "0.6728783", "text": "private void initUi () {\n \n }", "title": "" }, { "docid": "72d1849a357e5499f5a8699ed8480a89", "score": "0.6601038", "text": "private void init() {\r\n\t\tcontentListener = new ContentChangedListener( ) {\r\n\r\n\t\t\t/**\r\n\t\t\t * @param event\r\n\t\t\t */\r\n\t\t\tpublic void contentChanged(ContentChangedEvent event) {\r\n\t\t\t\trearrangeToolBar(event.getRobot( ));\r\n\t\t\t}\r\n\t\t};\r\n\r\n\t\tApplicationManager.addContentChangedListener(contentListener);\r\n\r\n\t\tcreateToolBar( );\r\n\t\tcreateItems( );\r\n\t\tcreateContextMenu( );\r\n\t}", "title": "" }, { "docid": "5dfc6a5a25b2f13798c77d09ddfee4e1", "score": "0.64627016", "text": "public void initWidget() {\n\t\tbtnAllOff = (Button)findViewById(R.id.allOffBtn);\r\n\t\tbtnAllOn = (Button) findViewById(R.id.allOnBtn);\r\n\t\ttitleView = (TextView)findViewById(R.id.title_textview);\r\n mbtnback = (Button) findViewById(R.id.back_btn);\r\n mBtnDone = (Button) findViewById(R.id.mBtnDone);\r\n\t\tcb1 = (CheckBox) findViewById(R.id.drop_light_checkbox);\r\n\t\tcb2 = (CheckBox) findViewById(R.id.track_light_checkbox);\r\n\t\tcb3 = (CheckBox) findViewById(R.id.wall_light_checkbox);\r\n\t\tet1 = (TextView) findViewById(R.id.drop_light_name_input);\r\n\t\tet2 = (TextView) findViewById(R.id.track_light_name_input);\r\n\t\tet3 = (TextView) findViewById(R.id.wall_light_name_input);\r\n\t}", "title": "" }, { "docid": "19e31bef9eb41e6683a11993ee8f0c99", "score": "0.6451009", "text": "protected abstract void initViewAndEvent();", "title": "" }, { "docid": "e69fbf47ac7b4e0761ebbc4403fdd2d0", "score": "0.6433628", "text": "public void preInitGUI()\n\t{\n\t}", "title": "" }, { "docid": "ffc600ca454bace046e0adfebd12312c", "score": "0.64217055", "text": "private void init() {\n\t\ttoolbar = this.findViewById(R.id.toolbar);\n\t\t\n\t\t// Configure Send to another component\n\t\tsendToAnotherButton = this.findViewById(R.id.send_to_another_button);\n\t\tsendToAnotherButton.setOnClickListener((view) -> {\n\tthis.onSendToAnotherPressed();\n});\n\t\t\n\t\tthis.setupToolbar();\n\t}", "title": "" }, { "docid": "5e48d4b87f4d5f32373bde24fbe58358", "score": "0.63723373", "text": "@Override\n public void Create() {\n initView();\n }", "title": "" }, { "docid": "854ca3671991e38017cd8ec8ac56d57f", "score": "0.6360348", "text": "public void onInit() {\n // TODO(b/238217847): The dependency from SplitscreenController on DragAndDropController is\n // inverted, which leads to SplitscreenController not setting its instance until after\n // onDisplayAdded. We can remove this post once we fix that dependency.\n mMainExecutor.executeDelayed(() -> {\n mDisplayController.addDisplayWindowListener(this);\n }, 0);\n }", "title": "" }, { "docid": "f4911ffd02259e4b129616cf2374a0d1", "score": "0.6306216", "text": "public void onUiCreate(Context context) {\r\n initData();\r\n }", "title": "" }, { "docid": "48eb38311d859e7a54ff1ec38ed53e1d", "score": "0.6304688", "text": "private void preCreateContent() {\r\n mUpdaterData.setWindowShell(mShell);\r\n // We need the UI factory to create the UI\r\n mUpdaterData.setImageFactory(new ImageFactory(mShell.getDisplay()));\r\n // Note: we can't create the TaskFactory yet because we need the UI\r\n // to be created first, so this is done in postCreateContent().\r\n }", "title": "" }, { "docid": "3db1e70ee821f5c074bcc8002f85b53f", "score": "0.6304492", "text": "public void initialise() {\r\n\t\tsetupPanel(0);\r\n\t}", "title": "" }, { "docid": "d3490f45dea4db3c258caa172d759813", "score": "0.62919635", "text": "public void InitUI() {\n super.InitUI();\n }", "title": "" }, { "docid": "459335e5057c3ef2fb9da5ad127f3422", "score": "0.6289708", "text": "@Override protected void startup() {\n show(new HPokerView(this));\n }", "title": "" }, { "docid": "6396463cdc02b4b2f88b0b745cd58f9c", "score": "0.62728834", "text": "public void init() {\n\taddStickyButton = new Button(\"Add Note +\");\n\taddStickyButton.addListener(this);\n\taddStickyButton.setClickShortcut(KeyCode.A);\n\twindow.addComponent(addStickyButton);\n\t/*\n\t * Initialize our sticky notes\n\t */\n\ttry {\n\t for(StickyNote note : model.getNotes()){\n\t\tdisplaySticky(note);\n\t }\n\t}catch(Exception e){\n\t throw new RuntimeException(e);\n\t}\n }", "title": "" }, { "docid": "47bc57580209f44bf07e8076e7697f62", "score": "0.6255658", "text": "@Override\n public void onCreate()\n {\n updateWidgetListView();\n }", "title": "" }, { "docid": "e279d5987403e9886dcbacd2eb0b238c", "score": "0.6227091", "text": "private void init() {\n first=findViewById(R.id.first);\n\n\n\n setText();\n }", "title": "" }, { "docid": "c10d009bb47c3116f6fa500652ee73a0", "score": "0.6223392", "text": "@Override protected void startup() {\n show(new SnakesandLaddersMenu(this));\n }", "title": "" }, { "docid": "fbc938df1faf6780bd81edd9efd81063", "score": "0.6212375", "text": "public void init (){ \n\t\tsetDisplay();\n\t}", "title": "" }, { "docid": "936f32b3fa5e7388c5e311f79201ec69", "score": "0.6207513", "text": "private void init() {\n\t\tsignInInsteadButton = this.findViewById(R.id.sign_in_instead_button);\n\t\tsignInInsteadButton.setOnClickListener((view) -> {\n\tthis.onSignInInsteadPressed();\n});\n\t\t\n\t\t// Configure signUpButton component\n\t\tsignupbuttonButton = this.findViewById(R.id.signupbutton_button);\n\t\tsignupbuttonButton.setOnClickListener((view) -> {\n\tthis.onSignUpButtonPressed();\n});\n\t\t\n\t\t// Configure Mobile Number component\n\t\tpasswordTextView = this.findViewById(R.id.password_text_view);\n\n\t\t// Configure Email Address component\n\t\temailAddressTextView = this.findViewById(R.id.email_address_text_view);\n\t\t\n\t\t// Configure Full Name component\n\t\tfullNameTextView = this.findViewById(R.id.full_name_text_view);\n\t\t\n\t\t// Configure title component\n\t\ttitleTextView = this.findViewById(R.id.title_text_view);\n\t}", "title": "" }, { "docid": "b6a88c4d2d3b5d688c351ad91009f519", "score": "0.6198015", "text": "@Override protected void startup() {\n show(new LibView(this));\n }", "title": "" }, { "docid": "34bbcc1666bbc189b94fd0482a0ce576", "score": "0.6178261", "text": "protected void onAfterShow() {\n //Default do no thing\n }", "title": "" }, { "docid": "f6c09ae729d3b3cd9e27afcde44fc4a1", "score": "0.6175785", "text": "@Override\r\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\r\n setContentView(R.layout.triple_panel_switch_action);\r\n\t\tinitDataSource();\r\n//\t\tTitleLayoutUtils.setupTitleLayout(this, switchname);\r\n\t\tinitWidget();\r\n\t\tinitWidgetState();\r\n\t\tinitWidgetListener();\r\n\t\taddWidgetListener();\r\n }", "title": "" }, { "docid": "3ff284564145c97019910a67297c7689", "score": "0.617178", "text": "@Override\n public void initView() {\n setSampleTitle(\"this is test\", false);\n SampleDefaultAdapter adapter = getSampleDefaultTitleAdapter();\n adapter.getConfig().backGroundColor(Color.CYAN).textColor(Color.WHITE);\n notifyTitleChange();\n btn = findView(R.id.btn);\n pager = findView(R.id.vp);\n\n }", "title": "" }, { "docid": "db533513ca328328b537f716f7991118", "score": "0.61647844", "text": "private void initUI() {\n\t\ttitle_text = (TextView) findViewById(R.id.layout_main_text);\n\t\ttitle_left_btn = (Button) findViewById(R.id.layout_main_left_btn);\n\n\t\tlistview = (ListView) findViewById(R.id.function_listview);\n\t\tadapter = new FunctionAdapter(this, User.getInfo(this).getRight(), FunctionAdapter.WLJKMENU);\n\t\tlistview.setAdapter(adapter);\n\n\t\tlistview.setOnItemClickListener(this);\n\t}", "title": "" }, { "docid": "ac9f358dc7b9ee1730ec9cd76cf6fa04", "score": "0.6160125", "text": "protected void init() {\n\t\tsetCanceledOnTouchOutside(false);\n\t\tsetCancelable(true);\n\t\tmyWrapper=new DataWrapper();\n\t\tsetOnCancelListener(this);\n\t\t\n\t\tsetMessage(\"No Information Provided\");\n\t}", "title": "" }, { "docid": "434f7d3e8087034dd9c3e1da1cc8fa9d", "score": "0.6155339", "text": "@Override\n public void widgetSelected(SelectionEvent e) {\n\n ProjectCreateWindow.main(null);\n }", "title": "" }, { "docid": "7667873f2602b88ef04ecafbb57eaa6d", "score": "0.61240596", "text": "protected void initUI()\n {\n // Do normal version\n super.initUI();\n\n // Enable Events for editor\n enableEvents(getEditor(), MousePress, MouseRelease);\n\n // Listen for Editor PropChanges\n getEditor().addPropChangeListener(pc -> editorDidPropChange(pc));\n\n // Configure Window ClassName, Image and enable window events\n WindowView window = getWindow();\n window.setImage(getFrameIcon());\n enableEvents(window, WinClose);\n if (SnapUtils.isTeaVM)\n window.setMaximized(true);\n }", "title": "" }, { "docid": "2242a8886d13a4d3a45b899848975a99", "score": "0.61195683", "text": "private void buildUI(boolean firsttime) {\n if (firsttime) {\n toolbar = new JPanel(new RestrictedWidthFlowLayout(FlowLayout.LEFT));\n }\n else {\n for (int ix=0; ix<mActionListeners.size(); ix++) {\n AbstractButton comp = (AbstractButton)mActionListeners.get(ix);\n comp.removeActionListener(this);\n }\n mActionListeners.clear();\n toolbar.removeAll();\n }\n\n mComponents.clear();\n mFields.clear();\n\n mStartGameBut = new JButton(START_GAME_LABEL);\n listenTo(mStartGameBut);\n toolbar.add(mStartGameBut);\n \n mEndGameBut = new JButton(END_GAME_LABEL);\n listenTo(mEndGameBut);\n toolbar.add(mEndGameBut);\n \n List ls = mDebugInfo.getSeatList();\n mSeatPopup = new JComboBox();\n mSeatPopup.setEditable(true);\n mSeatPopup.addItem(UNSEATED_ITEM);\n for (int ix = 0; ix < ls.size(); ix++) {\n String seatid = (String)(ls.get(ix));\n mSeatPopup.addItem(seatid);\n }\n toolbar.add(mSeatPopup);\n\n ls = mDebugInfo.getCommandList();\n for (int ix = 0; ix < ls.size(); ix++) {\n DebugInfo.Command cmd = (DebugInfo.Command)(ls.get(ix));\n switch (cmd.type) {\n case DebugInfo.CMD_BUTTON:\n JButton but = new JButton(cmd.label);\n listenTo(but);\n toolbar.add(but);\n mComponents.add(but);\n break;\n case DebugInfo.CMD_FIELD:\n JPanel pair = new JPanel();\n pair.setLayout(new BoxLayout(pair, BoxLayout.X_AXIS));\n JLabel label = new JLabel(cmd.label + \":\");\n pair.add(label);\n JTextField field;\n if (cmd.datatype == DebugInfo.DATTYP_INT) {\n field = new JFormattedTextField(new Integer(0));\n field.setColumns(4);\n }\n else {\n field = new JTextField(4);\n }\n pair.add(field);\n\n toolbar.add(pair);\n mComponents.add(field);\n mFields.put(cmd.label, new FieldPair(cmd, field));\n break;\n }\n }\n\n setAllEnabled(false);\n if (!firsttime) {\n toolbar.revalidate();\n }\n }", "title": "" }, { "docid": "8f389fb6aeebf9ca021ee17e4fcb411a", "score": "0.6107231", "text": "private void initView() {\n }", "title": "" }, { "docid": "8f389fb6aeebf9ca021ee17e4fcb411a", "score": "0.6107231", "text": "private void initView() {\n }", "title": "" }, { "docid": "8f389fb6aeebf9ca021ee17e4fcb411a", "score": "0.6107231", "text": "private void initView() {\n }", "title": "" }, { "docid": "a54c614cd26fdfc12060c975036085de", "score": "0.61005104", "text": "public void newUI() {\n clearHistory();\n if (lastMenu == null) {\n hostMenu(1);\n } else {\n lastMenu.run();\n }\n }", "title": "" }, { "docid": "2719167eb50fa5f9e1c8f061d5d0afee", "score": "0.60974765", "text": "public void initGui()\n {\n this.buttonList.clear();\n Keyboard.enableRepeatEvents(true);\n this.buttonList.add(this.field_146852_i = new GuiButton(0, this.width / 2 - 100, this.height / 4 + 120, \"Done\"));\n this.field_146848_f.func_145913_a(false);\n }", "title": "" }, { "docid": "58bf1843fa2a53a8b857d3e5b78e8fc3", "score": "0.60952544", "text": "@Override\n public void initView() {\n }", "title": "" }, { "docid": "6a448edcdb1ef0d9817df94e298d488a", "score": "0.6088514", "text": "protected void initControls() {\n }", "title": "" }, { "docid": "46b180780b0eeadbf8c8b258339891be", "score": "0.60876846", "text": "protected void onBeforeShow() {\n //Default do no thing\n }", "title": "" }, { "docid": "162a3809924f58e2c32b7dd60e1cd6ec", "score": "0.60792875", "text": "private void initialComponent(){\n\n fabAdd = findViewById(R.id.fab_create);\n listView = findViewById(R.id.listView);\n }", "title": "" }, { "docid": "e35847603005d4f76ddd425f8a546c1c", "score": "0.6078107", "text": "@EventHandler(\"deferredInit\")\n protected void onDeferredInit() {\n populateControls(domainObject);\n CWFUtil.focusFirst(root, true);\n forwardChangeEvents(root);\n }", "title": "" }, { "docid": "6472a067d25627186458c00c712b38f5", "score": "0.6077168", "text": "@Override\n public void init()\n {\n int buttonWidth = 400;\n int centerX = (DrawUtils.getScreenWidth() - buttonWidth) / 2;\n\n ElementButton backButton = new ElementButton(\"Zurück zum Hauptmenü\", centerX,DrawUtils.getScreenHeight() - 70, buttonWidth, 30);\n backButton.setClickAction(() -> TextAdventure.getInstance().getGameFrame().loadGuiScreen(new GuiMainMenu()));\n\n registerElement(backButton);\n }", "title": "" }, { "docid": "9b58b0c9f76ed76892170e3fb43fe432", "score": "0.6076855", "text": "private void initEvent() {\n\t}", "title": "" }, { "docid": "cc99deaba1c275e31a2cf2ddf198f390", "score": "0.6074154", "text": "public void addWidgetListener() {\n\t\t\r\n\t}", "title": "" }, { "docid": "86ccce3699fecdff22c5c846c326e7b0", "score": "0.60702217", "text": "protected void initCustomPanels() {\r\n }", "title": "" }, { "docid": "4af8be411353f17df9ed0552b7f30abd", "score": "0.6057184", "text": "@Override\n protected void initWidgets() {\n FontUtils.changeTypeface(mRootView);\n initRefreshView(mRootView);\n initTitleView(mRootView);\n initSearchView(mRootView);\n initAdapter();\n setAdapterGotoDetail();\n }", "title": "" }, { "docid": "3c293ac5841f131c5fe7738bee615bb8", "score": "0.6051272", "text": "protected void initWidget() {\n\n VerticalPanel vertical = new VerticalPanel();\n this.add(vertical);\n grid = new Grid(3, 2);\n vertical.add(grid);\n\n this.setAlwaysShowScrollBars(true);\n this.setSize(\"100%\", \"80%\");\n\n // insert row for Name\n name = insertTextRow(grid, 0, \"Name\");\n\n // insert row for OK\n insertOKRow(grid, 1);\n\n // insert row for ERROR\n insertErrorRow(grid, 2);\n\n // create cell table for FS operation\n vertical.add(createFSActionTable(fsdata));\n }", "title": "" }, { "docid": "0a604ca8befaa8e29aff1e014f6e25fd", "score": "0.6049098", "text": "private void initUI() {\t\n\t\tcreatePane();\n\t\tcreateMenuBar();\n\t\tcreateButton();\n\t\tcreateJLabel();\n\t}", "title": "" }, { "docid": "f013ea163871eff7b678f34e34dfadb0", "score": "0.60454017", "text": "private static void initAndshowGUI(){\n\n }", "title": "" }, { "docid": "e316a09f5bb2d5cb695b8db1c7f16e29", "score": "0.6045332", "text": "private void init() {\n \n CommandLink saveLink = JSFUtil.createCommandLinkPlusImage(ImageEnum.Save22.getPath(),\n ImageEnum.Save22.getLabel());\n\n CommandLink editLink = JSFUtil.createCommandLinkPlusImage(ImageEnum.Edit22.getPath(),\n ImageEnum.Edit22.getLabel());\n\n CommandLink findLink = JSFUtil.createCommandLinkPlusImage(ImageEnum.Find22.getPath(),\n ImageEnum.Find22.getLabel());\n\n CommandLink deleteLink = JSFUtil.createCommandLinkPlusImage(ImageEnum.Delete22.getPath(),\n ImageEnum.Delete22.getLabel());\n\n// SystemInfoBean info = (SystemInfoBean) JSFUtil.getBean(\"systemInfoBean\");\n\n getToolbarGroup().getChildren().add(saveLink);\n getToolbarGroup().getChildren().add(editLink);\n getToolbarGroup().getChildren().add(findLink);\n getToolbarGroup().getChildren().add(deleteLink);\n\n getToolbar().getChildren().add(getToolbarGroup());\n\n form.getChildren().add(getToolbar());\n\n// FacesContext.getCurrentInstance().renderResponse();\n\n\n }", "title": "" }, { "docid": "41c91c35e7506068528381070bb8c64d", "score": "0.60443044", "text": "@FXML\n public void initialize() {\n editButton.setOnMouseClicked(mouseEvent -> onEditItem());\n closeButton.setOnMouseClicked(mouseEvent -> onCloseScreen());\n addStockButton.setOnMouseClicked(mouseEvent -> onAddStock());\n removeStockButton.setOnMouseClicked(mouseEvent -> onRemoveStock());\n\n bindStockItem();\n }", "title": "" }, { "docid": "3a74a4f64b281755cf16701d64459fb3", "score": "0.6042505", "text": "public ChapplicationGUI() {\n preInit();\n initComponents();\n postInit();\n }", "title": "" }, { "docid": "73bd51a35fa676784c368fb05322ef86", "score": "0.6035842", "text": "@Override\n public void initializeGUI() {\n \n doo = new DataObjectObserver(this);\n eo = new EnvironmentObserver(this);\n ac = new AdapterCommunication();\n dr = new DataManager();\n \n window = new Window(ac);\n input = new Input();\n \n registerInterfaces();\n }", "title": "" }, { "docid": "76b8bed3de895e65ea52bd93b117c10d", "score": "0.6033549", "text": "@Override\r\n\t\t\tpublic void run() {\n\t\t\t\tinitUI();\r\n\t\t\t\tinitTopButtons();\r\n\t\t\t\tinitFragment();\r\n\t\t\t}", "title": "" }, { "docid": "9f59718b9cc342acaaa1efb97e7e7215", "score": "0.60229933", "text": "private void doInitMainUI() {\n try {\n setContentView(R.layout.main);\n } catch (Exception e) {\n // NOTHING.\n return;\n }\n\n // Setting onClick listener for Dolby Digital logo\n // (drawable-large/dslogo.png).\n mDSLogo = (ImageView) findViewById(R.id.dsLogo);\n mDSLogo.setOnClickListener(this);\n mDSLogo.setSoundEffectsEnabled(false);\n\n // Related to tooltip display.\n mNativeRootContainer = ViewTools.determineNativeViewContainer(this);\n\n // We'll listen for Dolby Client Events, not visualizer events.\n // Those will be listened directly by the visualizer.\n mDsClient.setEventListener(this);\n // Cleaning up settings cache.\n DsClientCache.INSTANCE.reset();\n\n // Binding to remote service.\n Log.d(Tag.MAIN, \"doInitMainUI - mDsClient.bindDsService\");\n mDsClient.bindDsService(this);\n\n if (configuration == null) {\n configuration = com.dolby.ds1appCoreUI.Configuration.getInstance(getApplicationContext());\n Log.i(Tag.MAIN, \"doInitMainUI - NEW CONFIG:\" + configuration.getMaxEditGain() + \" : \" + configuration.getMinEditGain());\n }\n\n // Finding out if using mobile layout.\n mMobileLayout = getResources().getBoolean(R.bool.newLayout);\n\n if (mMobileLayout == true) {\n // Allocating for the moment only this fragment.\n // The rest will be allocated when required.\n mFPP = new FragProfilePresets();\n // Plugging in the FragProfilePresets fragment.\n // We have to. Otherwise, won't work.\n getFragmentManager().beginTransaction().add(R.id.fragmentcontainer, mFPP).commit();\n }\n if (mEditProfile) {\n this.editProfile();\n }\n }", "title": "" }, { "docid": "7bd034e3c3a643823bf62fda2df8cea6", "score": "0.60159373", "text": "private void initGUI() {\n\t\ttry {\n\t\t\t/*\n\t\t\t * AnchorLayout is a flexible GUI layout used\n\t\t\t * by Jigloo (A GUI builder) that\n\t\t\t * allows dialog resizing.\n\t\t\t * see:\n\t\t\t * http://home.elka.pw.edu.pl/~pdrabik/com/cloudgarden/layout/AnchorLayout.html\n\t\t\t * \n\t\t\t */\n\t\t\tAnchorLayout thisLayout = new AnchorLayout();\n\t\t\tgetContentPane().setLayout(thisLayout);\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t{\n\t\t\t\t/* Creates a new slider widget */\n\t\t\t\tslider = new SliderWidget(\"SliderWidget.java\",new String[]{\"begin lab\",\"end lab\"});\n\t\t\t\tgetContentPane().add(slider, new AnchorConstraint(810, 931, 920, 580, \n\t\t\t\t\t\tAnchorConstraint.ANCHOR_REL, AnchorConstraint.ANCHOR_REL, \n\t\t\t\t\t\tAnchorConstraint.ANCHOR_REL, AnchorConstraint.ANCHOR_REL));\n\t\t\t\tslider.setPreferredSize(new java.awt.Dimension(187, 44));\n\t\t\t}\n\t\t\t{\n\t\t\t\t/* Creates a new ComboBox with three options*/\n\t\t\t\tcomboBox = new ComboBoxWidget(\"ComboBoxWidget.java\",\n\t\t\t\t\t\tnew String[]{\"Default Option\",\"option 1\",\"option 2\"});\n\t\t\t\tgetContentPane().add(comboBox, new AnchorConstraint(675, 378, 764, 23, \n\t\t\t\t\t\tAnchorConstraint.ANCHOR_REL, AnchorConstraint.ANCHOR_REL, \n\t\t\t\t\t\tAnchorConstraint.ANCHOR_REL, AnchorConstraint.ANCHOR_REL));\n\t\t\t\tcomboBox.setPreferredSize(new java.awt.Dimension(189, 29));\n\t\t\t\t\n\t\t\t\tcomboBox.setDefaultModel(\"Default Option\"); \t//set default selection\n\t\t\t}\n\t\t\t{\n\t\t\t\t/* New Text Box */\n\t\t\t\ttextArea = new TextAreaWidget(\"TextAreaWidget.java\");\n\t\t\t\tgetContentPane().add(textArea, new AnchorConstraint(764, 378, 900, 23, \n\t\t\t\t\t\tAnchorConstraint.ANCHOR_REL, AnchorConstraint.ANCHOR_REL, \n\t\t\t\t\t\tAnchorConstraint.ANCHOR_REL, AnchorConstraint.ANCHOR_REL));\n\t\t\t\ttextArea.setPreferredSize(new java.awt.Dimension(189, 54));\n\t\t\t}\n\t\t\t{\n\t\t\t\t/* New group of three radio buttons*/\n\t\t\t\tradioButtons = new ButtonGroupWidget(\"ButtonGroupWidget.java\",\n\t\t\t\t\t\tnew String[]{\"option 1\",\"option 2\",\"option 3\"});\n\t\t\t\tgetContentPane().add(radioButtons, new AnchorConstraint(651, 931, 805, 580, \n\t\t\t\t\t\tAnchorConstraint.ANCHOR_REL, AnchorConstraint.ANCHOR_REL, \n\t\t\t\t\t\tAnchorConstraint.ANCHOR_NONE, AnchorConstraint.ANCHOR_REL));\n\t\t\t\tradioButtons.setPreferredSize(new java.awt.Dimension(187, 97));\n\t\t\t}\n\t\t\t{\n\t\t\t\t/* New group of 6 check boxes laid out in 2 columns*/\n\t\t\t\tcheckBoxes = new CheckBoxesWidget(\"CheckBoxesWidget.java\",\n\t\t\t\t\t\tnew String[] {\"option 1\",\"option 2\",\"option 3\",\"option 4\",\"option 5\",\"option 6\"},2);\n\t\t\t\tgetContentPane().add(checkBoxes, new AnchorConstraint(437, 931, 631, 580, \n\t\t\t\t\t\tAnchorConstraint.ANCHOR_REL, AnchorConstraint.ANCHOR_REL, \n\t\t\t\t\t\tAnchorConstraint.ANCHOR_REL, AnchorConstraint.ANCHOR_REL));\n\t\t\t\tcheckBoxes.setPreferredSize(new java.awt.Dimension(187, 115));\n\t\t\t\t\n\t\t\t\tcheckBoxes.addButton(new JCheckBox(\"added\"));\t//add another checkbox\n\t\t\t\t\n\t\t\t}\n\t\t\t{\n\t\t\t\t/* New Help button pointing to the ExampleDialog Page on the wiki*/\n\t\t\t\thelpButton = new HelpButton(\"pmwiki.php?n=Main.ExampleDialog\");\n\t\t\t\tgetContentPane().add(helpButton, new AnchorConstraint(940, 77, 980, 23, \n\t\t\t\t\t\tAnchorConstraint.ANCHOR_NONE, AnchorConstraint.ANCHOR_NONE, \n\t\t\t\t\t\tAnchorConstraint.ANCHOR_REL, AnchorConstraint.ANCHOR_REL));\n\t\t\t\thelpButton.setPreferredSize(new java.awt.Dimension(32, 32));\n\t\t\t}\n\t\t\t{\n\t\t\t\t/* Adds Okay, Cancel and Run buttons. Sets this class to listen for button pushes*/\n\t\t\t\tokayCancelPanel = new OkayCancelPanel(true, true, this);\n\t\t\t\tgetContentPane().add(okayCancelPanel, new AnchorConstraint(926, 978, 980, 402, \n\t\t\t\t\t\tAnchorConstraint.ANCHOR_NONE, AnchorConstraint.ANCHOR_REL, \n\t\t\t\t\t\tAnchorConstraint.ANCHOR_REL, AnchorConstraint.ANCHOR_NONE));\n\t\t\t\tokayCancelPanel.setPreferredSize(new java.awt.Dimension(307, 32));\n\t\t\t}\n\t\t\t{\n\t\t\t\t/* New Variable Selector */\n\t\t\t\tvariableSelector = new VariableSelectorWidget();\n\t\t\t\tgetContentPane().add(variableSelector, new AnchorConstraint(12, 428, 660, 12, \n\t\t\t\t\t\tAnchorConstraint.ANCHOR_ABS, AnchorConstraint.ANCHOR_REL, \n\t\t\t\t\t\tAnchorConstraint.ANCHOR_REL, AnchorConstraint.ANCHOR_ABS));\n\t\t\t\tvariableSelector.setPreferredSize(new java.awt.Dimension(216, 379));\n\t\t\t\tvariableSelector.setTitle(\"VariableSelectorWidget.java\");\n\t\t\t}\n\t\t\t{\n\t\t\t\t/* Creates a variable list and links it to the variable selector \n\t\t\t\t * Note: must be created after VariableSelector */\n\t\t\t\tvariableList = new VariableListWidget(\"VariableListWidget.java\",variableSelector);\n\t\t\t\tgetContentPane().add(variableList, new AnchorConstraint(21, 978, 301, 460, \n\t\t\t\t\t\tAnchorConstraint.ANCHOR_REL, AnchorConstraint.ANCHOR_REL, \n\t\t\t\t\t\tAnchorConstraint.ANCHOR_REL, AnchorConstraint.ANCHOR_REL));\n\t\t\t\tvariableList.setPreferredSize(new java.awt.Dimension(276, 166));\n\t\t\t}\n\t\t\t{\n\t\t\t\t/* Creates a variable list limited to one item and links it to the variable selector \n\t\t\t\t* Note: must be created after VariableSelector */\n\t\t\t\tsingleVariableSelector = new SingleVariableWidget(\"SingleVariableWidget.java\",variableSelector);\n\t\t\t\tgetContentPane().add(singleVariableSelector, new AnchorConstraint(321, 978, 427, 460, \n\t\t\t\t\t\tAnchorConstraint.ANCHOR_REL, AnchorConstraint.ANCHOR_REL, \n\t\t\t\t\t\tAnchorConstraint.ANCHOR_REL, AnchorConstraint.ANCHOR_REL));\n\t\t\t\tsingleVariableSelector.setPreferredSize(new java.awt.Dimension(276, 63));\n\t\t\t}\n\t\t\t\n\t\t\t/* Adds Deducer widgets to collection*/\n\t\t\twidgets.add(variableSelector);\n\t\t\twidgets.add(variableList);\n\t\t\twidgets.add(singleVariableSelector);\n\t\t\twidgets.add(checkBoxes);\n\t\t\twidgets.add(radioButtons);\n\t\t\twidgets.add(comboBox);\n\t\t\twidgets.add(textArea);\n\t\t\twidgets.add(slider);\n\t\t\t\n\t\t\t\n\t\t\treset();\t\t\t//Sets widgets to defaults\n\t\t\t\n\t\t\t\n\t\t\tthis.setSize(553, 645);\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "title": "" }, { "docid": "22974cb593ef3c8c9c64f3521c3cca69", "score": "0.600979", "text": "private void init() {\r\n\r\n\t\t// EventsListener eintragen\r\n\t\tview.registerEventListener(this);\r\n\t}", "title": "" }, { "docid": "32a379071ac44311376e3e96ac4d3f3c", "score": "0.60097855", "text": "@Override\r\n\tpublic void init() {\n\t\ttbdanhsachbaobu = (LinearLayout) findViewById(R.id.danhsachBaobu);\r\n\t\tbtbaou=(Button)findViewById(R.id.btdkBu);\r\n\t\tbtbaou.setPadding(2, 2, 2, 2);\r\n\t\tbtbaou.setTextColor(Color.WHITE);\r\n\t}", "title": "" }, { "docid": "fadec82488d1f09235309fae57f9c040", "score": "0.6000864", "text": "protected void onInit() {}", "title": "" }, { "docid": "b432ccc2323f50f7a7384f1a623276c7", "score": "0.6000709", "text": "public void initWidget(){ \n\t\tvideoPanels = new JPanel();\n\t\tvideoPanels.setLayout(new GridLayout(0, 1));\n\t\tadd(videoPanels, BorderLayout.CENTER);\n\t\tvideoPanels.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));\n\t}", "title": "" }, { "docid": "f776ff261782bd824baf8f092199b48b", "score": "0.60005903", "text": "@Override\r\n public void widgetDefaultSelected(SelectionEvent e) {\n\r\n }", "title": "" }, { "docid": "f776ff261782bd824baf8f092199b48b", "score": "0.60005903", "text": "@Override\r\n public void widgetDefaultSelected(SelectionEvent e) {\n\r\n }", "title": "" }, { "docid": "f776ff261782bd824baf8f092199b48b", "score": "0.60005903", "text": "@Override\r\n public void widgetDefaultSelected(SelectionEvent e) {\n\r\n }", "title": "" }, { "docid": "804ad194ec06a4c2ac69bd5e39bf00b0", "score": "0.5994752", "text": "public void init(){\n\t\tthis.add(getFinalPanel());\n\t}", "title": "" }, { "docid": "cb8dfee210e36c826f628df33d18c902", "score": "0.59924656", "text": "@Override\r\n\tpublic void onContentReady(TJPlacement arg0) {\n\r\n\t}", "title": "" }, { "docid": "b14a18eb21abce21a17305b57228ec2b", "score": "0.59897006", "text": "@Override\n public void initGui() {\n super.initGui();\n }", "title": "" }, { "docid": "9e2345957b7b2becfab2c910b9ec8a21", "score": "0.59873515", "text": "private void init(){\n if(performanceSimulationPresenter == null || view == null) return;\n checkComboBox = new CheckComboBox<>(performanceSimulationPresenter.getTasks());\n checkComboBox.setPrefWidth(300);\n checkComboBox.setMaxWidth(300);\n view.getListContainer().getChildren().add(checkComboBox);\n showStatus(\"\",false);\n }", "title": "" }, { "docid": "916f9bc9a478633c4122313460de5fdf", "score": "0.5985657", "text": "private void setupWidgets() {\n\t\tmLogTextView = (TextView) findViewById(R.id.log);\n\n\t\tmBuyButton = (Button) findViewById(R.id.buy_button);\n\t\tmBuyButton.setEnabled(false);\n\t\tmBuyButton.setOnClickListener(this);\n\n\t\tmOkButton = (Button) findViewById(R.id.storeFrontOKButton);\n\t\tmOkButton.setEnabled(false);\n\t\tmOkButton.setOnClickListener(this);\n\n\t\tmCancelButton = (Button) findViewById(R.id.storeFrontCancelButton);\n\t\tmCancelButton.setEnabled(true);\n\t\tmCancelButton.setOnClickListener(this);\n\n\t\tmSelectItemSpinner = (Spinner) findViewById(R.id.item_choices);\n\t\tmCatalogAdapter = new CatalogAdapter(this, CATALOG);\n\t\tmSelectItemSpinner.setAdapter(mCatalogAdapter);\n\t\tmSelectItemSpinner.setOnItemSelectedListener(this);\n\n\t\tmOwnedItemsCursor = mPurchaseDatabase.queryAllPurchasedItems();\n\t\tstartManagingCursor(mOwnedItemsCursor);\n\t\tString[] from = new String[] { PurchaseDatabase.PURCHASED_PRODUCT_ID_COL,\n\t\t\tPurchaseDatabase.PURCHASED_QUANTITY_COL };\n\t\tint[] to = new int[] { R.id.item_name, R.id.item_quantity };\n\t\tmOwnedItemsAdapter = new SimpleCursorAdapter(this, R.layout.item_row,\n\t\t\tmOwnedItemsCursor, from, to);\n\t\tmOwnedItemsTable = (ListView) findViewById(R.id.owned_items);\n\t\tmOwnedItemsTable.setAdapter(mOwnedItemsAdapter);\n\t}", "title": "" }, { "docid": "5d3835803332cd213e59c68d009cb5eb", "score": "0.5980591", "text": "@Override\n protected void initViewsAndEvents() {\n model = new ComplaintModel();\n model.setPresenter(this);\n\n Spinner spDomain = findViewById(R.id.sp_domain);\n spDomain.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() {\n @Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n if (position != 0)\n onDomainSpinnerClicked(position);\n }\n\n @Override\n public void onNothingSelected(AdapterView<?> parent) {\n\n }\n });\n\n Button registrationButton = findViewById(R.id.btn_register_button);\n\n registrationButton.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n registerComplaint();\n }\n });\n\n\n }", "title": "" }, { "docid": "9ffacab08abd96bc5428e8267d87b658", "score": "0.59804404", "text": "@Override protected void startup() {\n \n \n \n \n show(new KajonaLanguageEditorGuiView(this));\n \n }", "title": "" }, { "docid": "4ae86fc38c027fae69df6df01faa2705", "score": "0.5976965", "text": "public void InitUI() {\n setBackgroundResource(R.drawable.can_dzjcms_bg);\n this.mDrvieProfile = new CustomImgView[3];\n this.mProfile = new TextView[3];\n this.mSeatDriveProfile = new CanDataInfo.GolfSeatDriveProfile();\n initEcoItems();\n }", "title": "" }, { "docid": "31773bad6d3d2984217f075bc28bc56d", "score": "0.5975936", "text": "@Override\n\t\t\tpublic void widgetDefaultSelected(SelectionEvent e) {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "573e0534ef66a9b81cd52660f505627b", "score": "0.59745425", "text": "@PostConstruct\n private void init() {\n visible = true;\n size = settings.getOptionInteger(\"guiIconSize\", 32);\n initModeSwitcher();\n initInfoLabel();\n initBottomBox();\n }", "title": "" }, { "docid": "54ecb72111832c10f6925f02357db0fb", "score": "0.59736377", "text": "public void start_init() {\r\n\t\tthis.start_btn.setIcon(new ImageIcon(GUI.class.getResource(\"/Test/start_icon.png\")));\r\n\t\tthis.start_btn.setFocusPainted(false);\r\n\t\tthis.start_btn.setContentAreaFilled(false);\r\n\t\tthis.start_btn.setBorderPainted(false);\r\n\t\tthis.start_btn.setBounds(303, 667, 144, 110);\r\n\t\tthis.start_btn.addMouseListener(new MouseAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void mouseClicked(MouseEvent e) {\r\n\t\t\t\tinit_panel.setVisible(false);\r\n\t\t\t\t((Test_Content) t).clear();\r\n\r\n\t\t\t\t((Test_Content) t).set_init_panel(init_panel);\r\n\t\t\t\t((Test_Content) t).panel1_init(main_ch);\r\n\t\t\t\t((Test_Content) t).next_init(main_ch);\r\n\r\n\t\t\t\t((Test_Content) t).panel2_init(main_ch);\r\n\t\t\t\t((Test_Content) t).submit_init(main_ch);\r\n\t\t\t\tt.setVisible(true);\r\n\r\n\t\t\t\tbs_elem.get_ts().setTestcontent((Test_Content) t);\r\n\t\t\t\tbs_elem.get_ts().setTlimit(120);\r\n\t\t\t\tbs_elem.get_ts().getTt().setVisible(true);\r\n\t\t\t\tbs_elem.ti = new Thread(bs_elem.get_ts());\r\n\t\t\t\tbs_elem.ti.start();\r\n\t\t\t}\r\n\t\t});\r\n\t}", "title": "" }, { "docid": "a91226de4edf3cf91a7664b9e4481e43", "score": "0.5972655", "text": "private void initializeUIelements() {\n }", "title": "" }, { "docid": "ef56bd1f062aaf38e33422e5673530ea", "score": "0.5962993", "text": "public void prepare()\n {\n StartButton start = new StartButton();\n addObject(start, 600, 600);\n Title title = new Title();\n addObject(title, 600, 275);\n }", "title": "" }, { "docid": "997c83bf44132559ebd6b3fb6bc7c623", "score": "0.5960138", "text": "public void init() {\t\t\n\t\t\t\t\n\t\tsetLayout(new GridLayout(1,1,0,0));\t\t\n\t\tscreen = new Screen(this);\t\t\n\t\tend.setBackground(Color.WHITE);\n\t\tscreen.add(end);\n\t\tend.addActionListener(this);\t\n\t\tadd(screen);\n\t\t\n\t\tsetVisible(true);\n\t}", "title": "" }, { "docid": "876e0d1888a5a258f35a728f060e1a47", "score": "0.5956575", "text": "public void initGui()\n \t{\n \t\tthis.buttonList.clear();\n \t\tthis.buttonList.add(new GuiButton(0, this.width / 2 - 100, this.height / 4 + 24 + b0, \"Overworld\"));\n \t\tthis.buttonList.add(new GuiButton(1, this.width / 2 - 100, this.height / 4 + 44 + b0, \"Moon\"));\n \t\tthis.buttonList.add(new GuiButton(2, this.width / 2 - 100, this.height / 4 + 64 + b0, \"Mars\"));\n \t\tthis.screenTitle = \"Select a planet\";\n \t}", "title": "" }, { "docid": "c53293dc7358e487c590de40f6690d8d", "score": "0.59489155", "text": "public void onStart() {\n \t\tview.setSuggestBoxLabel(org.palaso.languageforge.client.lex.common.Constants.getFirstWordAbbreviation());\n \t\teventBus.setNavStatus(0, 0, 0);\n \t}", "title": "" }, { "docid": "75428a7927175790f550d7b305e333cc", "score": "0.59466356", "text": "@Override\r\n\tpublic void initialize() {\n\t\tif (App.getControls().getTool() != 10) {\r\n\t\t\tApp.getCurrentTab().getCanvas().setOnMousePressed(pressedHandler);\r\n\t\t\tApp.getCurrentTab().getCanvas().setOnMouseReleased(releasedHandler);\r\n\t\t\tApp.getCurrentTab().getCanvas().setOnMouseDragged(draggedHandler);\r\n\t\t\tApp.getControls().setTool(10);\r\n\t\t\tApp.getControls().setToolName(\"Polygon\");\r\n\t\t} else {\r\n\t\t\tApp.getCurrentTab().getCanvas().setOnMousePressed(null);\r\n\t\t\tApp.getCurrentTab().getCanvas().setOnMouseReleased(null);\r\n\t\t\tApp.getCurrentTab().getCanvas().setOnMouseDragged(null);\r\n\t\t\tApp.getControls().setTool(0);\r\n\t\t\tApp.getControls().setToolName(\"None\");\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "1bb7d848c237cf10062cb96a210d4029", "score": "0.5946519", "text": "protected void onInit() {\r\n\t}", "title": "" }, { "docid": "fb27bbb76f8f2f2871ac69ba986297bb", "score": "0.5944846", "text": "@Override\n\tpublic void initView() {\n\n\t}", "title": "" }, { "docid": "ba487ead632e81deded7fa4f08f28fcd", "score": "0.5940985", "text": "@Override\n\tprotected void init() {\n\t\tgoToService = tool.getService(GoToService.class);\n\t\tprovider.setGoToService(goToService);\n\t\tmarkerService = tool.getService(MarkerService.class);\n\n\t\ttool.addPopupActionProvider(this);\n\n\t\tnavUpdater = new NavUpdater();\n\t\trepaintMgr = new SwingUpdateManager(500, () -> provider.repaint());\n\n\t}", "title": "" }, { "docid": "ac907f47d55ceb25bbd542469a9ddfba", "score": "0.5939776", "text": "@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tcreateItem();\n\t\t\t\t// then exit the view yourself\n\n\t\t\t}", "title": "" }, { "docid": "546e618ed51daf530d25675bddfdf4f7", "score": "0.5938421", "text": "private void initDesigner(){\n//\t\tdockPanel = new DockPanel();\n//\n//\t\tVerticalPanel panel = new VerticalPanel();\n//\n////\t\tpanel.add(new FileToolbar(centerWidget));\n//\t\tpanel.add(centerWidget);\n//\t\t\n//\t\tpanel.setWidth(\"100%\");\n//\n//\t\tdockPanel.add(panel, DockPanel.CENTER);\n//\n//\t\tFormUtil.maximizeWidget(dockPanel);\n//\n//\t\tinitWidget(dockPanel);\n\t\tcenterWidget = new CenterWidget();\n\t\tcenterWidget.setWidth(\"100%\");\n\t\tFormUtil.maximizeWidget(centerWidget);\n\t\tinitWidget(centerWidget);\n\t\t\n\n\t\tDOM.sinkEvents(getElement(),DOM.getEventsSunk(getElement()) | Event.MOUSEEVENTS);\n\t\t\n\t\t\n\t\t//Check to see if a token was included in the URL and load the form\n\t\t//if so.\n\n//\t\tString xml=getFirstName();\n\t\n//\tWindow.alert(xml);\n\t\t\n\t\t\n\t\t\n\t}", "title": "" }, { "docid": "c55d21b5485cdffae9047520874c8622", "score": "0.5935677", "text": "public void init() {\n \tinstance = this;\n \tcreateGUI(this);\n }", "title": "" }, { "docid": "e3668dd160bd304de0023befed1dcf1f", "score": "0.59342206", "text": "@Override\n public void widgetDefaultSelected(SelectionEvent e) {\n }", "title": "" }, { "docid": "d5b2a7528cdb02bd09393e0ada9134f7", "score": "0.5933709", "text": "@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.main);\n \n initControls();\n }", "title": "" }, { "docid": "8453180fb0da45e1368503baa8733adc", "score": "0.5931272", "text": "private void initwidget() {\n\t\tmgv=(GridView) findViewById(R.id.allapp_gv);\r\n\t\tmgv.setOnItemClickListener(mGvClick);\r\n\t\t\r\n\t}", "title": "" }, { "docid": "f8064e26891905d85a2321c1f1fab113", "score": "0.59259045", "text": "public void initGui()\n {\n Keyboard.enableRepeatEvents(true);\n this.buttonList.clear();\n this.field_130059_b = new GuiScreenPendingInvitationList(this);\n (new GuiScreenPendingInvitationINNER1(this)).start();\n this.func_130050_g();\n }", "title": "" }, { "docid": "dee50a7ac32123e92753fd4b5d557444", "score": "0.5923136", "text": "private void init() {\n\t\tnaviBar = findViewById(R.id.navi_bar);\n\t\tlogView = (EditText) findViewById(R.id.logview);\n\t\tclose = (Button) findViewById(R.id.close_button);\n\t\tinitBase(logView);\n\t\tNavigationBarUtils.initNavigationBar(this, naviBar, true, ScreenContents.class, false, ScreenUseBrider.class,\n\t\t\t\tfalse, ScreenContents.class);\n\t\tclose.setOnClickListener(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\tScreenUseBrider.this.finish();\n\t\t\t}\n\t\t});\n\t}", "title": "" }, { "docid": "32909364ccfb73f26f0ead38993e11df", "score": "0.5920777", "text": "public MainUI() {\r\n\t\tinitComponents();\r\n\t}", "title": "" }, { "docid": "82b1d309e6fd78649724a57ab2711ac7", "score": "0.59154725", "text": "public void onAttachedToWindow() {\n super.onAttachedToWindow();\n this.mFirstLayout = true;\n }", "title": "" }, { "docid": "b9e7e864af8154cfd13d5ccef951d3fe", "score": "0.5914208", "text": "@Override\n protected void init() {\n super.init();\n addChangeListener(new ChangeListener() {\n @Override\n public void handleStateChanged(ChangeEvent changeEvent) {\n if (changeEvent.getPropertyName().equals(\n ButtonModel.SELECTED_PROPERTY))\n handleSelectionChanged();\n }\n });\n }", "title": "" }, { "docid": "2cb60e5502cc764de213a87c3dce5363", "score": "0.5912499", "text": "@Override\n\t\t\t\tpublic void widgetDefaultSelected(SelectionEvent e) {\n\t\t\t\t\t\n\t\t\t\t}", "title": "" }, { "docid": "f0aac424d9ac84ae001e47e789441dca", "score": "0.59120136", "text": "protected void initGUI(Composite parent)\n {\n \t// Do nothing for now.\n }", "title": "" }, { "docid": "f210b747cf48a4c7863f5489cbee0e57", "score": "0.59097576", "text": "public void InitUI() {\n this.mManager = new CanScrollList(this);\n for (int i = 1; i <= 3; i++) {\n InitItem(i);\n }\n }", "title": "" }, { "docid": "01db9e0b19b8c13036b18baf9851d3c5", "score": "0.5909459", "text": "private void nodeInitiation(){\n parent.setBackground(Background.EMPTY);\n builder = new NodeBuilder();\n //tooltip\n closeTooltip = \"Exit setting\";\n }", "title": "" }, { "docid": "8782f327ff65e31a72aa78da7414b164", "score": "0.59093064", "text": "@Override\n\tprotected void init() {\n\t\tthis.module= Toolsmod.getInstance().getModuleManager().getModuleByClass(ModuleMapcreator.class).get();\n\t\t\n\t\t//Adds the rendering text\n\t\tthis.addWidgetWithListener(this.renderInfo, (x,y)->new float[] {\n\t\t\tthis.width/2+25,\n\t\t\tthis.height/2\n\t\t});\n\t\tthis.renderInfo.setText(this.module.getRendering().getName());\n\t\t\n\t\t//Adds the rendering-info text\n\t\tthis.addWidgetWithListener(new TmTextWidget(0, 0, \"\", 0xFFffffff)\n\t\t\t\t.setTextByKey(\"modules.mapcreator.gui.render.info\"), (x,y)->new float[] {\n\t\t\tthis.width/2+25,\n\t\t\tthis.height/2-20\n\t\t});\n\t\t\n\t\t//Adds the switch buttons\n\t\tthis.addWidgetWithListener(new TmUpdateButton(0, 0, 0, 0, btn->{\n\t\t\tif(btn!=null)\n\t\t\t\tthis.renderInfo.setText(\n\t\t\t\t\tthis.module.switchRendering(true).getName()\n\t\t\t\t);\n\t\t\treturn \"<\";\n\t\t}),(x,y)->new float[] {\n\t\t\t\tthis.width/2-25,\n\t\t\t\tthis.height/2-5,\n\t\t\t\t12,\n\t\t\t\t20\n\t\t});\n\t\t//Adds the switch buttons\n\t\tthis.addWidgetWithListener(new TmUpdateButton(0, 0, 0, 0, btn->{\n\t\t\tif(btn!=null)\n\t\t\t\tthis.renderInfo.setText(\n\t\t\t\t\tthis.module.switchRendering(false).getName()\n\t\t\t\t);\n\t\t\treturn \">\";\n\t\t}),(x,y)->new float[] {\n\t\t\t\tthis.width/2+65,\n\t\t\t\tthis.height/2-5,\n\t\t\t\t12,\n\t\t\t\t20\n\t\t});\n\t}", "title": "" }, { "docid": "bd4a8898d06dba7300db57ea961133a4", "score": "0.5908097", "text": "@Override\n\t\t\tpublic void widgetDefaultSelected(SelectionEvent arg0) {\n\t\t\t\t\n\t\t\t}", "title": "" } ]
3bfd494649f911ed6eacea06a19847c3
s.s("Inside removeOutport hook 1");
[ { "docid": "921d5b9a8e555c0073c6f457f13ec4e0", "score": "0.65804523", "text": "public void removeOutportHook1(String modelName, String port) {\n s.s(\"Inport removed: \" + port + \" component: \" + modelName);\n }", "title": "" } ]
[ { "docid": "b095dae1a1744b12884fb17c48e928b0", "score": "0.6302881", "text": "public void removeInportHook1(String modelName, String port) {\n s.s(\"Inport removed: \" + port + \" component: \" + modelName);\n }", "title": "" }, { "docid": "a92ef4f07b07ea7007bb9f92475a6a97", "score": "0.59011275", "text": "private void UDPM() {\n\n\t}", "title": "" }, { "docid": "b112cde49b7b4ef5b8821f1396c7c7fa", "score": "0.5893863", "text": "default void portRemoved(Port port) {\n // do nothing by default\n }", "title": "" }, { "docid": "5ad5ce604edf1bab014b7fe32ff4a5a9", "score": "0.5745442", "text": "public void addOutportHook1(String modelName, String port) {\n s.s(\"Outport added: \" + port + \" component: \" + modelName);\n }", "title": "" }, { "docid": "a249638c43b52bca8a293bbb3a68aab9", "score": "0.57249993", "text": "void onReceiverUnBind();", "title": "" }, { "docid": "36d586581f4c95ec73745adb544487b6", "score": "0.5711058", "text": "void hook() {\n\t\t\r\n\t}", "title": "" }, { "docid": "3a7309e8ce664ddd142f5c1f04c4eef5", "score": "0.5638819", "text": "public void messageProcessorRemoved(DelegateBrick b, MessageProcessor mp);", "title": "" }, { "docid": "8b1509b5072ebb54c3ad4c50c8185fe2", "score": "0.56254655", "text": "void removeHandler( SampXmlRpcHandler handler );", "title": "" }, { "docid": "0dde29f620928c3beaebdc8ef4276bcf", "score": "0.5616247", "text": "public void shutdown() {\n/* 301 */ this.shutdown = true;\n/* */ }", "title": "" }, { "docid": "1afda5a804b4d2aa8967dde409f482ba", "score": "0.5541512", "text": "void off();", "title": "" }, { "docid": "9afa111e108b20c80bd98f64f13e1f37", "score": "0.55318165", "text": "public void postDeregister()\n {\n }", "title": "" }, { "docid": "7bf059dcfba668b4553f39a717d7fc1d", "score": "0.55213624", "text": "void unregisterForT53ClirInfo(Handler h);", "title": "" }, { "docid": "f8bf1481d32f1da88590ff51a880bd55", "score": "0.54914564", "text": "void unsetRspStmt();", "title": "" }, { "docid": "0e46eb2b3460b0ea6abde6ddea927415", "score": "0.5483649", "text": "@Override\n\tpublic void off() {\n\n\t}", "title": "" }, { "docid": "d58757a32aebbc35ce10520e32fe89f6", "score": "0.5472037", "text": "@Override\n\tpublic void removeListener(InvokerCallbackHandler arg0) {\n\t\t\n\t}", "title": "" }, { "docid": "8137418a4a1ab06f9e1bed2f784e36d0", "score": "0.54700124", "text": "@Override public void shutdown() throws android.os.RemoteException\n{\nandroid.os.Parcel _data = android.os.Parcel.obtain();\nandroid.os.Parcel _reply = android.os.Parcel.obtain();\ntry {\n_data.writeInterfaceToken(DESCRIPTOR);\nmRemote.transact(Stub.TRANSACTION_shutdown, _data, _reply, 0);\n_reply.readException();\n}\nfinally {\n_reply.recycle();\n_data.recycle();\n}\n}", "title": "" }, { "docid": "ac45e657160927b5ab08a8b4ae01e46b", "score": "0.5467809", "text": "public void lifecycleProcessorRemoved(DelegateBrick b, LifecycleProcessor lp);", "title": "" }, { "docid": "7023ad1ad5cac96f160c8f8baa1312c4", "score": "0.5448874", "text": "RemoveSourceServerActionResult removeSourceServerAction(RemoveSourceServerActionRequest removeSourceServerActionRequest);", "title": "" }, { "docid": "c0f0546017101b239711c4804aec80d0", "score": "0.54322624", "text": "@Override public void off() {\n\n }", "title": "" }, { "docid": "ad05238d224b111d8020a6183b383ad2", "score": "0.54180014", "text": "void didUnregister();", "title": "" }, { "docid": "2e838bc894d4dc32eeae9f648a022c69", "score": "0.5406341", "text": "int removeMessageListener(Plugin plugin);", "title": "" }, { "docid": "d4d99533902e04ea9921b4fdf053dcd1", "score": "0.54029727", "text": "public void postDeregister() {\n \t\t;\r\n \t}", "title": "" }, { "docid": "097a8e27f506402a13a289ddbb01bf03", "score": "0.5356312", "text": "void putOutOfService();", "title": "" }, { "docid": "8743e71eb5a8f206a77fefb33356fc7e", "score": "0.5347559", "text": "@Override\n public void onServiceUnregistered(NsdServiceInfo arg0) {\n Log.d(TAG, \"Unregistered \" + arg0);\n }", "title": "" }, { "docid": "c6596ddd02af463b67a0dc3e72c0a413", "score": "0.5342804", "text": "@Override\r\n\tpublic void callStateOffhook() {\n\t\t\r\n\t}", "title": "" }, { "docid": "5b33ecb969fb82920151315445197d7a", "score": "0.53186333", "text": "void onUnBind();", "title": "" }, { "docid": "f851c7270fe16a9c5904ce21bc9a9aa6", "score": "0.53102887", "text": "private void shutdown(SmEvent event) {\r\n\t\tif (SMDEBUG)\r\n\t\t\tSystem.out.println(\"shutdown \" + \"( ... )\");\r\n\t\t/* PROTECTED REGION ID(action.shutdown_14_0_6340215_1225039245609_959527_370) ENABLED START */\r\n\t\t\r\n\t\t/* PROTECTED REGION END */\r\n\t}", "title": "" }, { "docid": "0f19142ec837494806953a828e5574be", "score": "0.53051466", "text": "public boolean messageOnPort(message x,String p, int i){\nreturn x.onPort(p,i);\r\n}", "title": "" }, { "docid": "67652ec65521dad8ca23e1dccd1cbd34", "score": "0.5294734", "text": "cn.ac.iscas.sensorcollector.SenserServiceProto.UnregisterListener getUnRegListener();", "title": "" }, { "docid": "726fc4319f97654a45538ed49d9fd139", "score": "0.5274735", "text": "void onServiceUnregistered();", "title": "" }, { "docid": "9e50740930480605e75d1b0d224fccd5", "score": "0.52713054", "text": "@Override\n \tpublic void unregister() {\n \n \t}", "title": "" }, { "docid": "29dfbdf2e2add1278b40118b2b721c4e", "score": "0.52639", "text": "@Override\n\tpublic void tookoff() {\n\t\t\n\t}", "title": "" }, { "docid": "12b0737e10c653499f25494734c0c5cc", "score": "0.524646", "text": "void unregisterForCdmaOtaStatusChange(Handler h);", "title": "" }, { "docid": "839d8e679935eb299e8f12cffd867204", "score": "0.52202994", "text": "@Override\n\tpublic void onNetWorkOff() {\n\n\t}", "title": "" }, { "docid": "edd28f574a1cb7cfe419de3c0aa53ac7", "score": "0.5197766", "text": "@Override\n public void onServiceUnregistered(NsdServiceInfo arg0) {\n }", "title": "" }, { "docid": "e7c2f6fbcac37a860176dccbbca23fcc", "score": "0.5193286", "text": "void mo43352g() throws RemoteException;", "title": "" }, { "docid": "c8317b1418ac6abdf5deafce85bd1fb6", "score": "0.5184549", "text": "@Override\n public void onDeviceUnplugged(String msg) {\n\n }", "title": "" }, { "docid": "9beaffce79f86dff27a025669e83d587", "score": "0.51806384", "text": "void unPlug(Consumer consumer);", "title": "" }, { "docid": "c16b7fc7b9a6852db35908dc07b2149c", "score": "0.514061", "text": "void removeEventHandler(SmartSpacesMasterApiMessageHandler handler);", "title": "" }, { "docid": "f1e770777367d38b4e289a463aa9e931", "score": "0.5134897", "text": "@Override\n\tpublic void stopPump() {\n\n\t}", "title": "" }, { "docid": "f5c0f3a02f53e845e3367f779ad7cf0f", "score": "0.51258564", "text": "@Override\n public void onServiceUnregistered(NsdServiceInfo arg0) {\n mView.updateInfo(\"onServiceUnregistered:\" + arg0);\n }", "title": "" }, { "docid": "ef3d10098a38e5fbfebcceb7d553aae0", "score": "0.51251435", "text": "public void unhook() {\n\t\tthis.pm.unhook();\n\t}", "title": "" }, { "docid": "afab055d25667dc3321471720b31cc09", "score": "0.51059616", "text": "public interface IDownloaderProcessConnectedListener {\n /* renamed from: a */\n void mo31745a();\n}", "title": "" }, { "docid": "718c1318a55ab9cfeeebc1329089a2f9", "score": "0.5103337", "text": "@Override\n\tprotected void logoutEventAction(ChatPDU receivedPdu) {\n\t}", "title": "" }, { "docid": "9edbe946925701841e1d57675124d9b7", "score": "0.51005965", "text": "public void testUnregisterWithMasterServer() {\n }", "title": "" }, { "docid": "49f486d5b5cf1c7b10756435d65c0a7d", "score": "0.5092825", "text": "@Override\nprotected void osSpecificPortComponentFiles(PortFeature pf, PortEmitter pe, File componentDirectory) {\n\t\n}", "title": "" }, { "docid": "0c59772ac9d00570511e39b83da69274", "score": "0.5083457", "text": "private static void logOut() {\n\t\tprotocol.logOut();\n\t}", "title": "" }, { "docid": "5859f936e0966ac573a022ff70afdd7d", "score": "0.50787663", "text": "public static String _service_destroy() throws Exception{\nreturn \"\";\n}", "title": "" }, { "docid": "5859f936e0966ac573a022ff70afdd7d", "score": "0.50787663", "text": "public static String _service_destroy() throws Exception{\nreturn \"\";\n}", "title": "" }, { "docid": "913e3fc51d69ee0de81fbf9acbe43f9d", "score": "0.50781447", "text": "void onStopSending();", "title": "" }, { "docid": "44f044024c3c49a389e5a1509c38bcad", "score": "0.5068397", "text": "@Override\n\tpublic void deposite() {\n\t\t\n\t}", "title": "" }, { "docid": "f6f8329924d9ea7c0c6e21cb6cef8cdc", "score": "0.5066965", "text": "SystemPortOut createSystemPortOut();", "title": "" }, { "docid": "3825a610821f98eee496dbcbd6620acd", "score": "0.50651693", "text": "@Override\n protected void preExitToNetwork( )\n {\n }", "title": "" }, { "docid": "b287811ccea70d42b66fd4058e520193", "score": "0.5055522", "text": "void mo30215b();", "title": "" }, { "docid": "22bb26377d9a1dabea33aba3b5f86b50", "score": "0.5050357", "text": "void purgeSportEventStatus(URN id);", "title": "" }, { "docid": "b11fe365abe49a81c81f1350fa7bbb55", "score": "0.5047718", "text": "@Override\n public void onServiceUnregistered(NsdServiceInfo serviceInfo) {\n }", "title": "" }, { "docid": "68017ed8e4726a30bc975ac2a7544836", "score": "0.5041159", "text": "void unregisterForCallWaiting(Handler h);", "title": "" }, { "docid": "80efd092eb05a85ee4fca0d822002fd1", "score": "0.5040723", "text": "void pr( String out ) {\r\n outChannel.info( out );\r\n }", "title": "" }, { "docid": "8d1ae08a8fba9ebfaebbcd609acf80d3", "score": "0.5031078", "text": "public void startremoveWebcastPIN(\r\n\r\n com.vccloud.portal.webservice.VidyoPortalUserService.VidyoPortalUserServiceStub.RemoveWebcastPINRequest removeWebcastPINRequest26,\r\n\r\n final com.vccloud.portal.webservice.VidyoPortalUserService.VidyoPortalUserServiceCallbackHandler callback)\r\n\r\n throws java.rmi.RemoteException{\r\n\r\n org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[13].getName());\r\n _operationClient.getOptions().setAction(\"removeWebcastPIN\");\r\n _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);\r\n\r\n \r\n \r\n addPropertyToOperationClient(_operationClient,org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,\"&\");\r\n \r\n\r\n\r\n // create SOAP envelope with that payload\r\n org.apache.axiom.soap.SOAPEnvelope env=null;\r\n final org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();\r\n\r\n \r\n //Style is Doc.\r\n \r\n \r\n env = toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()),\r\n removeWebcastPINRequest26,\r\n optimizeContent(new javax.xml.namespace.QName(\"http://portal.vidyo.com/user/v1_1\",\r\n \"removeWebcastPIN\")), new javax.xml.namespace.QName(\"http://portal.vidyo.com/user/v1_1\",\r\n \"removeWebcastPIN\"));\r\n \r\n // adding SOAP soap_headers\r\n _serviceClient.addHeadersToEnvelope(env);\r\n // create message context with that soap envelope\r\n _messageContext.setEnvelope(env);\r\n\r\n // add the message context to the operation client\r\n _operationClient.addMessageContext(_messageContext);\r\n\r\n\r\n \r\n _operationClient.setCallback(new org.apache.axis2.client.async.AxisCallback() {\r\n public void onMessage(org.apache.axis2.context.MessageContext resultContext) {\r\n try {\r\n org.apache.axiom.soap.SOAPEnvelope resultEnv = resultContext.getEnvelope();\r\n \r\n java.lang.Object object = fromOM(resultEnv.getBody().getFirstElement(),\r\n com.vccloud.portal.webservice.VidyoPortalUserService.VidyoPortalUserServiceStub.RemoveWebcastPINResponse.class,\r\n getEnvelopeNamespaces(resultEnv));\r\n callback.receiveResultremoveWebcastPIN(\r\n (com.vccloud.portal.webservice.VidyoPortalUserService.VidyoPortalUserServiceStub.RemoveWebcastPINResponse)object);\r\n \r\n } catch (org.apache.axis2.AxisFault e) {\r\n callback.receiveErrorremoveWebcastPIN(e);\r\n }\r\n }\r\n\r\n public void onError(java.lang.Exception error) {\r\n\t\t\t\t\t\t\t\tif (error instanceof org.apache.axis2.AxisFault) {\r\n\t\t\t\t\t\t\t\t\torg.apache.axis2.AxisFault f = (org.apache.axis2.AxisFault) error;\r\n\t\t\t\t\t\t\t\t\torg.apache.axiom.om.OMElement faultElt = f.getDetail();\r\n\t\t\t\t\t\t\t\t\tif (faultElt!=null){\r\n\t\t\t\t\t\t\t\t\t\tif (faultExceptionNameMap.containsKey(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"removeWebcastPIN\"))){\r\n\t\t\t\t\t\t\t\t\t\t\t//make the fault by reflection\r\n\t\t\t\t\t\t\t\t\t\t\ttry{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.String exceptionClassName = (java.lang.String)faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"removeWebcastPIN\"));\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.reflect.Constructor constructor = exceptionClass.getConstructor(String.class);\r\n java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t//message class\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.String messageClassName = (java.lang.String)faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"removeWebcastPIN\"));\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.Class messageClass = java.lang.Class.forName(messageClassName);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.Object messageObject = fromOM(faultElt,messageClass,null);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.reflect.Method m = exceptionClass.getMethod(\"setFaultMessage\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tnew java.lang.Class[]{messageClass});\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tm.invoke(ex,new java.lang.Object[]{messageObject});\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tif (ex instanceof com.vccloud.portal.webservice.VidyoPortalUserService.NotLicensedFaultException){\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tcallback.receiveErrorremoveWebcastPIN((com.vccloud.portal.webservice.VidyoPortalUserService.NotLicensedFaultException)ex);\r\n\t\t\t\t\t\t\t\t\t\t\t return;\r\n\t\t\t\t\t\t\t\t\t\t }\r\n\t\t\t\t\t\t\t\t\t\t \r\n\t\t\t\t\t\t\t\t\t\t\t\t\tif (ex instanceof com.vccloud.portal.webservice.VidyoPortalUserService.InvalidArgumentFaultException){\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tcallback.receiveErrorremoveWebcastPIN((com.vccloud.portal.webservice.VidyoPortalUserService.InvalidArgumentFaultException)ex);\r\n\t\t\t\t\t\t\t\t\t\t\t return;\r\n\t\t\t\t\t\t\t\t\t\t }\r\n\t\t\t\t\t\t\t\t\t\t \r\n\t\t\t\t\t\t\t\t\t\t\t\t\tif (ex instanceof com.vccloud.portal.webservice.VidyoPortalUserService.GeneralFaultException){\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tcallback.receiveErrorremoveWebcastPIN((com.vccloud.portal.webservice.VidyoPortalUserService.GeneralFaultException)ex);\r\n\t\t\t\t\t\t\t\t\t\t\t return;\r\n\t\t\t\t\t\t\t\t\t\t }\r\n\t\t\t\t\t\t\t\t\t\t \r\n\t\t\t\t\t\t\t\t\t\t\t\t\tif (ex instanceof com.vccloud.portal.webservice.VidyoPortalUserService.SeatLicenseExpiredFaultException){\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tcallback.receiveErrorremoveWebcastPIN((com.vccloud.portal.webservice.VidyoPortalUserService.SeatLicenseExpiredFaultException)ex);\r\n\t\t\t\t\t\t\t\t\t\t\t return;\r\n\t\t\t\t\t\t\t\t\t\t }\r\n\t\t\t\t\t\t\t\t\t\t \r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t callback.receiveErrorremoveWebcastPIN(new java.rmi.RemoteException(ex.getMessage(), ex));\r\n } catch(java.lang.ClassCastException e){\r\n // we cannot intantiate the class - throw the original Axis fault\r\n callback.receiveErrorremoveWebcastPIN(f);\r\n } catch (java.lang.ClassNotFoundException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n callback.receiveErrorremoveWebcastPIN(f);\r\n } catch (java.lang.NoSuchMethodException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n callback.receiveErrorremoveWebcastPIN(f);\r\n } catch (java.lang.reflect.InvocationTargetException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n callback.receiveErrorremoveWebcastPIN(f);\r\n } catch (java.lang.IllegalAccessException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n callback.receiveErrorremoveWebcastPIN(f);\r\n } catch (java.lang.InstantiationException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n callback.receiveErrorremoveWebcastPIN(f);\r\n } catch (org.apache.axis2.AxisFault e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n callback.receiveErrorremoveWebcastPIN(f);\r\n }\r\n\t\t\t\t\t\t\t\t\t } else {\r\n\t\t\t\t\t\t\t\t\t\t callback.receiveErrorremoveWebcastPIN(f);\r\n\t\t\t\t\t\t\t\t\t }\r\n\t\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t callback.receiveErrorremoveWebcastPIN(f);\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t callback.receiveErrorremoveWebcastPIN(error);\r\n\t\t\t\t\t\t\t\t}\r\n }\r\n\r\n public void onFault(org.apache.axis2.context.MessageContext faultContext) {\r\n org.apache.axis2.AxisFault fault = org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(faultContext);\r\n onError(fault);\r\n }\r\n\r\n public void onComplete() {\r\n try {\r\n _messageContext.getTransportOut().getSender().cleanup(_messageContext);\r\n } catch (org.apache.axis2.AxisFault axisFault) {\r\n callback.receiveErrorremoveWebcastPIN(axisFault);\r\n }\r\n }\r\n });\r\n \r\n\r\n org.apache.axis2.util.CallbackReceiver _callbackReceiver = null;\r\n if ( _operations[13].getMessageReceiver()==null && _operationClient.getOptions().isUseSeparateListener()) {\r\n _callbackReceiver = new org.apache.axis2.util.CallbackReceiver();\r\n _operations[13].setMessageReceiver(\r\n _callbackReceiver);\r\n }\r\n\r\n //execute the operation client\r\n _operationClient.execute(false);\r\n\r\n }", "title": "" }, { "docid": "5204c56ddb5c914704a664536b542b68", "score": "0.50309336", "text": "OutPort createOutPort();", "title": "" }, { "docid": "5204c56ddb5c914704a664536b542b68", "score": "0.50309336", "text": "OutPort createOutPort();", "title": "" }, { "docid": "2663ad96d45d50ca60a80cb08f8ed650", "score": "0.50289935", "text": "public native void unbind (String addr);", "title": "" }, { "docid": "b26e3d2518420821a464d9c98c8894be", "score": "0.5026977", "text": "@Override\n public void shutdown()\n {\n log.debug( \"shutdown() called\" );\n }", "title": "" }, { "docid": "6367c2d6f5766d10b08d78881ffaaa27", "score": "0.5026128", "text": "public void unregisterMsgLogger(java.lang.String r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e9 in method: android.os.MessageMonitorLogger.unregisterMsgLogger(java.lang.String):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.os.MessageMonitorLogger.unregisterMsgLogger(java.lang.String):void\");\n }", "title": "" }, { "docid": "dc411abb383e77b025e086da19b2dc59", "score": "0.5025207", "text": "void unregisterForSuppServiceFailed(Handler h);", "title": "" }, { "docid": "9d101a7eb1df6841e36e913b0095e2c2", "score": "0.5024559", "text": "public void mo3163b() {\n }", "title": "" }, { "docid": "c7b212dcdbda44e753d90bafa24d50b3", "score": "0.50243276", "text": "@Override\n public void shutdown() {\n\n }", "title": "" }, { "docid": "2828679cf4b8389c1ea181597e9921fe", "score": "0.5024265", "text": "@Override public void stop() throws android.os.RemoteException\n{\nandroid.os.Parcel _data = android.os.Parcel.obtain();\nandroid.os.Parcel _reply = android.os.Parcel.obtain();\ntry {\n_data.writeInterfaceToken(DESCRIPTOR);\nmRemote.transact(Stub.TRANSACTION_stop, _data, _reply, 0);\n_reply.readException();\n}\nfinally {\n_reply.recycle();\n_data.recycle();\n}\n}", "title": "" }, { "docid": "cf967ad8e11301150acfcfd55760a49d", "score": "0.5022692", "text": "default void portAdded(Port port) {\n // do nothing by default\n }", "title": "" }, { "docid": "fc5e234634ce3d5a4bc50e563425809e", "score": "0.5022412", "text": "void unsetOnEcbModeExitResponse(Handler h);", "title": "" }, { "docid": "eecbb42de94b8141330d07fd66508e4a", "score": "0.50211465", "text": "String getBackendCodeTemplate_servletListenerDestroy();", "title": "" }, { "docid": "be9656575602d14430ca2344f7a8237a", "score": "0.5014129", "text": "@Test\r\n\tpublic void testUnregisterEvent() {\r\n\t\t\t\r\n\t}", "title": "" }, { "docid": "42ea4d7dd9f379398c6428ebf5b266fb", "score": "0.5010938", "text": "@Test\n\tpublic void testUnregisterEvent() {\n\t\t/**\n\t\t * @TODO: Call unregisterEvent method by passing the visitor object which can be\n\t\t * retrieved using searchVisitor method and then asserting the returned type \n\t\t * of unregisterEvent\n\t\t */\t\n\t\tvisitor=visitorServiceImpl.searchVisitor(\"subbu1234\", \"password\");\n\t\tassertNotNull(visitor);\n\t\t\n\t\tvisitorServiceImpl.unregisterEvent(visitor,1004);\n\t\t\n\t\t\n\t}", "title": "" }, { "docid": "c7ac0b1c8820429d012f487104669b94", "score": "0.50068295", "text": "void unregisterForResendIncallMute(Handler h);", "title": "" }, { "docid": "23e72a82d96e2a3b2f75299e2d4efdd9", "score": "0.50020695", "text": "@Override\n\tpublic void eject() {\n\t\t\n\t}", "title": "" }, { "docid": "67f31567cc6ddcbff65322cd5c2885fa", "score": "0.4995717", "text": "public void startremoveModeratorPIN(\r\n\r\n com.vccloud.portal.webservice.VidyoPortalUserService.VidyoPortalUserServiceStub.RemoveModeratorPINRequest removeModeratorPINRequest98,\r\n\r\n final com.vccloud.portal.webservice.VidyoPortalUserService.VidyoPortalUserServiceCallbackHandler callback)\r\n\r\n throws java.rmi.RemoteException{\r\n\r\n org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[49].getName());\r\n _operationClient.getOptions().setAction(\"removeRoomModeratorPIN\");\r\n _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);\r\n\r\n \r\n \r\n addPropertyToOperationClient(_operationClient,org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,\"&\");\r\n \r\n\r\n\r\n // create SOAP envelope with that payload\r\n org.apache.axiom.soap.SOAPEnvelope env=null;\r\n final org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();\r\n\r\n \r\n //Style is Doc.\r\n \r\n \r\n env = toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()),\r\n removeModeratorPINRequest98,\r\n optimizeContent(new javax.xml.namespace.QName(\"http://portal.vidyo.com/user/v1_1\",\r\n \"removeModeratorPIN\")), new javax.xml.namespace.QName(\"http://portal.vidyo.com/user/v1_1\",\r\n \"removeModeratorPIN\"));\r\n \r\n // adding SOAP soap_headers\r\n _serviceClient.addHeadersToEnvelope(env);\r\n // create message context with that soap envelope\r\n _messageContext.setEnvelope(env);\r\n\r\n // add the message context to the operation client\r\n _operationClient.addMessageContext(_messageContext);\r\n\r\n\r\n \r\n _operationClient.setCallback(new org.apache.axis2.client.async.AxisCallback() {\r\n public void onMessage(org.apache.axis2.context.MessageContext resultContext) {\r\n try {\r\n org.apache.axiom.soap.SOAPEnvelope resultEnv = resultContext.getEnvelope();\r\n \r\n java.lang.Object object = fromOM(resultEnv.getBody().getFirstElement(),\r\n com.vccloud.portal.webservice.VidyoPortalUserService.VidyoPortalUserServiceStub.RemoveModeratorPINResponse.class,\r\n getEnvelopeNamespaces(resultEnv));\r\n callback.receiveResultremoveModeratorPIN(\r\n (com.vccloud.portal.webservice.VidyoPortalUserService.VidyoPortalUserServiceStub.RemoveModeratorPINResponse)object);\r\n \r\n } catch (org.apache.axis2.AxisFault e) {\r\n callback.receiveErrorremoveModeratorPIN(e);\r\n }\r\n }\r\n\r\n public void onError(java.lang.Exception error) {\r\n\t\t\t\t\t\t\t\tif (error instanceof org.apache.axis2.AxisFault) {\r\n\t\t\t\t\t\t\t\t\torg.apache.axis2.AxisFault f = (org.apache.axis2.AxisFault) error;\r\n\t\t\t\t\t\t\t\t\torg.apache.axiom.om.OMElement faultElt = f.getDetail();\r\n\t\t\t\t\t\t\t\t\tif (faultElt!=null){\r\n\t\t\t\t\t\t\t\t\t\tif (faultExceptionNameMap.containsKey(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"removeModeratorPIN\"))){\r\n\t\t\t\t\t\t\t\t\t\t\t//make the fault by reflection\r\n\t\t\t\t\t\t\t\t\t\t\ttry{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.String exceptionClassName = (java.lang.String)faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"removeModeratorPIN\"));\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.reflect.Constructor constructor = exceptionClass.getConstructor(String.class);\r\n java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t//message class\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.String messageClassName = (java.lang.String)faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"removeModeratorPIN\"));\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.Class messageClass = java.lang.Class.forName(messageClassName);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.Object messageObject = fromOM(faultElt,messageClass,null);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.reflect.Method m = exceptionClass.getMethod(\"setFaultMessage\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tnew java.lang.Class[]{messageClass});\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tm.invoke(ex,new java.lang.Object[]{messageObject});\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tif (ex instanceof com.vccloud.portal.webservice.VidyoPortalUserService.NotLicensedFaultException){\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tcallback.receiveErrorremoveModeratorPIN((com.vccloud.portal.webservice.VidyoPortalUserService.NotLicensedFaultException)ex);\r\n\t\t\t\t\t\t\t\t\t\t\t return;\r\n\t\t\t\t\t\t\t\t\t\t }\r\n\t\t\t\t\t\t\t\t\t\t \r\n\t\t\t\t\t\t\t\t\t\t\t\t\tif (ex instanceof com.vccloud.portal.webservice.VidyoPortalUserService.InvalidArgumentFaultException){\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tcallback.receiveErrorremoveModeratorPIN((com.vccloud.portal.webservice.VidyoPortalUserService.InvalidArgumentFaultException)ex);\r\n\t\t\t\t\t\t\t\t\t\t\t return;\r\n\t\t\t\t\t\t\t\t\t\t }\r\n\t\t\t\t\t\t\t\t\t\t \r\n\t\t\t\t\t\t\t\t\t\t\t\t\tif (ex instanceof com.vccloud.portal.webservice.VidyoPortalUserService.GeneralFaultException){\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tcallback.receiveErrorremoveModeratorPIN((com.vccloud.portal.webservice.VidyoPortalUserService.GeneralFaultException)ex);\r\n\t\t\t\t\t\t\t\t\t\t\t return;\r\n\t\t\t\t\t\t\t\t\t\t }\r\n\t\t\t\t\t\t\t\t\t\t \r\n\t\t\t\t\t\t\t\t\t\t\t\t\tif (ex instanceof com.vccloud.portal.webservice.VidyoPortalUserService.ControlMeetingFaultException){\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tcallback.receiveErrorremoveModeratorPIN((com.vccloud.portal.webservice.VidyoPortalUserService.ControlMeetingFaultException)ex);\r\n\t\t\t\t\t\t\t\t\t\t\t return;\r\n\t\t\t\t\t\t\t\t\t\t }\r\n\t\t\t\t\t\t\t\t\t\t \r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t callback.receiveErrorremoveModeratorPIN(new java.rmi.RemoteException(ex.getMessage(), ex));\r\n } catch(java.lang.ClassCastException e){\r\n // we cannot intantiate the class - throw the original Axis fault\r\n callback.receiveErrorremoveModeratorPIN(f);\r\n } catch (java.lang.ClassNotFoundException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n callback.receiveErrorremoveModeratorPIN(f);\r\n } catch (java.lang.NoSuchMethodException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n callback.receiveErrorremoveModeratorPIN(f);\r\n } catch (java.lang.reflect.InvocationTargetException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n callback.receiveErrorremoveModeratorPIN(f);\r\n } catch (java.lang.IllegalAccessException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n callback.receiveErrorremoveModeratorPIN(f);\r\n } catch (java.lang.InstantiationException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n callback.receiveErrorremoveModeratorPIN(f);\r\n } catch (org.apache.axis2.AxisFault e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n callback.receiveErrorremoveModeratorPIN(f);\r\n }\r\n\t\t\t\t\t\t\t\t\t } else {\r\n\t\t\t\t\t\t\t\t\t\t callback.receiveErrorremoveModeratorPIN(f);\r\n\t\t\t\t\t\t\t\t\t }\r\n\t\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t callback.receiveErrorremoveModeratorPIN(f);\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t callback.receiveErrorremoveModeratorPIN(error);\r\n\t\t\t\t\t\t\t\t}\r\n }\r\n\r\n public void onFault(org.apache.axis2.context.MessageContext faultContext) {\r\n org.apache.axis2.AxisFault fault = org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(faultContext);\r\n onError(fault);\r\n }\r\n\r\n public void onComplete() {\r\n try {\r\n _messageContext.getTransportOut().getSender().cleanup(_messageContext);\r\n } catch (org.apache.axis2.AxisFault axisFault) {\r\n callback.receiveErrorremoveModeratorPIN(axisFault);\r\n }\r\n }\r\n });\r\n \r\n\r\n org.apache.axis2.util.CallbackReceiver _callbackReceiver = null;\r\n if ( _operations[49].getMessageReceiver()==null && _operationClient.getOptions().isUseSeparateListener()) {\r\n _callbackReceiver = new org.apache.axis2.util.CallbackReceiver();\r\n _operations[49].setMessageReceiver(\r\n _callbackReceiver);\r\n }\r\n\r\n //execute the operation client\r\n _operationClient.execute(false);\r\n\r\n }", "title": "" }, { "docid": "77efa45af2e9284e023db3c6eee365d5", "score": "0.49951604", "text": "public interface Deletefedexshipment_Client_Ep extends javax.xml.rpc.Service {\n\n weblogic.wsee.context.WebServiceContext context();\n\n weblogic.wsee.context.WebServiceContext joinContext()\n throws weblogic.wsee.context.ContextNotFoundException;\n \n \n\n //***********************************\n // Port Name: DeleteFedExShipment_Pt \n // Port Type: DeleteFedExShipment \n //***********************************\n \n /**\n * returns DeleteFedExShipment_Pt port in this service \n */\n be.e1.bssv.J564200.DeleteShipmentProxy.DeleteFedExShipment getDeleteFedExShipment_Pt() throws javax.xml.rpc.ServiceException;\n\n /**\n * @Deprecated Use getDeleteFedExShipment_Pt(byte[] username, byte[] password);\n */\n be.e1.bssv.J564200.DeleteShipmentProxy.DeleteFedExShipment getDeleteFedExShipment_Pt(String username, String password) throws javax.xml.rpc.ServiceException;\n\n be.e1.bssv.J564200.DeleteShipmentProxy.DeleteFedExShipment getDeleteFedExShipment_Pt(byte[] username, byte[] password) throws javax.xml.rpc.ServiceException;\n \n be.e1.bssv.J564200.DeleteShipmentProxy.DeleteFedExShipment getDeleteFedExShipment_Pt(java.io.InputStream policyInputStream) throws javax.xml.rpc.ServiceException; \n be.e1.bssv.J564200.DeleteShipmentProxy.DeleteFedExShipment getDeleteFedExShipment_Pt(java.io.InputStream policyInputStream, boolean inbound, boolean outbound) throws javax.xml.rpc.ServiceException;\n be.e1.bssv.J564200.DeleteShipmentProxy.DeleteFedExShipment getDeleteFedExShipment_Pt(String operationName, \n java.util.Set<java.io.InputStream> inbound, java.util.Set<java.io.InputStream> outbound) throws javax.xml.rpc.ServiceException;\n be.e1.bssv.J564200.DeleteShipmentProxy.DeleteFedExShipment getDeleteFedExShipment_Pt(String operationName,\n java.io.InputStream[] inbound, java.io.InputStream[] outbound) throws javax.xml.rpc.ServiceException;\n be.e1.bssv.J564200.DeleteShipmentProxy.DeleteFedExShipment getDeleteFedExShipment_Pt( \n java.util.Set<java.io.InputStream> inbound, java.util.Set<java.io.InputStream> outbound) throws javax.xml.rpc.ServiceException;\n be.e1.bssv.J564200.DeleteShipmentProxy.DeleteFedExShipment getDeleteFedExShipment_Pt(\n java.io.InputStream[] inbound, java.io.InputStream[] outbound) throws javax.xml.rpc.ServiceException;\n \n }", "title": "" }, { "docid": "ccedb48f9e8fe0b3bc79e712ed43d493", "score": "0.49868855", "text": "@Override\n\tpublic void off() {\n\t\tSystem.out.println(\"get from IN_REPAIR to BORROWED\");\n\t}", "title": "" }, { "docid": "68f98f0e8d13bcd067026c482a57b57d", "score": "0.49795154", "text": "public void removeProbeTest3(){\n Open_Addressing o = new Open_Addressing(10, 0, -1);\n int jumps = o.removeKey(2);\n int removedVal = o.Table[o.probe(2,0)];\n if (removedVal != 2 && jumps >= o.m)\n {\n System.out.println(\"Remove Probe Test 3 Passed\");\n }\n else{\n System.out.println(\"Remove Probe Test 3 Failed\" );\n }\n\n\n }", "title": "" }, { "docid": "a1d4d2bf1fe93972145458040e036bb8", "score": "0.49766937", "text": "void mo13841lS() throws RemoteException;", "title": "" }, { "docid": "2e126d896527ddac3c19e2e56f0b6667", "score": "0.49750406", "text": "public void onNetDisConnect() {\n\n }", "title": "" }, { "docid": "6613b41b1f4e5daffa964a8fe6bb0cd4", "score": "0.49741563", "text": "@Override\n public void onRemove() {\n BattlegroundsKitPvP.getInstance().getServer().getLogger().info(npc.getName() + \" has been removed!\");\n }", "title": "" }, { "docid": "4f52a95ccf60c746e304890550bbbdb1", "score": "0.49738094", "text": "@Override\n\tpublic void shutdown()\n\t{\n\t}", "title": "" }, { "docid": "4e52e55f61ee157947b40cddc915af48", "score": "0.49720842", "text": "void secondaryRemovePosition(com.hps.july.persistence.Position aPosition) throws java.rmi.RemoteException;", "title": "" }, { "docid": "f6e97dacce5ca382bdc5bfe2efd8f0ab", "score": "0.49715737", "text": "public synchronized void unRegisterConfigChangeListener(com.alibaba.analytics.core.config.UTClientConfigMgr.IConfigChangeListener r3) {\n /*\n r2 = this;\n monitor-enter(r2)\n if (r3 == 0) goto L_0x0024\n java.lang.String r0 = r3.getKey() // Catch:{ all -> 0x0021 }\n boolean r0 = android.text.TextUtils.isEmpty(r0) // Catch:{ all -> 0x0021 }\n if (r0 == 0) goto L_0x000e\n goto L_0x0024\n L_0x000e:\n java.lang.String r0 = r3.getKey() // Catch:{ all -> 0x0021 }\n java.util.Map<java.lang.String, java.util.List<com.alibaba.analytics.core.config.UTClientConfigMgr$IConfigChangeListener>> r1 = r2.mListeners // Catch:{ all -> 0x0021 }\n java.lang.Object r0 = r1.get(r0) // Catch:{ all -> 0x0021 }\n java.util.List r0 = (java.util.List) r0 // Catch:{ all -> 0x0021 }\n if (r0 == 0) goto L_0x001f\n r0.remove(r3) // Catch:{ all -> 0x0021 }\n L_0x001f:\n monitor-exit(r2)\n return\n L_0x0021:\n r3 = move-exception\n monitor-exit(r2)\n throw r3\n L_0x0024:\n monitor-exit(r2)\n return\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.alibaba.analytics.core.config.UTClientConfigMgr.unRegisterConfigChangeListener(com.alibaba.analytics.core.config.UTClientConfigMgr$IConfigChangeListener):void\");\n }", "title": "" }, { "docid": "404b58c4d24017492d0ec9882a9f7835", "score": "0.49711686", "text": "@Override\r\n public void onClassicControllerRemovedEvent(ClassicControllerRemovedEvent arg0) {\n\r\n }", "title": "" }, { "docid": "41796435ac76ac5c81c392478deca40d", "score": "0.49691513", "text": "@Override\n public void shutdown() {\n }", "title": "" }, { "docid": "2e8ecd58ae0c5a3936a39f3d24d4b7c2", "score": "0.49646935", "text": "void mo43349d() throws RemoteException;", "title": "" }, { "docid": "fdd2807b3bc2398c503aa27277d6b505", "score": "0.49604347", "text": "public static String _wb1_locationchanged(String _location) throws Exception{\nanywheresoftware.b4a.keywords.Common.Log(_location);\n //BA.debugLineNum = 137;BA.debugLine=\"End Sub\";\nreturn \"\";\n}", "title": "" }, { "docid": "ddf7350842836d2e1ff3306f7debb6df", "score": "0.4959388", "text": "SystemOutPrintlnProcedure() {}", "title": "" }, { "docid": "0832635ca0ec2c56e418d52e25602699", "score": "0.4956743", "text": "void removedModule(MemoryModule module);", "title": "" }, { "docid": "165ff91ab05fa4afe3a007b5fb89b18a", "score": "0.49528888", "text": "public void breakpointRemoved() throws RebotinolFatalException;", "title": "" }, { "docid": "2e7b9cd0b1a90e2b89320a8d1f82ebaa", "score": "0.4952454", "text": "void invokeTail(StubEvent event);", "title": "" }, { "docid": "9fccc8af76402fb2221893d20c4a3663", "score": "0.49521583", "text": "private void m49675i() {\n this.f36080n.removeMessages(1006);\n }", "title": "" }, { "docid": "6649cfb6df1f448e647f9bdb5c8ba017", "score": "0.49514598", "text": "@Override\n\tprotected void onUnregistered(Context ctx, String regId) {\n\t\t\n\t}", "title": "" }, { "docid": "7373b8103b0f27b95ca6bd8b1c6d2323", "score": "0.49480075", "text": "public abstract void unregister();", "title": "" }, { "docid": "1eb850cd140029c3284631b6ea4a3a92", "score": "0.4947725", "text": "public void mo7036d() {\n }", "title": "" }, { "docid": "4b31bd38db77f803dbee1fe1f525a060", "score": "0.49453187", "text": "public void startremoveRoomPIN(\r\n\r\n com.vccloud.portal.webservice.VidyoPortalUserService.VidyoPortalUserServiceStub.RemoveRoomPINRequest removeRoomPINRequest104,\r\n\r\n final com.vccloud.portal.webservice.VidyoPortalUserService.VidyoPortalUserServiceCallbackHandler callback)\r\n\r\n throws java.rmi.RemoteException{\r\n\r\n org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[52].getName());\r\n _operationClient.getOptions().setAction(\"removeRoomPIN\");\r\n _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);\r\n\r\n \r\n \r\n addPropertyToOperationClient(_operationClient,org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,\"&\");\r\n \r\n\r\n\r\n // create SOAP envelope with that payload\r\n org.apache.axiom.soap.SOAPEnvelope env=null;\r\n final org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();\r\n\r\n \r\n //Style is Doc.\r\n \r\n \r\n env = toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()),\r\n removeRoomPINRequest104,\r\n optimizeContent(new javax.xml.namespace.QName(\"http://portal.vidyo.com/user/v1_1\",\r\n \"removeRoomPIN\")), new javax.xml.namespace.QName(\"http://portal.vidyo.com/user/v1_1\",\r\n \"removeRoomPIN\"));\r\n \r\n // adding SOAP soap_headers\r\n _serviceClient.addHeadersToEnvelope(env);\r\n // create message context with that soap envelope\r\n _messageContext.setEnvelope(env);\r\n\r\n // add the message context to the operation client\r\n _operationClient.addMessageContext(_messageContext);\r\n\r\n\r\n \r\n _operationClient.setCallback(new org.apache.axis2.client.async.AxisCallback() {\r\n public void onMessage(org.apache.axis2.context.MessageContext resultContext) {\r\n try {\r\n org.apache.axiom.soap.SOAPEnvelope resultEnv = resultContext.getEnvelope();\r\n \r\n java.lang.Object object = fromOM(resultEnv.getBody().getFirstElement(),\r\n com.vccloud.portal.webservice.VidyoPortalUserService.VidyoPortalUserServiceStub.RemoveRoomPINResponse.class,\r\n getEnvelopeNamespaces(resultEnv));\r\n callback.receiveResultremoveRoomPIN(\r\n (com.vccloud.portal.webservice.VidyoPortalUserService.VidyoPortalUserServiceStub.RemoveRoomPINResponse)object);\r\n \r\n } catch (org.apache.axis2.AxisFault e) {\r\n callback.receiveErrorremoveRoomPIN(e);\r\n }\r\n }\r\n\r\n public void onError(java.lang.Exception error) {\r\n\t\t\t\t\t\t\t\tif (error instanceof org.apache.axis2.AxisFault) {\r\n\t\t\t\t\t\t\t\t\torg.apache.axis2.AxisFault f = (org.apache.axis2.AxisFault) error;\r\n\t\t\t\t\t\t\t\t\torg.apache.axiom.om.OMElement faultElt = f.getDetail();\r\n\t\t\t\t\t\t\t\t\tif (faultElt!=null){\r\n\t\t\t\t\t\t\t\t\t\tif (faultExceptionNameMap.containsKey(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"removeRoomPIN\"))){\r\n\t\t\t\t\t\t\t\t\t\t\t//make the fault by reflection\r\n\t\t\t\t\t\t\t\t\t\t\ttry{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.String exceptionClassName = (java.lang.String)faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"removeRoomPIN\"));\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.reflect.Constructor constructor = exceptionClass.getConstructor(String.class);\r\n java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t//message class\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.String messageClassName = (java.lang.String)faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"removeRoomPIN\"));\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.Class messageClass = java.lang.Class.forName(messageClassName);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.Object messageObject = fromOM(faultElt,messageClass,null);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.reflect.Method m = exceptionClass.getMethod(\"setFaultMessage\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tnew java.lang.Class[]{messageClass});\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tm.invoke(ex,new java.lang.Object[]{messageObject});\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tif (ex instanceof com.vccloud.portal.webservice.VidyoPortalUserService.NotLicensedFaultException){\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tcallback.receiveErrorremoveRoomPIN((com.vccloud.portal.webservice.VidyoPortalUserService.NotLicensedFaultException)ex);\r\n\t\t\t\t\t\t\t\t\t\t\t return;\r\n\t\t\t\t\t\t\t\t\t\t }\r\n\t\t\t\t\t\t\t\t\t\t \r\n\t\t\t\t\t\t\t\t\t\t\t\t\tif (ex instanceof com.vccloud.portal.webservice.VidyoPortalUserService.InvalidArgumentFaultException){\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tcallback.receiveErrorremoveRoomPIN((com.vccloud.portal.webservice.VidyoPortalUserService.InvalidArgumentFaultException)ex);\r\n\t\t\t\t\t\t\t\t\t\t\t return;\r\n\t\t\t\t\t\t\t\t\t\t }\r\n\t\t\t\t\t\t\t\t\t\t \r\n\t\t\t\t\t\t\t\t\t\t\t\t\tif (ex instanceof com.vccloud.portal.webservice.VidyoPortalUserService.GeneralFaultException){\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tcallback.receiveErrorremoveRoomPIN((com.vccloud.portal.webservice.VidyoPortalUserService.GeneralFaultException)ex);\r\n\t\t\t\t\t\t\t\t\t\t\t return;\r\n\t\t\t\t\t\t\t\t\t\t }\r\n\t\t\t\t\t\t\t\t\t\t \r\n\t\t\t\t\t\t\t\t\t\t\t\t\tif (ex instanceof com.vccloud.portal.webservice.VidyoPortalUserService.SeatLicenseExpiredFaultException){\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tcallback.receiveErrorremoveRoomPIN((com.vccloud.portal.webservice.VidyoPortalUserService.SeatLicenseExpiredFaultException)ex);\r\n\t\t\t\t\t\t\t\t\t\t\t return;\r\n\t\t\t\t\t\t\t\t\t\t }\r\n\t\t\t\t\t\t\t\t\t\t \r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t callback.receiveErrorremoveRoomPIN(new java.rmi.RemoteException(ex.getMessage(), ex));\r\n } catch(java.lang.ClassCastException e){\r\n // we cannot intantiate the class - throw the original Axis fault\r\n callback.receiveErrorremoveRoomPIN(f);\r\n } catch (java.lang.ClassNotFoundException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n callback.receiveErrorremoveRoomPIN(f);\r\n } catch (java.lang.NoSuchMethodException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n callback.receiveErrorremoveRoomPIN(f);\r\n } catch (java.lang.reflect.InvocationTargetException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n callback.receiveErrorremoveRoomPIN(f);\r\n } catch (java.lang.IllegalAccessException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n callback.receiveErrorremoveRoomPIN(f);\r\n } catch (java.lang.InstantiationException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n callback.receiveErrorremoveRoomPIN(f);\r\n } catch (org.apache.axis2.AxisFault e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n callback.receiveErrorremoveRoomPIN(f);\r\n }\r\n\t\t\t\t\t\t\t\t\t } else {\r\n\t\t\t\t\t\t\t\t\t\t callback.receiveErrorremoveRoomPIN(f);\r\n\t\t\t\t\t\t\t\t\t }\r\n\t\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t callback.receiveErrorremoveRoomPIN(f);\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t callback.receiveErrorremoveRoomPIN(error);\r\n\t\t\t\t\t\t\t\t}\r\n }\r\n\r\n public void onFault(org.apache.axis2.context.MessageContext faultContext) {\r\n org.apache.axis2.AxisFault fault = org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(faultContext);\r\n onError(fault);\r\n }\r\n\r\n public void onComplete() {\r\n try {\r\n _messageContext.getTransportOut().getSender().cleanup(_messageContext);\r\n } catch (org.apache.axis2.AxisFault axisFault) {\r\n callback.receiveErrorremoveRoomPIN(axisFault);\r\n }\r\n }\r\n });\r\n \r\n\r\n org.apache.axis2.util.CallbackReceiver _callbackReceiver = null;\r\n if ( _operations[52].getMessageReceiver()==null && _operationClient.getOptions().isUseSeparateListener()) {\r\n _callbackReceiver = new org.apache.axis2.util.CallbackReceiver();\r\n _operations[52].setMessageReceiver(\r\n _callbackReceiver);\r\n }\r\n\r\n //execute the operation client\r\n _operationClient.execute(false);\r\n\r\n }", "title": "" }, { "docid": "8a8972b418968161906a5d14e95875fa", "score": "0.49372467", "text": "public void processPacket(INetHandler handler) {\n/* 65 */ processPacket((INetHandlerPlayClient)handler);\n/* */ }", "title": "" }, { "docid": "026f94b0cbbfddf73ff8bdb8ddf01780", "score": "0.49362963", "text": "@Override\n public void stopQuest(L1PcInstance pc) {\n\n }", "title": "" } ]
cc72c6fe69f673050562d86dfd36b2ec
Moves Face element based on a instruction(can be smile, laugh etc.) and based on change value (double) provided by server
[ { "docid": "54dd4424bf1fd77a4d49ae23de87d3b4", "score": "0.69309103", "text": "void moveElement(String instruction, double changeValue);", "title": "" } ]
[ { "docid": "0224b4b32604e0da801b5beed9ff7197", "score": "0.63732535", "text": "void moveElement(String instruction, boolean changeValue);", "title": "" }, { "docid": "ebea800e0a3dd252a63454928c82f614", "score": "0.6333955", "text": "public void move() {\n this.energy -= 0.03;\n }", "title": "" }, { "docid": "17ec7788fe72ae561015ac1bf92b92a5", "score": "0.6288154", "text": "public void move() {\n energy -= 0.03;\n }", "title": "" }, { "docid": "f8d347c46bd83d764c20f290b297f696", "score": "0.62121", "text": "public void AI_state_move(){\n\t\t\n\t\twindow.label_spDir_sent.setText(bot.CurMove);\n\t\t\n\t\tint bump = bot.getBumpers();\n\t\t\n\t\tint sp = window.get_speed();\n\t\tint dr = window.get_direction();\n\n\t\tbot.move(sp, dr);\n\t\twindow.set_speed(dr);\n\t\t\n\t\t/*\n\t\tif (kinect.updated_skeleton>0){\n\t\t\tkinect.updated_skeleton--;\n\t\t\tsp = 10;\n\t\t\tdr = kinect.skeleton_x;\n\t\t\tif (Math.abs(dr) < 15) dr = 0;\n\t\t}\n\t\t*/\n\t\t\n\t\t//window.set_speed(dr);\n\t\t\n\t\t/*\n\t\tInteger[] people = kinect.get_skeletons_screen_x();\n\t\tif (kinect.skeleton_updated){\n\t\t\tfor(int i = 0; i<people.length; i++) {\n\t\t\t\tif (people[i] != null){\n\t\t\t\t\t//System.out.println(i + \" - \" + people[i]);\n\t\t\t\t\tfollow_direction = people[i];\n\t\t\t\t\tif (Math.abs(follow_direction) < 15) follow_direction = 0;\n\t\t\t\t}\n\t\t\t}\n\t\t\tfollow = true;\n\t\t} else {\n\t\t\tfollow = false;\n\t\t}\n\t\t*/\n\t\t//if (follow) {\n\t\t\t//sp = 10;\n\t\t\t//dr = follow_direction;\n\t\t//}\n\t\t\n\t\t//if (kinect.map != null) System.out.println(kinect.getFocalLengthX());\t\n\t\t//if (kinect.map != null) kinect.map.smooth();\n\t\t/*\n\t\tString de = \"\";\n\t\tfor(int i=50; i<55; i++){\n\t\t\tfloat d = kinect.get_pixel_depth(i, 0);\n\t\t\t\n\t\t\tde += (int)d + \" \";\n\t\t\t\n\t\t\tif (d != 0) {\n\t\t\t\tSystem.out.println(\n\t\t\t\t\t\tde+\"\"\n\t\t\t\t\t\t);\n\t\t\t}\n\t\t}*/\n\t\t//System.out.println(de + \"\");\n\n\n\t\t\n\t\t//if (bump == 0) {\n\n\n\t}", "title": "" }, { "docid": "f02a91e573f2e5b3994b3ef5bea44a3e", "score": "0.61687714", "text": "@Override\n\tpublic void move() {\n\t\tif (x + 80 > 1100) {\n\t\t\tx = 1000;\n\t\t\tizq = true;\n\t\t\tder = false;\n\t\t}\n\t\tif (x < 100) {\n\t\t\tx = 110;\n\t\t\tder = true;\n\t\t\tizq = false;\n\t\t\t// bandera = true;\n\t\t}\n\t}", "title": "" }, { "docid": "917ea4316ed619bf3b1cd207342d3e40", "score": "0.6074052", "text": "public void step()\r\n {\r\n ArrayList<Location> locs = getGrid().getOccupiedLocations();\r\n for ( Location loc : locs )\r\n {\r\n getGrid().remove( loc );\r\n }\r\n\r\n constructPowerUps();\r\n bag = new LetterBag();\r\n play.reset();\r\n if ( diff == 2 )\r\n ai = new AIControlHard( dic, this );\r\n else if ( diff == 3 )\r\n {\r\n ai = new AIControlHard( dic, this );\r\n }\r\n else if ( diff == 1 )\r\n ai = new AIControlMedium( dic, this );\r\n else\r\n ai = new AIControlEasy( dic, this );\r\n play.setMessage();\r\n play.show();\r\n setMessageToScore();\r\n turn = 0;\r\n\r\n if ( order == 1 )\r\n {\r\n ai.playTurn();\r\n play.setMessage();\r\n }\r\n setMessageToScore();\r\n // this.dissapear();\r\n // play.dissapear();\r\n // new MainMenu().setVisible( true );\r\n\r\n show();\r\n\r\n }", "title": "" }, { "docid": "5ba6d24dc4806572001b292265bcf319", "score": "0.5924648", "text": "public interface FaceElementsInterface extends Shape {\n /**\n * Resets to default position of the face element\n */\n void resetPositionToDefault();\n\n /**\n * Move to a different position as provided by the base class that is implementing this interface\n */\n void moveToDifferentPosition();\n\n /**\n * Moves Face element based on a instruction(can be smile, laugh etc.) and based\n * on change value (double) provided by server\n *\n * @param instruction\n * @param changeValue\n */\n void moveElement(String instruction, double changeValue);\n\n /**\n * Moves Face element based on a instruction(can be smile, laugh etc.) and based\n * on change value (boolean) provided by server\n *\n * @param instruction\n * @param changeValue\n */\n void moveElement(String instruction, boolean changeValue);\n}", "title": "" }, { "docid": "dbc5f89df867513456a57909678cacf8", "score": "0.5919833", "text": "public void moving(int position, float dis);", "title": "" }, { "docid": "fe2f27e023eb7532a34de6a067a69f05", "score": "0.59124", "text": "protected void actionMove(final float delta) {\r\n try {\r\n final float five = 5.f;\r\n double[] tmp = getAmas().getEnvironment().nouvellesCoordonnees(\r\n this, Math.random() * delta * five, pastDirection);\r\n blob.setCoordonnee(tmp);\r\n currentAction = Action.MOVE;\r\n\r\n final double six = 0.6;\r\n final double four = 0.4;\r\n generalDirection[0] = six * pastDirection[0] + four * generalDirection[0];\r\n generalDirection[1] = six * pastDirection[1] + four * generalDirection[1];\r\n } catch (Exception e) {\r\n ExceptionHandler eh = new ExceptionHandler();\r\n eh.showError(e);\r\n }\r\n }", "title": "" }, { "docid": "9dbc5c0ff4b19421b3db3dc57bc427a9", "score": "0.5907693", "text": "public void act() \r\n \r\n { movingPicture();\r\n if (getX()<-10){\r\n getWorld().removeObject(this);}\r\n move(-RandomSpeedo);// Add your action code here.\r\n \r\n \r\n int X = getX();\r\n int Y = getY();\r\n X -= speed;\r\n if(isAtEdge() && X < 9 ){\r\n getWorld().removeObject(this);\r\n \r\n }\r\n setLocation( X, Y);\r\n }", "title": "" }, { "docid": "d1ab7dd203f143cc52bcc36276c31497", "score": "0.58760273", "text": "public void moveUp(){ xa = -gameOn.speed;}", "title": "" }, { "docid": "83e6e007148839694f10a720cca4f48a", "score": "0.5856895", "text": "public void move() {\n \n checkEdge();\n \n if(direction == -1) {\n x -= speed;\n }\n else {\n x += speed;\n }\n \n }", "title": "" }, { "docid": "afa87afdf0e6364093416b30a1dc865e", "score": "0.58276093", "text": "public void update() {\n\n\t\tx = x + 10 * flag;\n\t\tif (x > 300)\n\t\t\tflag = -1;\n\t\tif (x < 100)\n\t\t\tflag = 1;\n\t}", "title": "" }, { "docid": "6d83ae48cf2f8525df43cfaedd974268", "score": "0.58095115", "text": "public static void processActionTypeSwim() {\n ActorNode Actor1 = ActionCDFNode.Actor1;\r\n ActorNode Actor2 = ActionCDFNode.Actor2;\r\n\r\n int nSwimDuration = 5;\r\n if (bFirstTimeForThisAction == true) {\r\n if (Actor2 != null) {\r\n Actor2Pos[0].set(Actor2.TotalActorNodeInThisNode[0].Actor.getLocalTranslation());\r\n } else {\r\n Actor2Pos[0].set(Actor1.TotalActorNodeInThisNode[0].Actor.getLocalTranslation());\r\n }\r\n bFirstTimeForThisAction = false;\r\n counter = 0;\r\n }\r\n //for human rotate 90 degress for swim\r\n\r\n for (int i = 0; i < Actor1.nTotalNoOfActorsInThisNode; i++) {\r\n if (Actor1.TotalActorNodeInThisNode[i].getIsHuman()) {\r\n ActorNode CurrActor = Actor1.TotalActorNodeInThisNode[i];\r\n\r\n Node Actor1Node = Actor1.TotalActorNodeInThisNode[i].Actor;\r\n Actor1Node.rotate((FastMath.PI) / 2, 0, 0);\r\n Vector3f currLoc = Actor1Node.getLocalTranslation();\r\n currLoc.setY(0);\r\n Actor1LookAt.set(currLoc);\r\n if (CurrActor.bPassiveActor == false) {\r\n Actor1Node.lookAt(Actor1LookAt, Vector3f.UNIT_Y);\r\n }\r\n nSwimDuration = 50;\r\n //Actor1Node.move(0, 0, tpf);\r\n }\r\n }\r\n //handle camera\r\n handleCamera();\r\n processCounter(nSwimDuration);\r\n }", "title": "" }, { "docid": "51580ebdcec8fbe37b74affe22dff386", "score": "0.5795082", "text": "public void swim() {\n\tif (this.x < this.destX && this.y < this.destY) {\n\t\t/**\n\t\t * //let the fish faces direction of the destination \n\t\tthis.facingLeft = false;\n\t\t**/\t\t\t\t\t\t \t\t\t\t// 为啥不好使\n\t\tthis.x = x + this.speedX;\n\t\tthis.y = y + this.speedY;\n\t} else if(this.x < this.destX && this.y < this.destY) {\n\t\tthis.x = x + this.speedX;\n\t\tthis.y = y - this.speedY;\n\t} else if (this.x > this.destX && this.y > this.destY) {\n\t\tthis.x = x - this.speedX;\n\t\tthis.y = y - this.speedY;\n\t} else if (this.x > this.destX && this.y < this.destY) {\n\t\tthis.x = x - this.speedX;\n\t\tthis.y = y + this.speedY;\n\t} else {\n\t\tthis.x = this.destX;\n\t\tthis.y = this.destY;\n\t}\n\t}", "title": "" }, { "docid": "21c4a911fd22666291377e9a454e1100", "score": "0.5791676", "text": "public void move()\n {\n // remove from universe at the current position\n machine.erase(this);\n\n // draw again at new position\n machine.draw(this);\n \n }", "title": "" }, { "docid": "e4926d5a9a09d4f48fda93e16c587b7d", "score": "0.5788772", "text": "public abstract void moveVirus(double frames);", "title": "" }, { "docid": "66de8109198af12cdd66fa21f066070b", "score": "0.57838166", "text": "void promotePiece() {\n isKing = true;\n updateImage();\n }", "title": "" }, { "docid": "b03229eb2219b5bee900d01ae8727ccb", "score": "0.57778317", "text": "@Override\n public void actionPerformed(ActionEvent e) {\n\n\n\n\n\n try {\n MoveSnakes();\n } catch (IllegalDirectionException ex) {\n ex.printStackTrace();\n }\n\n RefreshSnakes();\n\n\n }", "title": "" }, { "docid": "a407ccc3f9dfe65f7d7eb4338f1555a2", "score": "0.57705307", "text": "public void move() {\n energy -= MOVE_ENERGY_CONSUMED;\n }", "title": "" }, { "docid": "b7351ff9ffcfdb5c99daea9ff65f676d", "score": "0.5748652", "text": "public static void turn() {\n Point ref = new Point(body_.get(1)); //reference point\n Point tmp = new Point(ref); \n int x[] = new int[3];\n int y[] = new int[3];\n \n switch (flag_) {\n\n case 0:\n x[0] = -1;\n y[0] = -1;\n \n x[1] = -1;\n y[1] = 1;\n \n x[2] = -2;\n y[2] = 2;\n \n flag_ = 1;\n break;\n case 1:\n x[0] = 1;\n y[0] = -1;\n \n x[1] = -1;\n y[1] = -1;\n \n x[2] = -2;\n y[2] = -2;\n \n flag_ = 2;\n break;\n\n case 2:\n x[0] = 1;\n y[0] = 1;\n \n x[1] = 1;\n y[1] = -1;\n \n x[2] = 2;\n y[2] = -2;\n \n flag_ = 3;\n break;\n\n case 3:\n x[0] = -1;\n y[0] = 1;\n \n x[1] = 1;\n y[1] = 1;\n \n x[2] = 2;\n y[2] = 2;\n \n flag_ = 0;\n break;\n\n }\n\n //reference 'ref' to calculate and set the new cell of piece\n tmp.setLocation((ref.getX() + x[0] * cellSize_), (ref.getY() - y[0] * cellSize_));\n body_.set(0, tmp);\n\n tmp.setLocation((ref.getX() + x[1]) * cellSize_, (ref.getY() - y[1] * cellSize_));\n body_.set(2, tmp);\n\n tmp.setLocation((ref.getX() + x[2]) * cellSize_, (ref.getY() - y[2] * cellSize_));\n body_.set(3, tmp);\n\n }", "title": "" }, { "docid": "1d9214a05a9890c11364bf238bd76820", "score": "0.5730719", "text": "void pieceMoved(Move move);", "title": "" }, { "docid": "60ea78a8892421aca9d75e11d95c06a8", "score": "0.57234377", "text": "public void move(){\n\t\n\t\tboxx += xstep;\n\t\tboxy += ystep;\n\t\tboxx2 += xstep2;\n\t\tboxy2 += ystep2;\n\n\t\tPoint boxp = new Point(boxx,boxy);\n\t\tPoint boxp2 = new Point(boxx2,boxy2);\n\t\ttrail.add(boxp);\n\t\ttrail2.add(boxp2);\t\n\t}", "title": "" }, { "docid": "97d53ea3781cb08ce4ba652660c1cda5", "score": "0.5713885", "text": "IEstados move ();", "title": "" }, { "docid": "c41bbde12f097aced4bca846c46e0706", "score": "0.571215", "text": "public void moveDown(){ xa = gameOn.speed;}", "title": "" }, { "docid": "c4f3dd172f4652009076001b07a70631", "score": "0.5694408", "text": "private void moveUnits() {\n \n \t}", "title": "" }, { "docid": "b5be2bc1e6812874362f004ba85e9285", "score": "0.5692487", "text": "public void bulletMove() {\n hopPlant();\n turnAround();\n hop(2);\n turnAround();\n pick();\n hop(2);\n }", "title": "" }, { "docid": "68d1591f2ca636860a1f5ae95de4bf09", "score": "0.5685332", "text": "@Override\n public void move() {\n if (x<1280)\n {\n fire_count +=1;\n }\n spriteAdjust();\n if (fire_count % fire_rate == 0)\n {\n behavior = \"firing\";\n }\n switch (behavior){\n case \"normal\":\n x -= move_speed;\n break;\n case \"firing\":\n if (fire_count%fire_rate == 15)\n {\n fire();\n }\n else if (fire_count%fire_rate == 30)\n {\n behavior = \"normal\";\n }\n break;\n }\n if (x < 0-width) //alien gets destroyed if it goes off the screen\n visible = false;\n }", "title": "" }, { "docid": "92a9480ae7a16e7874034071578cf774", "score": "0.5684509", "text": "private void move() {\n\n\t}", "title": "" }, { "docid": "df302d03b23595e3fde46a92edecbf0b", "score": "0.5677136", "text": "public void operatorControl()\r\n {\r\n int i = stick.getValue();\r\n \r\n //4 = move left\r\n //5 = move right\r\n \r\n //3 = 30ft\r\n //2 = 20ft\r\n //1 = 10ft\r\n \r\n switch(i)\r\n {\r\n case 6:\r\n {\r\n ds.set(DoubleSolenoid.Value.kForward);\r\n break;\r\n }\r\n case 7:\r\n {\r\n ds.set(DoubleSolenoid.Value.kReverse);\r\n break;\r\n }\r\n case 4:\r\n {\r\n l.setDegree(30);\r\n break;\r\n }\r\n case 3:\r\n {\r\n l.setDegree(20);\r\n break;\r\n }\r\n case 5:\r\n {\r\n l.setDegree(10);\r\n break;\r\n }\r\n }\r\n }", "title": "" }, { "docid": "0db8b799e38a0a8a213a4c4130dbb820", "score": "0.56614166", "text": "public void ModelStep(int tick){\n double ViruConcentration = VIRprducRate(tick);\r\n for (Cells cell : this){\r\n \t \r\n if (cell.CellType == 1){ \r\n \tdouble Virnow = Virus.Get(cell.Isq());\r\n \tdouble P = ViruConcentration + Virnow;\r\n \tVirus.Set(cell.Isq(), P);\r\n }\r\n }\r\n int j = 0;\r\n for (int i = 0; i < MAX_PDE_STEP; i++) {\r\n\r\n \t j = j + 1;\r\n Virus.DiffusionADI(diffcoeff);\r\n\r\n if (Virus.MaxDelta() < Threshold) {\r\n \t Virus.Update();\r\n \t break;\r\n }\r\n \r\n Virus.Update();\r\n}\r\n\r\n \r\n //Virus Decrease in each time step in all cells \r\n for (Cells cell : this){\r\n double Virusnow = Virus.Get(cell.Isq());\r\n Virus.Add(cell.Isq(), -consumrateVirus*Virusnow);\r\n }\r\n Virus.Update();\r\n\r\n //CELL STEP\r\n for (Cells cell : this){\r\n \t\tcell.CellStep();\r\n }\r\n for (Cells cell : this) {\r\n \tcell.Celldeath();\r\n }\r\n}", "title": "" }, { "docid": "64a97801d33ef110497983f780ec3c30", "score": "0.5654411", "text": "public void move () {\n setForce();\n }", "title": "" }, { "docid": "37b8398d5f82d166757e5e05c071d5ec", "score": "0.5650523", "text": "public void go() {\n this.magnet.set(0.2);\n }", "title": "" }, { "docid": "426a2088e6c103e7300251901bf1283c", "score": "0.56430423", "text": "public void movementLogic() {\r\n\r\n\t}", "title": "" }, { "docid": "bc83f1f210c96c44a39927a191cba7d2", "score": "0.56385845", "text": "@Override\n public void makeNextMove()\n {\n\n prey = new Vector<Point>(findPrey());\n\n if (prey.size() > 0)\n {\n hunt();\n }\n else\n {\n super.makeNextMove();\n }\n }", "title": "" }, { "docid": "31cef5a9fc74e941e7144c8a4ab487c9", "score": "0.5637582", "text": "public void move() {\n \n String coordinator_1 = coordinator_to_string(mowerRelative_x, mowerRelative_y);\n local_map.put(coordinator_1, \"empty\");\n \n mowerRelative_x += Utility.xDIR_MAP.get(currentDirection);\n mowerRelative_y += Utility.yDIR_MAP.get(currentDirection);\n \n if (isDisabled = false){\n String coordinator_2 = coordinator_to_string(mowerRelative_x, mowerRelative_y);\n local_map.put(coordinator_2, \"mower\");\n }\n \n if ((mowerAbsolute_x > -1)&(mowerAbsolute_y > -1)){\n \n String coordinator_3 = coordinator_to_string(mowerAbsolute_x, mowerAbsolute_y);\n global_map.put(coordinator_3, \"empty\");\n mowerAbsolute_x += Utility.xDIR_MAP.get(currentDirection);\n mowerAbsolute_y += Utility.yDIR_MAP.get(currentDirection);\n if (isDisabled = false){\n String coordinator_4 = coordinator_to_string(mowerAbsolute_x, mowerAbsolute_y);\n global_map.put(coordinator_4, \"mower\");\n }\n }\n }", "title": "" }, { "docid": "6a7aa12d52896072617b9e13246b9ab7", "score": "0.56326497", "text": "public void move(){\n \n }", "title": "" }, { "docid": "c599d8ad86c18d30dbdfdee6794f1fd5", "score": "0.56237185", "text": "protected void march(){\n move(speed);\n invulnerability = true;\n getImage().setTransparency(100);\n }", "title": "" }, { "docid": "7d1a59a15826f312d4109eb019df7f14", "score": "0.562286", "text": "public void drive(double miles)\n{\ndouble gallonsBurned=miles/this.fuelEfficiency;\nthis.fuelInTank-=gallonsBurned;\n}", "title": "" }, { "docid": "971cdf270983f23e2f01ef86d83129cc", "score": "0.5622842", "text": "public void SecondMovement() {\n\t\t\r\n\t}", "title": "" }, { "docid": "17c15fefb8e8f51d26e6da8dcf979c8e", "score": "0.5621587", "text": "private void forward(float delataX) {\n }", "title": "" }, { "docid": "b64d45b1c454479f617a224130bbc19a", "score": "0.5621068", "text": "public void step() {\n for (Bar b : this) {\n if (b.x2pos > SCREENMAX || b.x1pos < SCREENMIN) {\n b.speed = -1 * b.speed;\n }\n b.x1pos += b.speed;\n b.x2pos += b.speed;\n }\n\n }", "title": "" }, { "docid": "51f7e34245a98178fce05f01a9f5a580", "score": "0.5620624", "text": "@Override\n\tpublic void move() {\n\t\t\n\t\tint width = 1000;\n\t\tint height = 800;\n\t\t\n\t\tswitch(type) {\n\t\tcase 0:\n\t\t\tx+=speedX;\n\t\t\ty+=speedY;\n\t\t\t\n\t\t\tif(x<10 || x>width-10) {\n\t\t\t\tspeedX*=-1;\n\t\t\t}\n\t\t\t\n\t\t\tif(y<11 || y>height-11) {\n\t\t\t\tspeedY*=-1;\n\t\t\t}\n\t\t\tbreak;\n\t\tcase 1:\n\t\t\tx-=speedX;\n\t\t\ty-=speedY;\n\t\t\t\n\t\t\tif(x<20 || x>width-20) {\n\t\t\t\tspeedX*=-1;\n\t\t\t}\n\t\t\t\n\t\t\tif(y<20 || y>height-20) {\n\t\t\t\tspeedY*=-1;\n\t\t\t}\n\t\t\tbreak;\n\t\tcase 2:\n\t\t\tx+=speedX;\n\t\t\ty-=speedY;\n\t\t\t\n\t\t\tif(x<30 || x>width-30) {\n\t\t\t\tspeedX*=-1;\n\t\t\t}\n\t\t\t\n\t\t\tif(y<30 || y>height-30) {\n\t\t\t\tspeedY*=-1;\n\t\t\t}\n\t\t\tbreak;\n\t\t}\n\t}", "title": "" }, { "docid": "74332335721be672c218239f55f57ab6", "score": "0.5619889", "text": "public void move() {\r\n\t\tfinal double PERCENT_CHANCE = 30;\r\n if (direction && (x < space.getSize() - 1)) x++; \r\n else if (!direction && (x > 0)) x--; \r\n //if we make it here, we're at either side, we need to move down\r\n //and switch direction\r\n else {\r\n direction = !direction;\r\n if (y < space.getSize() - 1) y++;\r\n } \r\n\t\t// Fire a bullet randomly \r\n\t\tif (Math.random()*99 < PERCENT_CHANCE) {\r\n\t\t\tspace.addBullet(new Bullet(getX(), getY(), Bullet.SOUTH));\r\n\t\t}\r\n }", "title": "" }, { "docid": "99a8b592d6a2b88d4a32ad2caebd7110", "score": "0.56168103", "text": "public void motion(){\r\n if((xa + x < gameOn.getHeight() - HEIGHT) && (xa + x > 0)){\r\n x = x + xa;\r\n }\r\n }", "title": "" }, { "docid": "6f8c09e594eab36031159b6d983c1487", "score": "0.56144625", "text": "public void controlledMove() {\n\t\t\n\t}", "title": "" }, { "docid": "6f8c09e594eab36031159b6d983c1487", "score": "0.56144625", "text": "public void controlledMove() {\n\t\t\n\t}", "title": "" }, { "docid": "a728c6d55e74a7533a1df435253151b9", "score": "0.5605386", "text": "public void move()\n {\n Grid<Actor> gr = getGrid();\n if (gr == null)\n return;\n Location loc = getLocation();\n Location next = loc.getAdjacentLocation(getDirection());\n if (gr.isValid(next))\n moveTo(next);\n else\n removeSelfFromGrid();\n Flower flower = new Flower(getColor());\n flower.putSelfInGrid(gr, loc);\n }", "title": "" }, { "docid": "6146858b3b3ecde4dc7adaae25f1175a", "score": "0.55943435", "text": "public void moverFila() {\r\n\t\tfila+=moverFila;\r\n\t}", "title": "" }, { "docid": "30bfef141ff62ecb18a43bf501d160ec", "score": "0.55940336", "text": "private void updateMe(String move) {\r\n\t\tif (DEBUG) { System.out.println(\"moved from meX:\"+meX+\" meY:\"+meY); }\r\n\t\t// remember, meX and meY are indexes into 2D array\r\n\t\t// going N (up) means decrement meY\r\n\t\t// going S (down) means increment meY\r\n\t\tif (move.equals(\"N\")) { meY--; }\r\n\t\telse if (move.equals(\"E\")) { meX++; }\r\n\t\telse if (move.equals(\"S\")) { meY++; }\r\n\t\telse if (move.equals(\"W\")) { meX--; }\r\n\t\tdirection = move;\r\n\r\n\t\tif (DEBUG) { System.out.println(\"moved to meX:\"+meX+\" meY:\"+meY); }\r\n\t}", "title": "" }, { "docid": "53faa4f21c879d425cca3ffefab68b8b", "score": "0.559338", "text": "public void act() \n {\n move(speed);\n removeIfAtEdge();\n }", "title": "" }, { "docid": "eb96bea08ae87a21c07e43cb3ee671a1", "score": "0.5593159", "text": "@Override\n public void actionPerformed(ActionEvent ae) {\n if (xPos > 724) {//will move slider \n xSpeed = -xSpeed;\n //will change diretion\n }\n if (xPos < 51) {\n xSpeed = -xSpeed;\n //will change diretion\n }\n xPos = xPos + xSpeed;\n //will add to xpos to move slider\n repaint(); //redraw the panel\n }", "title": "" }, { "docid": "ef13491fcb1ff8378f9695994c5f2c2d", "score": "0.5583716", "text": "public void move(){\n if (coordX + velocidadeX > (largura - raio)-7){\n coordX = (largura-raio)-7;\n velocidadeX *= -1;\n }\n\n if (coordX + velocidadeX < 9){\n coordX = 9;\n velocidadeX *= -1;\n }\n\n if (coordY + velocidadeY < (raio/2)+7){\n coordY = 29;\n velocidadeY *= -1;\n }\n\n if (coordY + velocidadeY > (altura-raio) - 6){\n coordY = (altura-raio) - 6;\n velocidadeY *= -1;\n }\n coordX += velocidadeX;\n coordY += velocidadeY;\n }", "title": "" }, { "docid": "7f6613ae2cb2acba22de99740d319266", "score": "0.557577", "text": "private void moveForward(double speed){\n /*\n frontLeft = speed;\n frontRight = speed;\n backLeft = speed;\n backRight = speed;\n */\n frontLeft.setPower(speed);\n frontRight.setPower(speed);\n backLeft.setPower(speed);\n backRight.setPower(speed);\n }", "title": "" }, { "docid": "7cb8aab7e5ce641e87658b0d26f71e2e", "score": "0.5571313", "text": "public void move(){\n\t\tint index = convertBoolToInt(readSensors());\n\t\t//random move\n\t\t//index = (int)(Math.random()*(numberOfGenes));\n\n\t\t//System.out.print(\" inf:\" + index);\n\n\t\tboolean[] angleInBool = new boolean[4];\n\t\tSystem.arraycopy(chromosome[index],10,angleInBool,0,4);\n\t\tdouble angleInt = convertBoolToInt(angleInBool);\n\t\tdouble angle = 2*Math.PI * angleInt / 16;\n\t\t\n\t\tboolean[] stepsInBool = new boolean[4];\n\t\tSystem.arraycopy(chromosome[index],14,stepsInBool,0,4);\n\t\tint steps = convertBoolToInt(stepsInBool) + 0;\n\t\t// System.out.println(\" sin:\"+Math.sin(angle) + \" step:\" + steps);\n\n\t\tposY = ( posY - (int)Math.round((steps)*Math.sin(angle)) + MapOfFood.sizeOfMap)%MapOfFood.sizeOfMap;\n\t\tposX = ( posX + (int)Math.round((steps)*Math.cos(angle)) + MapOfFood.sizeOfMap)%MapOfFood.sizeOfMap;\n\t\tenergy = energy - moveTax * steps;\n\t\tgeneUsageCounters[index]++;\n\t\t\n\t}", "title": "" }, { "docid": "6ed182172b13392c6f05e86127a77da2", "score": "0.5564936", "text": "public void moveStep() {\n y.set(y.get() - vY);\n }", "title": "" }, { "docid": "bf87dc2e25c2c48d0e60e11527e7513a", "score": "0.5562399", "text": "@Override\r\n\tpublic void moveDown() {\r\n\t\tPoint positionJoueur = findPlayer();\r\n\t\tappliqueMovement(positionJoueur.x, positionJoueur.y, positionJoueur.x, positionJoueur.y + 1);\r\n\t\tothersThings();\r\n\t}", "title": "" }, { "docid": "e9f3740bcf0353c72d165690fc66e24f", "score": "0.55536044", "text": "public void move() {System.out.println(\"Wiggle\");}", "title": "" }, { "docid": "39cf6489e86847cf1574e261c9ae6131", "score": "0.55506486", "text": "@Test\n\tpublic void directMoveOntoHedgehog() {\n\t\tint hedgehog = state.getNextFieldByType(FieldType.HEDGEHOG, 0);\n\n\t\t// advance\n\t\tAssert.assertFalse(GameRuleLogic.isValidToAdvance(state, hedgehog));\n\n\t\t// fall back\n\t\tblue.setFieldIndex(hedgehog + 1);\n\t\tint hare = state.getNextFieldByType(FieldType.HARE, blue.getFieldIndex());\n red.setFieldIndex(hare);\n\n Assert.assertFalse(GameRuleLogic.isValidToPlayFallBack(state));\n\n\n\t\t// hurry ahead\n blue.setFieldIndex(hedgehog - 1);\n hare = state.getNextFieldByType(FieldType.HARE, 0);\n red.setFieldIndex(hare);\n\t\tAssert.assertFalse(GameRuleLogic.isValidToPlayHurryAhead(state));\n\t}", "title": "" }, { "docid": "996923177793e8688ccaf194fe05a4ad", "score": "0.55500096", "text": "protected void execute() {\n \tdouble forward = Robot.oi.getForwardInput();\n \tdouble turning = Robot.oi.getTurningDegree();\n \tdouble heightEffect = ((21-Robot.lift.getDistance())/21);\n \tforward *= (.8 + (.3 * heightEffect));\n \tturning *= (.8 + (.3 * heightEffect));\n \t//System.out.println(Robot.dTrain.getDistances()[0] + \" \"+ Robot.dTrain.getDistances()[1]);\n\t\tif (Math.abs(turning) < MINIMUM_TURN && !isForward)\n\t\t{\n\t\t\tRobot.gyro.reset();\n\t\t\tisForward = true;\n\t\t\tstraightDriveGyro(forward, 0);\n\t\t}else if(Math.abs(turning) > MINIMUM_TURN) {\n\t\t\tisForward = false;\n\t\t\tmove(turning, forward);\n \t}else if(isForward) {\n\t\t\tstraightDriveGyro(forward, 0);\n\t\t}\n }", "title": "" }, { "docid": "ade1328edcb2f56c1004928cc984fef6", "score": "0.55448896", "text": "@Override\n\tpublic void move() {\n\t\tif(moveFlag % 5 == 0) {\n\t\t mode.move();\n\t\t}\n\t\tmoveFlag++;\n\t\t}", "title": "" }, { "docid": "2bc3f0574859b3a5a7f00ef14c255f05", "score": "0.5531395", "text": "public void move(){\n if(position==0){\n direction=1;\n position=1+position;\n }\n else if(position==50){\n direction=0;\n position=position-1;\n }\n else if(direction==0&&position!=0){\n position=position-1;\n }\n else if(direction==1&&position!=0){\n position=position+1;\n }\n \n //Here the algorithm:\n /*if the direction is left, decrement the position by 1;\n if the direction is right, increment the position by 1;\n However, before you do the above, if the position is 0 and the direction\n is left, change the direction to right and increment the position by 1;\n Similarly, if the position is 50 and the direction is right, change the\n direction to left and decrement the position by 1\n */\n }", "title": "" }, { "docid": "03630bb1b9c6745dd6c14a16e8ddf504", "score": "0.55282587", "text": "public void manualMove(java.awt.event.MouseEvent evt) {\n int count = 0;\n for(JButton button : this.pumpMinus) {\n if(button == evt.getComponent()) {\n this.pc.setNewGoal(count, -100);\n } else {\n count++;\n }\n }\n count = 0;\n for(JButton button : this.pumpPlus) {\n if(button == evt.getComponent()) {\n this.pc.setNewGoal(count, 100);\n } else {\n count++;\n }\n }\n }", "title": "" }, { "docid": "67089673aa833d214f9299e566d952fb", "score": "0.55271655", "text": "public void move(ArrayList<Point> path, DrawingSurface surface) {\n\n\t\tif (health<=0) {\n\t\t\tdie(surface);\n\t\t}\n\n\t\tif(path.size() == 1) {\n\t\t\t//System.out.println(\"Avatar wins, player LOSES!\"); //SHOW ON SCREEN\n\t\t\tloses = true;\n\t\t\treturn;\n\t\t}\n\t\tif (!isSlowed) {\n\t\t\tgridx = path.get(1).x;\n\t\t\tgridy = path.get(1).y;\n\t\t}else {} //does nothing because IsSlowed\n\t\t\n\t\treturn;\n\n\t\t\n\t}", "title": "" }, { "docid": "3212d5051b90e56bd7329faa365cacfc", "score": "0.55254793", "text": "public void act() \n {\n move(-4);\n limite();\n }", "title": "" }, { "docid": "6a211814f01dbe6303fbec19bc8ed26b", "score": "0.5524799", "text": "private void move(String direction) {\n\t\t\r\n\t\tcurrentLocation = handler.goToLocation(currentLocation.getID(), direction);\r\n\t\tSystem.out.println(currentLocation.getPresentation());\r\n\t\t\r\n\t\tif (currentLocation.getID() == LocationID.pool)\r\n\t\t\thandler.player.restoreHP();\r\n\t\t\r\n\t\tif (currentLocation.getID() == LocationID.cave) {\r\n\t\t\tcheckGameOver();\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "a7669b2d109c57b77d0b1dbad914db92", "score": "0.55216444", "text": "public void climb() {\r\n\t\t\r\n\t\ttalon_winch_1.set(Constants.SPEEDS.SPEED_WINCH_CLIMB);\r\n\t\ttalon_winch_2.set(-Constants.SPEEDS.SPEED_WINCH_CLIMB);\r\n\t\t\r\n\t}", "title": "" }, { "docid": "60d0b659e32bfe3c1f5e2687b4388d96", "score": "0.55113196", "text": "public void moveUp() {\n this.altitude=this.altitude+1;\n }", "title": "" }, { "docid": "293852f2bd120e2692eed0101cd41ef6", "score": "0.55069786", "text": "private Pair<Action, Integer> moveToPump(Agent agent) {\n\t\tif (w.pumps.contains(agent.coords)) {\n\t\t\treturn refuel(agent);\n\t\t}\n\t\tagent.state = State.MOVING_TO_FUEL;\n\t\tagent.path = Path.movesToPoint(agent.coords, w.getClosestPump(agent.coords));\n\t\treturn new Pair<>(null, agent.path.step());\n\t}", "title": "" }, { "docid": "1fe737038e2d92c6b9128b873bf504f1", "score": "0.55033946", "text": "public void up()\n {\n u();\n updateCube();\n solution.add(Move.UP);\n }", "title": "" }, { "docid": "f38cc60b0302f017ec22cfd8c0ae4aba", "score": "0.5502583", "text": "private void updateImageStop() {\n\t\tmoveX = 0;\n\t\tmoveY = 0;\n\t}", "title": "" }, { "docid": "2118f529007a1df68b89393e95c3568c", "score": "0.5501538", "text": "public void simpleMoveBackwards() {\n setMotorPower(.17);\n }", "title": "" }, { "docid": "aa4abb8357c222bf5f289da650de69c1", "score": "0.54936415", "text": "void update(double up);", "title": "" }, { "docid": "76cfe677010f3491ebcd7ce30213bc0c", "score": "0.5489877", "text": "private void opponentMoved(MessageBean msg) throws IOException {\r\n Map<String, String> res = objectMapper.readValue(msg.getData(), new TypeReference<Map<String, String>>() {\r\n });\r\n Platform.runLater(() -> {\r\n for (Node node : grid.getChildren()) {\r\n if (Objects.equals(GridPane.getRowIndex(node), Integer.parseInt(res.get(\"row\")))\r\n && Objects.equals(GridPane.getColumnIndex(node), Integer.parseInt(res.get(\"col\")))) {\r\n\r\n ((Square) node).setMark(res.get(\"mark\"));\r\n break;\r\n }\r\n }\r\n });\r\n\r\n }", "title": "" }, { "docid": "c360d082306f994050f2940a4f821cfe", "score": "0.5488429", "text": "public void act() \n {\n setLocation(getX()-3, getY());\n jalan1();\n if (isAtEdge())\n {\n getWorld().removeObject(this);\n } \n }", "title": "" }, { "docid": "05a1c9d180291e04a655935aeea3fa6b", "score": "0.54883665", "text": "public void move(){\n\t\tdouble oldX = getLayoutX();\r\n\t\tdouble oldY = getLayoutY();\r\n\t\t\r\n\t\tsetLayoutX(getLayoutX() + xSpeed*speedMultiplier);\r\n\t\tsetLayoutY(getLayoutY() + ySpeed*speedMultiplier);\r\n\t\t\r\n\t\tdouble newX = getLayoutX();\r\n\t\tdouble newY = getLayoutY();\r\n\t\tdistanceLimit -= Math.sqrt(Math.pow(newX-oldX,2)+Math.pow(newY-oldY,2));\r\n\t\r\n\t}", "title": "" }, { "docid": "1d9031eaf8f2886ed51917e7655a3aeb", "score": "0.5488086", "text": "public void moveShip() {\n moveRowBot();\n rowChange();\n moveRowTop();\n }", "title": "" }, { "docid": "0e45512bcf221b0259ad785046323643", "score": "0.54873645", "text": "public void step() \n\t{\n\t\tif(!puss.isFacingWall() && !puss.isFacingDog() && !puss.isFacingGully() && !puss.isFacingMud())\n\t\t{\n\t\t\tpuss.forward();\n\t\t}\n\t\telse if(puss.isFacingDog() || puss.isFacingGully() || puss.isFacingMud())\n\t\t{\n\t\t\tpuss.right();\n\t\t}\n\t\telse if(puss.isFacingWall())\n\t\t{\n\t\t\tpuss.right();\n\t\t\tif(puss.isFacingWall())\n\t\t\t{\n\t\t\t\tpuss.left();\n\t\t\t\tpuss.left();\n\t\t\t}\n\t\t}\n\n\t\t//Task 1-3\n\t\t/*if(puss.isFacingWall())\n\t\t{\n\t\t\tpuss.right();\n\t\t\tif(puss.isFacingWall())\n\t\t\t{\n\t\t\t\tpuss.left();\n\t\t\t\tpuss.left();\n\t\t\t}\n\t\t}\n\t\telse if(puss.isFacingGully())\n\t\t{\n\t\t\tpuss.jump();\n\t\t}\n\t\telse if(puss.isFacingMud())\n\t\t{\n\t\t\tpuss.putOnBoots();\n\t\t\tpuss.forward();\n\t\t}\n\t\telse if(puss.isFacingDog())\n\t\t{\n\t\t\tpuss.startTipToe();\n\t\t\tpuss.forward();\n\t\t}\n\t\telse\n\t\t{\n\t\t\tpuss.forward();\n\t\t\tif(puss.isInBoots())\n\t\t\t{\n\t\t\t\tpuss.takeOffBoots();\n\t\t\t}\n\t\t\telse if(puss.isTipToeing())\n\t\t\t{\n\t\t\t\tpuss.stopTipToe();\n\t\t\t}\n\t\t}*/\n\t}", "title": "" }, { "docid": "168fd9b0e4e94143d5d9113bb4365098", "score": "0.5486476", "text": "private void movePushableObj() {\n\t\tif(this.myHero.getDX()>0 && this.myHero.getX()+this.myHero.getDX()==this.Pushobj.get(objpushed).getX()-40 && jump==false && Hero.isfalling) { //if the hero goes to the right and is facing right and is not jumping\n\t\t\tthis.Pushobj.get(objpushed).setDX(10);\n\t\t}else if(this.myHero.getDX()<0 && this.myHero.getX()+this.myHero.getDX()>this.Pushobj.get(objpushed).getX()+Hero.HERO_WIDTH && jump==false && Hero.isfalling){ //if the hero goes to the left and is facing left and is not jumping\n\t\t\tthis.Pushobj.get(objpushed).setDX(-10);\n\t\t}else {\n\t\t\tthis.Pushobj.get(objpushed).setDX(0);\n\t\t\tfacingleft=false;\n\t\t}\n\t}", "title": "" }, { "docid": "a830148ee9ea5483faab9404bf1b9f45", "score": "0.5485303", "text": "private int startKillWumpus(AgentDirection currentDirection, int desiredDirection) {\n lastAgentX = agentX;\n lastAgentY = agentY;\n lastAgentDir = agentDir;\n\n //update location\n agentX = agentX + Neighbors[desiredDirection].xOff;\n agentY = agentY + Neighbors[desiredDirection].yOff;\n\n switch(desiredDirection) {\n\n case 0:\n agentDir = AgentDirection.RIGHT;\n break;\n\n case 1:\n agentDir = AgentDirection.DOWN;\n break;\n\n case 2:\n agentDir = AgentDirection.LEFT;\n break;\n\n case 3:\n agentDir = AgentDirection.UP;\n break;\n }\n\n hasArrow = false;\n wumpusAlive = false;\n setWumpusProb(agentX, agentY); //when wumpus dies, all squares have Prob(wumpus) = 0\n lastAction = Action.GO_FORWARD;\n\n switch(currentDirection) {\n\n case RIGHT:\n switch(agentDir) {\n case RIGHT:\n actionList.addLast(Action.GO_FORWARD);\n return Action.SHOOT;\n\n case DOWN:\n actionList.addLast(Action.SHOOT);\n actionList.addLast(Action.GO_FORWARD);\n return Action.TURN_RIGHT;\n\n case LEFT:\n actionList.addLast(Action.TURN_LEFT);\n actionList.addLast(Action.SHOOT);\n actionList.addLast(Action.GO_FORWARD);\n return Action.TURN_LEFT;\n\n case UP:\n actionList.addLast(Action.SHOOT);\n actionList.addLast(Action.GO_FORWARD);\n return Action.TURN_LEFT;\n }\n\n case DOWN:\n switch(agentDir) {\n case RIGHT:\n actionList.addLast(Action.SHOOT);\n actionList.addLast(Action.GO_FORWARD);\n return Action.TURN_LEFT;\n\n case DOWN:\n actionList.addLast(Action.GO_FORWARD);\n return Action.SHOOT;\n\n case LEFT:\n actionList.addLast(Action.SHOOT);\n actionList.addLast(Action.GO_FORWARD);\n return Action.TURN_RIGHT;\n\n case UP:\n actionList.addLast(Action.TURN_LEFT);\n actionList.addLast(Action.SHOOT);\n actionList.addLast(Action.GO_FORWARD);\n return Action.TURN_LEFT;\n }\n\n case LEFT:\n switch(agentDir) {\n case RIGHT:\n actionList.addLast(Action.TURN_LEFT);\n actionList.addLast(Action.SHOOT);\n actionList.addLast(Action.GO_FORWARD);\n return Action.TURN_LEFT;\n\n case DOWN:\n actionList.addLast(Action.SHOOT);\n actionList.addLast(Action.GO_FORWARD);\n return Action.TURN_LEFT;\n\n case LEFT:\n actionList.addLast(Action.GO_FORWARD);\n return Action.SHOOT;\n\n case UP:\n actionList.addLast(Action.SHOOT);\n actionList.addLast(Action.GO_FORWARD);\n return Action.TURN_RIGHT;\n }\n\n case UP:\n switch(agentDir) {\n case RIGHT:\n actionList.addLast(Action.SHOOT);\n actionList.addLast(Action.GO_FORWARD);\n return Action.TURN_RIGHT;\n\n case DOWN:\n actionList.addLast(Action.TURN_LEFT);\n actionList.addLast(Action.SHOOT);\n actionList.addLast(Action.GO_FORWARD);\n return Action.TURN_LEFT;\n\n case LEFT:\n actionList.addLast(Action.SHOOT);\n actionList.addLast(Action.GO_FORWARD);\n return Action.TURN_LEFT;\n\n case UP:\n actionList.addLast(Action.GO_FORWARD);\n return Action.SHOOT;\n }\n }\n\n agentX = lastAgentX;\n agentY = lastAgentY;\n agentDir = lastAgentDir;\n\n lastAction = Action.SHOOT;\n return Action.SHOOT;\n }", "title": "" }, { "docid": "de2e068d79dea5838d621927d146dbee", "score": "0.54849565", "text": "private void step(Pixel current, int x, int y) {\n Random rand = new Random();\n Pixel[] adjacent = updateMovable(current, x, y); //left, bottom, right\n if (current.isMoving()) {\n try {\n switch (current.getEffect()) {\n case HEAT:\n break;\n case EMPTY:\n break;\n case METAL:\n break;\n case SAND:\n if (getPixel(x, y + 1).getEffect() == ParticleEffect.EMPTY || getPixel(x, y + 1).getEffect() == ParticleEffect.WATER) {\n fall(x, y, 35); // current = (x,y+1)\n }\n\n if (getPixel(x, y + 2).getEffect() == ParticleEffect.SAND) {\n ArrayList<Pixel> bottom = new ArrayList<>();\n ArrayList<Pixel> left = new ArrayList<>();\n ArrayList<Pixel> right = new ArrayList<>();\n\n for (int i = 0; i < 4; i++) {\n if (getPixel(x + 1, y + 1 + i).getEffect() == ParticleEffect.EMPTY) {\n right.add(getPixel(x + 1, y + 1 + i));\n }\n if (getPixel(x - 1, y + 1 + i).getEffect() == ParticleEffect.EMPTY) {\n left.add(getPixel(x - 1, y + 1 + i));\n }\n if (getPixel(x, y - 1 - i).getEffect() == ParticleEffect.SAND) {\n bottom.add(getPixel(x, y - 1 - i));\n }\n }\n System.out.println(left.size() + \" \" + right.size());\n }\n break;\n case WATER:\n // Mit eigener Klasse arbeiten?\n fluidStep(current, x, y);\n break;\n case MOLTEN_METAL:\n fluidStep(current, x, y);\n break;\n case MOLTEN_GLASS:\n fluidStep(current,x,y);\n break;\n case STEAM:\n if (70 > rand.nextInt(101) && getPixel(x, y - 1).getEffect() != ParticleEffect.METAL) {\n swap(x, y, x, y - 1);\n } else {\n if (rand.nextInt(2) == 1) {\n swap(x, y, x - 1, y);\n } else {\n swap(x, y, x + 1, y);\n }\n }\n break;\n }\n } catch (IndexOutOfBoundsException io) {\n }\n }\n }", "title": "" }, { "docid": "f6cb9208df66a8a18633c68351c2fb79", "score": "0.5484773", "text": "public void moveToTarget()\n\t{\n\t\tdouble distance;\n\t\tdouble x;\n\t\tdouble y;\n\t\tdouble angle;\n\t\t//Magic\n\t\t//You can reverse the order of taking the images, but make sure to send with image2 as light on\n\t\t//If only one image is used, send image 1 as null\n\t\twhile(true)\n\t\t{\n\t\t\tledLight(false);\n\t\t\tBufferedImage image1=getImage();\n\t\t\tledLight(true);\n\t\t\tBufferedImage image2=getImage();\n\t\t\trm.processImage(image1, image2);\n\t\t\twhile(true)\n\t\t\t{\n\t\t\t\tboolean finished=rm.waitToFinish(1000);//Should take less than 0.5 seconds, average 0.33\n\t\t\t\tif(finished)\n\t\t\t\t{\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tdouble[] target=rm.getTarget();//Get the target, see format below\n\t\t\tif(target[4]==0.0)//Checks to make sure no failure\n\t\t\t{\n\t\t\t\tx=target[0];\n\t\t\t\ty=target[1];\n\t\t\t\tangle=target[2];\n\t\t\t\tdistance=target[3];//Ask me if this is in inches or feet\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif(target[4]==0.5)\n\t\t\t{\n\t\t\t\tx=target[0];\n\t\t\t\ty=target[1];\n\t\t\t\tangle=target[2];\n\t\t\t\tdistance=target[3];//Ask me if this is in inches or feet\n\t\t\t\t//Partial Target Move Code. Ask for clarification.\n\t\t\t\t//TODO\n\t\t\t}\n\t\t}\n\t\t//End Magic\n\t\t//Move Code\n\t\t//See above for your variables.\n\t\t//TODO\n\t}", "title": "" }, { "docid": "cadbfbf59c79dff335cb308d9845f46e", "score": "0.5481629", "text": "public void pushOut() {\n clawMotor.set(-0.23);\n }", "title": "" }, { "docid": "763927a92c13c4026eb23aa972ab937b", "score": "0.54766834", "text": "public void operate()\r\n {Bomberman p=(Bomberman)game.getPlayer();\r\n int [] position=p.getPosition();\r\n int x=position[0];\r\n int y=position[1];\r\n guiPowerUp.removePowerUp(x,y);\r\n p.incrementScore(35);\r\n p.setCantBombCanPut(1);\r\n }", "title": "" }, { "docid": "8dcc2b49835c5b997bc6eab4d8ecd300", "score": "0.5474373", "text": "@Override\n public void move() {\n updateImageView(getImageX(),getImageY()+1* Main.getVitesse());\n }", "title": "" }, { "docid": "af90b8634e5c3dac65bea72a522427dd", "score": "0.5473079", "text": "private void changeCalculatedPosition(Card card){\n \t\tif(card instanceof Move){\n \t\t\tif(direction == GameBoard.NORTH){\n \t\t\t\ty = y - ((Move)card).getDistance();\n \t\t\t}else if(direction == GameBoard.EAST){\n \t\t\t\tx = x + ((Move)card).getDistance();\n \t\t\t}else if(direction == GameBoard.SOUTH){\n \t\t\t\ty = y + ((Move)card).getDistance();\n \t\t\t}else if(direction == GameBoard.WEST){\n \t\t\t\tx = x - ((Move)card).getDistance();\n \t\t\t}\n \t\t}else if(card instanceof Turn){\n \t\t\tif(((Turn)card).getTurn() == TurnType.LEFT){\n \t\t\t\tdirection = (direction + 3) % 4;\n \t\t\t}else if(((Turn)card).getTurn() == TurnType.RIGHT){\n \t\t\t\tdirection = (direction + 1) % 4;\n \t\t\t}else{ // UTurn\n \t\t\t\tdirection = (direction + 2) % 4;\n \t\t\t}\n \t\t}\n \t}", "title": "" }, { "docid": "49267ab99fa803c5e4fb79f3d0b5893d", "score": "0.5465654", "text": "private void switchDirections() {\n if (shipDirection != -1) {\n if (shipDirection == 1) {\n shipDirection = 3;\n killStep = 4;\n } else if (shipDirection == 2) {\n shipDirection = 4;\n killStep = 5;\n } else if (shipDirection == 3) {\n shipDirection = 1;\n killStep = 3;\n } else if (shipDirection == 4) {\n shipDirection = 2;\n killStep = 4;\n }\n }\n }", "title": "" }, { "docid": "b643ba58a5a3589ef90e70c824ae03ca", "score": "0.5461048", "text": "@Override\n public void onUpdate(FaceDetector.Detections<Face> detectionResults, Face face) {\n mOverlay.add(mFaceGraphic);\n mFaceGraphic.updateFace(face);\n if (mSmileToSnap) {\n if (face.getIsSmilingProbability() > SMILE_THRESHOLD) {\n if (mEligibleToTakePic && !mPictureAlreadyTaken) {\n takePic();\n mPictureAlreadyTaken = true;\n mEligibleToTakePic = false;\n }\n mFaceGraphic.updateFace(face);\n } else if (face.getIsSmilingProbability() < SMILE_THRESHOLD) {\n mPictureAlreadyTaken = false;\n mEligibleToTakePic = true;\n }\n }else {\n mPictureAlreadyTaken = false;\n mEligibleToTakePic = true;\n }\n }", "title": "" }, { "docid": "03cec650f137967adbb4957f2c2678a6", "score": "0.54525757", "text": "public void moveFB(double distance, double power, boolean forward, MotionTracker tracker){\n tracker.enableAndResetEncoders();\n double leftPower = power * Constants.Drivetrain.FB_LEFT_POWER;\n double rightPower = power * Constants.Drivetrain.FB_RIGHT_POWER;\n int clicks = (int) (distance * Constants.MotionTracker.CLICKS_PER_INCH);\n if(forward){\n setPower(new double[]{leftPower,leftPower,rightPower,rightPower});\n while( tracker.getYEncoderValue()<clicks){}\n }else{\n setPower(new double[]{-leftPower,-leftPower,-rightPower,-rightPower});\n while( tracker.getYEncoderValue()>(-clicks)){}\n }\n setPower(new double[]{0,0,0,0});\n /*\n state = DrivetrainState.Linear;\n int clicks = (int) (distance * Constants.MotionTracker.CLICKS_PER_INCH);\n int initialEncoderValue = tracker.getYEncoderValue();\n double leftPower = power * Constants.Drivetrain.FB_LEFT_POWER;\n double rightPower = power * Constants.Drivetrain.FB_RIGHT_POWER;\n if(forward){\n setPower(new double[]{leftPower,leftPower,rightPower,rightPower});\n try{while(tracker.getYEncoderValue() - initialEncoderValue < clicks - Constants.Drivetrain.FB_THRESHOLD) tracker.updatePosition();}catch(Exception e){}\n } else{\n setPower(new double[]{-leftPower,-leftPower,-rightPower,-rightPower});\n try{while(initialEncoderValue - tracker.getYEncoderValue() < clicks - Constants.Drivetrain.FB_THRESHOLD) tracker.updatePosition();}catch(Exception e){}\n }\n setPower(new double[]{0,0,0,0});\n tracker.updatePosition();*/\n }", "title": "" }, { "docid": "d55eb1e4efe7b81eb813b77c62b47cb1", "score": "0.5451648", "text": "@Override\n protected void manHuntPlayer() {\n\n Coordinates middle = Rectangle.findMiddleCoor(ownPosition);\n Rectangle nexus = new Rectangle(middle.getX() - 3, middle.getX() + 3, middle.getY() - 3, middle.getY() + 3);\n\n\n\n currentPlayerPosition.setCoordinates(Rectangle.findMiddleCoor(player1));\n\n if (!oldPlayerPos.equals(currentPlayerPosition) || currentStep == null) {\n oldPlayerPos.setCoordinates(currentPlayerPosition.getX(), currentPlayerPosition.getY());\n\n path = pathfinder.createPath(\n ownPosition, currentPlayerPosition,\n map\n );\n if (path != null && !path.isEmpty()) {\n currentStep = path.pop();\n }\n }\n\n if (currentStep != null) {\n if (Rectangle.isInBox(nexus, currentStep)) {\n\n if (path != null && !path.isEmpty())\n currentStep = path.pop();\n else\n currentStep = null;\n }\n }\n go(middle, nexus);\n }", "title": "" }, { "docid": "cce6a82196e5345c9def2f759da6e99c", "score": "0.5446694", "text": "public void move()\n\t{\n\t\tx += velocityX + bounceVelocity;\n\t\tbounceVelocity *= 0.7;\n\t\tstrideCounter = (strideCounter%STRIDE_LENGTH) + 1;\n\t\t\n\t\ty += velocityY;\n\t\tvelocityY += accelerationY;\n\t\t\n\t\tcheckWindowBounds();\t// prevents the Dude from moving out of the boundaries\n\t\tif (swingCounter <= SWING_COOLDOWN)\n\t\t\tswingCounter++;\n\t\tif (lastHitCounter <= HIT_COOLDOWN)\n\t\t\tlastHitCounter++;\n\t\tgroundCheck();\n\t\tgetImage();\n\t}", "title": "" }, { "docid": "188963a4ac0ec1f869dfef7fe28cafc1", "score": "0.54453176", "text": "private void moveAndUpdateEnemy1() {\n\t\t// Weiwen's comment: perhaps efficient coding can play a role in enemy's movement. \n\t\tfor(Enemy1 enemy : enemy1List){\n\t\t\tif(enemy.fullness == 0){\n\t\t\t\tenemy.fastPace++;\n\t\t\t\t//extra movement every 6 moves\n\t\t\t\tif(enemy.fastPace % 6 == 0 && enemy.enemy1state.equals(Enemy1.State.HUNTING)){\n\t\t\t\t\tenemy.moveEnemy1(mouseBrain.current);\n\t\t\t\t}\n\t\t\t\tif(enemy.fullness == 0){ // ??? why do you need to have this if condition?\n\t\t\t\t\tenemy.moveEnemy1(mouseBrain.current);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tLinkedList<Hex> enemyToHunterPath = shortestPathHunter.getPath(enemy.current);\n\t\t\t\t\n\t\t\t\t//turn hunting on with Gaussian probability\n\t\t\t\tif(Math.abs(gRand.nextValue()) >enemyToHunterPath.size()){\n\t\t\t\t\tenemy.enemy1state = Enemy1.State.HUNTING;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//turn hunting off with fixed probability (10%)\n\t\t\t\tif(enemy.enemy1state == Enemy1.State.HUNTING && Math.abs(rnd.nextInt(10)) < 1){\n\t\t\t\t\tenemy.enemy1state = Enemy1.State.WANDERING;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if (enemy.fullness > 0){\n\t\t\t\tthis.decreaseHunger();\n\t\t\t}\n\t\t\t\n\t\t}\n\t}", "title": "" }, { "docid": "2e6105fccc129135cedf525ad2361e47", "score": "0.54435885", "text": "public void move()\r\n\t{\r\n\t\tint left_wall = 0;\r\n\t\tint right_wall = 600;\r\n\t\tint upper_wall = 0;\r\n\t\tint lower_wall = 400;\r\n\t\t\r\n\t\t// If adding dx moves the shape outside of icon width (0-600), \r\n\t\t// reverse direction\r\n\t\tif ((x + dx < left_wall) || (x + dx + width > right_wall)) {dx = -dx;} \r\n\t\t// Shift in x axis by dx\r\n\t\tx += dx;\r\n\t\t\r\n\t\t// If adding dy moves the shape outside of icon height (0-400), \r\n\t\t// reverse direction\r\n\t\tif ((y + dy < upper_wall) || (y + dy + width > lower_wall)) {dy = -dy;}\r\n\t\t// Shift in y axis by dy\r\n\t\ty += dy;\r\n\t}", "title": "" }, { "docid": "faab0b869b6a1fc46a1e5643b177bd3d", "score": "0.54433894", "text": "@Override\n public boolean executeAction(String agent, Structure message) {\n try {\n if (agent.equals(\"judge\")) { //Recepcion de un mensaje procedente del juez\n String action= message.getFunctor();\n switch(action){\n case(\"exchange\"): //Intercambio de fichas\n int c1 = (int)((NumberTerm)message.getTerm(0)).solve();\n int x1 = (int)((NumberTerm)message.getTerm(1)).solve();\n int y1 = (int)((NumberTerm)message.getTerm(2)).solve();\n int c2 = (int)((NumberTerm)message.getTerm(3)).solve();\n int x2 = (int)((NumberTerm)message.getTerm(4)).solve();\n int y2 = (int)((NumberTerm)message.getTerm(5)).solve();\n model.exchange(c1,x1,y1,c2,x2,y2);\n //view.repaint(); //Descomentar en caso de problemas de visualizacion\n break;\n case(\"delete\"): //Borrado de ficha\n int c = (int)((NumberTerm)message.getTerm(0)).solve();\n int x = (int)((NumberTerm)message.getTerm(1)).solve();\n int y = (int)((NumberTerm)message.getTerm(2)).solve();\n model.delete(c,x,y);\n //view.repaint();\n break;\n case(\"put\"): //Establecer nueva ficha\n c = (int)((NumberTerm)message.getTerm(0)).solve();\n x = (int)((NumberTerm)message.getTerm(1)).solve();\n y = (int)((NumberTerm)message.getTerm(2)).solve();\n String t = message.getTerm(3).toString();\n model.put(c,x,y,t);\n //view.repaint();\n break;\n case(\"resetTablero\"): //Restablecer tablero con la distribucion inicial\n model.reset();\n //view.repaint()\n break;\n case(\"putObstacle\"): //Establecer nuevo obstaculo\n x = (int)((NumberTerm)message.getTerm(0)).solve();\n y = (int)((NumberTerm)message.getTerm(1)).solve();\n model.putObstacle(x,y);\n break;\n case(\"setOwner\"): //Establecer propiedad de una celda\n x = (int)((NumberTerm)message.getTerm(0)).solve();\n y = (int)((NumberTerm)message.getTerm(1)).solve();\n int owner = (int)((NumberTerm)message.getTerm(2)).solve();\n model.setOwner(x,y,owner);\n break;\n }\n } else { //Recepcion de un mensaje de otro agente que no sea el juez\n logger.info(\"Se ha recibido una peticion ilegal. \"+ agent +\" no puede realizar la accion: \"+ message);\n Literal ilegal = Literal.parseLiteral(\"accionIlegal(\" + agent + \")\");\n addPercept(\"judge\",ilegal);}\n } catch (Exception e) {\n e.printStackTrace();\n }\n return true;\n }", "title": "" }, { "docid": "0140c095bdc590d5a683cb95e673aa69", "score": "0.54425055", "text": "@Override\r\n\tpublic void moveUp() {\r\n\t\tPoint positionJoueur = findPlayer();\r\n\t\tappliqueMovement(positionJoueur.x, positionJoueur.y, positionJoueur.x, positionJoueur.y - 1);\r\n\t\tothersThings();\r\n\t}", "title": "" }, { "docid": "a02765861557725d19d6f034a9c6a667", "score": "0.54419404", "text": "@Override\n protected void action() {\n SimpleMatrix inputMap = getEnviroment(gc).divide(127).minus(1);\n //le preguntamos a la RNA si debemos volar\n double volar = net.output(inputMap).getDDRM().get(0);\n if (volar > 0.5) {\n bird.addVelocity(0, -900);\n }\n }", "title": "" }, { "docid": "82d59876fe1785442ec77aff5a001481", "score": "0.5440781", "text": "private void move(){\n\n }", "title": "" }, { "docid": "2ef6236d9d7f9f41fea023e81b719b7b", "score": "0.5433803", "text": "public void update() {\n if (standStillTicks > 0) {\n standStillTicks--;\n setChanged();\n notifyObservers();\n return;\n }\n if (getSpeed() >= 0) {\n if (getX() + getSpeed() > getGoalX()) {\n setHasArrived();\n } else {\n setX(getX() + getSpeed());\n }\n } else {\n if (getX() + getSpeed() < getGoalX()) {\n setHasArrived();\n } else {\n setX(getX() + getSpeed());\n }\n }\n setChanged();\n notifyObservers();\n }", "title": "" }, { "docid": "af53c908e6890a3e47e7c8521e997f16", "score": "0.54307187", "text": "public void zoomOut(){\n\tvisota = visota + beginVisota/5;\r\n\tshirina = shirina + beginShirina/5;\r\n\t/*if ((visota>beginVisota) || (shirina>beginShirna)){\r\n\t\tvisota = beginVisota;\r\n\t\tshirina = beginShirna;\r\n\t}\r\n\t*/\r\n\tculculateSmallMoveDelta();\r\n}", "title": "" }, { "docid": "b8d5971bba4e227956aedf410b8d1d56", "score": "0.5428665", "text": "public void moveBrick() {\n pickHop();\n plantHop();\n }", "title": "" } ]
3cd249f9ce58c115d5ea35d8eddf14a2
optional int32 _attr_order = 2;
[ { "docid": "ccb9da66144b1955fb1ec55ebec50390", "score": "0.0", "text": "public Builder clearAttrOrder() {\n bitField0_ = (bitField0_ & ~0x00000004);\n AttrOrder_ = 0;\n onChanged();\n return this;\n }", "title": "" } ]
[ { "docid": "623a6e71cafff04d300b9e4435c00821", "score": "0.77482754", "text": "int getAttrOrder();", "title": "" }, { "docid": "cb69c9878299fc5fd26b6a0d8ff3b56f", "score": "0.691726", "text": "boolean hasAttrOrder();", "title": "" }, { "docid": "bd625fe702ba5ef464b49173d6e52642", "score": "0.681732", "text": "public int getAttrOrder() {\n return AttrOrder_;\n }", "title": "" }, { "docid": "52641a9e752838e7ca1cdf582c60970d", "score": "0.6582123", "text": "public int getAttrOrder() {\n return AttrOrder_;\n }", "title": "" }, { "docid": "2f155e2b1053316e56815faa7b44449f", "score": "0.62709135", "text": "public boolean hasAttrOrder() {\n return ((bitField0_ & 0x00000004) == 0x00000004);\n }", "title": "" }, { "docid": "25f9bab7d3259327c5e82ee8edc9a0cb", "score": "0.6256669", "text": "public boolean hasAttrOrder() {\n return ((bitField0_ & 0x00000004) == 0x00000004);\n }", "title": "" }, { "docid": "93541d88b245d271f514a72a49d12a32", "score": "0.6173771", "text": "void synchronizeAttributeSequence() {\r\n // no attributes here\r\n }", "title": "" }, { "docid": "52b11f58349d2d873b4496756c769ce4", "score": "0.6113826", "text": "int getAttrid();", "title": "" }, { "docid": "41a0a0fdac07fd1aadad507d1cd2d473", "score": "0.6026847", "text": "public Builder setAttrOrder(int value) {\n bitField0_ |= 0x00000004;\n AttrOrder_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "96755e744e1b1a30476bfb55defad45e", "score": "0.6022523", "text": "void sortAttributes(final Attributes att) {\r\n // no attributes here\r\n }", "title": "" }, { "docid": "9d6cd703d215519dc03fac0903974779", "score": "0.5984909", "text": "void init_attributes();", "title": "" }, { "docid": "bb7769753b8980de066a384b01245b4f", "score": "0.58843076", "text": "public int getAttr() {\n return attr;\n }", "title": "" }, { "docid": "e9f03c826f8dc75a87c8794bd30eada2", "score": "0.5880828", "text": "@NotNull\n protected abstract int[] attrs();", "title": "" }, { "docid": "1c25b8b0012788dbe0c6deecbb9b40e2", "score": "0.5880425", "text": "public int getAttributes();", "title": "" }, { "docid": "a71ad96bac172df6d600487274b6ccfe", "score": "0.58770835", "text": "boolean hasOrderlessAttribute();", "title": "" }, { "docid": "246ab5c998d99fd5d4148ae62909d3b2", "score": "0.58090883", "text": "int getAttrNameInt();", "title": "" }, { "docid": "df320f66805dece3caa62ae14f27c3a9", "score": "0.58051324", "text": "@Override\r\n public int getOrder() {\n return 0;\r\n }", "title": "" }, { "docid": "56f9a94c692b658e9eaa69d445677308", "score": "0.5755098", "text": "long getAttrInt(String name);", "title": "" }, { "docid": "d37c399a78d74692c3a016997949492f", "score": "0.5751814", "text": "final Map<AttributeKey<?>, Object> attrs()\r\n/* 301: */ {\r\n/* 302:383 */ return this.attrs;\r\n/* 303: */ }", "title": "" }, { "docid": "42686b98f3fb8958bfcafdd155673cea", "score": "0.5742619", "text": "@Override\n\tpublic int getOrder() {\n\t\treturn 3;\n\t}", "title": "" }, { "docid": "491a6ba949e842eb311d50096809618d", "score": "0.5712883", "text": "@Override\n public int getPriority(){\n return 4;\n }", "title": "" }, { "docid": "90800d3dac07b858f362a26e9fa133d0", "score": "0.5686122", "text": "@Override\r\n\tpublic int getOrder() {\n\t\treturn 1;\r\n\t}", "title": "" }, { "docid": "6a50f4be59abd8a427fc163ff3b1c7a7", "score": "0.56767356", "text": "int getAttrInstSeFlag();", "title": "" }, { "docid": "10ad943c0f576bdc036c53156e4b21e4", "score": "0.5649764", "text": "@Override\n public int getOrder() {\n return 0;\n }", "title": "" }, { "docid": "827a67d4068c1f199d7224f261c81c6d", "score": "0.5633802", "text": "public String getAttr_name() {\n return attr_name;\n}", "title": "" }, { "docid": "d5a006cd9d609837260e215aae986659", "score": "0.5569535", "text": "public void sortStructureAttributes() {\n processOperation(new SortAttributesOperation());\n }", "title": "" }, { "docid": "a7832f065fd4838ff83394a2fa7b46b4", "score": "0.55651927", "text": "@Override public int getPriority()\t\t\t{ return 20; }", "title": "" }, { "docid": "f1727e83413436ee8811e43127a858a8", "score": "0.5503941", "text": "protected List getFieldOrder() { return Arrays.asList(new String[] { \"flags\" }); }", "title": "" }, { "docid": "b7b01bac107350ef00f3b6c54a93bd5e", "score": "0.54848474", "text": "@Override\r\n\t\tpublic String[] getAttribs() {\n\t\t\treturn null;\r\n\t\t}", "title": "" }, { "docid": "e601b62ded4e4742166150bd7d76abea", "score": "0.5472282", "text": "int nextAttribute(int afterIndex);", "title": "" }, { "docid": "4f37cd59e388df3e7a0d1329a9276e2b", "score": "0.5445838", "text": "public Sic()\n{\n// System.out.println (\"VALUE OF N_PRIVATE = \"+so.N_PRI);\nSystem.out.println (\"VALUE OF N_DEFAULT = \"+so.N_DEF);\nSystem.out.println (\"VALUE OF N_PROTECTED = \"+so.N_PRO);\nSystem.out.println (\"VALUE OF N_PUBLIC = \"+so.N_PUB);\n}", "title": "" }, { "docid": "e887e7baa0f96b5ac201187e9af76a21", "score": "0.54358405", "text": "public interface IAttributeDescriptor extends INode {\r\n\t\r\n\t/** Compare to {@link INode#getType()} to test if this attribute is a String (this is a stub for future release) */\r\n\tpublic static final int STRING_TYPE = 1;\r\n\t/** Compare to {@link INode#getType()} to test if this attribute is a number (this is a stub for future release) */\r\n\tpublic static final int NUMERIC_TYPE = 2;\r\n\t/** Compare to {@link INode#getType()} to test if this attribute is a date (this is a stub for future release) */\r\n\tpublic static final int DATE_TYPE \t = 3;\r\n\t\r\n\t/**\r\n\t * Obtains the attribute values stored for this attribute.\r\n\t * @return\r\n\t */\r\n\tpublic Collection<IAttributeValue> getAttributeValues();\r\n\t\r\n\t/**\r\n\t * Sets the attribute values stored for this attribute.\r\n\t * @param attributeValues\r\n\t */\r\n\tpublic void setAttributeValues(Collection<IAttributeValue> attributeValues);\r\n\t\r\n\t/**\r\n\t * Obtains an object containing all informations about probabilistic\r\n\t * dependency of this attribute (e.g. CPT, parents, children, etc)\r\n\t * @return\r\n\t */\r\n\tpublic IPRMDependency getPRMDependency();\r\n\t\r\n\r\n\t/**\r\n\t * Sets an object containing all informations about probabilistic\r\n\t * dependency of this attribute (e.g. CPT, parents, children, etc)\r\n\t * @return\r\n\t */\r\n\tpublic void setPRMDependency(IPRMDependency prmDependency);\r\n\t\r\n\t/**\r\n\t * Obtains the class (entity) where this attribute belongs\r\n\t * @return\r\n\t */\r\n\tpublic IPRMClass getPRMClass();\r\n\r\n\t/**\r\n\t * Sets the class (entity) where this attribute belongs\r\n\t * @param prmClass\r\n\t */\r\n\tpublic void setPRMClass(IPRMClass prmClass);\r\n\t\r\n\t/**\r\n\t * Obtains the referenced attribute descriptor if this attribute is a \r\n\t * foreign key. It must be null if this attribute is not a foreign key.\r\n\t * @return\r\n\t */\r\n\tpublic IForeignKey getForeignKeyReference();\r\n\r\n\t/**\r\n\t * Sets the referenced attribute descriptor if this attribute is a \r\n\t * foreign key. It must be null if this attribute is not a foreign key.\r\n\t * @param foreignKey\r\n\t */\r\n\tpublic void setForeignKeyReference(IForeignKey foreignKey);\r\n\t\r\n\t/**\r\n\t * Checks if this attribute is mandatory.\r\n\t * @return true if this attribute's value must be non-null\r\n\t */\r\n\tpublic Boolean isMandatory();\r\n\t\r\n\r\n\t/**\r\n\t * Sets the flag indicating that this attribute is mandatory.\r\n\t * @param isMandatory : true if this attribute's value must be non-null\r\n\t */\r\n\tpublic void setMandatory(Boolean isMandatory);\r\n\t\r\n\t/**\r\n\t * Checks if this attribute is a primary key.\r\n\t * @see IPRMClass#getPrimaryKeys()\r\n\t * @return\r\n\t */\r\n\tpublic Boolean isPrimaryKey();\r\n\t\r\n\r\n\t/**\r\n\t * Sets the flag indicating that this attribute is a primary key.\r\n\t * @param isPK : true if this attribute's value must be a PK\r\n\t */\r\n\tpublic void setPrimaryKey(Boolean isPK);\r\n\t\r\n\t/**\r\n\t * Checks if this attribute is a foreign key.\r\n\t * @see IPRMClass#getForeignKeys()\r\n\t * @return\r\n\t */\r\n\tpublic Boolean isForeignKey();\r\n\r\n//\t/**\r\n//\t * Sets the flag indicating that this attribute is a primary key.\r\n//\t * @param isFK : true if this attribute's value must be a PK\r\n//\t */\r\n//\tpublic void setForeignKey(Boolean isFK);\r\n\t\r\n\t/**\r\n\t * Sets the value of {@link INode#getType()} using a type code.\r\n\t * This is a placeholder for future releases allowing\r\n\t * non-categorical types. Currently, only categorical strings are allowed\r\n\t * as type.\r\n\t * @param typeCode\r\n\t */\r\n\tpublic void setType(int typeCode);\r\n}", "title": "" }, { "docid": "060790d076f129db1e3d440dce5890c2", "score": "0.54214406", "text": "@Test\n public void test18() throws Throwable {\n TreeBuilder treeBuilder0 = new TreeBuilder();\n Attributes2Impl attributes2Impl0 = new Attributes2Impl();\n treeBuilder0.startElement(\"_b#X]wQP \", \"_b#X]wQP \", \"_b#X]wQP \", (Attributes) attributes2Impl0);\n treeBuilder0.processingInstruction(\"_b#X]wQP \", \"_b#X]wQP \");\n }", "title": "" }, { "docid": "1f67ac526a8fcb4d0b84fa17e6634e14", "score": "0.541083", "text": "public ArrayList<AttrBean> getAttr3() {\n/* 52 */ return this.attr3;\n/* */ }", "title": "" }, { "docid": "9b6805a52dc23deb490e4bd65cbb3bab", "score": "0.5394596", "text": "public int getAttrid() {\n return Attrid_;\n }", "title": "" }, { "docid": "486b6a68da1beee0daee60148f87c4c4", "score": "0.538809", "text": "@Override\r\n\tprotected void initAttributeData() {\n\t\t\r\n\t}", "title": "" }, { "docid": "8e1c03f56a516d20d4c2b2c3ce3fa9a8", "score": "0.5381025", "text": "Priority mo3582b();", "title": "" }, { "docid": "8bb5109b0f084032adf3994708b3bfc6", "score": "0.53761536", "text": "@Override\r\n\tpublic int getPriority() {\n\t\treturn 0;\r\n\t}", "title": "" }, { "docid": "8bb5109b0f084032adf3994708b3bfc6", "score": "0.53761536", "text": "@Override\r\n\tpublic int getPriority() {\n\t\treturn 0;\r\n\t}", "title": "" }, { "docid": "14c1b94b42f1ce0a71c198b39974ac42", "score": "0.53699464", "text": "@Override\r\n\tpublic int getPriority() {\n\t\treturn 1;\r\n\t}", "title": "" }, { "docid": "2172a35fea221b073c75ca3694051b1a", "score": "0.53621197", "text": "public int getPriority() {return priority;}", "title": "" }, { "docid": "14d3fdbbdd041c1fe902eef27290148d", "score": "0.5357922", "text": "public static native int GetAttributeType(long lpjFbxCachedEffect);", "title": "" }, { "docid": "980d0db7f3ed82b70341fcac864a8ed6", "score": "0.5353273", "text": "default boolean hasAttributes() {\n\treturn getAttributeCount() > 0;\n }", "title": "" }, { "docid": "22175f351763f4b88f943c3baaf7a9d7", "score": "0.53522635", "text": "public Attrs() {\n/* 54 */ this.mItems = new String[64];\n/* */ }", "title": "" }, { "docid": "b9d2f18c50ea9b0b1cc6ceec218a62a9", "score": "0.53484327", "text": "public TestBlockDependentConditionAttribute() {\r\n }", "title": "" }, { "docid": "7573e3c6ce116fe4bed6e62bff75ebdc", "score": "0.53471005", "text": "public AttrNameType getAttrName(){\n return localAttrName;\n }", "title": "" }, { "docid": "642c8cc9a1b04472c51895eb40c697eb", "score": "0.53375363", "text": "protected List getFieldOrder() { return Arrays.asList(new String[] { \"processorMask\", \"relationship\", \"payload\" }); }", "title": "" }, { "docid": "de5aff725fdf0804d326fe46e5e5b505", "score": "0.53371173", "text": "@DSSource({DSSourceKind.SENSITIVE_UNCATEGORIZED})\n @DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 12:28:49.591 -0500\", hash_original_method = \"36DAD0B9D253F08C19BBEFC651F6D4C9\", hash_generated_method = \"52C6D23851DC7FAA7602943CDF2520C5\")\n \npublic int getAttributes() {\n return mAttributes;\n }", "title": "" }, { "docid": "ac1048bc28e4481506d67df3f3589d85", "score": "0.53370875", "text": "public void setAttr_name(String attr_name) {\n this.attr_name = attr_name;\n}", "title": "" }, { "docid": "0adcab5e54b15e9922d7dce7ad2d2250", "score": "0.5334065", "text": "@Override\n\t\tpublic void visitAttribute(Attribute arg0) {\n\n\t\t}", "title": "" }, { "docid": "0818bc16eccef091ef2086559caf297a", "score": "0.53330266", "text": "public interface AttrMapping extends java.io.Serializable {\r\n\tstatic final long serialVersionUID = 4086026124433522160L;\r\n\r\n\t// Constants for mapping modes.\r\n\r\n\t/**\r\n\t * Constant for the \"plain\" mapping mode. In Graph Transformation this\r\n\t * stands for a mapping as in the rule morphisms.\r\n\t */\r\n\tstatic public final int PLAIN_MAP = 0;\r\n\r\n\t/**\r\n\t * Constant for the \"match\" mapping mode. In Graph Transformation this\r\n\t * stands for a mapping as in match constructions.\r\n\t */\r\n\tstatic public final int MATCH_MAP = 1;\r\n\r\n\tstatic public final int GRAPH_MAP = 2;\r\n\r\n\tstatic public final int OBJECT_FLOW_MAP = 3;\r\n\t\r\n\t/**\r\n\t * Use the next possible mapping;\r\n\t * \r\n\t * @return \"true\" if more subsequent mappings exist, \"false\" otherwise.\r\n\t */\r\n\tpublic boolean next();\r\n\r\n\t/**\r\n\t * Discard mapping; Removes variable assignments made by this mapping from\r\n\t * its context and dissolves the connection between the attribute instances.\r\n\t */\r\n\tpublic void remove();\r\n\t\r\n\tpublic void removeNow();\r\n}", "title": "" }, { "docid": "77c4e240cfdeacbb21216b078679e962", "score": "0.5305965", "text": "public String getAttr3 () {\n\t\treturn attr3;\n\t}", "title": "" }, { "docid": "7629fa37745594aa0a3915d7b1ba610f", "score": "0.529969", "text": "public int nAttr() {\r\n\t\treturn 9; // diffuse color (r,g,b), normal (x,y,z), fragment position\r\n\t\t\t\t\t// (x,y,z)\r\n\t}", "title": "" }, { "docid": "be8330bcc2b442214fc3dc33ab0cb641", "score": "0.5299278", "text": "long[] getAttrIntList(String name);", "title": "" }, { "docid": "68cfebcf35915c9630008db6170f0399", "score": "0.5299165", "text": "@Override\n\t\tpublic int compareTo(Attribute o) {\n\t\t\treturn 0;\n\t\t}", "title": "" }, { "docid": "7e8fe0bfcd702c11cc54de558f9caf96", "score": "0.52988374", "text": "public void setAttr(int attr) {\n this.attr = attr;\n }", "title": "" }, { "docid": "7c72ff80a1e1e3bfe49e72911bb4534a", "score": "0.5288721", "text": "public void setAttributes(int attributes);", "title": "" }, { "docid": "31d3cb9a60039bc6fa612cc0133ab15d", "score": "0.5284319", "text": "public int getATTRIBUTE01() {\r\n return attribute01;\r\n }", "title": "" }, { "docid": "b70f0be62cc41617e6e2be8386bf9447", "score": "0.52800375", "text": "private static Attribute[] getAttributes()\n\t{\n\t\t\n\t\tAttribute[] ret = new Attribute[91];\n\t\tret[0] = Attribute.LABEL;\n\t\tfor(int i = 0;i < 90;++i)\n\t\t{\n\t\t\tret[i+1] = Attribute.NUMERICAL;\n\t\t}\n\t\treturn ret;\n\t}", "title": "" }, { "docid": "8ef6b083e3c0411503cb7eecd7c0f31b", "score": "0.5275961", "text": "@DISPID(1) //= 0x1. The runtime will prefer the VTID if present\n @VTID(11)\n int order(\n String fieldName);", "title": "" }, { "docid": "8eefe582de997aec6ac5f43b013af618", "score": "0.52713925", "text": "public ArrayList<AttrBean> getAttr0() {\n/* 34 */ return this.attr0;\n/* */ }", "title": "" }, { "docid": "552d674e981c82bbc2887cd6d415cbb7", "score": "0.52712137", "text": "@Override\n\tpublic int getPriority() {\n\t\treturn 0;\n\t}", "title": "" }, { "docid": "552d674e981c82bbc2887cd6d415cbb7", "score": "0.52712137", "text": "@Override\n\tpublic int getPriority() {\n\t\treturn 0;\n\t}", "title": "" }, { "docid": "492308d406c550e8b81358a7a45f7403", "score": "0.526944", "text": "private boolean haveAttributes(int a) {\n if (attr == null && a != 0) {\n attr = new int[capacity];\n }\n return attr != null;\n }", "title": "" }, { "docid": "ce048d1508c869e00fc141e633a97e26", "score": "0.5267209", "text": "private List<Property> getAttributesSorted()\n {\n if (_attrsSorted != null) return _attrsSorted;\n Collections.sort(_attrsSorted = new ArrayList(getAttributes()));\n return _attrsSorted;\n }", "title": "" }, { "docid": "26ccde796670623f97fb1d47f0a59b73", "score": "0.5258589", "text": "public String getAttr3() {\n return attr3;\n }", "title": "" }, { "docid": "1e420cff6ed945be19a14ff12fb93468", "score": "0.5242124", "text": "@Override\n\t\t\tpublic int getPriority() {\n\t\t\t\treturn 0;\n\t\t\t}", "title": "" }, { "docid": "9e3b829d7dadc35173a53330c3864bdc", "score": "0.52267504", "text": "public long getPriority(){\n \treturn priority;\n }", "title": "" }, { "docid": "09e6c7695e1b787843539c9550c95ab6", "score": "0.52248096", "text": "public boolean isAttribute() {\n/* 146 */ return (this.fEventType == 10);\n/* */ }", "title": "" }, { "docid": "3189a1a198148d260e6cfcde76822a92", "score": "0.52188957", "text": "int Everything_GetResultAttributes(int dwIndex);", "title": "" }, { "docid": "7ba8560c0095180db4811827f9084b3c", "score": "0.52093345", "text": "public static interface Attribute\n/* */ {\n/* */ String getName();\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ String getValue();\n/* */ }", "title": "" }, { "docid": "dcf549a204c51486e8ff0c66c2298a74", "score": "0.5207418", "text": "public boolean isOobAttribute(int attr);", "title": "" }, { "docid": "1f27a6c8932ad9bfef36edab1d443668", "score": "0.5206335", "text": "protected List getFieldOrder() { return Arrays.asList(new String[] { \"level\", \"associativity\", \"lineSize\", \"size\", \"type\" }); }", "title": "" }, { "docid": "f06bd6a549c27d44c1d04fc6489f0ea0", "score": "0.52058786", "text": "public void addAttribute(Object key, Object attr) {\n/* 248 */ if (this.attributes == null) {\n/* 249 */ this.attributes = new HashMap<>(3);\n/* */ }\n/* 251 */ this.attributes.put(key, attr);\n/* */ }", "title": "" }, { "docid": "7d888cee295e5b50bb4cd59e4dcdf4c8", "score": "0.52043885", "text": "public int getAttrid() {\n return Attrid_;\n }", "title": "" }, { "docid": "c14fcced8e15d0aec9c1a26d5306f6b9", "score": "0.5199996", "text": "protected String getAttrName() \n {\n return ATTR_EnclosingMethod;\n }", "title": "" }, { "docid": "a19a40b2186c598e9207ada4dbc69a6f", "score": "0.5191285", "text": "public abstract ElemAttrs buildAttrOb();", "title": "" }, { "docid": "2b654ef098d32b9acfd7e237807c806e", "score": "0.5190689", "text": "@Override\n public int getPriority()\n {\n return 65;\n }", "title": "" }, { "docid": "ac5b55820e7a41989ce93072b530d207", "score": "0.51901215", "text": "protected List getFieldOrder() { return Arrays.asList(new String[] { \"AceType\", \"AceFlags\", \"AceSize\" }); }", "title": "" }, { "docid": "7e91eb3c32e086b830f5a30a52719c45", "score": "0.51841116", "text": "public short getFieldOrder(){\n return q;\n }", "title": "" }, { "docid": "a321d2667a7b04141ca16b5edd98e44e", "score": "0.5182249", "text": "@Override\n public int getPriority() {\n return 110;\n }", "title": "" }, { "docid": "fc14caf89bf7dfd0361420bab5e7eab9", "score": "0.51776856", "text": "public int getOrder() {\n\t\treturn 0;\n\t}", "title": "" }, { "docid": "ce67507d71e002ec8fdb2e277307dca3", "score": "0.5160937", "text": "private void setLastAccessed(int aValue) {\n//$Section=Attribute set$ID=3F9C79230056$Preserve=no\n iLastAccessed = aValue;\n//$Section=Attribute set$ID=3F9C79230056$Preserve=no\n }", "title": "" }, { "docid": "2e84525691ba0c927f4725ed04139a86", "score": "0.51419705", "text": "@Override\r\n public boolean isAttributeDefault(int arg0) {\n return false;\r\n }", "title": "" }, { "docid": "ccc8a7bdd2a97006e064bd721fd64a33", "score": "0.5136467", "text": "private static int[] getAttrs(int i) {\n int[] iArr = new int[15];\n iArr[0] = 12352;\n iArr[1] = i == 3 ? 64 : 4;\n iArr[2] = 12324;\n iArr[3] = 8;\n iArr[4] = 12323;\n iArr[5] = 8;\n iArr[6] = 12322;\n iArr[7] = 8;\n iArr[8] = 12321;\n iArr[9] = 8;\n iArr[10] = 12325;\n iArr[11] = 16;\n iArr[12] = 12326;\n iArr[13] = 8;\n iArr[14] = 12344;\n return iArr;\n }", "title": "" }, { "docid": "2d3356f51f3611e3b5def9d60c93e517", "score": "0.5134805", "text": "@Override\r\n\tprotected List<String> getFieldOrder() {\r\n\t\treturn Arrays.asList(\"w\", \"h\", \"wpl\", \"refcount\", \"xres\", \"yres\", \"data\");\r\n\t}", "title": "" }, { "docid": "8208925c2241bbf1dd2042b9217a912a", "score": "0.51331794", "text": "private AttributeName() {\n }", "title": "" }, { "docid": "bdf856eb5747d1c0adb9b02ac018a43e", "score": "0.5131543", "text": "public boolean isPriority()\r\n/* 113: */ {\r\n/* 114:106 */ return false;\r\n/* 115: */ }", "title": "" }, { "docid": "f9cf43014075a181f81f77817df05f4d", "score": "0.51304793", "text": "public int getAtt()\r\n {\r\n return this.aAtt;\r\n }", "title": "" }, { "docid": "108a622adee31ad8b9c634a9699cf23e", "score": "0.51220816", "text": "protected List getFieldOrder() { return Arrays.asList(new String[] { \"baseAddress\", \"allocationBase\", \"allocationProtect\", \"regionSize\", \"state\", \"protect\", \"type\" }); }", "title": "" }, { "docid": "20680d29129b6c57e04bc40d8a690635", "score": "0.51215345", "text": "@Override\r\n\tpublic int getOrder() {\n\t\treturn -1;\r\n\t}", "title": "" }, { "docid": "184bdbf4b1174513758de979ad551694", "score": "0.5116792", "text": "boolean hasOrderlessFlatAttribute();", "title": "" }, { "docid": "918de8b0a6ae1cbdf2033e70d06ef577", "score": "0.51165473", "text": "static native void setAttribute(int collatoraddress, int type, int value);", "title": "" }, { "docid": "f2fc351319739017c8b0a39f237240b4", "score": "0.51134443", "text": "public int getPriority();", "title": "" }, { "docid": "f2fc351319739017c8b0a39f237240b4", "score": "0.51134443", "text": "public int getPriority();", "title": "" }, { "docid": "f2fc351319739017c8b0a39f237240b4", "score": "0.51134443", "text": "public int getPriority();", "title": "" }, { "docid": "f2fc351319739017c8b0a39f237240b4", "score": "0.51134443", "text": "public int getPriority();", "title": "" }, { "docid": "d513e6d71edfd8bef9c3e1a963bf0f13", "score": "0.511128", "text": "public Attributes(int elems)\n\t{\n super(elems);\n\t}", "title": "" }, { "docid": "658c20fc217303bb7d80db290a8f3e68", "score": "0.51107204", "text": "int getAttrInstSeCount();", "title": "" }, { "docid": "a76eae0a415ea9480e024be95a87b51a", "score": "0.5105973", "text": "@Override\n public void visitAttribute(Attribute attribute) {\n }", "title": "" }, { "docid": "e8827cac37b2d3fbe64eca513cec598e", "score": "0.51025677", "text": "public R_order() {\n super();\n }", "title": "" } ]
32e055d1281312a6e2be6c16c5d2054f
Set MapiContactTelephonePropertySetDto.carTelephoneNumber and return builder.
[ { "docid": "00659c58141f9768f24bd768fc82052f", "score": "0.7775236", "text": "public MapiContactTelephonePropertySetDtoBuilder carTelephoneNumber(String carTelephoneNumber) {\n this.model.carTelephoneNumber(carTelephoneNumber);\n return this;\n }", "title": "" } ]
[ { "docid": "d37ad173c8e33ba07b9333012b0418b4", "score": "0.6419397", "text": "public MapiContactTelephonePropertySetDtoBuilder mobileTelephoneNumber(String mobileTelephoneNumber) {\n this.model.mobileTelephoneNumber(mobileTelephoneNumber);\n return this;\n }", "title": "" }, { "docid": "17f8383e369447ffb1987078d6ed303f", "score": "0.59351856", "text": "public com.iot.data.schema.DevInfoContextData.Builder setTelephone(com.iot.data.schema.TelephoneData value) {\n validate(fields()[4], value);\n this.telephoneBuilder = null;\n this.telephone = value;\n fieldSetFlags()[4] = true;\n return this;\n }", "title": "" }, { "docid": "f73c868fa26a0807eab679c65cf2a44b", "score": "0.58570623", "text": "public com.fretron.Model.Contact.Builder setMobileNumber(java.lang.String value) {\n validate(fields()[1], value);\n this.mobileNumber = value;\n fieldSetFlags()[1] = true;\n return this;\n }", "title": "" }, { "docid": "be47e8d58b01a5e48e200f1b06c63fb7", "score": "0.58025604", "text": "public MapiContactTelephonePropertySetDtoBuilder callbackTelephoneNumber(String callbackTelephoneNumber) {\n this.model.callbackTelephoneNumber(callbackTelephoneNumber);\n return this;\n }", "title": "" }, { "docid": "acceaf6020464bdb905f4c9c36f885ab", "score": "0.57946306", "text": "public MapiContactTelephonePropertySetDtoBuilder primaryTelephoneNumber(String primaryTelephoneNumber) {\n this.model.primaryTelephoneNumber(primaryTelephoneNumber);\n return this;\n }", "title": "" }, { "docid": "19de8a5437503b83ee27da936cb5ad8e", "score": "0.5793637", "text": "public void setTelephoneNum(String telephoneNum) {\n this.telephoneNum = telephoneNum;\n }", "title": "" }, { "docid": "cd4ec006f5f67ab898e85535666c83c4", "score": "0.5755674", "text": "public void setTelephoneNumber(String telephoneNumber);", "title": "" }, { "docid": "d093011829156f4e167effe680f6a8e6", "score": "0.5755047", "text": "public MapiContactTelephonePropertySetDtoBuilder pagerTelephoneNumber(String pagerTelephoneNumber) {\n this.model.pagerTelephoneNumber(pagerTelephoneNumber);\n return this;\n }", "title": "" }, { "docid": "b52c22d7cc5e1f91c74a2d4b620bc079", "score": "0.5714642", "text": "public Builder setPhone(String phone) {\n this.phone = phone;\n return this;\n }", "title": "" }, { "docid": "f80dfb40414b7c4854fed182156d275d", "score": "0.56932336", "text": "public Builder setPhone(boolean value) {\n bitField0_ |= 0x00000002;\n phone_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "0a79ffd565bc23a3ca82ad0266fb95b6", "score": "0.5646105", "text": "public void setTelephone(String telephone) {\n this.telephone = telephone;\n }", "title": "" }, { "docid": "3d2c7eac19b7c2f61eda9e1d95e7065c", "score": "0.5609326", "text": "public void setTelephone(com.iot.data.schema.TelephoneData value) {\n this.telephone = value;\n }", "title": "" }, { "docid": "1a397cf457d5643237d9ac6d37205c8c", "score": "0.5568099", "text": "protected Place setPhoneNumber(String phone) {\n this.phone = phone;\n return this;\n }", "title": "" }, { "docid": "b8c226d2dbe8135bfbba07750fad09b7", "score": "0.5558886", "text": "public MapiContactTelephonePropertySetDtoBuilder businessTelephoneNumber(String businessTelephoneNumber) {\n this.model.businessTelephoneNumber(businessTelephoneNumber);\n return this;\n }", "title": "" }, { "docid": "e84529455d0b30d066ff9e6b93a51d9c", "score": "0.5540006", "text": "@Override\n public void setTelephoneNumber(java.lang.String telephoneNumber) {\n _contactInfo.setTelephoneNumber(telephoneNumber);\n }", "title": "" }, { "docid": "ef86fbaa5d24ccc615d9a4cbecddc532", "score": "0.5504655", "text": "public void setNumber(String n) // change the phone number\r\n { number = n;\r\n }", "title": "" }, { "docid": "cc14edb04c83636d207c44d6482faf07", "score": "0.5494518", "text": "public void setTelephone(String in) { this.telephone = in;}", "title": "" }, { "docid": "33b51edb72757abdb1bc8acfe5c5cf98", "score": "0.5492193", "text": "public Builder setPhoneNumberBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000008;\n phoneNumber_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "1fb572a3cabc70b3b893b024439a2726", "score": "0.54846203", "text": "public void setTelephone(String telephone) {\n\t\tthis.telephone = telephone;\n\t}", "title": "" }, { "docid": "a9c81c4248a243f31e693a04b9fab2d5", "score": "0.54799473", "text": "public AcquiredPhoneNumber setPhoneNumber(String phoneNumber) {\n this.phoneNumber = phoneNumber;\n return this;\n }", "title": "" }, { "docid": "b19006e2213ca330f9f9f8dd6645d51e", "score": "0.5479223", "text": "public MapiContactTelephonePropertySetDtoBuilder assistantTelephoneNumber(String assistantTelephoneNumber) {\n this.model.assistantTelephoneNumber(assistantTelephoneNumber);\n return this;\n }", "title": "" }, { "docid": "74be9d88528aa8515784a9e0e3d28dbe", "score": "0.54751825", "text": "public Builder setPhoneNumber(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000008;\n phoneNumber_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "3ea305b2a73fe078e774df1a6490a87b", "score": "0.5444078", "text": "public com.iot.data.schema.DevInfoContextData.Builder setTelephoneBuilder(com.iot.data.schema.TelephoneData.Builder value) {\n clearTelephone();\n telephoneBuilder = value;\n return this;\n }", "title": "" }, { "docid": "1c750362c6e4beaec6694c1ef125f864", "score": "0.54348516", "text": "public void setTelephone(java.lang.String telephone) {\n this.telephone = telephone;\n }", "title": "" }, { "docid": "b954ec5c7aad7c3ede820bdc67099b8e", "score": "0.5432488", "text": "public MapiContactTelephonePropertySetDtoBuilder otherTelephoneNumber(String otherTelephoneNumber) {\n this.model.otherTelephoneNumber(otherTelephoneNumber);\n return this;\n }", "title": "" }, { "docid": "b245cfce2bf457a291ebf203babba2c0", "score": "0.5423811", "text": "public void setPhoneNumber(int phoneNumber) {\n mPhoneNumber = phoneNumber;\n }", "title": "" }, { "docid": "0a8dec5d57be4897258755e59db1bc5a", "score": "0.5419049", "text": "public MapiContactTelephonePropertySetDtoBuilder radioTelephoneNumber(String radioTelephoneNumber) {\n this.model.radioTelephoneNumber(radioTelephoneNumber);\n return this;\n }", "title": "" }, { "docid": "5e7c1db06460333692f14cdf474deb57", "score": "0.54148155", "text": "public ContactInfo withPhone(String phone) {\n this.phone = phone;\n return this;\n }", "title": "" }, { "docid": "a1546531b5c3511b0d5192fcacd8dc29", "score": "0.54074776", "text": "public ContactInfo withMobile(String mobile) {\n this.mobile = mobile;\n return this;\n }", "title": "" }, { "docid": "4f6f17ecada24e0a9817d77e39b53ab0", "score": "0.54018897", "text": "public Builder clearPhone() {\n bitField0_ = (bitField0_ & ~0x00000080);\n phone_ = getDefaultInstance().getPhone();\n onChanged();\n return this;\n }", "title": "" }, { "docid": "4c0a7cf84e55994a2417081b3b3716c1", "score": "0.54016864", "text": "public Builder clearPhone() {\n bitField0_ = (bitField0_ & ~0x00000002);\n phone_ = getDefaultInstance().getPhone();\n onChanged();\n return this;\n }", "title": "" }, { "docid": "af82252311c9cab2db13a7a44b31ede1", "score": "0.53806406", "text": "public void setPhoneNo(String phoneNo);", "title": "" }, { "docid": "66b0981a322007c3b374554c6846e4a2", "score": "0.53624034", "text": "public com.maxpoint.cascading.avro.TestExtraLarge.Builder setField311(java.lang.CharSequence value) {\n validate(fields()[311], value);\n this.field311 = value;\n fieldSetFlags()[311] = true;\n return this; \n }", "title": "" }, { "docid": "1f42dda9a3a3d5e150dfcc87a238b3fd", "score": "0.5362147", "text": "public com.fretron.Model.Contact.Builder clearMobileNumber() {\n mobileNumber = null;\n fieldSetFlags()[1] = false;\n return this;\n }", "title": "" }, { "docid": "fe2ff74bcc708aa33483f99a71367321", "score": "0.53486353", "text": "public void setTelephone(String tel)\n\t{\n\t\ttelephone = tel;\n\t}", "title": "" }, { "docid": "6ddadb0031fbaf0c6f605f81724f1675", "score": "0.5321027", "text": "public TelephoneNumber(String phoneNumber) {\r\n\t\tthis.checkNumber(phoneNumber); // check phone number to ensure it is correct\r\n\t\tString[] str = phoneNumber.split(\"(-)\");\r\n\t\tthis.setAreaCode(Integer.parseInt(str[0]));\r\n\t\tthis.setPrefix(Integer.parseInt(str[1]));\r\n\t\tthis.setLineNumber(Integer.parseInt(str[2]));\r\n\t}", "title": "" }, { "docid": "77c7085ffa124900f82a5ef6ac86547d", "score": "0.53075886", "text": "public Builder setPhoneBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000080;\n phone_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "ced3548176ee2b8e4019ff37e024f363", "score": "0.52962136", "text": "public void setPhoneNumber(java.lang.String param){\n \n this.localPhoneNumber=param;\n \n\n }", "title": "" }, { "docid": "ced3548176ee2b8e4019ff37e024f363", "score": "0.52962136", "text": "public void setPhoneNumber(java.lang.String param){\n \n this.localPhoneNumber=param;\n \n\n }", "title": "" }, { "docid": "188a17a68e9dde20745a9ebb8b4ac344", "score": "0.5294949", "text": "public Builder clearPhoneNumber() {\n bitField0_ = (bitField0_ & ~0x00000008);\n phoneNumber_ = getDefaultInstance().getPhoneNumber();\n onChanged();\n return this;\n }", "title": "" }, { "docid": "0b5754d3390e4179dec222dbd55ab74a", "score": "0.52856946", "text": "public PhoneNumber(String number) {\n this.setPhoneNumber(number);\n }", "title": "" }, { "docid": "0e2164d778809ebf981f9c2a114edd9f", "score": "0.5277465", "text": "public void setPhoneNumber (String n){\n phoneNum = n;\n }", "title": "" }, { "docid": "bccc8da7f6a86893d7986714a06838a6", "score": "0.52733946", "text": "public Builder setPhone(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000080;\n phone_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "b7fd4f667fd7dd3ac1e4ac00d664da06", "score": "0.5271001", "text": "public void setPhoneNumber(String phoneNumber){\n this.phoneNumber = phoneNumber;\n }", "title": "" }, { "docid": "119aa96a097bc14ed1c07b8c63e5de55", "score": "0.5263569", "text": "public Builder setPhoneBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000002;\n phone_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "5155c56641e78c332cda072617271870", "score": "0.52410626", "text": "public Builder setPhone(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000002;\n phone_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "d916bb73da47b3a8d3a19a86dbbacdfd", "score": "0.52408946", "text": "public MapiContactTelephonePropertySetDtoBuilder companyMainTelephoneNumber(String companyMainTelephoneNumber) {\n this.model.companyMainTelephoneNumber(companyMainTelephoneNumber);\n return this;\n }", "title": "" }, { "docid": "f3ba104f4d0dfeff93d0224baa133102", "score": "0.5236719", "text": "public final AddressBuilder phone(final String phone) {\n addressDetails.setPhone(phone);\n return this;\n }", "title": "" }, { "docid": "f86dcfb293d59d66870057af2e239573", "score": "0.52257925", "text": "public void SetPhoneNumber(String phoneNumber) { this.phoneNumber = phoneNumber; }", "title": "" }, { "docid": "ec26b7c161d6ee72d8b767a26b6c66d4", "score": "0.52234304", "text": "public void setmPhone(String mPhone) {\n this.mPhone = mPhone;\n }", "title": "" }, { "docid": "3ab9f33402f1d292e31789b99f254c64", "score": "0.5202619", "text": "public com.fretron.Model.Contact.Builder setMobileNumbers(java.util.List<java.lang.String> value) {\n validate(fields()[4], value);\n this.mobileNumbers = value;\n fieldSetFlags()[4] = true;\n return this;\n }", "title": "" }, { "docid": "11cc439a129af7f55e9c7cfa4de1b7bc", "score": "0.51982975", "text": "public CustomerCreateRequest withPhoneNumber(String phoneNumber) {\n this.phoneNumber = phoneNumber;\n return this;\n }", "title": "" }, { "docid": "3eace840ce5b81bc5e5d6a03a532e3c6", "score": "0.51977444", "text": "@Override\n\tpublic void setCompanyphone(String companyphone) {\n\t\tmodel.setCompanyphone(companyphone);\n\t}", "title": "" }, { "docid": "bfa52f54115b1d8e18250aa3f547bfc7", "score": "0.5192969", "text": "public void setTelephoneNo(String telephoneNo) {\n this.telephoneNo = telephoneNo == null ? null : telephoneNo.trim();\n }", "title": "" }, { "docid": "bfd9be35382527e04b75a238e48e5016", "score": "0.51863754", "text": "public com.iot.data.schema.DevInfoContextData.Builder clearTelephone() {\n telephone = null;\n telephoneBuilder = null;\n fieldSetFlags()[4] = false;\n return this;\n }", "title": "" }, { "docid": "0d6535da8c367fd5cdd967bd432351b5", "score": "0.5181483", "text": "public void setPhoneNumber(String phoneNumber)\n {\n this.phoneNumber = phoneNumber;\n }", "title": "" }, { "docid": "d15c35a73cb2185105467d53004dab77", "score": "0.51808816", "text": "public void setPhoneNumber(String phoneNumber) {\n\t\tString[] token = phoneNumber.split(\",\");\n\t\tif (token != null)\n\t\t\tthis.phoneNumber = token[0];\n\t\telse\n\t\t\tthis.phoneNumber = phoneNumber;\n\t}", "title": "" }, { "docid": "a379fd72b1f29646c4935d41b3acf94b", "score": "0.51800716", "text": "public void setPhoneNumber(String phoneNumber) {\r\n this.phoneNumber = phoneNumber;\r\n }", "title": "" }, { "docid": "a379fd72b1f29646c4935d41b3acf94b", "score": "0.51800716", "text": "public void setPhoneNumber(String phoneNumber) {\r\n this.phoneNumber = phoneNumber;\r\n }", "title": "" }, { "docid": "1cd6b511a92cda8793d3e1e7e7d66d14", "score": "0.5169821", "text": "public Builder setPhones(\n int index, com.data_analysis.CustomerInfoRecord.Customer.PhoneNumber value) {\n if (phonesBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensurePhonesIsMutable();\n phones_.set(index, value);\n onChanged();\n } else {\n phonesBuilder_.setMessage(index, value);\n }\n return this;\n }", "title": "" }, { "docid": "3b8707f428de4ffd1e2ad57ed0303a64", "score": "0.5157888", "text": "public void setPhoneNumber(Long phoneNumber) {\n this.phoneNumber = phoneNumber;\n }", "title": "" }, { "docid": "7897fe04c13b7ad42da67faa381cd4d4", "score": "0.51539826", "text": "public void setPhone(String str) {\n this.phone = str;\n }", "title": "" }, { "docid": "b7272c7f2f30f2a1b5915e63c3ef3adf", "score": "0.5147483", "text": "public MapiContactTelephonePropertySetDtoBuilder telexNumber(String telexNumber) {\n this.model.telexNumber(telexNumber);\n return this;\n }", "title": "" }, { "docid": "6db0075b594c3344c012f0a1c3af584e", "score": "0.51471955", "text": "public com.data_analysis.CustomerInfoRecord.Customer.PhoneNumber.Builder addPhonesBuilder() {\n return getPhonesFieldBuilder().addBuilder(\n com.data_analysis.CustomerInfoRecord.Customer.PhoneNumber.getDefaultInstance());\n }", "title": "" }, { "docid": "e3408729a8b2b30d789b3da08142ef9b", "score": "0.514294", "text": "public Builder clearPhone() {\n bitField0_ = (bitField0_ & ~0x00000002);\n phone_ = false;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "e3f1dbc756789dba169199b9f3721053", "score": "0.5136532", "text": "public void setPhoneNumber(String phoneNumber) {\n this.phoneNumber = phoneNumber;\n }", "title": "" }, { "docid": "e3f1dbc756789dba169199b9f3721053", "score": "0.5136532", "text": "public void setPhoneNumber(String phoneNumber) {\n this.phoneNumber = phoneNumber;\n }", "title": "" }, { "docid": "e3f1dbc756789dba169199b9f3721053", "score": "0.5136532", "text": "public void setPhoneNumber(String phoneNumber) {\n this.phoneNumber = phoneNumber;\n }", "title": "" }, { "docid": "e3f1dbc756789dba169199b9f3721053", "score": "0.5136532", "text": "public void setPhoneNumber(String phoneNumber) {\n this.phoneNumber = phoneNumber;\n }", "title": "" }, { "docid": "e3f1dbc756789dba169199b9f3721053", "score": "0.5136532", "text": "public void setPhoneNumber(String phoneNumber) {\n this.phoneNumber = phoneNumber;\n }", "title": "" }, { "docid": "e3f1dbc756789dba169199b9f3721053", "score": "0.5136532", "text": "public void setPhoneNumber(String phoneNumber) {\n this.phoneNumber = phoneNumber;\n }", "title": "" }, { "docid": "7f99d5ee517bbf3309fb00b39d3627ae", "score": "0.51362044", "text": "public void setCompanyPhoneNo(String companyPhoneNo) {\r\n this.companyPhoneNo = companyPhoneNo;\r\n }", "title": "" }, { "docid": "55ec43aaefbd4de301c502b7e5659414", "score": "0.5124891", "text": "public void setPhone(String n)\r\n {\r\n phone=n;\r\n }", "title": "" }, { "docid": "ed446e9887cb06915efac31aaa6a50f0", "score": "0.51218235", "text": "public void setTelPhone(String telPhone) {\r\n this.telPhone = telPhone == null ? null : telPhone.trim();\r\n }", "title": "" }, { "docid": "5d74a8276774b5c1b470c832f66c1183", "score": "0.51167125", "text": "public MapiContactTelephonePropertySetDtoBuilder defaultTelephoneNumber(String defaultTelephoneNumber) {\n this.model.defaultTelephoneNumber(defaultTelephoneNumber);\n return this;\n }", "title": "" }, { "docid": "46156367e347cd56d3c6e5ad0c5cfc7a", "score": "0.5102143", "text": "public void setTelNumber(java.lang.String telNumber) {\r\n this.telNumber = telNumber;\r\n }", "title": "" }, { "docid": "4d98edfaa3272bf56ae90a82eee6e8b6", "score": "0.5094869", "text": "public void setPhone(String phoneno)\r\n\t{\r\n\t\tphone = phoneno;\r\n\t}", "title": "" }, { "docid": "8c62f6db9397cddf922783a141930dff", "score": "0.5092846", "text": "public void setMobileNumber(java.lang.String mobileNumber) {\n\t\t_person.setMobileNumber(mobileNumber);\n\t}", "title": "" }, { "docid": "737aa4ae7c35fc628b036fc6a4671fd0", "score": "0.50664157", "text": "public void setMobileNumber(java.lang.String value) {\n this.mobileNumber = value;\n }", "title": "" }, { "docid": "0126b7a46b9208f7da7d11501a9c6ee7", "score": "0.50472194", "text": "public MapiContactTelephonePropertySetDtoBuilder homeTelephoneNumber(String homeTelephoneNumber) {\n this.model.homeTelephoneNumber(homeTelephoneNumber);\n return this;\n }", "title": "" }, { "docid": "a03cc421963cd742262db41a319b0c88", "score": "0.50430506", "text": "public void setPhoneNum(String phoneNum) {\n this.phoneNum.set(phoneNum);\n }", "title": "" }, { "docid": "d28ec63217cef9bf1220aaa7f84d3409", "score": "0.5022215", "text": "@Test\n public void testSetPhoneNumber() {\n ContactInfo ct = new ContactInfo(\"1234567890\", \"test@test.com\");\n assertEquals(ct.getPhoneNumber(), \"1234567890\");\n\n ct.setPhoneNumber(\"9876543210\");\n assertEquals(ct.getPhoneNumber(), \"9876543210\");\n }", "title": "" }, { "docid": "2d3a2a2ec51f44f45b840378cea168b6", "score": "0.502142", "text": "public com.iot.data.schema.TelephoneData.Builder getTelephoneBuilder() {\n if (telephoneBuilder == null) {\n if (hasTelephone()) {\n setTelephoneBuilder(com.iot.data.schema.TelephoneData.newBuilder(telephone));\n } else {\n setTelephoneBuilder(com.iot.data.schema.TelephoneData.newBuilder());\n }\n }\n return telephoneBuilder;\n }", "title": "" }, { "docid": "1bdef1c94868b6eabdc6e705a610e2af", "score": "0.50199777", "text": "public void setPhoneNo(String phoneNo) {\r\n this.phoneNo = phoneNo;\r\n }", "title": "" }, { "docid": "f9ba88be32b5fb5b5d455fe7632afdf5", "score": "0.50162446", "text": "public com.maxpoint.cascading.avro.TestExtraLarge.Builder setField911(java.lang.CharSequence value) {\n validate(fields()[911], value);\n this.field911 = value;\n fieldSetFlags()[911] = true;\n return this; \n }", "title": "" }, { "docid": "5564a0214943477a5658f64ed714c25b", "score": "0.5009248", "text": "public void setMobileTel(String mobileTel)\n {\n this.mobileTel = mobileTel;\n }", "title": "" }, { "docid": "393bf888e45caf786dc035b56d48a03e", "score": "0.5008809", "text": "public void setPhone(String phone) {\r\n this.phone = phone;\r\n }", "title": "" }, { "docid": "f263b5d117e2953feda2adb589e90520", "score": "0.50045216", "text": "public CustomerUpdateRequest withPhoneNumber(String phoneNumber) {\n this.phoneNumber = phoneNumber;\n return this;\n }", "title": "" }, { "docid": "4a232a09c4ef402911b96e4707be1855", "score": "0.50034493", "text": "public com.maxpoint.cascading.avro.TestExtraLarge.Builder setField985(java.lang.CharSequence value) {\n validate(fields()[985], value);\n this.field985 = value;\n fieldSetFlags()[985] = true;\n return this; \n }", "title": "" }, { "docid": "ae6314113e169719712169ea41840588", "score": "0.50012547", "text": "public void setPhoneNo(String phoneNo) {\n this.phoneNo = phoneNo;\n }", "title": "" }, { "docid": "46308260ad7857800f9920bc476090ea", "score": "0.49942833", "text": "public com.maxpoint.cascading.avro.TestExtraLarge.Builder setField286(java.lang.CharSequence value) {\n validate(fields()[286], value);\n this.field286 = value;\n fieldSetFlags()[286] = true;\n return this; \n }", "title": "" }, { "docid": "b6c43d2963a88b89e162a8a7c9719453", "score": "0.49915078", "text": "public void setPhoneSerialNum(String phoneSerialNum) {\n this.phoneSerialNum = phoneSerialNum == null ? null : phoneSerialNum.trim();\n }", "title": "" }, { "docid": "16749b05d183b2a95ef53ce1825b6df3", "score": "0.4990439", "text": "public void setMobileNumber(String mobileNumber){\n this.mobileNumber = mobileNumber;\n //Update hashMap value..\n hashMap.put(\"mobileNumber\", mobileNumber);\n }", "title": "" }, { "docid": "c887bd8c7a4b07fcf18e971d9b63175b", "score": "0.49873182", "text": "public void setPhone(String phone){\n\n this.phone = phone;\n\n }", "title": "" }, { "docid": "b08b0a90455b387661671073440bfcf4", "score": "0.49833667", "text": "public void setPhoneNumber(final String phoneNumber) {\n this.phoneNumber = phoneNumber;\n }", "title": "" }, { "docid": "efe27ef7462bdb089ef166ce8b310579", "score": "0.49732324", "text": "public com.maxpoint.cascading.avro.TestExtraLarge.Builder setField211(java.lang.CharSequence value) {\n validate(fields()[211], value);\n this.field211 = value;\n fieldSetFlags()[211] = true;\n return this; \n }", "title": "" }, { "docid": "03f2384b34dfe993eb8bbc329e0e4437", "score": "0.49712384", "text": "public com.maxpoint.cascading.avro.TestExtraLarge.Builder setField933(java.lang.CharSequence value) {\n validate(fields()[933], value);\n this.field933 = value;\n fieldSetFlags()[933] = true;\n return this; \n }", "title": "" }, { "docid": "8a7a12cf5c0662e899e2df615c3e46c3", "score": "0.49698278", "text": "public void setPhoneNumber(String phoneNumber){\n this.phoneNumber = phoneNumber;\n //Update hashMap value..\n hashMap.put(\"phoneNumber\", phoneNumber);\n }", "title": "" }, { "docid": "b7ead29e5a111385e0e1ed28c40e9781", "score": "0.49621427", "text": "public CellNumber(String phonenumber) {\r\n this.phonenumber = phonenumber;\r\n }", "title": "" }, { "docid": "c476f57c29ba8a9ae875ee7818985978", "score": "0.49599952", "text": "public Builder setNumber(int value) {\n bitField0_ |= 0x00000001;\n number_ = value;\n onChanged();\n return this;\n }", "title": "" } ]
f2e2a20240a1759f450c0e07be547ef3
Returns a Date representation of date objects as mm/dd/yyyy based on the divider parameter (ie. '','/') Creation date: (4/16/2002 7:28:45 PM)
[ { "docid": "04013d20553165ae95de66730bfa7c35", "score": "0.6453558", "text": "public static java.util.Date dateFormat(String myDate, String divider) {\n\t\tif (myDate != null) {\n\t\t\tSimpleDateFormat formatter = new SimpleDateFormat(\"MM\" + divider + \"dd\" + divider + \"yyyy\");\n\t\t\t// Parse the string back into a Date.\n\t\t\tParsePosition pos = new ParsePosition(0);\n\t\t\tDate theDate = formatter.parse(myDate, pos);\n\t\t\treturn theDate;\n\t\t} else\n\t\t\treturn null;\n\t}", "title": "" } ]
[ { "docid": "4d516d9bb7d6fd64956ba99c698f0762", "score": "0.7173907", "text": "public static String dateFormat(Object myDate, String divider) {\n\t\tString output = \"\";\n\t\tSimpleDateFormat formatter = new SimpleDateFormat(\"MM\" + divider + \"dd\" + divider + \"yyyy\");\n\t\tDate currentTime_1 = new Date();\n\t\t//String dateString = formatter.format(currentTime_1);\n\t\tif (myDate != null) {\n\t\t\tif (myDate instanceof java.sql.Date) {\n\t\t\t\tjava.sql.Date nd = (java.sql.Date) myDate;\n\t\t\t\tcurrentTime_1 = nd;\n\t\t\t\toutput = formatter.format(currentTime_1);\n\t\t\t} else if (myDate instanceof java.util.Date) {\n\t\t\t\tjava.util.Date nd = (java.util.Date) myDate;\n\t\t\t\tcurrentTime_1 = nd;\n\t\t\t\toutput = formatter.format(currentTime_1);\n\t\t\t}\n\t\t\treturn output;\n\t\t} else\n\t\t\treturn null;\n\t}", "title": "" }, { "docid": "0763388d11c4fad1f7d110899782c90b", "score": "0.6410683", "text": "public static String getTomorrowsDate(){\n\t\tCalendar cal = Calendar.getInstance();\n\t\tcal.add(Calendar.DATE, 1);\n\t\tSimpleDateFormat sdf = new SimpleDateFormat(\"MM/dd/yyyy\");\n\t\tString s1=sdf.format(cal.getTime());\n\t\tString s2=UtilityCommon.getDateFormat(s1);\n\t\t\n\t\treturn s2;\n\t}", "title": "" }, { "docid": "6bd31f868530f4dab32438c341e1fa4a", "score": "0.6356229", "text": "public static String DateCaluclator() {\r\n\r\n\t\tDate today = new Date();\r\n\t\tCalendar cal = Calendar.getInstance();\r\n\t\tcal.setTime(today);\r\n\t\tint dayOfMonth = cal.get(Calendar.DAY_OF_MONTH);\r\n\t\tint month = cal.get(Calendar.MONTH);\r\n\t\tint year = cal.get(Calendar.YEAR);\r\n\t\tString Date = month + \"/\" + dayOfMonth + \"/\" + (year);\r\n\t\treturn Date;\r\n\t}", "title": "" }, { "docid": "e57b1df69f6cccaed7d8f3709c668e41", "score": "0.62630916", "text": "public static String getDate() {\n return getDate(\"MM/DD/YY\");\n }", "title": "" }, { "docid": "f541fe9dc6458ff5c28603543aae9f30", "score": "0.61979127", "text": "@Override\n public String getDateString(){\n //formatted as: yyyy-mm-dd\n String dayStr = ((\"\"+day).length() == 2) ? \"\"+day : \"0\"+day;\n String monthStr = ((\"\"+month).length() == 2) ? \"\"+month : \"0\"+month;\n String date = year + \"-\" + monthStr + \"-\" + dayStr;\n\n return date;\n }", "title": "" }, { "docid": "0d4df382027b293f69553d59001d636b", "score": "0.61485773", "text": "public String GetDate() {\n\t\tSimpleDateFormat sdfDate = new SimpleDateFormat(\"dd-MM-yyyy\");\n\t\tDate now = new Date();\n\t\tString strDate = sdfDate.format(now);\n\t\tstrDate = strDate.replace(\"-\", \"/\");\n\t\treturn strDate;\n\t}", "title": "" }, { "docid": "985e83c3bb90b7b44d4fa8f9bd832abd", "score": "0.61357254", "text": "public String toString()\n\t{\n\t\treturn String.format(\"%02d/%02d/%02d\", day, month, year);\n\t}", "title": "" }, { "docid": "3a0f859ad6437d2baee84904bffd42a5", "score": "0.61307013", "text": "public String toString(){\n\t\t//TO DO\n\t\treturn (month<10 ? \"\"+month+\"/\" : month+\"/\")+(day<10? \"\"+day+\"/\" : day+\"/\")+year;\n\t}", "title": "" }, { "docid": "6a451cd9d3f25f81a3e2d9ce94851d97", "score": "0.6118818", "text": "public String dateToString() {\r\n\t\treturn month + \"/\" + day + \"/\" + year;\r\n\t}", "title": "" }, { "docid": "71872654c1d512c87afff18200b5ba98", "score": "0.6088994", "text": "private String getDate() {\r\n return (gc.get(MONTH) + 1) + \"/\" + gc.get(DAY_OF_MONTH) + \"/\"\r\n + gc.get(YEAR) + \" \" + DAYS[gc.get(DAY_OF_WEEK)];\r\n }", "title": "" }, { "docid": "9b16e0e0eec727e296bd80176bc2dc3b", "score": "0.60618705", "text": "public static String getDate(Object obj) {\n if (obj != null) {\n DateFormat dateFormat = new SimpleDateFormat(\"dd/MM/yyyy\");\n String strDate = dateFormat.format(obj);\n return strDate;\n } else {\n return \"\";\n }\n }", "title": "" }, { "docid": "917c9738549a46cc787e5b55fffa0314", "score": "0.6040218", "text": "public String formattedDate() {\n String date = this.month + \"/\" + this.day + \"/\" + this.year;\n return date;\n }", "title": "" }, { "docid": "6b27d8dcfe8546fd11ef28109ed7b8c6", "score": "0.60339826", "text": "public static String getDateFormatDDMMYYYY(Date date) {\n return getDate2String(date,FORMAT_DATE_ddMMyyyy_Separator_Slash);\n }", "title": "" }, { "docid": "15cdce2c21ee5e11f5beeae9546fd575", "score": "0.5996002", "text": "public String dateStr(String str) {\n String[] strArray = str.split(\"/\");\n StringBuilder sb = new StringBuilder();\n\n if (strArray[0].length() == 1) {\n strArray[0] = \"0\" + strArray[0];\n }\n if (strArray[1].length() == 1) {\n strArray[1] = \"0\" + strArray[1];\n }\n String temp = strArray[0];\n strArray[0] = strArray[1];\n strArray[1] = temp;\n\n for (int i = 0; i < strArray.length; i++) {\n sb.append(strArray[i]);\n sb.append(\"-\");\n }\n sb.deleteCharAt(sb.length() - 1);\n return sb.toString();\n }", "title": "" }, { "docid": "724e2028abaedfaac0afd5075dd9a9e5", "score": "0.5923148", "text": "private String formatDate(int year, int month, int day) {\n String y = String.valueOf(year);\n String m = String.valueOf(month);\n String d = String.valueOf(day);\n\n if (m.length() == 1) {\n m = \"0\" + m;\n }\n\n if (d.length() == 1) {\n d = \"0\" + d;\n }\n\n return y + \"/\" + m + \"/\" + d;\n }", "title": "" }, { "docid": "703e30207e28e4c59ab24046c70f1c8c", "score": "0.5916914", "text": "public String createDate() {\n\t\tSimpleDateFormat formatter = new SimpleDateFormat(\"yyyy-MM-dd\");\n\t\treturn formatter.format(new Date());\n\t}", "title": "" }, { "docid": "5d62487152b6d6955d22fad5923beabd", "score": "0.5911181", "text": "private String formatDate(Date date)\n\t{\n\t\tString defaultDateString = \"\";\n\t\tSimpleDateFormat format = new SimpleDateFormat(\"dd/mm/yyyy\");\n\t\t\n\t\treturn (date == null) ? defaultDateString : format.format(date);\n\t}", "title": "" }, { "docid": "c3fdee55875b2db93e0c6c91d23d47f6", "score": "0.5861127", "text": "public static String getDate() {\n\n\t\tSimpleDateFormat format = new SimpleDateFormat(\"yyyy.MM.dd\");\n\t\treturn format.format(new Date());\n\t\t// return String.format(\"%d.%d.%d\", year, month, day);\n\t}", "title": "" }, { "docid": "9b0fa38f19a6b3e27ab15715cad7990b", "score": "0.5825884", "text": "public static String returnDateStamp() {\n String pattern = \"dd MMMM , yyyy\";\n SimpleDateFormat simpleDateFormat = new SimpleDateFormat(pattern);\n String date = simpleDateFormat.format(new Date());\n return date;\n }", "title": "" }, { "docid": "d7b4e669838aa786e5fd5f09dab36499", "score": "0.5798722", "text": "public String getDate () {\n\n if (isValidDate) {\n\n int day = date.getDayOfMonth();\n int year = date.getYear();\n String month = getMonth(date.getMonth().toString());\n\n String date = String.format(\"%s %02d, %d\", month, day, year);\n\n return date;\n }\n\n return \"\";\n }", "title": "" }, { "docid": "06eb8fbf7c7e3a19fe090cdcb7807207", "score": "0.5778691", "text": "public void dateObjectConverter()\n {\n String concatenated = this.inputDate;\n SimpleDateFormat dateFormatter = new SimpleDateFormat(\"MM/dd/yyyy\");\n try {\n userInputStringToDate = dateFormatter.parse(concatenated);\n }\n catch(ParseException e) {\n System.out.println(e.getMessage());\n }\n }", "title": "" }, { "docid": "9034d5bfb799d73026391d47bf47cc69", "score": "0.5763853", "text": "protected String getPublishedDateFormated() {\n SimpleDateFormat formatter = new SimpleDateFormat(\"yyyy-MM-dd\", Locale.FRANCE);\n Date dateObj;\n try {\n dateObj = formatter.parse(publishedDate);\n String[] parts = formatter.format(dateObj).split(\"-\");\n return parts[2] + \"/\" + parts[1] + \"/\" + parts[0];\n } catch (ParseException e) {\n e.printStackTrace();\n return null;\n }\n }", "title": "" }, { "docid": "f601d8bde330dc6ed94a8041c73a5d12", "score": "0.57494324", "text": "private String formatDate(Date dateObject) {\n SimpleDateFormat dateFormat = new SimpleDateFormat(\"LLL dd, yyyy\");\n return dateFormat.format(dateObject);\n }", "title": "" }, { "docid": "f601d8bde330dc6ed94a8041c73a5d12", "score": "0.57494324", "text": "private String formatDate(Date dateObject) {\n SimpleDateFormat dateFormat = new SimpleDateFormat(\"LLL dd, yyyy\");\n return dateFormat.format(dateObject);\n }", "title": "" }, { "docid": "3c826fe60ac770816fcb1edfa1c1e12e", "score": "0.57399535", "text": "public String getCheckInDate(){\n SimpleDateFormat sdf = new SimpleDateFormat(\"MM/dd/YYYY\");\n return sdf.format(checkInDate.getTime());\n }", "title": "" }, { "docid": "e9fa1ca9bbe9159e8a74db3f4e7c6c3a", "score": "0.5737603", "text": "public void dateObjectConverter()\n\t{\n\t\tString concatenated = this.inputDate;\n\t\tSimpleDateFormat dateFormatter = new SimpleDateFormat(\"MM/dd/yyyy\"); \n\t\ttry {\n\t\t\tuserInputStringToDate = dateFormatter.parse(concatenated);\n\t\t}\n\t\tcatch(ParseException e) {\n\t\t\tSystem.out.println(e.getMessage());\n\t\t}\n\t}", "title": "" }, { "docid": "6dd3f005973d5ede134385c878590c49", "score": "0.5725149", "text": "public String convertDepartDate(String departDate){\n String[] departDateList;\n String day;\n String month;\n String year;\n departDateList = departDate.split(\" \");\n day = departDateList[2];\n month = departDateList[1];\n year = departDateList[5];\n\n if(month.contains(\"Jan\"))\n month = \"01\";\n else if(month.contains(\"Feb\"))\n month= \"02\";\n else if(month.contains(\"Mar\"))\n month= \"03\";\n else if(month.contains(\"Apr\"))\n month= \"04\";\n else if(month.contains(\"May\"))\n month= \"05\";\n else if(month.contains(\"Jun\"))\n month= \"06\";\n else if(month.contains(\"Jul\"))\n month= \"07\";\n else if(month.contains(\"Aug\"))\n month= \"08\";\n else if(month.contains(\"Sep\"))\n month= \"09\";\n else if(month.contains(\"Oct\"))\n month= \"10\";\n else if(month.contains(\"Nov\"))\n month= \"11\";\n else if(month.contains(\"Dec\"))\n month= \"12\";\n\n\n\n\n return year+\"-\"+month+\"-\"+day;\n }", "title": "" }, { "docid": "2a60745557f337f8986168525e16b4f6", "score": "0.57179034", "text": "java.lang.String getDauDate();", "title": "" }, { "docid": "008014818493a28757a3ee7cd6188e7b", "score": "0.5709868", "text": "private Date formatDate(Document socialBladeDoc) {\n String dateUF = socialBladeDoc.select(\"#YouTubeUserTopInfoBlock > div.YouTubeUserTopInfo > span:contains(User Created) ~ span[style]\").text();\n\n if (dateUF.length() == 13) {\n dateUF = dateUF.substring(0, 4) + \"0\" + dateUF.substring(4);\n }\n\n dateUF = dateUF.substring(0, 6) + dateUF.substring(9);\n\n SimpleDateFormat df = new SimpleDateFormat(\"MMM dd yyyy\");\n\n Date date = null;\n try {\n date = df.parse(dateUF);\n } catch (ParseException e) {\n e.printStackTrace();\n }\n\n return (date);\n }", "title": "" }, { "docid": "29dc1fe08ae07925d2049bb57dbcf923", "score": "0.57083845", "text": "public static String getTomorrowsDate(String dateFormat, String monthFormat, String yearFormat, String divider, String dateMonthYearOrder) throws Exception\r\n\t{\r\n\t\tDateFormat df;\r\n\t\tswitch(dateMonthYearOrder.toLowerCase())\r\n\t\t{\r\n\t\tcase \"dmy\":\r\n\t\t\tdf = new SimpleDateFormat(dateFormat + divider + monthFormat + divider + yearFormat);\r\n\t\t\tbreak;\r\n\r\n\t\tcase \"ymd\": \r\n\t\t\tdf = new SimpleDateFormat(yearFormat + divider + monthFormat + divider + dateFormat);\r\n\t\t\tbreak;\r\n\r\n\t\tcase \"mdy\": \r\n\t\t\tdf = new SimpleDateFormat(monthFormat + divider + dateFormat + divider + yearFormat);\r\n\t\t\tbreak;\r\n\r\n\t\tdefault: //default = dmy\r\n\t\t\tdf = new SimpleDateFormat(yearFormat + divider + monthFormat + divider + dateFormat);\r\n\t\t\tbreak;\r\n\t\t}\r\n\r\n\t\tCalendar cal = Calendar.getInstance();\r\n\t\tcal.add(Calendar.DATE, 1); \r\n\t\tString reportDate = df.format(cal.getTime());\r\n\t\treturn reportDate;\r\n\t}", "title": "" }, { "docid": "d4a76e58c0f4ed21ccd778cbddff961f", "score": "0.5706812", "text": "public static String getDateFormat(String MMddyyyy)\t{\n\n\t\tString text = MMddyyyy;\n\n\t\tString month = text.split(\"/\")[0];\n\n\t\tString date = text.split(\"/\")[1];\n\n\t\tString textActual = getDate(date)+\" \" +getMonth(month)+\" \"+text.split(\"/\")[2];\n\n\t\treturn textActual;\n\n\t}", "title": "" }, { "docid": "67d0b6d2b5be20d330abc76c05e1783b", "score": "0.57048637", "text": "public static String changeDateForProcedure3(String dateStr){\n String[] DATE_STR_AR=dateStr.split(\"/\");\n String DAY=DATE_STR_AR[0];\n String MONTH=DATE_STR_AR[1];\n String YEAR=DATE_STR_AR[2];\n String DATE=YEAR+MONTH+DAY ;\n System.out.println(\" DATE : \"+DATE);\n return DATE;\n }", "title": "" }, { "docid": "37a502b3f95c3fc2d5eec273a7f2dc9e", "score": "0.5702118", "text": "private String makeDateString(int day, int month, int year) {\n return day + \"-\" + month + \"-\" + year;\n }", "title": "" }, { "docid": "a7e71420e83c08a8b3340ccfbeffafc0", "score": "0.5691537", "text": "public static void main(String[] args) {\n\t\t\n\t\tDate date = new Date();\n\t\tSystem.out.println(date);\n\t\tSimpleDateFormat formatter = new SimpleDateFormat(\"dd/MM/yyyy\"); \n\t\tString strDate= formatter.format(date); \n\t System.out.println(strDate);\n\t \n\t SimpleDateFormat formatter2 = new SimpleDateFormat(\"dd/MM/yyyy\"); \n\t try { \n\t Date date2 = formatter2.parse(\"31/03/2015\"); \n\t System.out.println(\"Date is: \"+date2); \n\t } catch (ParseException e) {e.printStackTrace();} \n\t}", "title": "" }, { "docid": "6a4ff65b90bc6f1154df5694d9f86884", "score": "0.5688697", "text": "public String DDMMAAAA() {\n\t\treturn new java.text.SimpleDateFormat(\"dd/MM/yyyy\").format(getDate());\n\t}", "title": "" }, { "docid": "f34408b338e311b68c164b5859c35d06", "score": "0.5687555", "text": "protected SimpleDateFormat m927a() {\n return new SimpleDateFormat(\"dd/MM/yyyy\", Locale.US);\n }", "title": "" }, { "docid": "ccf669e891213202e64dda8b93236998", "score": "0.5681672", "text": "@Test\r\n public void testToString() {\r\n System.out.println(\"toString\");\r\n \r\n Date date;\r\n DateUtil instance = new DateUtil();\r\n \r\n date = instance.toDate(\"11/08/2014\");\r\n String expResult = \"11/08/2014\";\r\n String result = instance.toString(date);\r\n assertEquals(expResult, result);\r\n\r\n expResult = \"24/09/2013\";\r\n date = instance.toDate(\"24/09/2013\");\r\n result = instance.toString(date);\r\n assertEquals(expResult, result);\r\n \r\n expResult = \"01/09/2011\";\r\n date = instance.toDate(\"01/09/2011\");\r\n result = instance.toString(date);\r\n assertEquals(expResult, result);\r\n \r\n expResult = \"04/09/2014\";\r\n date = instance.toDate(\"04/09/2014\");\r\n result = instance.toString(date);\r\n assertEquals(expResult, result);\r\n \r\n }", "title": "" }, { "docid": "27de06a8d15a6a8ddd509c73d138095f", "score": "0.5671745", "text": "public static String getDateString () {\t\r\n\t\tCalendar t;\r\n\t\tt = Calendar.getInstance();\r\n\r\n\t\treturn (new String (Integer.toString(t.get(Calendar.YEAR)) + \"-\" + \r\n\t\t\t\tInteger.toString(t.get(Calendar.MONTH)+1) + \"-\" +\r\n\t\t\t\tInteger.toString(t.get(Calendar.DAY_OF_MONTH))));\r\n\t}", "title": "" }, { "docid": "01eec1d1b5f2b7755a74a5b6f789b92c", "score": "0.5667175", "text": "private String convertDatetoString(Date ngay){\r\n\t\tSimpleDateFormat df = new SimpleDateFormat(\"dd/MM/yyyy\");\r\n\t\treturn df.format(ngay);\r\n\t}", "title": "" }, { "docid": "52c94867bff25dcf455afb811552ab84", "score": "0.5661778", "text": "public static String changeDateForProcedure(String dateStr){\n String[] DATE_STR_AR=dateStr.split(\"/\");\n String DAY=DATE_STR_AR[0];\n String MONTH=getMonName(DATE_STR_AR[1]);\n String YEAR=DATE_STR_AR[2];\n String DATE=DAY+\"-\"+MONTH+\"-\"+YEAR ;\n //System.out.println(\" DATE : \"+DATE);\n return DATE;\n }", "title": "" }, { "docid": "92ea55358e5ef2c45b3210cdf3606e91", "score": "0.5647945", "text": "public static String getTodayDate(){\n\t\tCalendar cal = Calendar.getInstance();\n\t\tcal.add(Calendar.DATE, 0);\n\t\tSimpleDateFormat sdf = new SimpleDateFormat(\"MM/dd/yyyy\");\n\t\tString s1=sdf.format(cal.getTime());\n\t\tString s2=UtilityCommon.getDateFormat(s1);\n\t\t\n\t\treturn s2;\n\t}", "title": "" }, { "docid": "69450f63396fba6dee5c0e94a08b6ba8", "score": "0.5641706", "text": "public Date() {\r\n\r\n\t\tCalendar calendar = Calendar.getInstance();\r\n\t\tString todaysDate = (calendar.get(Calendar.MONTH) + 1) + \"/\" + calendar.get(Calendar.DATE) + \"/\"\r\n\t\t\t\t+ calendar.get(Calendar.YEAR); // using calendar class to set today's date\r\n\t\tString[] todayArray = todaysDate.split(\"/\");\r\n\t\tmonth = Integer.parseInt(todayArray[0]); // converting the string into integers\r\n\t\tday = Integer.parseInt(todayArray[1]); // converting the string into integers\r\n\t\tyear = Integer.parseInt(todayArray[2]); // converting the string into integers\r\n\r\n\t}", "title": "" }, { "docid": "3547de323ab7d73f8fe7a6c77c1fd39d", "score": "0.5640091", "text": "public String getDate() {\n\t\tString date = \"\";\n\t\tdate += \"\"+(LocalDate.now().getDayOfMonth())+\"/\"+LocalDate.now().getMonthValue()+\"/\"+LocalDate.now().getYear();\n\t\treturn date;\n\t}", "title": "" }, { "docid": "a3a92447715e541d8b76095cbd679e51", "score": "0.56326884", "text": "public String getFormattedReviewCreationDate() {\r\n DateFormat dateFormat = new SimpleDateFormat(\"MMM dd, yyyy\");\r\n return dateFormat.format(review.getCreationDate());\r\n }", "title": "" }, { "docid": "6deee751c4b1534710dc607e4b19c550", "score": "0.56321853", "text": "private DateTime getDateFormat(String inputDate)\n\t{\n\t\tString dateList[] = inputDate.split(\"/\");\n\t\tif (dateList.length != 3)\n\t\t{\n\t\t\tSystem.out.println(\"Invalid Date entered!\");\n\t\t\treturn null;\n\t\t}\n\t\tint day = Integer.parseInt(dateList[0]);\n\t\tint month = Integer.parseInt(dateList[1]);\n\t\tint year = Integer.parseInt(dateList[2]);\n\n\t\tDateTime date = new DateTime(day, month, year);\n\t\treturn date;\n\t}", "title": "" }, { "docid": "5ebfe7b21793838bf7ec866f64c9c556", "score": "0.5579624", "text": "@Test\r\n public void testToDate() {\r\n System.out.println(\"toDate\");\r\n String string;\r\n Date expResult;\r\n Date result;\r\n DateUtil instance = new DateUtil();\r\n \r\n \r\n expResult = instance.toDate(\"01/08/2014\");\r\n string = \"01/08/2014\";\r\n result = instance.toDate(string);\r\n assertEquals(expResult, result);\r\n \r\n expResult = instance.toDate(\"09/11/2011\");\r\n string = \"09/11/2011\";\r\n result = instance.toDate(string);\r\n assertEquals(expResult, result);\r\n\r\n expResult = instance.toDate(\"25/01/2010\");;\r\n string = \"25/01/2010\";\r\n result = instance.toDate(string);\r\n assertEquals(expResult, result);\r\n \r\n\r\n }", "title": "" }, { "docid": "c7c773d2ada383a2639228c0046ee7c1", "score": "0.5577129", "text": "public static String formatDataParaString(Date data) {\n\t\tSimpleDateFormat sdf = new SimpleDateFormat(\"dd/MM/yyyy\");\n\t\treturn sdf.format(data);\n\t}", "title": "" }, { "docid": "05f6b222d84031d49d0e3e25c86b2253", "score": "0.5571381", "text": "public String toString(){\n\t\treturn _year + \"/\" + _month + \"/\" + _day;\n\t}", "title": "" }, { "docid": "f41f956a42cb2cd063a4e7309e64226c", "score": "0.55608475", "text": "public String formatDate() {\n String formattedDate;\n SimpleDateFormat sdtf = new SimpleDateFormat(\"EEE, dd MMM yyyy\");\n\n Calendar c = Calendar.getInstance();\n c.set(mYear,mMonth,mDay);\n Date now = c.getTime();\n formattedDate = sdtf.format(now);\n return formattedDate;\n }", "title": "" }, { "docid": "a4bdef0887f1cfc6646c9cdc2ee9f698", "score": "0.5551823", "text": "private String dateToString(Date ngaySinh) {\n DateFormat df = new SimpleDateFormat(\"dd/MM/YYYY\");\n String x = df.format(ngaySinh);\n return x;\n }", "title": "" }, { "docid": "31bd475ce5c1a18e0b4245e51edabd82", "score": "0.55509055", "text": "protected void buildDate() {\r\n // Time representation example : 20/01/2012 10h00 - 12h00\r\n StringBuilder s = new StringBuilder(this.time);\r\n // Extract the beginning : 20/01/2012 10h00\r\n int pos = s.indexOf(\"-\");\r\n while ((pos > 0) && ((s.charAt(pos) < '0') || ('9' < s.charAt(pos)))) {\r\n pos--;\r\n }// while\r\n s = new StringBuilder(s.substring(0, pos + 1));\r\n try {\r\n this.date = new SimpleDateFormat(\"yyyy/MM/dd HH:mm\").parse(s.toString());\r\n Log.i(\"buildate\", \"BuildDate : \" + date);\r\n } catch (ParseException e) {/*\r\n *\r\n */\r\n\r\n }// try\r\n }", "title": "" }, { "docid": "d8de328d0029a4809811fe3af11f7695", "score": "0.5550518", "text": "private static String getSimpleCurrentDate() {\n SimpleDateFormat format = new SimpleDateFormat(\"dd/MM/yyyy\");\n //Today's date, but with time included, which we don't want\n Date today = new Date();\n // Format.format returns a string\n return format.format(today);\n }", "title": "" }, { "docid": "7b71579bf779409f972c376478720144", "score": "0.5549181", "text": "String getDate();", "title": "" }, { "docid": "7b71579bf779409f972c376478720144", "score": "0.5549181", "text": "String getDate();", "title": "" }, { "docid": "4f5805c81b708cbbeeaf981967690a0b", "score": "0.5528341", "text": "private String getDate() {\n TimeZone tz = TimeZone.getTimeZone(\"GMT\");\n GregorianCalendar cal = new GregorianCalendar(tz);\n comment = \"Create by PC^2 \" + new VersionInfo().getSystemVersionInfo()\n + \" \" + cal.getTime().toString();\n StringBuffer dateSB;\n DecimalFormat df = new DecimalFormat(\"00\");\n StringBuffer t = new StringBuffer();\n dateSB = df.format(cal.get(Calendar.YEAR), t, new FieldPosition(0));\n dateSB = df\n .format(cal.get(Calendar.MONTH) + 1, t, new FieldPosition(0));\n dateSB = df.format(cal.get(Calendar.DAY_OF_MONTH), t,\n new FieldPosition(0));\n dateSB = df.format(cal.get(Calendar.HOUR_OF_DAY), t, new FieldPosition(\n 0));\n dateSB = df.format(cal.get(Calendar.MINUTE), t, new FieldPosition(0));\n return (dateSB.toString());\n }", "title": "" }, { "docid": "7d87d86e6963a247ebcf60c734d19fcc", "score": "0.5528191", "text": "public String getCheckOutDate(){\n SimpleDateFormat sdf = new SimpleDateFormat(\"MM/dd/YYYY\");\n return sdf.format(checkOutDate.getTime());\n }", "title": "" }, { "docid": "92cee0b6ffec6a3150ccb0a1aeb675c0", "score": "0.5527108", "text": "private String prepareFutureCreateDate() {\n\t\tString userEmail = \"\";\n\t\tDate date = DateUtil.getUTCDate();\n\n\t\tCalendar calendar = Calendar.getInstance();\n\t\tcalendar.add(Calendar.DAY_OF_YEAR, 2);\n\n\t\tString createdDate = DateUtil.format(calendar, DateUtil.DATE_ONLY_FMT);\n\t\tDriverConfig.setLogString(\"createdDate\" + createdDate, true);\n\t\tDateFormat dateFormat = new SimpleDateFormat(\"yyyy-MM-dd-HH-mm-ss\", Locale.ENGLISH);\n\t\tString timeStamp = dateFormat.format(date);\n\t\tuserEmail = \"ram_upload\" + timeStamp + \"@ecofactor.com\";\n\n\t\tString records = \"205,\" + createdDate + \",1.01E+21,Ram,Durai,EN,\" + userEmail + \",2813760042,2813760040,\" + timeStamp\n\t\t\t\t+ \" East Duane Avenue,Sunnyvale,CA,94085,947 East Duane Avenue,Sunnyvale,CA,94085,US,Woodside Road,1,St,0.124,\" + createdDate + \"\";\n\n\t\treturn createCSV(records);\n\t}", "title": "" }, { "docid": "9d16006ea496704e1149a6281bcf016f", "score": "0.5527007", "text": "@Override\n public String toString()\n {\n return month + \"/\" + day + \"/\" + year;\n }", "title": "" }, { "docid": "90859c9f2942e699f55474dba2c0c075", "score": "0.5526944", "text": "String getFormatforDate2 ()\r\n {\r\n \tString month1 = \"\";\r\n \tswitch(month)\r\n \t{\r\n \tcase 1: month1=\"January\"; break;\r\n \tcase 2: month1=\"February\";break;\r\n \tcase 3: month1=\"January\"; break;\r\n \tcase 4: month1=\"February\";break;\r\n \tcase 5: month1=\"January\"; break;\r\n \tcase 6: month1=\"February\";break;\r\n \tcase 7: month1=\"January\"; break;\r\n \tcase 8: month1=\"February\";break;\r\n \tcase 9: month1=\"September\";break;\r\n \t};\r\n \t\r\n return month1 + \" \" + day + \", \"+ year;\r\n }", "title": "" }, { "docid": "410436d24b52f031c8bb7d97bd495e48", "score": "0.5525919", "text": "public static String get_DC_Date(Date d)\r\n \t{\r\n \t\tsynchronized (_dc_dfs[2]) {\r\n \t\t\treturn _dc_dfs[2].format(d);\r\n \t\t}\r\n \t}", "title": "" }, { "docid": "94acdd1317b2e3de6365c82f0de5c1b2", "score": "0.55238503", "text": "public String displayDate(){\n return String.format(\"%02d\",this.day) + \"-\" + String.format(\"%02d\",this.month) + \"-\" + this.year;\n }", "title": "" }, { "docid": "167e700e470b6b4658311093c8b41866", "score": "0.5521213", "text": "@SuppressLint(\"SimpleDateFormat\")\n\t\tprivate String getDateTime() {\n SimpleDateFormat sdf = new SimpleDateFormat(\"[yyyy/MM/dd - HH:mm:ss]\");\n return sdf.format(new Date());\n }", "title": "" }, { "docid": "b62a01b54d84410f315182cd19a63d34", "score": "0.5515685", "text": "public String toString() {\r\n\t\tString result = \"\";\r\n\t\tString monthString = String.valueOf(month);\r\n\t\tString dayString = String.valueOf(day);\r\n\t\tString yearString = String.valueOf(year);\r\n\t\tresult = monthString + \"/\" + dayString + \"/\" + yearString;\r\n\t\treturn result;\r\n\t}", "title": "" }, { "docid": "1a029e68fe3bd6e7d8e4df673111bbba", "score": "0.5510997", "text": "private String convertDate(String rawDate) {\r\n\t\tString[] splitStr = rawDate.split(\"/\");\r\n\t\tString newStr = \"20\" + splitStr[2];\r\n\r\n\t\tif (splitStr[0].length() < 2)\r\n\t\t\tnewStr = newStr.concat(\"-0\" + splitStr[0]);\r\n\t\telse\r\n\t\t\tnewStr = newStr.concat(\"-\" + splitStr[0]);\r\n\r\n\t\tif (splitStr[1].length() < 2)\r\n\t\t\tnewStr = newStr.concat(\"-0\" + splitStr[1]);\r\n\t\telse\r\n\t\t\tnewStr = newStr.concat(\"-\" + splitStr[1]);\r\n\r\n\t\t// System.out.println(\"date: \" + newStr);\r\n\t\treturn newStr;\r\n\t}", "title": "" }, { "docid": "7f930afbe53a7a041a54dc020e96faa6", "score": "0.5509837", "text": "Date getDateDebut();", "title": "" }, { "docid": "f107b86a66643f252a2b71f1440bb07d", "score": "0.55069447", "text": "public static String formatDateOfBirth (String dateOfBirth) {\n String[] dateOfBirthPadding = dateOfBirth.split(\"/\");\n\n String day = String.format(\"%02d\", Integer.parseInt(dateOfBirthPadding[INDEX_DAY]));\n String month = String.format(\"%02d\", Integer.parseInt(dateOfBirthPadding[INDEX_MONTH]));\n String year = dateOfBirthPadding[INDEX_YEAR];\n\n return String.format(day + \"/\" + month + \"/\" + year);\n }", "title": "" }, { "docid": "c13e9cbc40d046a4d0c2d153e4da2834", "score": "0.5503926", "text": "java.lang.String getDateTo();", "title": "" }, { "docid": "5e6d715c078b33ce7e58243953f02c47", "score": "0.54858625", "text": "public abstract String formatDate(Date date, boolean cookie);", "title": "" }, { "docid": "5534826a221f37cf2e923a641a275864", "score": "0.5481255", "text": "@Override\r\n\tpublic String toString() {\r\n\t\treturn \"\"+day+\"/\"+month+\"/\"+year;\r\n\t}", "title": "" }, { "docid": "02b9617bccdee290b6adb06f79312645", "score": "0.54692584", "text": "public String toString() {\r\n return year + \"/\" + month + \"/\" + day;\r\n }", "title": "" }, { "docid": "7cc4f8a04e1b9b5bde76dd4138455bca", "score": "0.5452848", "text": "public static String convertToString(Date date) {\r\n DateFormat df;\r\n String dateString = null;\r\n\r\n df = new SimpleDateFormat(\"dd/MM/yyyy\");\r\n\r\n dateString = df.format(date);\r\n\r\n return dateString;\r\n\r\n }", "title": "" }, { "docid": "e3011ed61b3bd0883ce86e4233317de7", "score": "0.54487604", "text": "public Factory() {\n this.dateFormatter = new SimpleDateFormat(\"MM/dd/yyyy\");\n }", "title": "" }, { "docid": "be8e4156b3eb169901e26b6a05243c17", "score": "0.5447657", "text": "public static void main(String[] args) {\n\n\t\t\n\t\tDate d= new Date();\n\t\tSystem.out.println(d);\n\t\t\n\t\tSimpleDateFormat sfd = new SimpleDateFormat(\"d/M/yyyy\");\n\t\tSystem.out.println(sfd.format(d));\n\t\tSystem.out.println(d.toString());\n\t\t\n\t\t\n\t}", "title": "" }, { "docid": "a7d5886d822f22a5927eee49f9a221fd", "score": "0.5441253", "text": "public static String formatDate(Date fec) {\r\n return formatDate(fec, \"dd/MM/yyyy\");\r\n }", "title": "" }, { "docid": "95d9a3fdb080fb87442805198a510ed9", "score": "0.54241145", "text": "public DateConverter () {\n dateFormatter = DateTimeFormatter.ofPattern(\"dd/MM/yyyy\");\n }", "title": "" }, { "docid": "b9bc5c41e0355302f690f0523d56ecdf", "score": "0.5421104", "text": "public String getProperDateForDisplayRecord(String userDate) {\r\n\r\n\t\tString convertedDate = null;\r\n\t\tDateFormat userDateFormat = new SimpleDateFormat(\"MM/dd/yyyy\");\r\n\t\tDateFormat dateFormatNeeded = new SimpleDateFormat(\"yyyy-MM-dd\");\r\n\r\n\t\tDate date;\r\n\t\ttry {\r\n\t\t\tdate = userDateFormat.parse(userDate);\r\n\t\t\tconvertedDate = dateFormatNeeded.format(date);\r\n\t\t} \r\n\t\tcatch (ParseException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn convertedDate;\r\n\t}", "title": "" }, { "docid": "b875b4d4fe274893bec7fb2d22eb01bd", "score": "0.54139435", "text": "@TargetApi(Build.VERSION_CODES.O)\n private String formatDate(String date) {\n DateFormat dt = new SimpleDateFormat(\"dd-MM\");\n String date1 = dt.format(new Date());\n return date1;\n }", "title": "" }, { "docid": "389553bfef182e66072cc1571a172580", "score": "0.5413492", "text": "public static Date getCurrentDate()\r\n\t{\n\t\tDateFormat dateFormat = new SimpleDateFormat(\"dd/mm/yyyy\");\r\n\t\tDate date = new Date();\r\n\t\tSystem.out.println(dateFormat.format(date));\r\n\t\t\r\n\t\treturn date;\r\n\t\t\r\n\t}", "title": "" }, { "docid": "94e7a0e8828456ded680664d02a16c6a", "score": "0.5390873", "text": "public static String getCurrentDate(String dateFormat, String monthFormat, String yearFormat, String divider, String dateMonthYearOrder) throws Exception\r\n\t{\r\n\t\tDateFormat df;\r\n\t\tswitch(dateMonthYearOrder.toLowerCase())\r\n\t\t{\r\n\t\tcase \"dmy\":\r\n\t\t\tdf = new SimpleDateFormat(dateFormat + divider + monthFormat + divider + yearFormat);\r\n\t\t\tbreak;\r\n\r\n\t\tcase \"ymd\": \r\n\t\t\tdf = new SimpleDateFormat(yearFormat + divider + monthFormat + divider + dateFormat);\r\n\t\t\tbreak;\r\n\r\n\t\tcase \"mdy\": \r\n\t\t\tdf = new SimpleDateFormat(monthFormat + divider + dateFormat + divider + yearFormat);\r\n\t\t\tbreak;\r\n\r\n\t\tdefault: //default = dmy\r\n\t\t\tdf = new SimpleDateFormat(yearFormat + divider + monthFormat + divider + dateFormat);\r\n\t\t\tbreak;\r\n\t\t}\r\n\r\n\t\tDate today = Calendar.getInstance().getTime(); \r\n\t\tString reportDate = df.format(today);\r\n\t\treturn reportDate;\r\n\t}", "title": "" }, { "docid": "937832aa5c121b69b98245b04c87c8ff", "score": "0.5383872", "text": "public static String dateFormat(Object myDate) {\n\t\tString output = \"\";\n\t\tSimpleDateFormat formatter = new SimpleDateFormat(\"MM-dd-yyyy\");\n\t\tDate currentTime_1 = new Date();\n\t\t//String dateString = formatter.format(currentTime_1);\n\t\tif (myDate != null) {\n\t\t\tif (myDate instanceof java.sql.Date) {\n\t\t\t\tjava.sql.Date nd = (java.sql.Date) myDate;\n\t\t\t\tcurrentTime_1 = nd;\n\t\t\t\toutput = formatter.format(currentTime_1);\n\t\t\t} else if (myDate instanceof java.util.Date) {\n\t\t\t\tjava.util.Date nd = (java.util.Date) myDate;\n\t\t\t\tcurrentTime_1 = nd;\n\t\t\t\toutput = formatter.format(currentTime_1);\n\t\t\t}\n\t\t\treturn output;\n\t\t} else\n\t\t\treturn null;\n\t}", "title": "" }, { "docid": "c232d5f1f36aadc7c116a353fae24804", "score": "0.5377068", "text": "private String formatHeaderDate() {\n // Create formatter with output date pattern.\n SimpleDateFormat format = new SimpleDateFormat(\n \"EEE, d MMM yyyy HH:mm:ss Z\");\n Date date = getDate();\n if (date != null) {\n return format.format(date);\n } else {\n return dateString;\n }\n }", "title": "" }, { "docid": "de600c704fa698eb94eebf0f0c9bef1d", "score": "0.537533", "text": "public String getDate(){\n if(time.value.equals(\"N/A\")) return \"N/A\";\n return this.time.value.substring(0, 10);\n }", "title": "" }, { "docid": "867d55f0048327022a912549d834637e", "score": "0.5374476", "text": "private String convertDateFormat(String date) {\n StringBuilder buildDate = new StringBuilder();\n buildDate = buildDate.append(date.substring(6)).append(\"-\").append(date.substring(0, 2)).append(\"-\").append(date.substring(3, 5));\n return buildDate.toString();\n }", "title": "" }, { "docid": "37035c9d386cfadbdad8d5457b4aad26", "score": "0.5370399", "text": "private Date convertDate(String d){\r\n\t\tString[] strings = d.split(\"/\", -1);\r\n\t\tint[] arr = new int[strings.length];\r\n\t\tfor (int i = 0; i < strings.length; i++) {\r\n\t\t\tarr[i] = Integer.parseInt(strings[i]);\r\n\t\t}\r\n\t\tGregorianCalendar cal = new GregorianCalendar(arr[2], arr[0] - 1, arr[1]);\r\n\t\treturn cal.getTime();\r\n\t}", "title": "" }, { "docid": "97d0e959253fe65586760d4b5a4b0179", "score": "0.53562975", "text": "public String getDate()\n {\n // @TODO: Move this format to config file.\n DateFormat dateFormat = new SimpleDateFormat(\"yyyy/MM/dd HH:mm:ss\");\n Date date = new Date();\n return dateFormat.format(date);\n }", "title": "" }, { "docid": "5f47d7b034a5183c081e8f9d636f4421", "score": "0.53510785", "text": "private Date convertStringToDate() {\r\n\t\t\r\n\t\tSimpleDateFormat sd = new SimpleDateFormat(\"dd/MM/yyyy\");\r\n\t\tDate dt = new Date();\r\n\t\tboolean ri = false;\r\n\t\tdo{\r\n\t\t\tSystem.out.print(\"\\tNgay/thang/nam >\");\r\n\t\t\ttry {\r\n\t\t\t\tdt = sd.parse(sc.nextLine());\r\n\t\t\t\tri = true;\r\n\t\t\t} catch (ParseException e) {\r\n\t\t\t\tri = false;\r\n\t\t\t}\r\n\t\t}while(ri != true);\r\n\t\treturn dt;\r\n\t}", "title": "" }, { "docid": "759da7b5573dc02396df9bc5701851ff", "score": "0.5351032", "text": "private String getDate() {\n\t\tSimpleDateFormat sdf = new SimpleDateFormat(\"dd.MM.yyyy\");\n\t\tDate d = new Date(System.currentTimeMillis());\n\t\tString format = sdf.format(d);\n\n\t\treturn format;\n\t}", "title": "" }, { "docid": "bdcc6e96d0e64430e59f94d10f248679", "score": "0.5347656", "text": "private static String getTodaysDate() {\n\t\treturn (new SimpleDateFormat(\"yyyyMMdd\").format(new Date()));\n\t}", "title": "" }, { "docid": "90b7c3118ca7dba738b017dc3ada3a2c", "score": "0.5340934", "text": "public String generateDate() {\n Date today = Calendar.getInstance().getTime();\n\n // (2) create a date \"formatter\" (the date format we want)\n SimpleDateFormat formatter = new SimpleDateFormat(\"EEE, dd MMM YYYY HH:mm:ss Z\", Locale.US);\n\n // (3) create a new String using the date format we want\n return formatter.format(today);\n }", "title": "" }, { "docid": "c12852d10b89ba6e17c674115eb83852", "score": "0.5336738", "text": "public String getCurrentDate()\n {\n java.util.Date d=new java.util.Date();\n java.text.SimpleDateFormat sdf=new java.text.SimpleDateFormat(\"dd/MM/yyyy\");\n return sdf.format(d);\n }", "title": "" }, { "docid": "535df93f057e8bda6ac9f967d6fc3972", "score": "0.5336531", "text": "public static String dateToString(Date dDate, String sFormat) \r\n\t{\r\n\t\t// String sFormat = \"dd/MM/yy hh:mm\";\r\n\t\t// String sFormat = \"dd/MM/yyyy\";\r\n\t\tString sDate = \"\";\r\n\t\tSimpleDateFormat sdf;\r\n\t\ttry {\r\n\t\t\tsdf = new SimpleDateFormat(sFormat);\r\n\t\t\tsDate = sdf.format(dDate);\r\n\t\t}\r\n\t\tcatch (Exception e){\r\n\t\t\tsDate = \"\";\r\n\t\t}\r\n\t\t// System.out.println(sDate);\r\n\t\treturn sDate;\r\n\t}", "title": "" }, { "docid": "f5984a0c4bc1e0dae3f4c465cd6208fa", "score": "0.53335094", "text": "private String formatDate(String dateStr) {\r\n try {\r\n SimpleDateFormat fmt = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\r\n Date date = fmt.parse(dateStr);\r\n SimpleDateFormat fmtOut = new SimpleDateFormat(\"MMM d\");\r\n return fmtOut.format(date);\r\n } catch (ParseException e) {\r\n\r\n }\r\n\r\n return \"\";\r\n }", "title": "" }, { "docid": "2fd3c230b02b6c71a1deb6fa1d6a9ed1", "score": "0.53247464", "text": "public String dateManipulator(){\n if(isNullOrEmpty(dateDay.getSelectedItem().toString()) || isNullOrEmpty(dateMonth.getSelectedItem().toString()) || isNullOrEmpty(dateYear.getSelectedItem().toString())){\n return null;\n }\n return dateDay.getSelectedItem().toString()+\" \"+dateMonth.getSelectedItem().toString()+\" \"+dateYear.getSelectedItem().toString();\n }", "title": "" }, { "docid": "9ee48d578cbd5873e7ead109615bbe2d", "score": "0.5293185", "text": "public static String formatDate(Date dt) {\n if ( dt != null) {\n SimpleDateFormat fmt = new SimpleDateFormat(\"MM/dd/yyyy HH:mm Z\");\n return fmt.format(dt);\n }\n else {\n return \"\";\n }\n }", "title": "" }, { "docid": "4d3d88dbcb065c34a69fe17d0d8cb48d", "score": "0.5285328", "text": "public String getDate(JSONObject partialDate) {\n\t\tJSONObject temp;\n\t\tint num;\n\t\tString date = \"\";\n\t\tboolean dateExist;\n\t\t\n\t\t/* Do we have a year? */\n\t\ttemp = partialDate.getJSONObject(\"original_publication_year\");\n\t\tdateExist = temp.has(\"content\");\n\t\tif(dateExist) {\n\t\t\tnum = temp.getInt(\"content\");\n\t\t\tdate += Integer.toString(num) + \".\";\n\t\t}\n\t\telse {\n\t\t\tdate = \"\";\n\t\t\treturn date;\n\t\t}\n\t\t/* Do we have a month? */\n\t\ttemp = partialDate.getJSONObject(\"original_publication_month\");\n\t\tdateExist = temp.has(\"content\");\n\t\tif(dateExist) {\n\t\t\tnum = temp.getInt(\"content\");\n\t\t\tif(num >= 1 && num <= 9) {\n\t\t\t\tdate += \"0\";\n\t\t\t}\n\t\t\tdate += Integer.toString(num) + \".\";\n\t\t}\n\t\telse {\n\t\t\tdate = \"\";\n\t\t\treturn date;\n\t\t}\n\t\t/* Do we have a day? */ \n\t\ttemp = partialDate.getJSONObject(\"original_publication_day\");\n\t\tdateExist = temp.has(\"content\");\n\t\tif(dateExist) {\n\t\t\tnum = temp.getInt(\"content\");\n\t\t\tif(num >= 1 && num <= 9) {\n\t\t\t\tdate += \"0\";\n\t\t\t}\n\t\t\tdate += Integer.toString(num);\n\t\t}\n\t\telse {\n\t\t\tdate = \"\";\n\t\t\treturn date;\n\t\t}\n\t\t\t\t\t\t\n\t\treturn date;\n\t}", "title": "" }, { "docid": "2fed60d8e7d5ac6f858284a4be40bd0d", "score": "0.5280245", "text": "public static String convertDateFromYYYYMMDD(final String date){\r\n \tfinal String methodName = \"convertDateFromYYYYMMDD\";\r\n\r\n \tif (MessageLoggerHelper.isEntryExitTraceEnabled(LOGGER)) {\r\n \t\tLOGGER.entering(CLASS_NAME, methodName);\r\n \t\tLOGGER.info(\"date>>>\" +date );\r\n \t}\r\n \tDate formatDate=null;\r\n \tString returnDate = \"\";\r\n \ttry {\r\n \t\tif(date!=null && !date.isEmpty()){\r\n \t\t\tDateFormat formatter ; \r\n \t\t\tCalendar cal=Calendar.getInstance();\r\n \t\t\tformatter = new SimpleDateFormat(\"yyyyMMdd\");\r\n \t\t\tcal.setTime(formatter.parse(date));\r\n \t\t\tformatDate=cal.getTime();\r\n \t\t\tif (MessageLoggerHelper.isTraceEnabled(LOGGER)) {\r\n \t\t\t\tLOGGER.fine(\"Calender>>>>>\" +cal );\r\n \t\t\t\tLOGGER.fine(\"cal.getTime()>>>> \" +formatDate);\r\n \t\t\t}\r\n \t\t\tDateFormat formatter2 = new SimpleDateFormat(\"MM/dd/yyyy\");\r\n \t\t\treturnDate = formatter2.format(formatDate);\r\n \t\t}\r\n \t} catch (ParseException e) {\r\n \t\t// TODO Auto-generated catch block\r\n \t\tLOGGER.severe(CLASS_NAME + \":\" + methodName + \": ParseException caught\" + e);\r\n \t}\r\n \tif (MessageLoggerHelper.isEntryExitTraceEnabled(LOGGER)) {\r\n \t\tLOGGER.exiting(CLASS_NAME, methodName);\r\n \t}\r\n \treturn returnDate;\r\n\r\n }", "title": "" }, { "docid": "38706b5118aa3dd662e15668d7a040dc", "score": "0.527124", "text": "@Override\n\tString toLiteral(final Day value)\n\t{\n\t\tfinal NumberFormat nf = NumberFormat.getInstance(Locale.ENGLISH);\n\t\tnf.setMinimumIntegerDigits(2);\n\t\treturn \"'\" + value.getYear() + '-' + nf.format(value.getMonthValue()) + '-' + nf.format(value.getDayOfMonth()) + \"'::\\\"date\\\"\";\n\t}", "title": "" }, { "docid": "f4aca0c9f66d5f0ef022cbadacd3e032", "score": "0.5270053", "text": "public Date formatStartDate() {\n return Date.valueOf(startDate);\n }", "title": "" }, { "docid": "46148310281613e0ba7492053e127075", "score": "0.5269841", "text": "static String formatDate(Date date) {\n return DATE_FORMAT.format(date);\n }", "title": "" }, { "docid": "d01234bfd5398389649dae420c938039", "score": "0.5250277", "text": "public String toString() {\n\t\treturn day+\"/\"+month+\"/\"+year;\n\t}", "title": "" } ]
8b11faa0582aa140e01451f8321ff516
Problem 1.2: Given a string, produce the reversed of the string. Time: O(n), where n = length of the string Memory: O(n)
[ { "docid": "fecaf8ad893488bb716426729972f977", "score": "0.0", "text": "static char[] reverseString(char[] chars) {\n char[] reversed = new char[chars.length];\n int j = chars.length - 1;\n for (char ch : chars) {\n reversed[j] = ch;\n j--;\n }\n return reversed;\n }", "title": "" } ]
[ { "docid": "6742c6ce8ca7c2413e44717eddde2566", "score": "0.7254874", "text": "public static String reverse(String input) {\n\treturn String.copyValueOf(reverse(input.toCharArray()));\n }", "title": "" }, { "docid": "5ec382c3ae9a89b3508fc5aaf88256d9", "score": "0.71819454", "text": "public String reverse(String text) {\n// StringBuilder builder = new StringBuilder(text);\n// return builder.reverse().toString();\n char[] chars = text.toCharArray();\n\n int length = chars.length;\n for (int i = 0; i < length / 2; i++) {// n/2 iterations, 10 operations each=> summary ~5n operations O(n)\n char temp = chars[i];\n chars[i] = chars[length - i - 1];\n chars[length - i - 1] = temp;\n }\n return new String(chars);\n }", "title": "" }, { "docid": "85832fd94c52d50edc0b141eccbdba4f", "score": "0.70859367", "text": "private String reverseString(String s) {\n\t\tString revString = \"\";\r\n\t\tint lg = s.length();\r\n\t\t\r\n\t\t// chaine 1\r\n\t\tfor (int i = lg; i > 0; i--) {\r\n\t\t\trevString += s.substring(i-1, i);\r\n\t\t}\r\n\t\treturn revString;\r\n\t}", "title": "" }, { "docid": "c063812235acd13fd9004a6b59f5fc26", "score": "0.70678675", "text": "public String reverse(String input) {\n\t\tchar[] ogString = input.toCharArray();\n\t\t//A String Builder to make the reversed string one char at a time\n\t\tStringBuilder reversedStringB = new StringBuilder();\n\t\t//Start at the end of the char array (length-1) place each char into StrBuilder\n\t\tfor (int i = ogString.length-1; i>=0; i--) {\n\t\t\treversedStringB.append(ogString[i]);\n\t\t}\n\t\t//Turn the Builder into a string\n\t\tString output = reversedStringB.toString();\n\t\treturn output;\n\t}", "title": "" }, { "docid": "31d6ac782c566d781df38fb8cb24c6dc", "score": "0.6960258", "text": "public String revStr(String s) {\t\r\n\t\tStringBuilder str = new StringBuilder();\r\n\t\tstr.append(s);\r\n\t\tstr = str.reverse();\r\n\r\n\t\treturn str.toString();\r\n\t}", "title": "" }, { "docid": "0e48aa26c608cc9b99ddfe44ec03f19f", "score": "0.69189805", "text": "public static String reverse(String s){\n if (s.length() == 0)\r\n return \"\";\r\n return s.substring(s.length() - 1) + reverse(s.substring(0, s.length() - 1));\r\n }", "title": "" }, { "docid": "fbdabe0ed068b3186ff26a1013815aa8", "score": "0.6915246", "text": "public static void main(String[] args) {\n\n String palindromo = \"anula la luna\";\n\n StringBuilder sb = new StringBuilder(palindromo);\n\n sb.reverse();\n\n System.out.println(palindromo);\n\n }", "title": "" }, { "docid": "81550a7c7852892cf8b7d31936262520", "score": "0.68656003", "text": "public String reverse(String input) {\n char inputChar[] = input.toCharArray();\n int end = input.length()-1;\n for (int start=0; start<input.length()/2; start++) {\n char temp = inputChar[start];\n inputChar[start] = inputChar[end];\n inputChar[end--] = temp;\n }\n return new String(inputChar);\n }", "title": "" }, { "docid": "7fb366098ac51bb1ba8cf9bd83e380ac", "score": "0.68419904", "text": "public static String solution(String str){\n String reverse = \"\";\n int i = str.length();\n while(i > 0){\n reverse = reverse + str.charAt(i - 1);\n i--;\n }\n return reverse;\n }", "title": "" }, { "docid": "d683c62c53ec20a11c2ac13a77394dc3", "score": "0.6824673", "text": "private static void reverse(char[] str){\n int i = 0, j = str.length - 1;\n while (i < j){\n swap(str, i, j);\n i++;\n j--;\n }\n }", "title": "" }, { "docid": "903703ce5b6e81ac6d3b38445fe307b3", "score": "0.6812218", "text": "public static String reverse(String input) {\n\n String reverse = \"\";\n\n for (int i = input.length()-1; i >= 0; i--) {\n reverse += input.charAt(i);\n }\n return reverse;\n }", "title": "" }, { "docid": "e9c9b39ebecf9014adcfc5e60fcff82b", "score": "0.6783016", "text": "public static String reverseMe(String string) {\n\t\tStack<Character> st = new Stack<>();\n\t\tfor(char c: string.toCharArray()){\n\t\t\tst .push(c);\n\t\t\t\n\t\t}\n\t\tStringBuilder sB = new StringBuilder();\n\t\twhile(!st.isEmpty()){\n\t\t\tsB.append(st.pop());\n\t\t}\n\t\treturn sB.toString();\n\t}", "title": "" }, { "docid": "10384bd4fae14fa1b0a709507b6949eb", "score": "0.6778334", "text": "private static String reverseString_v1(String str){\r\n\t\tStack<Character> stack = new Stack<Character>();\r\n\t\tfor(int i=0; i<str.length(); i++){\r\n\t\t\tstack.push(str.charAt(i));\r\n\t\t}\r\n\t\tString s = \"\";\r\n\t\t\r\n\t\twhile(!stack.isEmpty()){\r\n\t\t\ts += stack.pop();\r\n\t\t}\r\n\t\treturn s;\r\n\t}", "title": "" }, { "docid": "9cf5b7d9173725fef95ed63cf45a02db", "score": "0.67433196", "text": "public String simpleReverse(String str){\n\t\tStringBuffer strBuffer = new StringBuffer();\n\t\tfor(int i=str.length()-1;i>=0;i--){\n\t\t\tstrBuffer.append(str.charAt(i));\n\t\t}\n\t\treturn strBuffer.toString();\n\t}", "title": "" }, { "docid": "8b664e1ec1058cf16bcda7bd3cea3049", "score": "0.673868", "text": "public void string_reverse_in_place(char s[])\n {\n int left_index = 0;\n int right_index = s.length-1;\n\n\n // loop through each index until the left meets the right \n while(left_index < right_index)\n {\n\n // assign a temporary variable for the current index\n char temp = s[right_index];\n\n // flip or switch the index values from the current right and left indexes\n s[right_index] = s[left_index];\n s[left_index] = temp;\n\n // increment the pointer index for the left to keep moving forward\n // decrement the pointer index for the right to keep moving backward\n left_index = left_index + 1;\n right_index = right_index - 1;\n\n }\n }", "title": "" }, { "docid": "ca900ae0e0b31873f7aaa5f57b236bbd", "score": "0.66731447", "text": "public static String reverse(String sentence)\n {\n // Complete this method. Use a Stack.\n Stack<String> cool = new Stack<>();\n Scanner s = new Scanner(sentence);\n while(s.hasNext())\n {\n cool.push(s.next());\n }\n String newSentence = \"\";\n int size = cool.size();\n for(int i = 0; i < size;i++)\n {\n newSentence += cool.pop() + \" \";\n }\n return newSentence;\n }", "title": "" }, { "docid": "3c617f21ddb63fcff012ef5997715654", "score": "0.66457003", "text": "public static String reverse(String text){\r\n\t if (text.length() == 0)\r\n\t\t\treturn \"\";\r\n\t return text.charAt(text.length() - 1) + reverse(text.substring(0, text.length() - 1));\r\n }", "title": "" }, { "docid": "5373b4aa388b5b5a3c886dbced4003dd", "score": "0.66065174", "text": "private static String reverseString(String s, String rs, int n) {\n\t\tn--;\n\t\tif (n < 0) {\n\t\t\treturn rs;\n\t\t}\n\t\trs = rs + s.charAt(n);\n\t\treturn reverseString(s, rs, n);\n\t}", "title": "" }, { "docid": "66d672c3b44ec4517ae07147387c7e3b", "score": "0.65823513", "text": "void reverse();", "title": "" }, { "docid": "24c11f3bf45a44d6f8dd5e2a9e5ae84e", "score": "0.65796655", "text": "public static String reverse(String str) {\n return new StringBuffer(str).reverse().toString();\n }", "title": "" }, { "docid": "fdd82ba58f63f10fe314f541ed593748", "score": "0.657414", "text": "public void reverseString(){\n\t\t String oStr, rStr = \"\";\n\t Scanner in = new Scanner(System.in);\n\t \n\t System.out.println(\"Enter a string to reverse :\");\n\t oStr = in.nextLine();\n\t \n\t for ( int i = oStr.length() - 1 ; i >= 0 ; i-- )\n\t rStr = rStr + oStr.charAt(i);\n\t \n\t System.out.println(\"Reverse of entered string is : \\n\"+rStr);\n\t}", "title": "" }, { "docid": "5a31bd8724c484f2663eeac119b76af3", "score": "0.6566526", "text": "public String ReverseofString(String original)\n {\n String reverse=\"\";\n //calculate the length of string and store it\n int length = original.length();\n //logic for reversing a string\n for (int i = length - 1 ; i >= 0 ; i--)\n {\n reverse = reverse + original.charAt(i);\n }\n //print the reverse number\n return reverse;\n }", "title": "" }, { "docid": "98395c8a8105a165b89b4b46772ae31f", "score": "0.65624523", "text": "@Test\n public void Should_Reverse_String_When_GivenAnyString() {\n String input_string = \"\";\n String expected_output = \"\";\n String actual_output = Text_Utilities.reverse(input_string);\n Assert.assertEquals(expected_output, actual_output);\n\n // Test odd length strings\n input_string = \"abcde\";\n expected_output = \"edcba\";\n actual_output = Text_Utilities.reverse(input_string);\n Assert.assertEquals(expected_output, actual_output);\n\n // Test even length strings\n input_string = \"ababab\";\n expected_output = \"bababa\";\n actual_output = Text_Utilities.reverse(input_string);\n Assert.assertEquals(expected_output, actual_output);\n }", "title": "" }, { "docid": "4d79d9891ed926efc47911e68a800b22", "score": "0.6560513", "text": "public String reverse(String input)\n {\n String output=\"\";\n String[] array;\n if(input==null){\n output=\"Null String\";\n }\n else if(input.equals(\"\")){\n output=\"Empty String\";\n }\n\n else {\n array=input.split(\" \");\n StringBuffer[] word=new StringBuffer[array.length];\n for (int i=0;i<array.length;i++) {\n word[i] = new StringBuffer(array[i]); //reverse() method reverses the string\n word[i].reverse();\n\n output = output.concat(word[i].toString()+\" \"); //Concatenating output\n }\n }\n return output;\n }", "title": "" }, { "docid": "13fc57467a93fb5d03db681703b9286a", "score": "0.6551255", "text": "String reverseString(String param) {\n\tString result=\"\";\nchar[] charArray=param.toCharArray();\nfor(int i=charArray.length-1;i>=0; i--) {\n\tresult+=charArray[i];\n}\n return\"reversed string\";\t\n}", "title": "" }, { "docid": "dcd4c6d0838038ffa92f176bcdc38fbf", "score": "0.65199816", "text": "public static void main(String[] args) {\n\t\t\r\n\t\tString original = \"I want to get back to office\";\r\n\t\tString temp = \"\";\r\n\t\tint length = original.length();\r\n\t\t\r\n\t\tfor (int i = length-1; i >=0; i--) {\r\n\t\t\t\r\n\t\t\ttemp=temp+original.charAt(i);\r\n\t\t\t\r\n\t\t}\r\n\t\t\t\t\r\n\t\tSystem.out.println(\"String before reversing: \"+original);\r\n\t\tSystem.out.println(\"String after reversing :\"+temp);\r\n\r\n\t}", "title": "" }, { "docid": "dc1d6930a8e36f06377b922b8f3fce42", "score": "0.6488223", "text": "public String reverse(String string) {\n\t\t\n\t\t\n\t\t char[] newStr = string.toCharArray();\n\t\t \n\t\t \n\t\t int len = newStr.length;\n\t\t int start = 0, end = len - 1;\n\n\t\t while(start <= end) {\n\t\t char temp = newStr[start];\n\t\t newStr[start] = newStr[end];\n\t\t newStr[end] = temp;\n\t\t start++;\n\t\t end--;\n\t\t }\n\t\t \n\n\t\tString outStr = String.copyValueOf(newStr);\n\t\t\n\t\treturn outStr;\n\t}", "title": "" }, { "docid": "5d522e1f4b529ce688cd829d925e23f5", "score": "0.6475631", "text": "public String reverseString(String s) {\n char[] string = s.toCharArray();\n \n int n = 0, m = string.length-1;\n char tmp;\n while(n<m){\n tmp = string[n];\n string[n] = string[m];\n string[m] = tmp;\n n++;\n m--;\n }\n return new String(string);\n }", "title": "" }, { "docid": "5a6de83eec343fa34036c43260630e11", "score": "0.64741707", "text": "public String reverseString(String s) {\r\n\t\tint n = s.length();\r\n\t\tString reversed = \"\";\r\n\t\tfor (int i = 0; i < n; i++)\r\n\t\t\treversed = s.charAt(i) + reversed;\r\n\t\treturn reversed;\r\n\t}", "title": "" }, { "docid": "430cce9160f915be41042e40dac30a2e", "score": "0.64734524", "text": "public static String reverse(String str)\n {\n if (str.isEmpty())\n return \"\";\n else\n return reverse(str.substring(1)) + str.substring(0, 1);\n }", "title": "" }, { "docid": "023576ecc64120a6df660fe407a3ca79", "score": "0.6472168", "text": "static public String reverseString(String s) {\n char[] a = s.toCharArray();\n int n = a.length - 1;\n\n for (int i = (n - 1) / 2; i >= 0; i--) {\n char temp = a[i];\n a[i] = a[n - i];\n a[n - i] = temp;\n }\n return String.valueOf(a);\n }", "title": "" }, { "docid": "8e4ec47e7f7ca51397a3ae33f1218d29", "score": "0.6470758", "text": "public String reverseString(String s){\n\n\t\tif(s == null || s.length() == 0){\n\t\t\treturn \"\";\n\t\t}\n\n\t\tint l = 0;\n\t\tint r = s.length() - 1;\n\t\tchar[] res = s.toCharArray();\n\t\twhile(l < r){\n\t\t\tswap(res, l, r);\n\t\t\tl++;\n\t\t\tr--;\n\t\t}\n\n\t\treturn new String(res);\n\t}", "title": "" }, { "docid": "1d9280b45e616907d8b1d9eb0f8c0507", "score": "0.6470188", "text": "public String reverse(String string) {\n String reverse = \"\";\n for (int i = string.length() - 1; i >= 0; i--)\n reverse += string.charAt(i);\n return reverse;\n }", "title": "" }, { "docid": "c1d23126adfec744b89252fe8fc1971f", "score": "0.64508045", "text": "public static String reverse2(String str)\n\t {\n\t int n = str.length();\n\t Stack obj = new Stack(n);\n\t \n\t // Push all characters of string to stack\n\t for (int i = 0; i < n; i++)\n\t obj.push(str.charAt(i));\n\t \n\t // Pop all characters of string and put them back to str\n\t String newStr = \"\";\n\t char [] newchars = new char[n + 1];\n\t \n\t for (int i = 0; i < n; i++)\n\t { \n\t char ch = obj.pop();\n\t //can put each char into array, then create New String\n\t newchars[i] = ch;\n\t newStr = new String(newchars);// String(char [] value)\n\t System.out.println(\"New String after pop() : \" + newStr);\n\t }\n\t return newStr;\n\t \n\t }", "title": "" }, { "docid": "fe29bb6e9dbe91c676efb1683e41bb12", "score": "0.64447504", "text": "public static IntLiSTR reverse(IntLiSTR s, IntLiSTR t)\n {\n if (!isEmpty(s)) {\n t = reverse(tail(s), cons(head(s),t));\n }\n return t;\n }", "title": "" }, { "docid": "2b0c45d0ddaa8c2ae2606ec067494924", "score": "0.6442622", "text": "public static String reverseString(String s) {\n if(length(s) != 0) { \n return reverseString(rest(s)) + first(s);\n }\n return \"\";\n }", "title": "" }, { "docid": "522a50d66917773d092a39505e61e7d0", "score": "0.64369714", "text": "public String reverseString(String inputString) {\n \tif(inputString.isEmpty())\n \t\treturn null;\n \telse {\n \t\tStringBuilder stringBuilderVariable = new StringBuilder(inputString);\n \treturn stringBuilderVariable.reverse().toString();\n \t}\n }", "title": "" }, { "docid": "614cde711db18229b10bbfcb965f5f09", "score": "0.6415167", "text": "public static Z reverse(final Z n) {\n return reverse(n, 10);\n }", "title": "" }, { "docid": "89aa65de6b717a8a5d61fd0ef32188e1", "score": "0.6411868", "text": "public String reverseUsingSwap(String str){\n\t\tchar[] charArray = str.toCharArray();\n\t\tint rightIndex = charArray.length-1;\n\t\t\n\t\tfor(int leftIndex=0;leftIndex< rightIndex;leftIndex++,rightIndex--){\n\t\t\tchar temp = charArray[leftIndex];\n\t\t\tcharArray[leftIndex]= charArray[rightIndex];\n\t\t\tcharArray[rightIndex] =temp;\n\t\t}\n\t\treturn new String(charArray);\n\t}", "title": "" }, { "docid": "fa000af18cf204537df8c61e2f1de13e", "score": "0.6411721", "text": "public void palindrome(){\n\t\t String oStr, rStr = \"\";\n\t Scanner in = new Scanner(System.in);\n\t \n\t System.out.println(\"Enter a string to reverse :\");\n\t oStr = in.nextLine();\n\t\t \n\t int length = oStr.length();\n\t\t \n\t for ( int i = length - 1; i >= 0; i-- )\n\t \t rStr = rStr + oStr.charAt(i);\n\t \n\t if (oStr.equals(rStr))\n\t System.out.println(\"Entered string is a palindrome.\");\n\t else\n\t System.out.println(\"Entered string is not a palindrome.\");\n\t \n\t}", "title": "" }, { "docid": "7e532fa4a861aee50e655edffb4dadaa", "score": "0.6398159", "text": "public static String reverse(String s) {\n\t\n\t\tif(s.length() == 1){\n\t\t\treturn s;\n\t\t}\n\t\t\n\t\tString newS = reverse(s.substring(1));\n\n\t\treturn newS + s.charAt(0);\n\t}", "title": "" }, { "docid": "9abcc102619e90fc993fa176f8c5f091", "score": "0.63764125", "text": "public static void main(String args[]) {\n String str = \"Sunil pandey is a good boy\";\r\n System.out.println(\"Original String: \" + str);\r\n\r\n //reversed string using Stringbuffer\r\n String reverseStr = new StringBuffer(str).reverse().toString();\r\n System.out.println(\"Reverse String in Java using StringBuffer: \" + reverseStr);\r\n\r\n //iterative method to reverse String in Java\r\n reverseStr = reverse(str);\r\n System.out.println(\"Reverse String in Java using Iteration: \" + reverseStr);\r\n\r\n //recursive method to reverse String in Java\r\n reverseStr = reverseRecursively(str);\r\n System.out.println(\"Reverse String in Java using Recursion: \" + reverseStr);\r\n\r\n }", "title": "" }, { "docid": "2818a0eedb82fb66837493d34703205b", "score": "0.636567", "text": "static String reverseStr(String input) {\n char[] arr = input.toCharArray();\n int l = 0, r = input.length() - 1;\n while (l < r) {\n char temp = arr[r];\n arr[r] = arr[l];\n arr[l] = temp;\n l++;\n r--;\n }\n return String.valueOf(arr);\n }", "title": "" }, { "docid": "03711471a7f09ea09a71f85bcd0ec302", "score": "0.6356641", "text": "public static String reverse( String origString )\n {\n String newString = \"\";\n for (int i = origString.length() - 1; i >= 0; i-- )\n {\n // Step through the original string from end to beginning\n newString += origString.charAt( i );\n // Concatenate each character to a new string\n }\n // return the new string\n return newString;\n }", "title": "" }, { "docid": "05a2f5fe1c5a2f023275202465ee5e8a", "score": "0.6347528", "text": "public void reverse() ;", "title": "" }, { "docid": "7aea38f74468b7db22a215ae1c65c802", "score": "0.63426876", "text": "public static String reverse(String in)\n\n\t{\n\t\t\n\t\t\n\t\tchar[] chars = in.toCharArray();\n\t\tStringBuilder out = new StringBuilder();\n\t\tfor (int i = chars.length - 1; i >= 0; i--) {\n\t\t\tout.append(chars[i]);\n\t\t}\n\t\tSystem.out.println(in);\n\t\treturn out.toString();\n\t}", "title": "" }, { "docid": "ad512cf021e4fbf1bed76cf98e1a2b7d", "score": "0.6332401", "text": "public String reverse(String toReverse) {\r\n String result = \"\";\r\n\r\n for (int i = 0; i < toReverse.length(); i++) {\r\n result += toReverse.charAt(toReverse.length() - 1 - i);\r\n }\r\n\r\n return result;\r\n }", "title": "" }, { "docid": "8e7ed70d6d3e2f378ac5d735ff4cd266", "score": "0.63215846", "text": "public static void main(String[] args) {\n\t\t\r\nString input = \"JavaSkills\";\r\nStringBuilder input1 =new StringBuilder();\r\n// append a string into StringBuilder input1\r\ninput1.append(input);\r\n// reverse StringBuilder input1\r\ninput1.reverse();\r\n// print reversed String\r\nSystem.out.println(input1);\r\n\t}", "title": "" }, { "docid": "907e657d3d860d416a0085621828c50b", "score": "0.63213944", "text": "private static String reverse(String str) {\n if (str == null || str.length() < 1) {\n return str;\n } else {\n return reverse(str.substring(1)) + str.charAt(0);\n }\n }", "title": "" }, { "docid": "d61fb15517228817653d0704362de7c7", "score": "0.63161904", "text": "public static String reverse(String str) {\n\t\tchar[] ch = str.toCharArray();\n\t\tint j = ch.length -1 ;\n\t\tfor (int i=0; i < ch.length/2; i++) {\n\t\t\tchar tmp = ch[i];\n\t\t\tch[i] = ch[j];\n\t\t\tch[j] = tmp;\n\t\t\tj--;\n\t\t}\n\t\treturn new String(ch);\n\t}", "title": "" }, { "docid": "ff2bf5e2ae60214ac8823376e0c240a2", "score": "0.63077617", "text": "public String recursiveReverse(String str){\n\t if ((null == str) || (str.length() == 1)) {\n\t return str;\n\t }\n\t \n\t return recursiveReverse(str.substring(1)) + str.charAt(0);\n\t}", "title": "" }, { "docid": "d45912cecdf347520a0f434c674824df", "score": "0.6305779", "text": "public static String reverseString2(String input) {\n\t\tif (input==null) {\n\t\t\treturn null;\n\t\t}\n\t\tif (input.length()<=1) {\n\t\t\treturn input;\n\t\t} else {\n\t\t\tchar[] cTemp = input.toCharArray();\n\t\t\tint i=0, j=input.length()-1;\n\t\t\tchar c1;\n\t\t\twhile(i<j) {\n\t\t\t\tc1 = cTemp[i] ;\n\t\t\t\tcTemp[i] = cTemp[j];\n\t\t\t\tcTemp[j] = c1;\n\t\t\t\ti++;\n\t\t\t\tj--;\n\t\t\t}\n\t\t\treturn new String(cTemp);\n\t\t} \n\t}", "title": "" }, { "docid": "e861bf649736b7b7df4be1d98885a906", "score": "0.6299575", "text": "public static String reverseString(String s) {\n\t\tif (s.length() == 1) {\n\t\t\treturn s;\n\t\t} else if (s.length() == 2) {\n\t\t\tString changedStr = Character.toString(s.charAt(1)) + Character.toString(s.charAt(0));\n\t\t\treturn changedStr;\n\t\t} else {\n\t\t\t// recursive call of the method\n\t\t\tString changedStr = Character.toString(s.charAt(s.length() - 1))\n\t\t\t\t\t+ reverseString(s.substring(1, s.length() - 1)) + Character.toString(s.charAt(0));\n\t\t\treturn changedStr;\n\t\t}\n\t}", "title": "" }, { "docid": "1109425831c4bcb2c67a73d5ed39b5e8", "score": "0.62875015", "text": "public static void main(String[] args) {\n String names= \"Andi\";\n\n ReverseString(names);\n\n String names2= \"I love Cybertec\";\n ReverseString(names2);\n\n\n }", "title": "" }, { "docid": "eeedb5f2e803ebb0eff39619c63fa656", "score": "0.6283423", "text": "static char[] reverseString_2(char[] chars) {\n int i = 0;\n int j = chars.length - 1;\n while (i < j) {\n char c = chars[i];\n chars[i] = chars[j];\n chars[j] = c;\n\n i++;\n j--;\n }\n return chars;\n }", "title": "" }, { "docid": "c370f0e697112e1cd4285d607739a20c", "score": "0.62743247", "text": "public static void reverseString(char[] s) {\n for (int i=0, j = s.length - 1;i < j; i++,j--) {\n char temp = s[i];\n s[i] = s[j];\n s[j] = temp;\n }\n }", "title": "" }, { "docid": "d74538e5d6187e2eb0177c6d4bd67c6e", "score": "0.6264023", "text": "public static void main(String args[])\n\t {\n\t StringBuffer s= new StringBuffer(\"Geeks\");\n\t reverse(s);\n\t //print the reversed string\n\t System.out.println(\"Reversed string is : \" + s);\n\t \n\n\t\t String s2 = \"Google\";\n\t\t System.out.println(\"Reversed string is : \" + reverse2(s2));\n\t \n\t }", "title": "" }, { "docid": "00120bc4126cd16462318d5ef2d005d5", "score": "0.6259727", "text": "public static String reverse(String text) {\n\t\tif(text.length() <= 1) {\n\t\t\treturn text;\n\t\t}\n\t\telse {\n\t\t\treturn reverse(text.substring(1)) + text.charAt(0);\n\t\t}\n\t}", "title": "" }, { "docid": "e8f530235fe4b55245796f8e292c66f9", "score": "0.62549555", "text": "public static void reverse(StringBuffer str) \n\t {\n\t // Create a stack of capacity equal to length of string\n\t int n = str.length();\n\t Stack obj = new Stack(n);\n\t \n\t // Push all characters of string to stack\n\t for (int i = 0; i < n; i++)\n\t obj.push(str.charAt(i));\n\t \n\t // Pop all characters of string and put them back to str\n\t for (int i = 0; i < n; i++)\n\t { \n\t char ch = obj.pop();\n\t System.out.println(\"Pop : \" + ch);\n\t str.setCharAt(i,ch); //modify string\n\t }\n\t }", "title": "" }, { "docid": "32102be67296296b9333210fecfa99df", "score": "0.6218029", "text": "public static String reverseStr(String str) {\n\t\t\t//StringBuilder strbuilder=new StringBuilder(str);\n\t\t\t//strbuilder.reverse();\n\t\t\t//String newStr=strbuilder.toString();\n\t\t\t//return newStr;\n\t\t\treturn new StringBuilder(str).reverse().toString();\t\t//method chaining\n\t\t}", "title": "" }, { "docid": "6fd607b52402f0913a15fe1d8da25f2b", "score": "0.62172544", "text": "public static void main(String[] args) {\n String original=\"hellhe\";\r\n String reversed=\"\";\r\n for (int i =original.length()-1; i>=0; i--) {\r\n reversed=reversed+original.charAt(i); }\r\n if (original.equals(reversed)) {\r\n System.out.println(\"Given String is Palindrome\");\r\n }else {\r\n System.out.println(\"Given String is NOT Palindrome\"); }\r\n }", "title": "" }, { "docid": "f26dc0edb564e81992fe7fd81fc831e7", "score": "0.6216164", "text": "private static String reverseString(String str) {\n\t\tif(str == null){\n\t\t\tSystem.out.println(\"Null string\");\n\t\t\treturn null;\n\t\t}\n\t\tif(str.isEmpty()){\n\t\t\tSystem.out.println(\"Empty string\");\n\t\t\treturn null;\n\t }\n\t\tif(str.length() <= 1){\n\t\t\tSystem.out.println(str);\n\t\t\treturn str;\t\t\t\n\t\t}\t\t\n\t\tStringBuilder sb = new StringBuilder(str);\n\t\tfor(int i = 0 ; i < sb.length() /2 ; i++){\n\t\t\tchar temp = sb.charAt(i);\n\t\t\tint EndIndex = sb.length() - i - 1;\n\t\t\tsb.setCharAt(i, sb.charAt(EndIndex));\n\t\t\tsb.setCharAt(EndIndex, temp);\n\t\t}\n\t\tString tempString = sb.toString();\n\t\tString[] words = tempString.split(\" \");\n\t\tStringBuilder nsb = new StringBuilder();\n\t\tfor(String word : words){\n\t\t\tnsb.append(new StringBuffer(word).reverse().toString() + \" \");\n\t\t}\n\t\tString result = nsb.toString().trim();\n\t\treturn result;\n\t}", "title": "" }, { "docid": "9763debb5924f52384484e804a1a7cd1", "score": "0.62117714", "text": "public void reverseWord(){\n\t\t String oStr, rStr = \"\";\n\t Scanner in = new Scanner(System.in);\n\t \n\t System.out.println(\"Enter a string to reverse :\");\n\t oStr = in.nextLine();\n\t \n\t String[] original = oStr.split(\" \");\n\t \n\t System.out.println(\"The reversed string is : \\n\");\n\t\t\tfor(int i=original.length-1; i>=0; i--){\n\t\t\t\tSystem.out.print(original[i]+\" \"); \n\t\t\t} \n\t}", "title": "" }, { "docid": "3d80c07b6cdaa3ec9062f8a556eb044e", "score": "0.6211768", "text": "public String reverse(String str) {\n\t\t// convert to char array\n\t\tchar[] result = str.toCharArray();\n\t\t\n\t\t// return a new string\n\t\treturn new String(reverse(result));\n\t}", "title": "" }, { "docid": "f0457256a61f05f1c8e8f4fc3ea8ff53", "score": "0.62102836", "text": "public static String reverse(String s, int left, int right) {\n if (s == null || s.length() <= 1 || left < 0 || right >= s.length() || left >= right)\n return s;\n\n char[] a = s.toCharArray();\n while (left < right) {\n char temp = a[left];\n a[left] = a[right];\n a[right] = temp;\n left++;\n right--;\n }\n\n return new String(a);\n }", "title": "" }, { "docid": "7829037b88bb323bdf6e186c118e55e5", "score": "0.619013", "text": "public static void main(String[] args) {\n String s = \"Hello i am sunny\";\r\n \r\n StringBuffer p = new StringBuffer();\r\n \r\n String words[] = s.split(\" \");\r\n \r\n for(String word : words)\r\n {\r\n String d = new StringBuffer(word).reverse().toString();\r\n p.append(d + \" \");\r\n }\r\n System.out.println(p.toString().trim());\r\n \r\n}", "title": "" }, { "docid": "eefd820c909c64ae4c80eafd198c27ec", "score": "0.6181711", "text": "public static void main(String[] args) {\n\t\tString str = \"This is test\";\r\n\t\tString revstr = reverse(str);\r\n\t\tSystem.out.println(revstr);\r\n\t}", "title": "" }, { "docid": "2b1e6fcc136461b0df01beb8fd7a13b7", "score": "0.61622363", "text": "public abstract void reverse();", "title": "" }, { "docid": "2b1e6fcc136461b0df01beb8fd7a13b7", "score": "0.61622363", "text": "public abstract void reverse();", "title": "" }, { "docid": "54b617f71a786348a11ca3595741d2ba", "score": "0.6160366", "text": "private static void reverseStringByWords(String s) {\n\t\t\r\n\t}", "title": "" }, { "docid": "cd83d2b5a500e2e30ac8c91ec0419ded", "score": "0.61597854", "text": "public String reverse(String arg) {\r\n\t\t// TODO Implement method\r\n\r\n\t\tString s = null;\r\n\t\t\r\n\t\tif (myString == null) {\r\n\t\t\t s = \"\";\r\n\t\t\t \r\n\t\t}else if(arg==\"bcdxyz@3210.\")\r\n\t\t{\r\n\t\t\ts=\"aBC, xyz; 123.\";\r\n\t\t\t\r\n\t\t}else if(arg==\"6,.\")\r\n\t\t{\r\n\t\t\ts=\"my lucky numbers are 6, 8, and 19.\";\r\n\t\t\t\r\n\t\t}\t\r\n\t\treturn s;\r\n\t\t\r\n//\t\tmyString = \"ABc, xyz; 123.\";\r\n//\r\n//\t\t// cs.reverse(\"abcdxyz@3210.\");\r\n//\r\n//\t\tif (myString == null) {\r\n//\t\t\treturn myString = \"\";\r\n//\r\n//\t\t} else {\r\n//\t\t\tchar[] arrayOfArg = arg.toCharArray();\r\n//\r\n//\t\t\tchar[] arrayOfChar = myString.toCharArray();\r\n//\r\n//\t\t\tfor (int i = 0; i < arrayOfArg.length; i++) {\r\n//\r\n//\t\t\t\tboolean isLetter = Character.isLetter(arg.charAt(i));\r\n//\r\n//\t\t\t\tif (isLetter) {\r\n//\r\n//\t\t\t\t\tchar c1 = arg.charAt(i);\r\n//\r\n//\t\t\t\t\tchar c2 = arg.toUpperCase().charAt(i);\r\n//\r\n//\t\t\t\t\tchar a1 = myString.charAt(i);\r\n//\r\n//\t\t\t\t\tString s1 = Character.toString(a1);\r\n//\r\n//\t\t\t\t\tfor (int a = 0; a < arrayOfChar.length; a++) {\r\n//\r\n//\t\t\t\t\t\tchar c3 = 0;\r\n//\r\n//\t\t\t\t\t\tif (arrayOfChar[a] == c1 || arrayOfChar[a] == c2) {\r\n//\r\n//\t\t\t\t\t\t\tboolean isUpperCase = Character.isUpperCase(arrayOfChar[a]);\r\n//\t\t\t\t\t\t\tboolean isLowercase = Character.isLowerCase(arrayOfChar[a]);\r\n//\r\n//\t\t\t\t\t\t\tif (isUpperCase) {\r\n//\r\n//\t\t\t\t\t\t\t\tc3 = Character.toLowerCase(arrayOfChar[a]);\r\n//\r\n//\t\t\t\t\t\t\t\tString s2 = Character.toString(c3);\r\n//\r\n//\t\t\t\t\t\t\t\tmyString = myString.replace(s1, s2);\r\n//\r\n//\t\t\t\t\t\t\t}\r\n//\r\n//\t\t\t\t\t\t\telse if (isLowercase) {\r\n//\r\n//\t\t\t\t\t\t\t\tc3 = Character.toUpperCase(arrayOfChar[a]);\r\n//\r\n//\t\t\t\t\t\t\t\tString s2 = Character.toString(c3);\r\n//\r\n//\t\t\t\t\t\t\t\tmyString = myString.replace(s1, s2);\r\n//\r\n//\t\t\t\t\t\t\t}\r\n//\t\t\t\t\t\t}\r\n//\t\t\t\t\t}\r\n//\t\t\t\t}\r\n//\t\t\t}\r\n//\t\t\tSystem.out.println(myString);\r\n//\t\t\treturn myString;\r\n//\t\t}\r\n\t\t\r\n\r\n\t}", "title": "" }, { "docid": "717c33626eeb7d3d2c4a25bb9a99f7ed", "score": "0.6122751", "text": "public static String stringReverser(String inputS) {\n //String inputS = Objects.requireNonNull(s, \"Argument Object should NOT be null\");\n final int LENGTH = inputS.length();\n if (LENGTH == 1 || LENGTH == 0) {\n return inputS;\n }\n return stringReverser(inputS, 0, LENGTH - 1);\n }", "title": "" }, { "docid": "407f03a479e091719c89b2ef4c1e0719", "score": "0.6108799", "text": "public String reverseTransform(String input) {\n\t\t return forwardTransform(input);\n }", "title": "" }, { "docid": "0209580aa0e6d511116524a0b0dc4bd2", "score": "0.61027735", "text": "public static void main(String[] args) {\n\t\t\n\t\tString s= \"Manjunath Reddy\";\n\t\tStringBuffer str = new StringBuffer(s);\n\t\tstr=str.reverse();\t\t\n\t\tSystem.out.println(str.reverse());\n\t\t\n\t\tStringBuffer sbr= new StringBuffer(\"Manjunath\");\n\t sbr.reverse();\n\t\t\n\t System.out.println(sbr.reverse());\n\t sbr.charAt(1);\n\t}", "title": "" }, { "docid": "cd16367938ae1f65775ae26d9aafe932", "score": "0.60977644", "text": "public static String reverse(String str) {\n if (str == null || str.isEmpty()) {\n return \"\";\n }\n\n return new StringBuilder(str).reverse().toString();\n }", "title": "" }, { "docid": "2ac1cdf02fdd94a79c2dd8e5d39a509c", "score": "0.6090607", "text": "public static void main(String[] args) {\n\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tSystem.out.println(\"Enter some string\");\n\t\tString str = sc.next();\n\t\t\n\t\tString rev = \"\";\n\t\t\n\t\tchar chars[] = str.toCharArray();\n\t\t/*\n\t\tfor(int i=chars.length-1;i>=0;i--)\n\t\t{\n\t\t\trev+=chars[i];\n\t\t}\n\t\t*/\n\t\t\n\t\tStringBuilder sb =new StringBuilder();\n\t\tfor(int i=chars.length-1;i>=0;i--)\n\t\t{\n\t\t\tsb.append(chars[i]);\n\t\t}\n\t\trev = new String(sb);\n\t\tSystem.out.println(\"Reverse \"+rev);\n\t\t\n\t\tif(rev.equalsIgnoreCase(str))\n\t\t\tSystem.out.println(\"Palindrome\");\n\t\telse\n\t\t\tSystem.out.println(\"Not Palindrome\");\n\t\t\n\t}", "title": "" }, { "docid": "bb1174ce8aa2175ded341d05fd228f9e", "score": "0.6088379", "text": "public static char[] reverse(char[] input) {\n\tchar[] output = new char[input.length];\n\tfor (int i = 0; i < input.length; i++) {\n\t output[i] = input[input.length - i - 1];\n\t}\n\treturn output;\n }", "title": "" }, { "docid": "392cba4562558c43f1d7458042b954b2", "score": "0.6079938", "text": "public static void main(String[] args) {\nScanner u=new Scanner(System.in);\r\nSystem.out.println(\"enter\");\r\nString ori=u.next();\r\nString rev=new StringBuffer(ori).reverse().toString();\r\nSystem.out.println(rev);\r\n\t}", "title": "" }, { "docid": "be2b312b0e0f9c17f0d51d939261be54", "score": "0.60638475", "text": "public static String renverser(String s) {\r\n //System.out.println(s.substring(0, s.length() - 2));\r\n switch (s.length()) {\r\n\r\n case 1:\r\n return s;\r\n // case 2:\r\n // return s.substring(1) + s.substring(0, 1);\r\n \r\n default:\r\n return s.substring(s.length() - 1) + renverser(s.substring(0, s.length() - 1));\r\n }\r\n\r\n }", "title": "" }, { "docid": "328088ca8459bff4901bc607b171eb02", "score": "0.6062169", "text": "public String longestPalindrome(String s) {\n String output=\"\";\n String finalStr=\"\";\n if(s.length()==1)return s;\n int maxLength=Integer.MIN_VALUE;\n char[] chars=s.toCharArray();\n for(int i=0;i<chars.length;i++){\n output+=chars[i];\n for(int j=i+1;j<chars.length;j++){\n StringBuffer temp=new StringBuffer();\n output+=chars[j];\n temp.append(output);\n String rev=temp.reverse().toString();\n if(rev.equals(s.substring(i,j+1))){\n if(rev.length()>maxLength){\n finalStr= s.substring(i,j+1);\n }\n maxLength=Math.max(maxLength,rev.length());\n }\n }\n output=\"\";\n }\n return finalStr.isEmpty()?s.charAt(0)+\"\":finalStr;\n }", "title": "" }, { "docid": "67d21e9258bc76063be587c5054c8302", "score": "0.60555065", "text": "public static String reverse(String text) {\n String reversedWord = \"\";\n String helperText = text;\n int textLength = text.length();\n \n\n \n while (reversedWord.length() < helperText.length()) {\n String lastLetter = text.substring((textLength - 1),textLength);\n textLength--; \n reversedWord += lastLetter;\n\n }\n return reversedWord;\n }", "title": "" }, { "docid": "244f53baa012645a8db0c3a166f65e8d", "score": "0.6040572", "text": "private String toReversed(String intext) {\n return new StringBuilder(intext).reverse().toString();\n }", "title": "" }, { "docid": "a3401f0f4bb57c83d7d68710e8a64bf9", "score": "0.60368663", "text": "public static String reverse(String str) {\n if (str == null) {\n return null;\n }\n return new StringBuffer(str).reverse().toString();\n }", "title": "" }, { "docid": "69dbd4cb21912de5969cb82baacd8eaa", "score": "0.6032262", "text": "public String longestPalindrome(String s){\n\t\t\tint length = s.length();\n\t\t\tString result = \"\";\n\t\t\tif(length == 1){\n\t\t\t\treturn s;\n\t\t\t}\n\t\t\tfor(int i = 0; i < length; i++){\n\t\t int right = i;\n\t\t int left = i;\n\t\t \n\t\t while(left > 0 && right < length - 1 && s.charAt(left - 1) == s.charAt(right + 1)){\n\t\t left--;\n\t\t right++;\n\t\t }\n\t\t \n\t\t if((right - left + 1) > result.length()){\n\t\t result = s.substring(left, right + 1);\n\t\t }\n\t\t }\n\t\t \n\t\t for(int i = 0; i < length - 1; i++){\n\t\t if(s.charAt(i) == s.charAt(i + 1)){\n\t\t int right = i + 1;\n\t\t int left = i;\n\t\t \n\t\t while(left > 0 && right < length - 1 && s.charAt(left - 1) == s.charAt(right + 1)){\n\t\t left--;\n\t\t right++;\n\t\t }\n\t\t \n\t\t if((right - left + 1) > result.length()){\n\t\t result = s.substring(left, right + 1);\n\t\t }\n\t\t }\n\t\t }\n\t\t return result;\n }", "title": "" }, { "docid": "0ae39525faa2c3eb601c6695e4532b6f", "score": "0.60298496", "text": "public static String reverseString(String input) {\n\t\tif (input==null) {\n\t\t\treturn null;\n\t\t}\n\t\tif (input.length()<=1) {\n\t\t\treturn input;\n\t\t} else if (input.length()==2) {\n\t\t\tchar[] cTemp = input.toCharArray();\n\t\t\tchar c1 = cTemp[0] ;\n\t\t\tcTemp[0] = cTemp[1];\n\t\t\tcTemp[1] = c1;\n\t\t\treturn new String(cTemp);\n\t\t} else {\n\t\t\treturn reverseString(input.substring(1)) + input.charAt(0) ;\n\t\t}\n\t}", "title": "" }, { "docid": "b07da713c6cbfa5c3a685c2f7c474562", "score": "0.60284615", "text": "public static String reverseString(String S)\n\t{\n\t\tString t=\"\";\n\t\tfor(int i=S.length()-1;i>-1;i--)\n\t\t{\n\t\t\tt+=S.charAt(i);\n\t\t}\n\t\treturn t;\n\t}", "title": "" }, { "docid": "65d65552afceb4a3e4d8c89a816b0ee9", "score": "0.60181904", "text": "public static String FirstReverse(String str) {\n\n StringBuilder sb = new StringBuilder(str);\n return sb.reverse().toString();\n\n }", "title": "" }, { "docid": "2a504cc854a04c29eed6e5cbc185b6a1", "score": "0.60167557", "text": "static boolean isPalindromMirror(String input){\n String reversedString = \"\";\n\n for (int i = input.length()-1; i >=0; i--) {\n reversedString += input.charAt(i);\n }\n return reversedString.equals(input);\n }", "title": "" }, { "docid": "80f6e6a01539ab135dda6b5953005af3", "score": "0.6016088", "text": "public static String reverse(String str) {\n\t\t\n\t\tString a =\"\";\n\t\tint c = str.length();\n\t\tif(c == 0) {\n\t\t\treturn a;\n\t\t}else if(c!=0) {\n\t\t\t a += str.charAt(0);\n\t\t\t str = str.substring(1);\n\t\t\n\t\t\tSystem.out.println(a);\n\t\t\treturn reverse(str)+a;\n\t\t}\n\t\treturn a;\n\t\t}", "title": "" }, { "docid": "09437a47f15e0c888b15a3a4d7e8a578", "score": "0.601604", "text": "public static void main(String[] args) {\n String Sentence = \"My name is Imtiaz\";\n String reversedSentence = reverse(Sentence);\n System.out.println(\"The reversed sentence is \" + reversedSentence);\n }", "title": "" }, { "docid": "e8f7142940ca1cf7cb94bdfe8fffb7ba", "score": "0.60070974", "text": "private static String longestPalindrome(String s, int index) {\n\t\tint begin = index, end = index;\n\t\tboolean beginSpace = false, endSpace = false;\n\t\twhile (begin >= 0 && end <= s.length() - 1\n\t\t\t\t&& s.charAt(begin) == s.charAt(end)) {\n\t\t\t--begin;\n\t\t\t++end;\n\t\t\tbeginSpace = false;\n\t\t\tendSpace = false;\n\n\t\t\t// ignore spaces, should only ignore one char at most assuming properly formatted string\n\t\t\t// used while loop for clarity\n\t\t\twhile (begin >= 0 && s.charAt(begin) == ' ') {\n\t\t\t\t--begin;\n\t\t\t\tbeginSpace = true;\n\t\t\t}\n\t\t\twhile (end <= s.length() - 1 && s.charAt(end) == ' ') {\n\t\t\t\t++end;\n\t\t\t\tendSpace = true;\n\t\t\t}\n\t\t}\n\n\t\tString result;\n\n\t\t// long and complicated!\n\n\t\t// when the result contains a space in the beginning and the end\n\t\tif (beginSpace && endSpace) {\n\t\t\tresult = s.substring(begin + 2, end - 1);\n\t\t}\n\t\t// when the result contains only a space in the beginning\n\t\telse if (beginSpace) {\n\t\t\tresult = s.substring(begin + 2, end);\n\t\t}\n\t\t// when the result contains only a space in the end\n\t\telse if (endSpace) {\n\t\t\tresult = s.substring(begin + 1, end - 1);\n\t\t}\n\t\t// when the result doesn't begin or end in a space\n\t\telse {\n\t\t\tresult = s.substring(begin + 1, end);\n\t\t}\n\n\t\t// if beginning of s is an imcomplete word\n\t\tif (s.charAt(begin + 1) != ' ') {\n\t\t\tif (result.contains(\" \")) {\n\t\t\t\tresult = result.substring(result.indexOf(' '),\n\t\t\t\t\t\tresult.length());\n\t\t\t} else {\n\t\t\t\tresult = \"\";\n\t\t\t}\n\t\t}\n\t\t\n\t\t// if end of s is an imcomplete word\n\t\tif (s.charAt(end - 1) != ' ') {\n\t\t\tif (result.contains(\" \")) {\n\t\t\t\tresult = result.substring(result.indexOf(' '));\n\t\t\t} else {\n\t\t\t\tresult = \"\";\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn result;\n\t}", "title": "" }, { "docid": "eb895e7ac36897555e7db401cada6e4a", "score": "0.5987838", "text": "public static void main(String[] args) {\n\n\t\tString s = \"I am Navya\" ;\n\t String[] str =s.split(\" \");\n\t StringBuffer buffer = new StringBuffer();\n\t for(int i=str.length-1;i>=0;i--)\n\t {\n\t buffer.append(str[i]);\n\t buffer.append(\" \");\n\t }\n\t System.out.println(\"\\nOriginal string: \" + s);\n\t System.out.println(\"Reverse word string:\"+buffer.toString());\n\t}", "title": "" }, { "docid": "763df7b4e306934da778bf80dd057626", "score": "0.5960212", "text": "public static String reverseString(String pw) {\n if (pw.isEmpty()) {\n return pw;\n }\n return reverseString(pw.substring(1)) + pw.charAt(0);\n }", "title": "" }, { "docid": "9e14020bc7aaab3e85f4e5f39ccc2459", "score": "0.59591013", "text": "public static void main(String[] args) {\n\t\t\n\t\tStringBuffer sbuffer = new StringBuffer(\"This is Subhasish\");\n\t\tSystem.out.println(sbuffer.reverse());\n\t\t\n\t\tStringBuilder sbuilder = new StringBuilder(\"hsisahbuS si sihT\");\n\t\tSystem.out.println(sbuilder.reverse());\n\t}", "title": "" }, { "docid": "853eb53150e5c3820d8948803f6ae88e", "score": "0.5948353", "text": "public String forwardTransform(String input) {\n\t\tString reversedString = \"\";\n\t\tfor (int i = input.length(); i > 0; i--) {\n\t\t\treversedString += input.charAt(i - 1);\n\t\t}\n\t\treturn reversedString;\n\t }", "title": "" }, { "docid": "92c6799f68baea31861cd1584603109d", "score": "0.5947049", "text": "private static int solve(String s) {\n\t\tStringBuilder sb = new StringBuilder(s);\n\t\tif(check(sb)) {\n\t\t\treturn sb.length();\n\t\t}\n\t\t\n\t\tfor(int i = 1; i < s.length(); i++) {\n\t\t\tsb = new StringBuilder(s);\n\t\t\tsb.append(new StringBuilder(sb.substring(0, i)).reverse());\n\t\t\t\n\t\t\tif(check(sb)) {\n\t\t\t\treturn sb.length();\n\t\t\t}\n\t\t}\n\t\treturn -1;\n\t}", "title": "" }, { "docid": "156e78a4f3b38c0b04793f4f1364a0f9", "score": "0.5941692", "text": "public void reverseString(char[] s, int from, int to) {\n if (from < to) {\n var tmp = s[from];\n s[from] = s[to];\n s[to] = tmp;\n reverseString(s, from + 1, to - 1);\n }\n }", "title": "" }, { "docid": "0a00a51ca5ea97f1ccde99f5510e8d52", "score": "0.5941662", "text": "public void reverse() {\n rev = !rev;\n comp = comp.reversed();\n }", "title": "" }, { "docid": "1863676c427505cc3506b5ab1398243a", "score": "0.5938386", "text": "public static void main(String... args) {\n\n String reversed = \".eslaf eb t'ndluow ecnetnes siht ,dehctiws erew eslaf dna eurt fo sgninaem eht fI\";\n\n System.out.println(rev1(reversed));\n System.out.println(rev2(reversed));\n\n }", "title": "" }, { "docid": "18b0fcef396fcc79704f3c8aebc4e792", "score": "0.5938266", "text": "public String reverseWords2(String s) {\n\t String[] strs = s.split(\" \");\n\t StringBuilder sb = new StringBuilder();\n\t for(String str: strs){\n\t StringBuilder temp = new StringBuilder(str);\n\t sb.append(temp.reverse());\n\t sb.append(\" \");\n\t }\n\t return sb.toString();\n\t}", "title": "" }, { "docid": "2799d5265c307d9502390c54daa19597", "score": "0.58922833", "text": "public static void main(String[] args) {\r\n\t\t// TODO Auto-generated method stub\r\n\t\tString s = \"ReverseThisString\";\r\n\t\ts = reverseString_v1(s);\r\n\t\tSystem.out.println(s);\r\n\t\t\r\n\t\tStringBuffer s1 = new StringBuffer(\"12345\");\r\n\t\t reverseString_v2(s1);\r\n\t\tSystem.out.println(s1);\r\n\t}", "title": "" } ]
ea42e356bbb8c80d4634e409f8295e3e
only works for linux
[ { "docid": "0ad3e7cbd6b2139295cad621adad2fd7", "score": "0.0", "text": "public static void createTempFileForLinux() throws IOException {\n Path path = Files.createTempFile(\"temp_linux_file\", \".txt\",\n PosixFilePermissions.asFileAttribute(PosixFilePermissions.fromString(\"rw-------\")));\n System.out.println(\"Path is : \" + path.toFile().getAbsolutePath());\n }", "title": "" } ]
[ { "docid": "d723def4d65a0e09c6231db0c8167d09", "score": "0.53882784", "text": "java.lang.String getSystem();", "title": "" }, { "docid": "62fdc27225f850a55f190f8bb4761a9a", "score": "0.5366506", "text": "private boolean osIstLinux() {\n\t\treturn System.getProperty(\"os.name\").equals(\"Linux\");\n\t}", "title": "" }, { "docid": "600fe4241571c149babb26a23793fd8f", "score": "0.536603", "text": "String operatingSystem();", "title": "" }, { "docid": "8c5e08ee0f8f65f61f05502484415cc3", "score": "0.5264064", "text": "public abstract String getSystem( );", "title": "" }, { "docid": "9f8e6871539fd9b2016daf6f03579a41", "score": "0.5197975", "text": "String getOs();", "title": "" }, { "docid": "f7e32c3defd0251a33aca92452df093f", "score": "0.51465404", "text": "zzand mo29852bb() throws RemoteException;", "title": "" }, { "docid": "bd84610e60fa99d729db19a8c08bb6c4", "score": "0.5114432", "text": "private boolean m21866j() {\n /*\n r12 = this;\n r0 = 2\n java.io.File[] r0 = new java.io.File[r0]\n java.io.File r1 = new java.io.File\n java.lang.String r2 = \"/proc/tty/drivers\"\n r1.<init>(r2)\n r2 = 0\n r0[r2] = r1\n java.io.File r1 = new java.io.File\n java.lang.String r3 = \"/proc/cpuinfo\"\n r1.<init>(r3)\n r3 = 1\n r0[r3] = r1\n int r1 = r0.length\n r4 = r2\n L_0x0019:\n if (r4 >= r1) goto L_0x007d\n r5 = r0[r4]\n boolean r6 = r5.exists()\n if (r6 == 0) goto L_0x007a\n boolean r6 = r5.canRead()\n if (r6 == 0) goto L_0x007a\n r6 = 1024(0x400, float:1.435E-42)\n char[] r6 = new char[r6]\n java.lang.StringBuilder r7 = new java.lang.StringBuilder\n r7.<init>()\n r8 = 0\n java.io.BufferedReader r9 = new java.io.BufferedReader // Catch:{ Exception -> 0x0074, all -> 0x006d }\n java.io.InputStreamReader r10 = new java.io.InputStreamReader // Catch:{ Exception -> 0x0074, all -> 0x006d }\n java.io.FileInputStream r11 = new java.io.FileInputStream // Catch:{ Exception -> 0x0074, all -> 0x006d }\n r11.<init>(r5) // Catch:{ Exception -> 0x0074, all -> 0x006d }\n r10.<init>(r11) // Catch:{ Exception -> 0x0074, all -> 0x006d }\n r9.<init>(r10) // Catch:{ Exception -> 0x0074, all -> 0x006d }\n L_0x0042:\n int r5 = r9.read(r6) // Catch:{ Exception -> 0x006b, all -> 0x0068 }\n r8 = -1\n if (r5 == r8) goto L_0x004d\n r7.append(r6, r2, r5) // Catch:{ Exception -> 0x006b, all -> 0x0068 }\n goto L_0x0042\n L_0x004d:\n if (r9 == 0) goto L_0x0052\n r9.close() // Catch:{ IOException -> 0x0052 }\n L_0x0052:\n java.lang.String r5 = r7.toString()\n java.lang.String[] r6 = f16401e\n int r7 = r6.length\n r8 = r2\n L_0x005a:\n if (r8 >= r7) goto L_0x007a\n r9 = r6[r8]\n boolean r9 = r5.contains(r9)\n if (r9 == 0) goto L_0x0065\n return r3\n L_0x0065:\n int r8 = r8 + 1\n goto L_0x005a\n L_0x0068:\n r0 = move-exception\n r8 = r9\n goto L_0x006e\n L_0x006b:\n r8 = r9\n goto L_0x0074\n L_0x006d:\n r0 = move-exception\n L_0x006e:\n if (r8 == 0) goto L_0x0073\n r8.close() // Catch:{ IOException -> 0x0073 }\n L_0x0073:\n throw r0\n L_0x0074:\n if (r8 == 0) goto L_0x0079\n r8.close() // Catch:{ IOException -> 0x0079 }\n L_0x0079:\n return r2\n L_0x007a:\n int r4 = r4 + 1\n goto L_0x0019\n L_0x007d:\n return r2\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.startapp.android.p163a.C5073a.m21866j():boolean\");\n }", "title": "" }, { "docid": "d8fed5ad539bdffda7c577c1d362d9e7", "score": "0.51107323", "text": "Info mo7564ix();", "title": "" }, { "docid": "8fd1fbebcf502032e8f36d8b2421fda4", "score": "0.5105853", "text": "zzang mo29839S() throws RemoteException;", "title": "" }, { "docid": "f6d51361cd2686f8654f7abc9f86a0cc", "score": "0.5072573", "text": "public native String canopenUtils(String[] cmd);", "title": "" }, { "docid": "5f65b30a9808700d357813091b4b515c", "score": "0.5068317", "text": "public static void main(String[]args) {\n\t\n\t\t\n\n}", "title": "" }, { "docid": "f9d3b845abcd338098ed85211ab720a3", "score": "0.5059404", "text": "String platform();", "title": "" }, { "docid": "cb4fc4ccd9373015a2d32b9038afd1a3", "score": "0.50512725", "text": "SystemData systemData();", "title": "" }, { "docid": "cb4fc4ccd9373015a2d32b9038afd1a3", "score": "0.50512725", "text": "SystemData systemData();", "title": "" }, { "docid": "cb4fc4ccd9373015a2d32b9038afd1a3", "score": "0.50512725", "text": "SystemData systemData();", "title": "" }, { "docid": "cb4fc4ccd9373015a2d32b9038afd1a3", "score": "0.50512725", "text": "SystemData systemData();", "title": "" }, { "docid": "cb4fc4ccd9373015a2d32b9038afd1a3", "score": "0.50512725", "text": "SystemData systemData();", "title": "" }, { "docid": "a57347f867b4700059b97cfea92ef132", "score": "0.50346494", "text": "public static void main(String[] src) throws UnsupportedEncodingException {\n List<String> cmd = new ArrayList<>();\n cmd.add(\"C:\\\\Program Files (x86)\\\\Mozilla Firefox\\\\firefox.exe\");\n cmd.add(\"-no-remote\");\n cmd.add(\"-P\");\n cmd.add(\"aesha2\");\n// cmd.add(\"\\\"fileName\\\"\");\n ProcessBuilder builder = new ProcessBuilder().command(cmd);\n Process process = null;\n int exitCode=-1;\n\n try {\n process = builder.start();\n final Process finalProcess = process;\n Thread t=new Thread(new Runnable() {\n @Override\n public void run() {\n try {\n Thread.sleep(10000);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n finalProcess.destroy();\n }\n });\n t.start();\n exitCode = process.waitFor();\n } catch (InterruptedException e) {\n String ed=new String(e.getMessage());\n System.out.println(ed);\n } catch (IOException e) {\n String ed=new String(e.getMessage());\n System.out.println(ed);\n }\n process.destroy();\n System.out.println(exitCode);\n }", "title": "" }, { "docid": "a2eedf415cfa01d3f8741ca37b686c39", "score": "0.50168866", "text": "zzana mo29855eb() throws RemoteException;", "title": "" }, { "docid": "cffc0ed3c08249adb3ff7f3c89e853e8", "score": "0.50103", "text": "java.lang.String getOs();", "title": "" }, { "docid": "762690349ccd4f1190d313b06e10bc42", "score": "0.49841017", "text": "private static java.io.File c(java.lang.String r8, java.lang.String r9) {\n /*\n r0 = 0;\n r1 = 0;\n r2 = new java.io.File;\t Catch:{ Exception -> 0x00e8, all -> 0x00e4 }\n r2.<init>(r8);\t Catch:{ Exception -> 0x00e8, all -> 0x00e4 }\n r8 = r2.exists();\t Catch:{ Exception -> 0x00e1, all -> 0x00de }\n if (r8 != 0) goto L_0x001d;\n L_0x000d:\n r8 = \"DecryptUtils\";\n r9 = \"unZipSingleFile file don't exist\";\n r3 = new java.lang.Object[r0];\t Catch:{ Exception -> 0x00e1, all -> 0x00de }\n com.taobao.sophix.e.d.e(r8, r9, r3);\t Catch:{ Exception -> 0x00e1, all -> 0x00de }\n com.taobao.sophix.e.b.a(r1);\n r2.delete();\n return r1;\n L_0x001d:\n r8 = new java.lang.StringBuilder;\t Catch:{ Exception -> 0x00e1, all -> 0x00de }\n r8.<init>();\t Catch:{ Exception -> 0x00e1, all -> 0x00de }\n r8.append(r9);\t Catch:{ Exception -> 0x00e1, all -> 0x00de }\n r9 = java.io.File.separator;\t Catch:{ Exception -> 0x00e1, all -> 0x00de }\n r8.append(r9);\t Catch:{ Exception -> 0x00e1, all -> 0x00de }\n r9 = \"unzip\";\n r8.append(r9);\t Catch:{ Exception -> 0x00e1, all -> 0x00de }\n r8 = r8.toString();\t Catch:{ Exception -> 0x00e1, all -> 0x00de }\n r9 = new java.io.File;\t Catch:{ Exception -> 0x00e1, all -> 0x00de }\n r9.<init>(r8);\t Catch:{ Exception -> 0x00e1, all -> 0x00de }\n com.taobao.sophix.e.b.a(r9);\t Catch:{ Exception -> 0x00e1, all -> 0x00de }\n r3 = r9.exists();\t Catch:{ Exception -> 0x00e1, all -> 0x00de }\n if (r3 != 0) goto L_0x0044;\n L_0x0041:\n r9.mkdirs();\t Catch:{ Exception -> 0x00e1, all -> 0x00de }\n L_0x0044:\n r9 = new java.util.zip.ZipInputStream;\t Catch:{ Exception -> 0x00e1, all -> 0x00de }\n r3 = new java.io.FileInputStream;\t Catch:{ Exception -> 0x00e1, all -> 0x00de }\n r3.<init>(r2);\t Catch:{ Exception -> 0x00e1, all -> 0x00de }\n r9.<init>(r3);\t Catch:{ Exception -> 0x00e1, all -> 0x00de }\n L_0x004e:\n r3 = r9.getNextEntry();\t Catch:{ Exception -> 0x00dc }\n if (r3 == 0) goto L_0x00f4;\n L_0x0054:\n r4 = r3.getName();\t Catch:{ Exception -> 0x00dc }\n r3 = r3.isDirectory();\t Catch:{ Exception -> 0x00dc }\n if (r3 == 0) goto L_0x0085;\n L_0x005e:\n r3 = r4.length();\t Catch:{ Exception -> 0x00dc }\n r3 = r3 + -1;\n r3 = r4.substring(r0, r3);\t Catch:{ Exception -> 0x00dc }\n r4 = new java.io.File;\t Catch:{ Exception -> 0x00dc }\n r5 = new java.lang.StringBuilder;\t Catch:{ Exception -> 0x00dc }\n r5.<init>();\t Catch:{ Exception -> 0x00dc }\n r5.append(r8);\t Catch:{ Exception -> 0x00dc }\n r6 = java.io.File.separator;\t Catch:{ Exception -> 0x00dc }\n r5.append(r6);\t Catch:{ Exception -> 0x00dc }\n r5.append(r3);\t Catch:{ Exception -> 0x00dc }\n r3 = r5.toString();\t Catch:{ Exception -> 0x00dc }\n r4.<init>(r3);\t Catch:{ Exception -> 0x00dc }\n r4.mkdirs();\t Catch:{ Exception -> 0x00dc }\n goto L_0x004e;\n L_0x0085:\n r3 = new java.io.File;\t Catch:{ Exception -> 0x00dc }\n r5 = new java.lang.StringBuilder;\t Catch:{ Exception -> 0x00dc }\n r5.<init>();\t Catch:{ Exception -> 0x00dc }\n r5.append(r8);\t Catch:{ Exception -> 0x00dc }\n r6 = java.io.File.separator;\t Catch:{ Exception -> 0x00dc }\n r5.append(r6);\t Catch:{ Exception -> 0x00dc }\n r5.append(r4);\t Catch:{ Exception -> 0x00dc }\n r4 = r5.toString();\t Catch:{ Exception -> 0x00dc }\n r3.<init>(r4);\t Catch:{ Exception -> 0x00dc }\n r3.createNewFile();\t Catch:{ Exception -> 0x00dc }\n r4 = new java.io.FileOutputStream;\t Catch:{ Exception -> 0x00c7, all -> 0x00c4 }\n r4.<init>(r3);\t Catch:{ Exception -> 0x00c7, all -> 0x00c4 }\n r5 = 1024; // 0x400 float:1.435E-42 double:5.06E-321;\n r5 = new byte[r5];\t Catch:{ Exception -> 0x00c2 }\n L_0x00aa:\n r6 = r9.read(r5);\t Catch:{ Exception -> 0x00c2 }\n r7 = -1;\n if (r6 == r7) goto L_0x00b8;\n L_0x00b1:\n r4.write(r5, r0, r6);\t Catch:{ Exception -> 0x00c2 }\n r4.flush();\t Catch:{ Exception -> 0x00c2 }\n goto L_0x00aa;\n L_0x00b8:\n com.taobao.sophix.e.b.a(r4);\t Catch:{ Exception -> 0x00dc }\n com.taobao.sophix.e.b.a(r9);\n r2.delete();\n return r3;\n L_0x00c2:\n r3 = move-exception;\n goto L_0x00c9;\n L_0x00c4:\n r8 = move-exception;\n r4 = r1;\n goto L_0x00d8;\n L_0x00c7:\n r3 = move-exception;\n r4 = r1;\n L_0x00c9:\n r5 = \"DecryptUtils\";\n r6 = \"unZipSingleFile unZip hotfix patch file error\";\n r7 = new java.lang.Object[r0];\t Catch:{ all -> 0x00d7 }\n com.taobao.sophix.e.d.a(r5, r6, r3, r7);\t Catch:{ all -> 0x00d7 }\n com.taobao.sophix.e.b.a(r4);\t Catch:{ Exception -> 0x00dc }\n goto L_0x004e;\n L_0x00d7:\n r8 = move-exception;\n L_0x00d8:\n com.taobao.sophix.e.b.a(r4);\t Catch:{ Exception -> 0x00dc }\n throw r8;\t Catch:{ Exception -> 0x00dc }\n L_0x00dc:\n r8 = move-exception;\n goto L_0x00eb;\n L_0x00de:\n r8 = move-exception;\n r9 = r1;\n goto L_0x00fc;\n L_0x00e1:\n r8 = move-exception;\n r9 = r1;\n goto L_0x00eb;\n L_0x00e4:\n r8 = move-exception;\n r9 = r1;\n r2 = r9;\n goto L_0x00fc;\n L_0x00e8:\n r8 = move-exception;\n r9 = r1;\n r2 = r9;\n L_0x00eb:\n r3 = \"DecryptUtils\";\n r4 = \"unZipSingleFile unZip hotfix patch file error\";\n r0 = new java.lang.Object[r0];\t Catch:{ all -> 0x00fb }\n com.taobao.sophix.e.d.a(r3, r4, r8, r0);\t Catch:{ all -> 0x00fb }\n L_0x00f4:\n com.taobao.sophix.e.b.a(r9);\n r2.delete();\n return r1;\n L_0x00fb:\n r8 = move-exception;\n L_0x00fc:\n com.taobao.sophix.e.b.a(r9);\n r2.delete();\n throw r8;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.taobao.sophix.e.a.c(java.lang.String, java.lang.String):java.io.File\");\n }", "title": "" }, { "docid": "16a09fe940175882ab369886d1d45f49", "score": "0.49628878", "text": "private void formatSystem() {}", "title": "" }, { "docid": "edb9c32111fb5e69e494315944e9ae1d", "score": "0.49470115", "text": "public static void main(String[] args)\r\t{", "title": "" }, { "docid": "d5425b7d953e087308354df2e57930ef", "score": "0.49347714", "text": "public static void main(String[] args) {\nsyso \n\t}", "title": "" }, { "docid": "86fb7f3f3ce3c72a9fa4d8d682a6ecb4", "score": "0.49299702", "text": "private static byte[] m2539e(Context context) {\n Throwable th;\n int i = 0;\n ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream();\n byte[] bArr = new byte[0];\n String a = Log.m2547a(context, Log.f1857e);\n DiskLruCache diskLruCache = null;\n try {\n diskLruCache = DiskLruCache.m2767a(new File(a), 1, 1, 10240);\n File file = new File(a);\n if (file != null && file.exists()) {\n String[] list = file.list();\n int length = list.length;\n while (i < length) {\n String str = list[i];\n if (str.contains(\".0\")) {\n byteArrayOutputStream.write(StatisticsManager.m2535a(diskLruCache, str.split(\"\\\\.\")[0]));\n }\n i++;\n }\n }\n bArr = byteArrayOutputStream.toByteArray();\n if (byteArrayOutputStream != null) {\n try {\n byteArrayOutputStream.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n if (diskLruCache != null) {\n try {\n diskLruCache.close();\n } catch (Throwable th2) {\n th = th2;\n }\n }\n } catch (IOException th3) {\n BasicLogHandler.m2542a(th3, \"StatisticsManager\", \"getContent\");\n if (byteArrayOutputStream != null) {\n try {\n byteArrayOutputStream.close();\n } catch (IOException e2) {\n e2.printStackTrace();\n }\n }\n if (diskLruCache != null) {\n diskLruCache.close();\n }\n } catch (Throwable th4) {\n th3 = th4;\n }\n return bArr;\n th3.printStackTrace();\n return bArr;\n }", "title": "" }, { "docid": "ea4cabcd9b472f291d5407b8218bffbf", "score": "0.49163532", "text": "private static void systemCmd(String cmd) \n\t{\n\n\t\tStringBuffer stringBuffer = new StringBuffer();\n\t\ttry \n\t\t{ \n\t\t\tProcess p=Runtime.getRuntime().exec(cmd); \n\t\t\tp.waitFor(); \n\t\t\tBufferedReader reader=new BufferedReader(new InputStreamReader(p.getInputStream())); \n\t\t\tString line=reader.readLine(); \n\t\t\twhile(line!=null) \n\t\t\t{ \n\t\t\t\tSystem.out.println(line); \n\t\t\t\tline=reader.readLine(); \n\t\t\t} \n\n\t\t} \n\t\tcatch (Exception e) {\n\t\t\tSystem.out.println(\"Exception: while executing systemCmd \" + cmd);\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "title": "" }, { "docid": "d3e664b99b42ff34df7f090bf8c88e8d", "score": "0.49153674", "text": "public static void main(String[] args) {\n\r\n\t\tRuntime runtime = Runtime.getRuntime();\r\n\r\n\t\ttry {\r\n\r\n\t\t\t// 获取当前链接的设备\r\n\t\t\tProcess pro_get_deviceslist = runtime.exec(Commands.cmd_get_deviceslist);\r\n\r\n\t\t\tInputStream is_get_deviceslist = pro_get_deviceslist.getInputStream();\r\n\t\t\tInputStreamReader isr_get_deviceslist = new InputStreamReader(is_get_deviceslist);\r\n\t\t\tBufferedReader br_get_deviceslist = new BufferedReader(isr_get_deviceslist);\r\n\r\n\t\t\tif (devices == null) {\r\n\t\t\t\tdevices = new ArrayList<>();\r\n\t\t\t}\r\n\r\n\t\t\tString rl_get_deviceslist = null;\r\n\t\t\twhile ((rl_get_deviceslist = br_get_deviceslist.readLine()) != null) {\r\n\r\n\t\t\t\tif (rl_get_deviceslist.contains(\"\t\")) {\r\n\t\t\t\t\trl_get_deviceslist = rl_get_deviceslist.trim().split(\"\t\")[0];\r\n\r\n\t\t\t\t\tDeviceBean devicesBean = new DeviceBean();\r\n\t\t\t\t\tdevicesBean.setDevicename(rl_get_deviceslist);\r\n\t\t\t\t\tdevices.add(devicesBean);\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\r\n\t\t\tbr_get_deviceslist.close();\r\n\t\t\tisr_get_deviceslist.close();\r\n\t\t\tis_get_deviceslist.close();\r\n\t\t\tpro_get_deviceslist.destroy();\r\n\r\n\t\t\tif (devices == null || devices.size() < 1) {\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\r\n\t\t\t// 遍历设备列表,计算每个设备的屏幕宽高\r\n\t\t\tfor (DeviceBean devicesBean : devices) {\r\n\t\t\t\tProcess pro_get_width_height = runtime.exec(Commands.getPixelCommand(devicesBean.getDevicename()));\r\n\t\t\t\tInputStream is_get_width_height = pro_get_width_height.getInputStream();\r\n\t\t\t\tInputStreamReader isr_get_width_height = new InputStreamReader(is_get_width_height);\r\n\t\t\t\tBufferedReader br_get_width_height = new BufferedReader(isr_get_width_height);\r\n\r\n\t\t\t\tString rl_get_width_height = br_get_width_height.readLine();\r\n\t\t\t\tint width = Integer.parseInt((rl_get_width_height.split(\" \")[2].trim().split(\"x\")[0]));\r\n\t\t\t\tint height = Integer.parseInt((rl_get_width_height.split(\" \")[2].trim().split(\"x\")[1]));\r\n\t\t\t\tdevicesBean.setWidth(width);\r\n\t\t\t\tdevicesBean.setHeight(height);\r\n\r\n\t\t\t\tbr_get_width_height.close();\r\n\t\t\t\tisr_get_width_height.close();\r\n\t\t\t\tis_get_width_height.close();\r\n\t\t\t\tpro_get_width_height.destroy();\r\n\t\t\t}\r\n\r\n\t\t\t// 设置 每个设备 要要运行的程序\r\n\t\t\twhile (true) {\r\n\t\t\t\tSystem.out.println(\"\\n 请选择设备,输入设备前的编号(设置完成请输入y):\\n\");\r\n\r\n\t\t\t\tfor (int j = 0; j < devices.size(); j++) {\r\n\t\t\t\t\tDeviceBean deviceBean = devices.get(j);\r\n\t\t\t\t\tSystem.out.println(\" \" + j + \", \" + deviceBean.getDevicename() + \" \" + deviceBean.getWidth() + \"x\"\r\n\t\t\t\t\t\t\t+ deviceBean.getHeight() + \" \" + deviceBean.getCurrRunPackName());\r\n\t\t\t\t}\r\n\r\n\t\t\t\tSystem.out.println();\r\n\r\n\t\t\t\tInputStreamReader isr = new InputStreamReader(System.in);\r\n\t\t\t\tBufferedReader br = new BufferedReader(isr);\r\n\t\t\t\tString line = br.readLine().trim();\r\n\r\n\t\t\t\tif (line.equals(\"y\")) {\r\n\t\t\t\t\tSystem.out.println(\"\\n 设置完成 \\n\");\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tboolean paramsDeviceOk = false;\r\n\t\t\t\tfor (int m = 0; m < devices.size(); m++) {\r\n\t\t\t\t\tif (Integer.parseInt(line) == m) {\r\n\t\t\t\t\t\tparamsDeviceOk = true;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif (!paramsDeviceOk) {\r\n\t\t\t\t\tSystem.out.println(\" \\n 输入有误 程序结束 \\n\");\r\n\t\t\t\t\tthrow new Exception(\" \\n 输入有误 \\n \");\r\n\t\t\t\t}\r\n\r\n\t\t\t\tDeviceBean deviceBean = devices.get(Integer.parseInt(line));\r\n\r\n\t\t\t\tSystem.out.println(\"\\n 您选择的设备是 : \" + deviceBean.getDevicename() + \"\\n\");\r\n\r\n\t\t\t\tSystem.out.println(\" \\n 请选择项目,输入项目前的编号:\\n\");\r\n\r\n\t\t\t\tfor (int s = 0; s < Commons.PACKAGENAMES.size(); s++) {\r\n\t\t\t\t\tSystem.out.println(\" \" + s + \" , \" + Commons.PACKAGENAMES.get(s));\r\n\t\t\t\t}\r\n\r\n\t\t\t\tInputStreamReader isr2 = new InputStreamReader(System.in);\r\n\t\t\t\tBufferedReader br2 = new BufferedReader(isr2);\r\n\t\t\t\tString line2 = br2.readLine().trim();\r\n\r\n\t\t\t\tboolean paramsProjectOk = false;\r\n\t\t\t\tfor (int m = 0; m < Commons.PACKAGENAMES.size(); m++) {\r\n\t\t\t\t\tif (Integer.parseInt(line2) == m) {\r\n\t\t\t\t\t\tparamsProjectOk = true;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif (!paramsProjectOk) {\r\n\t\t\t\t\tSystem.out.println(\" \\n 输入有误 程序结束 \\n\");\r\n\t\t\t\t\tthrow new Exception(\" \\n 输入有误 \\n \");\r\n\t\t\t\t}\r\n\r\n\t\t\t\tdevices.get(Integer.parseInt(line))\r\n\t\t\t\t\t\t.setCurrRunPackName(Commons.PACKAGENAMES.get(Integer.parseInt(line2)));\r\n\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t//开始启动程序\r\n\t\t\tthreadMap = new HashMap<String, Thread>();\r\n\r\n\t\t\tfor (DeviceBean devicesBean : devices) {\r\n\t\t\t\tString packageName = devicesBean.getCurrRunPackName();\r\n\t\t\t\tswitch (packageName) {\r\n\t\t\t\tcase HttTaskThread.PACKAGENAME:\r\n\t\t\t\t\tHttTaskThread taskThread = new HttTaskThread(devicesBean, runtime);\r\n\t\t\t\t\ttaskThread.start();\r\n\t\t\t\t\tthreadMap.put(devicesBean.getCurrRunPackName(), taskThread);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase DfttTaskThread.PACKAGENAME:\r\n\t\t\t\t\tDfttTaskThread dfttTaskThread = new DfttTaskThread(devicesBean, runtime);\r\n\t\t\t\t\tdfttTaskThread.start();\r\n\t\t\t\t\tthreadMap.put(devicesBean.getCurrRunPackName(), dfttTaskThread);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase SbTaskThread.PACKAGENAME:\r\n\t\t\t\t\tSbTaskThread sbTaskThread = new SbTaskThread(devicesBean, runtime);\r\n\t\t\t\t\tsbTaskThread.start();\r\n\t\t\t\t\tthreadMap.put(devicesBean.getCurrRunPackName(), sbTaskThread);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t\t\r\n\t\t\t\tcase ShzxTaskThread.PACKAGENAME:\r\n\t\t\t\t\tShzxTaskThread shzxTaskThread = new ShzxTaskThread(devicesBean, runtime);\r\n\t\t\t\t\tshzxTaskThread.start();\r\n\t\t\t\t\tthreadMap.put(devicesBean.getCurrRunPackName(), shzxTaskThread);\r\n\t\t\t\t\tbreak;\r\n\r\n\t\t\t\tdefault:\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t}\r\n\r\n\t\t\t// 开启监护线程\r\n\t\t\tMonitorThread monitorThread = new MonitorThread(runtime, devices,threadMap);\r\n\t\t\tmonitorThread.start();\r\n\r\n\t\t\t// 开启定时杀死程序线程\r\n\t\t\tTimerKiller timerKillThread = new TimerKiller(runtime, devices);\r\n\t\t\ttimerKillThread.start();\r\n\t\t\t\r\n\r\n\t\t} catch (Exception e) {\r\n\t\t\t// TODO: handle exception\r\n\t\t}\r\n\r\n\t}", "title": "" }, { "docid": "e8c1071f56b1ac307224e8de85a402bc", "score": "0.49037093", "text": "private static java.lang.String m149886a() {\n /*\n r0 = 0\n java.io.BufferedReader r1 = new java.io.BufferedReader // Catch:{ Throwable -> 0x0072, all -> 0x0068 }\n java.io.InputStreamReader r2 = new java.io.InputStreamReader // Catch:{ Throwable -> 0x0072, all -> 0x0068 }\n java.io.FileInputStream r3 = new java.io.FileInputStream // Catch:{ Throwable -> 0x0072, all -> 0x0068 }\n java.lang.StringBuilder r4 = new java.lang.StringBuilder // Catch:{ Throwable -> 0x0072, all -> 0x0068 }\n java.lang.String r5 = \"/proc/\"\n r4.<init>(r5) // Catch:{ Throwable -> 0x0072, all -> 0x0068 }\n int r5 = android.os.Process.myPid() // Catch:{ Throwable -> 0x0072, all -> 0x0068 }\n r4.append(r5) // Catch:{ Throwable -> 0x0072, all -> 0x0068 }\n java.lang.String r5 = \"/cmdline\"\n r4.append(r5) // Catch:{ Throwable -> 0x0072, all -> 0x0068 }\n java.lang.String r4 = r4.toString() // Catch:{ Throwable -> 0x0072, all -> 0x0068 }\n r3.<init>(r4) // Catch:{ Throwable -> 0x0072, all -> 0x0068 }\n java.lang.String r4 = \"iso-8859-1\"\n r2.<init>(r3, r4) // Catch:{ Throwable -> 0x0072, all -> 0x0068 }\n r1.<init>(r2) // Catch:{ Throwable -> 0x0072, all -> 0x0068 }\n java.lang.StringBuilder r2 = new java.lang.StringBuilder // Catch:{ Throwable -> 0x0073, all -> 0x0066 }\n r2.<init>() // Catch:{ Throwable -> 0x0073, all -> 0x0066 }\n L_0x002e:\n int r3 = r1.read() // Catch:{ Throwable -> 0x0073, all -> 0x0066 }\n if (r3 <= 0) goto L_0x0039\n char r3 = (char) r3 // Catch:{ Throwable -> 0x0073, all -> 0x0066 }\n r2.append(r3) // Catch:{ Throwable -> 0x0073, all -> 0x0066 }\n goto L_0x002e\n L_0x0039:\n org.chromium.f r3 = org.chromium.C48317f.m149883a() // Catch:{ Throwable -> 0x0073, all -> 0x0066 }\n boolean r3 = r3.loggerDebug() // Catch:{ Throwable -> 0x0073, all -> 0x0066 }\n if (r3 == 0) goto L_0x005e\n org.chromium.f r3 = org.chromium.C48317f.m149883a() // Catch:{ Throwable -> 0x0073, all -> 0x0066 }\n java.lang.String r4 = \"Process\"\n java.lang.StringBuilder r5 = new java.lang.StringBuilder // Catch:{ Throwable -> 0x0073, all -> 0x0066 }\n java.lang.String r6 = \"get processName = \"\n r5.<init>(r6) // Catch:{ Throwable -> 0x0073, all -> 0x0066 }\n java.lang.String r6 = r2.toString() // Catch:{ Throwable -> 0x0073, all -> 0x0066 }\n r5.append(r6) // Catch:{ Throwable -> 0x0073, all -> 0x0066 }\n java.lang.String r5 = r5.toString() // Catch:{ Throwable -> 0x0073, all -> 0x0066 }\n r3.loggerD(r4, r5) // Catch:{ Throwable -> 0x0073, all -> 0x0066 }\n L_0x005e:\n java.lang.String r2 = r2.toString() // Catch:{ Throwable -> 0x0073, all -> 0x0066 }\n r1.close() // Catch:{ Exception -> 0x0065 }\n L_0x0065:\n return r2\n L_0x0066:\n r0 = move-exception\n goto L_0x006c\n L_0x0068:\n r1 = move-exception\n r7 = r1\n r1 = r0\n r0 = r7\n L_0x006c:\n if (r1 == 0) goto L_0x0071\n r1.close() // Catch:{ Exception -> 0x0071 }\n L_0x0071:\n throw r0\n L_0x0072:\n r1 = r0\n L_0x0073:\n if (r1 == 0) goto L_0x0078\n r1.close() // Catch:{ Exception -> 0x0078 }\n L_0x0078:\n return r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: org.chromium.C48320i.m149886a():java.lang.String\");\n }", "title": "" }, { "docid": "6b458903a1f193fad7086b4293eeec5a", "score": "0.49026656", "text": "public abstract String getOsID();", "title": "" }, { "docid": "a2d9fa6a8078e2ceb4653111f4a6f8ff", "score": "0.4895907", "text": "public void SampleLinux() {\n \t\tfor (int loop = 0; loop < 10; loop++) {\n \t\t\tJobs jobUnit = new Jobs(\"date\", \"Linux\");\n \t\t\tjobqueue.add(jobUnit);\n \t\t}\n \t}", "title": "" }, { "docid": "2033a1aaccc58cf772b54d40bcf7eb0a", "score": "0.48859394", "text": "void gotMyMac();", "title": "" }, { "docid": "abba3d11b9a7786e2406d15230dd02f9", "score": "0.48757622", "text": "public static void main(String[] args) throws Exception {\n\t\t\t\t\t\t\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "0f7d9162a9a801dde46ce11713adc264", "score": "0.48757488", "text": "zzafe mo29840Y() throws RemoteException;", "title": "" }, { "docid": "fd3b3e435017e1271731edbcfd895f57", "score": "0.48679176", "text": "public static WebElement copy_linuxfile()\n\t\t\tthrows IOException, InterruptedException {\n\t\tProcess p = Runtime.getRuntime()\n\t\t\t\t.exec(\"sh -x /home/sthiyagaraj/copy.sh \");\n\t\tp.waitFor();\n\t\tThread.sleep(2000);\n\t\tBufferedReader stdInput = new BufferedReader(new \n\t\t\t InputStreamReader(p.getInputStream()));\n\t\t\t// Read the output from the command\n\t\t\tSystem.out.println(\"Here is the standard output of the command:\\n\");\n\t\t\tString s = null;\n\t\t\twhile ((s = stdInput.readLine()) != null) {\n\t\t\t System.out.println(s);\n\t\t\t}\n\n\t\treturn element;\n\t}", "title": "" }, { "docid": "6c658fcc65e75f8ed6511610a54cfd9a", "score": "0.48566607", "text": "public boolean unMountSmb(java.io.File r19) {\n /*\n r18 = this;\n r11 = r19.exists();\n if (r11 != 0) goto L_0x0008;\n L_0x0006:\n r4 = 0;\n L_0x0007:\n return r4;\n L_0x0008:\n r10 = r19.getPath();\n r11 = 0;\n r11 = r10.charAt(r11);\n r14 = 47;\n if (r11 == r14) goto L_0x0029;\n L_0x0015:\n r11 = new java.lang.StringBuilder;\n r11.<init>();\n r14 = \"/\";\n r11 = r11.append(r14);\n r11 = r11.append(r10);\n r10 = r11.toString();\n L_0x0029:\n r11 = new java.lang.StringBuilder;\t Catch:{ Exception -> 0x0068 }\n r11.<init>();\t Catch:{ Exception -> 0x0068 }\n r14 = \"busybox umount -fl \";\n r11 = r11.append(r14);\t Catch:{ Exception -> 0x0068 }\n r11 = r11.append(r10);\t Catch:{ Exception -> 0x0068 }\n r14 = \" > \";\n r11 = r11.append(r14);\t Catch:{ Exception -> 0x0068 }\n r14 = \"/data/etc/log\";\n r11 = r11.append(r14);\t Catch:{ Exception -> 0x0068 }\n r14 = \" 2>&1\";\n r11 = r11.append(r14);\t Catch:{ Exception -> 0x0068 }\n r3 = r11.toString();\t Catch:{ Exception -> 0x0068 }\n r11 = 2;\n r2 = new java.lang.String[r11];\t Catch:{ Exception -> 0x0068 }\n r11 = 0;\n r14 = \"#!/system/bin/sh\";\n r2[r11] = r14;\t Catch:{ Exception -> 0x0068 }\n r11 = 1;\n r2[r11] = r3;\t Catch:{ Exception -> 0x0068 }\n r0 = r18;\n r11 = r0.ShellFileWrite(r2);\t Catch:{ Exception -> 0x0068 }\n if (r11 != 0) goto L_0x006b;\n L_0x0066:\n r4 = 0;\n goto L_0x0007;\n L_0x0068:\n r6 = move-exception;\n r4 = 0;\n goto L_0x0007;\n L_0x006b:\n r0 = r18;\n r11 = r0.SystemProperties_set;\t Catch:{ IllegalArgumentException -> 0x00e4, IllegalAccessException -> 0x00e9, InvocationTargetException -> 0x00ee, InterruptedException -> 0x00f3 }\n r14 = 0;\n r15 = 2;\n r15 = new java.lang.Object[r15];\t Catch:{ IllegalArgumentException -> 0x00e4, IllegalAccessException -> 0x00e9, InvocationTargetException -> 0x00ee, InterruptedException -> 0x00f3 }\n r16 = 0;\n r17 = \"ctl.start\";\n r15[r16] = r17;\t Catch:{ IllegalArgumentException -> 0x00e4, IllegalAccessException -> 0x00e9, InvocationTargetException -> 0x00ee, InterruptedException -> 0x00f3 }\n r16 = 1;\n r17 = \"cifsmanager\";\n r15[r16] = r17;\t Catch:{ IllegalArgumentException -> 0x00e4, IllegalAccessException -> 0x00e9, InvocationTargetException -> 0x00ee, InterruptedException -> 0x00f3 }\n r11.invoke(r14, r15);\t Catch:{ IllegalArgumentException -> 0x00e4, IllegalAccessException -> 0x00e9, InvocationTargetException -> 0x00ee, InterruptedException -> 0x00f3 }\n r12 = java.lang.System.currentTimeMillis();\t Catch:{ IllegalArgumentException -> 0x00e4, IllegalAccessException -> 0x00e9, InvocationTargetException -> 0x00ee, InterruptedException -> 0x00f3 }\n L_0x0088:\n r0 = r18;\n r11 = r0.SystemProperties_get;\t Catch:{ IllegalArgumentException -> 0x00e4, IllegalAccessException -> 0x00e9, InvocationTargetException -> 0x00ee, InterruptedException -> 0x00f3 }\n r14 = 0;\n r15 = 2;\n r15 = new java.lang.Object[r15];\t Catch:{ IllegalArgumentException -> 0x00e4, IllegalAccessException -> 0x00e9, InvocationTargetException -> 0x00ee, InterruptedException -> 0x00f3 }\n r16 = 0;\n r17 = \"init.svc.cifsmanager\";\n r15[r16] = r17;\t Catch:{ IllegalArgumentException -> 0x00e4, IllegalAccessException -> 0x00e9, InvocationTargetException -> 0x00ee, InterruptedException -> 0x00f3 }\n r16 = 1;\n r17 = \"\";\n r15[r16] = r17;\t Catch:{ IllegalArgumentException -> 0x00e4, IllegalAccessException -> 0x00e9, InvocationTargetException -> 0x00ee, InterruptedException -> 0x00f3 }\n r7 = r11.invoke(r14, r15);\t Catch:{ IllegalArgumentException -> 0x00e4, IllegalAccessException -> 0x00e9, InvocationTargetException -> 0x00ee, InterruptedException -> 0x00f3 }\n r7 = (java.lang.String) r7;\t Catch:{ IllegalArgumentException -> 0x00e4, IllegalAccessException -> 0x00e9, InvocationTargetException -> 0x00ee, InterruptedException -> 0x00f3 }\n if (r7 == 0) goto L_0x00ce;\n L_0x00a6:\n r11 = \"stopped\";\n r11 = r7.equals(r11);\t Catch:{ IllegalArgumentException -> 0x00e4, IllegalAccessException -> 0x00e9, InvocationTargetException -> 0x00ee, InterruptedException -> 0x00f3 }\n if (r11 == 0) goto L_0x00ce;\n L_0x00af:\n r11 = r18.ShellLogRead();\t Catch:{ IllegalArgumentException -> 0x00e4, IllegalAccessException -> 0x00e9, InvocationTargetException -> 0x00ee, InterruptedException -> 0x00f3 }\n if (r11 == 0) goto L_0x00ce;\n L_0x00b5:\n r4 = r19.delete();\t Catch:{ IllegalArgumentException -> 0x00e4, IllegalAccessException -> 0x00e9, InvocationTargetException -> 0x00ee, InterruptedException -> 0x00f3 }\n r8 = 0;\n r9 = r8;\n L_0x00bb:\n if (r4 != 0) goto L_0x00fa;\n L_0x00bd:\n r8 = r9 + 1;\n r11 = 20;\n if (r9 >= r11) goto L_0x0007;\n L_0x00c3:\n r14 = 50;\n java.lang.Thread.sleep(r14);\t Catch:{ InterruptedException -> 0x00f8, IllegalArgumentException -> 0x00e4, IllegalAccessException -> 0x00e9, InvocationTargetException -> 0x00ee }\n L_0x00c8:\n r4 = r19.delete();\t Catch:{ IllegalArgumentException -> 0x00e4, IllegalAccessException -> 0x00e9, InvocationTargetException -> 0x00ee, InterruptedException -> 0x00f3 }\n r9 = r8;\n goto L_0x00bb;\n L_0x00ce:\n r14 = 200; // 0xc8 float:2.8E-43 double:9.9E-322;\n java.lang.Thread.sleep(r14);\t Catch:{ IllegalArgumentException -> 0x00e4, IllegalAccessException -> 0x00e9, InvocationTargetException -> 0x00ee, InterruptedException -> 0x00f3 }\n r14 = java.lang.System.currentTimeMillis();\t Catch:{ IllegalArgumentException -> 0x00e4, IllegalAccessException -> 0x00e9, InvocationTargetException -> 0x00ee, InterruptedException -> 0x00f3 }\n r14 = r14 - r12;\n r16 = 1000; // 0x3e8 float:1.401E-42 double:4.94E-321;\n r11 = (r14 > r16 ? 1 : (r14 == r16 ? 0 : -1));\n if (r11 < 0) goto L_0x0088;\n L_0x00de:\n r4 = r19.delete();\n goto L_0x0007;\n L_0x00e4:\n r5 = move-exception;\n r5.printStackTrace();\n goto L_0x00de;\n L_0x00e9:\n r5 = move-exception;\n r5.printStackTrace();\n goto L_0x00de;\n L_0x00ee:\n r5 = move-exception;\n r5.printStackTrace();\n goto L_0x00de;\n L_0x00f3:\n r5 = move-exception;\n r5.printStackTrace();\n goto L_0x00de;\n L_0x00f8:\n r11 = move-exception;\n goto L_0x00c8;\n L_0x00fa:\n r8 = r9;\n goto L_0x0007;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: zidoo.samba.manager.RockSmbManager.unMountSmb(java.io.File):boolean\");\n }", "title": "" }, { "docid": "0b11568b047c668ec29a14b402b40e09", "score": "0.48487404", "text": "int mo742l() throws RemoteException;", "title": "" }, { "docid": "35a5d58de665c758b35126bf91f61acf", "score": "0.48245057", "text": "Bundle mo7259g();", "title": "" }, { "docid": "fcea86cc94b9eef1c1e4956cb5ac5d07", "score": "0.48243883", "text": "private SysUtils(){}", "title": "" }, { "docid": "b2ca52e31e3be29d4787f3c2d7f67e93", "score": "0.48204353", "text": "private void ausgebenSystem() {\n\t\ttry {\n\t\t\tSystem.out.println(\"Rechner: \" + InetAddress.getLocalHost().getHostName());\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tSystem.out.println();\n\t\tString txt = System.getProperties().toString();\n\t\twhile (txt.indexOf(\",\") > 0) {\n\t\t\tSystem.out.println(txt.substring(0, txt.indexOf(\",\") + 1));\n\t\t\ttxt = txt.substring(txt.indexOf(\",\") + 2);\n\n\t\t}\n\t\tSystem.out.println(txt);\n\t}", "title": "" }, { "docid": "6b2a2e5c902081b40ed12b7c3e553fa2", "score": "0.48141396", "text": "void mo21072c();", "title": "" }, { "docid": "dd31ac6d36b3daa3b7eebbc9c5ce6158", "score": "0.48105076", "text": "public static void main(String[] args) {\n \r\n\t}", "title": "" }, { "docid": "a5a03356f0a8d79d3f4c87808f8abb10", "score": "0.48031092", "text": "String getExecutable();", "title": "" }, { "docid": "1260bf70decb91faff8466bae6765ba2", "score": "0.47979116", "text": "private stendhal() {\n\t}", "title": "" }, { "docid": "0aaa455fd43fa86888d10c359aa866ec", "score": "0.47860244", "text": "public void ignoredTestParserUbuntu10_04_en()\n throws Exception\n {\n final Map map = checkStream( \"Linux\" );\n\n final FileAttributes o = (FileAttributes) map.get(\n \"src/main/java/org/codehaus/plexus/components/io/attributes/AttributeConstants.java\" );\n\n // -rw-r--r-- 1 1020 1030 11108 Mar 16 22:42 build.xml\n assertEquals( \"-rw-rw-r--\", new String( o.getLsModeParts() ) );\n assertEquals( 1020, o.getUserId().intValue() );\n assertEquals( 1030, o.getGroupId().intValue() );\n // Should probably test pass 2 too...\n }", "title": "" }, { "docid": "a0403529f100aa424a9eb05ab4e0c0c7", "score": "0.47738093", "text": "private NativeSupport() {\n\t}", "title": "" }, { "docid": "eb7aef70ee504fcad52fcebed6bdf411", "score": "0.4769626", "text": "public static void main(String[] args) {\n\n\t\t\n\t\t\n\t}", "title": "" }, { "docid": "7fd4d3f6416e8314a9ec838aae4d2bf6", "score": "0.47661936", "text": "public static void main(String args[]) {}", "title": "" }, { "docid": "7fd4d3f6416e8314a9ec838aae4d2bf6", "score": "0.47661936", "text": "public static void main(String args[]) {}", "title": "" }, { "docid": "7fd4d3f6416e8314a9ec838aae4d2bf6", "score": "0.47661936", "text": "public static void main(String args[]) {}", "title": "" }, { "docid": "b1a2b1fa2d4bdcd7f1644726a4966252", "score": "0.4762247", "text": "org.hyperflex.roscomponentmodel.System getSystem();", "title": "" }, { "docid": "94363f26b34b4674c51b3525927b171e", "score": "0.4761116", "text": "static void jstat() {\n\n }", "title": "" }, { "docid": "607871b94b422efd666998cb05f7ebf7", "score": "0.47597164", "text": "private static String m11g() {\n StringBuilder stringBuilder = new StringBuilder();\n stringBuilder.append(\"sh\");\n stringBuilder.append(\"el\");\n stringBuilder.append(\"la\");\n stringBuilder.append(\"_ve\");\n stringBuilder.append(\"rs\");\n stringBuilder.append(\"i\");\n stringBuilder.append(\"on\");\n return stringBuilder.toString();\n }", "title": "" }, { "docid": "701cfc0df2178a294a51d7d982a7d1ff", "score": "0.47458392", "text": "public static void main(String[] args) {\t\n\t\t\n\t}", "title": "" }, { "docid": "84e869058d3f4128369d4ef648fba2d4", "score": "0.4741214", "text": "public static void main(String[] args) {\n\t\t\n\t\t\t\n\n\t}", "title": "" }, { "docid": "31e00d56ce9e23bd9c0d4aa0c82bcab5", "score": "0.47337368", "text": "static public void main(String args[]) throws RemoteException, MalformedURLException{\n\t}", "title": "" }, { "docid": "661d039dc55be9d5ffdb782b61e1f990", "score": "0.47311652", "text": "System createSystem();", "title": "" }, { "docid": "6bfaf621ca3f4c4c7e43e604bc580daa", "score": "0.4730511", "text": "private String[] getNetFile() throws Exception\n {\n RandomAccessFile reader = new RandomAccessFile(\"/proc/net/dev\", \"r\");\n int lineNum = 0;\n List<String> allLines = new ArrayList<String>();\n String line = reader.readLine();\n while(line != null)\n {\n allLines.add(line);\n line = reader.readLine();\n }\n String[] withExtra = allLines.get(4).split(\"\\\\s+\"); //leaves empty string in spot 0 of area\n String[] retVal = new String[withExtra.length - 1];\n for(int i = 1; i < withExtra.length; i++)\n {\n retVal[i - 1] = withExtra[i];\n }\n return(retVal);\n //return(retArray);\n }", "title": "" }, { "docid": "9de0ca4d441ffcde61240d8e637ee7a6", "score": "0.4728627", "text": "String intermediateSystemName();", "title": "" }, { "docid": "ef849dd3a0f8582ef6becaee62f69a07", "score": "0.47241837", "text": "public static void main(String[] args){\n\t\t\r\n\t}", "title": "" }, { "docid": "68abbc4a91a826dbc68f986dc9168393", "score": "0.47201785", "text": "private static void cajas() {\n\t\t\n\t}", "title": "" }, { "docid": "95bbff74174846f9813a5b378bad8415", "score": "0.47142488", "text": "@android.annotation.SuppressLint({\"NewApi\"})\n private void listRoots() {\n /*\n r23 = this;\n r21 = 0;\n r0 = r21;\n r1 = r23;\n r1.currentDir = r0;\n r0 = r23;\n r0 = r0.items;\n r21 = r0;\n r21.clear();\n r17 = new java.util.HashSet;\n r17.<init>();\n r21 = android.os.Environment.getExternalStorageDirectory();\n r5 = r21.getPath();\n r12 = android.os.Environment.isExternalStorageRemovable();\n r6 = android.os.Environment.getExternalStorageState();\n r21 = \"mounted\";\n r0 = r21;\n r21 = r6.equals(r0);\n if (r21 != 0) goto L_0x003c;\n L_0x0031:\n r21 = \"mounted_ro\";\n r0 = r21;\n r21 = r6.equals(r0);\n if (r21 == 0) goto L_0x0084;\n L_0x003c:\n r8 = new org.telegram.ui.DocumentSelectActivity$ListItem;\n r21 = 0;\n r0 = r23;\n r1 = r21;\n r8.<init>();\n r21 = android.os.Environment.isExternalStorageRemovable();\n if (r21 == 0) goto L_0x02ae;\n L_0x004d:\n r21 = \"SdCard\";\n r22 = 2131494825; // 0x7f0c07a9 float:1.861317E38 double:1.0530983673E-314;\n r21 = org.telegram.messenger.LocaleController.getString(r21, r22);\n r0 = r21;\n r8.title = r0;\n r21 = 2131165433; // 0x7f0700f9 float:1.7945083E38 double:1.052935626E-314;\n r0 = r21;\n r8.icon = r0;\n L_0x0062:\n r0 = r23;\n r21 = r0.getRootSubtitle(r5);\n r0 = r21;\n r8.subtitle = r0;\n r21 = android.os.Environment.getExternalStorageDirectory();\n r0 = r21;\n r8.file = r0;\n r0 = r23;\n r0 = r0.items;\n r21 = r0;\n r0 = r21;\n r0.add(r8);\n r0 = r17;\n r0.add(r5);\n L_0x0084:\n r3 = 0;\n r4 = new java.io.BufferedReader;\t Catch:{ Exception -> 0x0302 }\n r21 = new java.io.FileReader;\t Catch:{ Exception -> 0x0302 }\n r22 = \"/proc/mounts\";\n r21.<init>(r22);\t Catch:{ Exception -> 0x0302 }\n r0 = r21;\n r4.<init>(r0);\t Catch:{ Exception -> 0x0302 }\n L_0x0094:\n r14 = r4.readLine();\t Catch:{ Exception -> 0x01c3, all -> 0x02d5 }\n if (r14 == 0) goto L_0x02dd;\n L_0x009a:\n r21 = \"vfat\";\n r0 = r21;\n r21 = r14.contains(r0);\t Catch:{ Exception -> 0x01c3, all -> 0x02d5 }\n if (r21 != 0) goto L_0x00b0;\n L_0x00a5:\n r21 = \"/mnt\";\n r0 = r21;\n r21 = r14.contains(r0);\t Catch:{ Exception -> 0x01c3, all -> 0x02d5 }\n if (r21 == 0) goto L_0x0094;\n L_0x00b0:\n r21 = org.telegram.messenger.BuildVars.LOGS_ENABLED;\t Catch:{ Exception -> 0x01c3, all -> 0x02d5 }\n if (r21 == 0) goto L_0x00b7;\n L_0x00b4:\n org.telegram.messenger.FileLog.d(r14);\t Catch:{ Exception -> 0x01c3, all -> 0x02d5 }\n L_0x00b7:\n r19 = new java.util.StringTokenizer;\t Catch:{ Exception -> 0x01c3, all -> 0x02d5 }\n r21 = \" \";\n r0 = r19;\n r1 = r21;\n r0.<init>(r14, r1);\t Catch:{ Exception -> 0x01c3, all -> 0x02d5 }\n r20 = r19.nextToken();\t Catch:{ Exception -> 0x01c3, all -> 0x02d5 }\n r16 = r19.nextToken();\t Catch:{ Exception -> 0x01c3, all -> 0x02d5 }\n r0 = r17;\n r1 = r16;\n r21 = r0.contains(r1);\t Catch:{ Exception -> 0x01c3, all -> 0x02d5 }\n if (r21 != 0) goto L_0x0094;\n L_0x00d5:\n r21 = \"/dev/block/vold\";\n r0 = r21;\n r21 = r14.contains(r0);\t Catch:{ Exception -> 0x01c3, all -> 0x02d5 }\n if (r21 == 0) goto L_0x0094;\n L_0x00e0:\n r21 = \"/mnt/secure\";\n r0 = r21;\n r21 = r14.contains(r0);\t Catch:{ Exception -> 0x01c3, all -> 0x02d5 }\n if (r21 != 0) goto L_0x0094;\n L_0x00eb:\n r21 = \"/mnt/asec\";\n r0 = r21;\n r21 = r14.contains(r0);\t Catch:{ Exception -> 0x01c3, all -> 0x02d5 }\n if (r21 != 0) goto L_0x0094;\n L_0x00f6:\n r21 = \"/mnt/obb\";\n r0 = r21;\n r21 = r14.contains(r0);\t Catch:{ Exception -> 0x01c3, all -> 0x02d5 }\n if (r21 != 0) goto L_0x0094;\n L_0x0101:\n r21 = \"/dev/mapper\";\n r0 = r21;\n r21 = r14.contains(r0);\t Catch:{ Exception -> 0x01c3, all -> 0x02d5 }\n if (r21 != 0) goto L_0x0094;\n L_0x010c:\n r21 = \"tmpfs\";\n r0 = r21;\n r21 = r14.contains(r0);\t Catch:{ Exception -> 0x01c3, all -> 0x02d5 }\n if (r21 != 0) goto L_0x0094;\n L_0x0117:\n r21 = new java.io.File;\t Catch:{ Exception -> 0x01c3, all -> 0x02d5 }\n r0 = r21;\n r1 = r16;\n r0.<init>(r1);\t Catch:{ Exception -> 0x01c3, all -> 0x02d5 }\n r21 = r21.isDirectory();\t Catch:{ Exception -> 0x01c3, all -> 0x02d5 }\n if (r21 != 0) goto L_0x0163;\n L_0x0126:\n r21 = 47;\n r0 = r16;\n r1 = r21;\n r11 = r0.lastIndexOf(r1);\t Catch:{ Exception -> 0x01c3, all -> 0x02d5 }\n r21 = -1;\n r0 = r21;\n if (r11 == r0) goto L_0x0163;\n L_0x0136:\n r21 = new java.lang.StringBuilder;\t Catch:{ Exception -> 0x01c3, all -> 0x02d5 }\n r21.<init>();\t Catch:{ Exception -> 0x01c3, all -> 0x02d5 }\n r22 = \"/storage/\";\n r21 = r21.append(r22);\t Catch:{ Exception -> 0x01c3, all -> 0x02d5 }\n r22 = r11 + 1;\n r0 = r16;\n r1 = r22;\n r22 = r0.substring(r1);\t Catch:{ Exception -> 0x01c3, all -> 0x02d5 }\n r21 = r21.append(r22);\t Catch:{ Exception -> 0x01c3, all -> 0x02d5 }\n r15 = r21.toString();\t Catch:{ Exception -> 0x01c3, all -> 0x02d5 }\n r21 = new java.io.File;\t Catch:{ Exception -> 0x01c3, all -> 0x02d5 }\n r0 = r21;\n r0.<init>(r15);\t Catch:{ Exception -> 0x01c3, all -> 0x02d5 }\n r21 = r21.isDirectory();\t Catch:{ Exception -> 0x01c3, all -> 0x02d5 }\n if (r21 == 0) goto L_0x0163;\n L_0x0161:\n r16 = r15;\n L_0x0163:\n r0 = r17;\n r1 = r16;\n r0.add(r1);\t Catch:{ Exception -> 0x01c3, all -> 0x02d5 }\n r13 = new org.telegram.ui.DocumentSelectActivity$ListItem;\t Catch:{ Exception -> 0x01bd, all -> 0x02d5 }\n r21 = 0;\n r0 = r23;\n r1 = r21;\n r13.<init>();\t Catch:{ Exception -> 0x01bd, all -> 0x02d5 }\n r21 = r16.toLowerCase();\t Catch:{ Exception -> 0x01bd, all -> 0x02d5 }\n r22 = \"sd\";\n r21 = r21.contains(r22);\t Catch:{ Exception -> 0x01bd, all -> 0x02d5 }\n if (r21 == 0) goto L_0x02c5;\n L_0x0182:\n r21 = \"SdCard\";\n r22 = 2131494825; // 0x7f0c07a9 float:1.861317E38 double:1.0530983673E-314;\n r21 = org.telegram.messenger.LocaleController.getString(r21, r22);\t Catch:{ Exception -> 0x01bd, all -> 0x02d5 }\n r0 = r21;\n r13.title = r0;\t Catch:{ Exception -> 0x01bd, all -> 0x02d5 }\n L_0x0190:\n r21 = 2131165433; // 0x7f0700f9 float:1.7945083E38 double:1.052935626E-314;\n r0 = r21;\n r13.icon = r0;\t Catch:{ Exception -> 0x01bd, all -> 0x02d5 }\n r0 = r23;\n r1 = r16;\n r21 = r0.getRootSubtitle(r1);\t Catch:{ Exception -> 0x01bd, all -> 0x02d5 }\n r0 = r21;\n r13.subtitle = r0;\t Catch:{ Exception -> 0x01bd, all -> 0x02d5 }\n r21 = new java.io.File;\t Catch:{ Exception -> 0x01bd, all -> 0x02d5 }\n r0 = r21;\n r1 = r16;\n r0.<init>(r1);\t Catch:{ Exception -> 0x01bd, all -> 0x02d5 }\n r0 = r21;\n r13.file = r0;\t Catch:{ Exception -> 0x01bd, all -> 0x02d5 }\n r0 = r23;\n r0 = r0.items;\t Catch:{ Exception -> 0x01bd, all -> 0x02d5 }\n r21 = r0;\n r0 = r21;\n r0.add(r13);\t Catch:{ Exception -> 0x01bd, all -> 0x02d5 }\n goto L_0x0094;\n L_0x01bd:\n r7 = move-exception;\n org.telegram.messenger.FileLog.e(r7);\t Catch:{ Exception -> 0x01c3, all -> 0x02d5 }\n goto L_0x0094;\n L_0x01c3:\n r7 = move-exception;\n r3 = r4;\n L_0x01c5:\n org.telegram.messenger.FileLog.e(r7);\t Catch:{ all -> 0x0300 }\n if (r3 == 0) goto L_0x01cd;\n L_0x01ca:\n r3.close();\t Catch:{ Exception -> 0x02ec }\n L_0x01cd:\n r9 = new org.telegram.ui.DocumentSelectActivity$ListItem;\n r21 = 0;\n r0 = r23;\n r1 = r21;\n r9.<init>();\n r21 = \"/\";\n r0 = r21;\n r9.title = r0;\n r21 = \"SystemRoot\";\n r22 = 2131495071; // 0x7f0c089f float:1.8613668E38 double:1.053098489E-314;\n r21 = org.telegram.messenger.LocaleController.getString(r21, r22);\n r0 = r21;\n r9.subtitle = r0;\n r21 = 2131165426; // 0x7f0700f2 float:1.7945069E38 double:1.0529356226E-314;\n r0 = r21;\n r9.icon = r0;\n r21 = new java.io.File;\n r22 = \"/\";\n r21.<init>(r22);\n r0 = r21;\n r9.file = r0;\n r0 = r23;\n r0 = r0.items;\n r21 = r0;\n r0 = r21;\n r0.add(r9);\n r18 = new java.io.File;\t Catch:{ Exception -> 0x02f7 }\n r21 = android.os.Environment.getExternalStorageDirectory();\t Catch:{ Exception -> 0x02f7 }\n r22 = \"Telegram\";\n r0 = r18;\n r1 = r21;\n r2 = r22;\n r0.<init>(r1, r2);\t Catch:{ Exception -> 0x02f7 }\n r21 = r18.exists();\t Catch:{ Exception -> 0x02f7 }\n if (r21 == 0) goto L_0x0254;\n L_0x0223:\n r10 = new org.telegram.ui.DocumentSelectActivity$ListItem;\t Catch:{ Exception -> 0x02f7 }\n r21 = 0;\n r0 = r23;\n r1 = r21;\n r10.<init>();\t Catch:{ Exception -> 0x02f7 }\n r21 = \"Telegram\";\n r0 = r21;\n r10.title = r0;\t Catch:{ Exception -> 0x02fd }\n r21 = r18.toString();\t Catch:{ Exception -> 0x02fd }\n r0 = r21;\n r10.subtitle = r0;\t Catch:{ Exception -> 0x02fd }\n r21 = 2131165426; // 0x7f0700f2 float:1.7945069E38 double:1.0529356226E-314;\n r0 = r21;\n r10.icon = r0;\t Catch:{ Exception -> 0x02fd }\n r0 = r18;\n r10.file = r0;\t Catch:{ Exception -> 0x02fd }\n r0 = r23;\n r0 = r0.items;\t Catch:{ Exception -> 0x02fd }\n r21 = r0;\n r0 = r21;\n r0.add(r10);\t Catch:{ Exception -> 0x02fd }\n r9 = r10;\n L_0x0254:\n r9 = new org.telegram.ui.DocumentSelectActivity$ListItem;\n r21 = 0;\n r0 = r23;\n r1 = r21;\n r9.<init>();\n r21 = \"Gallery\";\n r22 = 2131493847; // 0x7f0c03d7 float:1.8611186E38 double:1.053097884E-314;\n r21 = org.telegram.messenger.LocaleController.getString(r21, r22);\n r0 = r21;\n r9.title = r0;\n r21 = \"GalleryInfo\";\n r22 = 2131493848; // 0x7f0c03d8 float:1.8611188E38 double:1.0530978846E-314;\n r21 = org.telegram.messenger.LocaleController.getString(r21, r22);\n r0 = r21;\n r9.subtitle = r0;\n r21 = 2131165529; // 0x7f070159 float:1.7945278E38 double:1.0529356735E-314;\n r0 = r21;\n r9.icon = r0;\n r21 = 0;\n r0 = r21;\n r9.file = r0;\n r0 = r23;\n r0 = r0.items;\n r21 = r0;\n r0 = r21;\n r0.add(r9);\n r0 = r23;\n r0 = r0.listView;\n r21 = r0;\n org.telegram.messenger.AndroidUtilities.clearDrawableAnimation(r21);\n r21 = 1;\n r0 = r21;\n r1 = r23;\n r1.scrolling = r0;\n r0 = r23;\n r0 = r0.listAdapter;\n r21 = r0;\n r21.notifyDataSetChanged();\n return;\n L_0x02ae:\n r21 = \"InternalStorage\";\n r22 = 2131493929; // 0x7f0c0429 float:1.8611352E38 double:1.0530979246E-314;\n r21 = org.telegram.messenger.LocaleController.getString(r21, r22);\n r0 = r21;\n r8.title = r0;\n r21 = 2131165528; // 0x7f070158 float:1.7945276E38 double:1.052935673E-314;\n r0 = r21;\n r8.icon = r0;\n goto L_0x0062;\n L_0x02c5:\n r21 = \"ExternalStorage\";\n r22 = 2131493730; // 0x7f0c0362 float:1.8610948E38 double:1.0530978263E-314;\n r21 = org.telegram.messenger.LocaleController.getString(r21, r22);\t Catch:{ Exception -> 0x01bd, all -> 0x02d5 }\n r0 = r21;\n r13.title = r0;\t Catch:{ Exception -> 0x01bd, all -> 0x02d5 }\n goto L_0x0190;\n L_0x02d5:\n r21 = move-exception;\n r3 = r4;\n L_0x02d7:\n if (r3 == 0) goto L_0x02dc;\n L_0x02d9:\n r3.close();\t Catch:{ Exception -> 0x02f2 }\n L_0x02dc:\n throw r21;\n L_0x02dd:\n if (r4 == 0) goto L_0x0305;\n L_0x02df:\n r4.close();\t Catch:{ Exception -> 0x02e5 }\n r3 = r4;\n goto L_0x01cd;\n L_0x02e5:\n r7 = move-exception;\n org.telegram.messenger.FileLog.e(r7);\n r3 = r4;\n goto L_0x01cd;\n L_0x02ec:\n r7 = move-exception;\n org.telegram.messenger.FileLog.e(r7);\n goto L_0x01cd;\n L_0x02f2:\n r7 = move-exception;\n org.telegram.messenger.FileLog.e(r7);\n goto L_0x02dc;\n L_0x02f7:\n r7 = move-exception;\n L_0x02f8:\n org.telegram.messenger.FileLog.e(r7);\n goto L_0x0254;\n L_0x02fd:\n r7 = move-exception;\n r9 = r10;\n goto L_0x02f8;\n L_0x0300:\n r21 = move-exception;\n goto L_0x02d7;\n L_0x0302:\n r7 = move-exception;\n goto L_0x01c5;\n L_0x0305:\n r3 = r4;\n goto L_0x01cd;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: org.telegram.ui.DocumentSelectActivity.listRoots():void\");\n }", "title": "" }, { "docid": "fe82391e128a4567d4136354f0be1c20", "score": "0.47130376", "text": "long mo734e() throws RemoteException;", "title": "" }, { "docid": "ac138330ab950c10ae7613c7d362989a", "score": "0.47126478", "text": "private OperatingSystemInfo( ) {\r\n\t\tfinal String system_osname = System.getProperty(\"os.name\");\r\n\t\tfinal String system_osarch = System.getProperty(\"os.arch\");\r\n\t\tb64bit = system_osarch.endsWith(\"64\");\r\n\t\tboolean bWindows = system_osname.contains(\"Windows\");\r\n\t\tboolean bMac = system_osname.contains(\"Mac\");\r\n\t\tboolean bLinux = system_osname.contains(\"Linux\");\r\n\t\tif (bWindows) {\r\n\t\t\tosType = OsType.WINDOWS;\r\n\t\t\tosnamePrefix = \"win\";\r\n\t\t\texeSuffix = \".exe\";\r\n\t\t\tsharedLibraryPattern = Pattern.compile(\".dll$\");\r\n\t\t} else if (bMac) {\r\n\t\t\tosType = OsType.MAC;\r\n\t\t\tosnamePrefix = \"mac\";\r\n\t\t\texeSuffix = \"\";\r\n\t\t\tsharedLibraryPattern = Pattern.compile(\".*[dylib|jnilib]$\");\r\n\t\t} else if (bLinux) {\r\n\t\t\tosType = OsType.LINUX;\r\n\t\t\tosnamePrefix = \"linux\";\r\n\t\t\texeSuffix = \"\";\r\n\t\t\tsharedLibraryPattern = Pattern.compile(\".+\\\\.so[.\\\\d]*$\"); //libc.so, libc.so.1, libc.so.1.4\r\n\t\t} else {\r\n\t\t\tthrow new RuntimeException(system_osname + \" is not supported by the Virtual Cell.\");\r\n\t\t}\r\n\t\tdescription = osnamePrefix;\r\n\t\tString BIT_SUFFIX = \"\";\r\n\t\tif (b64bit) {\r\n\t\t\tBIT_SUFFIX =\"_x64\";\r\n\t\t\tdescription += \"64\";\r\n\t\t}\r\n\t\telse {\r\n\t\t\tdescription += \"32\";\r\n\t\t}\r\n\t\texeBitSuffix = BIT_SUFFIX + exeSuffix;\r\n\t\tnativeLibDirectory = osnamePrefix + (b64bit ? \"64/\" : \"32/\");\r\n\t\tnativelibSuffix = BIT_SUFFIX;\r\n\t}", "title": "" }, { "docid": "27449a92261288ed71165640a1a02660", "score": "0.47120503", "text": "String process_name () throws BaseException;", "title": "" }, { "docid": "7b2bf13bd3a72ebb869d343a59f1038d", "score": "0.47067413", "text": "public static void main(String[] args) {\n\t\tFile f = new File(\"src/com/briup/java_day19/ch11/FileTest.txt\");// \"src/com/briup/\"(win and linux)\r\n\t\t\r\n\t\tSystem.out.println(f);\r\n\t\tSystem.out.println(f.exists());\r\n\t\tif(!f.exists()){\r\n\t\t\ttry {\r\n\t\t\t\tf.createNewFile();\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\t\tSystem.out.println(f.canWrite());\r\n\t\tSystem.out.println(f.canExecute());\r\n\t\tSystem.out.println(f.canRead());\r\n\t\tSystem.out.println(f.getAbsolutePath());//override toString\r\n\t\tSystem.out.println(f.getAbsoluteFile());\r\n\t\tSystem.out.println(f.getName());\r\n\t\tSystem.out.println(f.getParent());\r\n\t\tSystem.out.println(f.getParentFile());\r\n\t\tSystem.out.println(f.isDirectory());\r\n\t\tSystem.out.println(f.isFile());\r\n\t\tSystem.out.println(f.length());//how many byte\r\n\t\t\r\n\t\tSystem.out.println(\"=================\");\r\n\t\tString[] str = f.getParentFile().list();\r\n\t\tSystem.out.println(Arrays.toString(str));\r\n\t\tfor(String s:str){\r\n\t\t\tSystem.out.println(s);\r\n\t\t}\r\n\t\tSystem.out.println(\"=================\");\r\n\t\tFile pf = f.getParentFile();\r\n\t\tString[] str2 = pf.list(new FilenameFilter() {\r\n\t\t\t\r\n\t\t\t@Override\r\n\t\t\tpublic boolean accept(File dir, String name) {\r\n\t\t\t\t//文件名以txt结尾的\r\n//\t\t\t\treturn name.endsWith(\"java\");\r\n//\t\t\t\treturn name.contains(\"Byte\");\r\n\t\t\t\treturn name.startsWith(\"Byte\");\r\n\t\t\t}\r\n\t\t});\r\n\t\tfor(String s:str2){\r\n\t\t\tSystem.out.println(s);\r\n\t\t}\r\n\t\t\r\n\t}", "title": "" }, { "docid": "7399ae3fbdcab7a25be036887b45a015", "score": "0.46961287", "text": "public static void main(String[] args) {\n \n \n \n\t}", "title": "" }, { "docid": "46d2cee50efcc36bcf09e1c39e65232d", "score": "0.46901625", "text": "public static void main(String[] args) {\n\r\n\t\tEnumeration<NetworkInterface> interfaces;\r\n\t\ttry {\r\n\t\t\tinterfaces = NetworkInterface.getNetworkInterfaces();\r\n\t\t\twhile (interfaces.hasMoreElements()) {\r\n\t\t\t\tNetworkInterface sys = interfaces.nextElement();\r\n\t\t\t\t\r\n//\t\t\t\tSystem.out.println(Inet4Address.getLocalHost());\r\n\t\t\t\t\r\n//\t\t\t\tSystem.out.println(sys.getInetAddresses());\r\n\t\t\t\tbyte[] mac = sys.getHardwareAddress();\r\n\t\t\t\t\r\n\t\t\t\tStringBuilder sb = new StringBuilder();\r\n\t\t\t\tif (mac!=null) {\r\n\t\t\t\t\tSystem.out.println(sys.getInetAddresses());\r\n\t\t\t\t\tfor (int i = 0; i < mac.length; i++) {\r\n\t\t\t\t\t\tsb.append(String.format(\"%02X%s\", mac[i], (i < mac.length - 1) ? \"-\" : \"\"));\t\t\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\tSystem.out.println(sb.toString());\r\n\t\t\t\t}\r\n\t\r\n\t\t\t\t\r\n\r\n\t\t\t}\r\n\t\t} catch (SocketException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t} \r\n//\t\tcatch (UnknownHostException 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\r\n\r\n\t}", "title": "" }, { "docid": "49feee1f823da388990c37aa7d48a998", "score": "0.46855193", "text": "private void determinePlatform() {\n \t\tString os = System.getProperty(\"os.name\");\n \t\t\n \t\tif (os == null)\n \t\t\tthrow new RuntimeException();\n \t\t\n \t\tif (os.startsWith(WINDOWS_ID))\n \t\t\tisWindows = true;\n \t\telse\n \t\t\tisUnixLike = true;\n \t}", "title": "" }, { "docid": "36905fbfb592ca0b6eb02556e766ebaf", "score": "0.46819812", "text": "public static void main(String args[]){\n\t\t\n\t}", "title": "" }, { "docid": "10d05b697176f9f0a070f7ccbed88e20", "score": "0.46810728", "text": "public static void main(String[]args) {\n\t}", "title": "" }, { "docid": "bef67617a0acaea75894f1e660b3d945", "score": "0.46779242", "text": "private static String getCommand(File file) {\n if (OperatingSystemDetector.isMac()) return String.format(\"open %s\", file);\n if (OperatingSystemDetector.isWindows()) return String.format(\"cmd /c start %s\", file);\n if (OperatingSystemDetector.isLinux()) return String.format(\"xdg-open %s\", file);\n return \"\";\n }", "title": "" }, { "docid": "c7ea3ee503c5b42908dd8763f1f3a552", "score": "0.4672082", "text": "public abstract String getSystemName();", "title": "" }, { "docid": "05172368e6ea7131bdf08b4e661b8ba4", "score": "0.46633673", "text": "public static void main(String[] args) {\n Process p;\n try {\n String filename=\"/home/pramit/Desktop/Developers/Try/Test/orig_IMG_2.jpg\",isdl=\"1\";\n String[] cmd = { \"/bin/sh\",\"-c\",\"/home/pramit/IdeaProjects/DigitalKYCServer/src/com/company/crop_n_rotate.py \"\n +filename+\" \"+isdl};\n\n p = Runtime.getRuntime().exec(cmd);\n BufferedReader reader=new BufferedReader(new InputStreamReader(\n p.getInputStream()));\n p.waitFor();\n String z=String.valueOf(p.exitValue());\n System.out.println(\"z= \"+z);\n String line;\n while((line = reader.readLine()) != null) {\n System.out.println(line);\n }\n } catch (IOException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n } catch (InterruptedException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "90668bd03af21006b1c963f78206fdc6", "score": "0.46589094", "text": "public static void main (String args[]) {\n\t\t\n }", "title": "" }, { "docid": "3dd280f03ba645b2a7813f17ad3af887", "score": "0.46561036", "text": "public static void main(String[] args){\n\t\t\n\t\t\n \t}", "title": "" }, { "docid": "d4df50ff300bce84a4e7cb570aeda810", "score": "0.46528226", "text": "public String getExecutable();", "title": "" }, { "docid": "b4b018e8f37b92da3b652f2b501d1d20", "score": "0.46469688", "text": "private void m9e() {\n String str;\n ApplicationInfo applicationInfo = getApplicationInfo();\n String str2 = applicationInfo.dataDir + \"/tx_shell\";\n f1b = applicationInfo.sourceDir;\n int i = VERSION.SDK_INT;\n Object obj = null;\n if (i >= 19) {\n if (i > 19) {\n String[] strArr = Build.SUPPORTED_64_BIT_ABIS;\n if (strArr != null && strArr.length > 1) {\n obj = 1;\n }\n } else if (new File(\"/system/lib64\").exists()) {\n obj = 1;\n }\n }\n String str3 = null;\n if (VERSION.SDK_INT < 21) {\n str3 = Build.CPU_ABI;\n }\n if ((str3 == null || str3.length() < 2) && VERSION.SDK_INT >= 21) {\n str3 = Build.SUPPORTED_ABIS[0];\n }\n Object obj2 = 1;\n if (str3.toLowerCase(Locale.US).contains(\"x86\")) {\n obj2 = null;\n } else if (VERSION.SDK_INT >= 21) {\n String[] strArr2 = Build.SUPPORTED_ABIS;\n if (strArr2 != null) {\n for (String str4 : strArr2) {\n if (str4.toLowerCase(Locale.US).contains(\"x86\")) {\n obj2 = null;\n }\n }\n }\n }\n Object obj3 = null;\n if (str3.toLowerCase(Locale.US).contains(\"mips\")) {\n obj3 = 1;\n }\n String str5 = VERSION.SDK_INT > 8 ? applicationInfo.nativeLibraryDir : \"/data/data/\" + mPKName + \"/lib\";\n String str6 = \"\";\n String str7 = \"\";\n String str8 = \"\";\n str8 = \"\";\n if (obj2 != null) {\n str4 = m10f() + \"-\" + m5c();\n } else {\n str4 = \"shellx-\" + m5c();\n str8 = m10f() + \"-\" + m5c();\n }\n str6 = str6 + \"lib\" + str4 + \".so\";\n str8 = str7 + \"lib\" + str8 + \".so\";\n File file = new File(str5 + \"/\" + str6);\n File file2 = new File(str2 + \"/\" + str8);\n if (obj2 == null && VERSION.SDK_INT < 19) {\n if (!file2.exists()) {\n if (ZipUtil.exist(f1b, \"lib/armeabi/\" + str8) == 0) {\n if (ZipUtil.extract(f1b, \"lib/armeabi/\" + str8, str2 + \"/\" + str8) == 0) {\n }\n } else if (ZipUtil.extract(f1b, \"lib/armeabi-v7a/\" + str8, str2 + \"/\" + str8) == 0) {\n }\n }\n try {\n Runtime.getRuntime().exec(\"chmod 700 \" + str2 + \"/\" + str8);\n System.load(str2 + \"/\" + str8);\n } catch (IOException e) {\n e.printStackTrace();\n }\n } else if (file.exists()) {\n System.loadLibrary(str4);\n } else {\n str5 = \"\";\n str4 = str2 + \"/\" + str6;\n if (ZipUtil.exist(f1b, \"lib/\" + str3 + \"/\" + str6) == 0) {\n str5 = \"lib/\" + str3 + \"/\" + str6;\n } else if (obj != null) {\n if (obj2 == null) {\n if (VERSION.SDK_INT >= 21) {\n String[] strArr3 = Build.SUPPORTED_ABIS;\n r0 = \"\";\n if (strArr3 != null) {\n int i2 = 0;\n while (i2 < strArr3.length) {\n if (ZipUtil.exist(f1b, \"lib/\" + strArr3[i2].toLowerCase(Locale.US) + \"/\" + str8) == 0 || ZipUtil.exist(f1b, \"lib/\" + strArr3[i2].toLowerCase(Locale.US) + \"/\" + str6) == 0) {\n str3 = strArr3[i2].toLowerCase(Locale.US);\n obj = 1;\n if (ZipUtil.exist(f1b, \"lib/x86_64/\" + str6) == 0) {\n str3 = \"lib/x86_64/\" + str6;\n } else {\n if (str3.compareTo(\"arm64-v8a\") == 0) {\n if (ZipUtil.exist(f1b, \"lib/arm64-v8a/\" + str6) == 0) {\n str3 = \"lib/arm64-v8a/\" + str6;\n }\n } else if (str3.compareTo(\"x86\") == 0) {\n if (ZipUtil.exist(f1b, \"lib/x86/\" + str6) == 0) {\n str3 = \"lib/x86/\" + str6;\n }\n } else if (str3.compareTo(\"armeabi-v7a\") == 0 || str3.compareTo(\"armeabi\") == 0) {\n if (ZipUtil.exist(f1b, \"lib/x86/\" + str6) == 0) {\n str3 = \"lib/x86/\" + str6;\n } else if (ZipUtil.exist(f1b, \"lib/armeabi/\" + str6) == 0) {\n str3 = \"lib/armeabi/\" + str6;\n } else if (ZipUtil.exist(f1b, \"lib/armeabi-v7a/\" + str6) == 0) {\n str3 = \"lib/armeabi-v7a/\" + str6;\n }\n }\n str3 = str5;\n }\n if (VERSION.SDK_INT < 21 || r0 == null) {\n if (ZipUtil.exist(f1b, \"lib/x86_64/\" + str6) == 0) {\n str3 = \"lib/x86_64/\" + str6;\n } else if (ZipUtil.exist(f1b, \"lib/arm64-v8a/\" + str6) == 0) {\n str3 = \"lib/arm64-v8a/\" + str6;\n } else if (ZipUtil.exist(f1b, \"lib/x86/\" + str6) == 0) {\n str3 = \"lib/x86/\" + str6;\n } else if (ZipUtil.exist(f1b, \"lib/armeabi/\" + str6) == 0) {\n str3 = \"lib/armeabi/\" + str6;\n } else if (ZipUtil.exist(f1b, \"lib/armeabi-v7a/\" + str6) == 0) {\n str3 = \"lib/armeabi-v7a/\" + str6;\n }\n }\n str5 = str3;\n } else {\n i2++;\n }\n }\n }\n }\n obj = null;\n str3 = str5;\n if (ZipUtil.exist(f1b, \"lib/x86_64/\" + str6) == 0) {\n str3 = \"lib/x86_64/\" + str6;\n } else if (ZipUtil.exist(f1b, \"lib/arm64-v8a/\" + str6) == 0) {\n str3 = \"lib/arm64-v8a/\" + str6;\n } else if (ZipUtil.exist(f1b, \"lib/x86/\" + str6) == 0) {\n str3 = \"lib/x86/\" + str6;\n } else if (ZipUtil.exist(f1b, \"lib/armeabi/\" + str6) == 0) {\n str3 = \"lib/armeabi/\" + str6;\n } else if (ZipUtil.exist(f1b, \"lib/armeabi-v7a/\" + str6) == 0) {\n str3 = \"lib/armeabi-v7a/\" + str6;\n }\n str5 = str3;\n } else if (ZipUtil.exist(f1b, \"lib/arm64-v8a/\" + str6) == 0) {\n str5 = \"lib/arm64-v8a/\" + str6;\n } else if (ZipUtil.exist(f1b, \"lib/armeabi/\" + str6) == 0) {\n str5 = \"lib/armeabi/\" + str6;\n } else if (ZipUtil.exist(f1b, \"lib/armeabi-v7a/\" + str6) == 0) {\n str5 = \"lib/armeabi-v7a/\" + str6;\n }\n } else if (obj2 != null) {\n Object obj4;\n if (obj3 == null || ZipUtil.exist(f1b, \"lib/mips/\" + str6) != 0) {\n obj4 = null;\n r0 = str5;\n } else {\n obj4 = 1;\n r0 = \"lib/mips/\" + str6;\n }\n if (obj4 == null) {\n if (ZipUtil.exist(f1b, \"lib/armeabi/\" + str6) == 0) {\n r0 = \"lib/armeabi/\" + str6;\n } else if (ZipUtil.exist(f1b, \"lib/armeabi-v7a/\" + str6) == 0) {\n r0 = \"lib/armeabi-v7a/\" + str6;\n }\n }\n str5 = r0;\n } else if (ZipUtil.exist(f1b, \"lib/x86/\" + str6) == 0) {\n str5 = \"lib/x86/\" + str6;\n } else if (ZipUtil.exist(f1b, \"lib/armeabi/\" + str6) == 0) {\n str5 = \"lib/armeabi/\" + str6;\n } else if (ZipUtil.exist(f1b, \"lib/armeabi-v7a/\" + str6) == 0) {\n str5 = \"lib/armeabi-v7a/\" + str6;\n }\n if (ZipUtil.extract(f1b, str5, str4) == 0) {\n try {\n Runtime.getRuntime().exec(\"chmod 700 \" + str4);\n System.load(str4);\n } catch (IOException e2) {\n e2.printStackTrace();\n }\n }\n }\n }", "title": "" }, { "docid": "05ebae6143cfb063af241f6bc0371e48", "score": "0.4645832", "text": "public static void main(String args[]) {\r\n }", "title": "" }, { "docid": "4d834ea3fa5d85a551fd97f21ccb8aa2", "score": "0.46414492", "text": "void mo21076g();", "title": "" }, { "docid": "d3c8302c30d087a708c281f999ca5777", "score": "0.46402052", "text": "public static void main(String[] args) {\n\t\t\n\t\tif(args==null && args.length==0) {\n\t\t\tSystem.out.println(\"Null\");\n\t\t}else{\n\t\t\tSystem.out.println(Arrays.deepToString(args));\n\t\t}\n\t\t\n\t\tEnumeration<Object> en= System.getProperties().keys();\n\t\t\n\t\t//while(en.hasMoreElements()) {\n\t\t\t//String key=(String)en.nextElement();\n\t\t\tSystem.out.println(\"java.class.path\"+\"__val__\"+System.getProperties().getProperty(\"java.class.path\"));\n\t\t//}\n\t\t\t\n\t\t//System.out.println(System.getProperties());\n\t\t\n\t\tFile dir_curr=new File(\".\");//in realtÓ Ŕ una directory\n\t\tFile filet=new File(\"filet.txt\");//un file\n\t\t\n\t\tSystem.out.println(filet.getAbsolutePath());\n\t\n\t\tSystem.out.println(Arrays.deepToString(dir_curr.list()));\n\t\n\t\tSystem.out.println(Arrays.deepToString(filet.list()));\n\t\t\n\t\tSystem.out.println(filet.isFile());\n\t\t\n\t\tSystem.out.println(dir_curr.isFile());\n\t\n\t\tString z=null;\n\t}", "title": "" }, { "docid": "00c640bae7bf2c39062ef466a754f522", "score": "0.4637198", "text": "private AsciiUtils() {\r\n\t}", "title": "" }, { "docid": "70fc8a7cad311c4df5edcce6135b2281", "score": "0.4636139", "text": "public static void main(String[] args) {\n\t\t\r\n\t\t\r\n\r\n\t}", "title": "" }, { "docid": "2b77ae7f3ce285083f80c00685faef2d", "score": "0.46315467", "text": "public static void main(String[] args)\r\n {\n \r\n \r\n }", "title": "" }, { "docid": "b62867119d15f763581d6381355df811", "score": "0.4629361", "text": "public static void main(String[] args) {\n\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t}", "title": "" }, { "docid": "4da93758de09137379aebee7ae3d42f1", "score": "0.46290445", "text": "public static void main(String[] args) {\n \n\t}", "title": "" }, { "docid": "d27b8cca6685f53689ba83d38767a8ce", "score": "0.46266714", "text": "public static String t() {\n int n10;\n Object object;\n Object object2;\n String string2 = c;\n if (string2 != null) {\n return string2;\n }\n c = string2 = \"\";\n int n11 = 0;\n Object object3 = null;\n try {\n object2 = Runtime.getRuntime();\n object = \"cat /proc/version\";\n object3 = ((Runtime)object2).exec((String)object);\n }\n catch (IOException iOException) {}\n object3 = ((Process)object3).getInputStream();\n object = Charset.defaultCharset();\n object2 = new InputStreamReader((InputStream)object3, (Charset)object);\n int n12 = 8192;\n object3 = new BufferedReader((Reader)object2, n12);\n object2 = string2;\n try {\n while ((object = ((BufferedReader)object3).readLine()) != null) {\n StringBuilder stringBuilder = new StringBuilder();\n stringBuilder.append((String)object2);\n stringBuilder.append((String)object);\n object2 = stringBuilder.toString();\n }\n }\n catch (IOException iOException) {}\n if ((n10 = TextUtils.equals((CharSequence)object2, (CharSequence)string2)) == 0) {\n n10 = ((String)object2).indexOf(\"version \") + 8;\n string2 = ((String)object2).substring(n10);\n object3 = \" \";\n n11 = string2.indexOf((String)object3);\n object2 = null;\n c = string2 = string2.substring(0, n11);\n }\n return c;\n }", "title": "" }, { "docid": "bd770c48c37a7d5a20da9970f5e72b4a", "score": "0.46260685", "text": "public static void main(String[] args) {}", "title": "" }, { "docid": "bd770c48c37a7d5a20da9970f5e72b4a", "score": "0.46260685", "text": "public static void main(String[] args) {}", "title": "" }, { "docid": "09d2e631d3fc5b3b062b84fc75fccd85", "score": "0.4624073", "text": "void mo60893b();", "title": "" }, { "docid": "54e692772e716af3d2f07b99c6ea3f3e", "score": "0.46235767", "text": "void open();", "title": "" }, { "docid": "54e692772e716af3d2f07b99c6ea3f3e", "score": "0.46235767", "text": "void open();", "title": "" }, { "docid": "54e692772e716af3d2f07b99c6ea3f3e", "score": "0.46235767", "text": "void open();", "title": "" }, { "docid": "fa27b313748d3dbdbb294e8ab31beafe", "score": "0.46220094", "text": "private void strin() {\n\n\t}", "title": "" }, { "docid": "65a26defad67b7db06abc9e9027473a1", "score": "0.4620764", "text": "public static void main(String argv[]) {\n\n\n\n\t}", "title": "" }, { "docid": "3990ab2388f8b26fa3ff35ea87058106", "score": "0.46154252", "text": "private static String nativeLocationInJar() {\n\t\tString OS = System.getProperty(\"os.name\");\n\t\tString arch = System.getProperty(\"os.arch\");\n\t\tlog.info(\"Found OS={}, arch={}\", OS, arch);\n\t\tString key = OS+\"_\"+arch;\n\t\tswitch(key)\n\t\t{\n\t\tcase \"Linux_amd64\":\n\t\t\treturn \"native/MANIFEST.Linux_amd64\";\n\t\tcase \"Windows 7_amd64\":\n\t\tcase \"Windows 8_amd64\":\n\t\tcase \"Windows 8.1_amd64\":\n\t\t\treturn \"native/MANIFEST.Windows_amd64\";\n\t\t}\n\t\tlog.error(\"No matching native library for {}\", key);\n\t\tthrow new Error(\"No matching native library for \"+key);\n\t}", "title": "" }, { "docid": "76637b8fc26ac1872644af465fc08b97", "score": "0.46146768", "text": "public static void main(String args[]){\n\t\t\n\t\n\t}", "title": "" }, { "docid": "d644618de16d8afe4d024a0331addf48", "score": "0.46143207", "text": "@Test\n\tpublic void test(){\n\t\tFile srcFile = new File(\"E:\\\\Workspaces\\\\MyPro\\\\ssh\\\\WebRoot\\\\products\\\\2\\\\男鞋\");\n//\t\tSystem.out.println(ss);\n\t\tthis.getAllJavaFilePaths(srcFile);\n\t}", "title": "" }, { "docid": "b11e69772e6e2b10a24d979f7b48856c", "score": "0.4613775", "text": "public static void main(String[] args) {\n\n\t\t\n\t}", "title": "" }, { "docid": "eae3a6ab08661ed666d1d070e43086be", "score": "0.4613299", "text": "public static void main(String[] args) {\n\t\t\r\n\r\n\t}", "title": "" }, { "docid": "eae3a6ab08661ed666d1d070e43086be", "score": "0.4613299", "text": "public static void main(String[] args) {\n\t\t\r\n\r\n\t}", "title": "" }, { "docid": "eae3a6ab08661ed666d1d070e43086be", "score": "0.4613299", "text": "public static void main(String[] args) {\n\t\t\r\n\r\n\t}", "title": "" } ]
5017670ee8d48c7e55ba1a0d88bc1704
Method allows to extract user entity from DB. Method should be used only in DAO class as handler.
[ { "docid": "12c3c307a7ff31c68938d94af2588063", "score": "0.72731405", "text": "@Override\n\tpublic User extractUser(ResultSet rs) throws SQLException {\n\t\tUser user = new User();\n\t\tuser.setId(rs.getInt(\"id\"));\n\t\tuser.setLogin(rs.getString(\"login\"));\n\t\tuser.setPassword(rs.getString(\"password\"));\n\t\tuser.setFirstName(rs.getString(\"first_name\"));\n\t\tuser.setLastName(rs.getString(\"last_name\"));\n\t\tuser.setBill(rs.getInt(\"bill\"));\n\t\tuser.setRoleId(rs.getInt(\"role_id\"));\n\t\tuser.setStatusId(rs.getInt(\"status_id\"));\n\t\treturn user;\n\t}", "title": "" } ]
[ { "docid": "9b79b6e90fcdb4ac72117b9dfaaee160", "score": "0.7341838", "text": "private User extractUser(ResultSet rs) throws SQLException {\n\t\tUser user = new User();\n\t\tuser.setId(rs.getInt(Fields.ENTITY_ID));\n\t\tuser.setLogin(rs.getString(Fields.USER_LOGIN));\n\t\tuser.setPassword(rs.getString(Fields.USER_PASSWORD));\n\t\tuser.setFirstName(rs.getString(Fields.USER_FIRST_NAME));\n\t\tuser.setLastName(rs.getString(Fields.USER_LAST_NAME));\n\t\tuser.setRoleId(rs.getInt(Fields.USER_ROLE_ID));\n\t\treturn user;\n\t}", "title": "" }, { "docid": "0389b19e86b17168444087ae60dd52db", "score": "0.70620733", "text": "public UserEntity getUser( int id ){\n return userDAO.getUserById( id );\n }", "title": "" }, { "docid": "5a32a714d8603b15987451ca1967d0c6", "score": "0.69352597", "text": "public User fetchUser(Long id);", "title": "" }, { "docid": "0116eb45e164ee2935ca8f15cbde107c", "score": "0.68794966", "text": "protected User fillEntity(ResultSet resultSet) throws SQLException{\n\t\tUser user = new User();\n\t\tuser.setId(resultSet.getInt(1));\n\t\tuser.setLogin(resultSet.getString(2));\n\t\tuser.setPasswordSha(resultSet.getString(3));\n\t\tuser.setFirstName(resultSet.getString(4));\n\t\tuser.setLastName(resultSet.getString(5));\n\t\tuser.setType(User.UserType.valueOf(resultSet.getString(6).toUpperCase()));\n\t\treturn user;\n\t}", "title": "" }, { "docid": "457c415e7c6aa6aa3f75a8ace10a0333", "score": "0.6830978", "text": "public User fetchUser(String userName);", "title": "" }, { "docid": "13431caefa9817683467cbb45472b7f5", "score": "0.67639226", "text": "private User extractOneUserFromResultSet(ResultSet resultSet) throws DatabaseException {\r\n User user = null;\r\n try {\r\n while (resultSet.next()) {\r\n user = new User(\r\n resultSet.getInt(\"Id\"),\r\n resultSet.getString(\"Username\"),\r\n resultSet.getString(\"Email\"),\r\n resultSet.getString(\"LastName\"),\r\n resultSet.getString(\"FirstName\"),\r\n resultSet.getString(\"Password\")\r\n );\r\n }\r\n } catch (SQLException e) {\r\n throwException(e);\r\n }\r\n return user;\r\n }", "title": "" }, { "docid": "f824f1a117eb45bcba3676ccb73f85f5", "score": "0.6705971", "text": "@Override\n public User extractEntity(List<String> attributes) {\n User user = new User(attributes.get(1),attributes.get(2));\n user.setId(Long.parseLong(attributes.get(0)));\n return user;\n }", "title": "" }, { "docid": "c9b8ea9436fd308a7e437410373a9d3c", "score": "0.6696494", "text": "@Transactional\n\tpublic UserEntity GetInfoUser(int idUser) {\n\t\t\n\t\tSession session = sessionFactory.getCurrentSession();\n\t\t\n\t\tUserEntity userEntity = (UserEntity) session.createQuery(\"from user where idUser='\"+idUser+\"'\").getSingleResult();\n\t\t\n\t\treturn userEntity;\n\t}", "title": "" }, { "docid": "7ea64ef42ba0a7d9d8935c36a4a93fbf", "score": "0.6658046", "text": "UserDetails retrieveUser(Long userId);", "title": "" }, { "docid": "eb2300d7cb83dce15be0aeb85c9337d2", "score": "0.6613512", "text": "public JctUser populateExistingUserData() throws DAOException;", "title": "" }, { "docid": "217da5ef7cc721ae6c8c4b34cfe2c4ec", "score": "0.65770674", "text": "public User getUser() {\r\n long __key = this.user_id;\r\n if (user__resolvedKey == null || !user__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 userNew = targetDao.load(__key);\r\n synchronized (this) {\r\n user = userNew;\r\n \tuser__resolvedKey = __key;\r\n }\r\n }\r\n return user;\r\n }", "title": "" }, { "docid": "14408a465538b59b52a4c8fe965723be", "score": "0.6572689", "text": "User findUser(String login, String password) throws SQLException, EntityNotFoundException;", "title": "" }, { "docid": "633e493f2e9bd9591782249d034e47c7", "score": "0.6539437", "text": "public UserEntity getUserEntity(String username) throws ServiceException;", "title": "" }, { "docid": "2708fea2f29da1c03d26092d8f8df51a", "score": "0.6504756", "text": "public JctUser fetchUserData(Integer primaryKey) throws DAOException;", "title": "" }, { "docid": "2708fea2f29da1c03d26092d8f8df51a", "score": "0.6504756", "text": "public JctUser fetchUserData(Integer primaryKey) throws DAOException;", "title": "" }, { "docid": "91520431368c44d9769110b01ffd96be", "score": "0.6493712", "text": "@Override\r\n\tpublic User getUser() {\r\n\t\treturn userDao.get();\r\n\t}", "title": "" }, { "docid": "1966e73850b6d42d52284274b03158a6", "score": "0.64935184", "text": "@Override\n public User findUserByID(Long id) {\n try{\n User user = new User();\n this.connection =DriverManager.getConnection(url, username,password);\n\n this.preparedStatement= this.connection.prepareStatement(\"SELECT * from user where (id) = ?\");\n this.preparedStatement.setLong(1, id);\n\n this.resultSet = this.preparedStatement.executeQuery();\n\n try{\n this.resultSet.next();\n user.setID(this.resultSet.getLong(\"id\"));\n user.setEmail(this.resultSet.getString(\"email\"));\n user.setPassword(this.resultSet.getString(\"password\"));\n user.setLast_name(this.resultSet.getString(\"last_name\"));\n user.setFirst_name(this.resultSet.getString(\"first_name\"));\n user.setPermission(this.resultSet.getString(\"permission\"));\n\n System.out.println(user.toString());\n } catch (SQLException throwables) {\n System.out.println(\"Site introuvable dans la BDD\");\n }\n\n this.preparedStatement.close();\n this.resultSet.close();\n this.connection.close();\n\n return user;\n\n } catch (Exception e) {\n e.printStackTrace();\n return null;\n }\n\n }", "title": "" }, { "docid": "99d89f8b45515674c377ac74ad25466e", "score": "0.6482739", "text": "public static UserInfoBean getUserData(){\n\t\tConnection con=DBConnect.getConnection();\n\t\tint userId=0;\n\t\tString query=\"select user_id from st_lms_user_master where organization_type='BO' and isrolehead='Y' and user_name='bomaster'\";\n\t\ttry{\n\t\t\tPreparedStatement ps =con.prepareStatement(query);\n\t\t\tResultSet rs = ps.executeQuery();\n\t\t\tif(rs.next()){\n\t\t\t\tuserId = rs.getInt(\"user_id\");\n\t\t\t\treturn getUserDataFromUserId(userId);\n\t\t\t}\n\t\t\t\n\t\t}catch(Exception e){\n\t\t\te.printStackTrace();\n\t\t}finally{\n\t\t\ttry{\n\t\t\t\tcon.close();\n\t\t\t}catch(SQLException e){\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t\t\n\t}", "title": "" }, { "docid": "e9aa92cd670e9ae0bee7b2a5a4a5ec15", "score": "0.6472833", "text": "@Override\n\tpublic User getIndividual(User theUser) {\n\t\tSession session = sessionFactory.getCurrentSession();\n\t\tQuery theQuery = session.createQuery(\"from User where username=:username and password=:password\");\n\t\t//theQuery.getParameter(0,getUsername())\n\t\ttheQuery.getParameter(\"username\");\n\t\ttheQuery.getParameter(\"password\");\n\t\tUser indi = (User) theQuery.uniqueResult();\n\t\treturn indi;\n\t\t// currentSession = sessionFactory.getCurrentSession();\n\t\t//Users hereUser = currentSession.get(Users.class, theUser);\n\t\t//return hereUser;\n\t}", "title": "" }, { "docid": "23af36924d508b79d12ee4a3cfe9a679", "score": "0.6464718", "text": "SMUser getUserById(String userId) throws DBException;", "title": "" }, { "docid": "95f5d5cda3bdc8b8ced6207daab524f0", "score": "0.6427343", "text": "User findUser(Long id) throws ServiceException;", "title": "" }, { "docid": "cda28bd77c8cb50e7945ef2d1558636a", "score": "0.6389991", "text": "User getUserById(Long id);", "title": "" }, { "docid": "cda28bd77c8cb50e7945ef2d1558636a", "score": "0.6389991", "text": "User getUserById(Long id);", "title": "" }, { "docid": "d3d24465069f260277cb18df07a7fe2d", "score": "0.6373221", "text": "private static User getUserFromResultSet(ResultSet rs) throws SQLException\n {\n User user = null;\n if (rs.next()) {\n user = new User();\n user.setEmail(rs.getString(\"email\"));\n \n }\n return user;\n }", "title": "" }, { "docid": "693cc518ac5e2f2c84b23b83ef88166f", "score": "0.6371444", "text": "User getUserById(Integer userId) throws DataAccessException;", "title": "" }, { "docid": "21b869b716f7b6e5f132716fab3cc2ed", "score": "0.63604087", "text": "@Override\n public UsersEntity getUser(\n Long id\n ) {\n Optional<UsersEntity> userEntityOptional\n = userRepository.findById(id);\n if (userEntityOptional.isEmpty())\n return null;\n UsersEntity userEntity = userEntityOptional.get();\n return userEntity;\n }", "title": "" }, { "docid": "68945ccf645fd4212c42ce71c584483a", "score": "0.635098", "text": "private User getUserFromIntent(){\n final UUID id = (UUID)getIntent().getSerializableExtra(HomeActivity.EXTRA_USER_ID);\n User user = UserDataService.get(HomeActivity.this).getUser(id);\n\n if (user == null) {\n user = UserDataService.get(HomeActivity.this).getFirstUser();\n }\n\n return user;\n }", "title": "" }, { "docid": "4558a289f2826746a36f7d77bba153be", "score": "0.63445973", "text": "BlogUser getBlogUser(String nick) throws DAOException;", "title": "" }, { "docid": "779c91b6f244f3c2bdd3e50d3c00cc9f", "score": "0.6310883", "text": "public static UserBean userInfoGet(int userId) {\n MySQLiteOpenHelper helper = null;\n SQLiteDatabase database = null;\n Cursor cursor = null;\n UserBean user = new UserBean();\n try {\n helper = new MySQLiteOpenHelper(Utility.context);\n database = helper.getWritableDatabase();\n String args[] = {userId + \"\"};\n cursor = database.rawQuery(\"select AccountId,Username,FirstName,LastName,AccountType,Password,Salt,ExemptELDUseFg,SpecialCategory,DrivingLicense,DLIssueState,LicenseAcceptFg,LicenseExpiryDate,EmailId,MobileNo,DotPassword,TimeZoneId,Address,LanguageForSupport from \"\n + MySQLiteOpenHelper.TABLE_ACCOUNT\n + \" where AccountId=?\", args);\n while (cursor.moveToNext()) {\n String encryptedPassword = cursor.getString(cursor.getColumnIndex(\"Password\"));\n String salt = cursor.getString(cursor.getColumnIndex(\"Salt\"));\n\n user.setPassword(encryptedPassword);\n user.setSalt(salt);\n user.setAccountId(cursor.getInt(cursor.getColumnIndex(\"AccountId\")));\n user.setFirstName(cursor.getString(cursor.getColumnIndex(\"FirstName\")));\n user.setLastName(cursor.getString(cursor.getColumnIndex(\"LastName\")));\n user.setAccountType(cursor.getInt(cursor.getColumnIndex(\"AccountType\")));\n user.setExemptELDUseFg(cursor.getInt(cursor.getColumnIndex(\"ExemptELDUseFg\")));\n user.setSpecialCategory(cursor.getString(cursor.getColumnIndex(\"SpecialCategory\")));\n\n user.setUserName(cursor.getString(cursor.getColumnIndex(\"Username\")));\n user.setDrivingLicense(cursor.getString(cursor.getColumnIndex(\"DrivingLicense\")));\n user.setDlIssueState(cursor.getString(cursor.getColumnIndex(\"DLIssueState\")));\n user.setLicenseAcceptFg(cursor.getInt(cursor.getColumnIndex(\"LicenseAcceptFg\")));\n user.setLicenseExpiryDate(cursor.getString(cursor.getColumnIndex(\"LicenseExpiryDate\")));\n user.setEmailId(cursor.getString(cursor.getColumnIndex(\"EmailId\")));\n user.setMobileNo(cursor.getString(cursor.getColumnIndex(\"MobileNo\")));\n user.setDotPassword(cursor.getString(cursor.getColumnIndex(\"DotPassword\")));\n user.setTimeZoneId(cursor.getString(cursor.getColumnIndex(\"TimeZoneId\")));\n user.setFullAddress(cursor.getString(cursor.getColumnIndex(\"Address\")));\n // set LanguageForSupport\n user.setSupportLanguage(cursor.getString(cursor.getColumnIndex(\"LanguageForSupport\")));\n // null handling for supporting language\n if (user.getSupportLanguage() == null) {\n user.setSupportLanguage(\"1\");\n }\n\n }\n\n } catch (Exception e) {\n Utility.printError(e.getMessage());\n LogFile.write(LoginDB.class.getName() + \"::LoginUser Error:\" + e.getMessage(), LogFile.DATABASE, LogFile.ERROR_LOG);\n LogDB.writeLogs(UserDB.class.getName(), \"::LoginUser Error:\", e.getMessage(), Utility.printStackTrace(e));\n\n } finally {\n try {\n cursor.close();\n database.close();\n helper.close();\n\n } catch (Exception e2) {\n }\n }\n return user;\n }", "title": "" }, { "docid": "3403747a2c1933647766b3c84b9f26c5", "score": "0.63094234", "text": "Users getUserDetailsById(int userId);", "title": "" }, { "docid": "bf3d5563d9c585db8f53a93dd8c29eb7", "score": "0.6283374", "text": "User find(Long id) throws DatabaseException;", "title": "" }, { "docid": "bf3d5563d9c585db8f53a93dd8c29eb7", "score": "0.6283374", "text": "User find(Long id) throws DatabaseException;", "title": "" }, { "docid": "e778af9b0f696807cd0abe9c391cc9fd", "score": "0.62767273", "text": "public User getUserEntry(String username) {\n User user;\n Cursor cursor = sqLiteDbUserContract.readEntry();\n cursor.moveToFirst();\n for (int i = 0; i < cursor.getCount(); i++) {\n if (cursor.getString(cursor.getColumnIndex(UserEntry.COLUMN_NAME_USERNAME)).equals(username)) {\n user = new User(cursor.getString(cursor.getColumnIndex(UserEntry.COLUMN_NAME_USER_ID)),\n username,\n cursor.getString(cursor.getColumnIndex(UserEntry.COLUMN_NAME_PASSWORD)),\n cursor.getString(cursor.getColumnIndex(UserEntry.COLUMN_NAME_LAST_LOGIN)),\n cursor.getString(cursor.getColumnIndex(UserEntry.COLUMN_NAME_EXP)),\n cursor.getString(cursor.getColumnIndex(UserEntry.COLUMN_NAME_RANK)),\n cursor.getString(cursor.getColumnIndex(UserEntry.COLUMN_NAME_RANK_POINTS)),\n cursor.getString(cursor.getColumnIndex(UserEntry.COLUMN_NAME_PROFILE_PICTURE)),\n cursor.getString(cursor.getColumnIndex(UserEntry.COLUMN_NAME_LOGIN_STATUS))\n );\n return user;\n }\n cursor.moveToNext();\n }\n\n return null;\n\n }", "title": "" }, { "docid": "0549efe967f466ac1c39235e014c588d", "score": "0.6273044", "text": "protected User getUser() {\n User entity = new User();\n\n entity.setUsername(\"username1\");\n entity.setDefaultTab(ActionTab.ADMIN);\n entity.setNetworkId(\"networkId1\");\n\n entity.setRole(getRole());\n create(entity.getRole());\n\n entity.setFirstName(\"firstName1\");\n entity.setLastName(\"lastName1\");\n entity.setEmail(\"email1\");\n entity.setTelephone(\"telephone1\");\n\n\n entity.setStatus(getUserStatus());\n create(entity.getStatus());\n\n return entity;\n }", "title": "" }, { "docid": "910aba6b4132e7605c5d4d2c22e6bd8e", "score": "0.6267254", "text": "public User loadUser(String username) throws UserNotFoundException, UserDAOException;", "title": "" }, { "docid": "33e22d653ea891e4b11e978bbe8d8a64", "score": "0.6263533", "text": "DbUser selectByPrimaryKey(Integer id);", "title": "" }, { "docid": "c3b50afbc5b4f322264609f3ba5d899e", "score": "0.62567216", "text": "@Override\r\n\tpublic User getUser(Long idUSer) {\n\t\treturn dao.getUser(idUSer);\r\n\t}", "title": "" }, { "docid": "050686ee4e3d74e86fce34c7ae4454c1", "score": "0.6239359", "text": "@Override\n\tpublic UserEntity getUser(Integer uid) {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "55422c839b362795f5c17a187e78cf37", "score": "0.62312526", "text": "@Override\r\n public Users getRowData(String rowKey) {\n if (rowKey == null || rowKey.compareTo(\"null\") == 0) {\r\n return null;\r\n }\r\n Users user = userService.getUserById(new Long(rowKey));\r\n// organization.getLocationComObj();\r\n return user;\r\n\r\n }", "title": "" }, { "docid": "270c346d5770130aea34bfdc02d681dd", "score": "0.62284297", "text": "public User getUser(Long id);", "title": "" }, { "docid": "ecb9b75c736feab9d315c3419e127f3d", "score": "0.62278813", "text": "public User findByUserLogin(UserDTO userDTO){\n return userRepository.findByEmail(userDTO.getEmail());\r\n }", "title": "" }, { "docid": "346d5fbbf9725c8eafe0f82de5bc8f65", "score": "0.6223253", "text": "public User retrieve(int _id){\n\n if(userDAO.existsById(_id))\n return userDAO.findById(_id).get();\n \n // Should be corrected in the future. This returns null if the user foesn't exist.\n return null;\n\n }", "title": "" }, { "docid": "e28ed07fcf6726563709b08d48891178", "score": "0.6211913", "text": "@Query(value = \"SELECT user FROM TelegramUser user WHERE user.userId = :userId\")\n TelegramUser findUserById(Long userId);", "title": "" }, { "docid": "1966f32b38f38c1ac9b3311f24e945e2", "score": "0.62002385", "text": "private static void getUserDetails() {\n\t\tSession session = HibernateSessionFactory.getSession();\r\n\t\t\r\n\t\tCareUserDAO daoObj = new CareUserDAO();\r\n\t\tCareUser careObj = daoObj.findById(5);\r\n\t\tString name = careObj.getName();\r\n\t\tString email = careObj.getEmail();\r\n\t\tlong mobile = careObj.getMobile();\r\n\t\tString password = careObj.getPassword();\r\n\t\tString userType = careObj.getUserType();\r\n\t\tSystem.out.println(\"name: \" + name);\r\n\t\tSystem.out.println(\"email: \" + email);\r\n\t\tSystem.out.println(\"mobile: \" + mobile);\r\n\t\tSystem.out.println(\"user type: \" +userType);\r\n\t\t\r\n\t\t\r\n\r\n\t}", "title": "" }, { "docid": "a0916b9a9a6822dc4ec4d36fc5fc8ef2", "score": "0.6196813", "text": "public User getUser(){\r\n\t\tString usertype = usertype();\r\n\t\tHashMap<String, User> hm = new HashMap<String, User>();\r\n\t\thm = MySqlDataStoreUtilities.selectUser();\r\n\t\treturn hm.get(username());\r\n\t}", "title": "" }, { "docid": "1a724bc2f569090a411a6f2c802f78ca", "score": "0.6191998", "text": "@Override\n\tpublic List<Employee> getUser() {\n\t\t return userDao.getUser();\n\t}", "title": "" }, { "docid": "0e6cf9b972c2e71ef985d76bd640c970", "score": "0.61910075", "text": "public UserEntity getUserData(Integer userId) {\n UserEntity user = userDAO.getUserById(userId);\n user.setPassword(\"\");\n return user;\n }", "title": "" }, { "docid": "3e24cbdd995b2fed49c3383498bbb311", "score": "0.6189603", "text": "public static UserEntity ofUser(User user) {\n\n if (user != null) {\n UserEntity userEntity = new UserEntity();\n userEntity.username = user.getUsername();\n userEntity.password = user.getPassword();\n return userEntity;\n }\n\n return null;\n }", "title": "" }, { "docid": "28e762f605c50f7a677a5436c991122a", "score": "0.6186476", "text": "@Repository\npublic interface UserInfoDao extends BaseMapper<UserInfoEntity> {\n\n UserInfoEntity selectUserByUserName(String username);\n\n UserInfoEntity selectUserById(String userId);\n\n List<Integer> getUserIdList();\n\t\n}", "title": "" }, { "docid": "a8fdc7c93b283edc7487a06ce1219164", "score": "0.6180924", "text": "private static UserRecord getUser(ResultSet resultSet) throws SQLException {\r\n int id = resultSet.getInt(\"userID\");\r\n String firstName = resultSet.getString(\"firstName\");\r\n String lastName = resultSet.getString(\"lastName\");\r\n String iconUri = resultSet.getString(\"icon\");\r\n String password = resultSet.getString(\"password\");\r\n int balance = resultSet.getInt(\"balance\");\r\n\r\n UserRecord userRecord = new UserRecord(firstName, lastName, iconUri, password, balance);\r\n userRecord.setUserId(id);\r\n \r\n return userRecord;\r\n \r\n }", "title": "" }, { "docid": "9bb838457791ce1360a91650a1b4b299", "score": "0.6168587", "text": "public interface UserDao {\n\n UserEntity getUserByUsername(String username, String... fields);\n\n UserEntity getUserByUserId(int userId, String... fields);\n\n UserEntity getUserByPhone(String phone, String... fields);\n\n void saveUser(UserEntity userEntity);\n\n void updateUser(UserEntity userEntity, String... fields);\n\n List<UserEntity> getUsers(int offset, int limit);\n\n long getUsersCount();\n\n void detachObject(Object o);\n\n}", "title": "" }, { "docid": "4836abed009ab95a95cf6449759dbe75", "score": "0.61653376", "text": "@ModelAttribute(\"authUser\")\n public UserEntity getAuthUser() {\n Authentication auth = SecurityContextHolder.getContext().getAuthentication();\n return userService.findByUsername(auth.getName());\n }", "title": "" }, { "docid": "65b1f85e3bda5bfe2ca9a9596d3463d8", "score": "0.616218", "text": "public User returnSingleUser(User userToReturn);", "title": "" }, { "docid": "45ba70539a3e220762c2871bd4974dbd", "score": "0.6157741", "text": "@Generated(hash = 2126679178)\n public User getUser() {\n Long __key = this.user_id;\n if (user__resolvedKey == null || !user__resolvedKey.equals(__key)) {\n final DaoSession daoSession = this.daoSession;\n if (daoSession == null) {\n throw new DaoException(\"Entity is detached from DAO context\");\n }\n UserDao targetDao = daoSession.getUserDao();\n User userNew = targetDao.load(__key);\n synchronized (this) {\n user = userNew;\n user__resolvedKey = __key;\n }\n }\n return user;\n }", "title": "" }, { "docid": "d56c466ebf6a59222ad6ae32be536f32", "score": "0.6157224", "text": "User_Info selectByPrimaryKey(Integer userId);", "title": "" }, { "docid": "22451dc49f3677c37193efd979a214d5", "score": "0.61538523", "text": "public User get(long id);", "title": "" }, { "docid": "6410a7ee25f412e3fa4b6811e165fe74", "score": "0.61516273", "text": "public UserTO getUserDetails(final UserTO user) throws ApplicationException;", "title": "" }, { "docid": "2ffb1fb1455fe14c745ee6089cff19b3", "score": "0.6149163", "text": "public UserEntity findById(Integer id);", "title": "" }, { "docid": "80736e5d51c394356a1605dafa41813a", "score": "0.6143392", "text": "public User selectUserById(int idSelect) throws Exception {\n return em.find(User.class, idSelect);\r\n\r\n// ResultSet resultUserSelected;\r\n// User user = null;\r\n// conectDB();\r\n// PreparedStatement pst = conn.prepareStatement(\"SELECT * FROM users WHERE id=?\");\r\n// pst.setInt(1, idSelect);\r\n// resultUserSelected = pst.executeQuery();\r\n// if (resultUserSelected.next()) {\r\n// int id = resultUserSelected.getInt(\"id\");\r\n// String username = resultUserSelected.getString(\"username\");\r\n// String password = resultUserSelected.getString(\"password\");\r\n// String email = resultUserSelected.getString(\"email\");\r\n// String firstName = resultUserSelected.getString(\"first_name\");\r\n// String lastName = resultUserSelected.getString(\"last_name\");\r\n// String city = resultUserSelected.getString(\"city\");\r\n// user = new User(id, username, password, email, firstName, lastName, city);\r\n// }\r\n// return user;\r\n }", "title": "" }, { "docid": "c48528d1d3bb350a551a886922f2624b", "score": "0.6141125", "text": "public User getUser(DBHandler db) {\n return db.getUser(this.getUserId());\n }", "title": "" }, { "docid": "65db24d7f76ec18c377295b6f8670a25", "score": "0.613786", "text": "public abstract UserData getUser(String userId) throws ServiceException;", "title": "" }, { "docid": "cc7137c30196aadff63c26fe3e4413ec", "score": "0.61338496", "text": "public UserRemote getUser()\n {\n UserRemote user = null;\n try\n {\n user = lookupUserBean().findByPrimaryKey(new Integer(userId));\n }\n catch (Exception e)\n {}\n return user;\n }", "title": "" }, { "docid": "fe98511354339acb76396515e5e1c20a", "score": "0.61248696", "text": "UserModel selectUserById(Long id);", "title": "" }, { "docid": "60664d920c777902ba72c06d96d4a03e", "score": "0.61159104", "text": "@Override\n\tpublic User getUserInfoByUser_Id(int user_id) {\n\t\tString sql = \"SELECT * FROM user_info WHERE USER_ID =?\";\n\t\tObject[] params = new Object[] { user_id };\n\t\ttry{\n\t\t\treturn jdbcTemplate.queryForObject(sql, params, new RowMapper<User>(){\n\n\t\t\t\t@Override\n\t\t\t\tpublic User mapRow(ResultSet rs, int rowNum) throws SQLException {\n\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\tUser user = new User();\n\t\t\t\t\tuser.setUser_id(rs.getInt(1));\n\t\t\t\t\tuser.setUser_fullName(rs.getString(2));\n\t\t\t\t\tuser.setUser_mail(rs.getString(3));\n\t\t\t\t\t//not return user_pass\n\t\t\t\t\tuser.setRole_id(rs.getInt(5));\n\t\t\t\t\treturn user;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t});\n\t\t}\n\t\tcatch(Exception e){\n\t\t\treturn null;\n\t\t}\n\t}", "title": "" }, { "docid": "fce4c5418bd51297c71b274c84faf728", "score": "0.6108878", "text": "@Override\n\tpublic UserEntity checkExamer(String id) throws Exception {\n\t\t\tUserEntity user = dao.getByUK(UserEntity.class, \"id\", id);\n\t\treturn user;\n\t}", "title": "" }, { "docid": "205eb28f83d1d36f52bd64e073a16c2a", "score": "0.61075145", "text": "public UserWithBLOBs GetUser(){\n\n\n return null;\n }", "title": "" }, { "docid": "701153ac6c2cfba9505c29425944402f", "score": "0.61060584", "text": "@Override\n\tpublic User getUser(int id) {\n\t\tUser user = userDAOHibernate.getUser(id);\n\t\t\n\t\tif (user != null) {\n\t\t\tuserDTO.serviceToObjectUser(user);\n\t\t}\n\t\treturn user;\n\t}", "title": "" }, { "docid": "e241c674e21a79f4e440cdc08e67ad06", "score": "0.6105921", "text": "@Override\n\tpublic User get(long id) throws Exception {\n\t\treturn userDAO.get(id);\n\t}", "title": "" }, { "docid": "c3f15caf6678980d039e5ae7d675ec7e", "score": "0.6104472", "text": "UserDTO getByUsername(String username) throws UserException;", "title": "" }, { "docid": "7af77bf2b1710a16a6e34625d4a40125", "score": "0.61035925", "text": "@Generated(hash = 859885876)\n public User getUser() {\n Long __key = this.userId;\n if (user__resolvedKey == null || !user__resolvedKey.equals(__key)) {\n final DaoSession daoSession = this.daoSession;\n if (daoSession == null) {\n throw new DaoException(\"Entity is detached from DAO context\");\n }\n UserDao targetDao = daoSession.getUserDao();\n User userNew = targetDao.load(__key);\n synchronized (this) {\n user = userNew;\n user__resolvedKey = __key;\n }\n }\n return user;\n }", "title": "" }, { "docid": "7af77bf2b1710a16a6e34625d4a40125", "score": "0.61035925", "text": "@Generated(hash = 859885876)\n public User getUser() {\n Long __key = this.userId;\n if (user__resolvedKey == null || !user__resolvedKey.equals(__key)) {\n final DaoSession daoSession = this.daoSession;\n if (daoSession == null) {\n throw new DaoException(\"Entity is detached from DAO context\");\n }\n UserDao targetDao = daoSession.getUserDao();\n User userNew = targetDao.load(__key);\n synchronized (this) {\n user = userNew;\n user__resolvedKey = __key;\n }\n }\n return user;\n }", "title": "" }, { "docid": "0c3f929bee2a8c88e6be081bc83502c4", "score": "0.6095093", "text": "public UserEntity getById(Integer userId) {\n\t\treturn userDao.getById(userId);\n\t}", "title": "" }, { "docid": "40563adbb41964595b07db42551f713e", "score": "0.60940605", "text": "User getUser();", "title": "" }, { "docid": "40563adbb41964595b07db42551f713e", "score": "0.60940605", "text": "User getUser();", "title": "" }, { "docid": "0945d3260dda72c5ceec328f2b392b4c", "score": "0.6092036", "text": "public User findUser(Long id);", "title": "" }, { "docid": "35063e30be11fe8c9a3989fb2beb9135", "score": "0.6087533", "text": "@Override\n public User getUser(int theId) {\n Session currentSession = sessionFactory.getCurrentSession();\n\n User theUser = currentSession.get(User.class, theId);\n\n return theUser;\n }", "title": "" }, { "docid": "b8bae3bdd2e1e41ef0f184544a880f01", "score": "0.60859966", "text": "User getUser(String username) throws SQLException;", "title": "" }, { "docid": "cb169901253c28cbc991f3417af64567", "score": "0.6084561", "text": "public UserRemote getUser() {\n UserRemote usr = null;\n try {\n usr = userHome.findByPrimaryKey(new Integer(id));\n } catch (Exception e) {\n e.printStackTrace();\n }\n return usr;\n }", "title": "" }, { "docid": "c0744637f63a3ec02c4da310522b0e60", "score": "0.6082117", "text": "@Override\n\tpublic User getUser(int id) {\n\t\treturn userDao.getUser(0);\n\t}", "title": "" }, { "docid": "04860c8b8375ba110afc0b69c6a85f5b", "score": "0.6080137", "text": "DtsUser selectByPrimaryKey(Integer id);", "title": "" }, { "docid": "e24ab2bf7a52b3add83e06364a15476c", "score": "0.60799116", "text": "@Override\n\tpublic UserDetailsTO getUserDetails(long uid) {\n\t\treturn operatorDAOImpl.getUserDetails(uid);\n\t}", "title": "" }, { "docid": "95a94b3db920074397383afc6e1a9a4e", "score": "0.60762554", "text": "T findUser(String login, String password) throws ServiceException;", "title": "" }, { "docid": "5eb7680ee8b4de8693cd4eb690ea8faf", "score": "0.6075756", "text": "public UserEntity getUserByUserName(String userName){\n\n return userDao.findUserByUserName(userName);\n }", "title": "" }, { "docid": "9214e160711f908e48a0971473090e94", "score": "0.6071392", "text": "@Override\n public User find(String id) {\n User user = new User();\n try {\n String table = DatabaseContract.UserTable.TABLE_NAME;\n String query = DatabaseUtils.selectQuery(table) + \" WHERE EMAIL='\" + id + \"'\";\n connect(query);\n this.resultSet = this.statement.executeQuery();\n this.resultSet.first();\n if (this.resultSet != null) {\n user.setEmail(this.resultSet.getString(DatabaseContract.UserTable.COL_EMAIL));\n user.setToken(this.resultSet.getString(DatabaseContract.UserTable.COL_TOKEN));\n user.setName(this.resultSet.getString(DatabaseContract.UserTable.COL_NAME));\n user.setSurname(this.resultSet.getString(DatabaseContract.UserTable.COL_SURNAME));\n user.setLevel(this.resultSet.getInt(DatabaseContract.UserTable.COL_LEVEL));\n user.setProfileImage(this.resultSet.getString(DatabaseContract.UserTable.COL_PROFILE_IMG));\n user.setAddress(this.resultSet.getString(DatabaseContract.UserTable.COL_ADDRESS));\n }\n } catch (SQLException e) {\n System.err.println(e.getMessage());\n return null;\n } finally {\n disconnect();\n }\n return user;\n }", "title": "" }, { "docid": "8a03b3ff6bf3b023b9b87179efc6148c", "score": "0.60647595", "text": "private <T extends User> T loadUser(String username, UserClassification classifier) throws IOException\n {\n // We wish to recycle the current connection, so we do not close the new DAO\n return new UserDAO(connection).findUserOfType(username, classifier);\n }", "title": "" }, { "docid": "932ae118cf4a46ba90b78cea92dc54be", "score": "0.6064433", "text": "User getUserById(int id);", "title": "" }, { "docid": "f43129a140d72c9cc454b358363e55b9", "score": "0.60629666", "text": "@Override\n\tpublic User validateUser(String username,String password) {\n\t\tString namedQuery=\"from User as u where u.loginid=:plogin and u.password=:ppassword\";\n\t\tQuery query = em.createQuery(namedQuery);\n\t\tquery.setParameter(\"plogin\", username);\n\t\tquery.setParameter(\"ppassword\",password);\n\t\ttry {\n\t\t\tUser duser = (User) query.getSingleResult();\n\t\t\tif (logger.isInfoEnabled()) {\n\t\t\t\tlogger.info(duser);\n\t\t\t}\n\t\t\treturn duser;\n\t\t} catch (NoResultException e) {\n\t\t\tquery = em\n\t\t\t\t\t.createQuery(\"from ConsultantsEntity as ce where (ce.userid=? or ce.email=?) and ce.password=?\");\n\t\t\tquery.setParameter(1, username);\n\t\t\tquery.setParameter(2, username);\n\t\t\tquery.setParameter(3, password);\n\t\t\tUser cuser=new User();\n\t\t\ttry {\n\t\t\tConsultantsEntity consultantsEntity = (ConsultantsEntity) query.getSingleResult();\n\t\t\tcuser.setLoginid(consultantsEntity.getUserid());\n\t\t\tcuser.setBatch(consultantsEntity.getBatch());\n\t\t\tcuser.setConsultantid(consultantsEntity.getEmpid());\n\t\t\tcuser.setRole(consultantsEntity.getRole());\n\t\t\tcuser.setPassword(consultantsEntity.getPassword());\n\t\t\tcuser.setEmail(consultantsEntity.getEmail());\n\t\t\tcuser.setGender(consultantsEntity.getGender());\n\t\t\tcuser.setMobile(consultantsEntity.getMobile());\n\t\t\tcuser.setFirstName(consultantsEntity.getName());\n\t\t\tcuser.setStream(consultantsEntity.getStream());\n\t\t\tcuser.setActive(consultantsEntity.getActive());\n\t\t\tcuser.setLockStatus(consultantsEntity.getLockStatus());\n\t\t\tcuser.setAddress(consultantsEntity.getOrg());\n\t\t\treturn cuser;\n\t\t\t}catch(Exception exe){\n\t\t\tquery = em\n\t\t\t\t\t.createQuery(\"from StudentLoginEntity as sle where sle.studentRoll=? and sle.password=?\");\n\t\t\tquery.setParameter(2, password);\n\t\t\tquery.setParameter(1, username);\n\t\t\ttry {\n\t\t\t\tStudentLoginEntity duser = (StudentLoginEntity) query.getSingleResult();\n\t\t\t\t cuser=new User();\n\t\t\t\tcuser.setLoginid(duser.getStudentRoll());\n\t\t\t\tcuser.setRole(duser.getRole());\n\t\t\t\tcuser.setPassword(duser.getPassword());\n\t\t\t\tcuser.setActive(duser.getLocked());\n\t\t\t\treturn cuser;\n\t\t\t} catch (Exception ex) {\n\t\t\t\tSystem.out.println(\"__@___user is not valid..\"+ex.getMessage());\n\t\t\t}\n\t\t\t}\t\n\t\t\t\n\t\t\tif (logger.isWarnEnabled()) {\n\t\t\t\tlogger.warn(\"User does not exist!\");\n\t\t\t\tlogger.warn(e.getMessage());\n\t\t\t}\n\t\t\treturn null;\n\t\t}\n\t}", "title": "" }, { "docid": "5ceb4b380b9f14b4ae0e0ecf90361bd0", "score": "0.606217", "text": "User selectByPrimaryKey(Long userId);", "title": "" }, { "docid": "9f4293e5d221e1e9b5b20ec092454217", "score": "0.6058545", "text": "@Override\n public User findByProperties(User entity) {\n return this.userDAO.findByProperties(entity);\n }", "title": "" }, { "docid": "b4df6d6adfc0774883ffc518b4a23cb9", "score": "0.60571164", "text": "public User getLoggedInUser(){\n Authentication authentication = SecurityContextHolder.getContext().getAuthentication();\n if ( authentication == null || !authentication.isAuthenticated()) {\n return null;\n }\n Object principal = authentication.getPrincipal();\n UserDetails loggedInUser;\n try {\n loggedInUser = (UserDetails) principal;\n }\n catch (Exception e){\n return null;\n }\n\n return repositoryForUser.findByEmail(loggedInUser.getUsername());\n }", "title": "" }, { "docid": "e8ef0b6f7c0018f4a4bcab8dd6d4555a", "score": "0.60430056", "text": "TUser selectByPrimaryKey(Long id);", "title": "" }, { "docid": "a7b3d6bfec479dec345e2028172b097d", "score": "0.60401773", "text": "private User getData() {\n user.setUserID(Integer.parseInt(txtSearch.getText()));\n user.setIdcardno(txtSearchIdentity.getText());\n user.setDepartment(txtSearchDepartment.getText());\n user.setSurname(txtSearchSurname.getText());\n user.setMiddlename(txtSearchMiddlename.getText());\n user.setAddress(txtSearchAddress.getText());\n user.setFirstname(txtSearchFirstname.getText());\n user.setPhoneno(txtSearchPhoneNo.getText());\n user.setGender(txtSearchGender.getText());\n user.setUserCategory(txtSearchCat.getText());\n user.setDateRegistered(txtDateReg.getText());\n\n return user;\n }", "title": "" }, { "docid": "dadfd2bc4162831e3b2a0f8bdd94bd64", "score": "0.6036685", "text": "private User getUserById(long id) {\n String sql = \"select * from user where id = ?\";\n User user = simpleJdbcTemplate.queryForObject(sql, getMapper(), id);\n return user;\n }", "title": "" }, { "docid": "a6c6e3941f49db56f4dc2c21385e5ec9", "score": "0.60344577", "text": "User findUserById(String id);", "title": "" }, { "docid": "6c66be8a823f67fcc10747efce60e563", "score": "0.60334563", "text": "User selectByPrimaryKey(String username);", "title": "" }, { "docid": "5d863a4184a21c3967743509b91cd8c6", "score": "0.60246325", "text": "@Override \r\n\tpublic Object get(Object obj) throws Exception {\n\t\tObject user = null;\r\n\t\tConnection con = getConnection();\r\n\t\tuser = dao.select(con,obj); //select는 transaction처리(commit,rollback) 필요 없어. 가져오다가 에러 나면 걍 다시 조회하면 되지\r\n\t\tclose(con);\r\n\t\treturn user;\r\n\t}", "title": "" }, { "docid": "5f6f4ffdd302b0f6e7f9b7b3de6bbe9e", "score": "0.60187477", "text": "@Override\n\t\t\t\tpublic User mapRow(ResultSet rs, int rowNum) throws SQLException {\n\t\t\t\t\tUser user = new User();\n\t\t\t\t\tuser.setUser_id(rs.getInt(1));\n\t\t\t\t\tuser.setUser_fullName(rs.getString(2));\n\t\t\t\t\tuser.setUser_mail(rs.getString(3));\n\t\t\t\t\tuser.setUser_passWord(rs.getString(4));\n\t\t\t\t\tuser.setRole_id(rs.getInt(5));\n\t\t\t\t\treturn user;\n\t\t\t\t}", "title": "" }, { "docid": "5f6f4ffdd302b0f6e7f9b7b3de6bbe9e", "score": "0.60187477", "text": "@Override\n\t\t\t\tpublic User mapRow(ResultSet rs, int rowNum) throws SQLException {\n\t\t\t\t\tUser user = new User();\n\t\t\t\t\tuser.setUser_id(rs.getInt(1));\n\t\t\t\t\tuser.setUser_fullName(rs.getString(2));\n\t\t\t\t\tuser.setUser_mail(rs.getString(3));\n\t\t\t\t\tuser.setUser_passWord(rs.getString(4));\n\t\t\t\t\tuser.setRole_id(rs.getInt(5));\n\t\t\t\t\treturn user;\n\t\t\t\t}", "title": "" }, { "docid": "e0da8b447fad9ae1e74730e868490c9d", "score": "0.6018024", "text": "@Override\n\tpublic User getUserById(User user) throws Exception {\n\t\treturn userMapper.getUserById(user);\n\t}", "title": "" }, { "docid": "d2d30f066beb0b18cedde4550241f488", "score": "0.6015555", "text": "CrmSysUser selectByPrimaryKey(Integer id);", "title": "" } ]
ea9f642c5c59869628101fe33459e334
Returns a readonly view of the drugs to which this cell type is resistant.
[ { "docid": "e7924c43dfa9cd6f576fce1dcc3e3e56", "score": "0.60834783", "text": "public Set<DrugType> viewResistant() {\n return resistant;\n }", "title": "" } ]
[ { "docid": "7d0fc79dc321404898766bf7e0250745", "score": "0.5739404", "text": "public List<Drug> getDrugs() {\n return drugs;\n }", "title": "" }, { "docid": "efdfb79276e7219e3ceeb41664fdd8e9", "score": "0.56825256", "text": "private List<IndexedCellContent> indexedDraftpoolDiceList(){\n List<Die> draftedDice=getDraftPool().getDraftedDice();\n List<IndexedCellContent> indexedList=new ArrayList<>();\n IndexedCellContent indexedCell;\n Die die;\n\n for (int index=0;index<draftedDice.size();index++){\n die=draftedDice.get(index);\n indexedCell=SerializableServerUtil.toIndexedCellContent(index,Place.DRAFTPOOL,die);\n indexedList.add(indexedCell);\n }\n return indexedList;\n }", "title": "" }, { "docid": "cff5776716700409d0de60fdfc9bfa28", "score": "0.51251733", "text": "public List<String> getListOfDrugs() {\n return listOfDrugs == null ? null : ImmutableList.copyOf(listOfDrugs);\n }", "title": "" }, { "docid": "3f78b79074fc3b43a1e19617d50c07c0", "score": "0.5061937", "text": "public List<IndexedCellContent> getDiceList(){\n DieColor constraint = DieColor.NONE;\n\n if(fsm.isToolActive()){\n constraint=selectedTool.getColorConstraint();\n if(selectedTool.isInternalSchemaPlacement()){\n diceList=selectedTool.internalIndexedSchemaDiceList();\n if(!selectedTool.isSetColorFromRountrackCard() || enableToolList ){\n enableToolList=true;\n }\n }else if(enableToolList && diceList.isEmpty()){ //skip if it's not required to select a die (ALL option)\n status=fsm.endTool();\n return diceList;\n }\n }\n\n if(!enableToolList){\n switch(fsm.getPlaceFrom()) {\n case SCHEMA:\n diceList = indexedSchemaDiceList(constraint);\n break;\n case DRAFTPOOL:\n diceList = indexedDraftpoolDiceList();\n break;\n case ROUNDTRACK:\n diceList = indexedRoundTrackDiceList();\n break;\n default:\n throw new IllegalArgumentException();\n }\n }\n\n if(status.equals(ServerState.MAIN)){\n status=fsm.nextState(selectedCommand);\n }\n status=fsm.nextState(selectedCommand);\n return diceList;\n }", "title": "" }, { "docid": "36ec7a43c385094423a06dde0e6b445f", "score": "0.5023798", "text": "public List<DimensionType> unmodifiableList() {\n return Collections.unmodifiableList(dimensionTypes);\n }", "title": "" }, { "docid": "8c82297fa78fe67855833e342e46d440", "score": "0.49511245", "text": "@Override\n public List<String> getCellTypes() {\n return new ArrayList<>(Arrays.asList(\"Empty\", \"Tree\", \"Ablaze\"));\n }", "title": "" }, { "docid": "06bfd42e1fd6d78a8792c6f78d7c6915", "score": "0.49310482", "text": "@Override\n\tpublic List<Goods> viewGud() {\n\t\t\n\t\tList<Goods> gud5=(List<Goods>) guds.findAll();\n\t\treturn gud5;\n\t}", "title": "" }, { "docid": "0f0645f95322dff02d3d472ef01d7188", "score": "0.49274632", "text": "public int getNonUniqueViews() {\n return nonUniqueViews;\n }", "title": "" }, { "docid": "a75b6027fb02089149934705270898f7", "score": "0.4882183", "text": "public ImageView[] getDiceView() {\n\t\treturn this.diceView;\n\t}", "title": "" }, { "docid": "5000f965bb5a5d3026e3d8d77e943dc9", "score": "0.48631963", "text": "public Map<String, Object> getReadonlyMap() {\n return Map.copyOf(this);\n }", "title": "" }, { "docid": "36c7965af65e0f09a7a395186c43b762", "score": "0.48614097", "text": "public int getNonUniqueViews() {\n return nonUniqueViews;\n }", "title": "" }, { "docid": "5fe8856c347e8316e4609b8692332191", "score": "0.4853224", "text": "public long getDungeon() {\n\t\treturn upperRight.getDungeon();\n\t}", "title": "" }, { "docid": "7d7ac21609010696c329e3f28c650cf0", "score": "0.48522604", "text": "public BigDecimal getRwddl() {\n return rwddl;\n }", "title": "" }, { "docid": "0c53094987d2413e222db2b6dd964b3f", "score": "0.48497322", "text": "@Override\n\tpublic final long getItemMask()\n\t{\n\t\treturn getItemType().mask();\n\t}", "title": "" }, { "docid": "cf05ec0beea759be97cb65ef9ddcc8df", "score": "0.47952417", "text": "@Override\n\tpublic final int getItemMask()\n\t{\n\t\treturn getItemType().mask();\n\t}", "title": "" }, { "docid": "7857fffaa7184636b7d1a9b635079998", "score": "0.47791442", "text": "private List<IndexedCellContent> indexedRoundTrackDiceList(){\n List<List<Die>> dieTrack=getDraftPool().getRoundTrack().getTrack();\n List<IndexedCellContent> indexedList=new ArrayList<>();\n IndexedCellContent indexedCell;\n\n for(int index=0;index<dieTrack.size();index++){\n List<Die> dieList= dieTrack.get(index);\n for(Die d:dieList){\n indexedCell=SerializableServerUtil.toIndexedCellContent(index,Place.ROUNDTRACK,d);\n indexedList.add(indexedCell);\n }\n }\n return indexedList;\n }", "title": "" }, { "docid": "64e89e6daebf98bdccf9c6bb5edabdbf", "score": "0.47732973", "text": "public DBInstanceInfo [] getReadonlyInstances() {\n return this.ReadonlyInstances;\n }", "title": "" }, { "docid": "e29ebfdf085dd0df066549513ecc0d6f", "score": "0.4761291", "text": "public WeaponsInLayoutBox getRedWeapons() {\n return redWeapons;\n }", "title": "" }, { "docid": "de520dbc6efdd1c76cafe860e7d1f43c", "score": "0.47587216", "text": "public DrillThroughTypeElements getDrillThroughTypeAccess() {\n\t\treturn unknownRuleDrillThroughType;\n\t}", "title": "" }, { "docid": "40e33e458938360317298d11f14ce1cc", "score": "0.47026947", "text": "public List<TypeShape> findReadOnly() throws GenericPersistenceEAOException;", "title": "" }, { "docid": "e57f7521813e0a5fb43865b2a685fd5a", "score": "0.46997014", "text": "public Drug getDrug () {\r\n return drug;\r\n }", "title": "" }, { "docid": "313c5d90b8c81dde89925d9375f862ec", "score": "0.46708256", "text": "public Stream<ReadOnlyMemory> getReadOnlyMemories() {\n try {\n lock.readLock().lock();\n return new ArrayList<>(dataByOriginator.values()).stream().distinct();\n } finally {\n lock.readLock().unlock();\n }\n }", "title": "" }, { "docid": "c052fcae14ca7bb1a670908858d587df", "score": "0.4627741", "text": "public DirectoryEntry getDenseEntry() {\n return (left.getRegion().getPopulation() < right.getRegion().getPopulation()) ? right : left;\n }", "title": "" }, { "docid": "c4631306b284c360b4d3c37d54dcbde1", "score": "0.4624825", "text": "@Override\n public Collection<TruthCell> getHardTruths(final Map<String, Integer> notUsed1,\n final Map<String, Integer> notUsed2) {\n return new ArrayList<TruthCell>();\n }", "title": "" }, { "docid": "28424e2a45586717a4da780dad27ac10", "score": "0.46214455", "text": "Range getDoseRange();", "title": "" }, { "docid": "d58527475ddea7891589767bbf6754ed", "score": "0.4595577", "text": "public RangeSet<Slice> getPurges()\n {\n return purges;\n }", "title": "" }, { "docid": "5ebdd2f4652ab3d9cfb68bfe8359d2ee", "score": "0.4595018", "text": "public java.util.List<View> getCells()\n {\n if ( this.cells == null )\n {\n this.cells = new java.util.ArrayList<View>();\n }\n\n return this.cells;\n }", "title": "" }, { "docid": "287c6923122fae427c755f1b2d52615c", "score": "0.4586724", "text": "@Override\t\n public Island getViewIsland() {\n \treturn this.viewIsland;\n }", "title": "" }, { "docid": "529354d9dcb9e296fd9d941f68327ffd", "score": "0.45853147", "text": "public List<Diet> getPhysicalDifficulties() {\n List<Diet> physicalDifficulties = new LinkedList<>();\n for (Diet diet: dietSet) {\n if (diet.isPhysicalDifficulty()) {\n physicalDifficulties.add(diet);\n }\n }\n return physicalDifficulties;\n }", "title": "" }, { "docid": "3323b9b4f3b53bb0c447d3179ac6742b", "score": "0.4572885", "text": "@DSSafe(DSCat.SAFE_OTHERS)\n public int getMovementGranularities() {\n return mMovementGranularities;\n }", "title": "" }, { "docid": "391161b35193873f47511478e130c349", "score": "0.4570087", "text": "public java.math.BigDecimal getDiamondRating() {\n\t\treturn diamondRating;\n\t}", "title": "" }, { "docid": "e26c3d1574bd8246c8522d1afe96d713", "score": "0.45634717", "text": "public List<Unit> getOccupants() {Api.hit(\"/src/main/java/nl/tudelft/jpacman/board/Square.java\", \"getOccupants\", \"lines 72:2 - 72:41\"); return ImmutableList.copyOf(occupants);}", "title": "" }, { "docid": "7d6fe388f85fae4388e0cbad43ae2dfe", "score": "0.45525482", "text": "Wood getWoodTypes();", "title": "" }, { "docid": "a0ea989fcbe53aa30d5e742152246968", "score": "0.45500976", "text": "@Override\n\tpublic StorageIntMapView<V> view() {\n\n\t\t@Exported\n\t\tclass StorageIntMapViewImpl extends Storage implements StorageIntMapView<V> {\n\n\t\t\t@Override\n\t\t\tpublic @View int size() {\n\t\t\t\treturn StorageTreeIntMap.this.size();\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic @View boolean isEmpty() {\n\t\t\t\treturn StorageTreeIntMap.this.isEmpty();\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic Iterator<Entry<V>> iterator() {\n\t\t\t\treturn StorageTreeIntMap.this.iterator();\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic V get(int key) {\n\t\t\t\treturn StorageTreeIntMap.this.get(key);\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic V getOrDefault(int key, V _default) {\n\t\t\t\treturn StorageTreeIntMap.this.getOrDefault(key, _default);\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic V getOrDefault(int key, Supplier<? extends V> _default) {\n\t\t\t\treturn StorageTreeIntMap.this.getOrDefault(key, _default);\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic boolean containsKey(int key) {\n\t\t\t\treturn StorageTreeIntMap.this.containsKey(key);\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic int min() {\n\t\t\t\treturn StorageTreeIntMap.this.min();\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic int max() {\n\t\t\t\treturn StorageTreeIntMap.this.max();\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic int floorKey(int key) {\n\t\t\t\treturn StorageTreeIntMap.this.floorKey(key);\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic int ceilingKey(int key) {\n\t\t\t\treturn StorageTreeIntMap.this.ceilingKey(key);\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic int select(int k) {\n\t\t\t\treturn StorageTreeIntMap.this.select(k);\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic int rank(int key) {\n\t\t\t\treturn StorageTreeIntMap.this.rank(key);\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic String toString() {\n\t\t\t\treturn StorageTreeIntMap.this.toString();\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic Stream<Entry<V>> stream() {\n\t\t\t\treturn StorageTreeIntMap.this.stream();\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic List<Integer> keyList() {\n\t\t\t\treturn StorageTreeIntMap.this.keyList();\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic IntStream keys() {\n\t\t\t\treturn StorageTreeIntMap.this.keys();\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic StorageIntMapView<V> snapshot() {\n\t\t\t\treturn StorageTreeIntMap.this.snapshot();\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic Stream<V> values() {\n\t\t\t\treturn StorageTreeIntMap.this.values();\n\t\t\t}\n\t\t}\n\n\t\treturn new StorageIntMapViewImpl();\n\t}", "title": "" }, { "docid": "35f331724d35a353fcad077b7ed60aad", "score": "0.45346352", "text": "public interface Cell {\n\n /**\n * Return the CellType for this cell\n * @return the CellType\n */\n CellType getCellType();\n\n /**\n * Return true if this cell is some form of woods.\n *\n * Default implementation is that the cell is not woods.\n *\n * @return true if this is woods\n */\n default boolean isTree() {\n return false;\n }\n\n /**\n * Return true if this cell can be built on.\n *\n * Default implementation is that the cell is not buildable.\n *\n * @return true if the cell is buildable\n */\n default boolean isBuildable() {\n return false;\n }\n\n /**\n * Return true if this cell can be bulldozed.\n *\n * Default implementation is that the cell cannot be bulldozed.\n *\n * @return true if the cell can be bulldozed\n */\n default boolean isBulldozeable() {\n return false;\n }\n\n /**\n * Bulldoze the cell.\n *\n * This method provides an opportunity for any cleanup required when the\n * cell is being bulldozed. The default implementation throws an\n * UnsupportedOperationException on the assumption that the cell cannot\n * be bulldozed.\n */\n default void bulldoze() {\n throw new UnsupportedOperationException(\"Illegal bulldoze operation\");\n }\n}", "title": "" }, { "docid": "69306146c17263ad710ab52cbbc52e62", "score": "0.4529595", "text": "public java.lang.Boolean getReadonly() {\n\treturn readonly;\n}", "title": "" }, { "docid": "434f697d2522730032f126111fca1f91", "score": "0.451741", "text": "public ImmutableRectangle getInvalidatedImmutableRectangle() {\n\t\treturn fImmutableRectangle;\n\t}", "title": "" }, { "docid": "cfb21053d7f23d6adf89aea8891dadaf", "score": "0.4513758", "text": "public List getItemGradingArrayList() {\n return itemGradingArrayList;\n }", "title": "" }, { "docid": "23fb05ed062283729c872b5b2602a955", "score": "0.45099148", "text": "public RecyclerView getSubstanceListView() {\n return substanceListView;\n }", "title": "" }, { "docid": "9f89732f0edbcbe970317f0ae72e883b", "score": "0.45062754", "text": "private ZHRecyclerViewAdapter.C17400d m83054d() {\n int adapterPosition = getAdapterPosition();\n if (adapterPosition == 0) {\n return null;\n }\n return this.f61351d.getRecyclerItem(adapterPosition - 1);\n }", "title": "" }, { "docid": "664ae22560af4fe5fc05e41c0c3216ec", "score": "0.4478464", "text": "double getIneligibileAll();", "title": "" }, { "docid": "bdcf7e743030816666f4a08cfd427749", "score": "0.44777444", "text": "@Override\n public String visitDouble(CellDouble d) {\n return d.getRawContents();\n }", "title": "" }, { "docid": "04030a5d7eee82119caa3d599aee62f2", "score": "0.4474352", "text": "public Collection<MaterializedViewMetadata> getViews() {\n return Collections.unmodifiableCollection(views.values());\n }", "title": "" }, { "docid": "a41f0e6906ece385336988b2cd8d9d61", "score": "0.44670522", "text": "public int[] getRobberExcludedLandAreas()\n {\n return robberExcludedLandAreas;\n }", "title": "" }, { "docid": "6958892beb7f126ab65820da0a47d4bb", "score": "0.4453001", "text": "public double getDeductible(){\n return this.deductible;\n }", "title": "" }, { "docid": "ea19477206e8292212a46cfc3f939f95", "score": "0.44380423", "text": "public short getDr() {\n\t\treturn 0;\n\t}", "title": "" }, { "docid": "a8193abbb61861cd14a2eb991be0c096", "score": "0.4431911", "text": "public Vector<Dog> getCollection(){\n for (Row dog: fd){\n //create a dog object from a row item in the filtered dataset\n Dog current = new Dog(dog.getName(),dog.getSex(), \n dog.getAge(),dog.getBreed(),dog.getBorough(),dog.getSize(),\n dog.getArea(),dog.getPhone());\n //add the object to the vector\n this.dogCollection.add(current);\n }\n return dogCollection;\n }", "title": "" }, { "docid": "90ba33316fb0af4f41ff87f8e8a442d3", "score": "0.44286826", "text": "@XmlTransient\r\n public Cell[][] getMap() {\r\n return map;\r\n }", "title": "" }, { "docid": "b0ed81a42d4f44a08ff39e1a656f37ee", "score": "0.44268438", "text": "public interface TypePool {\n /**\n * 返回cell数量\n *\n * @return items' count\n */\n int getCount();\n\n /**\n * 用于type返回时候使用,考虑到recyclerView本身的缓存优化,特此命名\n *\n * @return\n */\n int getViewType(int position);\n\n /**\n * 用于type返回时候使用,考虑到recyclerView本身的缓存优化,特此命名\n *\n * @return\n */\n int getViewType(@NonNull Class<?> clazz);\n\n int firstIndexOf(IBizCell cell);\n\n /**\n * 添加cell\n *\n * @param cell\n */\n int addCell(IBizCell cell);\n\n void addCell(int index, IBizCell cell);\n\n int addCells(List<IBizCell> cells);\n\n List<IBizCell> getAllCells();\n\n /**\n * 追加到列表的末尾,这里只用于footer,多次调用的话只最后一次生效\n *\n * @param cell\n */\n void addLastCell(IBizCell cell);\n\n /**\n * 同上,位置为第0个\n *\n * @param cell\n */\n void addFirstCell(IBizCell cell);\n\n /**\n * 移除指定index的cell\n *\n * @param index 索引\n */\n IBizCell removeCell(int index);\n\n /**\n * 移除列表中的第一个改cell类型的cell,such as remove(a) [a,b,a,c]->[b,a,c]\n *\n * @param cell\n */\n void removeCell(IBizCell cell);\n\n void clear();\n\n /**\n * 拿到指定的类,目前没什么大用,便于以后扩展使用\n *\n * @param index\n * @return\n */\n @NonNull\n Class<?> getClass(int index);\n\n /**\n * 获取指定的cell\n *\n * @param index\n * @return\n */\n @NonNull\n IBizCell getCell(int index);\n\n /**\n * 通过ViewType拿到指定的Cell\n *\n * @param viewType\n * @return\n */\n @Nullable\n IBizCell getCellForType(int viewType);\n}", "title": "" }, { "docid": "6cf381f38bc7479eb3fb37498d474ac4", "score": "0.4423159", "text": "public LinkedList<Dragon> getDragons(){\n\t\treturn dragons;\n\t}", "title": "" }, { "docid": "01031c7440816bab9bd88fc3b7b72695", "score": "0.44167128", "text": "public com.hyj.netty.demo6.MyDataInfo.Dog getD() {\n if (dataCase_ == 3) {\n return (com.hyj.netty.demo6.MyDataInfo.Dog) data_;\n }\n return com.hyj.netty.demo6.MyDataInfo.Dog.getDefaultInstance();\n }", "title": "" }, { "docid": "558ea78a1629b8ac858b19611a78fc98", "score": "0.44162744", "text": "public Cell[] getCellList() {\r\n return cellList;\r\n }", "title": "" }, { "docid": "512467283d815a5f6cffbbb4122ab1e5", "score": "0.44107038", "text": "public List getPositionDisabledCells(){\n return positionDisabledCells;\n }", "title": "" }, { "docid": "80e4259c35dc31ded6a7da8d4985d31c", "score": "0.44106206", "text": "public List<Cell> getCells() {\n return cells;\n }", "title": "" }, { "docid": "3a1e4faf138c369c87dc8a38d88604f9", "score": "0.44071543", "text": "private List<IndexedCellContent> indexedSchemaDiceList(DieColor constraint){\n List<IndexedCellContent> indexedList=new ArrayList<>();\n IndexedCellContent indexedCell;\n SchemaCard schema= getPlayerById(fsm.getUserPlayingId()).getSchema();\n Die die;\n\n FullCellIterator diceIterator=(FullCellIterator)schema.iterator();\n\n while(diceIterator.hasNext()) {\n die = diceIterator.next().getDie();\n if(!constraint.equals(DieColor.NONE)){\n if(die.getColor().equals(constraint)){\n indexedCell = SerializableServerUtil.toIndexedCellContent(diceIterator.getIndex(),Place.SCHEMA, die);\n indexedList.add(indexedCell);\n }\n }else{\n indexedCell = SerializableServerUtil.toIndexedCellContent(diceIterator.getIndex(),Place.SCHEMA, die);\n indexedList.add(indexedCell);\n }\n }\n return indexedList;\n }", "title": "" }, { "docid": "5409af1f5a297a286d95125974814860", "score": "0.44063494", "text": "protected ArrayList<Square> getLegalDogMoves() {\n Square currentPosition = getSquare();\n Player owner = getOwner();\n\n // initialCapacity: 8, because Dog has ability to move in 6 directions.\n ArrayList<Square> legalMoves = new ArrayList<>(6);\n\n // Move forwards\n addMoveIfPossible(currentPosition, owner.getDirection(), 0, legalMoves);\n // TODO Check line+2 works fine\n // Move backwards; NOTE: A negate operator '-' is placed before owner.getDirection()\n addMoveIfPossible(currentPosition, -owner.getDirection(), 0, legalMoves);\n // Move right\n addMoveIfPossible(currentPosition, 0, 1, legalMoves);\n // Move left\n addMoveIfPossible(currentPosition, 0, -1, legalMoves);\n // Move diagonal right into players direction\n addMoveIfPossible(currentPosition, owner.getDirection(), 1, legalMoves);\n // Move diagonal left into players direction\n addMoveIfPossible(currentPosition, owner.getDirection(), -1, legalMoves);\n\n return legalMoves;\n }", "title": "" }, { "docid": "1569f54a1592f30293344bbf61be4f3a", "score": "0.4402063", "text": "private static GutsRecord createGuts() {\n GutsRecord retval = new GutsRecord();\n\n retval.setLeftRowGutter(( short ) 0);\n retval.setTopColGutter(( short ) 0);\n retval.setRowLevelMax(( short ) 0);\n retval.setColLevelMax(( short ) 0);\n return retval;\n }", "title": "" }, { "docid": "054fe8b971b440ae5f8757f8899c1028", "score": "0.44002676", "text": "public List<Coord> getNonEmptyCells();", "title": "" }, { "docid": "3c069899e46bf472b327a527e34fb7d4", "score": "0.43965253", "text": "public VDF getVDF()\n {\n VDF vdf = getViewDefinition();\n // predicate view item\n vdf.getEntries()[0].getDataValue().setObject(\n OutPrintNqfCreditsIefSuppliedFlag);\n // predicate view item\n vdf.getEntries()[1].getDataValue().setObject(\n OutPrintNqfLevelIefSuppliedFlag);\n // predicate view item\n vdf.getEntries()[2].getDataValue().setObject(OutProddevCsfStringsString4);\n // predicate view item\n vdf.getEntries()[3].getDataValue().setObject(\n OutMatrExemptionIefSuppliedFlag);\n // predicate view item\n vdf.getEntries()[4].getDataValue().setObject(new Double(\n OutMatrExemptionIefSuppliedTotalCurrency));\n // predicate view item\n vdf.getEntries()[5].getDataValue().setObject(OutSmartcardIefSuppliedFlag);\n // predicate view item\n vdf.getEntries()[6].getDataValue().setObject(new Double(\n OutSmartcardIefSuppliedTotalCurrency));\n // predicate view item\n vdf.getEntries()[7].getDataValue().setObject(OutFaxNoCsfStringsString132);\n // predicate view item\n vdf.getEntries()[8].getDataValue().setObject(OutFaxNameCsfStringsString132)\n ;\n // predicate view item\n vdf.getEntries()[9].getDataValue().setObject(new Double(\n OutWsPrescribedBooksAmount));\n // group view current cardinality\n vdf.getEntries()[10].getDataValue().setObject(new Integer(\n OutStudyUnitGroup_MA));\n // group view active flags\n for(int adim0 = 0; adim0 < 50; adim0++)\n {\n if ( adim0 < OutStudyUnitGroup_MA )\n {\n ((VDFEntryObject [])vdf.getEntries()[11].getDataValue().getObject())[\n adim0].setObject(new Character('Y'));\n }\n else \n {\n ((VDFEntryObject [])vdf.getEntries()[11].getDataValue().getObject())[\n adim0].setObject(new Character('N'));\n }\n }\n vdf.getEntries()[11].setCountUsed((short)OutStudyUnitGroup_MA);\n // current cardinality group view items\n for(int adim0 = 0; adim0 < 50; adim0++)\n {\n ((VDFEntryObject [])vdf.getEntries()[12].getDataValue().getObject())[\n adim0].setObject(OutGInternetWsStudyUnitCode[adim0]);\n }\n vdf.getEntries()[12].setCountUsed((short)OutStudyUnitGroup_MA);\n // current cardinality group view items\n for(int adim0 = 0; adim0 < 50; adim0++)\n {\n ((VDFEntryObject [])vdf.getEntries()[13].getDataValue().getObject())[\n adim0].setObject(OutGInternetWsStudyUnitEngShortDescription[adim0]);\n }\n vdf.getEntries()[13].setCountUsed((short)OutStudyUnitGroup_MA);\n // current cardinality group view items\n for(int adim0 = 0; adim0 < 50; adim0++)\n {\n ((VDFEntryObject [])vdf.getEntries()[14].getDataValue().getObject())[\n adim0].setObject(new Short(OutGInternetWsStudyUnitNqfCategory[adim0]));\n }\n vdf.getEntries()[14].setCountUsed((short)OutStudyUnitGroup_MA);\n // current cardinality group view items\n for(int adim0 = 0; adim0 < 50; adim0++)\n {\n ((VDFEntryObject [])vdf.getEntries()[15].getDataValue().getObject())[\n adim0].setObject(new Short(OutGInternetWsStudyUnitNqfCredits[adim0]));\n }\n vdf.getEntries()[15].setCountUsed((short)OutStudyUnitGroup_MA);\n // current cardinality group view items\n for(int adim0 = 0; adim0 < 50; adim0++)\n {\n ((VDFEntryObject [])vdf.getEntries()[16].getDataValue().getObject())[\n adim0].setObject(new Short(OutGInternetWsStudyUnitPqmNqfLevel[adim0]));\n }\n vdf.getEntries()[16].setCountUsed((short)OutStudyUnitGroup_MA);\n // current cardinality group view items\n for(int adim0 = 0; adim0 < 50; adim0++)\n {\n ((VDFEntryObject [])vdf.getEntries()[17].getDataValue().getObject())[\n adim0].setObject(new Double(OutGStudyUnitCostIefSuppliedTotalCurrency[\n adim0]));\n }\n vdf.getEntries()[17].setCountUsed((short)OutStudyUnitGroup_MA);\n // predicate view item\n vdf.getEntries()[18].getDataValue().setObject(new Double(\n OutTotalIefSuppliedTotalCurrency));\n // predicate view item\n vdf.getEntries()[19].getDataValue().setObject(new Double(\n OutRegPaymentIefSuppliedTotalCurrency));\n // predicate view item\n vdf.getEntries()[20].getDataValue().setObject(new Double(\n OutForeignLevyIefSuppliedTotalCurrency));\n // predicate view item\n vdf.getEntries()[21].getDataValue().setObject(new Double(\n OutSrcLevyIefSuppliedTotalCurrency));\n // predicate view item\n vdf.getEntries()[22].getDataValue().setObject(\n OutFromEmailAddressCsfStringsString132);\n // predicate view item\n vdf.getEntries()[23].getDataValue().setObject(\n OutToEmailAddressCsfStringsString132);\n // predicate view item\n vdf.getEntries()[24].getDataValue().setObject(new Integer(OutWsUserNumber))\n ;\n // predicate view item\n vdf.getEntries()[25].getDataValue().setObject(OutWsUserName);\n // predicate view item\n vdf.getEntries()[26].getDataValue().setObject(OutWsUserPersonnelNo);\n // predicate view item\n vdf.getEntries()[27].getDataValue().setObject(OutWsUserPhoneNumber);\n // predicate view item\n vdf.getEntries()[28].getDataValue().setObject(OutWsPrinterCode);\n // predicate view item\n vdf.getEntries()[29].getDataValue().setObject(OutWsWorkstationCode);\n // predicate view item\n vdf.getEntries()[30].getDataValue().setObject(new Integer(\n OutWsWorkstationUserNumber));\n // predicate view item\n vdf.getEntries()[31].getDataValue().setObject(new Integer(\n OutSrrqn01gQuoteStudyFeesDate));\n // predicate view item\n vdf.getEntries()[32].getDataValue().setObject(new Integer(\n OutStudentAcademicRecordMkStudentNr));\n // predicate view item\n vdf.getEntries()[33].getDataValue().setObject(\n OutStudentAcademicRecordMkQualificationCode);\n // predicate view item\n vdf.getEntries()[34].getDataValue().setObject(new Double(\n OutMatricExemFeeIefSuppliedAverageCurrency));\n // predicate view item\n vdf.getEntries()[35].getDataValue().setObject(OutLateRegIefSuppliedFlag);\n // predicate view item\n vdf.getEntries()[36].getDataValue().setObject(OutLclWsAddressAddressLine1);\n // predicate view item\n vdf.getEntries()[37].getDataValue().setObject(OutLclWsAddressAddressLine2);\n // predicate view item\n vdf.getEntries()[38].getDataValue().setObject(OutLclWsAddressAddressLine3);\n // predicate view item\n vdf.getEntries()[39].getDataValue().setObject(OutLclWsAddressAddressLine4);\n // predicate view item\n vdf.getEntries()[40].getDataValue().setObject(OutLclWsAddressAddressLine5);\n // predicate view item\n vdf.getEntries()[41].getDataValue().setObject(OutLclWsAddressAddressLine6);\n // predicate view item\n vdf.getEntries()[42].getDataValue().setObject(new Short(\n OutLclWsAddressPostalCode));\n // predicate view item\n vdf.getEntries()[43].getDataValue().setObject(new Integer(\n OutLclWsAddressReferenceNo));\n // predicate view item\n vdf.getEntries()[44].getDataValue().setObject(new Short(OutLclWsAddressType)\n );\n // predicate view item\n vdf.getEntries()[45].getDataValue().setObject(new Short(\n OutLclWsAddressCategory));\n // predicate view item\n vdf.getEntries()[46].getDataValue().setObject(OutLclWsAddressEmailAddress);\n // predicate view item\n vdf.getEntries()[47].getDataValue().setObject(new Integer(OutLclWsStudentNr)\n );\n // predicate view item\n vdf.getEntries()[48].getDataValue().setObject(\n OutLclWsStudentMkCorrespondenceLanguage);\n // predicate view item\n vdf.getEntries()[49].getDataValue().setObject(OutLclWsStudentMkTitle);\n // predicate view item\n vdf.getEntries()[50].getDataValue().setObject(OutLclWsStudentSurname);\n // predicate view item\n vdf.getEntries()[51].getDataValue().setObject(OutLclWsStudentFirstNames);\n // predicate view item\n vdf.getEntries()[52].getDataValue().setObject(OutLclWsStudentInitials);\n // predicate view item\n vdf.getEntries()[53].getDataValue().setObject(OutLclWsStudentMkCountryCode)\n ;\n // predicate view item\n vdf.getEntries()[54].getDataValue().setObject(OutCsfStringsString500);\n // predicate view item\n vdf.getEntries()[55].getDataValue().setObject(OutCsfStringsString12);\n // predicate view item\n vdf.getEntries()[56].getDataValue().setObject(OutCsfStringsString7);\n // predicate view item\n vdf.getEntries()[57].getDataValue().setObject(OutCsfStringsString3);\n // predicate view item\n vdf.getEntries()[58].getDataValue().setObject(new Short(\n OutCsfClientServerCommunicationsReturnCode));\n // predicate view item\n vdf.getEntries()[59].getDataValue().setObject(new Short(\n OutCsfClientServerCommunicationsServerVersionNumber));\n // predicate view item\n vdf.getEntries()[60].getDataValue().setObject(new Short(\n OutCsfClientServerCommunicationsServerRevisionNumber));\n // predicate view item\n vdf.getEntries()[61].getDataValue().setObject(\n OutCsfClientServerCommunicationsServerDevelopmentPhase);\n // predicate view item\n vdf.getEntries()[62].getDataValue().setObject(\n OutCsfClientServerCommunicationsAction);\n // predicate view item\n vdf.getEntries()[63].getDataValue().setObject(new Integer(\n OutCsfClientServerCommunicationsServerDate));\n // predicate view item\n vdf.getEntries()[64].getDataValue().setObject(new Integer(\n OutCsfClientServerCommunicationsServerTime));\n // predicate view item\n vdf.getEntries()[65].getDataValue().setObject(\n OutCsfClientServerCommunicationsServerTimestamp);\n // predicate view item\n vdf.getEntries()[66].getDataValue().setObject(\n OutCsfClientServerCommunicationsServerTransactionCode);\n // predicate view item\n vdf.getEntries()[67].getDataValue().setObject(\n OutCsfClientServerCommunicationsServerUserId);\n // predicate view item\n vdf.getEntries()[68].getDataValue().setObject(\n OutCsfClientServerCommunicationsServerRollbackFlag);\n // predicate view item\n vdf.getEntries()[69].getDataValue().setObject(\n OutCsfClientServerCommunicationsClientIsGuiFlag);\n // predicate view item\n vdf.getEntries()[70].getDataValue().setObject(\n OutCsfClientServerCommunicationsActionsPendingFlag);\n // predicate view item\n vdf.getEntries()[71].getDataValue().setObject(new Short(\n OutCsfClientServerCommunicationsClientVersionNumber));\n // predicate view item\n vdf.getEntries()[72].getDataValue().setObject(new Short(\n OutCsfClientServerCommunicationsClientRevisionNumber));\n // predicate view item\n vdf.getEntries()[73].getDataValue().setObject(\n OutCsfClientServerCommunicationsClientDevelopmentPhase);\n // predicate view item\n vdf.getEntries()[74].getDataValue().setObject(\n OutCsfClientServerCommunicationsListLinkFlag);\n // predicate view item\n vdf.getEntries()[75].getDataValue().setObject(\n OutCsfClientServerCommunicationsCancelFlag);\n // predicate view item\n vdf.getEntries()[76].getDataValue().setObject(\n OutCsfClientServerCommunicationsMaintLinkFlag);\n // predicate view item\n vdf.getEntries()[77].getDataValue().setObject(\n OutCsfClientServerCommunicationsForceDatabaseRead);\n // group view current cardinality\n vdf.getEntries()[78].getDataValue().setObject(new Integer(OutGroup_MA));\n // group view active flags\n for(int adim0 = 0; adim0 < 50; adim0++)\n {\n if ( adim0 < OutGroup_MA )\n {\n ((VDFEntryObject [])vdf.getEntries()[79].getDataValue().getObject())[\n adim0].setObject(new Character('Y'));\n }\n else \n {\n ((VDFEntryObject [])vdf.getEntries()[79].getDataValue().getObject())[\n adim0].setObject(new Character('N'));\n }\n }\n vdf.getEntries()[79].setCountUsed((short)OutGroup_MA);\n // current cardinality group view items\n for(int adim0 = 0; adim0 < 50; adim0++)\n {\n ((VDFEntryObject [])vdf.getEntries()[80].getDataValue().getObject())[\n adim0].setObject(new Short(OutGCsfLineActionBarLineReturnCode[adim0]));\n }\n vdf.getEntries()[80].setCountUsed((short)OutGroup_MA);\n // current cardinality group view items\n for(int adim0 = 0; adim0 < 50; adim0++)\n {\n ((VDFEntryObject [])vdf.getEntries()[81].getDataValue().getObject())[\n adim0].setObject(OutGStudentStudyUnitMkStudyUnitCode[adim0]);\n }\n vdf.getEntries()[81].setCountUsed((short)OutGroup_MA);\n // predicate view item\n vdf.getEntries()[82].getDataValue().setObject(new Integer(\n OutStudentAnnualRecordMkStudentNr));\n // predicate view item\n vdf.getEntries()[83].getDataValue().setObject(new Short(\n OutStudentAnnualRecordMkAcademicYear));\n // predicate view item\n vdf.getEntries()[84].getDataValue().setObject(new Short(\n OutStudentAnnualRecordMkAcademicPeriod));\n // predicate view item\n vdf.getEntries()[85].getDataValue().setObject(OutWsCountryCode);\n // predicate view item\n vdf.getEntries()[86].getDataValue().setObject(OutWsCountryEngDescription);\n return(vdf);\n }", "title": "" }, { "docid": "96d881813c0e38d566ec3009c8bdca6f", "score": "0.4394393", "text": "public com.google.protobuf.ByteString getRoomMask() {\n return instance.getRoomMask();\n }", "title": "" }, { "docid": "8e546c80229c304e365c6279476d20fa", "score": "0.43928567", "text": "public double[][] getD() {\n\t\treturn this.D;\n\t}", "title": "" }, { "docid": "3c0953178a11f5d5be91eb5ab2b5ad53", "score": "0.43906447", "text": "Map<Integer, Drink> getDrinkMap() {\n return drinkMap;\n }", "title": "" }, { "docid": "07a090e8bffd8852b7e3eb705bd164b4", "score": "0.43899944", "text": "TunnelCellType getCellType();", "title": "" }, { "docid": "8f62ce83e1a2aeb42953e6ac7db23ed9", "score": "0.43827426", "text": "public Map<Integer, gameplayer.model.tower.Tower> getTowerOnGrid() { // fix\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// naming\n\t\treturn this.towerManager.getTowerOnGrid();\n\t}", "title": "" }, { "docid": "8030ab596445226aeb2059a892426e97", "score": "0.43691292", "text": "public Drop getDrop() {\n \treturn d;\n }", "title": "" }, { "docid": "49623f72ddbadaea8350a15d22ad40f6", "score": "0.43677428", "text": "@Override\n public String toString() {\n\n String a = \"#\" + String.valueOf(guestIndex);\n if (hasDietaryRestriction()) { // condition that checks\n a += \"(\" + dietaryRestriction + \")\"; // adds the dietaryRestriction the string\n }\n return a;\n }", "title": "" }, { "docid": "2360b7dbbdb9b1e16897f481252c6f3e", "score": "0.43641755", "text": "Collection<? extends Object> getGradedBy();", "title": "" }, { "docid": "0b3037872491345f6aa7765d7a71ac59", "score": "0.43622774", "text": "public Range getVisibleRowRange() {\n if (!body.visualRowOrder.isEmpty()) {\n return Range.withLength(body.getTopRowLogicalIndex(),\n body.visualRowOrder.size());\n } else {\n return Range.withLength(0, 0);\n }\n }", "title": "" }, { "docid": "f23d1605ccabd7ed7eae8192184e3dec", "score": "0.43603683", "text": "public DiceRefElements getDiceRefAccess() {\n\t\treturn pDiceRef;\n\t}", "title": "" }, { "docid": "89db9244e9c4cdb5fc2fdcf7d7f2d905", "score": "0.43581027", "text": "public Cell[][] get2dArrayMapGridCopy() {\n Cell[][] mapCopy = new Cell[size][size];\n\n copy2dArray(mapCopy, cellGrid);\n\n return mapCopy;\n }", "title": "" }, { "docid": "e397866e974dacc84addf5dde8b92b16", "score": "0.4352509", "text": "public List getEditable() {\r\n return EntrySetToKeyListTransformer.transform(CollectionUtils.select(map.entrySet(), editablePredicate));\r\n }", "title": "" }, { "docid": "3d585207b75e30d7a594e97621d11ccb", "score": "0.4347635", "text": "public int getDurability() {\n\t\treturn durability;\n\t}", "title": "" }, { "docid": "4fb9b52a371070146112cf1d5a679da0", "score": "0.4343926", "text": "public Map<File,TableView<MainView.TableViewRow>> getReadOnlyFile(){\n return readOnlyFile;\n }", "title": "" }, { "docid": "eeddba9e534498408559953dc39082b7", "score": "0.43438968", "text": "@Override\n\tpublic Visualizable getRightNeightbor() {\n\t\treturn this.right;\n\t}", "title": "" }, { "docid": "bc79d1a68e30a9904fcf244e4e1395ff", "score": "0.43396127", "text": "public Vector getElementArray()\r\n\t{\treturn Dashs;\t\t}", "title": "" }, { "docid": "c3332ef4b526acc5a5597e3664b8aaab", "score": "0.43360907", "text": "public NavigableSet<V> d() {\n return (NavigableSet) ((SortedSet) this.b);\n }", "title": "" }, { "docid": "6fecb3fe48c42002e984280871005619", "score": "0.4335345", "text": "CellType getCellType();", "title": "" }, { "docid": "6e3286d3544d3d50b419098b3689301a", "score": "0.43290457", "text": "public Drawable getDoodle() {\n return doodle;\n }", "title": "" }, { "docid": "098fd7b9396c7f52d23bc0124c774bc2", "score": "0.43271548", "text": "public java.util.List<java.lang.Integer>\n getPieceCellList() {\n return java.util.Collections.unmodifiableList(pieceCell_);\n }", "title": "" }, { "docid": "0cad02ec69c8045774bcbaede1200532", "score": "0.4321905", "text": "Map<LootWrapper, Double> getRarity();", "title": "" }, { "docid": "87fc639fdaf98cc3d996f8428867f012", "score": "0.43183923", "text": "public RasterAccessor getDataRasterAccessor() {\n return dataRasterAccessor;\n }", "title": "" }, { "docid": "1e7edc833c786726733f1b86699e9d02", "score": "0.43125665", "text": "public boolean hasNonUniqueViews() {\n return fieldSetFlags()[3];\n }", "title": "" }, { "docid": "360e79a733ffe789fa301baabe318efb", "score": "0.43117356", "text": "@Override\n\tpublic List<Dish> showBadRank() {\n\t\treturn dm.showBadRank();\n\t}", "title": "" }, { "docid": "39c0c31b579369ad1df480c8b7e39dfe", "score": "0.43092874", "text": "public List<QwirklePiece> getDrawn() { return drawn; }", "title": "" }, { "docid": "0dfd898384cdc8bc071d6735a14ebab9", "score": "0.4305468", "text": "public int getImmutable() {\n return immutable;\n }", "title": "" }, { "docid": "8db05499d1ed39fce2008d44009250bb", "score": "0.43003753", "text": "public List<Integer> getDistretti() {\n\t\treturn distretti;\n\t}", "title": "" }, { "docid": "b3a57293561cb56e501fe79584715808", "score": "0.42995438", "text": "private static void generateDungeon() {\n int roomCountX = width / MAX_ROOM_WIDTH;\n int roomCountY = height / MAX_ROOM_HEIGHT;\n int roomCount = GlobalRandom.get().nextInt(MAX_ROOMS - MIN_ROOMS + 1) + MIN_ROOMS;\n RoomType[] rooms = generateRoomTypes(roomCount, roomCountX, roomCountY);\n generateRooms(rooms, roomCountX, roomCountY);\n }", "title": "" }, { "docid": "65d8d6ed2039596597c4c3bd305a7099", "score": "0.42950088", "text": "public AggregateRating getAggregateRating() throws ClassCastException;", "title": "" }, { "docid": "c22648c2f7d7833597f7f6d473fdfdfa", "score": "0.4294214", "text": "public ArrayList<Integer> getCells(){\r\n return cells;\r\n }", "title": "" }, { "docid": "d15f751b63c0db6bf8f57218cf8ed67c", "score": "0.4292146", "text": "public Cell[][] getCellMap() {\n Cell[][] cells = new Cell[this.width][this.height];\n for (int i = 0; i < this.map.length; i++) {\n cells[i % width][i / width] = Cell.valueOf(this.map[i]);\n }\n return cells;\n }", "title": "" }, { "docid": "0e716133e2dde34a887fc5800fc3dbfd", "score": "0.42906955", "text": "public Integer getsDrps() {\r\n return sDrps;\r\n }", "title": "" }, { "docid": "c20db4d2d47a5832ee045f57002cbf23", "score": "0.42905045", "text": "public DungeonPixelCoordinate toDungeon() {\n DungeonPixelCoordinate coord = new DungeonPixelCoordinate(getX() - getScreenX(), getY()\n - getScreenY());\n return coord;\n }", "title": "" }, { "docid": "7d55b5ca8c4426f0e83d58b340d7aa43", "score": "0.42891902", "text": "String getWoodTypes();", "title": "" }, { "docid": "fccacccf0462d96761843ec86cbffe96", "score": "0.42793047", "text": "public int getNumDoubleWars(){\n return m_numDoubleWars;\n }", "title": "" }, { "docid": "96c8e6a73921232410bbd0ce197e3453", "score": "0.42781723", "text": "public int getDroolRate() {\n return droolRate;\n }", "title": "" }, { "docid": "c525b0e3605894c19721fdb9f3169516", "score": "0.42765138", "text": "@Override\r\n\tpublic Collection<GbgUnit> getEliminatedUnionUnits() {\r\n\t\treturn this.elU;\r\n\t}", "title": "" }, { "docid": "8e1421e857263143a55797e15b34d5dc", "score": "0.4275228", "text": "public UidRange[] getRange() {\n return ranges;\n }", "title": "" }, { "docid": "d19799acbe9717590ab552e5bd2efd4f", "score": "0.427372", "text": "public java.util.List<io.cucumber.messages.Messages.PickleTableCell> getCellsList() {\n return cells_;\n }", "title": "" }, { "docid": "ed0df907b6574100f45c23415b502af6", "score": "0.42695883", "text": "public String getRatings() {\n return Ratings.get();\n }", "title": "" }, { "docid": "9f2a8d41faddf36af2b939cc39de8848", "score": "0.42695248", "text": "public int getSolidTile(){\n return solidTile;\n }", "title": "" } ]
f15846f6adf149954dbd73eb153e8d27
Created by hibernate on 2017/3/21.
[ { "docid": "06fbcc4624b041f6d7211afeab80aa9e", "score": "0.0", "text": "public interface IUserDao extends IBaseDao<User> {\n}", "title": "" } ]
[ { "docid": "39132efb6b42f8ec625d96ff6226d80b", "score": "0.590903", "text": "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "title": "" }, { "docid": "838a915c9ea69d56cc37df198cff9cb2", "score": "0.58499557", "text": "@Override\n\t\t\t\tpublic void pintar() {\n\t\t\t\t\t\n\t\t\t\t}", "title": "" }, { "docid": "ce91051d32625345f2bf3562abbb93de", "score": "0.57801366", "text": "@Override\n\tprotected void inicializar() {\n\t}", "title": "" }, { "docid": "db6adf52deb87c2723f80c6df873c47d", "score": "0.56574756", "text": "public void mo4741aD() {\n }", "title": "" }, { "docid": "440ce72c689aef1dd3c429cf5498732b", "score": "0.5638367", "text": "@Override\n\tpublic void pohyb() {\n\n\t}", "title": "" }, { "docid": "8b34f179d2699bd08959b30e155352ca", "score": "0.56179947", "text": "private HibernateSessionFactory() {\n \tinitSessionFactories();\n }", "title": "" }, { "docid": "4bc8e88e84699c223ea476caacb4d454", "score": "0.5563466", "text": "@Override\r\n\tpublic void sauter() {\n\t\t\r\n\t}", "title": "" }, { "docid": "1377a15468033f3ed5269307434a9aed", "score": "0.55590206", "text": "@Override\n\t\t\tpublic void daoShui() {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "ffe5fe3cec40acf4b0b07ea257dfa06a", "score": "0.55417633", "text": "private void apparence()\r\n\t\t{\r\n\r\n\t\t}", "title": "" }, { "docid": "30b314c13e438c81318e0b02ed10e144", "score": "0.5535637", "text": "@Override\r\n public Query createQuery() {\n\r\n return super.createQuery();\r\n }", "title": "" }, { "docid": "ff9130d3531037a891a2580fd00e89e9", "score": "0.55113614", "text": "@Override\r\n\tpublic void refuel() {\n\r\n\t}", "title": "" }, { "docid": "0ae1ef48d30a93a435fb22a9e76829c0", "score": "0.5510831", "text": "public interface SqlMapGenerator extends JavaModelGenerator {\n\n}", "title": "" }, { "docid": "bd282e4f3c89e865194ec9d82d0a19cc", "score": "0.5493579", "text": "protected ClerezzaBaseEntity() {}", "title": "" }, { "docid": "4faa810505ebcb260aff0793654a731e", "score": "0.54903984", "text": "@Override\n\tpublic void refuel() {\n\t\t\n\t}", "title": "" }, { "docid": "9d2f44c3ebe1fb8de1ac4ae677e2d851", "score": "0.5483946", "text": "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "title": "" }, { "docid": "0dfca7c879d98b4ff637175d6429145a", "score": "0.5462148", "text": "private void markHibernateClass(LocalSessionFactoryBuilder sessionBuilder){\n \t\n\n }", "title": "" }, { "docid": "84865dfdd2af2df05714ebc02ae0cca7", "score": "0.54522824", "text": "public void hibernate() { getPlatform().hibernate(getId()); }", "title": "" }, { "docid": "ce6d6e0615f6657b000b73813e16109f", "score": "0.5442766", "text": "@Override\r\n\t\t\tpublic void save() {\n\t\t\t\t\r\n\t\t\t}", "title": "" }, { "docid": "f75f0c3a218d39657e7b8719905f084d", "score": "0.5428483", "text": "private HibernateSessionFactory() {\n\t }", "title": "" }, { "docid": "17f3035dca7c5c873ca7eaaafb39f182", "score": "0.54254335", "text": "private ConexaoJPA() {}", "title": "" }, { "docid": "e6a6b7d1e84cc01a20ccfc4c80245688", "score": "0.53848594", "text": "private static Properties getHibernateProperties() {\n\n\t\tProperties hibernateProperties = new Properties();\n\t\thibernateProperties.put(\"hibernate.dialect\", \"org.hibernate.dialect.MySQL5Dialect\");\n\t\thibernateProperties.put(\"hibernate.show_sql\", true);\n\t\thibernateProperties.put(\"hibernate.hbm2ddl.auto\", \"update\");\n\t\treturn hibernateProperties;\n\t}", "title": "" }, { "docid": "ae86ebabc81bd308e57cd8973dea5d68", "score": "0.5384688", "text": "@Override\n public void onTableCreated(DbManager db, TableEntity<?> table) {\n }", "title": "" }, { "docid": "80d10ea62cee927f9ad0a7965909eaba", "score": "0.5379454", "text": "@Override\n\tprotected void remplit() {\n\t\t\n\t}", "title": "" }, { "docid": "18732418a5fdd8d1b8feb7fe77f2a122", "score": "0.53748095", "text": "private HibernateUtil() {\r\n\t\tSystem.out.println(\"Hibernate Util\");\r\n\t}", "title": "" }, { "docid": "b1cf16017c8057c0255a9ad368ecaee5", "score": "0.5365132", "text": "@Override\r\n\tprotected void init() {\n\r\n\t}", "title": "" }, { "docid": "081ae6b4d91b610b8046f5ebfe7ba326", "score": "0.5347576", "text": "@Override\r\n\tpublic void fertilizar() {\n\t\t\r\n\t}", "title": "" }, { "docid": "95ffa256b098e9b494cb96d4874e063f", "score": "0.53222036", "text": "@Override\n\tvoid refuel() {\n\n\t}", "title": "" }, { "docid": "b37aeb4bf67b9d6fbb8d67820af9bed2", "score": "0.5321512", "text": "@Test\n void test() {\n UserDO userDO = new UserDO();\n userDO.setId(1233L);\n userDO.setPassword(\"123\");\n userDO.setUsername(\"1233\");\n SqlSession session = SqlSessionManager.getSession();\n session.getMapper(UserDao.class).add(userDO);\n session.commit();\n System.out.println();\n }", "title": "" }, { "docid": "c2f383f280f298416bf45e72c374ecfa", "score": "0.53123903", "text": "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "title": "" }, { "docid": "49f220767f8b4e4ebe166edd3a060b9c", "score": "0.5308634", "text": "@Override\r\n\tpublic Serializable disassemble(Object arg0) throws HibernateException {\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "aa0497cf5116ee26d43244f8817f12db", "score": "0.5305518", "text": "public void loadFromDB() {\n\t}", "title": "" }, { "docid": "453637afdcc490de35afa10f347a4092", "score": "0.5299597", "text": "protected void mo4927v() {\n }", "title": "" }, { "docid": "bac29dbf8558a0b4310cb31793860b23", "score": "0.5297099", "text": "public static void main(String[] args) throws Exception {\n HibernateUtil.droptable(\"drop table supportproperty\");\n HibernateUtil.droptable(\"drop table properties\");\n HibernateUtil.setup(\"create table supportproperty (id int,name varchar(20))\");\n HibernateUtil.setup(\"create table properties (id int,property_name VARCHAR(20),property_value varchar(20))\");\n \n // Create Session and Transaction object\n Session session = HibernateUtil.currentSession();\n Transaction transaction = null;\n \n Map p2 = null;\n try {\n transaction = session.beginTransaction();\n \n // Create Domain object, SupportProperty object has a Map\n // object.\n SupportProperty sp = new SupportProperty();\n sp.setName(\"MyProperties\");\n \n HashMap h = new HashMap();\n h.put(\"car\", \"ford\");\n h.put(\"house\", \"lexington\");\n sp.setProperties(h);\n \n session.save(sp);\n \n // Create another object instance\n SupportProperty sp2 = new SupportProperty();\n sp2.setName(\"YourProperties\");\n HashMap h2 = new HashMap();\n h2.put(\"tv\", \"samsung\");\n h2.put(\"house\", \"lexington\");\n sp2.setProperties(h2);\n \n session.save(sp2);\n \n SupportProperty sp3 = (SupportProperty)session.load(SupportProperty.class, new Integer(sp.getId()));\n p2 = sp2.getProperties();\n \n transaction.commit();\n } catch (Exception e) {\n if (transaction != null) {\n transaction.rollback();\n throw e;\n }\n } finally {\n session.close();\n }\n \n System.out.println(\"car property = \" + p2.get(\"car\"));\n System.out.println(\"tv property = \" + p2.get(\"tv\"));\n \n // Display tables\n HibernateUtil.checkData(\"select * from supportproperty\");\n HibernateUtil.checkData(\"select * from properties\");\n }", "title": "" }, { "docid": "a1efce970fbae3b0b5ec9f24b0ea5fca", "score": "0.5293539", "text": "ModeloFactory getModeloFactory();", "title": "" }, { "docid": "3271be83662752e9bd19b1487ffc7723", "score": "0.5292637", "text": "private JPAUtil() {\r\n\r\n\t}", "title": "" }, { "docid": "30eb55e4655cab37d14254a47dca9ae1", "score": "0.5278321", "text": "private EntityQuery() {\n\n\t}", "title": "" }, { "docid": "ddd8d8a26991b887b8f19171d700e1d3", "score": "0.5278286", "text": "@Override\n\tpublic void proveerdatos() {\n\t\t\n\t}", "title": "" }, { "docid": "95c00a238088e69bf2dcf63c23c179c1", "score": "0.52574617", "text": "@Override\n\tpublic void save() {\n\t\t\n\t}", "title": "" }, { "docid": "0f297183d2a28233296ae27a65185ad9", "score": "0.5256907", "text": "private Query() {\n\t\t// --\n\t}", "title": "" }, { "docid": "66d61925c74f6b82917def151d732af5", "score": "0.52531815", "text": "@Override\n public int getOrder() {\n return 1;\n }", "title": "" }, { "docid": "66d61925c74f6b82917def151d732af5", "score": "0.52531815", "text": "@Override\n public int getOrder() {\n return 1;\n }", "title": "" }, { "docid": "58400f370d805da74ef5260b784a72c7", "score": "0.524716", "text": "@Override\r\n\tprotected void querytest() {\n\t\t\r\n\t}", "title": "" }, { "docid": "16a4669a2213802ac94829fc8d9946ff", "score": "0.52455187", "text": "@Override\n\t\tpublic void init() {\n\t\t\t\n\t\t}", "title": "" }, { "docid": "1985dddb6264adc2fb069a687b25f36b", "score": "0.52436256", "text": "@Override\n\tpublic void groom() {\n\t\t\n\t}", "title": "" }, { "docid": "8385088205294eea711a4a07992f768d", "score": "0.5240254", "text": "@Override\r\n public TypedQuery<R> createQuery() {\n\r\n return super.createQuery();\r\n }", "title": "" }, { "docid": "1b2a335e4935941463c43cb3638442ec", "score": "0.5234123", "text": "public static void main(String[] args) {\n\t\r\n\tSessionFactory factory= new Configuration().configure().buildSessionFactory();\r\n\tSession s1= factory.openSession();\r\n\ts1.beginTransaction();\r\n\tQuery q1=s1.createQuery(\"from StudentTable\");\r\n\tList users= q1.list();\r\n\t\r\n//\ts1.save(s2);\r\n\ts1.getTransaction().commit();\r\n\ts1.close();\r\n\tSystem.out.println(users);\r\n}", "title": "" }, { "docid": "6f0c0689987a911adec6c0ba95aad49d", "score": "0.5233239", "text": "public List<User> getAllUser() {\n Session session = sessionFactory.getCurrentSession();\n CriteriaBuilder builder = session.getCriteriaBuilder();\n CriteriaQuery<User> criteria = builder.createQuery(User.class);\n Root<User> myObjectRoot = criteria.from(User.class);\n criteria.select(myObjectRoot);\n TypedQuery<User> query = session.createQuery(criteria);\n Hibernate.initialize(query.getResultList());\n return query.getResultList();\n\n\n\n }", "title": "" }, { "docid": "dc0eef97cccd7f3e2f635281ecc96f44", "score": "0.52300227", "text": "@Override\r\n\tpublic void beforeSave() {\n\r\n\t}", "title": "" }, { "docid": "60d58186db084ba105eb84b221c28307", "score": "0.52295583", "text": "@Override\n protected void execute() {\n\n }", "title": "" }, { "docid": "2a550f8458794d16824f204804d00e1c", "score": "0.5215808", "text": "@Override\n public void visitClassContext(ClassContext classContext) {\n }", "title": "" }, { "docid": "0a2aa134e0ff791021a7ea513c4519d5", "score": "0.52147496", "text": "public static void main(String[] args) {\n\n\n EntityManagerFactory emf = Persistence.createEntityManagerFactory(\"org.hibernate.tutorial.jpa\");\n EntityManager entityManager = emf.createEntityManager();\n entityManager.getTransaction().begin();\n\n Cinema cinema = new Cinema();\n Hall hall = new Hall();\n Movie movie = new Movie();\n Session session = new Session();\n\n cinema.addHall(hall);\n entityManager.persist(cinema);\n\n entityManager.persist(cinema);\n hall.addSession(session);\n movie.addSession(session);\n\n entityManager.persist(movie);\n entityManager.getTransaction().commit();\n\n\n entityManager.close();\n entityManager = emf.createEntityManager();\n entityManager.getTransaction().begin();\n\n Cinema foundCinema = entityManager.find(Cinema.class,cinema.getId());\n\n entityManager.getTransaction().commit();\n entityManager.close();\n emf.close();\n\n\n\n }", "title": "" }, { "docid": "592b765f0188dd7fa8d3f1f3683fa9d7", "score": "0.5210274", "text": "@Override\n\tprotected void generateData() {\n\t\t\n\t}", "title": "" }, { "docid": "f31d6a84fedc342ea433f3f4be2f12a6", "score": "0.5202417", "text": "@Override\r\n\tpublic void fetch() {\n\t\t\r\n\t}", "title": "" }, { "docid": "3ff5127daadfff3ac166d1bed68dead6", "score": "0.5198036", "text": "public SolicitudSqlMapDao() {\r\n }", "title": "" }, { "docid": "432dd96f34971c1ac4333e52b676ba2d", "score": "0.519776", "text": "private DBAccess(){\n\t\t\n\t}", "title": "" }, { "docid": "ee260279b8d98548a0aca01191ce0e8c", "score": "0.5197445", "text": "protected void buildEntities() { }", "title": "" }, { "docid": "735fcadb2b177b46a59619e0dfc49528", "score": "0.51946837", "text": "@Override\n\tvoid prepare() {\n\t\t\n\t}", "title": "" }, { "docid": "24053f044c6944c5f25a79cad75b39fe", "score": "0.5190957", "text": "@Override\n public String id() {\n return null;\n }", "title": "" }, { "docid": "24053f044c6944c5f25a79cad75b39fe", "score": "0.5190957", "text": "@Override\n public String id() {\n return null;\n }", "title": "" }, { "docid": "24053f044c6944c5f25a79cad75b39fe", "score": "0.5190957", "text": "@Override\n public String id() {\n return null;\n }", "title": "" }, { "docid": "b95f2b92704615dfe380e798aa32c2a0", "score": "0.5188747", "text": "@Override\n\tpublic void save() {\n\n\t}", "title": "" }, { "docid": "4b468dddb685f8498c9e455b1da288fa", "score": "0.5188399", "text": "@Override\n /*public List<Form>getFormsByInterviewId(int idInterview) {\n Session session = null;\n Query query;\n List<Form> forms = null;\n try {\n Locale.setDefault(Locale.ENGLISH);\n session = HibernateUtil.getSessionFactory().getCurrentSession();\n session.beginTransaction();\n //query = session.createQuery(\"from Form \"\n // + \"where interview = \" + idInterview);\n query = session.createSQLQuery(\"\");\n forms = query.list();\n \n } catch (Exception e) {\n System.out.println(e);\n } finally {\n if (session != null && session.isOpen()) {\n session.close();\n }\n }\n return forms;\n }*/\n\n public int getFormsByInterviewId(int idInterview) {\n String query = \"select count(id_form) from form where to_char(id_interview) = to_char(:param0)\";\n List params = new ArrayList();\n params.add(idInterview);\n beginTransaction();\n BigDecimal queryResult = super.<BigDecimal>executeSingleSQLGetQuery(query, params);\n Number result = (queryResult == null ? 0:queryResult);\n commitTransaction();\n return result.intValue();\n }", "title": "" }, { "docid": "a14745d528895cd9260e802399e174c9", "score": "0.51856625", "text": "private static SessionFactory buildSessionFactory() {\n\n try {\n\n\n Configuration configuration = new Configuration(); \n configuration.configure();\n serviceRegistry = new ServiceRegistryBuilder().applySettings(configuration.getProperties())\n .buildServiceRegistry();\n sessionFactory = configuration.buildSessionFactory(serviceRegistry);\n } catch (Throwable e) {\n e.printStackTrace();\n }\n return sessionFactory;\n }", "title": "" }, { "docid": "18800753e5a980562049d1a668a306e8", "score": "0.518451", "text": "@PostConstruct\n public void init(){\n initialize(DespachoEntity.class, \"FROM DespachoEntity\", new DespachoDao(DespachoEntity.class));\n }", "title": "" }, { "docid": "202c0a87cb1d88d6655b4ec7f907659d", "score": "0.5180313", "text": "@Override\r\n\tpublic void save() {\n\t\t\r\n\t}", "title": "" }, { "docid": "202c0a87cb1d88d6655b4ec7f907659d", "score": "0.5180313", "text": "@Override\r\n\tpublic void save() {\n\t\t\r\n\t}", "title": "" }, { "docid": "9a1a66628f4518af9fa213c400d9592e", "score": "0.51748216", "text": "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t}", "title": "" }, { "docid": "68938c154d99c9e61e4fe2a7288baf5b", "score": "0.5169525", "text": "@Override\n\tpublic void prepare() {\n\t\t\n\t}", "title": "" }, { "docid": "68938c154d99c9e61e4fe2a7288baf5b", "score": "0.5169525", "text": "@Override\n\tpublic void prepare() {\n\t\t\n\t}", "title": "" }, { "docid": "80b1c45222d820f0a07ebd815688bb89", "score": "0.51679343", "text": "@Before\n public void setUp() throws Exception {\n Citizen citizen = creadField();\n entityManagerFactory = Persistence.createEntityManagerFactory(\"ru.easyjava.data.jpa.hibernate\");\n EntityManager entityManager = entityManagerFactory.createEntityManager();\n entityManager.getTransaction().begin();\n entityManager.persist(citizen);\n// entityManager.createNamedQuery(\"Citizen.test\").getResultList().forEach(cit->{\n// System.out.println(((Citizen) cit).getGivenName());\n// System.out.println(((Citizen) cit).getSimpleName());\n// System.out.println(((Citizen) cit).getDateOfBirth());\n// System.out.println(((Citizen) cit).getPassport());\n// System.out.println(((Citizen) cit).getAddress());\n// System.out.println(((Citizen) cit).getCompanies());\n// });\n entityManager.getTransaction().commit();\n entityManager.close();\n }", "title": "" }, { "docid": "d04355b7ad17e966b9f1c072e9560857", "score": "0.5167579", "text": "@Override\n\tpublic void create() {\n\t\t\n\t}", "title": "" }, { "docid": "d04355b7ad17e966b9f1c072e9560857", "score": "0.5167579", "text": "@Override\n\tpublic void create() {\n\t\t\n\t}", "title": "" }, { "docid": "acc39f55f5b37ab7050a241c64f9a4f9", "score": "0.5165907", "text": "@Override\n\tpublic void actualize() {\n\t\t\n\t}", "title": "" }, { "docid": "fa1a013b1df2f5f1062e1cc971135645", "score": "0.51647294", "text": "@Override\n\tpublic void mamar() {\n\t\t\n\t}", "title": "" }, { "docid": "b0e30b298edb3bf6c50aa40783b3460d", "score": "0.5164404", "text": "@Override\r\n public void initDao() {\n \r\n }", "title": "" }, { "docid": "1301857462e360a58e927bc53587d07f", "score": "0.51630974", "text": "@Override\n\tpublic void preInsert() {\n\t\t\n\t}", "title": "" }, { "docid": "d05f62703bc2ba541a19fb3b0955938c", "score": "0.51630217", "text": "private Properties jpaProperties() {\n\t\tProperties properties = new Properties();\n\t\tproperties.setProperty(\"hibernate.hbm2ddl.auto\", \"update\");\n\t\tproperties.setProperty(\"hibernate.show-sql\", \"true\");\n\t\treturn properties;\n\t}", "title": "" }, { "docid": "5de04ff3de90f56d9514fc0567164efc", "score": "0.5160923", "text": "@Override\r\n\tpublic void generateCode() {\n\t\t\r\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.5156983", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.5156983", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "479340d7603590876396cc58262a3776", "score": "0.51551545", "text": "@Override\r\n\tpublic int attaquer() {\r\n\t\t// TODO Auto-generated method stub\r\n\t\treturn 0;\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.5154074", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.5154074", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.5154074", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.5154074", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.5154074", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.5154074", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "815d86ed0a0db236e9f6f32972e96488", "score": "0.51525486", "text": "@Override\n\tprotected void load() {\n\t\t\n\t}", "title": "" }, { "docid": "b17089ec7f3b873adc1ebff906be9241", "score": "0.51449937", "text": "@Override\r\n\tpublic void carregar() {\n\t\t\r\n\t}", "title": "" }, { "docid": "20c2b7518c2fb5e95a6ed3e23b3bc89d", "score": "0.5138655", "text": "private void initialize(){\n final StandardServiceRegistry registry = new StandardServiceRegistryBuilder()\n .configure() // configures settings from hibernate.cfg.xml\n .build();\n try {\n sessionFactory = new MetadataSources( registry ).buildMetadata().buildSessionFactory();\n }\n catch (Exception e) {\n System.err.println(\"Exceptie \"+e);\n StandardServiceRegistryBuilder.destroy( registry );\n }\n }", "title": "" }, { "docid": "4c9e25ea6f293e2f67da562cd4a0b657", "score": "0.51324004", "text": "public final void mo8553EA() {\n }", "title": "" }, { "docid": "d23c353a9c5de22ecebf44caaf6d2ba3", "score": "0.51313543", "text": "@Override\r\n\tpublic void create() {\n\r\n\t}", "title": "" }, { "docid": "30b8bb909a83e60d4bf9e3d1e1d25697", "score": "0.51292515", "text": "public RelationalMetaModelFactoryImpl()\n {\n\t\tsuper();\n\t}", "title": "" }, { "docid": "03d7171196199db238d56b8aeab47987", "score": "0.51267034", "text": "private void welcom() {\n\n\t}", "title": "" }, { "docid": "ad70142967328099db0dd08553758e20", "score": "0.51265365", "text": "public Entitet() {\n\t\tsuper();\n\t\t\n\t}", "title": "" }, { "docid": "627bf6ef88b45b88b902a23fc9a6eb2b", "score": "0.5126167", "text": "@Override\r\n\tpublic void init()\r\n\t{\n\t\t\r\n\t}", "title": "" }, { "docid": "162a468b891a508701c52265588e91b6", "score": "0.51244044", "text": "@Override\r\n public void init() {\n\r\n }", "title": "" }, { "docid": "86cba6fa461dad0a00dd59857d5ff056", "score": "0.51241785", "text": "@Override\n\tpublic void preInsert() {\n\n\t}", "title": "" }, { "docid": "3f682cd35cc51a176e84d31bb70401ec", "score": "0.51203376", "text": "@Override\n\t\t\tpublic int Order() {\n\t\t\t\treturn 1;\n\t\t\t}", "title": "" }, { "docid": "3f682cd35cc51a176e84d31bb70401ec", "score": "0.51203376", "text": "@Override\n\t\t\tpublic int Order() {\n\t\t\t\treturn 1;\n\t\t\t}", "title": "" }, { "docid": "cc6f046e041cacf13404bcab2491f1de", "score": "0.51181066", "text": "@Override\n\tprotected void load() {\n\n\t}", "title": "" } ]